diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 000000000..ff9cb317e --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @stuqdog diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..94bfde4a3 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +LDFLAGS = -L/usr/local/lib `pkg-config --libs protobuf grpc++ re2 libcares`\ +-ldl -L../../../../target/debug -lviam_rust_utils + +CXX = g++ +CXXFLAGS += `pkg-config --cflags protobuf grpc` +CXXFLAGS += -std=c++11 -I src/gen/ -I src/gen/proto/ + +all: buf + +buf: buf-clean + @mkdir -p src/gen + buf generate buf.build/googleapis/googleapis --template buf.gen.yaml --path google/rpc --path google/api + buf generate buf.build/viamrobotics/api --template buf.gen.yaml +buf-clean: + rm -rf src/gen/* diff --git a/buf.gen.yaml b/buf.gen.yaml new file mode 100644 index 000000000..d94b836cb --- /dev/null +++ b/buf.gen.yaml @@ -0,0 +1,6 @@ +version: v1 +plugins: + - name: cpp + out: src/gen/ + - remote: buf.build/grpc/plugins/cpp:v1.45.2-1 + out: src/gen/ diff --git a/src/gen/app/data/v1/data.grpc.pb.cc b/src/gen/app/data/v1/data.grpc.pb.cc new file mode 100644 index 000000000..0bce41a09 --- /dev/null +++ b/src/gen/app/data/v1/data.grpc.pb.cc @@ -0,0 +1,176 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: app/data/v1/data.proto + +#include "app/data/v1/data.pb.h" +#include "app/data/v1/data.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace app { +namespace data { +namespace v1 { + +static const char* DataService_method_names[] = { + "/viam.app.data.v1.DataService/TabularDataByFilter", + "/viam.app.data.v1.DataService/BinaryDataByFilter", + "/viam.app.data.v1.DataService/BinaryDataByIDs", +}; + +std::unique_ptr< DataService::Stub> DataService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< DataService::Stub> stub(new DataService::Stub(channel, options)); + return stub; +} + +DataService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_TabularDataByFilter_(DataService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_BinaryDataByFilter_(DataService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_BinaryDataByIDs_(DataService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status DataService::Stub::TabularDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest& request, ::viam::app::data::v1::TabularDataByFilterResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::data::v1::TabularDataByFilterRequest, ::viam::app::data::v1::TabularDataByFilterResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_TabularDataByFilter_, context, request, response); +} + +void DataService::Stub::async::TabularDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest* request, ::viam::app::data::v1::TabularDataByFilterResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::data::v1::TabularDataByFilterRequest, ::viam::app::data::v1::TabularDataByFilterResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_TabularDataByFilter_, context, request, response, std::move(f)); +} + +void DataService::Stub::async::TabularDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest* request, ::viam::app::data::v1::TabularDataByFilterResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_TabularDataByFilter_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::TabularDataByFilterResponse>* DataService::Stub::PrepareAsyncTabularDataByFilterRaw(::grpc::ClientContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::data::v1::TabularDataByFilterResponse, ::viam::app::data::v1::TabularDataByFilterRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_TabularDataByFilter_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::TabularDataByFilterResponse>* DataService::Stub::AsyncTabularDataByFilterRaw(::grpc::ClientContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncTabularDataByFilterRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status DataService::Stub::BinaryDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest& request, ::viam::app::data::v1::BinaryDataByFilterResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::data::v1::BinaryDataByFilterRequest, ::viam::app::data::v1::BinaryDataByFilterResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_BinaryDataByFilter_, context, request, response); +} + +void DataService::Stub::async::BinaryDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest* request, ::viam::app::data::v1::BinaryDataByFilterResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::data::v1::BinaryDataByFilterRequest, ::viam::app::data::v1::BinaryDataByFilterResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_BinaryDataByFilter_, context, request, response, std::move(f)); +} + +void DataService::Stub::async::BinaryDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest* request, ::viam::app::data::v1::BinaryDataByFilterResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_BinaryDataByFilter_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::BinaryDataByFilterResponse>* DataService::Stub::PrepareAsyncBinaryDataByFilterRaw(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::data::v1::BinaryDataByFilterResponse, ::viam::app::data::v1::BinaryDataByFilterRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_BinaryDataByFilter_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::BinaryDataByFilterResponse>* DataService::Stub::AsyncBinaryDataByFilterRaw(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncBinaryDataByFilterRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status DataService::Stub::BinaryDataByIDs(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest& request, ::viam::app::data::v1::BinaryDataByIDsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::data::v1::BinaryDataByIDsRequest, ::viam::app::data::v1::BinaryDataByIDsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_BinaryDataByIDs_, context, request, response); +} + +void DataService::Stub::async::BinaryDataByIDs(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest* request, ::viam::app::data::v1::BinaryDataByIDsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::data::v1::BinaryDataByIDsRequest, ::viam::app::data::v1::BinaryDataByIDsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_BinaryDataByIDs_, context, request, response, std::move(f)); +} + +void DataService::Stub::async::BinaryDataByIDs(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest* request, ::viam::app::data::v1::BinaryDataByIDsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_BinaryDataByIDs_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::BinaryDataByIDsResponse>* DataService::Stub::PrepareAsyncBinaryDataByIDsRaw(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::data::v1::BinaryDataByIDsResponse, ::viam::app::data::v1::BinaryDataByIDsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_BinaryDataByIDs_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::BinaryDataByIDsResponse>* DataService::Stub::AsyncBinaryDataByIDsRaw(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncBinaryDataByIDsRaw(context, request, cq); + result->StartCall(); + return result; +} + +DataService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataService::Service, ::viam::app::data::v1::TabularDataByFilterRequest, ::viam::app::data::v1::TabularDataByFilterResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](DataService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::data::v1::TabularDataByFilterRequest* req, + ::viam::app::data::v1::TabularDataByFilterResponse* resp) { + return service->TabularDataByFilter(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataService::Service, ::viam::app::data::v1::BinaryDataByFilterRequest, ::viam::app::data::v1::BinaryDataByFilterResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](DataService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::data::v1::BinaryDataByFilterRequest* req, + ::viam::app::data::v1::BinaryDataByFilterResponse* resp) { + return service->BinaryDataByFilter(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataService::Service, ::viam::app::data::v1::BinaryDataByIDsRequest, ::viam::app::data::v1::BinaryDataByIDsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](DataService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::data::v1::BinaryDataByIDsRequest* req, + ::viam::app::data::v1::BinaryDataByIDsResponse* resp) { + return service->BinaryDataByIDs(ctx, req, resp); + }, this))); +} + +DataService::Service::~Service() { +} + +::grpc::Status DataService::Service::TabularDataByFilter(::grpc::ServerContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest* request, ::viam::app::data::v1::TabularDataByFilterResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status DataService::Service::BinaryDataByFilter(::grpc::ServerContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest* request, ::viam::app::data::v1::BinaryDataByFilterResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status DataService::Service::BinaryDataByIDs(::grpc::ServerContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest* request, ::viam::app::data::v1::BinaryDataByIDsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace app +} // namespace data +} // namespace v1 + diff --git a/src/gen/app/data/v1/data.grpc.pb.h b/src/gen/app/data/v1/data.grpc.pb.h new file mode 100644 index 000000000..fe5a30462 --- /dev/null +++ b/src/gen/app/data/v1/data.grpc.pb.h @@ -0,0 +1,570 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: app/data/v1/data.proto +#ifndef GRPC_app_2fdata_2fv1_2fdata_2eproto__INCLUDED +#define GRPC_app_2fdata_2fv1_2fdata_2eproto__INCLUDED + +#include "app/data/v1/data.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace app { +namespace data { +namespace v1 { + +// DataService is used to query robot data. +class DataService final { + public: + static constexpr char const* service_full_name() { + return "viam.app.data.v1.DataService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // TabularDataByFilter queries tabular data and metadata based on given filters. + virtual ::grpc::Status TabularDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest& request, ::viam::app::data::v1::TabularDataByFilterResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::data::v1::TabularDataByFilterResponse>> AsyncTabularDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::data::v1::TabularDataByFilterResponse>>(AsyncTabularDataByFilterRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::data::v1::TabularDataByFilterResponse>> PrepareAsyncTabularDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::data::v1::TabularDataByFilterResponse>>(PrepareAsyncTabularDataByFilterRaw(context, request, cq)); + } + // BinaryDataByFilter queries binary data and metadata based on given filters. + virtual ::grpc::Status BinaryDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest& request, ::viam::app::data::v1::BinaryDataByFilterResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::data::v1::BinaryDataByFilterResponse>> AsyncBinaryDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::data::v1::BinaryDataByFilterResponse>>(AsyncBinaryDataByFilterRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::data::v1::BinaryDataByFilterResponse>> PrepareAsyncBinaryDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::data::v1::BinaryDataByFilterResponse>>(PrepareAsyncBinaryDataByFilterRaw(context, request, cq)); + } + // BinaryDataByIDs queries binary data and metadata based on given IDs. + virtual ::grpc::Status BinaryDataByIDs(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest& request, ::viam::app::data::v1::BinaryDataByIDsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::data::v1::BinaryDataByIDsResponse>> AsyncBinaryDataByIDs(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::data::v1::BinaryDataByIDsResponse>>(AsyncBinaryDataByIDsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::data::v1::BinaryDataByIDsResponse>> PrepareAsyncBinaryDataByIDs(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::data::v1::BinaryDataByIDsResponse>>(PrepareAsyncBinaryDataByIDsRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // TabularDataByFilter queries tabular data and metadata based on given filters. + virtual void TabularDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest* request, ::viam::app::data::v1::TabularDataByFilterResponse* response, std::function) = 0; + virtual void TabularDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest* request, ::viam::app::data::v1::TabularDataByFilterResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // BinaryDataByFilter queries binary data and metadata based on given filters. + virtual void BinaryDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest* request, ::viam::app::data::v1::BinaryDataByFilterResponse* response, std::function) = 0; + virtual void BinaryDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest* request, ::viam::app::data::v1::BinaryDataByFilterResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // BinaryDataByIDs queries binary data and metadata based on given IDs. + virtual void BinaryDataByIDs(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest* request, ::viam::app::data::v1::BinaryDataByIDsResponse* response, std::function) = 0; + virtual void BinaryDataByIDs(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest* request, ::viam::app::data::v1::BinaryDataByIDsResponse* 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::ClientAsyncResponseReaderInterface< ::viam::app::data::v1::TabularDataByFilterResponse>* AsyncTabularDataByFilterRaw(::grpc::ClientContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::data::v1::TabularDataByFilterResponse>* PrepareAsyncTabularDataByFilterRaw(::grpc::ClientContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::data::v1::BinaryDataByFilterResponse>* AsyncBinaryDataByFilterRaw(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::data::v1::BinaryDataByFilterResponse>* PrepareAsyncBinaryDataByFilterRaw(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::data::v1::BinaryDataByIDsResponse>* AsyncBinaryDataByIDsRaw(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::data::v1::BinaryDataByIDsResponse>* PrepareAsyncBinaryDataByIDsRaw(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest& 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()); + ::grpc::Status TabularDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest& request, ::viam::app::data::v1::TabularDataByFilterResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::TabularDataByFilterResponse>> AsyncTabularDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::TabularDataByFilterResponse>>(AsyncTabularDataByFilterRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::TabularDataByFilterResponse>> PrepareAsyncTabularDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::TabularDataByFilterResponse>>(PrepareAsyncTabularDataByFilterRaw(context, request, cq)); + } + ::grpc::Status BinaryDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest& request, ::viam::app::data::v1::BinaryDataByFilterResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::BinaryDataByFilterResponse>> AsyncBinaryDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::BinaryDataByFilterResponse>>(AsyncBinaryDataByFilterRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::BinaryDataByFilterResponse>> PrepareAsyncBinaryDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::BinaryDataByFilterResponse>>(PrepareAsyncBinaryDataByFilterRaw(context, request, cq)); + } + ::grpc::Status BinaryDataByIDs(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest& request, ::viam::app::data::v1::BinaryDataByIDsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::BinaryDataByIDsResponse>> AsyncBinaryDataByIDs(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::BinaryDataByIDsResponse>>(AsyncBinaryDataByIDsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::BinaryDataByIDsResponse>> PrepareAsyncBinaryDataByIDs(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::BinaryDataByIDsResponse>>(PrepareAsyncBinaryDataByIDsRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void TabularDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest* request, ::viam::app::data::v1::TabularDataByFilterResponse* response, std::function) override; + void TabularDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest* request, ::viam::app::data::v1::TabularDataByFilterResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void BinaryDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest* request, ::viam::app::data::v1::BinaryDataByFilterResponse* response, std::function) override; + void BinaryDataByFilter(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest* request, ::viam::app::data::v1::BinaryDataByFilterResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void BinaryDataByIDs(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest* request, ::viam::app::data::v1::BinaryDataByIDsResponse* response, std::function) override; + void BinaryDataByIDs(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest* request, ::viam::app::data::v1::BinaryDataByIDsResponse* 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::ClientAsyncResponseReader< ::viam::app::data::v1::TabularDataByFilterResponse>* AsyncTabularDataByFilterRaw(::grpc::ClientContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::TabularDataByFilterResponse>* PrepareAsyncTabularDataByFilterRaw(::grpc::ClientContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::BinaryDataByFilterResponse>* AsyncBinaryDataByFilterRaw(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::BinaryDataByFilterResponse>* PrepareAsyncBinaryDataByFilterRaw(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::BinaryDataByIDsResponse>* AsyncBinaryDataByIDsRaw(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::data::v1::BinaryDataByIDsResponse>* PrepareAsyncBinaryDataByIDsRaw(::grpc::ClientContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_TabularDataByFilter_; + const ::grpc::internal::RpcMethod rpcmethod_BinaryDataByFilter_; + const ::grpc::internal::RpcMethod rpcmethod_BinaryDataByIDs_; + }; + 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(); + // TabularDataByFilter queries tabular data and metadata based on given filters. + virtual ::grpc::Status TabularDataByFilter(::grpc::ServerContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest* request, ::viam::app::data::v1::TabularDataByFilterResponse* response); + // BinaryDataByFilter queries binary data and metadata based on given filters. + virtual ::grpc::Status BinaryDataByFilter(::grpc::ServerContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest* request, ::viam::app::data::v1::BinaryDataByFilterResponse* response); + // BinaryDataByIDs queries binary data and metadata based on given IDs. + virtual ::grpc::Status BinaryDataByIDs(::grpc::ServerContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest* request, ::viam::app::data::v1::BinaryDataByIDsResponse* response); + }; + template + class WithAsyncMethod_TabularDataByFilter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_TabularDataByFilter() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_TabularDataByFilter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TabularDataByFilter(::grpc::ServerContext* /*context*/, const ::viam::app::data::v1::TabularDataByFilterRequest* /*request*/, ::viam::app::data::v1::TabularDataByFilterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestTabularDataByFilter(::grpc::ServerContext* context, ::viam::app::data::v1::TabularDataByFilterRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::data::v1::TabularDataByFilterResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_BinaryDataByFilter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_BinaryDataByFilter() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_BinaryDataByFilter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status BinaryDataByFilter(::grpc::ServerContext* /*context*/, const ::viam::app::data::v1::BinaryDataByFilterRequest* /*request*/, ::viam::app::data::v1::BinaryDataByFilterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestBinaryDataByFilter(::grpc::ServerContext* context, ::viam::app::data::v1::BinaryDataByFilterRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::data::v1::BinaryDataByFilterResponse>* 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 WithAsyncMethod_BinaryDataByIDs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_BinaryDataByIDs() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_BinaryDataByIDs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status BinaryDataByIDs(::grpc::ServerContext* /*context*/, const ::viam::app::data::v1::BinaryDataByIDsRequest* /*request*/, ::viam::app::data::v1::BinaryDataByIDsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestBinaryDataByIDs(::grpc::ServerContext* context, ::viam::app::data::v1::BinaryDataByIDsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::data::v1::BinaryDataByIDsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_TabularDataByFilter > > AsyncService; + template + class WithCallbackMethod_TabularDataByFilter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_TabularDataByFilter() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::data::v1::TabularDataByFilterRequest, ::viam::app::data::v1::TabularDataByFilterResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::data::v1::TabularDataByFilterRequest* request, ::viam::app::data::v1::TabularDataByFilterResponse* response) { return this->TabularDataByFilter(context, request, response); }));} + void SetMessageAllocatorFor_TabularDataByFilter( + ::grpc::MessageAllocator< ::viam::app::data::v1::TabularDataByFilterRequest, ::viam::app::data::v1::TabularDataByFilterResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::data::v1::TabularDataByFilterRequest, ::viam::app::data::v1::TabularDataByFilterResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_TabularDataByFilter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TabularDataByFilter(::grpc::ServerContext* /*context*/, const ::viam::app::data::v1::TabularDataByFilterRequest* /*request*/, ::viam::app::data::v1::TabularDataByFilterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* TabularDataByFilter( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::data::v1::TabularDataByFilterRequest* /*request*/, ::viam::app::data::v1::TabularDataByFilterResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_BinaryDataByFilter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_BinaryDataByFilter() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::data::v1::BinaryDataByFilterRequest, ::viam::app::data::v1::BinaryDataByFilterResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::data::v1::BinaryDataByFilterRequest* request, ::viam::app::data::v1::BinaryDataByFilterResponse* response) { return this->BinaryDataByFilter(context, request, response); }));} + void SetMessageAllocatorFor_BinaryDataByFilter( + ::grpc::MessageAllocator< ::viam::app::data::v1::BinaryDataByFilterRequest, ::viam::app::data::v1::BinaryDataByFilterResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::data::v1::BinaryDataByFilterRequest, ::viam::app::data::v1::BinaryDataByFilterResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_BinaryDataByFilter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status BinaryDataByFilter(::grpc::ServerContext* /*context*/, const ::viam::app::data::v1::BinaryDataByFilterRequest* /*request*/, ::viam::app::data::v1::BinaryDataByFilterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* BinaryDataByFilter( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::data::v1::BinaryDataByFilterRequest* /*request*/, ::viam::app::data::v1::BinaryDataByFilterResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_BinaryDataByIDs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_BinaryDataByIDs() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::data::v1::BinaryDataByIDsRequest, ::viam::app::data::v1::BinaryDataByIDsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::data::v1::BinaryDataByIDsRequest* request, ::viam::app::data::v1::BinaryDataByIDsResponse* response) { return this->BinaryDataByIDs(context, request, response); }));} + void SetMessageAllocatorFor_BinaryDataByIDs( + ::grpc::MessageAllocator< ::viam::app::data::v1::BinaryDataByIDsRequest, ::viam::app::data::v1::BinaryDataByIDsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::data::v1::BinaryDataByIDsRequest, ::viam::app::data::v1::BinaryDataByIDsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_BinaryDataByIDs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status BinaryDataByIDs(::grpc::ServerContext* /*context*/, const ::viam::app::data::v1::BinaryDataByIDsRequest* /*request*/, ::viam::app::data::v1::BinaryDataByIDsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* BinaryDataByIDs( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::data::v1::BinaryDataByIDsRequest* /*request*/, ::viam::app::data::v1::BinaryDataByIDsResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_TabularDataByFilter > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_TabularDataByFilter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_TabularDataByFilter() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_TabularDataByFilter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TabularDataByFilter(::grpc::ServerContext* /*context*/, const ::viam::app::data::v1::TabularDataByFilterRequest* /*request*/, ::viam::app::data::v1::TabularDataByFilterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_BinaryDataByFilter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_BinaryDataByFilter() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_BinaryDataByFilter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status BinaryDataByFilter(::grpc::ServerContext* /*context*/, const ::viam::app::data::v1::BinaryDataByFilterRequest* /*request*/, ::viam::app::data::v1::BinaryDataByFilterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_BinaryDataByIDs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_BinaryDataByIDs() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_BinaryDataByIDs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status BinaryDataByIDs(::grpc::ServerContext* /*context*/, const ::viam::app::data::v1::BinaryDataByIDsRequest* /*request*/, ::viam::app::data::v1::BinaryDataByIDsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_TabularDataByFilter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_TabularDataByFilter() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_TabularDataByFilter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TabularDataByFilter(::grpc::ServerContext* /*context*/, const ::viam::app::data::v1::TabularDataByFilterRequest* /*request*/, ::viam::app::data::v1::TabularDataByFilterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestTabularDataByFilter(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_BinaryDataByFilter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_BinaryDataByFilter() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_BinaryDataByFilter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status BinaryDataByFilter(::grpc::ServerContext* /*context*/, const ::viam::app::data::v1::BinaryDataByFilterRequest* /*request*/, ::viam::app::data::v1::BinaryDataByFilterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestBinaryDataByFilter(::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 WithRawMethod_BinaryDataByIDs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_BinaryDataByIDs() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_BinaryDataByIDs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status BinaryDataByIDs(::grpc::ServerContext* /*context*/, const ::viam::app::data::v1::BinaryDataByIDsRequest* /*request*/, ::viam::app::data::v1::BinaryDataByIDsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestBinaryDataByIDs(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_TabularDataByFilter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_TabularDataByFilter() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->TabularDataByFilter(context, request, response); })); + } + ~WithRawCallbackMethod_TabularDataByFilter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TabularDataByFilter(::grpc::ServerContext* /*context*/, const ::viam::app::data::v1::TabularDataByFilterRequest* /*request*/, ::viam::app::data::v1::TabularDataByFilterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* TabularDataByFilter( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_BinaryDataByFilter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_BinaryDataByFilter() { + ::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->BinaryDataByFilter(context, request, response); })); + } + ~WithRawCallbackMethod_BinaryDataByFilter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status BinaryDataByFilter(::grpc::ServerContext* /*context*/, const ::viam::app::data::v1::BinaryDataByFilterRequest* /*request*/, ::viam::app::data::v1::BinaryDataByFilterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* BinaryDataByFilter( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_BinaryDataByIDs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_BinaryDataByIDs() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->BinaryDataByIDs(context, request, response); })); + } + ~WithRawCallbackMethod_BinaryDataByIDs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status BinaryDataByIDs(::grpc::ServerContext* /*context*/, const ::viam::app::data::v1::BinaryDataByIDsRequest* /*request*/, ::viam::app::data::v1::BinaryDataByIDsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* BinaryDataByIDs( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_TabularDataByFilter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_TabularDataByFilter() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::data::v1::TabularDataByFilterRequest, ::viam::app::data::v1::TabularDataByFilterResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::data::v1::TabularDataByFilterRequest, ::viam::app::data::v1::TabularDataByFilterResponse>* streamer) { + return this->StreamedTabularDataByFilter(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_TabularDataByFilter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status TabularDataByFilter(::grpc::ServerContext* /*context*/, const ::viam::app::data::v1::TabularDataByFilterRequest* /*request*/, ::viam::app::data::v1::TabularDataByFilterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedTabularDataByFilter(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::data::v1::TabularDataByFilterRequest,::viam::app::data::v1::TabularDataByFilterResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_BinaryDataByFilter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_BinaryDataByFilter() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::data::v1::BinaryDataByFilterRequest, ::viam::app::data::v1::BinaryDataByFilterResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::data::v1::BinaryDataByFilterRequest, ::viam::app::data::v1::BinaryDataByFilterResponse>* streamer) { + return this->StreamedBinaryDataByFilter(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_BinaryDataByFilter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status BinaryDataByFilter(::grpc::ServerContext* /*context*/, const ::viam::app::data::v1::BinaryDataByFilterRequest* /*request*/, ::viam::app::data::v1::BinaryDataByFilterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedBinaryDataByFilter(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::data::v1::BinaryDataByFilterRequest,::viam::app::data::v1::BinaryDataByFilterResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_BinaryDataByIDs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_BinaryDataByIDs() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::data::v1::BinaryDataByIDsRequest, ::viam::app::data::v1::BinaryDataByIDsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::data::v1::BinaryDataByIDsRequest, ::viam::app::data::v1::BinaryDataByIDsResponse>* streamer) { + return this->StreamedBinaryDataByIDs(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_BinaryDataByIDs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status BinaryDataByIDs(::grpc::ServerContext* /*context*/, const ::viam::app::data::v1::BinaryDataByIDsRequest* /*request*/, ::viam::app::data::v1::BinaryDataByIDsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedBinaryDataByIDs(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::data::v1::BinaryDataByIDsRequest,::viam::app::data::v1::BinaryDataByIDsResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_TabularDataByFilter > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_TabularDataByFilter > > StreamedService; +}; + +} // namespace v1 +} // namespace data +} // namespace app +} // namespace viam + + +#endif // GRPC_app_2fdata_2fv1_2fdata_2eproto__INCLUDED diff --git a/src/gen/app/data/v1/data.pb.cc b/src/gen/app/data/v1/data.pb.cc new file mode 100644 index 000000000..6561a6860 --- /dev/null +++ b/src/gen/app/data/v1/data.pb.cc @@ -0,0 +1,4906 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: app/data/v1/data.proto + +#include "app/data/v1/data.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 app { +namespace data { +namespace v1 { +PROTOBUF_CONSTEXPR DataRequest::DataRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.filter_)*/nullptr + , /*decltype(_impl_.skip_)*/int64_t{0} + , /*decltype(_impl_.limit_)*/int64_t{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DataRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DataRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DataRequestDefaultTypeInternal() {} + union { + DataRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DataRequestDefaultTypeInternal _DataRequest_default_instance_; +PROTOBUF_CONSTEXPR Filter::Filter( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.tags_)*/{} + , /*decltype(_impl_.org_ids_)*/{} + , /*decltype(_impl_.mime_type_)*/{} + , /*decltype(_impl_.component_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.component_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.component_model_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.method_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.robot_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.robot_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.part_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.part_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.location_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.interval_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct FilterDefaultTypeInternal { + PROTOBUF_CONSTEXPR FilterDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FilterDefaultTypeInternal() {} + union { + Filter _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FilterDefaultTypeInternal _Filter_default_instance_; +PROTOBUF_CONSTEXPR CaptureMetadata_MethodParametersEntry_DoNotUse::CaptureMetadata_MethodParametersEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct CaptureMetadata_MethodParametersEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CaptureMetadata_MethodParametersEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CaptureMetadata_MethodParametersEntry_DoNotUseDefaultTypeInternal() {} + union { + CaptureMetadata_MethodParametersEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CaptureMetadata_MethodParametersEntry_DoNotUseDefaultTypeInternal _CaptureMetadata_MethodParametersEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR CaptureMetadata::CaptureMetadata( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.method_parameters_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.tags_)*/{} + , /*decltype(_impl_.org_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.location_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.robot_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.robot_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.part_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.part_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.component_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.component_model_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.component_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.method_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mime_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct CaptureMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR CaptureMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CaptureMetadataDefaultTypeInternal() {} + union { + CaptureMetadata _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CaptureMetadataDefaultTypeInternal _CaptureMetadata_default_instance_; +PROTOBUF_CONSTEXPR CaptureInterval::CaptureInterval( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.start_)*/nullptr + , /*decltype(_impl_.end_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct CaptureIntervalDefaultTypeInternal { + PROTOBUF_CONSTEXPR CaptureIntervalDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CaptureIntervalDefaultTypeInternal() {} + union { + CaptureInterval _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CaptureIntervalDefaultTypeInternal _CaptureInterval_default_instance_; +PROTOBUF_CONSTEXPR TabularDataByFilterRequest::TabularDataByFilterRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.data_request_)*/nullptr + , /*decltype(_impl_.count_only_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct TabularDataByFilterRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR TabularDataByFilterRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TabularDataByFilterRequestDefaultTypeInternal() {} + union { + TabularDataByFilterRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TabularDataByFilterRequestDefaultTypeInternal _TabularDataByFilterRequest_default_instance_; +PROTOBUF_CONSTEXPR TabularDataByFilterResponse::TabularDataByFilterResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.metadata_)*/{} + , /*decltype(_impl_.data_)*/{} + , /*decltype(_impl_.count_)*/int64_t{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct TabularDataByFilterResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR TabularDataByFilterResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TabularDataByFilterResponseDefaultTypeInternal() {} + union { + TabularDataByFilterResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TabularDataByFilterResponseDefaultTypeInternal _TabularDataByFilterResponse_default_instance_; +PROTOBUF_CONSTEXPR TabularData::TabularData( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.data_)*/nullptr + , /*decltype(_impl_.time_requested_)*/nullptr + , /*decltype(_impl_.time_received_)*/nullptr + , /*decltype(_impl_.metadata_index_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct TabularDataDefaultTypeInternal { + PROTOBUF_CONSTEXPR TabularDataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TabularDataDefaultTypeInternal() {} + union { + TabularData _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TabularDataDefaultTypeInternal _TabularData_default_instance_; +PROTOBUF_CONSTEXPR BinaryData::BinaryData( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.uri_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.binary_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.time_requested_)*/nullptr + , /*decltype(_impl_.time_received_)*/nullptr + , /*decltype(_impl_.metadata_index_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct BinaryDataDefaultTypeInternal { + PROTOBUF_CONSTEXPR BinaryDataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~BinaryDataDefaultTypeInternal() {} + union { + BinaryData _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BinaryDataDefaultTypeInternal _BinaryData_default_instance_; +PROTOBUF_CONSTEXPR BinaryDataByFilterRequest::BinaryDataByFilterRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.data_request_)*/nullptr + , /*decltype(_impl_.include_binary_)*/false + , /*decltype(_impl_.count_only_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct BinaryDataByFilterRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR BinaryDataByFilterRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~BinaryDataByFilterRequestDefaultTypeInternal() {} + union { + BinaryDataByFilterRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BinaryDataByFilterRequestDefaultTypeInternal _BinaryDataByFilterRequest_default_instance_; +PROTOBUF_CONSTEXPR BinaryDataByFilterResponse::BinaryDataByFilterResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.metadata_)*/{} + , /*decltype(_impl_.data_)*/{} + , /*decltype(_impl_.count_)*/int64_t{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct BinaryDataByFilterResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR BinaryDataByFilterResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~BinaryDataByFilterResponseDefaultTypeInternal() {} + union { + BinaryDataByFilterResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BinaryDataByFilterResponseDefaultTypeInternal _BinaryDataByFilterResponse_default_instance_; +PROTOBUF_CONSTEXPR BinaryDataByIDsRequest::BinaryDataByIDsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.file_ids_)*/{} + , /*decltype(_impl_.include_binary_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct BinaryDataByIDsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR BinaryDataByIDsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~BinaryDataByIDsRequestDefaultTypeInternal() {} + union { + BinaryDataByIDsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BinaryDataByIDsRequestDefaultTypeInternal _BinaryDataByIDsRequest_default_instance_; +PROTOBUF_CONSTEXPR BinaryDataByIDsResponse::BinaryDataByIDsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.metadata_)*/{} + , /*decltype(_impl_.data_)*/{} + , /*decltype(_impl_.count_)*/int64_t{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct BinaryDataByIDsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR BinaryDataByIDsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~BinaryDataByIDsResponseDefaultTypeInternal() {} + union { + BinaryDataByIDsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BinaryDataByIDsResponseDefaultTypeInternal _BinaryDataByIDsResponse_default_instance_; +} // namespace v1 +} // namespace data +} // namespace app +} // namespace viam +static ::_pb::Metadata file_level_metadata_app_2fdata_2fv1_2fdata_2eproto[13]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_app_2fdata_2fv1_2fdata_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_app_2fdata_2fv1_2fdata_2eproto = nullptr; + +const uint32_t TableStruct_app_2fdata_2fv1_2fdata_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::DataRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::DataRequest, _impl_.filter_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::DataRequest, _impl_.skip_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::DataRequest, _impl_.limit_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::Filter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::Filter, _impl_.component_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::Filter, _impl_.component_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::Filter, _impl_.component_model_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::Filter, _impl_.method_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::Filter, _impl_.tags_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::Filter, _impl_.robot_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::Filter, _impl_.robot_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::Filter, _impl_.part_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::Filter, _impl_.part_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::Filter, _impl_.location_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::Filter, _impl_.org_ids_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::Filter, _impl_.mime_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::Filter, _impl_.interval_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::CaptureMetadata_MethodParametersEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::CaptureMetadata_MethodParametersEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::CaptureMetadata_MethodParametersEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::CaptureMetadata_MethodParametersEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::CaptureMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::CaptureMetadata, _impl_.org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::CaptureMetadata, _impl_.location_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::CaptureMetadata, _impl_.robot_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::CaptureMetadata, _impl_.robot_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::CaptureMetadata, _impl_.part_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::CaptureMetadata, _impl_.part_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::CaptureMetadata, _impl_.component_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::CaptureMetadata, _impl_.component_model_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::CaptureMetadata, _impl_.component_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::CaptureMetadata, _impl_.method_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::CaptureMetadata, _impl_.method_parameters_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::CaptureMetadata, _impl_.tags_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::CaptureMetadata, _impl_.mime_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::CaptureInterval, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::CaptureInterval, _impl_.start_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::CaptureInterval, _impl_.end_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::TabularDataByFilterRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::TabularDataByFilterRequest, _impl_.data_request_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::TabularDataByFilterRequest, _impl_.count_only_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::TabularDataByFilterResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::TabularDataByFilterResponse, _impl_.metadata_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::TabularDataByFilterResponse, _impl_.data_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::TabularDataByFilterResponse, _impl_.count_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::TabularData, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::TabularData, _impl_.data_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::TabularData, _impl_.metadata_index_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::TabularData, _impl_.time_requested_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::TabularData, _impl_.time_received_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryData, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryData, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryData, _impl_.uri_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryData, _impl_.binary_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryData, _impl_.metadata_index_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryData, _impl_.time_requested_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryData, _impl_.time_received_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryData, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryDataByFilterRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryDataByFilterRequest, _impl_.data_request_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryDataByFilterRequest, _impl_.include_binary_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryDataByFilterRequest, _impl_.count_only_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryDataByFilterResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryDataByFilterResponse, _impl_.metadata_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryDataByFilterResponse, _impl_.data_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryDataByFilterResponse, _impl_.count_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryDataByIDsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryDataByIDsRequest, _impl_.file_ids_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryDataByIDsRequest, _impl_.include_binary_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryDataByIDsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryDataByIDsResponse, _impl_.metadata_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryDataByIDsResponse, _impl_.data_), + PROTOBUF_FIELD_OFFSET(::viam::app::data::v1::BinaryDataByIDsResponse, _impl_.count_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::app::data::v1::DataRequest)}, + { 9, -1, -1, sizeof(::viam::app::data::v1::Filter)}, + { 28, 36, -1, sizeof(::viam::app::data::v1::CaptureMetadata_MethodParametersEntry_DoNotUse)}, + { 38, -1, -1, sizeof(::viam::app::data::v1::CaptureMetadata)}, + { 57, -1, -1, sizeof(::viam::app::data::v1::CaptureInterval)}, + { 65, -1, -1, sizeof(::viam::app::data::v1::TabularDataByFilterRequest)}, + { 73, -1, -1, sizeof(::viam::app::data::v1::TabularDataByFilterResponse)}, + { 82, -1, -1, sizeof(::viam::app::data::v1::TabularData)}, + { 92, -1, -1, sizeof(::viam::app::data::v1::BinaryData)}, + { 105, -1, -1, sizeof(::viam::app::data::v1::BinaryDataByFilterRequest)}, + { 114, -1, -1, sizeof(::viam::app::data::v1::BinaryDataByFilterResponse)}, + { 123, -1, -1, sizeof(::viam::app::data::v1::BinaryDataByIDsRequest)}, + { 131, -1, -1, sizeof(::viam::app::data::v1::BinaryDataByIDsResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::app::data::v1::_DataRequest_default_instance_._instance, + &::viam::app::data::v1::_Filter_default_instance_._instance, + &::viam::app::data::v1::_CaptureMetadata_MethodParametersEntry_DoNotUse_default_instance_._instance, + &::viam::app::data::v1::_CaptureMetadata_default_instance_._instance, + &::viam::app::data::v1::_CaptureInterval_default_instance_._instance, + &::viam::app::data::v1::_TabularDataByFilterRequest_default_instance_._instance, + &::viam::app::data::v1::_TabularDataByFilterResponse_default_instance_._instance, + &::viam::app::data::v1::_TabularData_default_instance_._instance, + &::viam::app::data::v1::_BinaryData_default_instance_._instance, + &::viam::app::data::v1::_BinaryDataByFilterRequest_default_instance_._instance, + &::viam::app::data::v1::_BinaryDataByFilterResponse_default_instance_._instance, + &::viam::app::data::v1::_BinaryDataByIDsRequest_default_instance_._instance, + &::viam::app::data::v1::_BinaryDataByIDsResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_app_2fdata_2fv1_2fdata_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\026app/data/v1/data.proto\022\020viam.app.data." + "v1\032\031google/protobuf/any.proto\032\034google/pr" + "otobuf/struct.proto\032\037google/protobuf/tim" + "estamp.proto\"i\n\013DataRequest\0220\n\006filter\030\001 " + "\001(\0132\030.viam.app.data.v1.FilterR\006filter\022\022\n" + "\004skip\030\002 \001(\003R\004skip\022\024\n\005limit\030\003 \001(\003R\005limit\"" + "\261\003\n\006Filter\022%\n\016component_name\030\001 \001(\tR\rcomp" + "onentName\022%\n\016component_type\030\002 \001(\tR\rcompo" + "nentType\022\'\n\017component_model\030\003 \001(\tR\016compo" + "nentModel\022\026\n\006method\030\004 \001(\tR\006method\022\022\n\004tag" + "s\030\005 \003(\tR\004tags\022\035\n\nrobot_name\030\006 \001(\tR\trobot" + "Name\022\031\n\010robot_id\030\007 \001(\tR\007robotId\022\033\n\tpart_" + "name\030\010 \001(\tR\010partName\022\027\n\007part_id\030\t \001(\tR\006p" + "artId\022\037\n\013location_id\030\n \001(\tR\nlocationId\022\027" + "\n\007org_ids\030\013 \003(\tR\006orgIds\022\033\n\tmime_type\030\014 \003" + "(\tR\010mimeType\022=\n\010interval\030\r \001(\0132!.viam.ap" + "p.data.v1.CaptureIntervalR\010interval\"\303\004\n\017" + "CaptureMetadata\022\025\n\006org_id\030\001 \001(\tR\005orgId\022\037" + "\n\013location_id\030\002 \001(\tR\nlocationId\022\035\n\nrobot" + "_name\030\003 \001(\tR\trobotName\022\031\n\010robot_id\030\004 \001(\t" + "R\007robotId\022\033\n\tpart_name\030\005 \001(\tR\010partName\022\027" + "\n\007part_id\030\006 \001(\tR\006partId\022%\n\016component_typ" + "e\030\007 \001(\tR\rcomponentType\022\'\n\017component_mode" + "l\030\010 \001(\tR\016componentModel\022%\n\016component_nam" + "e\030\t \001(\tR\rcomponentName\022\037\n\013method_name\030\n " + "\001(\tR\nmethodName\022d\n\021method_parameters\030\013 \003" + "(\01327.viam.app.data.v1.CaptureMetadata.Me" + "thodParametersEntryR\020methodParameters\022\022\n" + "\004tags\030\014 \003(\tR\004tags\022\033\n\tmime_type\030\r \001(\tR\010mi" + "meType\032Y\n\025MethodParametersEntry\022\020\n\003key\030\001" + " \001(\tR\003key\022*\n\005value\030\002 \001(\0132\024.google.protob" + "uf.AnyR\005value:\0028\001\"q\n\017CaptureInterval\0220\n\005" + "start\030\001 \001(\0132\032.google.protobuf.TimestampR" + "\005start\022,\n\003end\030\002 \001(\0132\032.google.protobuf.Ti" + "mestampR\003end\"}\n\032TabularDataByFilterReque" + "st\022@\n\014data_request\030\001 \001(\0132\035.viam.app.data" + ".v1.DataRequestR\013dataRequest\022\035\n\ncount_on" + "ly\030\002 \001(\010R\tcountOnly\"\245\001\n\033TabularDataByFil" + "terResponse\022=\n\010metadata\030\001 \003(\0132!.viam.app" + ".data.v1.CaptureMetadataR\010metadata\0221\n\004da" + "ta\030\002 \003(\0132\035.viam.app.data.v1.TabularDataR" + "\004data\022\024\n\005count\030\003 \001(\003R\005count\"\345\001\n\013TabularD" + "ata\022+\n\004data\030\001 \001(\0132\027.google.protobuf.Stru" + "ctR\004data\022%\n\016metadata_index\030\002 \001(\005R\rmetada" + "taIndex\022A\n\016time_requested\030\003 \001(\0132\032.google" + ".protobuf.TimestampR\rtimeRequested\022\?\n\rti" + "me_received\030\004 \001(\0132\032.google.protobuf.Time" + "stampR\014timeReceived\"\205\002\n\nBinaryData\022\016\n\002id" + "\030\001 \001(\tR\002id\022\020\n\003uri\030\002 \001(\tR\003uri\022\026\n\006binary\030\003" + " \001(\014R\006binary\022%\n\016metadata_index\030\004 \001(\005R\rme" + "tadataIndex\022A\n\016time_requested\030\005 \001(\0132\032.go" + "ogle.protobuf.TimestampR\rtimeRequested\022\?" + "\n\rtime_received\030\006 \001(\0132\032.google.protobuf." + "TimestampR\014timeReceived\022\022\n\004name\030\007 \001(\tR\004n" + "ame\"\243\001\n\031BinaryDataByFilterRequest\022@\n\014dat" + "a_request\030\001 \001(\0132\035.viam.app.data.v1.DataR" + "equestR\013dataRequest\022%\n\016include_binary\030\002 " + "\001(\010R\rincludeBinary\022\035\n\ncount_only\030\003 \001(\010R\t" + "countOnly\"\243\001\n\032BinaryDataByFilterResponse" + "\022=\n\010metadata\030\001 \003(\0132!.viam.app.data.v1.Ca" + "ptureMetadataR\010metadata\0220\n\004data\030\002 \003(\0132\034." + "viam.app.data.v1.BinaryDataR\004data\022\024\n\005cou" + "nt\030\003 \001(\003R\005count\"Z\n\026BinaryDataByIDsReques" + "t\022\031\n\010file_ids\030\001 \003(\tR\007fileIds\022%\n\016include_" + "binary\030\002 \001(\010R\rincludeBinary\"\240\001\n\027BinaryDa" + "taByIDsResponse\022=\n\010metadata\030\001 \003(\0132!.viam" + ".app.data.v1.CaptureMetadataR\010metadata\0220" + "\n\004data\030\002 \003(\0132\034.viam.app.data.v1.BinaryDa" + "taR\004data\022\024\n\005count\030\003 \001(\003R\005count2\332\002\n\013DataS" + "ervice\022r\n\023TabularDataByFilter\022,.viam.app" + ".data.v1.TabularDataByFilterRequest\032-.vi" + "am.app.data.v1.TabularDataByFilterRespon" + "se\022o\n\022BinaryDataByFilter\022+.viam.app.data" + ".v1.BinaryDataByFilterRequest\032,.viam.app" + ".data.v1.BinaryDataByFilterResponse\022f\n\017B" + "inaryDataByIDs\022(.viam.app.data.v1.Binary" + "DataByIDsRequest\032).viam.app.data.v1.Bina" + "ryDataByIDsResponseB\035Z\033go.viam.com/api/a" + "pp/data/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_app_2fdata_2fv1_2fdata_2eproto_deps[3] = { + &::descriptor_table_google_2fprotobuf_2fany_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, +}; +static ::_pbi::once_flag descriptor_table_app_2fdata_2fv1_2fdata_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_app_2fdata_2fv1_2fdata_2eproto = { + false, false, 3138, descriptor_table_protodef_app_2fdata_2fv1_2fdata_2eproto, + "app/data/v1/data.proto", + &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_once, descriptor_table_app_2fdata_2fv1_2fdata_2eproto_deps, 3, 13, + schemas, file_default_instances, TableStruct_app_2fdata_2fv1_2fdata_2eproto::offsets, + file_level_metadata_app_2fdata_2fv1_2fdata_2eproto, file_level_enum_descriptors_app_2fdata_2fv1_2fdata_2eproto, + file_level_service_descriptors_app_2fdata_2fv1_2fdata_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_app_2fdata_2fv1_2fdata_2eproto_getter() { + return &descriptor_table_app_2fdata_2fv1_2fdata_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_app_2fdata_2fv1_2fdata_2eproto(&descriptor_table_app_2fdata_2fv1_2fdata_2eproto); +namespace viam { +namespace app { +namespace data { +namespace v1 { + +// =================================================================== + +class DataRequest::_Internal { + public: + static const ::viam::app::data::v1::Filter& filter(const DataRequest* msg); +}; + +const ::viam::app::data::v1::Filter& +DataRequest::_Internal::filter(const DataRequest* msg) { + return *msg->_impl_.filter_; +} +DataRequest::DataRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.data.v1.DataRequest) +} +DataRequest::DataRequest(const DataRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DataRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.filter_){nullptr} + , decltype(_impl_.skip_){} + , decltype(_impl_.limit_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_filter()) { + _this->_impl_.filter_ = new ::viam::app::data::v1::Filter(*from._impl_.filter_); + } + ::memcpy(&_impl_.skip_, &from._impl_.skip_, + static_cast(reinterpret_cast(&_impl_.limit_) - + reinterpret_cast(&_impl_.skip_)) + sizeof(_impl_.limit_)); + // @@protoc_insertion_point(copy_constructor:viam.app.data.v1.DataRequest) +} + +inline void DataRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.filter_){nullptr} + , decltype(_impl_.skip_){int64_t{0}} + , decltype(_impl_.limit_){int64_t{0}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +DataRequest::~DataRequest() { + // @@protoc_insertion_point(destructor:viam.app.data.v1.DataRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DataRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.filter_; +} + +void DataRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DataRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.data.v1.DataRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.filter_ != nullptr) { + delete _impl_.filter_; + } + _impl_.filter_ = nullptr; + ::memset(&_impl_.skip_, 0, static_cast( + reinterpret_cast(&_impl_.limit_) - + reinterpret_cast(&_impl_.skip_)) + sizeof(_impl_.limit_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DataRequest::_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) { + // .viam.app.data.v1.Filter filter = 1 [json_name = "filter"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_filter(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 skip = 2 [json_name = "skip"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.skip_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 limit = 3 [json_name = "limit"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.limit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* DataRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.data.v1.DataRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.data.v1.Filter filter = 1 [json_name = "filter"]; + if (this->_internal_has_filter()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::filter(this), + _Internal::filter(this).GetCachedSize(), target, stream); + } + + // int64 skip = 2 [json_name = "skip"]; + if (this->_internal_skip() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_skip(), target); + } + + // int64 limit = 3 [json_name = "limit"]; + if (this->_internal_limit() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_limit(), 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.data.v1.DataRequest) + return target; +} + +size_t DataRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.data.v1.DataRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.app.data.v1.Filter filter = 1 [json_name = "filter"]; + if (this->_internal_has_filter()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.filter_); + } + + // int64 skip = 2 [json_name = "skip"]; + if (this->_internal_skip() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_skip()); + } + + // int64 limit = 3 [json_name = "limit"]; + if (this->_internal_limit() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_limit()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DataRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DataRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DataRequest::GetClassData() const { return &_class_data_; } + + +void DataRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.data.v1.DataRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_filter()) { + _this->_internal_mutable_filter()->::viam::app::data::v1::Filter::MergeFrom( + from._internal_filter()); + } + if (from._internal_skip() != 0) { + _this->_internal_set_skip(from._internal_skip()); + } + if (from._internal_limit() != 0) { + _this->_internal_set_limit(from._internal_limit()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DataRequest::CopyFrom(const DataRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.data.v1.DataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DataRequest::IsInitialized() const { + return true; +} + +void DataRequest::InternalSwap(DataRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(DataRequest, _impl_.limit_) + + sizeof(DataRequest::_impl_.limit_) + - PROTOBUF_FIELD_OFFSET(DataRequest, _impl_.filter_)>( + reinterpret_cast(&_impl_.filter_), + reinterpret_cast(&other->_impl_.filter_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DataRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_getter, &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_once, + file_level_metadata_app_2fdata_2fv1_2fdata_2eproto[0]); +} + +// =================================================================== + +class Filter::_Internal { + public: + static const ::viam::app::data::v1::CaptureInterval& interval(const Filter* msg); +}; + +const ::viam::app::data::v1::CaptureInterval& +Filter::_Internal::interval(const Filter* msg) { + return *msg->_impl_.interval_; +} +Filter::Filter(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.data.v1.Filter) +} +Filter::Filter(const Filter& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Filter* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.tags_){from._impl_.tags_} + , decltype(_impl_.org_ids_){from._impl_.org_ids_} + , decltype(_impl_.mime_type_){from._impl_.mime_type_} + , decltype(_impl_.component_name_){} + , decltype(_impl_.component_type_){} + , decltype(_impl_.component_model_){} + , decltype(_impl_.method_){} + , decltype(_impl_.robot_name_){} + , decltype(_impl_.robot_id_){} + , decltype(_impl_.part_name_){} + , decltype(_impl_.part_id_){} + , decltype(_impl_.location_id_){} + , decltype(_impl_.interval_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.component_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_name().empty()) { + _this->_impl_.component_name_.Set(from._internal_component_name(), + _this->GetArenaForAllocation()); + } + _impl_.component_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_type().empty()) { + _this->_impl_.component_type_.Set(from._internal_component_type(), + _this->GetArenaForAllocation()); + } + _impl_.component_model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_model().empty()) { + _this->_impl_.component_model_.Set(from._internal_component_model(), + _this->GetArenaForAllocation()); + } + _impl_.method_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_method().empty()) { + _this->_impl_.method_.Set(from._internal_method(), + _this->GetArenaForAllocation()); + } + _impl_.robot_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_robot_name().empty()) { + _this->_impl_.robot_name_.Set(from._internal_robot_name(), + _this->GetArenaForAllocation()); + } + _impl_.robot_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_robot_id().empty()) { + _this->_impl_.robot_id_.Set(from._internal_robot_id(), + _this->GetArenaForAllocation()); + } + _impl_.part_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_part_name().empty()) { + _this->_impl_.part_name_.Set(from._internal_part_name(), + _this->GetArenaForAllocation()); + } + _impl_.part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_part_id().empty()) { + _this->_impl_.part_id_.Set(from._internal_part_id(), + _this->GetArenaForAllocation()); + } + _impl_.location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + _this->_impl_.location_id_.Set(from._internal_location_id(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_interval()) { + _this->_impl_.interval_ = new ::viam::app::data::v1::CaptureInterval(*from._impl_.interval_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.data.v1.Filter) +} + +inline void Filter::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.tags_){arena} + , decltype(_impl_.org_ids_){arena} + , decltype(_impl_.mime_type_){arena} + , decltype(_impl_.component_name_){} + , decltype(_impl_.component_type_){} + , decltype(_impl_.component_model_){} + , decltype(_impl_.method_){} + , decltype(_impl_.robot_name_){} + , decltype(_impl_.robot_id_){} + , decltype(_impl_.part_name_){} + , decltype(_impl_.part_id_){} + , decltype(_impl_.location_id_){} + , decltype(_impl_.interval_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.component_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Filter::~Filter() { + // @@protoc_insertion_point(destructor:viam.app.data.v1.Filter) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Filter::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.tags_.~RepeatedPtrField(); + _impl_.org_ids_.~RepeatedPtrField(); + _impl_.mime_type_.~RepeatedPtrField(); + _impl_.component_name_.Destroy(); + _impl_.component_type_.Destroy(); + _impl_.component_model_.Destroy(); + _impl_.method_.Destroy(); + _impl_.robot_name_.Destroy(); + _impl_.robot_id_.Destroy(); + _impl_.part_name_.Destroy(); + _impl_.part_id_.Destroy(); + _impl_.location_id_.Destroy(); + if (this != internal_default_instance()) delete _impl_.interval_; +} + +void Filter::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Filter::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.data.v1.Filter) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.tags_.Clear(); + _impl_.org_ids_.Clear(); + _impl_.mime_type_.Clear(); + _impl_.component_name_.ClearToEmpty(); + _impl_.component_type_.ClearToEmpty(); + _impl_.component_model_.ClearToEmpty(); + _impl_.method_.ClearToEmpty(); + _impl_.robot_name_.ClearToEmpty(); + _impl_.robot_id_.ClearToEmpty(); + _impl_.part_name_.ClearToEmpty(); + _impl_.part_id_.ClearToEmpty(); + _impl_.location_id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.interval_ != nullptr) { + delete _impl_.interval_; + } + _impl_.interval_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Filter::_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 component_name = 1 [json_name = "componentName"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_component_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.Filter.component_name")); + } else + goto handle_unusual; + continue; + // string component_type = 2 [json_name = "componentType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_component_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.Filter.component_type")); + } else + goto handle_unusual; + continue; + // string component_model = 3 [json_name = "componentModel"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_component_model(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.Filter.component_model")); + } else + goto handle_unusual; + continue; + // string method = 4 [json_name = "method"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_method(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.Filter.method")); + } else + goto handle_unusual; + continue; + // repeated string tags = 5 [json_name = "tags"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_tags(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.Filter.tags")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); + } else + goto handle_unusual; + continue; + // string robot_name = 6 [json_name = "robotName"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_robot_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.Filter.robot_name")); + } else + goto handle_unusual; + continue; + // string robot_id = 7 [json_name = "robotId"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_robot_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.Filter.robot_id")); + } else + goto handle_unusual; + continue; + // string part_name = 8 [json_name = "partName"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + auto str = _internal_mutable_part_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.Filter.part_name")); + } else + goto handle_unusual; + continue; + // string part_id = 9 [json_name = "partId"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + auto str = _internal_mutable_part_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.Filter.part_id")); + } else + goto handle_unusual; + continue; + // string location_id = 10 [json_name = "locationId"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.Filter.location_id")); + } else + goto handle_unusual; + continue; + // repeated string org_ids = 11 [json_name = "orgIds"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_org_ids(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.Filter.org_ids")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr)); + } else + goto handle_unusual; + continue; + // repeated string mime_type = 12 [json_name = "mimeType"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.Filter.mime_type")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<98>(ptr)); + } else + goto handle_unusual; + continue; + // .viam.app.data.v1.CaptureInterval interval = 13 [json_name = "interval"]; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { + ptr = ctx->ParseMessage(_internal_mutable_interval(), 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* Filter::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.data.v1.Filter) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string component_name = 1 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_name().data(), static_cast(this->_internal_component_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.Filter.component_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_component_name(), target); + } + + // string component_type = 2 [json_name = "componentType"]; + if (!this->_internal_component_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_type().data(), static_cast(this->_internal_component_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.Filter.component_type"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_component_type(), target); + } + + // string component_model = 3 [json_name = "componentModel"]; + if (!this->_internal_component_model().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_model().data(), static_cast(this->_internal_component_model().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.Filter.component_model"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_component_model(), target); + } + + // string method = 4 [json_name = "method"]; + if (!this->_internal_method().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_method().data(), static_cast(this->_internal_method().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.Filter.method"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_method(), target); + } + + // repeated string tags = 5 [json_name = "tags"]; + for (int i = 0, n = this->_internal_tags_size(); i < n; i++) { + const auto& s = this->_internal_tags(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.Filter.tags"); + target = stream->WriteString(5, s, target); + } + + // string robot_name = 6 [json_name = "robotName"]; + if (!this->_internal_robot_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_robot_name().data(), static_cast(this->_internal_robot_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.Filter.robot_name"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_robot_name(), target); + } + + // string robot_id = 7 [json_name = "robotId"]; + if (!this->_internal_robot_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_robot_id().data(), static_cast(this->_internal_robot_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.Filter.robot_id"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_robot_id(), target); + } + + // string part_name = 8 [json_name = "partName"]; + if (!this->_internal_part_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_part_name().data(), static_cast(this->_internal_part_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.Filter.part_name"); + target = stream->WriteStringMaybeAliased( + 8, this->_internal_part_name(), target); + } + + // string part_id = 9 [json_name = "partId"]; + if (!this->_internal_part_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_part_id().data(), static_cast(this->_internal_part_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.Filter.part_id"); + target = stream->WriteStringMaybeAliased( + 9, this->_internal_part_id(), target); + } + + // string location_id = 10 [json_name = "locationId"]; + if (!this->_internal_location_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.Filter.location_id"); + target = stream->WriteStringMaybeAliased( + 10, this->_internal_location_id(), target); + } + + // repeated string org_ids = 11 [json_name = "orgIds"]; + for (int i = 0, n = this->_internal_org_ids_size(); i < n; i++) { + const auto& s = this->_internal_org_ids(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.Filter.org_ids"); + target = stream->WriteString(11, s, target); + } + + // repeated string mime_type = 12 [json_name = "mimeType"]; + for (int i = 0, n = this->_internal_mime_type_size(); i < n; i++) { + const auto& s = this->_internal_mime_type(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.Filter.mime_type"); + target = stream->WriteString(12, s, target); + } + + // .viam.app.data.v1.CaptureInterval interval = 13 [json_name = "interval"]; + if (this->_internal_has_interval()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(13, _Internal::interval(this), + _Internal::interval(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.data.v1.Filter) + return target; +} + +size_t Filter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.data.v1.Filter) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string tags = 5 [json_name = "tags"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.tags_.size()); + for (int i = 0, n = _impl_.tags_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.tags_.Get(i)); + } + + // repeated string org_ids = 11 [json_name = "orgIds"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.org_ids_.size()); + for (int i = 0, n = _impl_.org_ids_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.org_ids_.Get(i)); + } + + // repeated string mime_type = 12 [json_name = "mimeType"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.mime_type_.size()); + for (int i = 0, n = _impl_.mime_type_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.mime_type_.Get(i)); + } + + // string component_name = 1 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_name()); + } + + // string component_type = 2 [json_name = "componentType"]; + if (!this->_internal_component_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_type()); + } + + // string component_model = 3 [json_name = "componentModel"]; + if (!this->_internal_component_model().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_model()); + } + + // string method = 4 [json_name = "method"]; + if (!this->_internal_method().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_method()); + } + + // string robot_name = 6 [json_name = "robotName"]; + if (!this->_internal_robot_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_robot_name()); + } + + // string robot_id = 7 [json_name = "robotId"]; + if (!this->_internal_robot_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_robot_id()); + } + + // string part_name = 8 [json_name = "partName"]; + if (!this->_internal_part_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_part_name()); + } + + // string part_id = 9 [json_name = "partId"]; + if (!this->_internal_part_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_part_id()); + } + + // string location_id = 10 [json_name = "locationId"]; + if (!this->_internal_location_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); + } + + // .viam.app.data.v1.CaptureInterval interval = 13 [json_name = "interval"]; + if (this->_internal_has_interval()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.interval_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Filter::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Filter::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Filter::GetClassData() const { return &_class_data_; } + + +void Filter::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.data.v1.Filter) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.tags_.MergeFrom(from._impl_.tags_); + _this->_impl_.org_ids_.MergeFrom(from._impl_.org_ids_); + _this->_impl_.mime_type_.MergeFrom(from._impl_.mime_type_); + if (!from._internal_component_name().empty()) { + _this->_internal_set_component_name(from._internal_component_name()); + } + if (!from._internal_component_type().empty()) { + _this->_internal_set_component_type(from._internal_component_type()); + } + if (!from._internal_component_model().empty()) { + _this->_internal_set_component_model(from._internal_component_model()); + } + if (!from._internal_method().empty()) { + _this->_internal_set_method(from._internal_method()); + } + if (!from._internal_robot_name().empty()) { + _this->_internal_set_robot_name(from._internal_robot_name()); + } + if (!from._internal_robot_id().empty()) { + _this->_internal_set_robot_id(from._internal_robot_id()); + } + if (!from._internal_part_name().empty()) { + _this->_internal_set_part_name(from._internal_part_name()); + } + if (!from._internal_part_id().empty()) { + _this->_internal_set_part_id(from._internal_part_id()); + } + if (!from._internal_location_id().empty()) { + _this->_internal_set_location_id(from._internal_location_id()); + } + if (from._internal_has_interval()) { + _this->_internal_mutable_interval()->::viam::app::data::v1::CaptureInterval::MergeFrom( + from._internal_interval()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Filter::CopyFrom(const Filter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.data.v1.Filter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Filter::IsInitialized() const { + return true; +} + +void Filter::InternalSwap(Filter* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.tags_.InternalSwap(&other->_impl_.tags_); + _impl_.org_ids_.InternalSwap(&other->_impl_.org_ids_); + _impl_.mime_type_.InternalSwap(&other->_impl_.mime_type_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.component_name_, lhs_arena, + &other->_impl_.component_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.component_type_, lhs_arena, + &other->_impl_.component_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.component_model_, lhs_arena, + &other->_impl_.component_model_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.method_, lhs_arena, + &other->_impl_.method_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.robot_name_, lhs_arena, + &other->_impl_.robot_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.robot_id_, lhs_arena, + &other->_impl_.robot_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.part_name_, lhs_arena, + &other->_impl_.part_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.part_id_, lhs_arena, + &other->_impl_.part_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.location_id_, lhs_arena, + &other->_impl_.location_id_, rhs_arena + ); + swap(_impl_.interval_, other->_impl_.interval_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Filter::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_getter, &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_once, + file_level_metadata_app_2fdata_2fv1_2fdata_2eproto[1]); +} + +// =================================================================== + +CaptureMetadata_MethodParametersEntry_DoNotUse::CaptureMetadata_MethodParametersEntry_DoNotUse() {} +CaptureMetadata_MethodParametersEntry_DoNotUse::CaptureMetadata_MethodParametersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void CaptureMetadata_MethodParametersEntry_DoNotUse::MergeFrom(const CaptureMetadata_MethodParametersEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata CaptureMetadata_MethodParametersEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_getter, &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_once, + file_level_metadata_app_2fdata_2fv1_2fdata_2eproto[2]); +} + +// =================================================================== + +class CaptureMetadata::_Internal { + public: +}; + +void CaptureMetadata::clear_method_parameters() { + _impl_.method_parameters_.Clear(); +} +CaptureMetadata::CaptureMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &CaptureMetadata::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:viam.app.data.v1.CaptureMetadata) +} +CaptureMetadata::CaptureMetadata(const CaptureMetadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + CaptureMetadata* const _this = this; (void)_this; + new (&_impl_) Impl_{ + /*decltype(_impl_.method_parameters_)*/{} + , decltype(_impl_.tags_){from._impl_.tags_} + , decltype(_impl_.org_id_){} + , decltype(_impl_.location_id_){} + , decltype(_impl_.robot_name_){} + , decltype(_impl_.robot_id_){} + , decltype(_impl_.part_name_){} + , decltype(_impl_.part_id_){} + , decltype(_impl_.component_type_){} + , decltype(_impl_.component_model_){} + , decltype(_impl_.component_name_){} + , decltype(_impl_.method_name_){} + , decltype(_impl_.mime_type_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.method_parameters_.MergeFrom(from._impl_.method_parameters_); + _impl_.org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + _this->_impl_.org_id_.Set(from._internal_org_id(), + _this->GetArenaForAllocation()); + } + _impl_.location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + _this->_impl_.location_id_.Set(from._internal_location_id(), + _this->GetArenaForAllocation()); + } + _impl_.robot_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_robot_name().empty()) { + _this->_impl_.robot_name_.Set(from._internal_robot_name(), + _this->GetArenaForAllocation()); + } + _impl_.robot_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_robot_id().empty()) { + _this->_impl_.robot_id_.Set(from._internal_robot_id(), + _this->GetArenaForAllocation()); + } + _impl_.part_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_part_name().empty()) { + _this->_impl_.part_name_.Set(from._internal_part_name(), + _this->GetArenaForAllocation()); + } + _impl_.part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_part_id().empty()) { + _this->_impl_.part_id_.Set(from._internal_part_id(), + _this->GetArenaForAllocation()); + } + _impl_.component_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_type().empty()) { + _this->_impl_.component_type_.Set(from._internal_component_type(), + _this->GetArenaForAllocation()); + } + _impl_.component_model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_model().empty()) { + _this->_impl_.component_model_.Set(from._internal_component_model(), + _this->GetArenaForAllocation()); + } + _impl_.component_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_name().empty()) { + _this->_impl_.component_name_.Set(from._internal_component_name(), + _this->GetArenaForAllocation()); + } + _impl_.method_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_method_name().empty()) { + _this->_impl_.method_name_.Set(from._internal_method_name(), + _this->GetArenaForAllocation()); + } + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + _this->_impl_.mime_type_.Set(from._internal_mime_type(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.data.v1.CaptureMetadata) +} + +inline void CaptureMetadata::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + /*decltype(_impl_.method_parameters_)*/{::_pbi::ArenaInitialized(), arena} + , decltype(_impl_.tags_){arena} + , decltype(_impl_.org_id_){} + , decltype(_impl_.location_id_){} + , decltype(_impl_.robot_name_){} + , decltype(_impl_.robot_id_){} + , decltype(_impl_.part_name_){} + , decltype(_impl_.part_id_){} + , decltype(_impl_.component_type_){} + , decltype(_impl_.component_model_){} + , decltype(_impl_.component_name_){} + , decltype(_impl_.method_name_){} + , decltype(_impl_.mime_type_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +CaptureMetadata::~CaptureMetadata() { + // @@protoc_insertion_point(destructor:viam.app.data.v1.CaptureMetadata) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void CaptureMetadata::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.method_parameters_.Destruct(); + _impl_.method_parameters_.~MapField(); + _impl_.tags_.~RepeatedPtrField(); + _impl_.org_id_.Destroy(); + _impl_.location_id_.Destroy(); + _impl_.robot_name_.Destroy(); + _impl_.robot_id_.Destroy(); + _impl_.part_name_.Destroy(); + _impl_.part_id_.Destroy(); + _impl_.component_type_.Destroy(); + _impl_.component_model_.Destroy(); + _impl_.component_name_.Destroy(); + _impl_.method_name_.Destroy(); + _impl_.mime_type_.Destroy(); +} + +void CaptureMetadata::ArenaDtor(void* object) { + CaptureMetadata* _this = reinterpret_cast< CaptureMetadata* >(object); + _this->_impl_.method_parameters_.Destruct(); +} +void CaptureMetadata::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void CaptureMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.data.v1.CaptureMetadata) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.method_parameters_.Clear(); + _impl_.tags_.Clear(); + _impl_.org_id_.ClearToEmpty(); + _impl_.location_id_.ClearToEmpty(); + _impl_.robot_name_.ClearToEmpty(); + _impl_.robot_id_.ClearToEmpty(); + _impl_.part_name_.ClearToEmpty(); + _impl_.part_id_.ClearToEmpty(); + _impl_.component_type_.ClearToEmpty(); + _impl_.component_model_.ClearToEmpty(); + _impl_.component_name_.ClearToEmpty(); + _impl_.method_name_.ClearToEmpty(); + _impl_.mime_type_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CaptureMetadata::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.CaptureMetadata.org_id")); + } else + goto handle_unusual; + continue; + // string location_id = 2 [json_name = "locationId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.CaptureMetadata.location_id")); + } else + goto handle_unusual; + continue; + // string robot_name = 3 [json_name = "robotName"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_robot_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.CaptureMetadata.robot_name")); + } else + goto handle_unusual; + continue; + // string robot_id = 4 [json_name = "robotId"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_robot_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.CaptureMetadata.robot_id")); + } else + goto handle_unusual; + continue; + // string part_name = 5 [json_name = "partName"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_part_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.CaptureMetadata.part_name")); + } else + goto handle_unusual; + continue; + // string part_id = 6 [json_name = "partId"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_part_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.CaptureMetadata.part_id")); + } else + goto handle_unusual; + continue; + // string component_type = 7 [json_name = "componentType"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_component_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.CaptureMetadata.component_type")); + } else + goto handle_unusual; + continue; + // string component_model = 8 [json_name = "componentModel"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + auto str = _internal_mutable_component_model(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.CaptureMetadata.component_model")); + } else + goto handle_unusual; + continue; + // string component_name = 9 [json_name = "componentName"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + auto str = _internal_mutable_component_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.CaptureMetadata.component_name")); + } else + goto handle_unusual; + continue; + // string method_name = 10 [json_name = "methodName"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + auto str = _internal_mutable_method_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.CaptureMetadata.method_name")); + } else + goto handle_unusual; + continue; + // map method_parameters = 11 [json_name = "methodParameters"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.method_parameters_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr)); + } else + goto handle_unusual; + continue; + // repeated string tags = 12 [json_name = "tags"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_tags(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.CaptureMetadata.tags")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<98>(ptr)); + } else + goto handle_unusual; + continue; + // string mime_type = 13 [json_name = "mimeType"]; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.CaptureMetadata.mime_type")); + } 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* CaptureMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.data.v1.CaptureMetadata) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.CaptureMetadata.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); + } + + // string location_id = 2 [json_name = "locationId"]; + if (!this->_internal_location_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.CaptureMetadata.location_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_location_id(), target); + } + + // string robot_name = 3 [json_name = "robotName"]; + if (!this->_internal_robot_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_robot_name().data(), static_cast(this->_internal_robot_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.CaptureMetadata.robot_name"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_robot_name(), target); + } + + // string robot_id = 4 [json_name = "robotId"]; + if (!this->_internal_robot_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_robot_id().data(), static_cast(this->_internal_robot_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.CaptureMetadata.robot_id"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_robot_id(), target); + } + + // string part_name = 5 [json_name = "partName"]; + if (!this->_internal_part_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_part_name().data(), static_cast(this->_internal_part_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.CaptureMetadata.part_name"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_part_name(), target); + } + + // string part_id = 6 [json_name = "partId"]; + if (!this->_internal_part_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_part_id().data(), static_cast(this->_internal_part_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.CaptureMetadata.part_id"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_part_id(), target); + } + + // string component_type = 7 [json_name = "componentType"]; + if (!this->_internal_component_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_type().data(), static_cast(this->_internal_component_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.CaptureMetadata.component_type"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_component_type(), target); + } + + // string component_model = 8 [json_name = "componentModel"]; + if (!this->_internal_component_model().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_model().data(), static_cast(this->_internal_component_model().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.CaptureMetadata.component_model"); + target = stream->WriteStringMaybeAliased( + 8, this->_internal_component_model(), target); + } + + // string component_name = 9 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_name().data(), static_cast(this->_internal_component_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.CaptureMetadata.component_name"); + target = stream->WriteStringMaybeAliased( + 9, this->_internal_component_name(), target); + } + + // string method_name = 10 [json_name = "methodName"]; + if (!this->_internal_method_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_method_name().data(), static_cast(this->_internal_method_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.CaptureMetadata.method_name"); + target = stream->WriteStringMaybeAliased( + 10, this->_internal_method_name(), target); + } + + // map method_parameters = 11 [json_name = "methodParameters"]; + if (!this->_internal_method_parameters().empty()) { + using MapType = ::_pb::Map; + using WireHelper = CaptureMetadata_MethodParametersEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_method_parameters(); + 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.app.data.v1.CaptureMetadata.MethodParametersEntry.key"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(11, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(11, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } + } + + // repeated string tags = 12 [json_name = "tags"]; + for (int i = 0, n = this->_internal_tags_size(); i < n; i++) { + const auto& s = this->_internal_tags(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.CaptureMetadata.tags"); + target = stream->WriteString(12, s, target); + } + + // string mime_type = 13 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.CaptureMetadata.mime_type"); + target = stream->WriteStringMaybeAliased( + 13, this->_internal_mime_type(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.data.v1.CaptureMetadata) + return target; +} + +size_t CaptureMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.data.v1.CaptureMetadata) + 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 method_parameters = 11 [json_name = "methodParameters"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_method_parameters_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >::const_iterator + it = this->_internal_method_parameters().begin(); + it != this->_internal_method_parameters().end(); ++it) { + total_size += CaptureMetadata_MethodParametersEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // repeated string tags = 12 [json_name = "tags"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.tags_.size()); + for (int i = 0, n = _impl_.tags_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.tags_.Get(i)); + } + + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); + } + + // string location_id = 2 [json_name = "locationId"]; + if (!this->_internal_location_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); + } + + // string robot_name = 3 [json_name = "robotName"]; + if (!this->_internal_robot_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_robot_name()); + } + + // string robot_id = 4 [json_name = "robotId"]; + if (!this->_internal_robot_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_robot_id()); + } + + // string part_name = 5 [json_name = "partName"]; + if (!this->_internal_part_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_part_name()); + } + + // string part_id = 6 [json_name = "partId"]; + if (!this->_internal_part_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_part_id()); + } + + // string component_type = 7 [json_name = "componentType"]; + if (!this->_internal_component_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_type()); + } + + // string component_model = 8 [json_name = "componentModel"]; + if (!this->_internal_component_model().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_model()); + } + + // string component_name = 9 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_name()); + } + + // string method_name = 10 [json_name = "methodName"]; + if (!this->_internal_method_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_method_name()); + } + + // string mime_type = 13 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CaptureMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + CaptureMetadata::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CaptureMetadata::GetClassData() const { return &_class_data_; } + + +void CaptureMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.data.v1.CaptureMetadata) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.method_parameters_.MergeFrom(from._impl_.method_parameters_); + _this->_impl_.tags_.MergeFrom(from._impl_.tags_); + if (!from._internal_org_id().empty()) { + _this->_internal_set_org_id(from._internal_org_id()); + } + if (!from._internal_location_id().empty()) { + _this->_internal_set_location_id(from._internal_location_id()); + } + if (!from._internal_robot_name().empty()) { + _this->_internal_set_robot_name(from._internal_robot_name()); + } + if (!from._internal_robot_id().empty()) { + _this->_internal_set_robot_id(from._internal_robot_id()); + } + if (!from._internal_part_name().empty()) { + _this->_internal_set_part_name(from._internal_part_name()); + } + if (!from._internal_part_id().empty()) { + _this->_internal_set_part_id(from._internal_part_id()); + } + if (!from._internal_component_type().empty()) { + _this->_internal_set_component_type(from._internal_component_type()); + } + if (!from._internal_component_model().empty()) { + _this->_internal_set_component_model(from._internal_component_model()); + } + if (!from._internal_component_name().empty()) { + _this->_internal_set_component_name(from._internal_component_name()); + } + if (!from._internal_method_name().empty()) { + _this->_internal_set_method_name(from._internal_method_name()); + } + if (!from._internal_mime_type().empty()) { + _this->_internal_set_mime_type(from._internal_mime_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CaptureMetadata::CopyFrom(const CaptureMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.data.v1.CaptureMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CaptureMetadata::IsInitialized() const { + return true; +} + +void CaptureMetadata::InternalSwap(CaptureMetadata* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.method_parameters_.InternalSwap(&other->_impl_.method_parameters_); + _impl_.tags_.InternalSwap(&other->_impl_.tags_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.org_id_, lhs_arena, + &other->_impl_.org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.location_id_, lhs_arena, + &other->_impl_.location_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.robot_name_, lhs_arena, + &other->_impl_.robot_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.robot_id_, lhs_arena, + &other->_impl_.robot_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.part_name_, lhs_arena, + &other->_impl_.part_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.part_id_, lhs_arena, + &other->_impl_.part_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.component_type_, lhs_arena, + &other->_impl_.component_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.component_model_, lhs_arena, + &other->_impl_.component_model_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.component_name_, lhs_arena, + &other->_impl_.component_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.method_name_, lhs_arena, + &other->_impl_.method_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.mime_type_, lhs_arena, + &other->_impl_.mime_type_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CaptureMetadata::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_getter, &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_once, + file_level_metadata_app_2fdata_2fv1_2fdata_2eproto[3]); +} + +// =================================================================== + +class CaptureInterval::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& start(const CaptureInterval* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& end(const CaptureInterval* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +CaptureInterval::_Internal::start(const CaptureInterval* msg) { + return *msg->_impl_.start_; +} +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +CaptureInterval::_Internal::end(const CaptureInterval* msg) { + return *msg->_impl_.end_; +} +void CaptureInterval::clear_start() { + if (GetArenaForAllocation() == nullptr && _impl_.start_ != nullptr) { + delete _impl_.start_; + } + _impl_.start_ = nullptr; +} +void CaptureInterval::clear_end() { + if (GetArenaForAllocation() == nullptr && _impl_.end_ != nullptr) { + delete _impl_.end_; + } + _impl_.end_ = nullptr; +} +CaptureInterval::CaptureInterval(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.data.v1.CaptureInterval) +} +CaptureInterval::CaptureInterval(const CaptureInterval& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + CaptureInterval* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.start_){nullptr} + , decltype(_impl_.end_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_start()) { + _this->_impl_.start_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.start_); + } + if (from._internal_has_end()) { + _this->_impl_.end_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.end_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.data.v1.CaptureInterval) +} + +inline void CaptureInterval::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.start_){nullptr} + , decltype(_impl_.end_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +CaptureInterval::~CaptureInterval() { + // @@protoc_insertion_point(destructor:viam.app.data.v1.CaptureInterval) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CaptureInterval::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.start_; + if (this != internal_default_instance()) delete _impl_.end_; +} + +void CaptureInterval::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void CaptureInterval::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.data.v1.CaptureInterval) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.start_ != nullptr) { + delete _impl_.start_; + } + _impl_.start_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.end_ != nullptr) { + delete _impl_.end_; + } + _impl_.end_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CaptureInterval::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.protobuf.Timestamp start = 1 [json_name = "start"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_start(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp end = 2 [json_name = "end"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_end(), 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* CaptureInterval::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.data.v1.CaptureInterval) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.Timestamp start = 1 [json_name = "start"]; + if (this->_internal_has_start()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::start(this), + _Internal::start(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Timestamp end = 2 [json_name = "end"]; + if (this->_internal_has_end()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::end(this), + _Internal::end(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.data.v1.CaptureInterval) + return target; +} + +size_t CaptureInterval::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.data.v1.CaptureInterval) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.protobuf.Timestamp start = 1 [json_name = "start"]; + if (this->_internal_has_start()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.start_); + } + + // .google.protobuf.Timestamp end = 2 [json_name = "end"]; + if (this->_internal_has_end()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.end_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CaptureInterval::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + CaptureInterval::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CaptureInterval::GetClassData() const { return &_class_data_; } + + +void CaptureInterval::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.data.v1.CaptureInterval) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_start()) { + _this->_internal_mutable_start()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_start()); + } + if (from._internal_has_end()) { + _this->_internal_mutable_end()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_end()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CaptureInterval::CopyFrom(const CaptureInterval& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.data.v1.CaptureInterval) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CaptureInterval::IsInitialized() const { + return true; +} + +void CaptureInterval::InternalSwap(CaptureInterval* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(CaptureInterval, _impl_.end_) + + sizeof(CaptureInterval::_impl_.end_) + - PROTOBUF_FIELD_OFFSET(CaptureInterval, _impl_.start_)>( + reinterpret_cast(&_impl_.start_), + reinterpret_cast(&other->_impl_.start_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CaptureInterval::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_getter, &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_once, + file_level_metadata_app_2fdata_2fv1_2fdata_2eproto[4]); +} + +// =================================================================== + +class TabularDataByFilterRequest::_Internal { + public: + static const ::viam::app::data::v1::DataRequest& data_request(const TabularDataByFilterRequest* msg); +}; + +const ::viam::app::data::v1::DataRequest& +TabularDataByFilterRequest::_Internal::data_request(const TabularDataByFilterRequest* msg) { + return *msg->_impl_.data_request_; +} +TabularDataByFilterRequest::TabularDataByFilterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.data.v1.TabularDataByFilterRequest) +} +TabularDataByFilterRequest::TabularDataByFilterRequest(const TabularDataByFilterRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + TabularDataByFilterRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.data_request_){nullptr} + , decltype(_impl_.count_only_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_data_request()) { + _this->_impl_.data_request_ = new ::viam::app::data::v1::DataRequest(*from._impl_.data_request_); + } + _this->_impl_.count_only_ = from._impl_.count_only_; + // @@protoc_insertion_point(copy_constructor:viam.app.data.v1.TabularDataByFilterRequest) +} + +inline void TabularDataByFilterRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.data_request_){nullptr} + , decltype(_impl_.count_only_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +TabularDataByFilterRequest::~TabularDataByFilterRequest() { + // @@protoc_insertion_point(destructor:viam.app.data.v1.TabularDataByFilterRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void TabularDataByFilterRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.data_request_; +} + +void TabularDataByFilterRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void TabularDataByFilterRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.data.v1.TabularDataByFilterRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.data_request_ != nullptr) { + delete _impl_.data_request_; + } + _impl_.data_request_ = nullptr; + _impl_.count_only_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TabularDataByFilterRequest::_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) { + // .viam.app.data.v1.DataRequest data_request = 1 [json_name = "dataRequest"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_data_request(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool count_only = 2 [json_name = "countOnly"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.count_only_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* TabularDataByFilterRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.data.v1.TabularDataByFilterRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.data.v1.DataRequest data_request = 1 [json_name = "dataRequest"]; + if (this->_internal_has_data_request()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::data_request(this), + _Internal::data_request(this).GetCachedSize(), target, stream); + } + + // bool count_only = 2 [json_name = "countOnly"]; + if (this->_internal_count_only() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_count_only(), 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.data.v1.TabularDataByFilterRequest) + return target; +} + +size_t TabularDataByFilterRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.data.v1.TabularDataByFilterRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.app.data.v1.DataRequest data_request = 1 [json_name = "dataRequest"]; + if (this->_internal_has_data_request()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.data_request_); + } + + // bool count_only = 2 [json_name = "countOnly"]; + if (this->_internal_count_only() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TabularDataByFilterRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + TabularDataByFilterRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TabularDataByFilterRequest::GetClassData() const { return &_class_data_; } + + +void TabularDataByFilterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.data.v1.TabularDataByFilterRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_data_request()) { + _this->_internal_mutable_data_request()->::viam::app::data::v1::DataRequest::MergeFrom( + from._internal_data_request()); + } + if (from._internal_count_only() != 0) { + _this->_internal_set_count_only(from._internal_count_only()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void TabularDataByFilterRequest::CopyFrom(const TabularDataByFilterRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.data.v1.TabularDataByFilterRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TabularDataByFilterRequest::IsInitialized() const { + return true; +} + +void TabularDataByFilterRequest::InternalSwap(TabularDataByFilterRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(TabularDataByFilterRequest, _impl_.count_only_) + + sizeof(TabularDataByFilterRequest::_impl_.count_only_) + - PROTOBUF_FIELD_OFFSET(TabularDataByFilterRequest, _impl_.data_request_)>( + reinterpret_cast(&_impl_.data_request_), + reinterpret_cast(&other->_impl_.data_request_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TabularDataByFilterRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_getter, &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_once, + file_level_metadata_app_2fdata_2fv1_2fdata_2eproto[5]); +} + +// =================================================================== + +class TabularDataByFilterResponse::_Internal { + public: +}; + +TabularDataByFilterResponse::TabularDataByFilterResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.data.v1.TabularDataByFilterResponse) +} +TabularDataByFilterResponse::TabularDataByFilterResponse(const TabularDataByFilterResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + TabularDataByFilterResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.metadata_){from._impl_.metadata_} + , decltype(_impl_.data_){from._impl_.data_} + , decltype(_impl_.count_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.count_ = from._impl_.count_; + // @@protoc_insertion_point(copy_constructor:viam.app.data.v1.TabularDataByFilterResponse) +} + +inline void TabularDataByFilterResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.metadata_){arena} + , decltype(_impl_.data_){arena} + , decltype(_impl_.count_){int64_t{0}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +TabularDataByFilterResponse::~TabularDataByFilterResponse() { + // @@protoc_insertion_point(destructor:viam.app.data.v1.TabularDataByFilterResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void TabularDataByFilterResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.metadata_.~RepeatedPtrField(); + _impl_.data_.~RepeatedPtrField(); +} + +void TabularDataByFilterResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void TabularDataByFilterResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.data.v1.TabularDataByFilterResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.metadata_.Clear(); + _impl_.data_.Clear(); + _impl_.count_ = int64_t{0}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TabularDataByFilterResponse::_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) { + // repeated .viam.app.data.v1.CaptureMetadata metadata = 1 [json_name = "metadata"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_metadata(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.data.v1.TabularData data = 2 [json_name = "data"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_data(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // int64 count = 3 [json_name = "count"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* TabularDataByFilterResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.data.v1.TabularDataByFilterResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.app.data.v1.CaptureMetadata metadata = 1 [json_name = "metadata"]; + for (unsigned i = 0, + n = static_cast(this->_internal_metadata_size()); i < n; i++) { + const auto& repfield = this->_internal_metadata(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + // repeated .viam.app.data.v1.TabularData data = 2 [json_name = "data"]; + for (unsigned i = 0, + n = static_cast(this->_internal_data_size()); i < n; i++) { + const auto& repfield = this->_internal_data(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + // int64 count = 3 [json_name = "count"]; + if (this->_internal_count() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_count(), 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.data.v1.TabularDataByFilterResponse) + return target; +} + +size_t TabularDataByFilterResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.data.v1.TabularDataByFilterResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.app.data.v1.CaptureMetadata metadata = 1 [json_name = "metadata"]; + total_size += 1UL * this->_internal_metadata_size(); + for (const auto& msg : this->_impl_.metadata_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated .viam.app.data.v1.TabularData data = 2 [json_name = "data"]; + total_size += 1UL * this->_internal_data_size(); + for (const auto& msg : this->_impl_.data_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // int64 count = 3 [json_name = "count"]; + if (this->_internal_count() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_count()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TabularDataByFilterResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + TabularDataByFilterResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TabularDataByFilterResponse::GetClassData() const { return &_class_data_; } + + +void TabularDataByFilterResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.data.v1.TabularDataByFilterResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.metadata_.MergeFrom(from._impl_.metadata_); + _this->_impl_.data_.MergeFrom(from._impl_.data_); + if (from._internal_count() != 0) { + _this->_internal_set_count(from._internal_count()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void TabularDataByFilterResponse::CopyFrom(const TabularDataByFilterResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.data.v1.TabularDataByFilterResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TabularDataByFilterResponse::IsInitialized() const { + return true; +} + +void TabularDataByFilterResponse::InternalSwap(TabularDataByFilterResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.metadata_.InternalSwap(&other->_impl_.metadata_); + _impl_.data_.InternalSwap(&other->_impl_.data_); + swap(_impl_.count_, other->_impl_.count_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TabularDataByFilterResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_getter, &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_once, + file_level_metadata_app_2fdata_2fv1_2fdata_2eproto[6]); +} + +// =================================================================== + +class TabularData::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& data(const TabularData* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& time_requested(const TabularData* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& time_received(const TabularData* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +TabularData::_Internal::data(const TabularData* msg) { + return *msg->_impl_.data_; +} +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +TabularData::_Internal::time_requested(const TabularData* msg) { + return *msg->_impl_.time_requested_; +} +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +TabularData::_Internal::time_received(const TabularData* msg) { + return *msg->_impl_.time_received_; +} +void TabularData::clear_data() { + if (GetArenaForAllocation() == nullptr && _impl_.data_ != nullptr) { + delete _impl_.data_; + } + _impl_.data_ = nullptr; +} +void TabularData::clear_time_requested() { + if (GetArenaForAllocation() == nullptr && _impl_.time_requested_ != nullptr) { + delete _impl_.time_requested_; + } + _impl_.time_requested_ = nullptr; +} +void TabularData::clear_time_received() { + if (GetArenaForAllocation() == nullptr && _impl_.time_received_ != nullptr) { + delete _impl_.time_received_; + } + _impl_.time_received_ = nullptr; +} +TabularData::TabularData(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.data.v1.TabularData) +} +TabularData::TabularData(const TabularData& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + TabularData* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.data_){nullptr} + , decltype(_impl_.time_requested_){nullptr} + , decltype(_impl_.time_received_){nullptr} + , decltype(_impl_.metadata_index_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_data()) { + _this->_impl_.data_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.data_); + } + if (from._internal_has_time_requested()) { + _this->_impl_.time_requested_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.time_requested_); + } + if (from._internal_has_time_received()) { + _this->_impl_.time_received_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.time_received_); + } + _this->_impl_.metadata_index_ = from._impl_.metadata_index_; + // @@protoc_insertion_point(copy_constructor:viam.app.data.v1.TabularData) +} + +inline void TabularData::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.data_){nullptr} + , decltype(_impl_.time_requested_){nullptr} + , decltype(_impl_.time_received_){nullptr} + , decltype(_impl_.metadata_index_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +TabularData::~TabularData() { + // @@protoc_insertion_point(destructor:viam.app.data.v1.TabularData) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void TabularData::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.data_; + if (this != internal_default_instance()) delete _impl_.time_requested_; + if (this != internal_default_instance()) delete _impl_.time_received_; +} + +void TabularData::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void TabularData::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.data.v1.TabularData) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.data_ != nullptr) { + delete _impl_.data_; + } + _impl_.data_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.time_requested_ != nullptr) { + delete _impl_.time_requested_; + } + _impl_.time_requested_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.time_received_ != nullptr) { + delete _impl_.time_received_; + } + _impl_.time_received_ = nullptr; + _impl_.metadata_index_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TabularData::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.protobuf.Struct data = 1 [json_name = "data"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_data(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 metadata_index = 2 [json_name = "metadataIndex"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.metadata_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp time_requested = 3 [json_name = "timeRequested"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_time_requested(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp time_received = 4 [json_name = "timeReceived"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_time_received(), 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* TabularData::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.data.v1.TabularData) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.Struct data = 1 [json_name = "data"]; + if (this->_internal_has_data()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::data(this), + _Internal::data(this).GetCachedSize(), target, stream); + } + + // int32 metadata_index = 2 [json_name = "metadataIndex"]; + if (this->_internal_metadata_index() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_metadata_index(), target); + } + + // .google.protobuf.Timestamp time_requested = 3 [json_name = "timeRequested"]; + if (this->_internal_has_time_requested()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::time_requested(this), + _Internal::time_requested(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Timestamp time_received = 4 [json_name = "timeReceived"]; + if (this->_internal_has_time_received()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::time_received(this), + _Internal::time_received(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.data.v1.TabularData) + return target; +} + +size_t TabularData::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.data.v1.TabularData) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.protobuf.Struct data = 1 [json_name = "data"]; + if (this->_internal_has_data()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.data_); + } + + // .google.protobuf.Timestamp time_requested = 3 [json_name = "timeRequested"]; + if (this->_internal_has_time_requested()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.time_requested_); + } + + // .google.protobuf.Timestamp time_received = 4 [json_name = "timeReceived"]; + if (this->_internal_has_time_received()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.time_received_); + } + + // int32 metadata_index = 2 [json_name = "metadataIndex"]; + if (this->_internal_metadata_index() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_metadata_index()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TabularData::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + TabularData::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TabularData::GetClassData() const { return &_class_data_; } + + +void TabularData::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.data.v1.TabularData) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_data()) { + _this->_internal_mutable_data()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_data()); + } + if (from._internal_has_time_requested()) { + _this->_internal_mutable_time_requested()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_time_requested()); + } + if (from._internal_has_time_received()) { + _this->_internal_mutable_time_received()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_time_received()); + } + if (from._internal_metadata_index() != 0) { + _this->_internal_set_metadata_index(from._internal_metadata_index()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void TabularData::CopyFrom(const TabularData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.data.v1.TabularData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TabularData::IsInitialized() const { + return true; +} + +void TabularData::InternalSwap(TabularData* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(TabularData, _impl_.metadata_index_) + + sizeof(TabularData::_impl_.metadata_index_) + - PROTOBUF_FIELD_OFFSET(TabularData, _impl_.data_)>( + reinterpret_cast(&_impl_.data_), + reinterpret_cast(&other->_impl_.data_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TabularData::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_getter, &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_once, + file_level_metadata_app_2fdata_2fv1_2fdata_2eproto[7]); +} + +// =================================================================== + +class BinaryData::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& time_requested(const BinaryData* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& time_received(const BinaryData* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +BinaryData::_Internal::time_requested(const BinaryData* msg) { + return *msg->_impl_.time_requested_; +} +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +BinaryData::_Internal::time_received(const BinaryData* msg) { + return *msg->_impl_.time_received_; +} +void BinaryData::clear_time_requested() { + if (GetArenaForAllocation() == nullptr && _impl_.time_requested_ != nullptr) { + delete _impl_.time_requested_; + } + _impl_.time_requested_ = nullptr; +} +void BinaryData::clear_time_received() { + if (GetArenaForAllocation() == nullptr && _impl_.time_received_ != nullptr) { + delete _impl_.time_received_; + } + _impl_.time_received_ = nullptr; +} +BinaryData::BinaryData(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.data.v1.BinaryData) +} +BinaryData::BinaryData(const BinaryData& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + BinaryData* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.uri_){} + , decltype(_impl_.binary_){} + , decltype(_impl_.name_){} + , decltype(_impl_.time_requested_){nullptr} + , decltype(_impl_.time_received_){nullptr} + , decltype(_impl_.metadata_index_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + _impl_.uri_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.uri_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_uri().empty()) { + _this->_impl_.uri_.Set(from._internal_uri(), + _this->GetArenaForAllocation()); + } + _impl_.binary_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.binary_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_binary().empty()) { + _this->_impl_.binary_.Set(from._internal_binary(), + _this->GetArenaForAllocation()); + } + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_time_requested()) { + _this->_impl_.time_requested_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.time_requested_); + } + if (from._internal_has_time_received()) { + _this->_impl_.time_received_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.time_received_); + } + _this->_impl_.metadata_index_ = from._impl_.metadata_index_; + // @@protoc_insertion_point(copy_constructor:viam.app.data.v1.BinaryData) +} + +inline void BinaryData::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.uri_){} + , decltype(_impl_.binary_){} + , decltype(_impl_.name_){} + , decltype(_impl_.time_requested_){nullptr} + , decltype(_impl_.time_received_){nullptr} + , decltype(_impl_.metadata_index_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.uri_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.uri_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.binary_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.binary_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +BinaryData::~BinaryData() { + // @@protoc_insertion_point(destructor:viam.app.data.v1.BinaryData) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void BinaryData::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); + _impl_.uri_.Destroy(); + _impl_.binary_.Destroy(); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.time_requested_; + if (this != internal_default_instance()) delete _impl_.time_received_; +} + +void BinaryData::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void BinaryData::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.data.v1.BinaryData) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _impl_.uri_.ClearToEmpty(); + _impl_.binary_.ClearToEmpty(); + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.time_requested_ != nullptr) { + delete _impl_.time_requested_; + } + _impl_.time_requested_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.time_received_ != nullptr) { + delete _impl_.time_received_; + } + _impl_.time_received_ = nullptr; + _impl_.metadata_index_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* BinaryData::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.BinaryData.id")); + } else + goto handle_unusual; + continue; + // string uri = 2 [json_name = "uri"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_uri(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.BinaryData.uri")); + } else + goto handle_unusual; + continue; + // bytes binary = 3 [json_name = "binary"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_binary(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 metadata_index = 4 [json_name = "metadataIndex"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.metadata_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp time_requested = 5 [json_name = "timeRequested"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_time_requested(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp time_received = 6 [json_name = "timeReceived"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_time_received(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string name = 7 [json_name = "name"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.BinaryData.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* BinaryData::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.data.v1.BinaryData) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.BinaryData.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // string uri = 2 [json_name = "uri"]; + if (!this->_internal_uri().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_uri().data(), static_cast(this->_internal_uri().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.BinaryData.uri"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_uri(), target); + } + + // bytes binary = 3 [json_name = "binary"]; + if (!this->_internal_binary().empty()) { + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_binary(), target); + } + + // int32 metadata_index = 4 [json_name = "metadataIndex"]; + if (this->_internal_metadata_index() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_metadata_index(), target); + } + + // .google.protobuf.Timestamp time_requested = 5 [json_name = "timeRequested"]; + if (this->_internal_has_time_requested()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::time_requested(this), + _Internal::time_requested(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Timestamp time_received = 6 [json_name = "timeReceived"]; + if (this->_internal_has_time_received()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::time_received(this), + _Internal::time_received(this).GetCachedSize(), target, stream); + } + + // string name = 7 [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.app.data.v1.BinaryData.name"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.data.v1.BinaryData) + return target; +} + +size_t BinaryData::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.data.v1.BinaryData) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // string uri = 2 [json_name = "uri"]; + if (!this->_internal_uri().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_uri()); + } + + // bytes binary = 3 [json_name = "binary"]; + if (!this->_internal_binary().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_binary()); + } + + // string name = 7 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // .google.protobuf.Timestamp time_requested = 5 [json_name = "timeRequested"]; + if (this->_internal_has_time_requested()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.time_requested_); + } + + // .google.protobuf.Timestamp time_received = 6 [json_name = "timeReceived"]; + if (this->_internal_has_time_received()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.time_received_); + } + + // int32 metadata_index = 4 [json_name = "metadataIndex"]; + if (this->_internal_metadata_index() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_metadata_index()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BinaryData::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + BinaryData::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BinaryData::GetClassData() const { return &_class_data_; } + + +void BinaryData::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.data.v1.BinaryData) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + if (!from._internal_uri().empty()) { + _this->_internal_set_uri(from._internal_uri()); + } + if (!from._internal_binary().empty()) { + _this->_internal_set_binary(from._internal_binary()); + } + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_time_requested()) { + _this->_internal_mutable_time_requested()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_time_requested()); + } + if (from._internal_has_time_received()) { + _this->_internal_mutable_time_received()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_time_received()); + } + if (from._internal_metadata_index() != 0) { + _this->_internal_set_metadata_index(from._internal_metadata_index()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void BinaryData::CopyFrom(const BinaryData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.data.v1.BinaryData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BinaryData::IsInitialized() const { + return true; +} + +void BinaryData::InternalSwap(BinaryData* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.uri_, lhs_arena, + &other->_impl_.uri_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.binary_, lhs_arena, + &other->_impl_.binary_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(BinaryData, _impl_.metadata_index_) + + sizeof(BinaryData::_impl_.metadata_index_) + - PROTOBUF_FIELD_OFFSET(BinaryData, _impl_.time_requested_)>( + reinterpret_cast(&_impl_.time_requested_), + reinterpret_cast(&other->_impl_.time_requested_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata BinaryData::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_getter, &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_once, + file_level_metadata_app_2fdata_2fv1_2fdata_2eproto[8]); +} + +// =================================================================== + +class BinaryDataByFilterRequest::_Internal { + public: + static const ::viam::app::data::v1::DataRequest& data_request(const BinaryDataByFilterRequest* msg); +}; + +const ::viam::app::data::v1::DataRequest& +BinaryDataByFilterRequest::_Internal::data_request(const BinaryDataByFilterRequest* msg) { + return *msg->_impl_.data_request_; +} +BinaryDataByFilterRequest::BinaryDataByFilterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.data.v1.BinaryDataByFilterRequest) +} +BinaryDataByFilterRequest::BinaryDataByFilterRequest(const BinaryDataByFilterRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + BinaryDataByFilterRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.data_request_){nullptr} + , decltype(_impl_.include_binary_){} + , decltype(_impl_.count_only_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_data_request()) { + _this->_impl_.data_request_ = new ::viam::app::data::v1::DataRequest(*from._impl_.data_request_); + } + ::memcpy(&_impl_.include_binary_, &from._impl_.include_binary_, + static_cast(reinterpret_cast(&_impl_.count_only_) - + reinterpret_cast(&_impl_.include_binary_)) + sizeof(_impl_.count_only_)); + // @@protoc_insertion_point(copy_constructor:viam.app.data.v1.BinaryDataByFilterRequest) +} + +inline void BinaryDataByFilterRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.data_request_){nullptr} + , decltype(_impl_.include_binary_){false} + , decltype(_impl_.count_only_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +BinaryDataByFilterRequest::~BinaryDataByFilterRequest() { + // @@protoc_insertion_point(destructor:viam.app.data.v1.BinaryDataByFilterRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void BinaryDataByFilterRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.data_request_; +} + +void BinaryDataByFilterRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void BinaryDataByFilterRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.data.v1.BinaryDataByFilterRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.data_request_ != nullptr) { + delete _impl_.data_request_; + } + _impl_.data_request_ = nullptr; + ::memset(&_impl_.include_binary_, 0, static_cast( + reinterpret_cast(&_impl_.count_only_) - + reinterpret_cast(&_impl_.include_binary_)) + sizeof(_impl_.count_only_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* BinaryDataByFilterRequest::_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) { + // .viam.app.data.v1.DataRequest data_request = 1 [json_name = "dataRequest"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_data_request(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool include_binary = 2 [json_name = "includeBinary"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.include_binary_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool count_only = 3 [json_name = "countOnly"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.count_only_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* BinaryDataByFilterRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.data.v1.BinaryDataByFilterRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.data.v1.DataRequest data_request = 1 [json_name = "dataRequest"]; + if (this->_internal_has_data_request()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::data_request(this), + _Internal::data_request(this).GetCachedSize(), target, stream); + } + + // bool include_binary = 2 [json_name = "includeBinary"]; + if (this->_internal_include_binary() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_include_binary(), target); + } + + // bool count_only = 3 [json_name = "countOnly"]; + if (this->_internal_count_only() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_count_only(), 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.data.v1.BinaryDataByFilterRequest) + return target; +} + +size_t BinaryDataByFilterRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.data.v1.BinaryDataByFilterRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.app.data.v1.DataRequest data_request = 1 [json_name = "dataRequest"]; + if (this->_internal_has_data_request()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.data_request_); + } + + // bool include_binary = 2 [json_name = "includeBinary"]; + if (this->_internal_include_binary() != 0) { + total_size += 1 + 1; + } + + // bool count_only = 3 [json_name = "countOnly"]; + if (this->_internal_count_only() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BinaryDataByFilterRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + BinaryDataByFilterRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BinaryDataByFilterRequest::GetClassData() const { return &_class_data_; } + + +void BinaryDataByFilterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.data.v1.BinaryDataByFilterRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_data_request()) { + _this->_internal_mutable_data_request()->::viam::app::data::v1::DataRequest::MergeFrom( + from._internal_data_request()); + } + if (from._internal_include_binary() != 0) { + _this->_internal_set_include_binary(from._internal_include_binary()); + } + if (from._internal_count_only() != 0) { + _this->_internal_set_count_only(from._internal_count_only()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void BinaryDataByFilterRequest::CopyFrom(const BinaryDataByFilterRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.data.v1.BinaryDataByFilterRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BinaryDataByFilterRequest::IsInitialized() const { + return true; +} + +void BinaryDataByFilterRequest::InternalSwap(BinaryDataByFilterRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(BinaryDataByFilterRequest, _impl_.count_only_) + + sizeof(BinaryDataByFilterRequest::_impl_.count_only_) + - PROTOBUF_FIELD_OFFSET(BinaryDataByFilterRequest, _impl_.data_request_)>( + reinterpret_cast(&_impl_.data_request_), + reinterpret_cast(&other->_impl_.data_request_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata BinaryDataByFilterRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_getter, &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_once, + file_level_metadata_app_2fdata_2fv1_2fdata_2eproto[9]); +} + +// =================================================================== + +class BinaryDataByFilterResponse::_Internal { + public: +}; + +BinaryDataByFilterResponse::BinaryDataByFilterResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.data.v1.BinaryDataByFilterResponse) +} +BinaryDataByFilterResponse::BinaryDataByFilterResponse(const BinaryDataByFilterResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + BinaryDataByFilterResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.metadata_){from._impl_.metadata_} + , decltype(_impl_.data_){from._impl_.data_} + , decltype(_impl_.count_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.count_ = from._impl_.count_; + // @@protoc_insertion_point(copy_constructor:viam.app.data.v1.BinaryDataByFilterResponse) +} + +inline void BinaryDataByFilterResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.metadata_){arena} + , decltype(_impl_.data_){arena} + , decltype(_impl_.count_){int64_t{0}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +BinaryDataByFilterResponse::~BinaryDataByFilterResponse() { + // @@protoc_insertion_point(destructor:viam.app.data.v1.BinaryDataByFilterResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void BinaryDataByFilterResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.metadata_.~RepeatedPtrField(); + _impl_.data_.~RepeatedPtrField(); +} + +void BinaryDataByFilterResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void BinaryDataByFilterResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.data.v1.BinaryDataByFilterResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.metadata_.Clear(); + _impl_.data_.Clear(); + _impl_.count_ = int64_t{0}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* BinaryDataByFilterResponse::_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) { + // repeated .viam.app.data.v1.CaptureMetadata metadata = 1 [json_name = "metadata"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_metadata(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.data.v1.BinaryData data = 2 [json_name = "data"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_data(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // int64 count = 3 [json_name = "count"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* BinaryDataByFilterResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.data.v1.BinaryDataByFilterResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.app.data.v1.CaptureMetadata metadata = 1 [json_name = "metadata"]; + for (unsigned i = 0, + n = static_cast(this->_internal_metadata_size()); i < n; i++) { + const auto& repfield = this->_internal_metadata(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + // repeated .viam.app.data.v1.BinaryData data = 2 [json_name = "data"]; + for (unsigned i = 0, + n = static_cast(this->_internal_data_size()); i < n; i++) { + const auto& repfield = this->_internal_data(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + // int64 count = 3 [json_name = "count"]; + if (this->_internal_count() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_count(), 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.data.v1.BinaryDataByFilterResponse) + return target; +} + +size_t BinaryDataByFilterResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.data.v1.BinaryDataByFilterResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.app.data.v1.CaptureMetadata metadata = 1 [json_name = "metadata"]; + total_size += 1UL * this->_internal_metadata_size(); + for (const auto& msg : this->_impl_.metadata_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated .viam.app.data.v1.BinaryData data = 2 [json_name = "data"]; + total_size += 1UL * this->_internal_data_size(); + for (const auto& msg : this->_impl_.data_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // int64 count = 3 [json_name = "count"]; + if (this->_internal_count() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_count()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BinaryDataByFilterResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + BinaryDataByFilterResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BinaryDataByFilterResponse::GetClassData() const { return &_class_data_; } + + +void BinaryDataByFilterResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.data.v1.BinaryDataByFilterResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.metadata_.MergeFrom(from._impl_.metadata_); + _this->_impl_.data_.MergeFrom(from._impl_.data_); + if (from._internal_count() != 0) { + _this->_internal_set_count(from._internal_count()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void BinaryDataByFilterResponse::CopyFrom(const BinaryDataByFilterResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.data.v1.BinaryDataByFilterResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BinaryDataByFilterResponse::IsInitialized() const { + return true; +} + +void BinaryDataByFilterResponse::InternalSwap(BinaryDataByFilterResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.metadata_.InternalSwap(&other->_impl_.metadata_); + _impl_.data_.InternalSwap(&other->_impl_.data_); + swap(_impl_.count_, other->_impl_.count_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata BinaryDataByFilterResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_getter, &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_once, + file_level_metadata_app_2fdata_2fv1_2fdata_2eproto[10]); +} + +// =================================================================== + +class BinaryDataByIDsRequest::_Internal { + public: +}; + +BinaryDataByIDsRequest::BinaryDataByIDsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.data.v1.BinaryDataByIDsRequest) +} +BinaryDataByIDsRequest::BinaryDataByIDsRequest(const BinaryDataByIDsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + BinaryDataByIDsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.file_ids_){from._impl_.file_ids_} + , decltype(_impl_.include_binary_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.include_binary_ = from._impl_.include_binary_; + // @@protoc_insertion_point(copy_constructor:viam.app.data.v1.BinaryDataByIDsRequest) +} + +inline void BinaryDataByIDsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.file_ids_){arena} + , decltype(_impl_.include_binary_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +BinaryDataByIDsRequest::~BinaryDataByIDsRequest() { + // @@protoc_insertion_point(destructor:viam.app.data.v1.BinaryDataByIDsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void BinaryDataByIDsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.file_ids_.~RepeatedPtrField(); +} + +void BinaryDataByIDsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void BinaryDataByIDsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.data.v1.BinaryDataByIDsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.file_ids_.Clear(); + _impl_.include_binary_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* BinaryDataByIDsRequest::_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) { + // repeated string file_ids = 1 [json_name = "fileIds"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_file_ids(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.data.v1.BinaryDataByIDsRequest.file_ids")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // bool include_binary = 2 [json_name = "includeBinary"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.include_binary_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* BinaryDataByIDsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.data.v1.BinaryDataByIDsRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string file_ids = 1 [json_name = "fileIds"]; + for (int i = 0, n = this->_internal_file_ids_size(); i < n; i++) { + const auto& s = this->_internal_file_ids(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.data.v1.BinaryDataByIDsRequest.file_ids"); + target = stream->WriteString(1, s, target); + } + + // bool include_binary = 2 [json_name = "includeBinary"]; + if (this->_internal_include_binary() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_include_binary(), 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.data.v1.BinaryDataByIDsRequest) + return target; +} + +size_t BinaryDataByIDsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.data.v1.BinaryDataByIDsRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string file_ids = 1 [json_name = "fileIds"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.file_ids_.size()); + for (int i = 0, n = _impl_.file_ids_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.file_ids_.Get(i)); + } + + // bool include_binary = 2 [json_name = "includeBinary"]; + if (this->_internal_include_binary() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BinaryDataByIDsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + BinaryDataByIDsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BinaryDataByIDsRequest::GetClassData() const { return &_class_data_; } + + +void BinaryDataByIDsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.data.v1.BinaryDataByIDsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.file_ids_.MergeFrom(from._impl_.file_ids_); + if (from._internal_include_binary() != 0) { + _this->_internal_set_include_binary(from._internal_include_binary()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void BinaryDataByIDsRequest::CopyFrom(const BinaryDataByIDsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.data.v1.BinaryDataByIDsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BinaryDataByIDsRequest::IsInitialized() const { + return true; +} + +void BinaryDataByIDsRequest::InternalSwap(BinaryDataByIDsRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.file_ids_.InternalSwap(&other->_impl_.file_ids_); + swap(_impl_.include_binary_, other->_impl_.include_binary_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata BinaryDataByIDsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_getter, &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_once, + file_level_metadata_app_2fdata_2fv1_2fdata_2eproto[11]); +} + +// =================================================================== + +class BinaryDataByIDsResponse::_Internal { + public: +}; + +BinaryDataByIDsResponse::BinaryDataByIDsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.data.v1.BinaryDataByIDsResponse) +} +BinaryDataByIDsResponse::BinaryDataByIDsResponse(const BinaryDataByIDsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + BinaryDataByIDsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.metadata_){from._impl_.metadata_} + , decltype(_impl_.data_){from._impl_.data_} + , decltype(_impl_.count_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.count_ = from._impl_.count_; + // @@protoc_insertion_point(copy_constructor:viam.app.data.v1.BinaryDataByIDsResponse) +} + +inline void BinaryDataByIDsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.metadata_){arena} + , decltype(_impl_.data_){arena} + , decltype(_impl_.count_){int64_t{0}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +BinaryDataByIDsResponse::~BinaryDataByIDsResponse() { + // @@protoc_insertion_point(destructor:viam.app.data.v1.BinaryDataByIDsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void BinaryDataByIDsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.metadata_.~RepeatedPtrField(); + _impl_.data_.~RepeatedPtrField(); +} + +void BinaryDataByIDsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void BinaryDataByIDsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.data.v1.BinaryDataByIDsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.metadata_.Clear(); + _impl_.data_.Clear(); + _impl_.count_ = int64_t{0}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* BinaryDataByIDsResponse::_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) { + // repeated .viam.app.data.v1.CaptureMetadata metadata = 1 [json_name = "metadata"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_metadata(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.data.v1.BinaryData data = 2 [json_name = "data"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_data(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // int64 count = 3 [json_name = "count"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* BinaryDataByIDsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.data.v1.BinaryDataByIDsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.app.data.v1.CaptureMetadata metadata = 1 [json_name = "metadata"]; + for (unsigned i = 0, + n = static_cast(this->_internal_metadata_size()); i < n; i++) { + const auto& repfield = this->_internal_metadata(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + // repeated .viam.app.data.v1.BinaryData data = 2 [json_name = "data"]; + for (unsigned i = 0, + n = static_cast(this->_internal_data_size()); i < n; i++) { + const auto& repfield = this->_internal_data(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + // int64 count = 3 [json_name = "count"]; + if (this->_internal_count() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_count(), 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.data.v1.BinaryDataByIDsResponse) + return target; +} + +size_t BinaryDataByIDsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.data.v1.BinaryDataByIDsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.app.data.v1.CaptureMetadata metadata = 1 [json_name = "metadata"]; + total_size += 1UL * this->_internal_metadata_size(); + for (const auto& msg : this->_impl_.metadata_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated .viam.app.data.v1.BinaryData data = 2 [json_name = "data"]; + total_size += 1UL * this->_internal_data_size(); + for (const auto& msg : this->_impl_.data_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // int64 count = 3 [json_name = "count"]; + if (this->_internal_count() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_count()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BinaryDataByIDsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + BinaryDataByIDsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BinaryDataByIDsResponse::GetClassData() const { return &_class_data_; } + + +void BinaryDataByIDsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.data.v1.BinaryDataByIDsResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.metadata_.MergeFrom(from._impl_.metadata_); + _this->_impl_.data_.MergeFrom(from._impl_.data_); + if (from._internal_count() != 0) { + _this->_internal_set_count(from._internal_count()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void BinaryDataByIDsResponse::CopyFrom(const BinaryDataByIDsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.data.v1.BinaryDataByIDsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BinaryDataByIDsResponse::IsInitialized() const { + return true; +} + +void BinaryDataByIDsResponse::InternalSwap(BinaryDataByIDsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.metadata_.InternalSwap(&other->_impl_.metadata_); + _impl_.data_.InternalSwap(&other->_impl_.data_); + swap(_impl_.count_, other->_impl_.count_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata BinaryDataByIDsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_getter, &descriptor_table_app_2fdata_2fv1_2fdata_2eproto_once, + file_level_metadata_app_2fdata_2fv1_2fdata_2eproto[12]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace data +} // namespace app +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::app::data::v1::DataRequest* +Arena::CreateMaybeMessage< ::viam::app::data::v1::DataRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::data::v1::DataRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::data::v1::Filter* +Arena::CreateMaybeMessage< ::viam::app::data::v1::Filter >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::data::v1::Filter >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::data::v1::CaptureMetadata_MethodParametersEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::app::data::v1::CaptureMetadata_MethodParametersEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::data::v1::CaptureMetadata_MethodParametersEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::data::v1::CaptureMetadata* +Arena::CreateMaybeMessage< ::viam::app::data::v1::CaptureMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::data::v1::CaptureMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::data::v1::CaptureInterval* +Arena::CreateMaybeMessage< ::viam::app::data::v1::CaptureInterval >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::data::v1::CaptureInterval >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::data::v1::TabularDataByFilterRequest* +Arena::CreateMaybeMessage< ::viam::app::data::v1::TabularDataByFilterRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::data::v1::TabularDataByFilterRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::data::v1::TabularDataByFilterResponse* +Arena::CreateMaybeMessage< ::viam::app::data::v1::TabularDataByFilterResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::data::v1::TabularDataByFilterResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::data::v1::TabularData* +Arena::CreateMaybeMessage< ::viam::app::data::v1::TabularData >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::data::v1::TabularData >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::data::v1::BinaryData* +Arena::CreateMaybeMessage< ::viam::app::data::v1::BinaryData >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::data::v1::BinaryData >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::data::v1::BinaryDataByFilterRequest* +Arena::CreateMaybeMessage< ::viam::app::data::v1::BinaryDataByFilterRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::data::v1::BinaryDataByFilterRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::data::v1::BinaryDataByFilterResponse* +Arena::CreateMaybeMessage< ::viam::app::data::v1::BinaryDataByFilterResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::data::v1::BinaryDataByFilterResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::data::v1::BinaryDataByIDsRequest* +Arena::CreateMaybeMessage< ::viam::app::data::v1::BinaryDataByIDsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::data::v1::BinaryDataByIDsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::data::v1::BinaryDataByIDsResponse* +Arena::CreateMaybeMessage< ::viam::app::data::v1::BinaryDataByIDsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::data::v1::BinaryDataByIDsResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/app/data/v1/data.pb.h b/src/gen/app/data/v1/data.pb.h new file mode 100644 index 000000000..443506faa --- /dev/null +++ b/src/gen/app/data/v1/data.pb.h @@ -0,0 +1,5902 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: app/data/v1/data.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_app_2fdata_2fv1_2fdata_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_app_2fdata_2fv1_2fdata_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 // IWYU pragma: export +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_app_2fdata_2fv1_2fdata_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_app_2fdata_2fv1_2fdata_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_app_2fdata_2fv1_2fdata_2eproto; +namespace viam { +namespace app { +namespace data { +namespace v1 { +class BinaryData; +struct BinaryDataDefaultTypeInternal; +extern BinaryDataDefaultTypeInternal _BinaryData_default_instance_; +class BinaryDataByFilterRequest; +struct BinaryDataByFilterRequestDefaultTypeInternal; +extern BinaryDataByFilterRequestDefaultTypeInternal _BinaryDataByFilterRequest_default_instance_; +class BinaryDataByFilterResponse; +struct BinaryDataByFilterResponseDefaultTypeInternal; +extern BinaryDataByFilterResponseDefaultTypeInternal _BinaryDataByFilterResponse_default_instance_; +class BinaryDataByIDsRequest; +struct BinaryDataByIDsRequestDefaultTypeInternal; +extern BinaryDataByIDsRequestDefaultTypeInternal _BinaryDataByIDsRequest_default_instance_; +class BinaryDataByIDsResponse; +struct BinaryDataByIDsResponseDefaultTypeInternal; +extern BinaryDataByIDsResponseDefaultTypeInternal _BinaryDataByIDsResponse_default_instance_; +class CaptureInterval; +struct CaptureIntervalDefaultTypeInternal; +extern CaptureIntervalDefaultTypeInternal _CaptureInterval_default_instance_; +class CaptureMetadata; +struct CaptureMetadataDefaultTypeInternal; +extern CaptureMetadataDefaultTypeInternal _CaptureMetadata_default_instance_; +class CaptureMetadata_MethodParametersEntry_DoNotUse; +struct CaptureMetadata_MethodParametersEntry_DoNotUseDefaultTypeInternal; +extern CaptureMetadata_MethodParametersEntry_DoNotUseDefaultTypeInternal _CaptureMetadata_MethodParametersEntry_DoNotUse_default_instance_; +class DataRequest; +struct DataRequestDefaultTypeInternal; +extern DataRequestDefaultTypeInternal _DataRequest_default_instance_; +class Filter; +struct FilterDefaultTypeInternal; +extern FilterDefaultTypeInternal _Filter_default_instance_; +class TabularData; +struct TabularDataDefaultTypeInternal; +extern TabularDataDefaultTypeInternal _TabularData_default_instance_; +class TabularDataByFilterRequest; +struct TabularDataByFilterRequestDefaultTypeInternal; +extern TabularDataByFilterRequestDefaultTypeInternal _TabularDataByFilterRequest_default_instance_; +class TabularDataByFilterResponse; +struct TabularDataByFilterResponseDefaultTypeInternal; +extern TabularDataByFilterResponseDefaultTypeInternal _TabularDataByFilterResponse_default_instance_; +} // namespace v1 +} // namespace data +} // namespace app +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::app::data::v1::BinaryData* Arena::CreateMaybeMessage<::viam::app::data::v1::BinaryData>(Arena*); +template<> ::viam::app::data::v1::BinaryDataByFilterRequest* Arena::CreateMaybeMessage<::viam::app::data::v1::BinaryDataByFilterRequest>(Arena*); +template<> ::viam::app::data::v1::BinaryDataByFilterResponse* Arena::CreateMaybeMessage<::viam::app::data::v1::BinaryDataByFilterResponse>(Arena*); +template<> ::viam::app::data::v1::BinaryDataByIDsRequest* Arena::CreateMaybeMessage<::viam::app::data::v1::BinaryDataByIDsRequest>(Arena*); +template<> ::viam::app::data::v1::BinaryDataByIDsResponse* Arena::CreateMaybeMessage<::viam::app::data::v1::BinaryDataByIDsResponse>(Arena*); +template<> ::viam::app::data::v1::CaptureInterval* Arena::CreateMaybeMessage<::viam::app::data::v1::CaptureInterval>(Arena*); +template<> ::viam::app::data::v1::CaptureMetadata* Arena::CreateMaybeMessage<::viam::app::data::v1::CaptureMetadata>(Arena*); +template<> ::viam::app::data::v1::CaptureMetadata_MethodParametersEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::app::data::v1::CaptureMetadata_MethodParametersEntry_DoNotUse>(Arena*); +template<> ::viam::app::data::v1::DataRequest* Arena::CreateMaybeMessage<::viam::app::data::v1::DataRequest>(Arena*); +template<> ::viam::app::data::v1::Filter* Arena::CreateMaybeMessage<::viam::app::data::v1::Filter>(Arena*); +template<> ::viam::app::data::v1::TabularData* Arena::CreateMaybeMessage<::viam::app::data::v1::TabularData>(Arena*); +template<> ::viam::app::data::v1::TabularDataByFilterRequest* Arena::CreateMaybeMessage<::viam::app::data::v1::TabularDataByFilterRequest>(Arena*); +template<> ::viam::app::data::v1::TabularDataByFilterResponse* Arena::CreateMaybeMessage<::viam::app::data::v1::TabularDataByFilterResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace app { +namespace data { +namespace v1 { + +// =================================================================== + +class DataRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.data.v1.DataRequest) */ { + public: + inline DataRequest() : DataRequest(nullptr) {} + ~DataRequest() override; + explicit PROTOBUF_CONSTEXPR DataRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DataRequest(const DataRequest& from); + DataRequest(DataRequest&& from) noexcept + : DataRequest() { + *this = ::std::move(from); + } + + inline DataRequest& operator=(const DataRequest& from) { + CopyFrom(from); + return *this; + } + inline DataRequest& operator=(DataRequest&& 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 DataRequest& default_instance() { + return *internal_default_instance(); + } + static inline const DataRequest* internal_default_instance() { + return reinterpret_cast( + &_DataRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(DataRequest& a, DataRequest& b) { + a.Swap(&b); + } + inline void Swap(DataRequest* 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(DataRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DataRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DataRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DataRequest& from) { + DataRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DataRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.data.v1.DataRequest"; + } + protected: + explicit DataRequest(::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 { + kFilterFieldNumber = 1, + kSkipFieldNumber = 2, + kLimitFieldNumber = 3, + }; + // .viam.app.data.v1.Filter filter = 1 [json_name = "filter"]; + bool has_filter() const; + private: + bool _internal_has_filter() const; + public: + void clear_filter(); + const ::viam::app::data::v1::Filter& filter() const; + PROTOBUF_NODISCARD ::viam::app::data::v1::Filter* release_filter(); + ::viam::app::data::v1::Filter* mutable_filter(); + void set_allocated_filter(::viam::app::data::v1::Filter* filter); + private: + const ::viam::app::data::v1::Filter& _internal_filter() const; + ::viam::app::data::v1::Filter* _internal_mutable_filter(); + public: + void unsafe_arena_set_allocated_filter( + ::viam::app::data::v1::Filter* filter); + ::viam::app::data::v1::Filter* unsafe_arena_release_filter(); + + // int64 skip = 2 [json_name = "skip"]; + void clear_skip(); + int64_t skip() const; + void set_skip(int64_t value); + private: + int64_t _internal_skip() const; + void _internal_set_skip(int64_t value); + public: + + // int64 limit = 3 [json_name = "limit"]; + void clear_limit(); + int64_t limit() const; + void set_limit(int64_t value); + private: + int64_t _internal_limit() const; + void _internal_set_limit(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.data.v1.DataRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::app::data::v1::Filter* filter_; + int64_t skip_; + int64_t limit_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdata_2fv1_2fdata_2eproto; +}; +// ------------------------------------------------------------------- + +class Filter final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.data.v1.Filter) */ { + public: + inline Filter() : Filter(nullptr) {} + ~Filter() override; + explicit PROTOBUF_CONSTEXPR Filter(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Filter(const Filter& from); + Filter(Filter&& from) noexcept + : Filter() { + *this = ::std::move(from); + } + + inline Filter& operator=(const Filter& from) { + CopyFrom(from); + return *this; + } + inline Filter& operator=(Filter&& 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 Filter& default_instance() { + return *internal_default_instance(); + } + static inline const Filter* internal_default_instance() { + return reinterpret_cast( + &_Filter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(Filter& a, Filter& b) { + a.Swap(&b); + } + inline void Swap(Filter* 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(Filter* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Filter* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Filter& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Filter& from) { + Filter::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Filter* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.data.v1.Filter"; + } + protected: + explicit Filter(::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 { + kTagsFieldNumber = 5, + kOrgIdsFieldNumber = 11, + kMimeTypeFieldNumber = 12, + kComponentNameFieldNumber = 1, + kComponentTypeFieldNumber = 2, + kComponentModelFieldNumber = 3, + kMethodFieldNumber = 4, + kRobotNameFieldNumber = 6, + kRobotIdFieldNumber = 7, + kPartNameFieldNumber = 8, + kPartIdFieldNumber = 9, + kLocationIdFieldNumber = 10, + kIntervalFieldNumber = 13, + }; + // repeated string tags = 5 [json_name = "tags"]; + int tags_size() const; + private: + int _internal_tags_size() const; + public: + void clear_tags(); + const std::string& tags(int index) const; + std::string* mutable_tags(int index); + void set_tags(int index, const std::string& value); + void set_tags(int index, std::string&& value); + void set_tags(int index, const char* value); + void set_tags(int index, const char* value, size_t size); + std::string* add_tags(); + void add_tags(const std::string& value); + void add_tags(std::string&& value); + void add_tags(const char* value); + void add_tags(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& tags() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_tags(); + private: + const std::string& _internal_tags(int index) const; + std::string* _internal_add_tags(); + public: + + // repeated string org_ids = 11 [json_name = "orgIds"]; + int org_ids_size() const; + private: + int _internal_org_ids_size() const; + public: + void clear_org_ids(); + const std::string& org_ids(int index) const; + std::string* mutable_org_ids(int index); + void set_org_ids(int index, const std::string& value); + void set_org_ids(int index, std::string&& value); + void set_org_ids(int index, const char* value); + void set_org_ids(int index, const char* value, size_t size); + std::string* add_org_ids(); + void add_org_ids(const std::string& value); + void add_org_ids(std::string&& value); + void add_org_ids(const char* value); + void add_org_ids(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& org_ids() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_org_ids(); + private: + const std::string& _internal_org_ids(int index) const; + std::string* _internal_add_org_ids(); + public: + + // repeated string mime_type = 12 [json_name = "mimeType"]; + int mime_type_size() const; + private: + int _internal_mime_type_size() const; + public: + void clear_mime_type(); + const std::string& mime_type(int index) const; + std::string* mutable_mime_type(int index); + void set_mime_type(int index, const std::string& value); + void set_mime_type(int index, std::string&& value); + void set_mime_type(int index, const char* value); + void set_mime_type(int index, const char* value, size_t size); + std::string* add_mime_type(); + void add_mime_type(const std::string& value); + void add_mime_type(std::string&& value); + void add_mime_type(const char* value); + void add_mime_type(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& mime_type() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_mime_type(); + private: + const std::string& _internal_mime_type(int index) const; + std::string* _internal_add_mime_type(); + public: + + // string component_name = 1 [json_name = "componentName"]; + void clear_component_name(); + const std::string& component_name() const; + template + void set_component_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_name(); + PROTOBUF_NODISCARD std::string* release_component_name(); + void set_allocated_component_name(std::string* component_name); + private: + const std::string& _internal_component_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_name(const std::string& value); + std::string* _internal_mutable_component_name(); + public: + + // string component_type = 2 [json_name = "componentType"]; + void clear_component_type(); + const std::string& component_type() const; + template + void set_component_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_type(); + PROTOBUF_NODISCARD std::string* release_component_type(); + void set_allocated_component_type(std::string* component_type); + private: + const std::string& _internal_component_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_type(const std::string& value); + std::string* _internal_mutable_component_type(); + public: + + // string component_model = 3 [json_name = "componentModel"]; + void clear_component_model(); + const std::string& component_model() const; + template + void set_component_model(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_model(); + PROTOBUF_NODISCARD std::string* release_component_model(); + void set_allocated_component_model(std::string* component_model); + private: + const std::string& _internal_component_model() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_model(const std::string& value); + std::string* _internal_mutable_component_model(); + public: + + // string method = 4 [json_name = "method"]; + void clear_method(); + const std::string& method() const; + template + void set_method(ArgT0&& arg0, ArgT... args); + std::string* mutable_method(); + PROTOBUF_NODISCARD std::string* release_method(); + void set_allocated_method(std::string* method); + private: + const std::string& _internal_method() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_method(const std::string& value); + std::string* _internal_mutable_method(); + public: + + // string robot_name = 6 [json_name = "robotName"]; + void clear_robot_name(); + const std::string& robot_name() const; + template + void set_robot_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_robot_name(); + PROTOBUF_NODISCARD std::string* release_robot_name(); + void set_allocated_robot_name(std::string* robot_name); + private: + const std::string& _internal_robot_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_name(const std::string& value); + std::string* _internal_mutable_robot_name(); + public: + + // string robot_id = 7 [json_name = "robotId"]; + void clear_robot_id(); + const std::string& robot_id() const; + template + void set_robot_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_robot_id(); + PROTOBUF_NODISCARD std::string* release_robot_id(); + void set_allocated_robot_id(std::string* robot_id); + private: + const std::string& _internal_robot_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_id(const std::string& value); + std::string* _internal_mutable_robot_id(); + public: + + // string part_name = 8 [json_name = "partName"]; + void clear_part_name(); + const std::string& part_name() const; + template + void set_part_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_part_name(); + PROTOBUF_NODISCARD std::string* release_part_name(); + void set_allocated_part_name(std::string* part_name); + private: + const std::string& _internal_part_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_name(const std::string& value); + std::string* _internal_mutable_part_name(); + public: + + // string part_id = 9 [json_name = "partId"]; + void clear_part_id(); + const std::string& part_id() const; + template + void set_part_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_part_id(); + PROTOBUF_NODISCARD std::string* release_part_id(); + void set_allocated_part_id(std::string* part_id); + private: + const std::string& _internal_part_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_id(const std::string& value); + std::string* _internal_mutable_part_id(); + public: + + // string location_id = 10 [json_name = "locationId"]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); + private: + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); + public: + + // .viam.app.data.v1.CaptureInterval interval = 13 [json_name = "interval"]; + bool has_interval() const; + private: + bool _internal_has_interval() const; + public: + void clear_interval(); + const ::viam::app::data::v1::CaptureInterval& interval() const; + PROTOBUF_NODISCARD ::viam::app::data::v1::CaptureInterval* release_interval(); + ::viam::app::data::v1::CaptureInterval* mutable_interval(); + void set_allocated_interval(::viam::app::data::v1::CaptureInterval* interval); + private: + const ::viam::app::data::v1::CaptureInterval& _internal_interval() const; + ::viam::app::data::v1::CaptureInterval* _internal_mutable_interval(); + public: + void unsafe_arena_set_allocated_interval( + ::viam::app::data::v1::CaptureInterval* interval); + ::viam::app::data::v1::CaptureInterval* unsafe_arena_release_interval(); + + // @@protoc_insertion_point(class_scope:viam.app.data.v1.Filter) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField tags_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField org_ids_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField mime_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_model_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr method_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr robot_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr robot_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr part_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr part_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + ::viam::app::data::v1::CaptureInterval* interval_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdata_2fv1_2fdata_2eproto; +}; +// ------------------------------------------------------------------- + +class CaptureMetadata_MethodParametersEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + CaptureMetadata_MethodParametersEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR CaptureMetadata_MethodParametersEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit CaptureMetadata_MethodParametersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const CaptureMetadata_MethodParametersEntry_DoNotUse& other); + static const CaptureMetadata_MethodParametersEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_CaptureMetadata_MethodParametersEntry_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.app.data.v1.CaptureMetadata.MethodParametersEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_app_2fdata_2fv1_2fdata_2eproto; +}; + +// ------------------------------------------------------------------- + +class CaptureMetadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.data.v1.CaptureMetadata) */ { + public: + inline CaptureMetadata() : CaptureMetadata(nullptr) {} + ~CaptureMetadata() override; + explicit PROTOBUF_CONSTEXPR CaptureMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CaptureMetadata(const CaptureMetadata& from); + CaptureMetadata(CaptureMetadata&& from) noexcept + : CaptureMetadata() { + *this = ::std::move(from); + } + + inline CaptureMetadata& operator=(const CaptureMetadata& from) { + CopyFrom(from); + return *this; + } + inline CaptureMetadata& operator=(CaptureMetadata&& 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 CaptureMetadata& default_instance() { + return *internal_default_instance(); + } + static inline const CaptureMetadata* internal_default_instance() { + return reinterpret_cast( + &_CaptureMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(CaptureMetadata& a, CaptureMetadata& b) { + a.Swap(&b); + } + inline void Swap(CaptureMetadata* 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(CaptureMetadata* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CaptureMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CaptureMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const CaptureMetadata& from) { + CaptureMetadata::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CaptureMetadata* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.data.v1.CaptureMetadata"; + } + protected: + explicit CaptureMetadata(::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 { + kMethodParametersFieldNumber = 11, + kTagsFieldNumber = 12, + kOrgIdFieldNumber = 1, + kLocationIdFieldNumber = 2, + kRobotNameFieldNumber = 3, + kRobotIdFieldNumber = 4, + kPartNameFieldNumber = 5, + kPartIdFieldNumber = 6, + kComponentTypeFieldNumber = 7, + kComponentModelFieldNumber = 8, + kComponentNameFieldNumber = 9, + kMethodNameFieldNumber = 10, + kMimeTypeFieldNumber = 13, + }; + // map method_parameters = 11 [json_name = "methodParameters"]; + int method_parameters_size() const; + private: + int _internal_method_parameters_size() const; + public: + void clear_method_parameters(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >& + _internal_method_parameters() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >* + _internal_mutable_method_parameters(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >& + method_parameters() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >* + mutable_method_parameters(); + + // repeated string tags = 12 [json_name = "tags"]; + int tags_size() const; + private: + int _internal_tags_size() const; + public: + void clear_tags(); + const std::string& tags(int index) const; + std::string* mutable_tags(int index); + void set_tags(int index, const std::string& value); + void set_tags(int index, std::string&& value); + void set_tags(int index, const char* value); + void set_tags(int index, const char* value, size_t size); + std::string* add_tags(); + void add_tags(const std::string& value); + void add_tags(std::string&& value); + void add_tags(const char* value); + void add_tags(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& tags() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_tags(); + private: + const std::string& _internal_tags(int index) const; + std::string* _internal_add_tags(); + public: + + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); + public: + + // string location_id = 2 [json_name = "locationId"]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); + private: + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); + public: + + // string robot_name = 3 [json_name = "robotName"]; + void clear_robot_name(); + const std::string& robot_name() const; + template + void set_robot_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_robot_name(); + PROTOBUF_NODISCARD std::string* release_robot_name(); + void set_allocated_robot_name(std::string* robot_name); + private: + const std::string& _internal_robot_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_name(const std::string& value); + std::string* _internal_mutable_robot_name(); + public: + + // string robot_id = 4 [json_name = "robotId"]; + void clear_robot_id(); + const std::string& robot_id() const; + template + void set_robot_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_robot_id(); + PROTOBUF_NODISCARD std::string* release_robot_id(); + void set_allocated_robot_id(std::string* robot_id); + private: + const std::string& _internal_robot_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_id(const std::string& value); + std::string* _internal_mutable_robot_id(); + public: + + // string part_name = 5 [json_name = "partName"]; + void clear_part_name(); + const std::string& part_name() const; + template + void set_part_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_part_name(); + PROTOBUF_NODISCARD std::string* release_part_name(); + void set_allocated_part_name(std::string* part_name); + private: + const std::string& _internal_part_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_name(const std::string& value); + std::string* _internal_mutable_part_name(); + public: + + // string part_id = 6 [json_name = "partId"]; + void clear_part_id(); + const std::string& part_id() const; + template + void set_part_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_part_id(); + PROTOBUF_NODISCARD std::string* release_part_id(); + void set_allocated_part_id(std::string* part_id); + private: + const std::string& _internal_part_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_id(const std::string& value); + std::string* _internal_mutable_part_id(); + public: + + // string component_type = 7 [json_name = "componentType"]; + void clear_component_type(); + const std::string& component_type() const; + template + void set_component_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_type(); + PROTOBUF_NODISCARD std::string* release_component_type(); + void set_allocated_component_type(std::string* component_type); + private: + const std::string& _internal_component_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_type(const std::string& value); + std::string* _internal_mutable_component_type(); + public: + + // string component_model = 8 [json_name = "componentModel"]; + void clear_component_model(); + const std::string& component_model() const; + template + void set_component_model(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_model(); + PROTOBUF_NODISCARD std::string* release_component_model(); + void set_allocated_component_model(std::string* component_model); + private: + const std::string& _internal_component_model() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_model(const std::string& value); + std::string* _internal_mutable_component_model(); + public: + + // string component_name = 9 [json_name = "componentName"]; + void clear_component_name(); + const std::string& component_name() const; + template + void set_component_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_name(); + PROTOBUF_NODISCARD std::string* release_component_name(); + void set_allocated_component_name(std::string* component_name); + private: + const std::string& _internal_component_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_name(const std::string& value); + std::string* _internal_mutable_component_name(); + public: + + // string method_name = 10 [json_name = "methodName"]; + void clear_method_name(); + const std::string& method_name() const; + template + void set_method_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_method_name(); + PROTOBUF_NODISCARD std::string* release_method_name(); + void set_allocated_method_name(std::string* method_name); + private: + const std::string& _internal_method_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_method_name(const std::string& value); + std::string* _internal_mutable_method_name(); + public: + + // string mime_type = 13 [json_name = "mimeType"]; + void clear_mime_type(); + const std::string& mime_type() const; + template + void set_mime_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_mime_type(); + PROTOBUF_NODISCARD std::string* release_mime_type(); + void set_allocated_mime_type(std::string* mime_type); + private: + const std::string& _internal_mime_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); + std::string* _internal_mutable_mime_type(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.data.v1.CaptureMetadata) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + CaptureMetadata_MethodParametersEntry_DoNotUse, + std::string, ::PROTOBUF_NAMESPACE_ID::Any, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> method_parameters_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField tags_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr robot_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr robot_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr part_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr part_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_model_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr method_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdata_2fv1_2fdata_2eproto; +}; +// ------------------------------------------------------------------- + +class CaptureInterval final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.data.v1.CaptureInterval) */ { + public: + inline CaptureInterval() : CaptureInterval(nullptr) {} + ~CaptureInterval() override; + explicit PROTOBUF_CONSTEXPR CaptureInterval(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CaptureInterval(const CaptureInterval& from); + CaptureInterval(CaptureInterval&& from) noexcept + : CaptureInterval() { + *this = ::std::move(from); + } + + inline CaptureInterval& operator=(const CaptureInterval& from) { + CopyFrom(from); + return *this; + } + inline CaptureInterval& operator=(CaptureInterval&& 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 CaptureInterval& default_instance() { + return *internal_default_instance(); + } + static inline const CaptureInterval* internal_default_instance() { + return reinterpret_cast( + &_CaptureInterval_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(CaptureInterval& a, CaptureInterval& b) { + a.Swap(&b); + } + inline void Swap(CaptureInterval* 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(CaptureInterval* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CaptureInterval* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CaptureInterval& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const CaptureInterval& from) { + CaptureInterval::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CaptureInterval* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.data.v1.CaptureInterval"; + } + protected: + explicit CaptureInterval(::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 { + kStartFieldNumber = 1, + kEndFieldNumber = 2, + }; + // .google.protobuf.Timestamp start = 1 [json_name = "start"]; + bool has_start() const; + private: + bool _internal_has_start() const; + public: + void clear_start(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& start() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_start(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_start(); + void set_allocated_start(::PROTOBUF_NAMESPACE_ID::Timestamp* start); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_start() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_start(); + public: + void unsafe_arena_set_allocated_start( + ::PROTOBUF_NAMESPACE_ID::Timestamp* start); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_start(); + + // .google.protobuf.Timestamp end = 2 [json_name = "end"]; + bool has_end() const; + private: + bool _internal_has_end() const; + public: + void clear_end(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& end() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_end(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_end(); + void set_allocated_end(::PROTOBUF_NAMESPACE_ID::Timestamp* end); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_end() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_end(); + public: + void unsafe_arena_set_allocated_end( + ::PROTOBUF_NAMESPACE_ID::Timestamp* end); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_end(); + + // @@protoc_insertion_point(class_scope:viam.app.data.v1.CaptureInterval) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::Timestamp* start_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* end_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdata_2fv1_2fdata_2eproto; +}; +// ------------------------------------------------------------------- + +class TabularDataByFilterRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.data.v1.TabularDataByFilterRequest) */ { + public: + inline TabularDataByFilterRequest() : TabularDataByFilterRequest(nullptr) {} + ~TabularDataByFilterRequest() override; + explicit PROTOBUF_CONSTEXPR TabularDataByFilterRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + TabularDataByFilterRequest(const TabularDataByFilterRequest& from); + TabularDataByFilterRequest(TabularDataByFilterRequest&& from) noexcept + : TabularDataByFilterRequest() { + *this = ::std::move(from); + } + + inline TabularDataByFilterRequest& operator=(const TabularDataByFilterRequest& from) { + CopyFrom(from); + return *this; + } + inline TabularDataByFilterRequest& operator=(TabularDataByFilterRequest&& 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 TabularDataByFilterRequest& default_instance() { + return *internal_default_instance(); + } + static inline const TabularDataByFilterRequest* internal_default_instance() { + return reinterpret_cast( + &_TabularDataByFilterRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(TabularDataByFilterRequest& a, TabularDataByFilterRequest& b) { + a.Swap(&b); + } + inline void Swap(TabularDataByFilterRequest* 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(TabularDataByFilterRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TabularDataByFilterRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TabularDataByFilterRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const TabularDataByFilterRequest& from) { + TabularDataByFilterRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TabularDataByFilterRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.data.v1.TabularDataByFilterRequest"; + } + protected: + explicit TabularDataByFilterRequest(::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 { + kDataRequestFieldNumber = 1, + kCountOnlyFieldNumber = 2, + }; + // .viam.app.data.v1.DataRequest data_request = 1 [json_name = "dataRequest"]; + bool has_data_request() const; + private: + bool _internal_has_data_request() const; + public: + void clear_data_request(); + const ::viam::app::data::v1::DataRequest& data_request() const; + PROTOBUF_NODISCARD ::viam::app::data::v1::DataRequest* release_data_request(); + ::viam::app::data::v1::DataRequest* mutable_data_request(); + void set_allocated_data_request(::viam::app::data::v1::DataRequest* data_request); + private: + const ::viam::app::data::v1::DataRequest& _internal_data_request() const; + ::viam::app::data::v1::DataRequest* _internal_mutable_data_request(); + public: + void unsafe_arena_set_allocated_data_request( + ::viam::app::data::v1::DataRequest* data_request); + ::viam::app::data::v1::DataRequest* unsafe_arena_release_data_request(); + + // bool count_only = 2 [json_name = "countOnly"]; + void clear_count_only(); + bool count_only() const; + void set_count_only(bool value); + private: + bool _internal_count_only() const; + void _internal_set_count_only(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.data.v1.TabularDataByFilterRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::app::data::v1::DataRequest* data_request_; + bool count_only_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdata_2fv1_2fdata_2eproto; +}; +// ------------------------------------------------------------------- + +class TabularDataByFilterResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.data.v1.TabularDataByFilterResponse) */ { + public: + inline TabularDataByFilterResponse() : TabularDataByFilterResponse(nullptr) {} + ~TabularDataByFilterResponse() override; + explicit PROTOBUF_CONSTEXPR TabularDataByFilterResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + TabularDataByFilterResponse(const TabularDataByFilterResponse& from); + TabularDataByFilterResponse(TabularDataByFilterResponse&& from) noexcept + : TabularDataByFilterResponse() { + *this = ::std::move(from); + } + + inline TabularDataByFilterResponse& operator=(const TabularDataByFilterResponse& from) { + CopyFrom(from); + return *this; + } + inline TabularDataByFilterResponse& operator=(TabularDataByFilterResponse&& 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 TabularDataByFilterResponse& default_instance() { + return *internal_default_instance(); + } + static inline const TabularDataByFilterResponse* internal_default_instance() { + return reinterpret_cast( + &_TabularDataByFilterResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(TabularDataByFilterResponse& a, TabularDataByFilterResponse& b) { + a.Swap(&b); + } + inline void Swap(TabularDataByFilterResponse* 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(TabularDataByFilterResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TabularDataByFilterResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TabularDataByFilterResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const TabularDataByFilterResponse& from) { + TabularDataByFilterResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TabularDataByFilterResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.data.v1.TabularDataByFilterResponse"; + } + protected: + explicit TabularDataByFilterResponse(::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 { + kMetadataFieldNumber = 1, + kDataFieldNumber = 2, + kCountFieldNumber = 3, + }; + // repeated .viam.app.data.v1.CaptureMetadata metadata = 1 [json_name = "metadata"]; + int metadata_size() const; + private: + int _internal_metadata_size() const; + public: + void clear_metadata(); + ::viam::app::data::v1::CaptureMetadata* mutable_metadata(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::CaptureMetadata >* + mutable_metadata(); + private: + const ::viam::app::data::v1::CaptureMetadata& _internal_metadata(int index) const; + ::viam::app::data::v1::CaptureMetadata* _internal_add_metadata(); + public: + const ::viam::app::data::v1::CaptureMetadata& metadata(int index) const; + ::viam::app::data::v1::CaptureMetadata* add_metadata(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::CaptureMetadata >& + metadata() const; + + // repeated .viam.app.data.v1.TabularData data = 2 [json_name = "data"]; + int data_size() const; + private: + int _internal_data_size() const; + public: + void clear_data(); + ::viam::app::data::v1::TabularData* mutable_data(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::TabularData >* + mutable_data(); + private: + const ::viam::app::data::v1::TabularData& _internal_data(int index) const; + ::viam::app::data::v1::TabularData* _internal_add_data(); + public: + const ::viam::app::data::v1::TabularData& data(int index) const; + ::viam::app::data::v1::TabularData* add_data(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::TabularData >& + data() const; + + // int64 count = 3 [json_name = "count"]; + void clear_count(); + int64_t count() const; + void set_count(int64_t value); + private: + int64_t _internal_count() const; + void _internal_set_count(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.data.v1.TabularDataByFilterResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::CaptureMetadata > metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::TabularData > data_; + int64_t count_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdata_2fv1_2fdata_2eproto; +}; +// ------------------------------------------------------------------- + +class TabularData final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.data.v1.TabularData) */ { + public: + inline TabularData() : TabularData(nullptr) {} + ~TabularData() override; + explicit PROTOBUF_CONSTEXPR TabularData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + TabularData(const TabularData& from); + TabularData(TabularData&& from) noexcept + : TabularData() { + *this = ::std::move(from); + } + + inline TabularData& operator=(const TabularData& from) { + CopyFrom(from); + return *this; + } + inline TabularData& operator=(TabularData&& 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 TabularData& default_instance() { + return *internal_default_instance(); + } + static inline const TabularData* internal_default_instance() { + return reinterpret_cast( + &_TabularData_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(TabularData& a, TabularData& b) { + a.Swap(&b); + } + inline void Swap(TabularData* 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(TabularData* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TabularData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TabularData& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const TabularData& from) { + TabularData::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TabularData* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.data.v1.TabularData"; + } + protected: + explicit TabularData(::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 { + kDataFieldNumber = 1, + kTimeRequestedFieldNumber = 3, + kTimeReceivedFieldNumber = 4, + kMetadataIndexFieldNumber = 2, + }; + // .google.protobuf.Struct data = 1 [json_name = "data"]; + bool has_data() const; + private: + bool _internal_has_data() const; + public: + void clear_data(); + const ::PROTOBUF_NAMESPACE_ID::Struct& data() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_data(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_data(); + void set_allocated_data(::PROTOBUF_NAMESPACE_ID::Struct* data); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_data() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_data(); + public: + void unsafe_arena_set_allocated_data( + ::PROTOBUF_NAMESPACE_ID::Struct* data); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_data(); + + // .google.protobuf.Timestamp time_requested = 3 [json_name = "timeRequested"]; + bool has_time_requested() const; + private: + bool _internal_has_time_requested() const; + public: + void clear_time_requested(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& time_requested() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_time_requested(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_time_requested(); + void set_allocated_time_requested(::PROTOBUF_NAMESPACE_ID::Timestamp* time_requested); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_time_requested() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_time_requested(); + public: + void unsafe_arena_set_allocated_time_requested( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_requested); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_time_requested(); + + // .google.protobuf.Timestamp time_received = 4 [json_name = "timeReceived"]; + bool has_time_received() const; + private: + bool _internal_has_time_received() const; + public: + void clear_time_received(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& time_received() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_time_received(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_time_received(); + void set_allocated_time_received(::PROTOBUF_NAMESPACE_ID::Timestamp* time_received); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_time_received() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_time_received(); + public: + void unsafe_arena_set_allocated_time_received( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_received); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_time_received(); + + // int32 metadata_index = 2 [json_name = "metadataIndex"]; + void clear_metadata_index(); + int32_t metadata_index() const; + void set_metadata_index(int32_t value); + private: + int32_t _internal_metadata_index() const; + void _internal_set_metadata_index(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.data.v1.TabularData) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::Struct* data_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_requested_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_received_; + int32_t metadata_index_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdata_2fv1_2fdata_2eproto; +}; +// ------------------------------------------------------------------- + +class BinaryData final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.data.v1.BinaryData) */ { + public: + inline BinaryData() : BinaryData(nullptr) {} + ~BinaryData() override; + explicit PROTOBUF_CONSTEXPR BinaryData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + BinaryData(const BinaryData& from); + BinaryData(BinaryData&& from) noexcept + : BinaryData() { + *this = ::std::move(from); + } + + inline BinaryData& operator=(const BinaryData& from) { + CopyFrom(from); + return *this; + } + inline BinaryData& operator=(BinaryData&& 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 BinaryData& default_instance() { + return *internal_default_instance(); + } + static inline const BinaryData* internal_default_instance() { + return reinterpret_cast( + &_BinaryData_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(BinaryData& a, BinaryData& b) { + a.Swap(&b); + } + inline void Swap(BinaryData* 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(BinaryData* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BinaryData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const BinaryData& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const BinaryData& from) { + BinaryData::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BinaryData* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.data.v1.BinaryData"; + } + protected: + explicit BinaryData(::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 { + kIdFieldNumber = 1, + kUriFieldNumber = 2, + kBinaryFieldNumber = 3, + kNameFieldNumber = 7, + kTimeRequestedFieldNumber = 5, + kTimeReceivedFieldNumber = 6, + kMetadataIndexFieldNumber = 4, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string uri = 2 [json_name = "uri"]; + void clear_uri(); + const std::string& uri() const; + template + void set_uri(ArgT0&& arg0, ArgT... args); + std::string* mutable_uri(); + PROTOBUF_NODISCARD std::string* release_uri(); + void set_allocated_uri(std::string* uri); + private: + const std::string& _internal_uri() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_uri(const std::string& value); + std::string* _internal_mutable_uri(); + public: + + // bytes binary = 3 [json_name = "binary"]; + void clear_binary(); + const std::string& binary() const; + template + void set_binary(ArgT0&& arg0, ArgT... args); + std::string* mutable_binary(); + PROTOBUF_NODISCARD std::string* release_binary(); + void set_allocated_binary(std::string* binary); + private: + const std::string& _internal_binary() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_binary(const std::string& value); + std::string* _internal_mutable_binary(); + public: + + // string name = 7 [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.Timestamp time_requested = 5 [json_name = "timeRequested"]; + bool has_time_requested() const; + private: + bool _internal_has_time_requested() const; + public: + void clear_time_requested(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& time_requested() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_time_requested(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_time_requested(); + void set_allocated_time_requested(::PROTOBUF_NAMESPACE_ID::Timestamp* time_requested); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_time_requested() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_time_requested(); + public: + void unsafe_arena_set_allocated_time_requested( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_requested); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_time_requested(); + + // .google.protobuf.Timestamp time_received = 6 [json_name = "timeReceived"]; + bool has_time_received() const; + private: + bool _internal_has_time_received() const; + public: + void clear_time_received(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& time_received() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_time_received(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_time_received(); + void set_allocated_time_received(::PROTOBUF_NAMESPACE_ID::Timestamp* time_received); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_time_received() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_time_received(); + public: + void unsafe_arena_set_allocated_time_received( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_received); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_time_received(); + + // int32 metadata_index = 4 [json_name = "metadataIndex"]; + void clear_metadata_index(); + int32_t metadata_index() const; + void set_metadata_index(int32_t value); + private: + int32_t _internal_metadata_index() const; + void _internal_set_metadata_index(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.data.v1.BinaryData) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uri_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr binary_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_requested_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_received_; + int32_t metadata_index_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdata_2fv1_2fdata_2eproto; +}; +// ------------------------------------------------------------------- + +class BinaryDataByFilterRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.data.v1.BinaryDataByFilterRequest) */ { + public: + inline BinaryDataByFilterRequest() : BinaryDataByFilterRequest(nullptr) {} + ~BinaryDataByFilterRequest() override; + explicit PROTOBUF_CONSTEXPR BinaryDataByFilterRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + BinaryDataByFilterRequest(const BinaryDataByFilterRequest& from); + BinaryDataByFilterRequest(BinaryDataByFilterRequest&& from) noexcept + : BinaryDataByFilterRequest() { + *this = ::std::move(from); + } + + inline BinaryDataByFilterRequest& operator=(const BinaryDataByFilterRequest& from) { + CopyFrom(from); + return *this; + } + inline BinaryDataByFilterRequest& operator=(BinaryDataByFilterRequest&& 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 BinaryDataByFilterRequest& default_instance() { + return *internal_default_instance(); + } + static inline const BinaryDataByFilterRequest* internal_default_instance() { + return reinterpret_cast( + &_BinaryDataByFilterRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(BinaryDataByFilterRequest& a, BinaryDataByFilterRequest& b) { + a.Swap(&b); + } + inline void Swap(BinaryDataByFilterRequest* 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(BinaryDataByFilterRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BinaryDataByFilterRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const BinaryDataByFilterRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const BinaryDataByFilterRequest& from) { + BinaryDataByFilterRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BinaryDataByFilterRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.data.v1.BinaryDataByFilterRequest"; + } + protected: + explicit BinaryDataByFilterRequest(::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 { + kDataRequestFieldNumber = 1, + kIncludeBinaryFieldNumber = 2, + kCountOnlyFieldNumber = 3, + }; + // .viam.app.data.v1.DataRequest data_request = 1 [json_name = "dataRequest"]; + bool has_data_request() const; + private: + bool _internal_has_data_request() const; + public: + void clear_data_request(); + const ::viam::app::data::v1::DataRequest& data_request() const; + PROTOBUF_NODISCARD ::viam::app::data::v1::DataRequest* release_data_request(); + ::viam::app::data::v1::DataRequest* mutable_data_request(); + void set_allocated_data_request(::viam::app::data::v1::DataRequest* data_request); + private: + const ::viam::app::data::v1::DataRequest& _internal_data_request() const; + ::viam::app::data::v1::DataRequest* _internal_mutable_data_request(); + public: + void unsafe_arena_set_allocated_data_request( + ::viam::app::data::v1::DataRequest* data_request); + ::viam::app::data::v1::DataRequest* unsafe_arena_release_data_request(); + + // bool include_binary = 2 [json_name = "includeBinary"]; + void clear_include_binary(); + bool include_binary() const; + void set_include_binary(bool value); + private: + bool _internal_include_binary() const; + void _internal_set_include_binary(bool value); + public: + + // bool count_only = 3 [json_name = "countOnly"]; + void clear_count_only(); + bool count_only() const; + void set_count_only(bool value); + private: + bool _internal_count_only() const; + void _internal_set_count_only(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.data.v1.BinaryDataByFilterRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::app::data::v1::DataRequest* data_request_; + bool include_binary_; + bool count_only_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdata_2fv1_2fdata_2eproto; +}; +// ------------------------------------------------------------------- + +class BinaryDataByFilterResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.data.v1.BinaryDataByFilterResponse) */ { + public: + inline BinaryDataByFilterResponse() : BinaryDataByFilterResponse(nullptr) {} + ~BinaryDataByFilterResponse() override; + explicit PROTOBUF_CONSTEXPR BinaryDataByFilterResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + BinaryDataByFilterResponse(const BinaryDataByFilterResponse& from); + BinaryDataByFilterResponse(BinaryDataByFilterResponse&& from) noexcept + : BinaryDataByFilterResponse() { + *this = ::std::move(from); + } + + inline BinaryDataByFilterResponse& operator=(const BinaryDataByFilterResponse& from) { + CopyFrom(from); + return *this; + } + inline BinaryDataByFilterResponse& operator=(BinaryDataByFilterResponse&& 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 BinaryDataByFilterResponse& default_instance() { + return *internal_default_instance(); + } + static inline const BinaryDataByFilterResponse* internal_default_instance() { + return reinterpret_cast( + &_BinaryDataByFilterResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(BinaryDataByFilterResponse& a, BinaryDataByFilterResponse& b) { + a.Swap(&b); + } + inline void Swap(BinaryDataByFilterResponse* 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(BinaryDataByFilterResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BinaryDataByFilterResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const BinaryDataByFilterResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const BinaryDataByFilterResponse& from) { + BinaryDataByFilterResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BinaryDataByFilterResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.data.v1.BinaryDataByFilterResponse"; + } + protected: + explicit BinaryDataByFilterResponse(::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 { + kMetadataFieldNumber = 1, + kDataFieldNumber = 2, + kCountFieldNumber = 3, + }; + // repeated .viam.app.data.v1.CaptureMetadata metadata = 1 [json_name = "metadata"]; + int metadata_size() const; + private: + int _internal_metadata_size() const; + public: + void clear_metadata(); + ::viam::app::data::v1::CaptureMetadata* mutable_metadata(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::CaptureMetadata >* + mutable_metadata(); + private: + const ::viam::app::data::v1::CaptureMetadata& _internal_metadata(int index) const; + ::viam::app::data::v1::CaptureMetadata* _internal_add_metadata(); + public: + const ::viam::app::data::v1::CaptureMetadata& metadata(int index) const; + ::viam::app::data::v1::CaptureMetadata* add_metadata(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::CaptureMetadata >& + metadata() const; + + // repeated .viam.app.data.v1.BinaryData data = 2 [json_name = "data"]; + int data_size() const; + private: + int _internal_data_size() const; + public: + void clear_data(); + ::viam::app::data::v1::BinaryData* mutable_data(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::BinaryData >* + mutable_data(); + private: + const ::viam::app::data::v1::BinaryData& _internal_data(int index) const; + ::viam::app::data::v1::BinaryData* _internal_add_data(); + public: + const ::viam::app::data::v1::BinaryData& data(int index) const; + ::viam::app::data::v1::BinaryData* add_data(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::BinaryData >& + data() const; + + // int64 count = 3 [json_name = "count"]; + void clear_count(); + int64_t count() const; + void set_count(int64_t value); + private: + int64_t _internal_count() const; + void _internal_set_count(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.data.v1.BinaryDataByFilterResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::CaptureMetadata > metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::BinaryData > data_; + int64_t count_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdata_2fv1_2fdata_2eproto; +}; +// ------------------------------------------------------------------- + +class BinaryDataByIDsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.data.v1.BinaryDataByIDsRequest) */ { + public: + inline BinaryDataByIDsRequest() : BinaryDataByIDsRequest(nullptr) {} + ~BinaryDataByIDsRequest() override; + explicit PROTOBUF_CONSTEXPR BinaryDataByIDsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + BinaryDataByIDsRequest(const BinaryDataByIDsRequest& from); + BinaryDataByIDsRequest(BinaryDataByIDsRequest&& from) noexcept + : BinaryDataByIDsRequest() { + *this = ::std::move(from); + } + + inline BinaryDataByIDsRequest& operator=(const BinaryDataByIDsRequest& from) { + CopyFrom(from); + return *this; + } + inline BinaryDataByIDsRequest& operator=(BinaryDataByIDsRequest&& 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 BinaryDataByIDsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const BinaryDataByIDsRequest* internal_default_instance() { + return reinterpret_cast( + &_BinaryDataByIDsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(BinaryDataByIDsRequest& a, BinaryDataByIDsRequest& b) { + a.Swap(&b); + } + inline void Swap(BinaryDataByIDsRequest* 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(BinaryDataByIDsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BinaryDataByIDsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const BinaryDataByIDsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const BinaryDataByIDsRequest& from) { + BinaryDataByIDsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BinaryDataByIDsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.data.v1.BinaryDataByIDsRequest"; + } + protected: + explicit BinaryDataByIDsRequest(::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 { + kFileIdsFieldNumber = 1, + kIncludeBinaryFieldNumber = 2, + }; + // repeated string file_ids = 1 [json_name = "fileIds"]; + int file_ids_size() const; + private: + int _internal_file_ids_size() const; + public: + void clear_file_ids(); + const std::string& file_ids(int index) const; + std::string* mutable_file_ids(int index); + void set_file_ids(int index, const std::string& value); + void set_file_ids(int index, std::string&& value); + void set_file_ids(int index, const char* value); + void set_file_ids(int index, const char* value, size_t size); + std::string* add_file_ids(); + void add_file_ids(const std::string& value); + void add_file_ids(std::string&& value); + void add_file_ids(const char* value); + void add_file_ids(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& file_ids() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_file_ids(); + private: + const std::string& _internal_file_ids(int index) const; + std::string* _internal_add_file_ids(); + public: + + // bool include_binary = 2 [json_name = "includeBinary"]; + void clear_include_binary(); + bool include_binary() const; + void set_include_binary(bool value); + private: + bool _internal_include_binary() const; + void _internal_set_include_binary(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.data.v1.BinaryDataByIDsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField file_ids_; + bool include_binary_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdata_2fv1_2fdata_2eproto; +}; +// ------------------------------------------------------------------- + +class BinaryDataByIDsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.data.v1.BinaryDataByIDsResponse) */ { + public: + inline BinaryDataByIDsResponse() : BinaryDataByIDsResponse(nullptr) {} + ~BinaryDataByIDsResponse() override; + explicit PROTOBUF_CONSTEXPR BinaryDataByIDsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + BinaryDataByIDsResponse(const BinaryDataByIDsResponse& from); + BinaryDataByIDsResponse(BinaryDataByIDsResponse&& from) noexcept + : BinaryDataByIDsResponse() { + *this = ::std::move(from); + } + + inline BinaryDataByIDsResponse& operator=(const BinaryDataByIDsResponse& from) { + CopyFrom(from); + return *this; + } + inline BinaryDataByIDsResponse& operator=(BinaryDataByIDsResponse&& 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 BinaryDataByIDsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const BinaryDataByIDsResponse* internal_default_instance() { + return reinterpret_cast( + &_BinaryDataByIDsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(BinaryDataByIDsResponse& a, BinaryDataByIDsResponse& b) { + a.Swap(&b); + } + inline void Swap(BinaryDataByIDsResponse* 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(BinaryDataByIDsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BinaryDataByIDsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const BinaryDataByIDsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const BinaryDataByIDsResponse& from) { + BinaryDataByIDsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BinaryDataByIDsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.data.v1.BinaryDataByIDsResponse"; + } + protected: + explicit BinaryDataByIDsResponse(::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 { + kMetadataFieldNumber = 1, + kDataFieldNumber = 2, + kCountFieldNumber = 3, + }; + // repeated .viam.app.data.v1.CaptureMetadata metadata = 1 [json_name = "metadata"]; + int metadata_size() const; + private: + int _internal_metadata_size() const; + public: + void clear_metadata(); + ::viam::app::data::v1::CaptureMetadata* mutable_metadata(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::CaptureMetadata >* + mutable_metadata(); + private: + const ::viam::app::data::v1::CaptureMetadata& _internal_metadata(int index) const; + ::viam::app::data::v1::CaptureMetadata* _internal_add_metadata(); + public: + const ::viam::app::data::v1::CaptureMetadata& metadata(int index) const; + ::viam::app::data::v1::CaptureMetadata* add_metadata(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::CaptureMetadata >& + metadata() const; + + // repeated .viam.app.data.v1.BinaryData data = 2 [json_name = "data"]; + int data_size() const; + private: + int _internal_data_size() const; + public: + void clear_data(); + ::viam::app::data::v1::BinaryData* mutable_data(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::BinaryData >* + mutable_data(); + private: + const ::viam::app::data::v1::BinaryData& _internal_data(int index) const; + ::viam::app::data::v1::BinaryData* _internal_add_data(); + public: + const ::viam::app::data::v1::BinaryData& data(int index) const; + ::viam::app::data::v1::BinaryData* add_data(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::BinaryData >& + data() const; + + // int64 count = 3 [json_name = "count"]; + void clear_count(); + int64_t count() const; + void set_count(int64_t value); + private: + int64_t _internal_count() const; + void _internal_set_count(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.data.v1.BinaryDataByIDsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::CaptureMetadata > metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::BinaryData > data_; + int64_t count_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdata_2fv1_2fdata_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// DataRequest + +// .viam.app.data.v1.Filter filter = 1 [json_name = "filter"]; +inline bool DataRequest::_internal_has_filter() const { + return this != internal_default_instance() && _impl_.filter_ != nullptr; +} +inline bool DataRequest::has_filter() const { + return _internal_has_filter(); +} +inline void DataRequest::clear_filter() { + if (GetArenaForAllocation() == nullptr && _impl_.filter_ != nullptr) { + delete _impl_.filter_; + } + _impl_.filter_ = nullptr; +} +inline const ::viam::app::data::v1::Filter& DataRequest::_internal_filter() const { + const ::viam::app::data::v1::Filter* p = _impl_.filter_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::data::v1::_Filter_default_instance_); +} +inline const ::viam::app::data::v1::Filter& DataRequest::filter() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.DataRequest.filter) + return _internal_filter(); +} +inline void DataRequest::unsafe_arena_set_allocated_filter( + ::viam::app::data::v1::Filter* filter) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.filter_); + } + _impl_.filter_ = filter; + if (filter) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.data.v1.DataRequest.filter) +} +inline ::viam::app::data::v1::Filter* DataRequest::release_filter() { + + ::viam::app::data::v1::Filter* temp = _impl_.filter_; + _impl_.filter_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::data::v1::Filter* DataRequest::unsafe_arena_release_filter() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.DataRequest.filter) + + ::viam::app::data::v1::Filter* temp = _impl_.filter_; + _impl_.filter_ = nullptr; + return temp; +} +inline ::viam::app::data::v1::Filter* DataRequest::_internal_mutable_filter() { + + if (_impl_.filter_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::data::v1::Filter>(GetArenaForAllocation()); + _impl_.filter_ = p; + } + return _impl_.filter_; +} +inline ::viam::app::data::v1::Filter* DataRequest::mutable_filter() { + ::viam::app::data::v1::Filter* _msg = _internal_mutable_filter(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.DataRequest.filter) + return _msg; +} +inline void DataRequest::set_allocated_filter(::viam::app::data::v1::Filter* filter) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.filter_; + } + if (filter) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(filter); + if (message_arena != submessage_arena) { + filter = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, filter, submessage_arena); + } + + } else { + + } + _impl_.filter_ = filter; + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.DataRequest.filter) +} + +// int64 skip = 2 [json_name = "skip"]; +inline void DataRequest::clear_skip() { + _impl_.skip_ = int64_t{0}; +} +inline int64_t DataRequest::_internal_skip() const { + return _impl_.skip_; +} +inline int64_t DataRequest::skip() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.DataRequest.skip) + return _internal_skip(); +} +inline void DataRequest::_internal_set_skip(int64_t value) { + + _impl_.skip_ = value; +} +inline void DataRequest::set_skip(int64_t value) { + _internal_set_skip(value); + // @@protoc_insertion_point(field_set:viam.app.data.v1.DataRequest.skip) +} + +// int64 limit = 3 [json_name = "limit"]; +inline void DataRequest::clear_limit() { + _impl_.limit_ = int64_t{0}; +} +inline int64_t DataRequest::_internal_limit() const { + return _impl_.limit_; +} +inline int64_t DataRequest::limit() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.DataRequest.limit) + return _internal_limit(); +} +inline void DataRequest::_internal_set_limit(int64_t value) { + + _impl_.limit_ = value; +} +inline void DataRequest::set_limit(int64_t value) { + _internal_set_limit(value); + // @@protoc_insertion_point(field_set:viam.app.data.v1.DataRequest.limit) +} + +// ------------------------------------------------------------------- + +// Filter + +// string component_name = 1 [json_name = "componentName"]; +inline void Filter::clear_component_name() { + _impl_.component_name_.ClearToEmpty(); +} +inline const std::string& Filter::component_name() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.Filter.component_name) + return _internal_component_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Filter::set_component_name(ArgT0&& arg0, ArgT... args) { + + _impl_.component_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.Filter.component_name) +} +inline std::string* Filter::mutable_component_name() { + std::string* _s = _internal_mutable_component_name(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.Filter.component_name) + return _s; +} +inline const std::string& Filter::_internal_component_name() const { + return _impl_.component_name_.Get(); +} +inline void Filter::_internal_set_component_name(const std::string& value) { + + _impl_.component_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Filter::_internal_mutable_component_name() { + + return _impl_.component_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* Filter::release_component_name() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.Filter.component_name) + return _impl_.component_name_.Release(); +} +inline void Filter::set_allocated_component_name(std::string* component_name) { + if (component_name != nullptr) { + + } else { + + } + _impl_.component_name_.SetAllocated(component_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.component_name_.IsDefault()) { + _impl_.component_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.Filter.component_name) +} + +// string component_type = 2 [json_name = "componentType"]; +inline void Filter::clear_component_type() { + _impl_.component_type_.ClearToEmpty(); +} +inline const std::string& Filter::component_type() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.Filter.component_type) + return _internal_component_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Filter::set_component_type(ArgT0&& arg0, ArgT... args) { + + _impl_.component_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.Filter.component_type) +} +inline std::string* Filter::mutable_component_type() { + std::string* _s = _internal_mutable_component_type(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.Filter.component_type) + return _s; +} +inline const std::string& Filter::_internal_component_type() const { + return _impl_.component_type_.Get(); +} +inline void Filter::_internal_set_component_type(const std::string& value) { + + _impl_.component_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* Filter::_internal_mutable_component_type() { + + return _impl_.component_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* Filter::release_component_type() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.Filter.component_type) + return _impl_.component_type_.Release(); +} +inline void Filter::set_allocated_component_type(std::string* component_type) { + if (component_type != nullptr) { + + } else { + + } + _impl_.component_type_.SetAllocated(component_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.component_type_.IsDefault()) { + _impl_.component_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.Filter.component_type) +} + +// string component_model = 3 [json_name = "componentModel"]; +inline void Filter::clear_component_model() { + _impl_.component_model_.ClearToEmpty(); +} +inline const std::string& Filter::component_model() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.Filter.component_model) + return _internal_component_model(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Filter::set_component_model(ArgT0&& arg0, ArgT... args) { + + _impl_.component_model_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.Filter.component_model) +} +inline std::string* Filter::mutable_component_model() { + std::string* _s = _internal_mutable_component_model(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.Filter.component_model) + return _s; +} +inline const std::string& Filter::_internal_component_model() const { + return _impl_.component_model_.Get(); +} +inline void Filter::_internal_set_component_model(const std::string& value) { + + _impl_.component_model_.Set(value, GetArenaForAllocation()); +} +inline std::string* Filter::_internal_mutable_component_model() { + + return _impl_.component_model_.Mutable(GetArenaForAllocation()); +} +inline std::string* Filter::release_component_model() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.Filter.component_model) + return _impl_.component_model_.Release(); +} +inline void Filter::set_allocated_component_model(std::string* component_model) { + if (component_model != nullptr) { + + } else { + + } + _impl_.component_model_.SetAllocated(component_model, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.component_model_.IsDefault()) { + _impl_.component_model_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.Filter.component_model) +} + +// string method = 4 [json_name = "method"]; +inline void Filter::clear_method() { + _impl_.method_.ClearToEmpty(); +} +inline const std::string& Filter::method() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.Filter.method) + return _internal_method(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Filter::set_method(ArgT0&& arg0, ArgT... args) { + + _impl_.method_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.Filter.method) +} +inline std::string* Filter::mutable_method() { + std::string* _s = _internal_mutable_method(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.Filter.method) + return _s; +} +inline const std::string& Filter::_internal_method() const { + return _impl_.method_.Get(); +} +inline void Filter::_internal_set_method(const std::string& value) { + + _impl_.method_.Set(value, GetArenaForAllocation()); +} +inline std::string* Filter::_internal_mutable_method() { + + return _impl_.method_.Mutable(GetArenaForAllocation()); +} +inline std::string* Filter::release_method() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.Filter.method) + return _impl_.method_.Release(); +} +inline void Filter::set_allocated_method(std::string* method) { + if (method != nullptr) { + + } else { + + } + _impl_.method_.SetAllocated(method, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.method_.IsDefault()) { + _impl_.method_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.Filter.method) +} + +// repeated string tags = 5 [json_name = "tags"]; +inline int Filter::_internal_tags_size() const { + return _impl_.tags_.size(); +} +inline int Filter::tags_size() const { + return _internal_tags_size(); +} +inline void Filter::clear_tags() { + _impl_.tags_.Clear(); +} +inline std::string* Filter::add_tags() { + std::string* _s = _internal_add_tags(); + // @@protoc_insertion_point(field_add_mutable:viam.app.data.v1.Filter.tags) + return _s; +} +inline const std::string& Filter::_internal_tags(int index) const { + return _impl_.tags_.Get(index); +} +inline const std::string& Filter::tags(int index) const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.Filter.tags) + return _internal_tags(index); +} +inline std::string* Filter::mutable_tags(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.Filter.tags) + return _impl_.tags_.Mutable(index); +} +inline void Filter::set_tags(int index, const std::string& value) { + _impl_.tags_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.data.v1.Filter.tags) +} +inline void Filter::set_tags(int index, std::string&& value) { + _impl_.tags_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.data.v1.Filter.tags) +} +inline void Filter::set_tags(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.tags_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.data.v1.Filter.tags) +} +inline void Filter::set_tags(int index, const char* value, size_t size) { + _impl_.tags_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.data.v1.Filter.tags) +} +inline std::string* Filter::_internal_add_tags() { + return _impl_.tags_.Add(); +} +inline void Filter::add_tags(const std::string& value) { + _impl_.tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.data.v1.Filter.tags) +} +inline void Filter::add_tags(std::string&& value) { + _impl_.tags_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.data.v1.Filter.tags) +} +inline void Filter::add_tags(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.data.v1.Filter.tags) +} +inline void Filter::add_tags(const char* value, size_t size) { + _impl_.tags_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.data.v1.Filter.tags) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +Filter::tags() const { + // @@protoc_insertion_point(field_list:viam.app.data.v1.Filter.tags) + return _impl_.tags_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +Filter::mutable_tags() { + // @@protoc_insertion_point(field_mutable_list:viam.app.data.v1.Filter.tags) + return &_impl_.tags_; +} + +// string robot_name = 6 [json_name = "robotName"]; +inline void Filter::clear_robot_name() { + _impl_.robot_name_.ClearToEmpty(); +} +inline const std::string& Filter::robot_name() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.Filter.robot_name) + return _internal_robot_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Filter::set_robot_name(ArgT0&& arg0, ArgT... args) { + + _impl_.robot_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.Filter.robot_name) +} +inline std::string* Filter::mutable_robot_name() { + std::string* _s = _internal_mutable_robot_name(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.Filter.robot_name) + return _s; +} +inline const std::string& Filter::_internal_robot_name() const { + return _impl_.robot_name_.Get(); +} +inline void Filter::_internal_set_robot_name(const std::string& value) { + + _impl_.robot_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Filter::_internal_mutable_robot_name() { + + return _impl_.robot_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* Filter::release_robot_name() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.Filter.robot_name) + return _impl_.robot_name_.Release(); +} +inline void Filter::set_allocated_robot_name(std::string* robot_name) { + if (robot_name != nullptr) { + + } else { + + } + _impl_.robot_name_.SetAllocated(robot_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.robot_name_.IsDefault()) { + _impl_.robot_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.Filter.robot_name) +} + +// string robot_id = 7 [json_name = "robotId"]; +inline void Filter::clear_robot_id() { + _impl_.robot_id_.ClearToEmpty(); +} +inline const std::string& Filter::robot_id() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.Filter.robot_id) + return _internal_robot_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Filter::set_robot_id(ArgT0&& arg0, ArgT... args) { + + _impl_.robot_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.Filter.robot_id) +} +inline std::string* Filter::mutable_robot_id() { + std::string* _s = _internal_mutable_robot_id(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.Filter.robot_id) + return _s; +} +inline const std::string& Filter::_internal_robot_id() const { + return _impl_.robot_id_.Get(); +} +inline void Filter::_internal_set_robot_id(const std::string& value) { + + _impl_.robot_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* Filter::_internal_mutable_robot_id() { + + return _impl_.robot_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* Filter::release_robot_id() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.Filter.robot_id) + return _impl_.robot_id_.Release(); +} +inline void Filter::set_allocated_robot_id(std::string* robot_id) { + if (robot_id != nullptr) { + + } else { + + } + _impl_.robot_id_.SetAllocated(robot_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.robot_id_.IsDefault()) { + _impl_.robot_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.Filter.robot_id) +} + +// string part_name = 8 [json_name = "partName"]; +inline void Filter::clear_part_name() { + _impl_.part_name_.ClearToEmpty(); +} +inline const std::string& Filter::part_name() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.Filter.part_name) + return _internal_part_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Filter::set_part_name(ArgT0&& arg0, ArgT... args) { + + _impl_.part_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.Filter.part_name) +} +inline std::string* Filter::mutable_part_name() { + std::string* _s = _internal_mutable_part_name(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.Filter.part_name) + return _s; +} +inline const std::string& Filter::_internal_part_name() const { + return _impl_.part_name_.Get(); +} +inline void Filter::_internal_set_part_name(const std::string& value) { + + _impl_.part_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Filter::_internal_mutable_part_name() { + + return _impl_.part_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* Filter::release_part_name() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.Filter.part_name) + return _impl_.part_name_.Release(); +} +inline void Filter::set_allocated_part_name(std::string* part_name) { + if (part_name != nullptr) { + + } else { + + } + _impl_.part_name_.SetAllocated(part_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.part_name_.IsDefault()) { + _impl_.part_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.Filter.part_name) +} + +// string part_id = 9 [json_name = "partId"]; +inline void Filter::clear_part_id() { + _impl_.part_id_.ClearToEmpty(); +} +inline const std::string& Filter::part_id() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.Filter.part_id) + return _internal_part_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Filter::set_part_id(ArgT0&& arg0, ArgT... args) { + + _impl_.part_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.Filter.part_id) +} +inline std::string* Filter::mutable_part_id() { + std::string* _s = _internal_mutable_part_id(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.Filter.part_id) + return _s; +} +inline const std::string& Filter::_internal_part_id() const { + return _impl_.part_id_.Get(); +} +inline void Filter::_internal_set_part_id(const std::string& value) { + + _impl_.part_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* Filter::_internal_mutable_part_id() { + + return _impl_.part_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* Filter::release_part_id() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.Filter.part_id) + return _impl_.part_id_.Release(); +} +inline void Filter::set_allocated_part_id(std::string* part_id) { + if (part_id != nullptr) { + + } else { + + } + _impl_.part_id_.SetAllocated(part_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.part_id_.IsDefault()) { + _impl_.part_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.Filter.part_id) +} + +// string location_id = 10 [json_name = "locationId"]; +inline void Filter::clear_location_id() { + _impl_.location_id_.ClearToEmpty(); +} +inline const std::string& Filter::location_id() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.Filter.location_id) + return _internal_location_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Filter::set_location_id(ArgT0&& arg0, ArgT... args) { + + _impl_.location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.Filter.location_id) +} +inline std::string* Filter::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.Filter.location_id) + return _s; +} +inline const std::string& Filter::_internal_location_id() const { + return _impl_.location_id_.Get(); +} +inline void Filter::_internal_set_location_id(const std::string& value) { + + _impl_.location_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* Filter::_internal_mutable_location_id() { + + return _impl_.location_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* Filter::release_location_id() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.Filter.location_id) + return _impl_.location_id_.Release(); +} +inline void Filter::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + + } else { + + } + _impl_.location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.location_id_.IsDefault()) { + _impl_.location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.Filter.location_id) +} + +// repeated string org_ids = 11 [json_name = "orgIds"]; +inline int Filter::_internal_org_ids_size() const { + return _impl_.org_ids_.size(); +} +inline int Filter::org_ids_size() const { + return _internal_org_ids_size(); +} +inline void Filter::clear_org_ids() { + _impl_.org_ids_.Clear(); +} +inline std::string* Filter::add_org_ids() { + std::string* _s = _internal_add_org_ids(); + // @@protoc_insertion_point(field_add_mutable:viam.app.data.v1.Filter.org_ids) + return _s; +} +inline const std::string& Filter::_internal_org_ids(int index) const { + return _impl_.org_ids_.Get(index); +} +inline const std::string& Filter::org_ids(int index) const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.Filter.org_ids) + return _internal_org_ids(index); +} +inline std::string* Filter::mutable_org_ids(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.Filter.org_ids) + return _impl_.org_ids_.Mutable(index); +} +inline void Filter::set_org_ids(int index, const std::string& value) { + _impl_.org_ids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.data.v1.Filter.org_ids) +} +inline void Filter::set_org_ids(int index, std::string&& value) { + _impl_.org_ids_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.data.v1.Filter.org_ids) +} +inline void Filter::set_org_ids(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.org_ids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.data.v1.Filter.org_ids) +} +inline void Filter::set_org_ids(int index, const char* value, size_t size) { + _impl_.org_ids_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.data.v1.Filter.org_ids) +} +inline std::string* Filter::_internal_add_org_ids() { + return _impl_.org_ids_.Add(); +} +inline void Filter::add_org_ids(const std::string& value) { + _impl_.org_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.data.v1.Filter.org_ids) +} +inline void Filter::add_org_ids(std::string&& value) { + _impl_.org_ids_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.data.v1.Filter.org_ids) +} +inline void Filter::add_org_ids(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.org_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.data.v1.Filter.org_ids) +} +inline void Filter::add_org_ids(const char* value, size_t size) { + _impl_.org_ids_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.data.v1.Filter.org_ids) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +Filter::org_ids() const { + // @@protoc_insertion_point(field_list:viam.app.data.v1.Filter.org_ids) + return _impl_.org_ids_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +Filter::mutable_org_ids() { + // @@protoc_insertion_point(field_mutable_list:viam.app.data.v1.Filter.org_ids) + return &_impl_.org_ids_; +} + +// repeated string mime_type = 12 [json_name = "mimeType"]; +inline int Filter::_internal_mime_type_size() const { + return _impl_.mime_type_.size(); +} +inline int Filter::mime_type_size() const { + return _internal_mime_type_size(); +} +inline void Filter::clear_mime_type() { + _impl_.mime_type_.Clear(); +} +inline std::string* Filter::add_mime_type() { + std::string* _s = _internal_add_mime_type(); + // @@protoc_insertion_point(field_add_mutable:viam.app.data.v1.Filter.mime_type) + return _s; +} +inline const std::string& Filter::_internal_mime_type(int index) const { + return _impl_.mime_type_.Get(index); +} +inline const std::string& Filter::mime_type(int index) const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.Filter.mime_type) + return _internal_mime_type(index); +} +inline std::string* Filter::mutable_mime_type(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.Filter.mime_type) + return _impl_.mime_type_.Mutable(index); +} +inline void Filter::set_mime_type(int index, const std::string& value) { + _impl_.mime_type_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.data.v1.Filter.mime_type) +} +inline void Filter::set_mime_type(int index, std::string&& value) { + _impl_.mime_type_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.data.v1.Filter.mime_type) +} +inline void Filter::set_mime_type(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.mime_type_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.data.v1.Filter.mime_type) +} +inline void Filter::set_mime_type(int index, const char* value, size_t size) { + _impl_.mime_type_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.data.v1.Filter.mime_type) +} +inline std::string* Filter::_internal_add_mime_type() { + return _impl_.mime_type_.Add(); +} +inline void Filter::add_mime_type(const std::string& value) { + _impl_.mime_type_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.data.v1.Filter.mime_type) +} +inline void Filter::add_mime_type(std::string&& value) { + _impl_.mime_type_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.data.v1.Filter.mime_type) +} +inline void Filter::add_mime_type(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.mime_type_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.data.v1.Filter.mime_type) +} +inline void Filter::add_mime_type(const char* value, size_t size) { + _impl_.mime_type_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.data.v1.Filter.mime_type) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +Filter::mime_type() const { + // @@protoc_insertion_point(field_list:viam.app.data.v1.Filter.mime_type) + return _impl_.mime_type_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +Filter::mutable_mime_type() { + // @@protoc_insertion_point(field_mutable_list:viam.app.data.v1.Filter.mime_type) + return &_impl_.mime_type_; +} + +// .viam.app.data.v1.CaptureInterval interval = 13 [json_name = "interval"]; +inline bool Filter::_internal_has_interval() const { + return this != internal_default_instance() && _impl_.interval_ != nullptr; +} +inline bool Filter::has_interval() const { + return _internal_has_interval(); +} +inline void Filter::clear_interval() { + if (GetArenaForAllocation() == nullptr && _impl_.interval_ != nullptr) { + delete _impl_.interval_; + } + _impl_.interval_ = nullptr; +} +inline const ::viam::app::data::v1::CaptureInterval& Filter::_internal_interval() const { + const ::viam::app::data::v1::CaptureInterval* p = _impl_.interval_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::data::v1::_CaptureInterval_default_instance_); +} +inline const ::viam::app::data::v1::CaptureInterval& Filter::interval() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.Filter.interval) + return _internal_interval(); +} +inline void Filter::unsafe_arena_set_allocated_interval( + ::viam::app::data::v1::CaptureInterval* interval) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.interval_); + } + _impl_.interval_ = interval; + if (interval) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.data.v1.Filter.interval) +} +inline ::viam::app::data::v1::CaptureInterval* Filter::release_interval() { + + ::viam::app::data::v1::CaptureInterval* temp = _impl_.interval_; + _impl_.interval_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::data::v1::CaptureInterval* Filter::unsafe_arena_release_interval() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.Filter.interval) + + ::viam::app::data::v1::CaptureInterval* temp = _impl_.interval_; + _impl_.interval_ = nullptr; + return temp; +} +inline ::viam::app::data::v1::CaptureInterval* Filter::_internal_mutable_interval() { + + if (_impl_.interval_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::data::v1::CaptureInterval>(GetArenaForAllocation()); + _impl_.interval_ = p; + } + return _impl_.interval_; +} +inline ::viam::app::data::v1::CaptureInterval* Filter::mutable_interval() { + ::viam::app::data::v1::CaptureInterval* _msg = _internal_mutable_interval(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.Filter.interval) + return _msg; +} +inline void Filter::set_allocated_interval(::viam::app::data::v1::CaptureInterval* interval) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.interval_; + } + if (interval) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(interval); + if (message_arena != submessage_arena) { + interval = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, interval, submessage_arena); + } + + } else { + + } + _impl_.interval_ = interval; + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.Filter.interval) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// CaptureMetadata + +// string org_id = 1 [json_name = "orgId"]; +inline void CaptureMetadata::clear_org_id() { + _impl_.org_id_.ClearToEmpty(); +} +inline const std::string& CaptureMetadata::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.CaptureMetadata.org_id) + return _internal_org_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CaptureMetadata::set_org_id(ArgT0&& arg0, ArgT... args) { + + _impl_.org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.CaptureMetadata.org_id) +} +inline std::string* CaptureMetadata::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.CaptureMetadata.org_id) + return _s; +} +inline const std::string& CaptureMetadata::_internal_org_id() const { + return _impl_.org_id_.Get(); +} +inline void CaptureMetadata::_internal_set_org_id(const std::string& value) { + + _impl_.org_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::_internal_mutable_org_id() { + + return _impl_.org_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.CaptureMetadata.org_id) + return _impl_.org_id_.Release(); +} +inline void CaptureMetadata::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + _impl_.org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.org_id_.IsDefault()) { + _impl_.org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.CaptureMetadata.org_id) +} + +// string location_id = 2 [json_name = "locationId"]; +inline void CaptureMetadata::clear_location_id() { + _impl_.location_id_.ClearToEmpty(); +} +inline const std::string& CaptureMetadata::location_id() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.CaptureMetadata.location_id) + return _internal_location_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CaptureMetadata::set_location_id(ArgT0&& arg0, ArgT... args) { + + _impl_.location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.CaptureMetadata.location_id) +} +inline std::string* CaptureMetadata::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.CaptureMetadata.location_id) + return _s; +} +inline const std::string& CaptureMetadata::_internal_location_id() const { + return _impl_.location_id_.Get(); +} +inline void CaptureMetadata::_internal_set_location_id(const std::string& value) { + + _impl_.location_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::_internal_mutable_location_id() { + + return _impl_.location_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::release_location_id() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.CaptureMetadata.location_id) + return _impl_.location_id_.Release(); +} +inline void CaptureMetadata::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + + } else { + + } + _impl_.location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.location_id_.IsDefault()) { + _impl_.location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.CaptureMetadata.location_id) +} + +// string robot_name = 3 [json_name = "robotName"]; +inline void CaptureMetadata::clear_robot_name() { + _impl_.robot_name_.ClearToEmpty(); +} +inline const std::string& CaptureMetadata::robot_name() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.CaptureMetadata.robot_name) + return _internal_robot_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CaptureMetadata::set_robot_name(ArgT0&& arg0, ArgT... args) { + + _impl_.robot_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.CaptureMetadata.robot_name) +} +inline std::string* CaptureMetadata::mutable_robot_name() { + std::string* _s = _internal_mutable_robot_name(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.CaptureMetadata.robot_name) + return _s; +} +inline const std::string& CaptureMetadata::_internal_robot_name() const { + return _impl_.robot_name_.Get(); +} +inline void CaptureMetadata::_internal_set_robot_name(const std::string& value) { + + _impl_.robot_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::_internal_mutable_robot_name() { + + return _impl_.robot_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::release_robot_name() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.CaptureMetadata.robot_name) + return _impl_.robot_name_.Release(); +} +inline void CaptureMetadata::set_allocated_robot_name(std::string* robot_name) { + if (robot_name != nullptr) { + + } else { + + } + _impl_.robot_name_.SetAllocated(robot_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.robot_name_.IsDefault()) { + _impl_.robot_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.CaptureMetadata.robot_name) +} + +// string robot_id = 4 [json_name = "robotId"]; +inline void CaptureMetadata::clear_robot_id() { + _impl_.robot_id_.ClearToEmpty(); +} +inline const std::string& CaptureMetadata::robot_id() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.CaptureMetadata.robot_id) + return _internal_robot_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CaptureMetadata::set_robot_id(ArgT0&& arg0, ArgT... args) { + + _impl_.robot_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.CaptureMetadata.robot_id) +} +inline std::string* CaptureMetadata::mutable_robot_id() { + std::string* _s = _internal_mutable_robot_id(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.CaptureMetadata.robot_id) + return _s; +} +inline const std::string& CaptureMetadata::_internal_robot_id() const { + return _impl_.robot_id_.Get(); +} +inline void CaptureMetadata::_internal_set_robot_id(const std::string& value) { + + _impl_.robot_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::_internal_mutable_robot_id() { + + return _impl_.robot_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::release_robot_id() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.CaptureMetadata.robot_id) + return _impl_.robot_id_.Release(); +} +inline void CaptureMetadata::set_allocated_robot_id(std::string* robot_id) { + if (robot_id != nullptr) { + + } else { + + } + _impl_.robot_id_.SetAllocated(robot_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.robot_id_.IsDefault()) { + _impl_.robot_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.CaptureMetadata.robot_id) +} + +// string part_name = 5 [json_name = "partName"]; +inline void CaptureMetadata::clear_part_name() { + _impl_.part_name_.ClearToEmpty(); +} +inline const std::string& CaptureMetadata::part_name() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.CaptureMetadata.part_name) + return _internal_part_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CaptureMetadata::set_part_name(ArgT0&& arg0, ArgT... args) { + + _impl_.part_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.CaptureMetadata.part_name) +} +inline std::string* CaptureMetadata::mutable_part_name() { + std::string* _s = _internal_mutable_part_name(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.CaptureMetadata.part_name) + return _s; +} +inline const std::string& CaptureMetadata::_internal_part_name() const { + return _impl_.part_name_.Get(); +} +inline void CaptureMetadata::_internal_set_part_name(const std::string& value) { + + _impl_.part_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::_internal_mutable_part_name() { + + return _impl_.part_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::release_part_name() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.CaptureMetadata.part_name) + return _impl_.part_name_.Release(); +} +inline void CaptureMetadata::set_allocated_part_name(std::string* part_name) { + if (part_name != nullptr) { + + } else { + + } + _impl_.part_name_.SetAllocated(part_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.part_name_.IsDefault()) { + _impl_.part_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.CaptureMetadata.part_name) +} + +// string part_id = 6 [json_name = "partId"]; +inline void CaptureMetadata::clear_part_id() { + _impl_.part_id_.ClearToEmpty(); +} +inline const std::string& CaptureMetadata::part_id() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.CaptureMetadata.part_id) + return _internal_part_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CaptureMetadata::set_part_id(ArgT0&& arg0, ArgT... args) { + + _impl_.part_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.CaptureMetadata.part_id) +} +inline std::string* CaptureMetadata::mutable_part_id() { + std::string* _s = _internal_mutable_part_id(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.CaptureMetadata.part_id) + return _s; +} +inline const std::string& CaptureMetadata::_internal_part_id() const { + return _impl_.part_id_.Get(); +} +inline void CaptureMetadata::_internal_set_part_id(const std::string& value) { + + _impl_.part_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::_internal_mutable_part_id() { + + return _impl_.part_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::release_part_id() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.CaptureMetadata.part_id) + return _impl_.part_id_.Release(); +} +inline void CaptureMetadata::set_allocated_part_id(std::string* part_id) { + if (part_id != nullptr) { + + } else { + + } + _impl_.part_id_.SetAllocated(part_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.part_id_.IsDefault()) { + _impl_.part_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.CaptureMetadata.part_id) +} + +// string component_type = 7 [json_name = "componentType"]; +inline void CaptureMetadata::clear_component_type() { + _impl_.component_type_.ClearToEmpty(); +} +inline const std::string& CaptureMetadata::component_type() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.CaptureMetadata.component_type) + return _internal_component_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CaptureMetadata::set_component_type(ArgT0&& arg0, ArgT... args) { + + _impl_.component_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.CaptureMetadata.component_type) +} +inline std::string* CaptureMetadata::mutable_component_type() { + std::string* _s = _internal_mutable_component_type(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.CaptureMetadata.component_type) + return _s; +} +inline const std::string& CaptureMetadata::_internal_component_type() const { + return _impl_.component_type_.Get(); +} +inline void CaptureMetadata::_internal_set_component_type(const std::string& value) { + + _impl_.component_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::_internal_mutable_component_type() { + + return _impl_.component_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::release_component_type() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.CaptureMetadata.component_type) + return _impl_.component_type_.Release(); +} +inline void CaptureMetadata::set_allocated_component_type(std::string* component_type) { + if (component_type != nullptr) { + + } else { + + } + _impl_.component_type_.SetAllocated(component_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.component_type_.IsDefault()) { + _impl_.component_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.CaptureMetadata.component_type) +} + +// string component_model = 8 [json_name = "componentModel"]; +inline void CaptureMetadata::clear_component_model() { + _impl_.component_model_.ClearToEmpty(); +} +inline const std::string& CaptureMetadata::component_model() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.CaptureMetadata.component_model) + return _internal_component_model(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CaptureMetadata::set_component_model(ArgT0&& arg0, ArgT... args) { + + _impl_.component_model_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.CaptureMetadata.component_model) +} +inline std::string* CaptureMetadata::mutable_component_model() { + std::string* _s = _internal_mutable_component_model(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.CaptureMetadata.component_model) + return _s; +} +inline const std::string& CaptureMetadata::_internal_component_model() const { + return _impl_.component_model_.Get(); +} +inline void CaptureMetadata::_internal_set_component_model(const std::string& value) { + + _impl_.component_model_.Set(value, GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::_internal_mutable_component_model() { + + return _impl_.component_model_.Mutable(GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::release_component_model() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.CaptureMetadata.component_model) + return _impl_.component_model_.Release(); +} +inline void CaptureMetadata::set_allocated_component_model(std::string* component_model) { + if (component_model != nullptr) { + + } else { + + } + _impl_.component_model_.SetAllocated(component_model, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.component_model_.IsDefault()) { + _impl_.component_model_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.CaptureMetadata.component_model) +} + +// string component_name = 9 [json_name = "componentName"]; +inline void CaptureMetadata::clear_component_name() { + _impl_.component_name_.ClearToEmpty(); +} +inline const std::string& CaptureMetadata::component_name() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.CaptureMetadata.component_name) + return _internal_component_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CaptureMetadata::set_component_name(ArgT0&& arg0, ArgT... args) { + + _impl_.component_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.CaptureMetadata.component_name) +} +inline std::string* CaptureMetadata::mutable_component_name() { + std::string* _s = _internal_mutable_component_name(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.CaptureMetadata.component_name) + return _s; +} +inline const std::string& CaptureMetadata::_internal_component_name() const { + return _impl_.component_name_.Get(); +} +inline void CaptureMetadata::_internal_set_component_name(const std::string& value) { + + _impl_.component_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::_internal_mutable_component_name() { + + return _impl_.component_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::release_component_name() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.CaptureMetadata.component_name) + return _impl_.component_name_.Release(); +} +inline void CaptureMetadata::set_allocated_component_name(std::string* component_name) { + if (component_name != nullptr) { + + } else { + + } + _impl_.component_name_.SetAllocated(component_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.component_name_.IsDefault()) { + _impl_.component_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.CaptureMetadata.component_name) +} + +// string method_name = 10 [json_name = "methodName"]; +inline void CaptureMetadata::clear_method_name() { + _impl_.method_name_.ClearToEmpty(); +} +inline const std::string& CaptureMetadata::method_name() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.CaptureMetadata.method_name) + return _internal_method_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CaptureMetadata::set_method_name(ArgT0&& arg0, ArgT... args) { + + _impl_.method_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.CaptureMetadata.method_name) +} +inline std::string* CaptureMetadata::mutable_method_name() { + std::string* _s = _internal_mutable_method_name(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.CaptureMetadata.method_name) + return _s; +} +inline const std::string& CaptureMetadata::_internal_method_name() const { + return _impl_.method_name_.Get(); +} +inline void CaptureMetadata::_internal_set_method_name(const std::string& value) { + + _impl_.method_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::_internal_mutable_method_name() { + + return _impl_.method_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::release_method_name() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.CaptureMetadata.method_name) + return _impl_.method_name_.Release(); +} +inline void CaptureMetadata::set_allocated_method_name(std::string* method_name) { + if (method_name != nullptr) { + + } else { + + } + _impl_.method_name_.SetAllocated(method_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.method_name_.IsDefault()) { + _impl_.method_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.CaptureMetadata.method_name) +} + +// map method_parameters = 11 [json_name = "methodParameters"]; +inline int CaptureMetadata::_internal_method_parameters_size() const { + return _impl_.method_parameters_.size(); +} +inline int CaptureMetadata::method_parameters_size() const { + return _internal_method_parameters_size(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >& +CaptureMetadata::_internal_method_parameters() const { + return _impl_.method_parameters_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >& +CaptureMetadata::method_parameters() const { + // @@protoc_insertion_point(field_map:viam.app.data.v1.CaptureMetadata.method_parameters) + return _internal_method_parameters(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >* +CaptureMetadata::_internal_mutable_method_parameters() { + return _impl_.method_parameters_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >* +CaptureMetadata::mutable_method_parameters() { + // @@protoc_insertion_point(field_mutable_map:viam.app.data.v1.CaptureMetadata.method_parameters) + return _internal_mutable_method_parameters(); +} + +// repeated string tags = 12 [json_name = "tags"]; +inline int CaptureMetadata::_internal_tags_size() const { + return _impl_.tags_.size(); +} +inline int CaptureMetadata::tags_size() const { + return _internal_tags_size(); +} +inline void CaptureMetadata::clear_tags() { + _impl_.tags_.Clear(); +} +inline std::string* CaptureMetadata::add_tags() { + std::string* _s = _internal_add_tags(); + // @@protoc_insertion_point(field_add_mutable:viam.app.data.v1.CaptureMetadata.tags) + return _s; +} +inline const std::string& CaptureMetadata::_internal_tags(int index) const { + return _impl_.tags_.Get(index); +} +inline const std::string& CaptureMetadata::tags(int index) const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.CaptureMetadata.tags) + return _internal_tags(index); +} +inline std::string* CaptureMetadata::mutable_tags(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.CaptureMetadata.tags) + return _impl_.tags_.Mutable(index); +} +inline void CaptureMetadata::set_tags(int index, const std::string& value) { + _impl_.tags_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.data.v1.CaptureMetadata.tags) +} +inline void CaptureMetadata::set_tags(int index, std::string&& value) { + _impl_.tags_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.data.v1.CaptureMetadata.tags) +} +inline void CaptureMetadata::set_tags(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.tags_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.data.v1.CaptureMetadata.tags) +} +inline void CaptureMetadata::set_tags(int index, const char* value, size_t size) { + _impl_.tags_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.data.v1.CaptureMetadata.tags) +} +inline std::string* CaptureMetadata::_internal_add_tags() { + return _impl_.tags_.Add(); +} +inline void CaptureMetadata::add_tags(const std::string& value) { + _impl_.tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.data.v1.CaptureMetadata.tags) +} +inline void CaptureMetadata::add_tags(std::string&& value) { + _impl_.tags_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.data.v1.CaptureMetadata.tags) +} +inline void CaptureMetadata::add_tags(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.data.v1.CaptureMetadata.tags) +} +inline void CaptureMetadata::add_tags(const char* value, size_t size) { + _impl_.tags_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.data.v1.CaptureMetadata.tags) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +CaptureMetadata::tags() const { + // @@protoc_insertion_point(field_list:viam.app.data.v1.CaptureMetadata.tags) + return _impl_.tags_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +CaptureMetadata::mutable_tags() { + // @@protoc_insertion_point(field_mutable_list:viam.app.data.v1.CaptureMetadata.tags) + return &_impl_.tags_; +} + +// string mime_type = 13 [json_name = "mimeType"]; +inline void CaptureMetadata::clear_mime_type() { + _impl_.mime_type_.ClearToEmpty(); +} +inline const std::string& CaptureMetadata::mime_type() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.CaptureMetadata.mime_type) + return _internal_mime_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CaptureMetadata::set_mime_type(ArgT0&& arg0, ArgT... args) { + + _impl_.mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.CaptureMetadata.mime_type) +} +inline std::string* CaptureMetadata::mutable_mime_type() { + std::string* _s = _internal_mutable_mime_type(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.CaptureMetadata.mime_type) + return _s; +} +inline const std::string& CaptureMetadata::_internal_mime_type() const { + return _impl_.mime_type_.Get(); +} +inline void CaptureMetadata::_internal_set_mime_type(const std::string& value) { + + _impl_.mime_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::_internal_mutable_mime_type() { + + return _impl_.mime_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* CaptureMetadata::release_mime_type() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.CaptureMetadata.mime_type) + return _impl_.mime_type_.Release(); +} +inline void CaptureMetadata::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + _impl_.mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.mime_type_.IsDefault()) { + _impl_.mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.CaptureMetadata.mime_type) +} + +// ------------------------------------------------------------------- + +// CaptureInterval + +// .google.protobuf.Timestamp start = 1 [json_name = "start"]; +inline bool CaptureInterval::_internal_has_start() const { + return this != internal_default_instance() && _impl_.start_ != nullptr; +} +inline bool CaptureInterval::has_start() const { + return _internal_has_start(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& CaptureInterval::_internal_start() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.start_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& CaptureInterval::start() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.CaptureInterval.start) + return _internal_start(); +} +inline void CaptureInterval::unsafe_arena_set_allocated_start( + ::PROTOBUF_NAMESPACE_ID::Timestamp* start) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.start_); + } + _impl_.start_ = start; + if (start) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.data.v1.CaptureInterval.start) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CaptureInterval::release_start() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.start_; + _impl_.start_ = 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* CaptureInterval::unsafe_arena_release_start() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.CaptureInterval.start) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.start_; + _impl_.start_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CaptureInterval::_internal_mutable_start() { + + if (_impl_.start_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.start_ = p; + } + return _impl_.start_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CaptureInterval::mutable_start() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_start(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.CaptureInterval.start) + return _msg; +} +inline void CaptureInterval::set_allocated_start(::PROTOBUF_NAMESPACE_ID::Timestamp* start) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.start_); + } + if (start) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(start)); + if (message_arena != submessage_arena) { + start = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, start, submessage_arena); + } + + } else { + + } + _impl_.start_ = start; + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.CaptureInterval.start) +} + +// .google.protobuf.Timestamp end = 2 [json_name = "end"]; +inline bool CaptureInterval::_internal_has_end() const { + return this != internal_default_instance() && _impl_.end_ != nullptr; +} +inline bool CaptureInterval::has_end() const { + return _internal_has_end(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& CaptureInterval::_internal_end() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.end_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& CaptureInterval::end() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.CaptureInterval.end) + return _internal_end(); +} +inline void CaptureInterval::unsafe_arena_set_allocated_end( + ::PROTOBUF_NAMESPACE_ID::Timestamp* end) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.end_); + } + _impl_.end_ = end; + if (end) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.data.v1.CaptureInterval.end) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CaptureInterval::release_end() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.end_; + _impl_.end_ = 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* CaptureInterval::unsafe_arena_release_end() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.CaptureInterval.end) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.end_; + _impl_.end_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CaptureInterval::_internal_mutable_end() { + + if (_impl_.end_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.end_ = p; + } + return _impl_.end_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CaptureInterval::mutable_end() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_end(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.CaptureInterval.end) + return _msg; +} +inline void CaptureInterval::set_allocated_end(::PROTOBUF_NAMESPACE_ID::Timestamp* end) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.end_); + } + if (end) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(end)); + if (message_arena != submessage_arena) { + end = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, end, submessage_arena); + } + + } else { + + } + _impl_.end_ = end; + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.CaptureInterval.end) +} + +// ------------------------------------------------------------------- + +// TabularDataByFilterRequest + +// .viam.app.data.v1.DataRequest data_request = 1 [json_name = "dataRequest"]; +inline bool TabularDataByFilterRequest::_internal_has_data_request() const { + return this != internal_default_instance() && _impl_.data_request_ != nullptr; +} +inline bool TabularDataByFilterRequest::has_data_request() const { + return _internal_has_data_request(); +} +inline void TabularDataByFilterRequest::clear_data_request() { + if (GetArenaForAllocation() == nullptr && _impl_.data_request_ != nullptr) { + delete _impl_.data_request_; + } + _impl_.data_request_ = nullptr; +} +inline const ::viam::app::data::v1::DataRequest& TabularDataByFilterRequest::_internal_data_request() const { + const ::viam::app::data::v1::DataRequest* p = _impl_.data_request_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::data::v1::_DataRequest_default_instance_); +} +inline const ::viam::app::data::v1::DataRequest& TabularDataByFilterRequest::data_request() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.TabularDataByFilterRequest.data_request) + return _internal_data_request(); +} +inline void TabularDataByFilterRequest::unsafe_arena_set_allocated_data_request( + ::viam::app::data::v1::DataRequest* data_request) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.data_request_); + } + _impl_.data_request_ = data_request; + if (data_request) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.data.v1.TabularDataByFilterRequest.data_request) +} +inline ::viam::app::data::v1::DataRequest* TabularDataByFilterRequest::release_data_request() { + + ::viam::app::data::v1::DataRequest* temp = _impl_.data_request_; + _impl_.data_request_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::data::v1::DataRequest* TabularDataByFilterRequest::unsafe_arena_release_data_request() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.TabularDataByFilterRequest.data_request) + + ::viam::app::data::v1::DataRequest* temp = _impl_.data_request_; + _impl_.data_request_ = nullptr; + return temp; +} +inline ::viam::app::data::v1::DataRequest* TabularDataByFilterRequest::_internal_mutable_data_request() { + + if (_impl_.data_request_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::data::v1::DataRequest>(GetArenaForAllocation()); + _impl_.data_request_ = p; + } + return _impl_.data_request_; +} +inline ::viam::app::data::v1::DataRequest* TabularDataByFilterRequest::mutable_data_request() { + ::viam::app::data::v1::DataRequest* _msg = _internal_mutable_data_request(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.TabularDataByFilterRequest.data_request) + return _msg; +} +inline void TabularDataByFilterRequest::set_allocated_data_request(::viam::app::data::v1::DataRequest* data_request) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.data_request_; + } + if (data_request) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(data_request); + if (message_arena != submessage_arena) { + data_request = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, data_request, submessage_arena); + } + + } else { + + } + _impl_.data_request_ = data_request; + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.TabularDataByFilterRequest.data_request) +} + +// bool count_only = 2 [json_name = "countOnly"]; +inline void TabularDataByFilterRequest::clear_count_only() { + _impl_.count_only_ = false; +} +inline bool TabularDataByFilterRequest::_internal_count_only() const { + return _impl_.count_only_; +} +inline bool TabularDataByFilterRequest::count_only() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.TabularDataByFilterRequest.count_only) + return _internal_count_only(); +} +inline void TabularDataByFilterRequest::_internal_set_count_only(bool value) { + + _impl_.count_only_ = value; +} +inline void TabularDataByFilterRequest::set_count_only(bool value) { + _internal_set_count_only(value); + // @@protoc_insertion_point(field_set:viam.app.data.v1.TabularDataByFilterRequest.count_only) +} + +// ------------------------------------------------------------------- + +// TabularDataByFilterResponse + +// repeated .viam.app.data.v1.CaptureMetadata metadata = 1 [json_name = "metadata"]; +inline int TabularDataByFilterResponse::_internal_metadata_size() const { + return _impl_.metadata_.size(); +} +inline int TabularDataByFilterResponse::metadata_size() const { + return _internal_metadata_size(); +} +inline void TabularDataByFilterResponse::clear_metadata() { + _impl_.metadata_.Clear(); +} +inline ::viam::app::data::v1::CaptureMetadata* TabularDataByFilterResponse::mutable_metadata(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.TabularDataByFilterResponse.metadata) + return _impl_.metadata_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::CaptureMetadata >* +TabularDataByFilterResponse::mutable_metadata() { + // @@protoc_insertion_point(field_mutable_list:viam.app.data.v1.TabularDataByFilterResponse.metadata) + return &_impl_.metadata_; +} +inline const ::viam::app::data::v1::CaptureMetadata& TabularDataByFilterResponse::_internal_metadata(int index) const { + return _impl_.metadata_.Get(index); +} +inline const ::viam::app::data::v1::CaptureMetadata& TabularDataByFilterResponse::metadata(int index) const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.TabularDataByFilterResponse.metadata) + return _internal_metadata(index); +} +inline ::viam::app::data::v1::CaptureMetadata* TabularDataByFilterResponse::_internal_add_metadata() { + return _impl_.metadata_.Add(); +} +inline ::viam::app::data::v1::CaptureMetadata* TabularDataByFilterResponse::add_metadata() { + ::viam::app::data::v1::CaptureMetadata* _add = _internal_add_metadata(); + // @@protoc_insertion_point(field_add:viam.app.data.v1.TabularDataByFilterResponse.metadata) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::CaptureMetadata >& +TabularDataByFilterResponse::metadata() const { + // @@protoc_insertion_point(field_list:viam.app.data.v1.TabularDataByFilterResponse.metadata) + return _impl_.metadata_; +} + +// repeated .viam.app.data.v1.TabularData data = 2 [json_name = "data"]; +inline int TabularDataByFilterResponse::_internal_data_size() const { + return _impl_.data_.size(); +} +inline int TabularDataByFilterResponse::data_size() const { + return _internal_data_size(); +} +inline void TabularDataByFilterResponse::clear_data() { + _impl_.data_.Clear(); +} +inline ::viam::app::data::v1::TabularData* TabularDataByFilterResponse::mutable_data(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.TabularDataByFilterResponse.data) + return _impl_.data_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::TabularData >* +TabularDataByFilterResponse::mutable_data() { + // @@protoc_insertion_point(field_mutable_list:viam.app.data.v1.TabularDataByFilterResponse.data) + return &_impl_.data_; +} +inline const ::viam::app::data::v1::TabularData& TabularDataByFilterResponse::_internal_data(int index) const { + return _impl_.data_.Get(index); +} +inline const ::viam::app::data::v1::TabularData& TabularDataByFilterResponse::data(int index) const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.TabularDataByFilterResponse.data) + return _internal_data(index); +} +inline ::viam::app::data::v1::TabularData* TabularDataByFilterResponse::_internal_add_data() { + return _impl_.data_.Add(); +} +inline ::viam::app::data::v1::TabularData* TabularDataByFilterResponse::add_data() { + ::viam::app::data::v1::TabularData* _add = _internal_add_data(); + // @@protoc_insertion_point(field_add:viam.app.data.v1.TabularDataByFilterResponse.data) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::TabularData >& +TabularDataByFilterResponse::data() const { + // @@protoc_insertion_point(field_list:viam.app.data.v1.TabularDataByFilterResponse.data) + return _impl_.data_; +} + +// int64 count = 3 [json_name = "count"]; +inline void TabularDataByFilterResponse::clear_count() { + _impl_.count_ = int64_t{0}; +} +inline int64_t TabularDataByFilterResponse::_internal_count() const { + return _impl_.count_; +} +inline int64_t TabularDataByFilterResponse::count() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.TabularDataByFilterResponse.count) + return _internal_count(); +} +inline void TabularDataByFilterResponse::_internal_set_count(int64_t value) { + + _impl_.count_ = value; +} +inline void TabularDataByFilterResponse::set_count(int64_t value) { + _internal_set_count(value); + // @@protoc_insertion_point(field_set:viam.app.data.v1.TabularDataByFilterResponse.count) +} + +// ------------------------------------------------------------------- + +// TabularData + +// .google.protobuf.Struct data = 1 [json_name = "data"]; +inline bool TabularData::_internal_has_data() const { + return this != internal_default_instance() && _impl_.data_ != nullptr; +} +inline bool TabularData::has_data() const { + return _internal_has_data(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& TabularData::_internal_data() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.data_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& TabularData::data() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.TabularData.data) + return _internal_data(); +} +inline void TabularData::unsafe_arena_set_allocated_data( + ::PROTOBUF_NAMESPACE_ID::Struct* data) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.data_); + } + _impl_.data_ = data; + if (data) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.data.v1.TabularData.data) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* TabularData::release_data() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.data_; + _impl_.data_ = 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* TabularData::unsafe_arena_release_data() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.TabularData.data) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.data_; + _impl_.data_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* TabularData::_internal_mutable_data() { + + if (_impl_.data_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.data_ = p; + } + return _impl_.data_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* TabularData::mutable_data() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_data(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.TabularData.data) + return _msg; +} +inline void TabularData::set_allocated_data(::PROTOBUF_NAMESPACE_ID::Struct* data) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.data_); + } + if (data) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(data)); + if (message_arena != submessage_arena) { + data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, data, submessage_arena); + } + + } else { + + } + _impl_.data_ = data; + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.TabularData.data) +} + +// int32 metadata_index = 2 [json_name = "metadataIndex"]; +inline void TabularData::clear_metadata_index() { + _impl_.metadata_index_ = 0; +} +inline int32_t TabularData::_internal_metadata_index() const { + return _impl_.metadata_index_; +} +inline int32_t TabularData::metadata_index() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.TabularData.metadata_index) + return _internal_metadata_index(); +} +inline void TabularData::_internal_set_metadata_index(int32_t value) { + + _impl_.metadata_index_ = value; +} +inline void TabularData::set_metadata_index(int32_t value) { + _internal_set_metadata_index(value); + // @@protoc_insertion_point(field_set:viam.app.data.v1.TabularData.metadata_index) +} + +// .google.protobuf.Timestamp time_requested = 3 [json_name = "timeRequested"]; +inline bool TabularData::_internal_has_time_requested() const { + return this != internal_default_instance() && _impl_.time_requested_ != nullptr; +} +inline bool TabularData::has_time_requested() const { + return _internal_has_time_requested(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& TabularData::_internal_time_requested() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.time_requested_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& TabularData::time_requested() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.TabularData.time_requested) + return _internal_time_requested(); +} +inline void TabularData::unsafe_arena_set_allocated_time_requested( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_requested) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_requested_); + } + _impl_.time_requested_ = time_requested; + if (time_requested) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.data.v1.TabularData.time_requested) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TabularData::release_time_requested() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_requested_; + _impl_.time_requested_ = 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* TabularData::unsafe_arena_release_time_requested() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.TabularData.time_requested) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_requested_; + _impl_.time_requested_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TabularData::_internal_mutable_time_requested() { + + if (_impl_.time_requested_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.time_requested_ = p; + } + return _impl_.time_requested_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TabularData::mutable_time_requested() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_time_requested(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.TabularData.time_requested) + return _msg; +} +inline void TabularData::set_allocated_time_requested(::PROTOBUF_NAMESPACE_ID::Timestamp* time_requested) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_requested_); + } + if (time_requested) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_requested)); + if (message_arena != submessage_arena) { + time_requested = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, time_requested, submessage_arena); + } + + } else { + + } + _impl_.time_requested_ = time_requested; + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.TabularData.time_requested) +} + +// .google.protobuf.Timestamp time_received = 4 [json_name = "timeReceived"]; +inline bool TabularData::_internal_has_time_received() const { + return this != internal_default_instance() && _impl_.time_received_ != nullptr; +} +inline bool TabularData::has_time_received() const { + return _internal_has_time_received(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& TabularData::_internal_time_received() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.time_received_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& TabularData::time_received() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.TabularData.time_received) + return _internal_time_received(); +} +inline void TabularData::unsafe_arena_set_allocated_time_received( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_received) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_received_); + } + _impl_.time_received_ = time_received; + if (time_received) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.data.v1.TabularData.time_received) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TabularData::release_time_received() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_received_; + _impl_.time_received_ = 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* TabularData::unsafe_arena_release_time_received() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.TabularData.time_received) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_received_; + _impl_.time_received_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TabularData::_internal_mutable_time_received() { + + if (_impl_.time_received_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.time_received_ = p; + } + return _impl_.time_received_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TabularData::mutable_time_received() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_time_received(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.TabularData.time_received) + return _msg; +} +inline void TabularData::set_allocated_time_received(::PROTOBUF_NAMESPACE_ID::Timestamp* time_received) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_received_); + } + if (time_received) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_received)); + if (message_arena != submessage_arena) { + time_received = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, time_received, submessage_arena); + } + + } else { + + } + _impl_.time_received_ = time_received; + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.TabularData.time_received) +} + +// ------------------------------------------------------------------- + +// BinaryData + +// string id = 1 [json_name = "id"]; +inline void BinaryData::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& BinaryData::id() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.BinaryData.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BinaryData::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.BinaryData.id) +} +inline std::string* BinaryData::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.BinaryData.id) + return _s; +} +inline const std::string& BinaryData::_internal_id() const { + return _impl_.id_.Get(); +} +inline void BinaryData::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* BinaryData::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* BinaryData::release_id() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.BinaryData.id) + return _impl_.id_.Release(); +} +inline void BinaryData::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.BinaryData.id) +} + +// string uri = 2 [json_name = "uri"]; +inline void BinaryData::clear_uri() { + _impl_.uri_.ClearToEmpty(); +} +inline const std::string& BinaryData::uri() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.BinaryData.uri) + return _internal_uri(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BinaryData::set_uri(ArgT0&& arg0, ArgT... args) { + + _impl_.uri_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.BinaryData.uri) +} +inline std::string* BinaryData::mutable_uri() { + std::string* _s = _internal_mutable_uri(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.BinaryData.uri) + return _s; +} +inline const std::string& BinaryData::_internal_uri() const { + return _impl_.uri_.Get(); +} +inline void BinaryData::_internal_set_uri(const std::string& value) { + + _impl_.uri_.Set(value, GetArenaForAllocation()); +} +inline std::string* BinaryData::_internal_mutable_uri() { + + return _impl_.uri_.Mutable(GetArenaForAllocation()); +} +inline std::string* BinaryData::release_uri() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.BinaryData.uri) + return _impl_.uri_.Release(); +} +inline void BinaryData::set_allocated_uri(std::string* uri) { + if (uri != nullptr) { + + } else { + + } + _impl_.uri_.SetAllocated(uri, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.uri_.IsDefault()) { + _impl_.uri_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.BinaryData.uri) +} + +// bytes binary = 3 [json_name = "binary"]; +inline void BinaryData::clear_binary() { + _impl_.binary_.ClearToEmpty(); +} +inline const std::string& BinaryData::binary() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.BinaryData.binary) + return _internal_binary(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BinaryData::set_binary(ArgT0&& arg0, ArgT... args) { + + _impl_.binary_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.BinaryData.binary) +} +inline std::string* BinaryData::mutable_binary() { + std::string* _s = _internal_mutable_binary(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.BinaryData.binary) + return _s; +} +inline const std::string& BinaryData::_internal_binary() const { + return _impl_.binary_.Get(); +} +inline void BinaryData::_internal_set_binary(const std::string& value) { + + _impl_.binary_.Set(value, GetArenaForAllocation()); +} +inline std::string* BinaryData::_internal_mutable_binary() { + + return _impl_.binary_.Mutable(GetArenaForAllocation()); +} +inline std::string* BinaryData::release_binary() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.BinaryData.binary) + return _impl_.binary_.Release(); +} +inline void BinaryData::set_allocated_binary(std::string* binary) { + if (binary != nullptr) { + + } else { + + } + _impl_.binary_.SetAllocated(binary, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.binary_.IsDefault()) { + _impl_.binary_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.BinaryData.binary) +} + +// int32 metadata_index = 4 [json_name = "metadataIndex"]; +inline void BinaryData::clear_metadata_index() { + _impl_.metadata_index_ = 0; +} +inline int32_t BinaryData::_internal_metadata_index() const { + return _impl_.metadata_index_; +} +inline int32_t BinaryData::metadata_index() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.BinaryData.metadata_index) + return _internal_metadata_index(); +} +inline void BinaryData::_internal_set_metadata_index(int32_t value) { + + _impl_.metadata_index_ = value; +} +inline void BinaryData::set_metadata_index(int32_t value) { + _internal_set_metadata_index(value); + // @@protoc_insertion_point(field_set:viam.app.data.v1.BinaryData.metadata_index) +} + +// .google.protobuf.Timestamp time_requested = 5 [json_name = "timeRequested"]; +inline bool BinaryData::_internal_has_time_requested() const { + return this != internal_default_instance() && _impl_.time_requested_ != nullptr; +} +inline bool BinaryData::has_time_requested() const { + return _internal_has_time_requested(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& BinaryData::_internal_time_requested() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.time_requested_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& BinaryData::time_requested() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.BinaryData.time_requested) + return _internal_time_requested(); +} +inline void BinaryData::unsafe_arena_set_allocated_time_requested( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_requested) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_requested_); + } + _impl_.time_requested_ = time_requested; + if (time_requested) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.data.v1.BinaryData.time_requested) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* BinaryData::release_time_requested() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_requested_; + _impl_.time_requested_ = 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* BinaryData::unsafe_arena_release_time_requested() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.BinaryData.time_requested) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_requested_; + _impl_.time_requested_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* BinaryData::_internal_mutable_time_requested() { + + if (_impl_.time_requested_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.time_requested_ = p; + } + return _impl_.time_requested_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* BinaryData::mutable_time_requested() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_time_requested(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.BinaryData.time_requested) + return _msg; +} +inline void BinaryData::set_allocated_time_requested(::PROTOBUF_NAMESPACE_ID::Timestamp* time_requested) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_requested_); + } + if (time_requested) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_requested)); + if (message_arena != submessage_arena) { + time_requested = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, time_requested, submessage_arena); + } + + } else { + + } + _impl_.time_requested_ = time_requested; + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.BinaryData.time_requested) +} + +// .google.protobuf.Timestamp time_received = 6 [json_name = "timeReceived"]; +inline bool BinaryData::_internal_has_time_received() const { + return this != internal_default_instance() && _impl_.time_received_ != nullptr; +} +inline bool BinaryData::has_time_received() const { + return _internal_has_time_received(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& BinaryData::_internal_time_received() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.time_received_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& BinaryData::time_received() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.BinaryData.time_received) + return _internal_time_received(); +} +inline void BinaryData::unsafe_arena_set_allocated_time_received( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_received) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_received_); + } + _impl_.time_received_ = time_received; + if (time_received) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.data.v1.BinaryData.time_received) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* BinaryData::release_time_received() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_received_; + _impl_.time_received_ = 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* BinaryData::unsafe_arena_release_time_received() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.BinaryData.time_received) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_received_; + _impl_.time_received_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* BinaryData::_internal_mutable_time_received() { + + if (_impl_.time_received_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.time_received_ = p; + } + return _impl_.time_received_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* BinaryData::mutable_time_received() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_time_received(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.BinaryData.time_received) + return _msg; +} +inline void BinaryData::set_allocated_time_received(::PROTOBUF_NAMESPACE_ID::Timestamp* time_received) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_received_); + } + if (time_received) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_received)); + if (message_arena != submessage_arena) { + time_received = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, time_received, submessage_arena); + } + + } else { + + } + _impl_.time_received_ = time_received; + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.BinaryData.time_received) +} + +// string name = 7 [json_name = "name"]; +inline void BinaryData::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& BinaryData::name() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.BinaryData.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BinaryData::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.data.v1.BinaryData.name) +} +inline std::string* BinaryData::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.BinaryData.name) + return _s; +} +inline const std::string& BinaryData::_internal_name() const { + return _impl_.name_.Get(); +} +inline void BinaryData::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* BinaryData::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* BinaryData::release_name() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.BinaryData.name) + return _impl_.name_.Release(); +} +inline void BinaryData::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.BinaryData.name) +} + +// ------------------------------------------------------------------- + +// BinaryDataByFilterRequest + +// .viam.app.data.v1.DataRequest data_request = 1 [json_name = "dataRequest"]; +inline bool BinaryDataByFilterRequest::_internal_has_data_request() const { + return this != internal_default_instance() && _impl_.data_request_ != nullptr; +} +inline bool BinaryDataByFilterRequest::has_data_request() const { + return _internal_has_data_request(); +} +inline void BinaryDataByFilterRequest::clear_data_request() { + if (GetArenaForAllocation() == nullptr && _impl_.data_request_ != nullptr) { + delete _impl_.data_request_; + } + _impl_.data_request_ = nullptr; +} +inline const ::viam::app::data::v1::DataRequest& BinaryDataByFilterRequest::_internal_data_request() const { + const ::viam::app::data::v1::DataRequest* p = _impl_.data_request_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::data::v1::_DataRequest_default_instance_); +} +inline const ::viam::app::data::v1::DataRequest& BinaryDataByFilterRequest::data_request() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.BinaryDataByFilterRequest.data_request) + return _internal_data_request(); +} +inline void BinaryDataByFilterRequest::unsafe_arena_set_allocated_data_request( + ::viam::app::data::v1::DataRequest* data_request) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.data_request_); + } + _impl_.data_request_ = data_request; + if (data_request) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.data.v1.BinaryDataByFilterRequest.data_request) +} +inline ::viam::app::data::v1::DataRequest* BinaryDataByFilterRequest::release_data_request() { + + ::viam::app::data::v1::DataRequest* temp = _impl_.data_request_; + _impl_.data_request_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::data::v1::DataRequest* BinaryDataByFilterRequest::unsafe_arena_release_data_request() { + // @@protoc_insertion_point(field_release:viam.app.data.v1.BinaryDataByFilterRequest.data_request) + + ::viam::app::data::v1::DataRequest* temp = _impl_.data_request_; + _impl_.data_request_ = nullptr; + return temp; +} +inline ::viam::app::data::v1::DataRequest* BinaryDataByFilterRequest::_internal_mutable_data_request() { + + if (_impl_.data_request_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::data::v1::DataRequest>(GetArenaForAllocation()); + _impl_.data_request_ = p; + } + return _impl_.data_request_; +} +inline ::viam::app::data::v1::DataRequest* BinaryDataByFilterRequest::mutable_data_request() { + ::viam::app::data::v1::DataRequest* _msg = _internal_mutable_data_request(); + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.BinaryDataByFilterRequest.data_request) + return _msg; +} +inline void BinaryDataByFilterRequest::set_allocated_data_request(::viam::app::data::v1::DataRequest* data_request) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.data_request_; + } + if (data_request) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(data_request); + if (message_arena != submessage_arena) { + data_request = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, data_request, submessage_arena); + } + + } else { + + } + _impl_.data_request_ = data_request; + // @@protoc_insertion_point(field_set_allocated:viam.app.data.v1.BinaryDataByFilterRequest.data_request) +} + +// bool include_binary = 2 [json_name = "includeBinary"]; +inline void BinaryDataByFilterRequest::clear_include_binary() { + _impl_.include_binary_ = false; +} +inline bool BinaryDataByFilterRequest::_internal_include_binary() const { + return _impl_.include_binary_; +} +inline bool BinaryDataByFilterRequest::include_binary() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.BinaryDataByFilterRequest.include_binary) + return _internal_include_binary(); +} +inline void BinaryDataByFilterRequest::_internal_set_include_binary(bool value) { + + _impl_.include_binary_ = value; +} +inline void BinaryDataByFilterRequest::set_include_binary(bool value) { + _internal_set_include_binary(value); + // @@protoc_insertion_point(field_set:viam.app.data.v1.BinaryDataByFilterRequest.include_binary) +} + +// bool count_only = 3 [json_name = "countOnly"]; +inline void BinaryDataByFilterRequest::clear_count_only() { + _impl_.count_only_ = false; +} +inline bool BinaryDataByFilterRequest::_internal_count_only() const { + return _impl_.count_only_; +} +inline bool BinaryDataByFilterRequest::count_only() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.BinaryDataByFilterRequest.count_only) + return _internal_count_only(); +} +inline void BinaryDataByFilterRequest::_internal_set_count_only(bool value) { + + _impl_.count_only_ = value; +} +inline void BinaryDataByFilterRequest::set_count_only(bool value) { + _internal_set_count_only(value); + // @@protoc_insertion_point(field_set:viam.app.data.v1.BinaryDataByFilterRequest.count_only) +} + +// ------------------------------------------------------------------- + +// BinaryDataByFilterResponse + +// repeated .viam.app.data.v1.CaptureMetadata metadata = 1 [json_name = "metadata"]; +inline int BinaryDataByFilterResponse::_internal_metadata_size() const { + return _impl_.metadata_.size(); +} +inline int BinaryDataByFilterResponse::metadata_size() const { + return _internal_metadata_size(); +} +inline void BinaryDataByFilterResponse::clear_metadata() { + _impl_.metadata_.Clear(); +} +inline ::viam::app::data::v1::CaptureMetadata* BinaryDataByFilterResponse::mutable_metadata(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.BinaryDataByFilterResponse.metadata) + return _impl_.metadata_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::CaptureMetadata >* +BinaryDataByFilterResponse::mutable_metadata() { + // @@protoc_insertion_point(field_mutable_list:viam.app.data.v1.BinaryDataByFilterResponse.metadata) + return &_impl_.metadata_; +} +inline const ::viam::app::data::v1::CaptureMetadata& BinaryDataByFilterResponse::_internal_metadata(int index) const { + return _impl_.metadata_.Get(index); +} +inline const ::viam::app::data::v1::CaptureMetadata& BinaryDataByFilterResponse::metadata(int index) const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.BinaryDataByFilterResponse.metadata) + return _internal_metadata(index); +} +inline ::viam::app::data::v1::CaptureMetadata* BinaryDataByFilterResponse::_internal_add_metadata() { + return _impl_.metadata_.Add(); +} +inline ::viam::app::data::v1::CaptureMetadata* BinaryDataByFilterResponse::add_metadata() { + ::viam::app::data::v1::CaptureMetadata* _add = _internal_add_metadata(); + // @@protoc_insertion_point(field_add:viam.app.data.v1.BinaryDataByFilterResponse.metadata) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::CaptureMetadata >& +BinaryDataByFilterResponse::metadata() const { + // @@protoc_insertion_point(field_list:viam.app.data.v1.BinaryDataByFilterResponse.metadata) + return _impl_.metadata_; +} + +// repeated .viam.app.data.v1.BinaryData data = 2 [json_name = "data"]; +inline int BinaryDataByFilterResponse::_internal_data_size() const { + return _impl_.data_.size(); +} +inline int BinaryDataByFilterResponse::data_size() const { + return _internal_data_size(); +} +inline void BinaryDataByFilterResponse::clear_data() { + _impl_.data_.Clear(); +} +inline ::viam::app::data::v1::BinaryData* BinaryDataByFilterResponse::mutable_data(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.BinaryDataByFilterResponse.data) + return _impl_.data_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::BinaryData >* +BinaryDataByFilterResponse::mutable_data() { + // @@protoc_insertion_point(field_mutable_list:viam.app.data.v1.BinaryDataByFilterResponse.data) + return &_impl_.data_; +} +inline const ::viam::app::data::v1::BinaryData& BinaryDataByFilterResponse::_internal_data(int index) const { + return _impl_.data_.Get(index); +} +inline const ::viam::app::data::v1::BinaryData& BinaryDataByFilterResponse::data(int index) const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.BinaryDataByFilterResponse.data) + return _internal_data(index); +} +inline ::viam::app::data::v1::BinaryData* BinaryDataByFilterResponse::_internal_add_data() { + return _impl_.data_.Add(); +} +inline ::viam::app::data::v1::BinaryData* BinaryDataByFilterResponse::add_data() { + ::viam::app::data::v1::BinaryData* _add = _internal_add_data(); + // @@protoc_insertion_point(field_add:viam.app.data.v1.BinaryDataByFilterResponse.data) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::BinaryData >& +BinaryDataByFilterResponse::data() const { + // @@protoc_insertion_point(field_list:viam.app.data.v1.BinaryDataByFilterResponse.data) + return _impl_.data_; +} + +// int64 count = 3 [json_name = "count"]; +inline void BinaryDataByFilterResponse::clear_count() { + _impl_.count_ = int64_t{0}; +} +inline int64_t BinaryDataByFilterResponse::_internal_count() const { + return _impl_.count_; +} +inline int64_t BinaryDataByFilterResponse::count() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.BinaryDataByFilterResponse.count) + return _internal_count(); +} +inline void BinaryDataByFilterResponse::_internal_set_count(int64_t value) { + + _impl_.count_ = value; +} +inline void BinaryDataByFilterResponse::set_count(int64_t value) { + _internal_set_count(value); + // @@protoc_insertion_point(field_set:viam.app.data.v1.BinaryDataByFilterResponse.count) +} + +// ------------------------------------------------------------------- + +// BinaryDataByIDsRequest + +// repeated string file_ids = 1 [json_name = "fileIds"]; +inline int BinaryDataByIDsRequest::_internal_file_ids_size() const { + return _impl_.file_ids_.size(); +} +inline int BinaryDataByIDsRequest::file_ids_size() const { + return _internal_file_ids_size(); +} +inline void BinaryDataByIDsRequest::clear_file_ids() { + _impl_.file_ids_.Clear(); +} +inline std::string* BinaryDataByIDsRequest::add_file_ids() { + std::string* _s = _internal_add_file_ids(); + // @@protoc_insertion_point(field_add_mutable:viam.app.data.v1.BinaryDataByIDsRequest.file_ids) + return _s; +} +inline const std::string& BinaryDataByIDsRequest::_internal_file_ids(int index) const { + return _impl_.file_ids_.Get(index); +} +inline const std::string& BinaryDataByIDsRequest::file_ids(int index) const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.BinaryDataByIDsRequest.file_ids) + return _internal_file_ids(index); +} +inline std::string* BinaryDataByIDsRequest::mutable_file_ids(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.BinaryDataByIDsRequest.file_ids) + return _impl_.file_ids_.Mutable(index); +} +inline void BinaryDataByIDsRequest::set_file_ids(int index, const std::string& value) { + _impl_.file_ids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.data.v1.BinaryDataByIDsRequest.file_ids) +} +inline void BinaryDataByIDsRequest::set_file_ids(int index, std::string&& value) { + _impl_.file_ids_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.data.v1.BinaryDataByIDsRequest.file_ids) +} +inline void BinaryDataByIDsRequest::set_file_ids(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.file_ids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.data.v1.BinaryDataByIDsRequest.file_ids) +} +inline void BinaryDataByIDsRequest::set_file_ids(int index, const char* value, size_t size) { + _impl_.file_ids_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.data.v1.BinaryDataByIDsRequest.file_ids) +} +inline std::string* BinaryDataByIDsRequest::_internal_add_file_ids() { + return _impl_.file_ids_.Add(); +} +inline void BinaryDataByIDsRequest::add_file_ids(const std::string& value) { + _impl_.file_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.data.v1.BinaryDataByIDsRequest.file_ids) +} +inline void BinaryDataByIDsRequest::add_file_ids(std::string&& value) { + _impl_.file_ids_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.data.v1.BinaryDataByIDsRequest.file_ids) +} +inline void BinaryDataByIDsRequest::add_file_ids(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.file_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.data.v1.BinaryDataByIDsRequest.file_ids) +} +inline void BinaryDataByIDsRequest::add_file_ids(const char* value, size_t size) { + _impl_.file_ids_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.data.v1.BinaryDataByIDsRequest.file_ids) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +BinaryDataByIDsRequest::file_ids() const { + // @@protoc_insertion_point(field_list:viam.app.data.v1.BinaryDataByIDsRequest.file_ids) + return _impl_.file_ids_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +BinaryDataByIDsRequest::mutable_file_ids() { + // @@protoc_insertion_point(field_mutable_list:viam.app.data.v1.BinaryDataByIDsRequest.file_ids) + return &_impl_.file_ids_; +} + +// bool include_binary = 2 [json_name = "includeBinary"]; +inline void BinaryDataByIDsRequest::clear_include_binary() { + _impl_.include_binary_ = false; +} +inline bool BinaryDataByIDsRequest::_internal_include_binary() const { + return _impl_.include_binary_; +} +inline bool BinaryDataByIDsRequest::include_binary() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.BinaryDataByIDsRequest.include_binary) + return _internal_include_binary(); +} +inline void BinaryDataByIDsRequest::_internal_set_include_binary(bool value) { + + _impl_.include_binary_ = value; +} +inline void BinaryDataByIDsRequest::set_include_binary(bool value) { + _internal_set_include_binary(value); + // @@protoc_insertion_point(field_set:viam.app.data.v1.BinaryDataByIDsRequest.include_binary) +} + +// ------------------------------------------------------------------- + +// BinaryDataByIDsResponse + +// repeated .viam.app.data.v1.CaptureMetadata metadata = 1 [json_name = "metadata"]; +inline int BinaryDataByIDsResponse::_internal_metadata_size() const { + return _impl_.metadata_.size(); +} +inline int BinaryDataByIDsResponse::metadata_size() const { + return _internal_metadata_size(); +} +inline void BinaryDataByIDsResponse::clear_metadata() { + _impl_.metadata_.Clear(); +} +inline ::viam::app::data::v1::CaptureMetadata* BinaryDataByIDsResponse::mutable_metadata(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.BinaryDataByIDsResponse.metadata) + return _impl_.metadata_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::CaptureMetadata >* +BinaryDataByIDsResponse::mutable_metadata() { + // @@protoc_insertion_point(field_mutable_list:viam.app.data.v1.BinaryDataByIDsResponse.metadata) + return &_impl_.metadata_; +} +inline const ::viam::app::data::v1::CaptureMetadata& BinaryDataByIDsResponse::_internal_metadata(int index) const { + return _impl_.metadata_.Get(index); +} +inline const ::viam::app::data::v1::CaptureMetadata& BinaryDataByIDsResponse::metadata(int index) const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.BinaryDataByIDsResponse.metadata) + return _internal_metadata(index); +} +inline ::viam::app::data::v1::CaptureMetadata* BinaryDataByIDsResponse::_internal_add_metadata() { + return _impl_.metadata_.Add(); +} +inline ::viam::app::data::v1::CaptureMetadata* BinaryDataByIDsResponse::add_metadata() { + ::viam::app::data::v1::CaptureMetadata* _add = _internal_add_metadata(); + // @@protoc_insertion_point(field_add:viam.app.data.v1.BinaryDataByIDsResponse.metadata) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::CaptureMetadata >& +BinaryDataByIDsResponse::metadata() const { + // @@protoc_insertion_point(field_list:viam.app.data.v1.BinaryDataByIDsResponse.metadata) + return _impl_.metadata_; +} + +// repeated .viam.app.data.v1.BinaryData data = 2 [json_name = "data"]; +inline int BinaryDataByIDsResponse::_internal_data_size() const { + return _impl_.data_.size(); +} +inline int BinaryDataByIDsResponse::data_size() const { + return _internal_data_size(); +} +inline void BinaryDataByIDsResponse::clear_data() { + _impl_.data_.Clear(); +} +inline ::viam::app::data::v1::BinaryData* BinaryDataByIDsResponse::mutable_data(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.data.v1.BinaryDataByIDsResponse.data) + return _impl_.data_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::BinaryData >* +BinaryDataByIDsResponse::mutable_data() { + // @@protoc_insertion_point(field_mutable_list:viam.app.data.v1.BinaryDataByIDsResponse.data) + return &_impl_.data_; +} +inline const ::viam::app::data::v1::BinaryData& BinaryDataByIDsResponse::_internal_data(int index) const { + return _impl_.data_.Get(index); +} +inline const ::viam::app::data::v1::BinaryData& BinaryDataByIDsResponse::data(int index) const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.BinaryDataByIDsResponse.data) + return _internal_data(index); +} +inline ::viam::app::data::v1::BinaryData* BinaryDataByIDsResponse::_internal_add_data() { + return _impl_.data_.Add(); +} +inline ::viam::app::data::v1::BinaryData* BinaryDataByIDsResponse::add_data() { + ::viam::app::data::v1::BinaryData* _add = _internal_add_data(); + // @@protoc_insertion_point(field_add:viam.app.data.v1.BinaryDataByIDsResponse.data) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::data::v1::BinaryData >& +BinaryDataByIDsResponse::data() const { + // @@protoc_insertion_point(field_list:viam.app.data.v1.BinaryDataByIDsResponse.data) + return _impl_.data_; +} + +// int64 count = 3 [json_name = "count"]; +inline void BinaryDataByIDsResponse::clear_count() { + _impl_.count_ = int64_t{0}; +} +inline int64_t BinaryDataByIDsResponse::_internal_count() const { + return _impl_.count_; +} +inline int64_t BinaryDataByIDsResponse::count() const { + // @@protoc_insertion_point(field_get:viam.app.data.v1.BinaryDataByIDsResponse.count) + return _internal_count(); +} +inline void BinaryDataByIDsResponse::_internal_set_count(int64_t value) { + + _impl_.count_ = value; +} +inline void BinaryDataByIDsResponse::set_count(int64_t value) { + _internal_set_count(value); + // @@protoc_insertion_point(field_set:viam.app.data.v1.BinaryDataByIDsResponse.count) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace data +} // namespace app +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_app_2fdata_2fv1_2fdata_2eproto diff --git a/src/gen/app/datasync/v1/data_sync.grpc.pb.cc b/src/gen/app/datasync/v1/data_sync.grpc.pb.cc new file mode 100644 index 000000000..7353a2792 --- /dev/null +++ b/src/gen/app/datasync/v1/data_sync.grpc.pb.cc @@ -0,0 +1,84 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: app/datasync/v1/data_sync.proto + +#include "app/datasync/v1/data_sync.pb.h" +#include "app/datasync/v1/data_sync.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace app { +namespace datasync { +namespace v1 { + +static const char* DataSyncService_method_names[] = { + "/viam.app.datasync.v1.DataSyncService/Upload", +}; + +std::unique_ptr< DataSyncService::Stub> DataSyncService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< DataSyncService::Stub> stub(new DataSyncService::Stub(channel, options)); + return stub; +} + +DataSyncService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_Upload_(DataSyncService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::BIDI_STREAMING, channel) + {} + +::grpc::ClientReaderWriter< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>* DataSyncService::Stub::UploadRaw(::grpc::ClientContext* context) { + return ::grpc::internal::ClientReaderWriterFactory< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>::Create(channel_.get(), rpcmethod_Upload_, context); +} + +void DataSyncService::Stub::async::Upload(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::app::datasync::v1::UploadRequest,::viam::app::datasync::v1::UploadResponse>* reactor) { + ::grpc::internal::ClientCallbackReaderWriterFactory< ::viam::app::datasync::v1::UploadRequest,::viam::app::datasync::v1::UploadResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_Upload_, context, reactor); +} + +::grpc::ClientAsyncReaderWriter< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>* DataSyncService::Stub::AsyncUploadRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc::internal::ClientAsyncReaderWriterFactory< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>::Create(channel_.get(), cq, rpcmethod_Upload_, context, true, tag); +} + +::grpc::ClientAsyncReaderWriter< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>* DataSyncService::Stub::PrepareAsyncUploadRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncReaderWriterFactory< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>::Create(channel_.get(), cq, rpcmethod_Upload_, context, false, nullptr); +} + +DataSyncService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataSyncService_method_names[0], + ::grpc::internal::RpcMethod::BIDI_STREAMING, + new ::grpc::internal::BidiStreamingHandler< DataSyncService::Service, ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>( + [](DataSyncService::Service* service, + ::grpc::ServerContext* ctx, + ::grpc::ServerReaderWriter<::viam::app::datasync::v1::UploadResponse, + ::viam::app::datasync::v1::UploadRequest>* stream) { + return service->Upload(ctx, stream); + }, this))); +} + +DataSyncService::Service::~Service() { +} + +::grpc::Status DataSyncService::Service::Upload(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::viam::app::datasync::v1::UploadResponse, ::viam::app::datasync::v1::UploadRequest>* stream) { + (void) context; + (void) stream; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace app +} // namespace datasync +} // namespace v1 + diff --git a/src/gen/app/datasync/v1/data_sync.grpc.pb.h b/src/gen/app/datasync/v1/data_sync.grpc.pb.h new file mode 100644 index 000000000..260c280d2 --- /dev/null +++ b/src/gen/app/datasync/v1/data_sync.grpc.pb.h @@ -0,0 +1,220 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: app/datasync/v1/data_sync.proto +#ifndef GRPC_app_2fdatasync_2fv1_2fdata_5fsync_2eproto__INCLUDED +#define GRPC_app_2fdatasync_2fv1_2fdata_5fsync_2eproto__INCLUDED + +#include "app/datasync/v1/data_sync.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace app { +namespace datasync { +namespace v1 { + +class DataSyncService final { + public: + static constexpr char const* service_full_name() { + return "viam.app.datasync.v1.DataSyncService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>> Upload(::grpc::ClientContext* context) { + return std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>>(UploadRaw(context)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>> AsyncUpload(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>>(AsyncUploadRaw(context, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>> PrepareAsyncUpload(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>>(PrepareAsyncUploadRaw(context, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void Upload(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::app::datasync::v1::UploadRequest,::viam::app::datasync::v1::UploadResponse>* 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::ClientReaderWriterInterface< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>* UploadRaw(::grpc::ClientContext* context) = 0; + virtual ::grpc::ClientAsyncReaderWriterInterface< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>* AsyncUploadRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderWriterInterface< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>* PrepareAsyncUploadRaw(::grpc::ClientContext* context, ::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::ClientReaderWriter< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>> Upload(::grpc::ClientContext* context) { + return std::unique_ptr< ::grpc::ClientReaderWriter< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>>(UploadRaw(context)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>> AsyncUpload(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>>(AsyncUploadRaw(context, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>> PrepareAsyncUpload(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>>(PrepareAsyncUploadRaw(context, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void Upload(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::app::datasync::v1::UploadRequest,::viam::app::datasync::v1::UploadResponse>* 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::ClientReaderWriter< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>* UploadRaw(::grpc::ClientContext* context) override; + ::grpc::ClientAsyncReaderWriter< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>* AsyncUploadRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReaderWriter< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>* PrepareAsyncUploadRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_Upload_; + }; + 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(); + virtual ::grpc::Status Upload(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::viam::app::datasync::v1::UploadResponse, ::viam::app::datasync::v1::UploadRequest>* stream); + }; + template + class WithAsyncMethod_Upload : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Upload() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_Upload() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Upload(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::app::datasync::v1::UploadResponse, ::viam::app::datasync::v1::UploadRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpload(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::viam::app::datasync::v1::UploadResponse, ::viam::app::datasync::v1::UploadRequest>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncBidiStreaming(0, context, stream, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_Upload AsyncService; + template + class WithCallbackMethod_Upload : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Upload() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackBidiHandler< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>( + [this]( + ::grpc::CallbackServerContext* context) { return this->Upload(context); })); + } + ~WithCallbackMethod_Upload() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Upload(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::app::datasync::v1::UploadResponse, ::viam::app::datasync::v1::UploadRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerBidiReactor< ::viam::app::datasync::v1::UploadRequest, ::viam::app::datasync::v1::UploadResponse>* Upload( + ::grpc::CallbackServerContext* /*context*/) + { return nullptr; } + }; + typedef WithCallbackMethod_Upload CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_Upload : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Upload() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_Upload() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Upload(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::app::datasync::v1::UploadResponse, ::viam::app::datasync::v1::UploadRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_Upload : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Upload() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_Upload() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Upload(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::app::datasync::v1::UploadResponse, ::viam::app::datasync::v1::UploadRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpload(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncBidiStreaming(0, context, stream, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_Upload : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Upload() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context) { return this->Upload(context); })); + } + ~WithRawCallbackMethod_Upload() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Upload(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::app::datasync::v1::UploadResponse, ::viam::app::datasync::v1::UploadRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* Upload( + ::grpc::CallbackServerContext* /*context*/) + { return nullptr; } + }; + typedef Service StreamedUnaryService; + typedef Service SplitStreamedService; + typedef Service StreamedService; +}; + +} // namespace v1 +} // namespace datasync +} // namespace app +} // namespace viam + + +#endif // GRPC_app_2fdatasync_2fv1_2fdata_5fsync_2eproto__INCLUDED diff --git a/src/gen/app/datasync/v1/data_sync.pb.cc b/src/gen/app/datasync/v1/data_sync.pb.cc new file mode 100644 index 000000000..c59952982 --- /dev/null +++ b/src/gen/app/datasync/v1/data_sync.pb.cc @@ -0,0 +1,5603 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: app/datasync/v1/data_sync.proto + +#include "app/datasync/v1/data_sync.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 app { +namespace datasync { +namespace v1 { +PROTOBUF_CONSTEXPR SensorMetadata::SensorMetadata( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.time_requested_)*/nullptr + , /*decltype(_impl_.time_received_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SensorMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR SensorMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SensorMetadataDefaultTypeInternal() {} + union { + SensorMetadata _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SensorMetadataDefaultTypeInternal _SensorMetadata_default_instance_; +PROTOBUF_CONSTEXPR SensorData::SensorData( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.metadata_)*/nullptr + , /*decltype(_impl_.data_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct SensorDataDefaultTypeInternal { + PROTOBUF_CONSTEXPR SensorDataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SensorDataDefaultTypeInternal() {} + union { + SensorData _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SensorDataDefaultTypeInternal _SensorData_default_instance_; +PROTOBUF_CONSTEXPR FileData::FileData( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.data_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct FileDataDefaultTypeInternal { + PROTOBUF_CONSTEXPR FileDataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FileDataDefaultTypeInternal() {} + union { + FileData _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileDataDefaultTypeInternal _FileData_default_instance_; +PROTOBUF_CONSTEXPR UploadMetadata_MethodParametersEntry_DoNotUse::UploadMetadata_MethodParametersEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct UploadMetadata_MethodParametersEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR UploadMetadata_MethodParametersEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UploadMetadata_MethodParametersEntry_DoNotUseDefaultTypeInternal() {} + union { + UploadMetadata_MethodParametersEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UploadMetadata_MethodParametersEntry_DoNotUseDefaultTypeInternal _UploadMetadata_MethodParametersEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR UploadMetadata::UploadMetadata( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.method_parameters_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.tags_)*/{} + , /*decltype(_impl_.part_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.component_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.component_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.component_model_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.method_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.file_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.file_extension_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.session_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.type_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct UploadMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR UploadMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UploadMetadataDefaultTypeInternal() {} + union { + UploadMetadata _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UploadMetadataDefaultTypeInternal _UploadMetadata_default_instance_; +PROTOBUF_CONSTEXPR UploadRequest::UploadRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.upload_packet_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct UploadRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR UploadRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UploadRequestDefaultTypeInternal() {} + union { + UploadRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UploadRequestDefaultTypeInternal _UploadRequest_default_instance_; +PROTOBUF_CONSTEXPR UploadResponse::UploadResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.requests_written_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct UploadResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR UploadResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UploadResponseDefaultTypeInternal() {} + union { + UploadResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UploadResponseDefaultTypeInternal _UploadResponse_default_instance_; +PROTOBUF_CONSTEXPR CaptureInterval::CaptureInterval( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.start_)*/nullptr + , /*decltype(_impl_.end_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct CaptureIntervalDefaultTypeInternal { + PROTOBUF_CONSTEXPR CaptureIntervalDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CaptureIntervalDefaultTypeInternal() {} + union { + CaptureInterval _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CaptureIntervalDefaultTypeInternal _CaptureInterval_default_instance_; +PROTOBUF_CONSTEXPR DataCaptureMetadata_MethodParametersEntry_DoNotUse::DataCaptureMetadata_MethodParametersEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct DataCaptureMetadata_MethodParametersEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DataCaptureMetadata_MethodParametersEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DataCaptureMetadata_MethodParametersEntry_DoNotUseDefaultTypeInternal() {} + union { + DataCaptureMetadata_MethodParametersEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DataCaptureMetadata_MethodParametersEntry_DoNotUseDefaultTypeInternal _DataCaptureMetadata_MethodParametersEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR DataCaptureMetadata::DataCaptureMetadata( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.method_parameters_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.tags_)*/{} + , /*decltype(_impl_.component_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.component_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.component_model_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.method_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.file_extension_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.session_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.type_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DataCaptureMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR DataCaptureMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DataCaptureMetadataDefaultTypeInternal() {} + union { + DataCaptureMetadata _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DataCaptureMetadataDefaultTypeInternal _DataCaptureMetadata_default_instance_; +PROTOBUF_CONSTEXPR TabularCapture_MethodParametersEntry_DoNotUse::TabularCapture_MethodParametersEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct TabularCapture_MethodParametersEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR TabularCapture_MethodParametersEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TabularCapture_MethodParametersEntry_DoNotUseDefaultTypeInternal() {} + union { + TabularCapture_MethodParametersEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TabularCapture_MethodParametersEntry_DoNotUseDefaultTypeInternal _TabularCapture_MethodParametersEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR TabularCapture::TabularCapture( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.column_names_)*/{} + , /*decltype(_impl_.method_parameters_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.tags_)*/{} + , /*decltype(_impl_.org_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.robot_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.part_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.location_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.component_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.component_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.component_model_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.method_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.blob_path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.file_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.session_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mime_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.interval_)*/nullptr + , /*decltype(_impl_.file_size_bytes_)*/int64_t{0} + , /*decltype(_impl_.message_count_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct TabularCaptureDefaultTypeInternal { + PROTOBUF_CONSTEXPR TabularCaptureDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TabularCaptureDefaultTypeInternal() {} + union { + TabularCapture _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TabularCaptureDefaultTypeInternal _TabularCapture_default_instance_; +PROTOBUF_CONSTEXPR BinaryCapture_MethodParametersEntry_DoNotUse::BinaryCapture_MethodParametersEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct BinaryCapture_MethodParametersEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR BinaryCapture_MethodParametersEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~BinaryCapture_MethodParametersEntry_DoNotUseDefaultTypeInternal() {} + union { + BinaryCapture_MethodParametersEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BinaryCapture_MethodParametersEntry_DoNotUseDefaultTypeInternal _BinaryCapture_MethodParametersEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR BinaryCapture::BinaryCapture( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.method_parameters_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.tags_)*/{} + , /*decltype(_impl_.org_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.robot_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.part_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.location_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.component_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.component_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.component_model_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.method_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.blob_path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.file_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.session_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mime_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.file_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.interval_)*/nullptr + , /*decltype(_impl_.file_size_bytes_)*/int64_t{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct BinaryCaptureDefaultTypeInternal { + PROTOBUF_CONSTEXPR BinaryCaptureDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~BinaryCaptureDefaultTypeInternal() {} + union { + BinaryCapture _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BinaryCaptureDefaultTypeInternal _BinaryCapture_default_instance_; +} // namespace v1 +} // namespace datasync +} // namespace app +} // namespace viam +static ::_pb::Metadata file_level_metadata_app_2fdatasync_2fv1_2fdata_5fsync_2eproto[14]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_app_2fdatasync_2fv1_2fdata_5fsync_2eproto[1]; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_app_2fdatasync_2fv1_2fdata_5fsync_2eproto = nullptr; + +const uint32_t TableStruct_app_2fdatasync_2fv1_2fdata_5fsync_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::SensorMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::SensorMetadata, _impl_.time_requested_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::SensorMetadata, _impl_.time_received_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::SensorData, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::SensorData, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::SensorData, _impl_.metadata_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::SensorData, _impl_.data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::FileData, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::FileData, _impl_.data_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::UploadMetadata_MethodParametersEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::UploadMetadata_MethodParametersEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::UploadMetadata_MethodParametersEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::UploadMetadata_MethodParametersEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::UploadMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::UploadMetadata, _impl_.part_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::UploadMetadata, _impl_.component_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::UploadMetadata, _impl_.component_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::UploadMetadata, _impl_.component_model_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::UploadMetadata, _impl_.method_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::UploadMetadata, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::UploadMetadata, _impl_.file_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::UploadMetadata, _impl_.method_parameters_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::UploadMetadata, _impl_.file_extension_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::UploadMetadata, _impl_.tags_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::UploadMetadata, _impl_.session_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::UploadRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::UploadRequest, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::UploadRequest, _impl_.upload_packet_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::UploadResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::UploadResponse, _impl_.requests_written_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::CaptureInterval, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::CaptureInterval, _impl_.start_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::CaptureInterval, _impl_.end_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::DataCaptureMetadata_MethodParametersEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::DataCaptureMetadata_MethodParametersEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::DataCaptureMetadata_MethodParametersEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::DataCaptureMetadata_MethodParametersEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::DataCaptureMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::DataCaptureMetadata, _impl_.component_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::DataCaptureMetadata, _impl_.component_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::DataCaptureMetadata, _impl_.component_model_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::DataCaptureMetadata, _impl_.method_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::DataCaptureMetadata, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::DataCaptureMetadata, _impl_.method_parameters_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::DataCaptureMetadata, _impl_.file_extension_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::DataCaptureMetadata, _impl_.tags_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::DataCaptureMetadata, _impl_.session_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture_MethodParametersEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture_MethodParametersEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture_MethodParametersEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture_MethodParametersEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture, _impl_.interval_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture, _impl_.org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture, _impl_.robot_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture, _impl_.part_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture, _impl_.location_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture, _impl_.component_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture, _impl_.component_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture, _impl_.component_model_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture, _impl_.method_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture, _impl_.blob_path_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture, _impl_.column_names_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture, _impl_.method_parameters_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture, _impl_.file_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture, _impl_.tags_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture, _impl_.message_count_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture, _impl_.file_size_bytes_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture, _impl_.session_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::TabularCapture, _impl_.mime_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture_MethodParametersEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture_MethodParametersEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture_MethodParametersEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture_MethodParametersEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture, _impl_.interval_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture, _impl_.org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture, _impl_.robot_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture, _impl_.part_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture, _impl_.location_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture, _impl_.component_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture, _impl_.component_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture, _impl_.component_model_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture, _impl_.method_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture, _impl_.blob_path_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture, _impl_.method_parameters_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture, _impl_.file_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture, _impl_.tags_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture, _impl_.file_size_bytes_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture, _impl_.session_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture, _impl_.mime_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::datasync::v1::BinaryCapture, _impl_.file_name_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::app::datasync::v1::SensorMetadata)}, + { 8, -1, -1, sizeof(::viam::app::datasync::v1::SensorData)}, + { 18, -1, -1, sizeof(::viam::app::datasync::v1::FileData)}, + { 25, 33, -1, sizeof(::viam::app::datasync::v1::UploadMetadata_MethodParametersEntry_DoNotUse)}, + { 35, -1, -1, sizeof(::viam::app::datasync::v1::UploadMetadata)}, + { 52, -1, -1, sizeof(::viam::app::datasync::v1::UploadRequest)}, + { 62, -1, -1, sizeof(::viam::app::datasync::v1::UploadResponse)}, + { 69, -1, -1, sizeof(::viam::app::datasync::v1::CaptureInterval)}, + { 77, 85, -1, sizeof(::viam::app::datasync::v1::DataCaptureMetadata_MethodParametersEntry_DoNotUse)}, + { 87, -1, -1, sizeof(::viam::app::datasync::v1::DataCaptureMetadata)}, + { 102, 110, -1, sizeof(::viam::app::datasync::v1::TabularCapture_MethodParametersEntry_DoNotUse)}, + { 112, -1, -1, sizeof(::viam::app::datasync::v1::TabularCapture)}, + { 136, 144, -1, sizeof(::viam::app::datasync::v1::BinaryCapture_MethodParametersEntry_DoNotUse)}, + { 146, -1, -1, sizeof(::viam::app::datasync::v1::BinaryCapture)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::app::datasync::v1::_SensorMetadata_default_instance_._instance, + &::viam::app::datasync::v1::_SensorData_default_instance_._instance, + &::viam::app::datasync::v1::_FileData_default_instance_._instance, + &::viam::app::datasync::v1::_UploadMetadata_MethodParametersEntry_DoNotUse_default_instance_._instance, + &::viam::app::datasync::v1::_UploadMetadata_default_instance_._instance, + &::viam::app::datasync::v1::_UploadRequest_default_instance_._instance, + &::viam::app::datasync::v1::_UploadResponse_default_instance_._instance, + &::viam::app::datasync::v1::_CaptureInterval_default_instance_._instance, + &::viam::app::datasync::v1::_DataCaptureMetadata_MethodParametersEntry_DoNotUse_default_instance_._instance, + &::viam::app::datasync::v1::_DataCaptureMetadata_default_instance_._instance, + &::viam::app::datasync::v1::_TabularCapture_MethodParametersEntry_DoNotUse_default_instance_._instance, + &::viam::app::datasync::v1::_TabularCapture_default_instance_._instance, + &::viam::app::datasync::v1::_BinaryCapture_MethodParametersEntry_DoNotUse_default_instance_._instance, + &::viam::app::datasync::v1::_BinaryCapture_default_instance_._instance, +}; + +const char descriptor_table_protodef_app_2fdatasync_2fv1_2fdata_5fsync_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\037app/datasync/v1/data_sync.proto\022\024viam." + "app.datasync.v1\032\031google/protobuf/any.pro" + "to\032\034google/protobuf/struct.proto\032\037google" + "/protobuf/timestamp.proto\032\026tagger/v1/tag" + "ger.proto\"\224\001\n\016SensorMetadata\022A\n\016time_req" + "uested\030\001 \001(\0132\032.google.protobuf.Timestamp" + "R\rtimeRequested\022\?\n\rtime_received\030\002 \001(\0132\032" + ".google.protobuf.TimestampR\014timeReceived" + "\"\243\001\n\nSensorData\022@\n\010metadata\030\001 \001(\0132$.viam" + ".app.datasync.v1.SensorMetadataR\010metadat" + "a\0221\n\006struct\030\002 \001(\0132\027.google.protobuf.Stru" + "ctH\000R\006struct\022\030\n\006binary\030\003 \001(\014H\000R\006binaryB\006" + "\n\004data\"\036\n\010FileData\022\022\n\004data\030\001 \001(\014R\004data\"\260" + "\004\n\016UploadMetadata\022\027\n\007part_id\030\001 \001(\tR\006part" + "Id\022%\n\016component_type\030\002 \001(\tR\rcomponentTyp" + "e\022%\n\016component_name\030\003 \001(\tR\rcomponentName" + "\022\'\n\017component_model\030\004 \001(\tR\016componentMode" + "l\022\037\n\013method_name\030\005 \001(\tR\nmethodName\0222\n\004ty" + "pe\030\006 \001(\0162\036.viam.app.datasync.v1.DataType" + "R\004type\022\033\n\tfile_name\030\007 \001(\tR\010fileName\022g\n\021m" + "ethod_parameters\030\010 \003(\0132:.viam.app.datasy" + "nc.v1.UploadMetadata.MethodParametersEnt" + "ryR\020methodParameters\022%\n\016file_extension\030\t" + " \001(\tR\rfileExtension\022\022\n\004tags\030\n \003(\tR\004tags\022" + "\035\n\nsession_id\030\013 \001(\tR\tsessionId\032Y\n\025Method" + "ParametersEntry\022\020\n\003key\030\001 \001(\tR\003key\022*\n\005val" + "ue\030\002 \001(\0132\024.google.protobuf.AnyR\005value:\0028" + "\001\"\370\001\n\rUploadRequest\022B\n\010metadata\030\001 \001(\0132$." + "viam.app.datasync.v1.UploadMetadataH\000R\010m" + "etadata\022K\n\017sensor_contents\030\002 \001(\0132 .viam." + "app.datasync.v1.SensorDataH\000R\016sensorCont" + "ents\022E\n\rfile_contents\030\003 \001(\0132\036.viam.app.d" + "atasync.v1.FileDataH\000R\014fileContentsB\017\n\ru" + "pload_packet\";\n\016UploadResponse\022)\n\020reques" + "ts_written\030\001 \001(\005R\017requestsWritten\"q\n\017Cap" + "tureInterval\0220\n\005start\030\001 \001(\0132\032.google.pro" + "tobuf.TimestampR\005start\022,\n\003end\030\002 \001(\0132\032.go" + "ogle.protobuf.TimestampR\003end\"\204\004\n\023DataCap" + "tureMetadata\022%\n\016component_type\030\001 \001(\tR\rco" + "mponentType\022%\n\016component_name\030\002 \001(\tR\rcom" + "ponentName\022\'\n\017component_model\030\003 \001(\tR\016com" + "ponentModel\022\037\n\013method_name\030\004 \001(\tR\nmethod" + "Name\0222\n\004type\030\005 \001(\0162\036.viam.app.datasync.v" + "1.DataTypeR\004type\022l\n\021method_parameters\030\006 " + "\003(\0132\?.viam.app.datasync.v1.DataCaptureMe" + "tadata.MethodParametersEntryR\020methodPara" + "meters\022%\n\016file_extension\030\007 \001(\tR\rfileExte" + "nsion\022\022\n\004tags\030\010 \003(\tR\004tags\022\035\n\nsession_id\030" + "\t \001(\tR\tsessionId\032Y\n\025MethodParametersEntr" + "y\022\020\n\003key\030\001 \001(\tR\003key\022*\n\005value\030\002 \001(\0132\024.goo" + "gle.protobuf.AnyR\005value:\0028\001\"\232\014\n\016TabularC" + "apture\022g\n\010interval\030\001 \001(\0132%.viam.app.data" + "sync.v1.CaptureIntervalB$\232\204\236\003\037bson:\"inte" + "rval\" json:\"interval\"R\010interval\0227\n\006org_i" + "d\030\002 \001(\tB \232\204\236\003\033bson:\"org_id\" json:\"org_id" + "\"R\005orgId\022\?\n\010robot_id\030\003 \001(\tB$\232\204\236\003\037bson:\"r" + "obot_id\" json:\"robot_id\"R\007robotId\022;\n\007par" + "t_id\030\004 \001(\tB\"\232\204\236\003\035bson:\"part_id\" json:\"pa" + "rt_id\"R\006partId\022K\n\013location_id\030\005 \001(\tB*\232\204\236" + "\003%bson:\"location_id\" json:\"location_id\"R" + "\nlocationId\022W\n\016component_name\030\006 \001(\tB0\232\204\236" + "\003+bson:\"component_name\" json:\"component_" + "name\"R\rcomponentName\022W\n\016component_type\030\007" + " \001(\tB0\232\204\236\003+bson:\"component_type\" json:\"c" + "omponent_type\"R\rcomponentType\022[\n\017compone" + "nt_model\030\010 \001(\tB2\232\204\236\003-bson:\"component_mod" + "el\" json:\"component_model\"R\016componentMod" + "el\022K\n\013method_name\030\t \001(\tB*\232\204\236\003%bson:\"meth" + "od_name\" json:\"method_name\"R\nmethodName\022" + "C\n\tblob_path\030\n \001(\tB&\232\204\236\003!bson:\"blob_path" + "\" json:\"blob_path\"R\010blobPath\022O\n\014column_n" + "ames\030\013 \003(\tB,\232\204\236\003\'bson:\"column_names\" jso" + "n:\"column_names\"R\013columnNames\022\237\001\n\021method" + "_parameters\030\014 \003(\0132:.viam.app.datasync.v1" + ".TabularCapture.MethodParametersEntryB6\232" + "\204\236\0031bson:\"method_parameters\" json:\"metho" + "d_parameters\"R\020methodParameters\022;\n\007file_" + "id\030\r \001(\tB\"\232\204\236\003\035bson:\"file_id\" json:\"file" + "_id\"R\006fileId\0220\n\004tags\030\016 \003(\tB\034\232\204\236\003\027bson:\"t" + "ags\" json:\"tags\"R\004tags\022S\n\rmessage_count\030" + "\017 \001(\005B.\232\204\236\003)bson:\"message_count\" json:\"m" + "essage_count\"R\014messageCount\022Z\n\017file_size" + "_bytes\030\020 \001(\003B2\232\204\236\003-bson:\"file_size_bytes" + "\" json:\"file_size_bytes\"R\rfileSizeBytes\022" + "G\n\nsession_id\030\021 \001(\tB(\232\204\236\003#bson:\"session_" + "id\" json:\"session_id\"R\tsessionId\022C\n\tmime" + "_type\030\022 \001(\tB&\232\204\236\003!bson:\"mime_type\" json:" + "\"mime_type\"R\010mimeType\032Y\n\025MethodParameter" + "sEntry\022\020\n\003key\030\001 \001(\tR\003key\022*\n\005value\030\002 \001(\0132" + "\024.google.protobuf.AnyR\005value:\0028\001\"\267\013\n\rBin" + "aryCapture\022g\n\010interval\030\001 \001(\0132%.viam.app." + "datasync.v1.CaptureIntervalB$\232\204\236\003\037bson:\"" + "interval\" json:\"interval\"R\010interval\0227\n\006o" + "rg_id\030\002 \001(\tB \232\204\236\003\033bson:\"org_id\" json:\"or" + "g_id\"R\005orgId\022\?\n\010robot_id\030\003 \001(\tB$\232\204\236\003\037bso" + "n:\"robot_id\" json:\"robot_id\"R\007robotId\022;\n" + "\007part_id\030\004 \001(\tB\"\232\204\236\003\035bson:\"part_id\" json" + ":\"part_id\"R\006partId\022K\n\013location_id\030\005 \001(\tB" + "*\232\204\236\003%bson:\"location_id\" json:\"location_" + "id\"R\nlocationId\022W\n\016component_name\030\006 \001(\tB" + "0\232\204\236\003+bson:\"component_name\" json:\"compon" + "ent_name\"R\rcomponentName\022W\n\016component_ty" + "pe\030\007 \001(\tB0\232\204\236\003+bson:\"component_type\" jso" + "n:\"component_type\"R\rcomponentType\022[\n\017com" + "ponent_model\030\010 \001(\tB2\232\204\236\003-bson:\"component" + "_model\" json:\"component_model\"R\016componen" + "tModel\022K\n\013method_name\030\t \001(\tB*\232\204\236\003%bson:\"" + "method_name\" json:\"method_name\"R\nmethodN" + "ame\022C\n\tblob_path\030\n \001(\tB&\232\204\236\003!bson:\"blob_" + "path\" json:\"blob_path\"R\010blobPath\022\236\001\n\021met" + "hod_parameters\030\013 \003(\01329.viam.app.datasync" + ".v1.BinaryCapture.MethodParametersEntryB" + "6\232\204\236\0031bson:\"method_parameters\" json:\"met" + "hod_parameters\"R\020methodParameters\022;\n\007fil" + "e_id\030\014 \001(\tB\"\232\204\236\003\035bson:\"file_id\" json:\"fi" + "le_id\"R\006fileId\0220\n\004tags\030\r \003(\tB\034\232\204\236\003\027bson:" + "\"tags\" json:\"tags\"R\004tags\022Z\n\017file_size_by" + "tes\030\016 \001(\003B2\232\204\236\003-bson:\"file_size_bytes\" j" + "son:\"file_size_bytes\"R\rfileSizeBytes\022G\n\n" + "session_id\030\017 \001(\tB(\232\204\236\003#bson:\"session_id\"" + " json:\"session_id\"R\tsessionId\022C\n\tmime_ty" + "pe\030\020 \001(\tB&\232\204\236\003!bson:\"mime_type\" json:\"mi" + "me_type\"R\010mimeType\022C\n\tfile_name\030\021 \001(\tB&\232" + "\204\236\003!bson:\"file_name\" json:\"file_name\"R\010f" + "ileName\032Y\n\025MethodParametersEntry\022\020\n\003key\030" + "\001 \001(\tR\003key\022*\n\005value\030\002 \001(\0132\024.google.proto" + "buf.AnyR\005value:\0028\001*t\n\010DataType\022\031\n\025DATA_T" + "YPE_UNSPECIFIED\020\000\022\033\n\027DATA_TYPE_BINARY_SE" + "NSOR\020\001\022\034\n\030DATA_TYPE_TABULAR_SENSOR\020\002\022\022\n\016" + "DATA_TYPE_FILE\020\0032j\n\017DataSyncService\022W\n\006U" + "pload\022#.viam.app.datasync.v1.UploadReque" + "st\032$.viam.app.datasync.v1.UploadResponse" + "(\0010\001B!Z\037go.viam.com/api/app/datasync/v1b" + "\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_deps[4] = { + &::descriptor_table_google_2fprotobuf_2fany_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, + &::descriptor_table_tagger_2fv1_2ftagger_2eproto, +}; +static ::_pbi::once_flag descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto = { + false, false, 5327, descriptor_table_protodef_app_2fdatasync_2fv1_2fdata_5fsync_2eproto, + "app/datasync/v1/data_sync.proto", + &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_once, descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_deps, 4, 14, + schemas, file_default_instances, TableStruct_app_2fdatasync_2fv1_2fdata_5fsync_2eproto::offsets, + file_level_metadata_app_2fdatasync_2fv1_2fdata_5fsync_2eproto, file_level_enum_descriptors_app_2fdatasync_2fv1_2fdata_5fsync_2eproto, + file_level_service_descriptors_app_2fdatasync_2fv1_2fdata_5fsync_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_getter() { + return &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_app_2fdatasync_2fv1_2fdata_5fsync_2eproto(&descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto); +namespace viam { +namespace app { +namespace datasync { +namespace v1 { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DataType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto); + return file_level_enum_descriptors_app_2fdatasync_2fv1_2fdata_5fsync_2eproto[0]; +} +bool DataType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + + +// =================================================================== + +class SensorMetadata::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& time_requested(const SensorMetadata* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& time_received(const SensorMetadata* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +SensorMetadata::_Internal::time_requested(const SensorMetadata* msg) { + return *msg->_impl_.time_requested_; +} +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +SensorMetadata::_Internal::time_received(const SensorMetadata* msg) { + return *msg->_impl_.time_received_; +} +void SensorMetadata::clear_time_requested() { + if (GetArenaForAllocation() == nullptr && _impl_.time_requested_ != nullptr) { + delete _impl_.time_requested_; + } + _impl_.time_requested_ = nullptr; +} +void SensorMetadata::clear_time_received() { + if (GetArenaForAllocation() == nullptr && _impl_.time_received_ != nullptr) { + delete _impl_.time_received_; + } + _impl_.time_received_ = nullptr; +} +SensorMetadata::SensorMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.datasync.v1.SensorMetadata) +} +SensorMetadata::SensorMetadata(const SensorMetadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + SensorMetadata* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.time_requested_){nullptr} + , decltype(_impl_.time_received_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_time_requested()) { + _this->_impl_.time_requested_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.time_requested_); + } + if (from._internal_has_time_received()) { + _this->_impl_.time_received_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.time_received_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.datasync.v1.SensorMetadata) +} + +inline void SensorMetadata::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.time_requested_){nullptr} + , decltype(_impl_.time_received_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +SensorMetadata::~SensorMetadata() { + // @@protoc_insertion_point(destructor:viam.app.datasync.v1.SensorMetadata) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SensorMetadata::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.time_requested_; + if (this != internal_default_instance()) delete _impl_.time_received_; +} + +void SensorMetadata::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SensorMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.datasync.v1.SensorMetadata) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.time_requested_ != nullptr) { + delete _impl_.time_requested_; + } + _impl_.time_requested_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.time_received_ != nullptr) { + delete _impl_.time_received_; + } + _impl_.time_received_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SensorMetadata::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.protobuf.Timestamp time_requested = 1 [json_name = "timeRequested"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_time_requested(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp time_received = 2 [json_name = "timeReceived"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_time_received(), 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* SensorMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.datasync.v1.SensorMetadata) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.Timestamp time_requested = 1 [json_name = "timeRequested"]; + if (this->_internal_has_time_requested()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::time_requested(this), + _Internal::time_requested(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Timestamp time_received = 2 [json_name = "timeReceived"]; + if (this->_internal_has_time_received()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::time_received(this), + _Internal::time_received(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.datasync.v1.SensorMetadata) + return target; +} + +size_t SensorMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.datasync.v1.SensorMetadata) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.protobuf.Timestamp time_requested = 1 [json_name = "timeRequested"]; + if (this->_internal_has_time_requested()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.time_requested_); + } + + // .google.protobuf.Timestamp time_received = 2 [json_name = "timeReceived"]; + if (this->_internal_has_time_received()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.time_received_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SensorMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SensorMetadata::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SensorMetadata::GetClassData() const { return &_class_data_; } + + +void SensorMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.datasync.v1.SensorMetadata) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_time_requested()) { + _this->_internal_mutable_time_requested()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_time_requested()); + } + if (from._internal_has_time_received()) { + _this->_internal_mutable_time_received()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_time_received()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SensorMetadata::CopyFrom(const SensorMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.datasync.v1.SensorMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SensorMetadata::IsInitialized() const { + return true; +} + +void SensorMetadata::InternalSwap(SensorMetadata* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SensorMetadata, _impl_.time_received_) + + sizeof(SensorMetadata::_impl_.time_received_) + - PROTOBUF_FIELD_OFFSET(SensorMetadata, _impl_.time_requested_)>( + reinterpret_cast(&_impl_.time_requested_), + reinterpret_cast(&other->_impl_.time_requested_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SensorMetadata::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_getter, &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_once, + file_level_metadata_app_2fdatasync_2fv1_2fdata_5fsync_2eproto[0]); +} + +// =================================================================== + +class SensorData::_Internal { + public: + static const ::viam::app::datasync::v1::SensorMetadata& metadata(const SensorData* msg); + static const ::PROTOBUF_NAMESPACE_ID::Struct& struct_(const SensorData* msg); +}; + +const ::viam::app::datasync::v1::SensorMetadata& +SensorData::_Internal::metadata(const SensorData* msg) { + return *msg->_impl_.metadata_; +} +const ::PROTOBUF_NAMESPACE_ID::Struct& +SensorData::_Internal::struct_(const SensorData* msg) { + return *msg->_impl_.data_.struct__; +} +void SensorData::set_allocated_struct_(::PROTOBUF_NAMESPACE_ID::Struct* struct_) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_data(); + if (struct_) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(struct_)); + if (message_arena != submessage_arena) { + struct_ = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, struct_, submessage_arena); + } + set_has_struct_(); + _impl_.data_.struct__ = struct_; + } + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.SensorData.struct) +} +void SensorData::clear_struct_() { + if (_internal_has_struct_()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.data_.struct__; + } + clear_has_data(); + } +} +SensorData::SensorData(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.datasync.v1.SensorData) +} +SensorData::SensorData(const SensorData& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + SensorData* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.metadata_){nullptr} + , decltype(_impl_.data_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_metadata()) { + _this->_impl_.metadata_ = new ::viam::app::datasync::v1::SensorMetadata(*from._impl_.metadata_); + } + clear_has_data(); + switch (from.data_case()) { + case kStruct: { + _this->_internal_mutable_struct_()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_struct_()); + break; + } + case kBinary: { + _this->_internal_set_binary(from._internal_binary()); + break; + } + case DATA_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:viam.app.datasync.v1.SensorData) +} + +inline void SensorData::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.metadata_){nullptr} + , decltype(_impl_.data_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_data(); +} + +SensorData::~SensorData() { + // @@protoc_insertion_point(destructor:viam.app.datasync.v1.SensorData) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SensorData::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.metadata_; + if (has_data()) { + clear_data(); + } +} + +void SensorData::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SensorData::clear_data() { +// @@protoc_insertion_point(one_of_clear_start:viam.app.datasync.v1.SensorData) + switch (data_case()) { + case kStruct: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.data_.struct__; + } + break; + } + case kBinary: { + _impl_.data_.binary_.Destroy(); + break; + } + case DATA_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = DATA_NOT_SET; +} + + +void SensorData::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.datasync.v1.SensorData) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.metadata_ != nullptr) { + delete _impl_.metadata_; + } + _impl_.metadata_ = nullptr; + clear_data(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SensorData::_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) { + // .viam.app.datasync.v1.SensorMetadata metadata = 1 [json_name = "metadata"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_metadata(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct struct = 2 [json_name = "struct"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_struct_(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes binary = 3 [json_name = "binary"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_binary(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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* SensorData::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.datasync.v1.SensorData) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.datasync.v1.SensorMetadata metadata = 1 [json_name = "metadata"]; + if (this->_internal_has_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::metadata(this), + _Internal::metadata(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Struct struct = 2 [json_name = "struct"]; + if (_internal_has_struct_()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::struct_(this), + _Internal::struct_(this).GetCachedSize(), target, stream); + } + + // bytes binary = 3 [json_name = "binary"]; + if (_internal_has_binary()) { + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_binary(), 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.datasync.v1.SensorData) + return target; +} + +size_t SensorData::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.datasync.v1.SensorData) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.app.datasync.v1.SensorMetadata metadata = 1 [json_name = "metadata"]; + if (this->_internal_has_metadata()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.metadata_); + } + + switch (data_case()) { + // .google.protobuf.Struct struct = 2 [json_name = "struct"]; + case kStruct: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.data_.struct__); + break; + } + // bytes binary = 3 [json_name = "binary"]; + case kBinary: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_binary()); + break; + } + case DATA_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SensorData::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SensorData::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SensorData::GetClassData() const { return &_class_data_; } + + +void SensorData::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.datasync.v1.SensorData) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_metadata()) { + _this->_internal_mutable_metadata()->::viam::app::datasync::v1::SensorMetadata::MergeFrom( + from._internal_metadata()); + } + switch (from.data_case()) { + case kStruct: { + _this->_internal_mutable_struct_()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_struct_()); + break; + } + case kBinary: { + _this->_internal_set_binary(from._internal_binary()); + break; + } + case DATA_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SensorData::CopyFrom(const SensorData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.datasync.v1.SensorData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SensorData::IsInitialized() const { + return true; +} + +void SensorData::InternalSwap(SensorData* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.metadata_, other->_impl_.metadata_); + swap(_impl_.data_, other->_impl_.data_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SensorData::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_getter, &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_once, + file_level_metadata_app_2fdatasync_2fv1_2fdata_5fsync_2eproto[1]); +} + +// =================================================================== + +class FileData::_Internal { + public: +}; + +FileData::FileData(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.datasync.v1.FileData) +} +FileData::FileData(const FileData& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + FileData* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.data_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_data().empty()) { + _this->_impl_.data_.Set(from._internal_data(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.datasync.v1.FileData) +} + +inline void FileData::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.data_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +FileData::~FileData() { + // @@protoc_insertion_point(destructor:viam.app.datasync.v1.FileData) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void FileData::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.data_.Destroy(); +} + +void FileData::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void FileData::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.datasync.v1.FileData) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.data_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FileData::_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 data = 1 [json_name = "data"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_data(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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* FileData::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.datasync.v1.FileData) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bytes data = 1 [json_name = "data"]; + if (!this->_internal_data().empty()) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_data(), 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.datasync.v1.FileData) + return target; +} + +size_t FileData::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.datasync.v1.FileData) + 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 data = 1 [json_name = "data"]; + if (!this->_internal_data().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_data()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FileData::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + FileData::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FileData::GetClassData() const { return &_class_data_; } + + +void FileData::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.datasync.v1.FileData) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_data().empty()) { + _this->_internal_set_data(from._internal_data()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void FileData::CopyFrom(const FileData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.datasync.v1.FileData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FileData::IsInitialized() const { + return true; +} + +void FileData::InternalSwap(FileData* 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( + &_impl_.data_, lhs_arena, + &other->_impl_.data_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FileData::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_getter, &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_once, + file_level_metadata_app_2fdatasync_2fv1_2fdata_5fsync_2eproto[2]); +} + +// =================================================================== + +UploadMetadata_MethodParametersEntry_DoNotUse::UploadMetadata_MethodParametersEntry_DoNotUse() {} +UploadMetadata_MethodParametersEntry_DoNotUse::UploadMetadata_MethodParametersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void UploadMetadata_MethodParametersEntry_DoNotUse::MergeFrom(const UploadMetadata_MethodParametersEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata UploadMetadata_MethodParametersEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_getter, &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_once, + file_level_metadata_app_2fdatasync_2fv1_2fdata_5fsync_2eproto[3]); +} + +// =================================================================== + +class UploadMetadata::_Internal { + public: +}; + +void UploadMetadata::clear_method_parameters() { + _impl_.method_parameters_.Clear(); +} +UploadMetadata::UploadMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &UploadMetadata::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:viam.app.datasync.v1.UploadMetadata) +} +UploadMetadata::UploadMetadata(const UploadMetadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + UploadMetadata* const _this = this; (void)_this; + new (&_impl_) Impl_{ + /*decltype(_impl_.method_parameters_)*/{} + , decltype(_impl_.tags_){from._impl_.tags_} + , decltype(_impl_.part_id_){} + , decltype(_impl_.component_type_){} + , decltype(_impl_.component_name_){} + , decltype(_impl_.component_model_){} + , decltype(_impl_.method_name_){} + , decltype(_impl_.file_name_){} + , decltype(_impl_.file_extension_){} + , decltype(_impl_.session_id_){} + , decltype(_impl_.type_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.method_parameters_.MergeFrom(from._impl_.method_parameters_); + _impl_.part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_part_id().empty()) { + _this->_impl_.part_id_.Set(from._internal_part_id(), + _this->GetArenaForAllocation()); + } + _impl_.component_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_type().empty()) { + _this->_impl_.component_type_.Set(from._internal_component_type(), + _this->GetArenaForAllocation()); + } + _impl_.component_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_name().empty()) { + _this->_impl_.component_name_.Set(from._internal_component_name(), + _this->GetArenaForAllocation()); + } + _impl_.component_model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_model().empty()) { + _this->_impl_.component_model_.Set(from._internal_component_model(), + _this->GetArenaForAllocation()); + } + _impl_.method_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_method_name().empty()) { + _this->_impl_.method_name_.Set(from._internal_method_name(), + _this->GetArenaForAllocation()); + } + _impl_.file_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_file_name().empty()) { + _this->_impl_.file_name_.Set(from._internal_file_name(), + _this->GetArenaForAllocation()); + } + _impl_.file_extension_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_extension_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_file_extension().empty()) { + _this->_impl_.file_extension_.Set(from._internal_file_extension(), + _this->GetArenaForAllocation()); + } + _impl_.session_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.session_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_session_id().empty()) { + _this->_impl_.session_id_.Set(from._internal_session_id(), + _this->GetArenaForAllocation()); + } + _this->_impl_.type_ = from._impl_.type_; + // @@protoc_insertion_point(copy_constructor:viam.app.datasync.v1.UploadMetadata) +} + +inline void UploadMetadata::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + /*decltype(_impl_.method_parameters_)*/{::_pbi::ArenaInitialized(), arena} + , decltype(_impl_.tags_){arena} + , decltype(_impl_.part_id_){} + , decltype(_impl_.component_type_){} + , decltype(_impl_.component_name_){} + , decltype(_impl_.component_model_){} + , decltype(_impl_.method_name_){} + , decltype(_impl_.file_name_){} + , decltype(_impl_.file_extension_){} + , decltype(_impl_.session_id_){} + , decltype(_impl_.type_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_extension_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_extension_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.session_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.session_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +UploadMetadata::~UploadMetadata() { + // @@protoc_insertion_point(destructor:viam.app.datasync.v1.UploadMetadata) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void UploadMetadata::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.method_parameters_.Destruct(); + _impl_.method_parameters_.~MapField(); + _impl_.tags_.~RepeatedPtrField(); + _impl_.part_id_.Destroy(); + _impl_.component_type_.Destroy(); + _impl_.component_name_.Destroy(); + _impl_.component_model_.Destroy(); + _impl_.method_name_.Destroy(); + _impl_.file_name_.Destroy(); + _impl_.file_extension_.Destroy(); + _impl_.session_id_.Destroy(); +} + +void UploadMetadata::ArenaDtor(void* object) { + UploadMetadata* _this = reinterpret_cast< UploadMetadata* >(object); + _this->_impl_.method_parameters_.Destruct(); +} +void UploadMetadata::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void UploadMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.datasync.v1.UploadMetadata) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.method_parameters_.Clear(); + _impl_.tags_.Clear(); + _impl_.part_id_.ClearToEmpty(); + _impl_.component_type_.ClearToEmpty(); + _impl_.component_name_.ClearToEmpty(); + _impl_.component_model_.ClearToEmpty(); + _impl_.method_name_.ClearToEmpty(); + _impl_.file_name_.ClearToEmpty(); + _impl_.file_extension_.ClearToEmpty(); + _impl_.session_id_.ClearToEmpty(); + _impl_.type_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UploadMetadata::_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 part_id = 1 [json_name = "partId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_part_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.UploadMetadata.part_id")); + } else + goto handle_unusual; + continue; + // string component_type = 2 [json_name = "componentType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_component_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.UploadMetadata.component_type")); + } else + goto handle_unusual; + continue; + // string component_name = 3 [json_name = "componentName"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_component_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.UploadMetadata.component_name")); + } else + goto handle_unusual; + continue; + // string component_model = 4 [json_name = "componentModel"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_component_model(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.UploadMetadata.component_model")); + } else + goto handle_unusual; + continue; + // string method_name = 5 [json_name = "methodName"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_method_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.UploadMetadata.method_name")); + } else + goto handle_unusual; + continue; + // .viam.app.datasync.v1.DataType type = 6 [json_name = "type"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::viam::app::datasync::v1::DataType>(val)); + } else + goto handle_unusual; + continue; + // string file_name = 7 [json_name = "fileName"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_file_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.UploadMetadata.file_name")); + } else + goto handle_unusual; + continue; + // map method_parameters = 8 [json_name = "methodParameters"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.method_parameters_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); + } else + goto handle_unusual; + continue; + // string file_extension = 9 [json_name = "fileExtension"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + auto str = _internal_mutable_file_extension(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.UploadMetadata.file_extension")); + } else + goto handle_unusual; + continue; + // repeated string tags = 10 [json_name = "tags"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_tags(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.UploadMetadata.tags")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<82>(ptr)); + } else + goto handle_unusual; + continue; + // string session_id = 11 [json_name = "sessionId"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + auto str = _internal_mutable_session_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.UploadMetadata.session_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* UploadMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.datasync.v1.UploadMetadata) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string part_id = 1 [json_name = "partId"]; + if (!this->_internal_part_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_part_id().data(), static_cast(this->_internal_part_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.UploadMetadata.part_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_part_id(), target); + } + + // string component_type = 2 [json_name = "componentType"]; + if (!this->_internal_component_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_type().data(), static_cast(this->_internal_component_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.UploadMetadata.component_type"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_component_type(), target); + } + + // string component_name = 3 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_name().data(), static_cast(this->_internal_component_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.UploadMetadata.component_name"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_component_name(), target); + } + + // string component_model = 4 [json_name = "componentModel"]; + if (!this->_internal_component_model().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_model().data(), static_cast(this->_internal_component_model().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.UploadMetadata.component_model"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_component_model(), target); + } + + // string method_name = 5 [json_name = "methodName"]; + if (!this->_internal_method_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_method_name().data(), static_cast(this->_internal_method_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.UploadMetadata.method_name"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_method_name(), target); + } + + // .viam.app.datasync.v1.DataType type = 6 [json_name = "type"]; + if (this->_internal_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 6, this->_internal_type(), target); + } + + // string file_name = 7 [json_name = "fileName"]; + if (!this->_internal_file_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_file_name().data(), static_cast(this->_internal_file_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.UploadMetadata.file_name"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_file_name(), target); + } + + // map method_parameters = 8 [json_name = "methodParameters"]; + if (!this->_internal_method_parameters().empty()) { + using MapType = ::_pb::Map; + using WireHelper = UploadMetadata_MethodParametersEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_method_parameters(); + 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.app.datasync.v1.UploadMetadata.MethodParametersEntry.key"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(8, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(8, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } + } + + // string file_extension = 9 [json_name = "fileExtension"]; + if (!this->_internal_file_extension().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_file_extension().data(), static_cast(this->_internal_file_extension().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.UploadMetadata.file_extension"); + target = stream->WriteStringMaybeAliased( + 9, this->_internal_file_extension(), target); + } + + // repeated string tags = 10 [json_name = "tags"]; + for (int i = 0, n = this->_internal_tags_size(); i < n; i++) { + const auto& s = this->_internal_tags(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.UploadMetadata.tags"); + target = stream->WriteString(10, s, target); + } + + // string session_id = 11 [json_name = "sessionId"]; + if (!this->_internal_session_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_session_id().data(), static_cast(this->_internal_session_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.UploadMetadata.session_id"); + target = stream->WriteStringMaybeAliased( + 11, this->_internal_session_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.datasync.v1.UploadMetadata) + return target; +} + +size_t UploadMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.datasync.v1.UploadMetadata) + 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 method_parameters = 8 [json_name = "methodParameters"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_method_parameters_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >::const_iterator + it = this->_internal_method_parameters().begin(); + it != this->_internal_method_parameters().end(); ++it) { + total_size += UploadMetadata_MethodParametersEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // repeated string tags = 10 [json_name = "tags"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.tags_.size()); + for (int i = 0, n = _impl_.tags_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.tags_.Get(i)); + } + + // string part_id = 1 [json_name = "partId"]; + if (!this->_internal_part_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_part_id()); + } + + // string component_type = 2 [json_name = "componentType"]; + if (!this->_internal_component_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_type()); + } + + // string component_name = 3 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_name()); + } + + // string component_model = 4 [json_name = "componentModel"]; + if (!this->_internal_component_model().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_model()); + } + + // string method_name = 5 [json_name = "methodName"]; + if (!this->_internal_method_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_method_name()); + } + + // string file_name = 7 [json_name = "fileName"]; + if (!this->_internal_file_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_file_name()); + } + + // string file_extension = 9 [json_name = "fileExtension"]; + if (!this->_internal_file_extension().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_file_extension()); + } + + // string session_id = 11 [json_name = "sessionId"]; + if (!this->_internal_session_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_session_id()); + } + + // .viam.app.datasync.v1.DataType type = 6 [json_name = "type"]; + if (this->_internal_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UploadMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + UploadMetadata::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UploadMetadata::GetClassData() const { return &_class_data_; } + + +void UploadMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.datasync.v1.UploadMetadata) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.method_parameters_.MergeFrom(from._impl_.method_parameters_); + _this->_impl_.tags_.MergeFrom(from._impl_.tags_); + if (!from._internal_part_id().empty()) { + _this->_internal_set_part_id(from._internal_part_id()); + } + if (!from._internal_component_type().empty()) { + _this->_internal_set_component_type(from._internal_component_type()); + } + if (!from._internal_component_name().empty()) { + _this->_internal_set_component_name(from._internal_component_name()); + } + if (!from._internal_component_model().empty()) { + _this->_internal_set_component_model(from._internal_component_model()); + } + if (!from._internal_method_name().empty()) { + _this->_internal_set_method_name(from._internal_method_name()); + } + if (!from._internal_file_name().empty()) { + _this->_internal_set_file_name(from._internal_file_name()); + } + if (!from._internal_file_extension().empty()) { + _this->_internal_set_file_extension(from._internal_file_extension()); + } + if (!from._internal_session_id().empty()) { + _this->_internal_set_session_id(from._internal_session_id()); + } + if (from._internal_type() != 0) { + _this->_internal_set_type(from._internal_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void UploadMetadata::CopyFrom(const UploadMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.datasync.v1.UploadMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UploadMetadata::IsInitialized() const { + return true; +} + +void UploadMetadata::InternalSwap(UploadMetadata* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.method_parameters_.InternalSwap(&other->_impl_.method_parameters_); + _impl_.tags_.InternalSwap(&other->_impl_.tags_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.part_id_, lhs_arena, + &other->_impl_.part_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.component_type_, lhs_arena, + &other->_impl_.component_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.component_name_, lhs_arena, + &other->_impl_.component_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.component_model_, lhs_arena, + &other->_impl_.component_model_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.method_name_, lhs_arena, + &other->_impl_.method_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.file_name_, lhs_arena, + &other->_impl_.file_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.file_extension_, lhs_arena, + &other->_impl_.file_extension_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.session_id_, lhs_arena, + &other->_impl_.session_id_, rhs_arena + ); + swap(_impl_.type_, other->_impl_.type_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UploadMetadata::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_getter, &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_once, + file_level_metadata_app_2fdatasync_2fv1_2fdata_5fsync_2eproto[4]); +} + +// =================================================================== + +class UploadRequest::_Internal { + public: + static const ::viam::app::datasync::v1::UploadMetadata& metadata(const UploadRequest* msg); + static const ::viam::app::datasync::v1::SensorData& sensor_contents(const UploadRequest* msg); + static const ::viam::app::datasync::v1::FileData& file_contents(const UploadRequest* msg); +}; + +const ::viam::app::datasync::v1::UploadMetadata& +UploadRequest::_Internal::metadata(const UploadRequest* msg) { + return *msg->_impl_.upload_packet_.metadata_; +} +const ::viam::app::datasync::v1::SensorData& +UploadRequest::_Internal::sensor_contents(const UploadRequest* msg) { + return *msg->_impl_.upload_packet_.sensor_contents_; +} +const ::viam::app::datasync::v1::FileData& +UploadRequest::_Internal::file_contents(const UploadRequest* msg) { + return *msg->_impl_.upload_packet_.file_contents_; +} +void UploadRequest::set_allocated_metadata(::viam::app::datasync::v1::UploadMetadata* metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_upload_packet(); + if (metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metadata); + if (message_arena != submessage_arena) { + metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + set_has_metadata(); + _impl_.upload_packet_.metadata_ = metadata; + } + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.UploadRequest.metadata) +} +void UploadRequest::set_allocated_sensor_contents(::viam::app::datasync::v1::SensorData* sensor_contents) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_upload_packet(); + if (sensor_contents) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(sensor_contents); + if (message_arena != submessage_arena) { + sensor_contents = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, sensor_contents, submessage_arena); + } + set_has_sensor_contents(); + _impl_.upload_packet_.sensor_contents_ = sensor_contents; + } + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.UploadRequest.sensor_contents) +} +void UploadRequest::set_allocated_file_contents(::viam::app::datasync::v1::FileData* file_contents) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_upload_packet(); + if (file_contents) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(file_contents); + if (message_arena != submessage_arena) { + file_contents = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, file_contents, submessage_arena); + } + set_has_file_contents(); + _impl_.upload_packet_.file_contents_ = file_contents; + } + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.UploadRequest.file_contents) +} +UploadRequest::UploadRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.datasync.v1.UploadRequest) +} +UploadRequest::UploadRequest(const UploadRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + UploadRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.upload_packet_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_upload_packet(); + switch (from.upload_packet_case()) { + case kMetadata: { + _this->_internal_mutable_metadata()->::viam::app::datasync::v1::UploadMetadata::MergeFrom( + from._internal_metadata()); + break; + } + case kSensorContents: { + _this->_internal_mutable_sensor_contents()->::viam::app::datasync::v1::SensorData::MergeFrom( + from._internal_sensor_contents()); + break; + } + case kFileContents: { + _this->_internal_mutable_file_contents()->::viam::app::datasync::v1::FileData::MergeFrom( + from._internal_file_contents()); + break; + } + case UPLOAD_PACKET_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:viam.app.datasync.v1.UploadRequest) +} + +inline void UploadRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.upload_packet_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_upload_packet(); +} + +UploadRequest::~UploadRequest() { + // @@protoc_insertion_point(destructor:viam.app.datasync.v1.UploadRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void UploadRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_upload_packet()) { + clear_upload_packet(); + } +} + +void UploadRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void UploadRequest::clear_upload_packet() { +// @@protoc_insertion_point(one_of_clear_start:viam.app.datasync.v1.UploadRequest) + switch (upload_packet_case()) { + case kMetadata: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.upload_packet_.metadata_; + } + break; + } + case kSensorContents: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.upload_packet_.sensor_contents_; + } + break; + } + case kFileContents: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.upload_packet_.file_contents_; + } + break; + } + case UPLOAD_PACKET_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = UPLOAD_PACKET_NOT_SET; +} + + +void UploadRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.datasync.v1.UploadRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_upload_packet(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UploadRequest::_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) { + // .viam.app.datasync.v1.UploadMetadata metadata = 1 [json_name = "metadata"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_metadata(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.datasync.v1.SensorData sensor_contents = 2 [json_name = "sensorContents"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_sensor_contents(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.datasync.v1.FileData file_contents = 3 [json_name = "fileContents"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_file_contents(), 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* UploadRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.datasync.v1.UploadRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.datasync.v1.UploadMetadata metadata = 1 [json_name = "metadata"]; + if (_internal_has_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::metadata(this), + _Internal::metadata(this).GetCachedSize(), target, stream); + } + + // .viam.app.datasync.v1.SensorData sensor_contents = 2 [json_name = "sensorContents"]; + if (_internal_has_sensor_contents()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::sensor_contents(this), + _Internal::sensor_contents(this).GetCachedSize(), target, stream); + } + + // .viam.app.datasync.v1.FileData file_contents = 3 [json_name = "fileContents"]; + if (_internal_has_file_contents()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::file_contents(this), + _Internal::file_contents(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.datasync.v1.UploadRequest) + return target; +} + +size_t UploadRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.datasync.v1.UploadRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (upload_packet_case()) { + // .viam.app.datasync.v1.UploadMetadata metadata = 1 [json_name = "metadata"]; + case kMetadata: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.upload_packet_.metadata_); + break; + } + // .viam.app.datasync.v1.SensorData sensor_contents = 2 [json_name = "sensorContents"]; + case kSensorContents: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.upload_packet_.sensor_contents_); + break; + } + // .viam.app.datasync.v1.FileData file_contents = 3 [json_name = "fileContents"]; + case kFileContents: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.upload_packet_.file_contents_); + break; + } + case UPLOAD_PACKET_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UploadRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + UploadRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UploadRequest::GetClassData() const { return &_class_data_; } + + +void UploadRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.datasync.v1.UploadRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.upload_packet_case()) { + case kMetadata: { + _this->_internal_mutable_metadata()->::viam::app::datasync::v1::UploadMetadata::MergeFrom( + from._internal_metadata()); + break; + } + case kSensorContents: { + _this->_internal_mutable_sensor_contents()->::viam::app::datasync::v1::SensorData::MergeFrom( + from._internal_sensor_contents()); + break; + } + case kFileContents: { + _this->_internal_mutable_file_contents()->::viam::app::datasync::v1::FileData::MergeFrom( + from._internal_file_contents()); + break; + } + case UPLOAD_PACKET_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void UploadRequest::CopyFrom(const UploadRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.datasync.v1.UploadRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UploadRequest::IsInitialized() const { + return true; +} + +void UploadRequest::InternalSwap(UploadRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.upload_packet_, other->_impl_.upload_packet_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UploadRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_getter, &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_once, + file_level_metadata_app_2fdatasync_2fv1_2fdata_5fsync_2eproto[5]); +} + +// =================================================================== + +class UploadResponse::_Internal { + public: +}; + +UploadResponse::UploadResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.datasync.v1.UploadResponse) +} +UploadResponse::UploadResponse(const UploadResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + UploadResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.requests_written_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.requests_written_ = from._impl_.requests_written_; + // @@protoc_insertion_point(copy_constructor:viam.app.datasync.v1.UploadResponse) +} + +inline void UploadResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.requests_written_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +UploadResponse::~UploadResponse() { + // @@protoc_insertion_point(destructor:viam.app.datasync.v1.UploadResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void UploadResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void UploadResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void UploadResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.datasync.v1.UploadResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.requests_written_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UploadResponse::_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) { + // int32 requests_written = 1 [json_name = "requestsWritten"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.requests_written_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* UploadResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.datasync.v1.UploadResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int32 requests_written = 1 [json_name = "requestsWritten"]; + if (this->_internal_requests_written() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_requests_written(), 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.datasync.v1.UploadResponse) + return target; +} + +size_t UploadResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.datasync.v1.UploadResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int32 requests_written = 1 [json_name = "requestsWritten"]; + if (this->_internal_requests_written() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_requests_written()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UploadResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + UploadResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UploadResponse::GetClassData() const { return &_class_data_; } + + +void UploadResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.datasync.v1.UploadResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_requests_written() != 0) { + _this->_internal_set_requests_written(from._internal_requests_written()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void UploadResponse::CopyFrom(const UploadResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.datasync.v1.UploadResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UploadResponse::IsInitialized() const { + return true; +} + +void UploadResponse::InternalSwap(UploadResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.requests_written_, other->_impl_.requests_written_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UploadResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_getter, &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_once, + file_level_metadata_app_2fdatasync_2fv1_2fdata_5fsync_2eproto[6]); +} + +// =================================================================== + +class CaptureInterval::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& start(const CaptureInterval* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& end(const CaptureInterval* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +CaptureInterval::_Internal::start(const CaptureInterval* msg) { + return *msg->_impl_.start_; +} +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +CaptureInterval::_Internal::end(const CaptureInterval* msg) { + return *msg->_impl_.end_; +} +void CaptureInterval::clear_start() { + if (GetArenaForAllocation() == nullptr && _impl_.start_ != nullptr) { + delete _impl_.start_; + } + _impl_.start_ = nullptr; +} +void CaptureInterval::clear_end() { + if (GetArenaForAllocation() == nullptr && _impl_.end_ != nullptr) { + delete _impl_.end_; + } + _impl_.end_ = nullptr; +} +CaptureInterval::CaptureInterval(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.datasync.v1.CaptureInterval) +} +CaptureInterval::CaptureInterval(const CaptureInterval& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + CaptureInterval* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.start_){nullptr} + , decltype(_impl_.end_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_start()) { + _this->_impl_.start_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.start_); + } + if (from._internal_has_end()) { + _this->_impl_.end_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.end_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.datasync.v1.CaptureInterval) +} + +inline void CaptureInterval::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.start_){nullptr} + , decltype(_impl_.end_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +CaptureInterval::~CaptureInterval() { + // @@protoc_insertion_point(destructor:viam.app.datasync.v1.CaptureInterval) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CaptureInterval::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.start_; + if (this != internal_default_instance()) delete _impl_.end_; +} + +void CaptureInterval::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void CaptureInterval::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.datasync.v1.CaptureInterval) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.start_ != nullptr) { + delete _impl_.start_; + } + _impl_.start_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.end_ != nullptr) { + delete _impl_.end_; + } + _impl_.end_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CaptureInterval::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.protobuf.Timestamp start = 1 [json_name = "start"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_start(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp end = 2 [json_name = "end"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_end(), 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* CaptureInterval::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.datasync.v1.CaptureInterval) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.Timestamp start = 1 [json_name = "start"]; + if (this->_internal_has_start()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::start(this), + _Internal::start(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Timestamp end = 2 [json_name = "end"]; + if (this->_internal_has_end()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::end(this), + _Internal::end(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.datasync.v1.CaptureInterval) + return target; +} + +size_t CaptureInterval::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.datasync.v1.CaptureInterval) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.protobuf.Timestamp start = 1 [json_name = "start"]; + if (this->_internal_has_start()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.start_); + } + + // .google.protobuf.Timestamp end = 2 [json_name = "end"]; + if (this->_internal_has_end()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.end_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CaptureInterval::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + CaptureInterval::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CaptureInterval::GetClassData() const { return &_class_data_; } + + +void CaptureInterval::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.datasync.v1.CaptureInterval) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_start()) { + _this->_internal_mutable_start()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_start()); + } + if (from._internal_has_end()) { + _this->_internal_mutable_end()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_end()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CaptureInterval::CopyFrom(const CaptureInterval& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.datasync.v1.CaptureInterval) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CaptureInterval::IsInitialized() const { + return true; +} + +void CaptureInterval::InternalSwap(CaptureInterval* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(CaptureInterval, _impl_.end_) + + sizeof(CaptureInterval::_impl_.end_) + - PROTOBUF_FIELD_OFFSET(CaptureInterval, _impl_.start_)>( + reinterpret_cast(&_impl_.start_), + reinterpret_cast(&other->_impl_.start_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CaptureInterval::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_getter, &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_once, + file_level_metadata_app_2fdatasync_2fv1_2fdata_5fsync_2eproto[7]); +} + +// =================================================================== + +DataCaptureMetadata_MethodParametersEntry_DoNotUse::DataCaptureMetadata_MethodParametersEntry_DoNotUse() {} +DataCaptureMetadata_MethodParametersEntry_DoNotUse::DataCaptureMetadata_MethodParametersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void DataCaptureMetadata_MethodParametersEntry_DoNotUse::MergeFrom(const DataCaptureMetadata_MethodParametersEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata DataCaptureMetadata_MethodParametersEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_getter, &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_once, + file_level_metadata_app_2fdatasync_2fv1_2fdata_5fsync_2eproto[8]); +} + +// =================================================================== + +class DataCaptureMetadata::_Internal { + public: +}; + +void DataCaptureMetadata::clear_method_parameters() { + _impl_.method_parameters_.Clear(); +} +DataCaptureMetadata::DataCaptureMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &DataCaptureMetadata::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:viam.app.datasync.v1.DataCaptureMetadata) +} +DataCaptureMetadata::DataCaptureMetadata(const DataCaptureMetadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DataCaptureMetadata* const _this = this; (void)_this; + new (&_impl_) Impl_{ + /*decltype(_impl_.method_parameters_)*/{} + , decltype(_impl_.tags_){from._impl_.tags_} + , decltype(_impl_.component_type_){} + , decltype(_impl_.component_name_){} + , decltype(_impl_.component_model_){} + , decltype(_impl_.method_name_){} + , decltype(_impl_.file_extension_){} + , decltype(_impl_.session_id_){} + , decltype(_impl_.type_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.method_parameters_.MergeFrom(from._impl_.method_parameters_); + _impl_.component_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_type().empty()) { + _this->_impl_.component_type_.Set(from._internal_component_type(), + _this->GetArenaForAllocation()); + } + _impl_.component_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_name().empty()) { + _this->_impl_.component_name_.Set(from._internal_component_name(), + _this->GetArenaForAllocation()); + } + _impl_.component_model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_model().empty()) { + _this->_impl_.component_model_.Set(from._internal_component_model(), + _this->GetArenaForAllocation()); + } + _impl_.method_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_method_name().empty()) { + _this->_impl_.method_name_.Set(from._internal_method_name(), + _this->GetArenaForAllocation()); + } + _impl_.file_extension_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_extension_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_file_extension().empty()) { + _this->_impl_.file_extension_.Set(from._internal_file_extension(), + _this->GetArenaForAllocation()); + } + _impl_.session_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.session_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_session_id().empty()) { + _this->_impl_.session_id_.Set(from._internal_session_id(), + _this->GetArenaForAllocation()); + } + _this->_impl_.type_ = from._impl_.type_; + // @@protoc_insertion_point(copy_constructor:viam.app.datasync.v1.DataCaptureMetadata) +} + +inline void DataCaptureMetadata::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + /*decltype(_impl_.method_parameters_)*/{::_pbi::ArenaInitialized(), arena} + , decltype(_impl_.tags_){arena} + , decltype(_impl_.component_type_){} + , decltype(_impl_.component_name_){} + , decltype(_impl_.component_model_){} + , decltype(_impl_.method_name_){} + , decltype(_impl_.file_extension_){} + , decltype(_impl_.session_id_){} + , decltype(_impl_.type_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.component_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_extension_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_extension_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.session_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.session_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +DataCaptureMetadata::~DataCaptureMetadata() { + // @@protoc_insertion_point(destructor:viam.app.datasync.v1.DataCaptureMetadata) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void DataCaptureMetadata::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.method_parameters_.Destruct(); + _impl_.method_parameters_.~MapField(); + _impl_.tags_.~RepeatedPtrField(); + _impl_.component_type_.Destroy(); + _impl_.component_name_.Destroy(); + _impl_.component_model_.Destroy(); + _impl_.method_name_.Destroy(); + _impl_.file_extension_.Destroy(); + _impl_.session_id_.Destroy(); +} + +void DataCaptureMetadata::ArenaDtor(void* object) { + DataCaptureMetadata* _this = reinterpret_cast< DataCaptureMetadata* >(object); + _this->_impl_.method_parameters_.Destruct(); +} +void DataCaptureMetadata::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DataCaptureMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.datasync.v1.DataCaptureMetadata) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.method_parameters_.Clear(); + _impl_.tags_.Clear(); + _impl_.component_type_.ClearToEmpty(); + _impl_.component_name_.ClearToEmpty(); + _impl_.component_model_.ClearToEmpty(); + _impl_.method_name_.ClearToEmpty(); + _impl_.file_extension_.ClearToEmpty(); + _impl_.session_id_.ClearToEmpty(); + _impl_.type_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DataCaptureMetadata::_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 component_type = 1 [json_name = "componentType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_component_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.DataCaptureMetadata.component_type")); + } else + goto handle_unusual; + continue; + // string component_name = 2 [json_name = "componentName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_component_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.DataCaptureMetadata.component_name")); + } else + goto handle_unusual; + continue; + // string component_model = 3 [json_name = "componentModel"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_component_model(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.DataCaptureMetadata.component_model")); + } else + goto handle_unusual; + continue; + // string method_name = 4 [json_name = "methodName"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_method_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.DataCaptureMetadata.method_name")); + } else + goto handle_unusual; + continue; + // .viam.app.datasync.v1.DataType type = 5 [json_name = "type"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::viam::app::datasync::v1::DataType>(val)); + } else + goto handle_unusual; + continue; + // map method_parameters = 6 [json_name = "methodParameters"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.method_parameters_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); + } else + goto handle_unusual; + continue; + // string file_extension = 7 [json_name = "fileExtension"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_file_extension(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.DataCaptureMetadata.file_extension")); + } else + goto handle_unusual; + continue; + // repeated string tags = 8 [json_name = "tags"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_tags(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.DataCaptureMetadata.tags")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); + } else + goto handle_unusual; + continue; + // string session_id = 9 [json_name = "sessionId"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + auto str = _internal_mutable_session_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.DataCaptureMetadata.session_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* DataCaptureMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.datasync.v1.DataCaptureMetadata) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string component_type = 1 [json_name = "componentType"]; + if (!this->_internal_component_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_type().data(), static_cast(this->_internal_component_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.DataCaptureMetadata.component_type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_component_type(), target); + } + + // string component_name = 2 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_name().data(), static_cast(this->_internal_component_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.DataCaptureMetadata.component_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_component_name(), target); + } + + // string component_model = 3 [json_name = "componentModel"]; + if (!this->_internal_component_model().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_model().data(), static_cast(this->_internal_component_model().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.DataCaptureMetadata.component_model"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_component_model(), target); + } + + // string method_name = 4 [json_name = "methodName"]; + if (!this->_internal_method_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_method_name().data(), static_cast(this->_internal_method_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.DataCaptureMetadata.method_name"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_method_name(), target); + } + + // .viam.app.datasync.v1.DataType type = 5 [json_name = "type"]; + if (this->_internal_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 5, this->_internal_type(), target); + } + + // map method_parameters = 6 [json_name = "methodParameters"]; + if (!this->_internal_method_parameters().empty()) { + using MapType = ::_pb::Map; + using WireHelper = DataCaptureMetadata_MethodParametersEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_method_parameters(); + 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.app.datasync.v1.DataCaptureMetadata.MethodParametersEntry.key"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(6, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(6, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } + } + + // string file_extension = 7 [json_name = "fileExtension"]; + if (!this->_internal_file_extension().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_file_extension().data(), static_cast(this->_internal_file_extension().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.DataCaptureMetadata.file_extension"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_file_extension(), target); + } + + // repeated string tags = 8 [json_name = "tags"]; + for (int i = 0, n = this->_internal_tags_size(); i < n; i++) { + const auto& s = this->_internal_tags(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.DataCaptureMetadata.tags"); + target = stream->WriteString(8, s, target); + } + + // string session_id = 9 [json_name = "sessionId"]; + if (!this->_internal_session_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_session_id().data(), static_cast(this->_internal_session_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.DataCaptureMetadata.session_id"); + target = stream->WriteStringMaybeAliased( + 9, this->_internal_session_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.datasync.v1.DataCaptureMetadata) + return target; +} + +size_t DataCaptureMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.datasync.v1.DataCaptureMetadata) + 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 method_parameters = 6 [json_name = "methodParameters"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_method_parameters_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >::const_iterator + it = this->_internal_method_parameters().begin(); + it != this->_internal_method_parameters().end(); ++it) { + total_size += DataCaptureMetadata_MethodParametersEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // repeated string tags = 8 [json_name = "tags"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.tags_.size()); + for (int i = 0, n = _impl_.tags_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.tags_.Get(i)); + } + + // string component_type = 1 [json_name = "componentType"]; + if (!this->_internal_component_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_type()); + } + + // string component_name = 2 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_name()); + } + + // string component_model = 3 [json_name = "componentModel"]; + if (!this->_internal_component_model().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_model()); + } + + // string method_name = 4 [json_name = "methodName"]; + if (!this->_internal_method_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_method_name()); + } + + // string file_extension = 7 [json_name = "fileExtension"]; + if (!this->_internal_file_extension().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_file_extension()); + } + + // string session_id = 9 [json_name = "sessionId"]; + if (!this->_internal_session_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_session_id()); + } + + // .viam.app.datasync.v1.DataType type = 5 [json_name = "type"]; + if (this->_internal_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DataCaptureMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DataCaptureMetadata::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DataCaptureMetadata::GetClassData() const { return &_class_data_; } + + +void DataCaptureMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.datasync.v1.DataCaptureMetadata) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.method_parameters_.MergeFrom(from._impl_.method_parameters_); + _this->_impl_.tags_.MergeFrom(from._impl_.tags_); + if (!from._internal_component_type().empty()) { + _this->_internal_set_component_type(from._internal_component_type()); + } + if (!from._internal_component_name().empty()) { + _this->_internal_set_component_name(from._internal_component_name()); + } + if (!from._internal_component_model().empty()) { + _this->_internal_set_component_model(from._internal_component_model()); + } + if (!from._internal_method_name().empty()) { + _this->_internal_set_method_name(from._internal_method_name()); + } + if (!from._internal_file_extension().empty()) { + _this->_internal_set_file_extension(from._internal_file_extension()); + } + if (!from._internal_session_id().empty()) { + _this->_internal_set_session_id(from._internal_session_id()); + } + if (from._internal_type() != 0) { + _this->_internal_set_type(from._internal_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DataCaptureMetadata::CopyFrom(const DataCaptureMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.datasync.v1.DataCaptureMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DataCaptureMetadata::IsInitialized() const { + return true; +} + +void DataCaptureMetadata::InternalSwap(DataCaptureMetadata* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.method_parameters_.InternalSwap(&other->_impl_.method_parameters_); + _impl_.tags_.InternalSwap(&other->_impl_.tags_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.component_type_, lhs_arena, + &other->_impl_.component_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.component_name_, lhs_arena, + &other->_impl_.component_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.component_model_, lhs_arena, + &other->_impl_.component_model_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.method_name_, lhs_arena, + &other->_impl_.method_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.file_extension_, lhs_arena, + &other->_impl_.file_extension_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.session_id_, lhs_arena, + &other->_impl_.session_id_, rhs_arena + ); + swap(_impl_.type_, other->_impl_.type_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DataCaptureMetadata::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_getter, &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_once, + file_level_metadata_app_2fdatasync_2fv1_2fdata_5fsync_2eproto[9]); +} + +// =================================================================== + +TabularCapture_MethodParametersEntry_DoNotUse::TabularCapture_MethodParametersEntry_DoNotUse() {} +TabularCapture_MethodParametersEntry_DoNotUse::TabularCapture_MethodParametersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void TabularCapture_MethodParametersEntry_DoNotUse::MergeFrom(const TabularCapture_MethodParametersEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata TabularCapture_MethodParametersEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_getter, &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_once, + file_level_metadata_app_2fdatasync_2fv1_2fdata_5fsync_2eproto[10]); +} + +// =================================================================== + +class TabularCapture::_Internal { + public: + static const ::viam::app::datasync::v1::CaptureInterval& interval(const TabularCapture* msg); +}; + +const ::viam::app::datasync::v1::CaptureInterval& +TabularCapture::_Internal::interval(const TabularCapture* msg) { + return *msg->_impl_.interval_; +} +void TabularCapture::clear_method_parameters() { + _impl_.method_parameters_.Clear(); +} +TabularCapture::TabularCapture(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &TabularCapture::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:viam.app.datasync.v1.TabularCapture) +} +TabularCapture::TabularCapture(const TabularCapture& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + TabularCapture* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.column_names_){from._impl_.column_names_} + , /*decltype(_impl_.method_parameters_)*/{} + , decltype(_impl_.tags_){from._impl_.tags_} + , decltype(_impl_.org_id_){} + , decltype(_impl_.robot_id_){} + , decltype(_impl_.part_id_){} + , decltype(_impl_.location_id_){} + , decltype(_impl_.component_name_){} + , decltype(_impl_.component_type_){} + , decltype(_impl_.component_model_){} + , decltype(_impl_.method_name_){} + , decltype(_impl_.blob_path_){} + , decltype(_impl_.file_id_){} + , decltype(_impl_.session_id_){} + , decltype(_impl_.mime_type_){} + , decltype(_impl_.interval_){nullptr} + , decltype(_impl_.file_size_bytes_){} + , decltype(_impl_.message_count_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.method_parameters_.MergeFrom(from._impl_.method_parameters_); + _impl_.org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + _this->_impl_.org_id_.Set(from._internal_org_id(), + _this->GetArenaForAllocation()); + } + _impl_.robot_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_robot_id().empty()) { + _this->_impl_.robot_id_.Set(from._internal_robot_id(), + _this->GetArenaForAllocation()); + } + _impl_.part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_part_id().empty()) { + _this->_impl_.part_id_.Set(from._internal_part_id(), + _this->GetArenaForAllocation()); + } + _impl_.location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + _this->_impl_.location_id_.Set(from._internal_location_id(), + _this->GetArenaForAllocation()); + } + _impl_.component_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_name().empty()) { + _this->_impl_.component_name_.Set(from._internal_component_name(), + _this->GetArenaForAllocation()); + } + _impl_.component_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_type().empty()) { + _this->_impl_.component_type_.Set(from._internal_component_type(), + _this->GetArenaForAllocation()); + } + _impl_.component_model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_model().empty()) { + _this->_impl_.component_model_.Set(from._internal_component_model(), + _this->GetArenaForAllocation()); + } + _impl_.method_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_method_name().empty()) { + _this->_impl_.method_name_.Set(from._internal_method_name(), + _this->GetArenaForAllocation()); + } + _impl_.blob_path_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.blob_path_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_blob_path().empty()) { + _this->_impl_.blob_path_.Set(from._internal_blob_path(), + _this->GetArenaForAllocation()); + } + _impl_.file_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_file_id().empty()) { + _this->_impl_.file_id_.Set(from._internal_file_id(), + _this->GetArenaForAllocation()); + } + _impl_.session_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.session_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_session_id().empty()) { + _this->_impl_.session_id_.Set(from._internal_session_id(), + _this->GetArenaForAllocation()); + } + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + _this->_impl_.mime_type_.Set(from._internal_mime_type(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_interval()) { + _this->_impl_.interval_ = new ::viam::app::datasync::v1::CaptureInterval(*from._impl_.interval_); + } + ::memcpy(&_impl_.file_size_bytes_, &from._impl_.file_size_bytes_, + static_cast(reinterpret_cast(&_impl_.message_count_) - + reinterpret_cast(&_impl_.file_size_bytes_)) + sizeof(_impl_.message_count_)); + // @@protoc_insertion_point(copy_constructor:viam.app.datasync.v1.TabularCapture) +} + +inline void TabularCapture::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.column_names_){arena} + , /*decltype(_impl_.method_parameters_)*/{::_pbi::ArenaInitialized(), arena} + , decltype(_impl_.tags_){arena} + , decltype(_impl_.org_id_){} + , decltype(_impl_.robot_id_){} + , decltype(_impl_.part_id_){} + , decltype(_impl_.location_id_){} + , decltype(_impl_.component_name_){} + , decltype(_impl_.component_type_){} + , decltype(_impl_.component_model_){} + , decltype(_impl_.method_name_){} + , decltype(_impl_.blob_path_){} + , decltype(_impl_.file_id_){} + , decltype(_impl_.session_id_){} + , decltype(_impl_.mime_type_){} + , decltype(_impl_.interval_){nullptr} + , decltype(_impl_.file_size_bytes_){int64_t{0}} + , decltype(_impl_.message_count_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.blob_path_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.blob_path_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.session_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.session_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +TabularCapture::~TabularCapture() { + // @@protoc_insertion_point(destructor:viam.app.datasync.v1.TabularCapture) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void TabularCapture::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.column_names_.~RepeatedPtrField(); + _impl_.method_parameters_.Destruct(); + _impl_.method_parameters_.~MapField(); + _impl_.tags_.~RepeatedPtrField(); + _impl_.org_id_.Destroy(); + _impl_.robot_id_.Destroy(); + _impl_.part_id_.Destroy(); + _impl_.location_id_.Destroy(); + _impl_.component_name_.Destroy(); + _impl_.component_type_.Destroy(); + _impl_.component_model_.Destroy(); + _impl_.method_name_.Destroy(); + _impl_.blob_path_.Destroy(); + _impl_.file_id_.Destroy(); + _impl_.session_id_.Destroy(); + _impl_.mime_type_.Destroy(); + if (this != internal_default_instance()) delete _impl_.interval_; +} + +void TabularCapture::ArenaDtor(void* object) { + TabularCapture* _this = reinterpret_cast< TabularCapture* >(object); + _this->_impl_.method_parameters_.Destruct(); +} +void TabularCapture::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void TabularCapture::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.datasync.v1.TabularCapture) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.column_names_.Clear(); + _impl_.method_parameters_.Clear(); + _impl_.tags_.Clear(); + _impl_.org_id_.ClearToEmpty(); + _impl_.robot_id_.ClearToEmpty(); + _impl_.part_id_.ClearToEmpty(); + _impl_.location_id_.ClearToEmpty(); + _impl_.component_name_.ClearToEmpty(); + _impl_.component_type_.ClearToEmpty(); + _impl_.component_model_.ClearToEmpty(); + _impl_.method_name_.ClearToEmpty(); + _impl_.blob_path_.ClearToEmpty(); + _impl_.file_id_.ClearToEmpty(); + _impl_.session_id_.ClearToEmpty(); + _impl_.mime_type_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.interval_ != nullptr) { + delete _impl_.interval_; + } + _impl_.interval_ = nullptr; + ::memset(&_impl_.file_size_bytes_, 0, static_cast( + reinterpret_cast(&_impl_.message_count_) - + reinterpret_cast(&_impl_.file_size_bytes_)) + sizeof(_impl_.message_count_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TabularCapture::_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) { + // .viam.app.datasync.v1.CaptureInterval interval = 1 [json_name = "interval", (.tagger.v1.tags) = "bson:\"interval\" json:\"interval\""]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_interval(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string org_id = 2 [json_name = "orgId", (.tagger.v1.tags) = "bson:\"org_id\" json:\"org_id\""]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.TabularCapture.org_id")); + } else + goto handle_unusual; + continue; + // string robot_id = 3 [json_name = "robotId", (.tagger.v1.tags) = "bson:\"robot_id\" json:\"robot_id\""]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_robot_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.TabularCapture.robot_id")); + } else + goto handle_unusual; + continue; + // string part_id = 4 [json_name = "partId", (.tagger.v1.tags) = "bson:\"part_id\" json:\"part_id\""]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_part_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.TabularCapture.part_id")); + } else + goto handle_unusual; + continue; + // string location_id = 5 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"location_id\""]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.TabularCapture.location_id")); + } else + goto handle_unusual; + continue; + // string component_name = 6 [json_name = "componentName", (.tagger.v1.tags) = "bson:\"component_name\" json:\"component_name\""]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_component_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.TabularCapture.component_name")); + } else + goto handle_unusual; + continue; + // string component_type = 7 [json_name = "componentType", (.tagger.v1.tags) = "bson:\"component_type\" json:\"component_type\""]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_component_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.TabularCapture.component_type")); + } else + goto handle_unusual; + continue; + // string component_model = 8 [json_name = "componentModel", (.tagger.v1.tags) = "bson:\"component_model\" json:\"component_model\""]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + auto str = _internal_mutable_component_model(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.TabularCapture.component_model")); + } else + goto handle_unusual; + continue; + // string method_name = 9 [json_name = "methodName", (.tagger.v1.tags) = "bson:\"method_name\" json:\"method_name\""]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + auto str = _internal_mutable_method_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.TabularCapture.method_name")); + } else + goto handle_unusual; + continue; + // string blob_path = 10 [json_name = "blobPath", (.tagger.v1.tags) = "bson:\"blob_path\" json:\"blob_path\""]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + auto str = _internal_mutable_blob_path(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.TabularCapture.blob_path")); + } else + goto handle_unusual; + continue; + // repeated string column_names = 11 [json_name = "columnNames", (.tagger.v1.tags) = "bson:\"column_names\" json:\"column_names\""]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_column_names(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.TabularCapture.column_names")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr)); + } else + goto handle_unusual; + continue; + // map method_parameters = 12 [json_name = "methodParameters", (.tagger.v1.tags) = "bson:\"method_parameters\" json:\"method_parameters\""]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.method_parameters_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<98>(ptr)); + } else + goto handle_unusual; + continue; + // string file_id = 13 [json_name = "fileId", (.tagger.v1.tags) = "bson:\"file_id\" json:\"file_id\""]; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { + auto str = _internal_mutable_file_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.TabularCapture.file_id")); + } else + goto handle_unusual; + continue; + // repeated string tags = 14 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; + case 14: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 114)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_tags(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.TabularCapture.tags")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<114>(ptr)); + } else + goto handle_unusual; + continue; + // int32 message_count = 15 [json_name = "messageCount", (.tagger.v1.tags) = "bson:\"message_count\" json:\"message_count\""]; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 120)) { + _impl_.message_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 file_size_bytes = 16 [json_name = "fileSizeBytes", (.tagger.v1.tags) = "bson:\"file_size_bytes\" json:\"file_size_bytes\""]; + case 16: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 128)) { + _impl_.file_size_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string session_id = 17 [json_name = "sessionId", (.tagger.v1.tags) = "bson:\"session_id\" json:\"session_id\""]; + case 17: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 138)) { + auto str = _internal_mutable_session_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.TabularCapture.session_id")); + } else + goto handle_unusual; + continue; + // string mime_type = 18 [json_name = "mimeType", (.tagger.v1.tags) = "bson:\"mime_type\" json:\"mime_type\""]; + case 18: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 146)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.TabularCapture.mime_type")); + } 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* TabularCapture::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.datasync.v1.TabularCapture) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.datasync.v1.CaptureInterval interval = 1 [json_name = "interval", (.tagger.v1.tags) = "bson:\"interval\" json:\"interval\""]; + if (this->_internal_has_interval()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::interval(this), + _Internal::interval(this).GetCachedSize(), target, stream); + } + + // string org_id = 2 [json_name = "orgId", (.tagger.v1.tags) = "bson:\"org_id\" json:\"org_id\""]; + if (!this->_internal_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.TabularCapture.org_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_org_id(), target); + } + + // string robot_id = 3 [json_name = "robotId", (.tagger.v1.tags) = "bson:\"robot_id\" json:\"robot_id\""]; + if (!this->_internal_robot_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_robot_id().data(), static_cast(this->_internal_robot_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.TabularCapture.robot_id"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_robot_id(), target); + } + + // string part_id = 4 [json_name = "partId", (.tagger.v1.tags) = "bson:\"part_id\" json:\"part_id\""]; + if (!this->_internal_part_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_part_id().data(), static_cast(this->_internal_part_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.TabularCapture.part_id"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_part_id(), target); + } + + // string location_id = 5 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"location_id\""]; + if (!this->_internal_location_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.TabularCapture.location_id"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_location_id(), target); + } + + // string component_name = 6 [json_name = "componentName", (.tagger.v1.tags) = "bson:\"component_name\" json:\"component_name\""]; + if (!this->_internal_component_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_name().data(), static_cast(this->_internal_component_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.TabularCapture.component_name"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_component_name(), target); + } + + // string component_type = 7 [json_name = "componentType", (.tagger.v1.tags) = "bson:\"component_type\" json:\"component_type\""]; + if (!this->_internal_component_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_type().data(), static_cast(this->_internal_component_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.TabularCapture.component_type"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_component_type(), target); + } + + // string component_model = 8 [json_name = "componentModel", (.tagger.v1.tags) = "bson:\"component_model\" json:\"component_model\""]; + if (!this->_internal_component_model().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_model().data(), static_cast(this->_internal_component_model().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.TabularCapture.component_model"); + target = stream->WriteStringMaybeAliased( + 8, this->_internal_component_model(), target); + } + + // string method_name = 9 [json_name = "methodName", (.tagger.v1.tags) = "bson:\"method_name\" json:\"method_name\""]; + if (!this->_internal_method_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_method_name().data(), static_cast(this->_internal_method_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.TabularCapture.method_name"); + target = stream->WriteStringMaybeAliased( + 9, this->_internal_method_name(), target); + } + + // string blob_path = 10 [json_name = "blobPath", (.tagger.v1.tags) = "bson:\"blob_path\" json:\"blob_path\""]; + if (!this->_internal_blob_path().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_blob_path().data(), static_cast(this->_internal_blob_path().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.TabularCapture.blob_path"); + target = stream->WriteStringMaybeAliased( + 10, this->_internal_blob_path(), target); + } + + // repeated string column_names = 11 [json_name = "columnNames", (.tagger.v1.tags) = "bson:\"column_names\" json:\"column_names\""]; + for (int i = 0, n = this->_internal_column_names_size(); i < n; i++) { + const auto& s = this->_internal_column_names(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.TabularCapture.column_names"); + target = stream->WriteString(11, s, target); + } + + // map method_parameters = 12 [json_name = "methodParameters", (.tagger.v1.tags) = "bson:\"method_parameters\" json:\"method_parameters\""]; + if (!this->_internal_method_parameters().empty()) { + using MapType = ::_pb::Map; + using WireHelper = TabularCapture_MethodParametersEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_method_parameters(); + 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.app.datasync.v1.TabularCapture.MethodParametersEntry.key"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(12, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(12, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } + } + + // string file_id = 13 [json_name = "fileId", (.tagger.v1.tags) = "bson:\"file_id\" json:\"file_id\""]; + if (!this->_internal_file_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_file_id().data(), static_cast(this->_internal_file_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.TabularCapture.file_id"); + target = stream->WriteStringMaybeAliased( + 13, this->_internal_file_id(), target); + } + + // repeated string tags = 14 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; + for (int i = 0, n = this->_internal_tags_size(); i < n; i++) { + const auto& s = this->_internal_tags(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.TabularCapture.tags"); + target = stream->WriteString(14, s, target); + } + + // int32 message_count = 15 [json_name = "messageCount", (.tagger.v1.tags) = "bson:\"message_count\" json:\"message_count\""]; + if (this->_internal_message_count() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(15, this->_internal_message_count(), target); + } + + // int64 file_size_bytes = 16 [json_name = "fileSizeBytes", (.tagger.v1.tags) = "bson:\"file_size_bytes\" json:\"file_size_bytes\""]; + if (this->_internal_file_size_bytes() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(16, this->_internal_file_size_bytes(), target); + } + + // string session_id = 17 [json_name = "sessionId", (.tagger.v1.tags) = "bson:\"session_id\" json:\"session_id\""]; + if (!this->_internal_session_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_session_id().data(), static_cast(this->_internal_session_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.TabularCapture.session_id"); + target = stream->WriteStringMaybeAliased( + 17, this->_internal_session_id(), target); + } + + // string mime_type = 18 [json_name = "mimeType", (.tagger.v1.tags) = "bson:\"mime_type\" json:\"mime_type\""]; + if (!this->_internal_mime_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.TabularCapture.mime_type"); + target = stream->WriteStringMaybeAliased( + 18, this->_internal_mime_type(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.datasync.v1.TabularCapture) + return target; +} + +size_t TabularCapture::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.datasync.v1.TabularCapture) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string column_names = 11 [json_name = "columnNames", (.tagger.v1.tags) = "bson:\"column_names\" json:\"column_names\""]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.column_names_.size()); + for (int i = 0, n = _impl_.column_names_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.column_names_.Get(i)); + } + + // map method_parameters = 12 [json_name = "methodParameters", (.tagger.v1.tags) = "bson:\"method_parameters\" json:\"method_parameters\""]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_method_parameters_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >::const_iterator + it = this->_internal_method_parameters().begin(); + it != this->_internal_method_parameters().end(); ++it) { + total_size += TabularCapture_MethodParametersEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // repeated string tags = 14 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.tags_.size()); + for (int i = 0, n = _impl_.tags_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.tags_.Get(i)); + } + + // string org_id = 2 [json_name = "orgId", (.tagger.v1.tags) = "bson:\"org_id\" json:\"org_id\""]; + if (!this->_internal_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); + } + + // string robot_id = 3 [json_name = "robotId", (.tagger.v1.tags) = "bson:\"robot_id\" json:\"robot_id\""]; + if (!this->_internal_robot_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_robot_id()); + } + + // string part_id = 4 [json_name = "partId", (.tagger.v1.tags) = "bson:\"part_id\" json:\"part_id\""]; + if (!this->_internal_part_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_part_id()); + } + + // string location_id = 5 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"location_id\""]; + if (!this->_internal_location_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); + } + + // string component_name = 6 [json_name = "componentName", (.tagger.v1.tags) = "bson:\"component_name\" json:\"component_name\""]; + if (!this->_internal_component_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_name()); + } + + // string component_type = 7 [json_name = "componentType", (.tagger.v1.tags) = "bson:\"component_type\" json:\"component_type\""]; + if (!this->_internal_component_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_type()); + } + + // string component_model = 8 [json_name = "componentModel", (.tagger.v1.tags) = "bson:\"component_model\" json:\"component_model\""]; + if (!this->_internal_component_model().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_model()); + } + + // string method_name = 9 [json_name = "methodName", (.tagger.v1.tags) = "bson:\"method_name\" json:\"method_name\""]; + if (!this->_internal_method_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_method_name()); + } + + // string blob_path = 10 [json_name = "blobPath", (.tagger.v1.tags) = "bson:\"blob_path\" json:\"blob_path\""]; + if (!this->_internal_blob_path().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_blob_path()); + } + + // string file_id = 13 [json_name = "fileId", (.tagger.v1.tags) = "bson:\"file_id\" json:\"file_id\""]; + if (!this->_internal_file_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_file_id()); + } + + // string session_id = 17 [json_name = "sessionId", (.tagger.v1.tags) = "bson:\"session_id\" json:\"session_id\""]; + if (!this->_internal_session_id().empty()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_session_id()); + } + + // string mime_type = 18 [json_name = "mimeType", (.tagger.v1.tags) = "bson:\"mime_type\" json:\"mime_type\""]; + if (!this->_internal_mime_type().empty()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); + } + + // .viam.app.datasync.v1.CaptureInterval interval = 1 [json_name = "interval", (.tagger.v1.tags) = "bson:\"interval\" json:\"interval\""]; + if (this->_internal_has_interval()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.interval_); + } + + // int64 file_size_bytes = 16 [json_name = "fileSizeBytes", (.tagger.v1.tags) = "bson:\"file_size_bytes\" json:\"file_size_bytes\""]; + if (this->_internal_file_size_bytes() != 0) { + total_size += 2 + + ::_pbi::WireFormatLite::Int64Size( + this->_internal_file_size_bytes()); + } + + // int32 message_count = 15 [json_name = "messageCount", (.tagger.v1.tags) = "bson:\"message_count\" json:\"message_count\""]; + if (this->_internal_message_count() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_message_count()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TabularCapture::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + TabularCapture::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TabularCapture::GetClassData() const { return &_class_data_; } + + +void TabularCapture::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.datasync.v1.TabularCapture) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.column_names_.MergeFrom(from._impl_.column_names_); + _this->_impl_.method_parameters_.MergeFrom(from._impl_.method_parameters_); + _this->_impl_.tags_.MergeFrom(from._impl_.tags_); + if (!from._internal_org_id().empty()) { + _this->_internal_set_org_id(from._internal_org_id()); + } + if (!from._internal_robot_id().empty()) { + _this->_internal_set_robot_id(from._internal_robot_id()); + } + if (!from._internal_part_id().empty()) { + _this->_internal_set_part_id(from._internal_part_id()); + } + if (!from._internal_location_id().empty()) { + _this->_internal_set_location_id(from._internal_location_id()); + } + if (!from._internal_component_name().empty()) { + _this->_internal_set_component_name(from._internal_component_name()); + } + if (!from._internal_component_type().empty()) { + _this->_internal_set_component_type(from._internal_component_type()); + } + if (!from._internal_component_model().empty()) { + _this->_internal_set_component_model(from._internal_component_model()); + } + if (!from._internal_method_name().empty()) { + _this->_internal_set_method_name(from._internal_method_name()); + } + if (!from._internal_blob_path().empty()) { + _this->_internal_set_blob_path(from._internal_blob_path()); + } + if (!from._internal_file_id().empty()) { + _this->_internal_set_file_id(from._internal_file_id()); + } + if (!from._internal_session_id().empty()) { + _this->_internal_set_session_id(from._internal_session_id()); + } + if (!from._internal_mime_type().empty()) { + _this->_internal_set_mime_type(from._internal_mime_type()); + } + if (from._internal_has_interval()) { + _this->_internal_mutable_interval()->::viam::app::datasync::v1::CaptureInterval::MergeFrom( + from._internal_interval()); + } + if (from._internal_file_size_bytes() != 0) { + _this->_internal_set_file_size_bytes(from._internal_file_size_bytes()); + } + if (from._internal_message_count() != 0) { + _this->_internal_set_message_count(from._internal_message_count()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void TabularCapture::CopyFrom(const TabularCapture& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.datasync.v1.TabularCapture) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TabularCapture::IsInitialized() const { + return true; +} + +void TabularCapture::InternalSwap(TabularCapture* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.column_names_.InternalSwap(&other->_impl_.column_names_); + _impl_.method_parameters_.InternalSwap(&other->_impl_.method_parameters_); + _impl_.tags_.InternalSwap(&other->_impl_.tags_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.org_id_, lhs_arena, + &other->_impl_.org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.robot_id_, lhs_arena, + &other->_impl_.robot_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.part_id_, lhs_arena, + &other->_impl_.part_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.location_id_, lhs_arena, + &other->_impl_.location_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.component_name_, lhs_arena, + &other->_impl_.component_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.component_type_, lhs_arena, + &other->_impl_.component_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.component_model_, lhs_arena, + &other->_impl_.component_model_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.method_name_, lhs_arena, + &other->_impl_.method_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.blob_path_, lhs_arena, + &other->_impl_.blob_path_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.file_id_, lhs_arena, + &other->_impl_.file_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.session_id_, lhs_arena, + &other->_impl_.session_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.mime_type_, lhs_arena, + &other->_impl_.mime_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(TabularCapture, _impl_.message_count_) + + sizeof(TabularCapture::_impl_.message_count_) + - PROTOBUF_FIELD_OFFSET(TabularCapture, _impl_.interval_)>( + reinterpret_cast(&_impl_.interval_), + reinterpret_cast(&other->_impl_.interval_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TabularCapture::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_getter, &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_once, + file_level_metadata_app_2fdatasync_2fv1_2fdata_5fsync_2eproto[11]); +} + +// =================================================================== + +BinaryCapture_MethodParametersEntry_DoNotUse::BinaryCapture_MethodParametersEntry_DoNotUse() {} +BinaryCapture_MethodParametersEntry_DoNotUse::BinaryCapture_MethodParametersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void BinaryCapture_MethodParametersEntry_DoNotUse::MergeFrom(const BinaryCapture_MethodParametersEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata BinaryCapture_MethodParametersEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_getter, &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_once, + file_level_metadata_app_2fdatasync_2fv1_2fdata_5fsync_2eproto[12]); +} + +// =================================================================== + +class BinaryCapture::_Internal { + public: + static const ::viam::app::datasync::v1::CaptureInterval& interval(const BinaryCapture* msg); +}; + +const ::viam::app::datasync::v1::CaptureInterval& +BinaryCapture::_Internal::interval(const BinaryCapture* msg) { + return *msg->_impl_.interval_; +} +void BinaryCapture::clear_method_parameters() { + _impl_.method_parameters_.Clear(); +} +BinaryCapture::BinaryCapture(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &BinaryCapture::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:viam.app.datasync.v1.BinaryCapture) +} +BinaryCapture::BinaryCapture(const BinaryCapture& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + BinaryCapture* const _this = this; (void)_this; + new (&_impl_) Impl_{ + /*decltype(_impl_.method_parameters_)*/{} + , decltype(_impl_.tags_){from._impl_.tags_} + , decltype(_impl_.org_id_){} + , decltype(_impl_.robot_id_){} + , decltype(_impl_.part_id_){} + , decltype(_impl_.location_id_){} + , decltype(_impl_.component_name_){} + , decltype(_impl_.component_type_){} + , decltype(_impl_.component_model_){} + , decltype(_impl_.method_name_){} + , decltype(_impl_.blob_path_){} + , decltype(_impl_.file_id_){} + , decltype(_impl_.session_id_){} + , decltype(_impl_.mime_type_){} + , decltype(_impl_.file_name_){} + , decltype(_impl_.interval_){nullptr} + , decltype(_impl_.file_size_bytes_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.method_parameters_.MergeFrom(from._impl_.method_parameters_); + _impl_.org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + _this->_impl_.org_id_.Set(from._internal_org_id(), + _this->GetArenaForAllocation()); + } + _impl_.robot_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_robot_id().empty()) { + _this->_impl_.robot_id_.Set(from._internal_robot_id(), + _this->GetArenaForAllocation()); + } + _impl_.part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_part_id().empty()) { + _this->_impl_.part_id_.Set(from._internal_part_id(), + _this->GetArenaForAllocation()); + } + _impl_.location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + _this->_impl_.location_id_.Set(from._internal_location_id(), + _this->GetArenaForAllocation()); + } + _impl_.component_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_name().empty()) { + _this->_impl_.component_name_.Set(from._internal_component_name(), + _this->GetArenaForAllocation()); + } + _impl_.component_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_type().empty()) { + _this->_impl_.component_type_.Set(from._internal_component_type(), + _this->GetArenaForAllocation()); + } + _impl_.component_model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_model().empty()) { + _this->_impl_.component_model_.Set(from._internal_component_model(), + _this->GetArenaForAllocation()); + } + _impl_.method_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_method_name().empty()) { + _this->_impl_.method_name_.Set(from._internal_method_name(), + _this->GetArenaForAllocation()); + } + _impl_.blob_path_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.blob_path_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_blob_path().empty()) { + _this->_impl_.blob_path_.Set(from._internal_blob_path(), + _this->GetArenaForAllocation()); + } + _impl_.file_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_file_id().empty()) { + _this->_impl_.file_id_.Set(from._internal_file_id(), + _this->GetArenaForAllocation()); + } + _impl_.session_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.session_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_session_id().empty()) { + _this->_impl_.session_id_.Set(from._internal_session_id(), + _this->GetArenaForAllocation()); + } + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + _this->_impl_.mime_type_.Set(from._internal_mime_type(), + _this->GetArenaForAllocation()); + } + _impl_.file_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_file_name().empty()) { + _this->_impl_.file_name_.Set(from._internal_file_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_interval()) { + _this->_impl_.interval_ = new ::viam::app::datasync::v1::CaptureInterval(*from._impl_.interval_); + } + _this->_impl_.file_size_bytes_ = from._impl_.file_size_bytes_; + // @@protoc_insertion_point(copy_constructor:viam.app.datasync.v1.BinaryCapture) +} + +inline void BinaryCapture::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + /*decltype(_impl_.method_parameters_)*/{::_pbi::ArenaInitialized(), arena} + , decltype(_impl_.tags_){arena} + , decltype(_impl_.org_id_){} + , decltype(_impl_.robot_id_){} + , decltype(_impl_.part_id_){} + , decltype(_impl_.location_id_){} + , decltype(_impl_.component_name_){} + , decltype(_impl_.component_type_){} + , decltype(_impl_.component_model_){} + , decltype(_impl_.method_name_){} + , decltype(_impl_.blob_path_){} + , decltype(_impl_.file_id_){} + , decltype(_impl_.session_id_){} + , decltype(_impl_.mime_type_){} + , decltype(_impl_.file_name_){} + , decltype(_impl_.interval_){nullptr} + , decltype(_impl_.file_size_bytes_){int64_t{0}} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.component_model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.blob_path_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.blob_path_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.session_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.session_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +BinaryCapture::~BinaryCapture() { + // @@protoc_insertion_point(destructor:viam.app.datasync.v1.BinaryCapture) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void BinaryCapture::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.method_parameters_.Destruct(); + _impl_.method_parameters_.~MapField(); + _impl_.tags_.~RepeatedPtrField(); + _impl_.org_id_.Destroy(); + _impl_.robot_id_.Destroy(); + _impl_.part_id_.Destroy(); + _impl_.location_id_.Destroy(); + _impl_.component_name_.Destroy(); + _impl_.component_type_.Destroy(); + _impl_.component_model_.Destroy(); + _impl_.method_name_.Destroy(); + _impl_.blob_path_.Destroy(); + _impl_.file_id_.Destroy(); + _impl_.session_id_.Destroy(); + _impl_.mime_type_.Destroy(); + _impl_.file_name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.interval_; +} + +void BinaryCapture::ArenaDtor(void* object) { + BinaryCapture* _this = reinterpret_cast< BinaryCapture* >(object); + _this->_impl_.method_parameters_.Destruct(); +} +void BinaryCapture::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void BinaryCapture::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.datasync.v1.BinaryCapture) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.method_parameters_.Clear(); + _impl_.tags_.Clear(); + _impl_.org_id_.ClearToEmpty(); + _impl_.robot_id_.ClearToEmpty(); + _impl_.part_id_.ClearToEmpty(); + _impl_.location_id_.ClearToEmpty(); + _impl_.component_name_.ClearToEmpty(); + _impl_.component_type_.ClearToEmpty(); + _impl_.component_model_.ClearToEmpty(); + _impl_.method_name_.ClearToEmpty(); + _impl_.blob_path_.ClearToEmpty(); + _impl_.file_id_.ClearToEmpty(); + _impl_.session_id_.ClearToEmpty(); + _impl_.mime_type_.ClearToEmpty(); + _impl_.file_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.interval_ != nullptr) { + delete _impl_.interval_; + } + _impl_.interval_ = nullptr; + _impl_.file_size_bytes_ = int64_t{0}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* BinaryCapture::_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) { + // .viam.app.datasync.v1.CaptureInterval interval = 1 [json_name = "interval", (.tagger.v1.tags) = "bson:\"interval\" json:\"interval\""]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_interval(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string org_id = 2 [json_name = "orgId", (.tagger.v1.tags) = "bson:\"org_id\" json:\"org_id\""]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.BinaryCapture.org_id")); + } else + goto handle_unusual; + continue; + // string robot_id = 3 [json_name = "robotId", (.tagger.v1.tags) = "bson:\"robot_id\" json:\"robot_id\""]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_robot_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.BinaryCapture.robot_id")); + } else + goto handle_unusual; + continue; + // string part_id = 4 [json_name = "partId", (.tagger.v1.tags) = "bson:\"part_id\" json:\"part_id\""]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_part_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.BinaryCapture.part_id")); + } else + goto handle_unusual; + continue; + // string location_id = 5 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"location_id\""]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.BinaryCapture.location_id")); + } else + goto handle_unusual; + continue; + // string component_name = 6 [json_name = "componentName", (.tagger.v1.tags) = "bson:\"component_name\" json:\"component_name\""]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_component_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.BinaryCapture.component_name")); + } else + goto handle_unusual; + continue; + // string component_type = 7 [json_name = "componentType", (.tagger.v1.tags) = "bson:\"component_type\" json:\"component_type\""]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_component_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.BinaryCapture.component_type")); + } else + goto handle_unusual; + continue; + // string component_model = 8 [json_name = "componentModel", (.tagger.v1.tags) = "bson:\"component_model\" json:\"component_model\""]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + auto str = _internal_mutable_component_model(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.BinaryCapture.component_model")); + } else + goto handle_unusual; + continue; + // string method_name = 9 [json_name = "methodName", (.tagger.v1.tags) = "bson:\"method_name\" json:\"method_name\""]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + auto str = _internal_mutable_method_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.BinaryCapture.method_name")); + } else + goto handle_unusual; + continue; + // string blob_path = 10 [json_name = "blobPath", (.tagger.v1.tags) = "bson:\"blob_path\" json:\"blob_path\""]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + auto str = _internal_mutable_blob_path(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.BinaryCapture.blob_path")); + } else + goto handle_unusual; + continue; + // map method_parameters = 11 [json_name = "methodParameters", (.tagger.v1.tags) = "bson:\"method_parameters\" json:\"method_parameters\""]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.method_parameters_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr)); + } else + goto handle_unusual; + continue; + // string file_id = 12 [json_name = "fileId", (.tagger.v1.tags) = "bson:\"file_id\" json:\"file_id\""]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + auto str = _internal_mutable_file_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.BinaryCapture.file_id")); + } else + goto handle_unusual; + continue; + // repeated string tags = 13 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_tags(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.BinaryCapture.tags")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<106>(ptr)); + } else + goto handle_unusual; + continue; + // int64 file_size_bytes = 14 [json_name = "fileSizeBytes", (.tagger.v1.tags) = "bson:\"file_size_bytes\" json:\"file_size_bytes\""]; + case 14: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 112)) { + _impl_.file_size_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string session_id = 15 [json_name = "sessionId", (.tagger.v1.tags) = "bson:\"session_id\" json:\"session_id\""]; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { + auto str = _internal_mutable_session_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.BinaryCapture.session_id")); + } else + goto handle_unusual; + continue; + // string mime_type = 16 [json_name = "mimeType", (.tagger.v1.tags) = "bson:\"mime_type\" json:\"mime_type\""]; + case 16: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 130)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.BinaryCapture.mime_type")); + } else + goto handle_unusual; + continue; + // string file_name = 17 [json_name = "fileName", (.tagger.v1.tags) = "bson:\"file_name\" json:\"file_name\""]; + case 17: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 138)) { + auto str = _internal_mutable_file_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.datasync.v1.BinaryCapture.file_name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* BinaryCapture::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.datasync.v1.BinaryCapture) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.datasync.v1.CaptureInterval interval = 1 [json_name = "interval", (.tagger.v1.tags) = "bson:\"interval\" json:\"interval\""]; + if (this->_internal_has_interval()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::interval(this), + _Internal::interval(this).GetCachedSize(), target, stream); + } + + // string org_id = 2 [json_name = "orgId", (.tagger.v1.tags) = "bson:\"org_id\" json:\"org_id\""]; + if (!this->_internal_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.BinaryCapture.org_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_org_id(), target); + } + + // string robot_id = 3 [json_name = "robotId", (.tagger.v1.tags) = "bson:\"robot_id\" json:\"robot_id\""]; + if (!this->_internal_robot_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_robot_id().data(), static_cast(this->_internal_robot_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.BinaryCapture.robot_id"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_robot_id(), target); + } + + // string part_id = 4 [json_name = "partId", (.tagger.v1.tags) = "bson:\"part_id\" json:\"part_id\""]; + if (!this->_internal_part_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_part_id().data(), static_cast(this->_internal_part_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.BinaryCapture.part_id"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_part_id(), target); + } + + // string location_id = 5 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"location_id\""]; + if (!this->_internal_location_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.BinaryCapture.location_id"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_location_id(), target); + } + + // string component_name = 6 [json_name = "componentName", (.tagger.v1.tags) = "bson:\"component_name\" json:\"component_name\""]; + if (!this->_internal_component_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_name().data(), static_cast(this->_internal_component_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.BinaryCapture.component_name"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_component_name(), target); + } + + // string component_type = 7 [json_name = "componentType", (.tagger.v1.tags) = "bson:\"component_type\" json:\"component_type\""]; + if (!this->_internal_component_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_type().data(), static_cast(this->_internal_component_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.BinaryCapture.component_type"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_component_type(), target); + } + + // string component_model = 8 [json_name = "componentModel", (.tagger.v1.tags) = "bson:\"component_model\" json:\"component_model\""]; + if (!this->_internal_component_model().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_model().data(), static_cast(this->_internal_component_model().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.BinaryCapture.component_model"); + target = stream->WriteStringMaybeAliased( + 8, this->_internal_component_model(), target); + } + + // string method_name = 9 [json_name = "methodName", (.tagger.v1.tags) = "bson:\"method_name\" json:\"method_name\""]; + if (!this->_internal_method_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_method_name().data(), static_cast(this->_internal_method_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.BinaryCapture.method_name"); + target = stream->WriteStringMaybeAliased( + 9, this->_internal_method_name(), target); + } + + // string blob_path = 10 [json_name = "blobPath", (.tagger.v1.tags) = "bson:\"blob_path\" json:\"blob_path\""]; + if (!this->_internal_blob_path().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_blob_path().data(), static_cast(this->_internal_blob_path().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.BinaryCapture.blob_path"); + target = stream->WriteStringMaybeAliased( + 10, this->_internal_blob_path(), target); + } + + // map method_parameters = 11 [json_name = "methodParameters", (.tagger.v1.tags) = "bson:\"method_parameters\" json:\"method_parameters\""]; + if (!this->_internal_method_parameters().empty()) { + using MapType = ::_pb::Map; + using WireHelper = BinaryCapture_MethodParametersEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_method_parameters(); + 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.app.datasync.v1.BinaryCapture.MethodParametersEntry.key"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(11, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(11, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } + } + + // string file_id = 12 [json_name = "fileId", (.tagger.v1.tags) = "bson:\"file_id\" json:\"file_id\""]; + if (!this->_internal_file_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_file_id().data(), static_cast(this->_internal_file_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.BinaryCapture.file_id"); + target = stream->WriteStringMaybeAliased( + 12, this->_internal_file_id(), target); + } + + // repeated string tags = 13 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; + for (int i = 0, n = this->_internal_tags_size(); i < n; i++) { + const auto& s = this->_internal_tags(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.BinaryCapture.tags"); + target = stream->WriteString(13, s, target); + } + + // int64 file_size_bytes = 14 [json_name = "fileSizeBytes", (.tagger.v1.tags) = "bson:\"file_size_bytes\" json:\"file_size_bytes\""]; + if (this->_internal_file_size_bytes() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(14, this->_internal_file_size_bytes(), target); + } + + // string session_id = 15 [json_name = "sessionId", (.tagger.v1.tags) = "bson:\"session_id\" json:\"session_id\""]; + if (!this->_internal_session_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_session_id().data(), static_cast(this->_internal_session_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.BinaryCapture.session_id"); + target = stream->WriteStringMaybeAliased( + 15, this->_internal_session_id(), target); + } + + // string mime_type = 16 [json_name = "mimeType", (.tagger.v1.tags) = "bson:\"mime_type\" json:\"mime_type\""]; + if (!this->_internal_mime_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.BinaryCapture.mime_type"); + target = stream->WriteStringMaybeAliased( + 16, this->_internal_mime_type(), target); + } + + // string file_name = 17 [json_name = "fileName", (.tagger.v1.tags) = "bson:\"file_name\" json:\"file_name\""]; + if (!this->_internal_file_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_file_name().data(), static_cast(this->_internal_file_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.datasync.v1.BinaryCapture.file_name"); + target = stream->WriteStringMaybeAliased( + 17, this->_internal_file_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.datasync.v1.BinaryCapture) + return target; +} + +size_t BinaryCapture::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.datasync.v1.BinaryCapture) + 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 method_parameters = 11 [json_name = "methodParameters", (.tagger.v1.tags) = "bson:\"method_parameters\" json:\"method_parameters\""]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_method_parameters_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >::const_iterator + it = this->_internal_method_parameters().begin(); + it != this->_internal_method_parameters().end(); ++it) { + total_size += BinaryCapture_MethodParametersEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // repeated string tags = 13 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.tags_.size()); + for (int i = 0, n = _impl_.tags_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.tags_.Get(i)); + } + + // string org_id = 2 [json_name = "orgId", (.tagger.v1.tags) = "bson:\"org_id\" json:\"org_id\""]; + if (!this->_internal_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); + } + + // string robot_id = 3 [json_name = "robotId", (.tagger.v1.tags) = "bson:\"robot_id\" json:\"robot_id\""]; + if (!this->_internal_robot_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_robot_id()); + } + + // string part_id = 4 [json_name = "partId", (.tagger.v1.tags) = "bson:\"part_id\" json:\"part_id\""]; + if (!this->_internal_part_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_part_id()); + } + + // string location_id = 5 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"location_id\""]; + if (!this->_internal_location_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); + } + + // string component_name = 6 [json_name = "componentName", (.tagger.v1.tags) = "bson:\"component_name\" json:\"component_name\""]; + if (!this->_internal_component_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_name()); + } + + // string component_type = 7 [json_name = "componentType", (.tagger.v1.tags) = "bson:\"component_type\" json:\"component_type\""]; + if (!this->_internal_component_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_type()); + } + + // string component_model = 8 [json_name = "componentModel", (.tagger.v1.tags) = "bson:\"component_model\" json:\"component_model\""]; + if (!this->_internal_component_model().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_model()); + } + + // string method_name = 9 [json_name = "methodName", (.tagger.v1.tags) = "bson:\"method_name\" json:\"method_name\""]; + if (!this->_internal_method_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_method_name()); + } + + // string blob_path = 10 [json_name = "blobPath", (.tagger.v1.tags) = "bson:\"blob_path\" json:\"blob_path\""]; + if (!this->_internal_blob_path().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_blob_path()); + } + + // string file_id = 12 [json_name = "fileId", (.tagger.v1.tags) = "bson:\"file_id\" json:\"file_id\""]; + if (!this->_internal_file_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_file_id()); + } + + // string session_id = 15 [json_name = "sessionId", (.tagger.v1.tags) = "bson:\"session_id\" json:\"session_id\""]; + if (!this->_internal_session_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_session_id()); + } + + // string mime_type = 16 [json_name = "mimeType", (.tagger.v1.tags) = "bson:\"mime_type\" json:\"mime_type\""]; + if (!this->_internal_mime_type().empty()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); + } + + // string file_name = 17 [json_name = "fileName", (.tagger.v1.tags) = "bson:\"file_name\" json:\"file_name\""]; + if (!this->_internal_file_name().empty()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_file_name()); + } + + // .viam.app.datasync.v1.CaptureInterval interval = 1 [json_name = "interval", (.tagger.v1.tags) = "bson:\"interval\" json:\"interval\""]; + if (this->_internal_has_interval()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.interval_); + } + + // int64 file_size_bytes = 14 [json_name = "fileSizeBytes", (.tagger.v1.tags) = "bson:\"file_size_bytes\" json:\"file_size_bytes\""]; + if (this->_internal_file_size_bytes() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_file_size_bytes()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BinaryCapture::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + BinaryCapture::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BinaryCapture::GetClassData() const { return &_class_data_; } + + +void BinaryCapture::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.datasync.v1.BinaryCapture) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.method_parameters_.MergeFrom(from._impl_.method_parameters_); + _this->_impl_.tags_.MergeFrom(from._impl_.tags_); + if (!from._internal_org_id().empty()) { + _this->_internal_set_org_id(from._internal_org_id()); + } + if (!from._internal_robot_id().empty()) { + _this->_internal_set_robot_id(from._internal_robot_id()); + } + if (!from._internal_part_id().empty()) { + _this->_internal_set_part_id(from._internal_part_id()); + } + if (!from._internal_location_id().empty()) { + _this->_internal_set_location_id(from._internal_location_id()); + } + if (!from._internal_component_name().empty()) { + _this->_internal_set_component_name(from._internal_component_name()); + } + if (!from._internal_component_type().empty()) { + _this->_internal_set_component_type(from._internal_component_type()); + } + if (!from._internal_component_model().empty()) { + _this->_internal_set_component_model(from._internal_component_model()); + } + if (!from._internal_method_name().empty()) { + _this->_internal_set_method_name(from._internal_method_name()); + } + if (!from._internal_blob_path().empty()) { + _this->_internal_set_blob_path(from._internal_blob_path()); + } + if (!from._internal_file_id().empty()) { + _this->_internal_set_file_id(from._internal_file_id()); + } + if (!from._internal_session_id().empty()) { + _this->_internal_set_session_id(from._internal_session_id()); + } + if (!from._internal_mime_type().empty()) { + _this->_internal_set_mime_type(from._internal_mime_type()); + } + if (!from._internal_file_name().empty()) { + _this->_internal_set_file_name(from._internal_file_name()); + } + if (from._internal_has_interval()) { + _this->_internal_mutable_interval()->::viam::app::datasync::v1::CaptureInterval::MergeFrom( + from._internal_interval()); + } + if (from._internal_file_size_bytes() != 0) { + _this->_internal_set_file_size_bytes(from._internal_file_size_bytes()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void BinaryCapture::CopyFrom(const BinaryCapture& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.datasync.v1.BinaryCapture) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BinaryCapture::IsInitialized() const { + return true; +} + +void BinaryCapture::InternalSwap(BinaryCapture* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.method_parameters_.InternalSwap(&other->_impl_.method_parameters_); + _impl_.tags_.InternalSwap(&other->_impl_.tags_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.org_id_, lhs_arena, + &other->_impl_.org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.robot_id_, lhs_arena, + &other->_impl_.robot_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.part_id_, lhs_arena, + &other->_impl_.part_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.location_id_, lhs_arena, + &other->_impl_.location_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.component_name_, lhs_arena, + &other->_impl_.component_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.component_type_, lhs_arena, + &other->_impl_.component_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.component_model_, lhs_arena, + &other->_impl_.component_model_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.method_name_, lhs_arena, + &other->_impl_.method_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.blob_path_, lhs_arena, + &other->_impl_.blob_path_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.file_id_, lhs_arena, + &other->_impl_.file_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.session_id_, lhs_arena, + &other->_impl_.session_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.mime_type_, lhs_arena, + &other->_impl_.mime_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.file_name_, lhs_arena, + &other->_impl_.file_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(BinaryCapture, _impl_.file_size_bytes_) + + sizeof(BinaryCapture::_impl_.file_size_bytes_) + - PROTOBUF_FIELD_OFFSET(BinaryCapture, _impl_.interval_)>( + reinterpret_cast(&_impl_.interval_), + reinterpret_cast(&other->_impl_.interval_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata BinaryCapture::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_getter, &descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto_once, + file_level_metadata_app_2fdatasync_2fv1_2fdata_5fsync_2eproto[13]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace datasync +} // namespace app +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::app::datasync::v1::SensorMetadata* +Arena::CreateMaybeMessage< ::viam::app::datasync::v1::SensorMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::datasync::v1::SensorMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::datasync::v1::SensorData* +Arena::CreateMaybeMessage< ::viam::app::datasync::v1::SensorData >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::datasync::v1::SensorData >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::datasync::v1::FileData* +Arena::CreateMaybeMessage< ::viam::app::datasync::v1::FileData >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::datasync::v1::FileData >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::datasync::v1::UploadMetadata_MethodParametersEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::app::datasync::v1::UploadMetadata_MethodParametersEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::datasync::v1::UploadMetadata_MethodParametersEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::datasync::v1::UploadMetadata* +Arena::CreateMaybeMessage< ::viam::app::datasync::v1::UploadMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::datasync::v1::UploadMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::datasync::v1::UploadRequest* +Arena::CreateMaybeMessage< ::viam::app::datasync::v1::UploadRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::datasync::v1::UploadRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::datasync::v1::UploadResponse* +Arena::CreateMaybeMessage< ::viam::app::datasync::v1::UploadResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::datasync::v1::UploadResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::datasync::v1::CaptureInterval* +Arena::CreateMaybeMessage< ::viam::app::datasync::v1::CaptureInterval >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::datasync::v1::CaptureInterval >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::datasync::v1::DataCaptureMetadata_MethodParametersEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::app::datasync::v1::DataCaptureMetadata_MethodParametersEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::datasync::v1::DataCaptureMetadata_MethodParametersEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::datasync::v1::DataCaptureMetadata* +Arena::CreateMaybeMessage< ::viam::app::datasync::v1::DataCaptureMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::datasync::v1::DataCaptureMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::datasync::v1::TabularCapture_MethodParametersEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::app::datasync::v1::TabularCapture_MethodParametersEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::datasync::v1::TabularCapture_MethodParametersEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::datasync::v1::TabularCapture* +Arena::CreateMaybeMessage< ::viam::app::datasync::v1::TabularCapture >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::datasync::v1::TabularCapture >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::datasync::v1::BinaryCapture_MethodParametersEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::app::datasync::v1::BinaryCapture_MethodParametersEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::datasync::v1::BinaryCapture_MethodParametersEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::datasync::v1::BinaryCapture* +Arena::CreateMaybeMessage< ::viam::app::datasync::v1::BinaryCapture >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::datasync::v1::BinaryCapture >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/app/datasync/v1/data_sync.pb.h b/src/gen/app/datasync/v1/data_sync.pb.h new file mode 100644 index 000000000..f1642ea0a --- /dev/null +++ b/src/gen/app/datasync/v1/data_sync.pb.h @@ -0,0 +1,6544 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: app/datasync/v1/data_sync.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_app_2fdatasync_2fv1_2fdata_5fsync_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_app_2fdatasync_2fv1_2fdata_5fsync_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 // IWYU pragma: export +#include +#include +#include +#include +#include +#include +#include +#include "tagger/v1/tagger.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_app_2fdatasync_2fv1_2fdata_5fsync_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_app_2fdatasync_2fv1_2fdata_5fsync_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_app_2fdatasync_2fv1_2fdata_5fsync_2eproto; +namespace viam { +namespace app { +namespace datasync { +namespace v1 { +class BinaryCapture; +struct BinaryCaptureDefaultTypeInternal; +extern BinaryCaptureDefaultTypeInternal _BinaryCapture_default_instance_; +class BinaryCapture_MethodParametersEntry_DoNotUse; +struct BinaryCapture_MethodParametersEntry_DoNotUseDefaultTypeInternal; +extern BinaryCapture_MethodParametersEntry_DoNotUseDefaultTypeInternal _BinaryCapture_MethodParametersEntry_DoNotUse_default_instance_; +class CaptureInterval; +struct CaptureIntervalDefaultTypeInternal; +extern CaptureIntervalDefaultTypeInternal _CaptureInterval_default_instance_; +class DataCaptureMetadata; +struct DataCaptureMetadataDefaultTypeInternal; +extern DataCaptureMetadataDefaultTypeInternal _DataCaptureMetadata_default_instance_; +class DataCaptureMetadata_MethodParametersEntry_DoNotUse; +struct DataCaptureMetadata_MethodParametersEntry_DoNotUseDefaultTypeInternal; +extern DataCaptureMetadata_MethodParametersEntry_DoNotUseDefaultTypeInternal _DataCaptureMetadata_MethodParametersEntry_DoNotUse_default_instance_; +class FileData; +struct FileDataDefaultTypeInternal; +extern FileDataDefaultTypeInternal _FileData_default_instance_; +class SensorData; +struct SensorDataDefaultTypeInternal; +extern SensorDataDefaultTypeInternal _SensorData_default_instance_; +class SensorMetadata; +struct SensorMetadataDefaultTypeInternal; +extern SensorMetadataDefaultTypeInternal _SensorMetadata_default_instance_; +class TabularCapture; +struct TabularCaptureDefaultTypeInternal; +extern TabularCaptureDefaultTypeInternal _TabularCapture_default_instance_; +class TabularCapture_MethodParametersEntry_DoNotUse; +struct TabularCapture_MethodParametersEntry_DoNotUseDefaultTypeInternal; +extern TabularCapture_MethodParametersEntry_DoNotUseDefaultTypeInternal _TabularCapture_MethodParametersEntry_DoNotUse_default_instance_; +class UploadMetadata; +struct UploadMetadataDefaultTypeInternal; +extern UploadMetadataDefaultTypeInternal _UploadMetadata_default_instance_; +class UploadMetadata_MethodParametersEntry_DoNotUse; +struct UploadMetadata_MethodParametersEntry_DoNotUseDefaultTypeInternal; +extern UploadMetadata_MethodParametersEntry_DoNotUseDefaultTypeInternal _UploadMetadata_MethodParametersEntry_DoNotUse_default_instance_; +class UploadRequest; +struct UploadRequestDefaultTypeInternal; +extern UploadRequestDefaultTypeInternal _UploadRequest_default_instance_; +class UploadResponse; +struct UploadResponseDefaultTypeInternal; +extern UploadResponseDefaultTypeInternal _UploadResponse_default_instance_; +} // namespace v1 +} // namespace datasync +} // namespace app +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::app::datasync::v1::BinaryCapture* Arena::CreateMaybeMessage<::viam::app::datasync::v1::BinaryCapture>(Arena*); +template<> ::viam::app::datasync::v1::BinaryCapture_MethodParametersEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::app::datasync::v1::BinaryCapture_MethodParametersEntry_DoNotUse>(Arena*); +template<> ::viam::app::datasync::v1::CaptureInterval* Arena::CreateMaybeMessage<::viam::app::datasync::v1::CaptureInterval>(Arena*); +template<> ::viam::app::datasync::v1::DataCaptureMetadata* Arena::CreateMaybeMessage<::viam::app::datasync::v1::DataCaptureMetadata>(Arena*); +template<> ::viam::app::datasync::v1::DataCaptureMetadata_MethodParametersEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::app::datasync::v1::DataCaptureMetadata_MethodParametersEntry_DoNotUse>(Arena*); +template<> ::viam::app::datasync::v1::FileData* Arena::CreateMaybeMessage<::viam::app::datasync::v1::FileData>(Arena*); +template<> ::viam::app::datasync::v1::SensorData* Arena::CreateMaybeMessage<::viam::app::datasync::v1::SensorData>(Arena*); +template<> ::viam::app::datasync::v1::SensorMetadata* Arena::CreateMaybeMessage<::viam::app::datasync::v1::SensorMetadata>(Arena*); +template<> ::viam::app::datasync::v1::TabularCapture* Arena::CreateMaybeMessage<::viam::app::datasync::v1::TabularCapture>(Arena*); +template<> ::viam::app::datasync::v1::TabularCapture_MethodParametersEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::app::datasync::v1::TabularCapture_MethodParametersEntry_DoNotUse>(Arena*); +template<> ::viam::app::datasync::v1::UploadMetadata* Arena::CreateMaybeMessage<::viam::app::datasync::v1::UploadMetadata>(Arena*); +template<> ::viam::app::datasync::v1::UploadMetadata_MethodParametersEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::app::datasync::v1::UploadMetadata_MethodParametersEntry_DoNotUse>(Arena*); +template<> ::viam::app::datasync::v1::UploadRequest* Arena::CreateMaybeMessage<::viam::app::datasync::v1::UploadRequest>(Arena*); +template<> ::viam::app::datasync::v1::UploadResponse* Arena::CreateMaybeMessage<::viam::app::datasync::v1::UploadResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace app { +namespace datasync { +namespace v1 { + +enum DataType : int { + DATA_TYPE_UNSPECIFIED = 0, + DATA_TYPE_BINARY_SENSOR = 1, + DATA_TYPE_TABULAR_SENSOR = 2, + DATA_TYPE_FILE = 3, + DataType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + DataType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool DataType_IsValid(int value); +constexpr DataType DataType_MIN = DATA_TYPE_UNSPECIFIED; +constexpr DataType DataType_MAX = DATA_TYPE_FILE; +constexpr int DataType_ARRAYSIZE = DataType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DataType_descriptor(); +template +inline const std::string& DataType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function DataType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + DataType_descriptor(), enum_t_value); +} +inline bool DataType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DataType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + DataType_descriptor(), name, value); +} +// =================================================================== + +class SensorMetadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.datasync.v1.SensorMetadata) */ { + public: + inline SensorMetadata() : SensorMetadata(nullptr) {} + ~SensorMetadata() override; + explicit PROTOBUF_CONSTEXPR SensorMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SensorMetadata(const SensorMetadata& from); + SensorMetadata(SensorMetadata&& from) noexcept + : SensorMetadata() { + *this = ::std::move(from); + } + + inline SensorMetadata& operator=(const SensorMetadata& from) { + CopyFrom(from); + return *this; + } + inline SensorMetadata& operator=(SensorMetadata&& 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 SensorMetadata& default_instance() { + return *internal_default_instance(); + } + static inline const SensorMetadata* internal_default_instance() { + return reinterpret_cast( + &_SensorMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(SensorMetadata& a, SensorMetadata& b) { + a.Swap(&b); + } + inline void Swap(SensorMetadata* 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(SensorMetadata* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SensorMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SensorMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SensorMetadata& from) { + SensorMetadata::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SensorMetadata* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.datasync.v1.SensorMetadata"; + } + protected: + explicit SensorMetadata(::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 { + kTimeRequestedFieldNumber = 1, + kTimeReceivedFieldNumber = 2, + }; + // .google.protobuf.Timestamp time_requested = 1 [json_name = "timeRequested"]; + bool has_time_requested() const; + private: + bool _internal_has_time_requested() const; + public: + void clear_time_requested(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& time_requested() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_time_requested(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_time_requested(); + void set_allocated_time_requested(::PROTOBUF_NAMESPACE_ID::Timestamp* time_requested); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_time_requested() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_time_requested(); + public: + void unsafe_arena_set_allocated_time_requested( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_requested); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_time_requested(); + + // .google.protobuf.Timestamp time_received = 2 [json_name = "timeReceived"]; + bool has_time_received() const; + private: + bool _internal_has_time_received() const; + public: + void clear_time_received(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& time_received() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_time_received(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_time_received(); + void set_allocated_time_received(::PROTOBUF_NAMESPACE_ID::Timestamp* time_received); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_time_received() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_time_received(); + public: + void unsafe_arena_set_allocated_time_received( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_received); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_time_received(); + + // @@protoc_insertion_point(class_scope:viam.app.datasync.v1.SensorMetadata) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_requested_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_received_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdatasync_2fv1_2fdata_5fsync_2eproto; +}; +// ------------------------------------------------------------------- + +class SensorData final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.datasync.v1.SensorData) */ { + public: + inline SensorData() : SensorData(nullptr) {} + ~SensorData() override; + explicit PROTOBUF_CONSTEXPR SensorData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SensorData(const SensorData& from); + SensorData(SensorData&& from) noexcept + : SensorData() { + *this = ::std::move(from); + } + + inline SensorData& operator=(const SensorData& from) { + CopyFrom(from); + return *this; + } + inline SensorData& operator=(SensorData&& 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 SensorData& default_instance() { + return *internal_default_instance(); + } + enum DataCase { + kStruct = 2, + kBinary = 3, + DATA_NOT_SET = 0, + }; + + static inline const SensorData* internal_default_instance() { + return reinterpret_cast( + &_SensorData_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(SensorData& a, SensorData& b) { + a.Swap(&b); + } + inline void Swap(SensorData* 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(SensorData* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SensorData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SensorData& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SensorData& from) { + SensorData::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SensorData* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.datasync.v1.SensorData"; + } + protected: + explicit SensorData(::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 { + kMetadataFieldNumber = 1, + kStructFieldNumber = 2, + kBinaryFieldNumber = 3, + }; + // .viam.app.datasync.v1.SensorMetadata metadata = 1 [json_name = "metadata"]; + bool has_metadata() const; + private: + bool _internal_has_metadata() const; + public: + void clear_metadata(); + const ::viam::app::datasync::v1::SensorMetadata& metadata() const; + PROTOBUF_NODISCARD ::viam::app::datasync::v1::SensorMetadata* release_metadata(); + ::viam::app::datasync::v1::SensorMetadata* mutable_metadata(); + void set_allocated_metadata(::viam::app::datasync::v1::SensorMetadata* metadata); + private: + const ::viam::app::datasync::v1::SensorMetadata& _internal_metadata() const; + ::viam::app::datasync::v1::SensorMetadata* _internal_mutable_metadata(); + public: + void unsafe_arena_set_allocated_metadata( + ::viam::app::datasync::v1::SensorMetadata* metadata); + ::viam::app::datasync::v1::SensorMetadata* unsafe_arena_release_metadata(); + + // .google.protobuf.Struct struct = 2 [json_name = "struct"]; + bool has_struct_() const; + private: + bool _internal_has_struct_() const; + public: + void clear_struct_(); + const ::PROTOBUF_NAMESPACE_ID::Struct& struct_() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_struct_(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_struct_(); + void set_allocated_struct_(::PROTOBUF_NAMESPACE_ID::Struct* struct_); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_struct_() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_struct_(); + public: + void unsafe_arena_set_allocated_struct_( + ::PROTOBUF_NAMESPACE_ID::Struct* struct_); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_struct_(); + + // bytes binary = 3 [json_name = "binary"]; + bool has_binary() const; + private: + bool _internal_has_binary() const; + public: + void clear_binary(); + const std::string& binary() const; + template + void set_binary(ArgT0&& arg0, ArgT... args); + std::string* mutable_binary(); + PROTOBUF_NODISCARD std::string* release_binary(); + void set_allocated_binary(std::string* binary); + private: + const std::string& _internal_binary() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_binary(const std::string& value); + std::string* _internal_mutable_binary(); + public: + + void clear_data(); + DataCase data_case() const; + // @@protoc_insertion_point(class_scope:viam.app.datasync.v1.SensorData) + private: + class _Internal; + void set_has_struct_(); + void set_has_binary(); + + inline bool has_data() const; + inline void clear_has_data(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::app::datasync::v1::SensorMetadata* metadata_; + union DataUnion { + constexpr DataUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::Struct* struct__; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr binary_; + } data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdatasync_2fv1_2fdata_5fsync_2eproto; +}; +// ------------------------------------------------------------------- + +class FileData final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.datasync.v1.FileData) */ { + public: + inline FileData() : FileData(nullptr) {} + ~FileData() override; + explicit PROTOBUF_CONSTEXPR FileData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + FileData(const FileData& from); + FileData(FileData&& from) noexcept + : FileData() { + *this = ::std::move(from); + } + + inline FileData& operator=(const FileData& from) { + CopyFrom(from); + return *this; + } + inline FileData& operator=(FileData&& 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 FileData& default_instance() { + return *internal_default_instance(); + } + static inline const FileData* internal_default_instance() { + return reinterpret_cast( + &_FileData_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(FileData& a, FileData& b) { + a.Swap(&b); + } + inline void Swap(FileData* 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(FileData* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + FileData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FileData& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const FileData& from) { + FileData::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FileData* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.datasync.v1.FileData"; + } + protected: + explicit FileData(::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 { + kDataFieldNumber = 1, + }; + // bytes data = 1 [json_name = "data"]; + void clear_data(); + const std::string& data() const; + template + void set_data(ArgT0&& arg0, ArgT... args); + std::string* mutable_data(); + PROTOBUF_NODISCARD std::string* release_data(); + void set_allocated_data(std::string* data); + private: + const std::string& _internal_data() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value); + std::string* _internal_mutable_data(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.datasync.v1.FileData) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdatasync_2fv1_2fdata_5fsync_2eproto; +}; +// ------------------------------------------------------------------- + +class UploadMetadata_MethodParametersEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + UploadMetadata_MethodParametersEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR UploadMetadata_MethodParametersEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit UploadMetadata_MethodParametersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const UploadMetadata_MethodParametersEntry_DoNotUse& other); + static const UploadMetadata_MethodParametersEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_UploadMetadata_MethodParametersEntry_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.app.datasync.v1.UploadMetadata.MethodParametersEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_app_2fdatasync_2fv1_2fdata_5fsync_2eproto; +}; + +// ------------------------------------------------------------------- + +class UploadMetadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.datasync.v1.UploadMetadata) */ { + public: + inline UploadMetadata() : UploadMetadata(nullptr) {} + ~UploadMetadata() override; + explicit PROTOBUF_CONSTEXPR UploadMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UploadMetadata(const UploadMetadata& from); + UploadMetadata(UploadMetadata&& from) noexcept + : UploadMetadata() { + *this = ::std::move(from); + } + + inline UploadMetadata& operator=(const UploadMetadata& from) { + CopyFrom(from); + return *this; + } + inline UploadMetadata& operator=(UploadMetadata&& 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 UploadMetadata& default_instance() { + return *internal_default_instance(); + } + static inline const UploadMetadata* internal_default_instance() { + return reinterpret_cast( + &_UploadMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(UploadMetadata& a, UploadMetadata& b) { + a.Swap(&b); + } + inline void Swap(UploadMetadata* 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(UploadMetadata* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UploadMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UploadMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const UploadMetadata& from) { + UploadMetadata::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UploadMetadata* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.datasync.v1.UploadMetadata"; + } + protected: + explicit UploadMetadata(::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 { + kMethodParametersFieldNumber = 8, + kTagsFieldNumber = 10, + kPartIdFieldNumber = 1, + kComponentTypeFieldNumber = 2, + kComponentNameFieldNumber = 3, + kComponentModelFieldNumber = 4, + kMethodNameFieldNumber = 5, + kFileNameFieldNumber = 7, + kFileExtensionFieldNumber = 9, + kSessionIdFieldNumber = 11, + kTypeFieldNumber = 6, + }; + // map method_parameters = 8 [json_name = "methodParameters"]; + int method_parameters_size() const; + private: + int _internal_method_parameters_size() const; + public: + void clear_method_parameters(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >& + _internal_method_parameters() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >* + _internal_mutable_method_parameters(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >& + method_parameters() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >* + mutable_method_parameters(); + + // repeated string tags = 10 [json_name = "tags"]; + int tags_size() const; + private: + int _internal_tags_size() const; + public: + void clear_tags(); + const std::string& tags(int index) const; + std::string* mutable_tags(int index); + void set_tags(int index, const std::string& value); + void set_tags(int index, std::string&& value); + void set_tags(int index, const char* value); + void set_tags(int index, const char* value, size_t size); + std::string* add_tags(); + void add_tags(const std::string& value); + void add_tags(std::string&& value); + void add_tags(const char* value); + void add_tags(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& tags() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_tags(); + private: + const std::string& _internal_tags(int index) const; + std::string* _internal_add_tags(); + public: + + // string part_id = 1 [json_name = "partId"]; + void clear_part_id(); + const std::string& part_id() const; + template + void set_part_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_part_id(); + PROTOBUF_NODISCARD std::string* release_part_id(); + void set_allocated_part_id(std::string* part_id); + private: + const std::string& _internal_part_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_id(const std::string& value); + std::string* _internal_mutable_part_id(); + public: + + // string component_type = 2 [json_name = "componentType"]; + void clear_component_type(); + const std::string& component_type() const; + template + void set_component_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_type(); + PROTOBUF_NODISCARD std::string* release_component_type(); + void set_allocated_component_type(std::string* component_type); + private: + const std::string& _internal_component_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_type(const std::string& value); + std::string* _internal_mutable_component_type(); + public: + + // string component_name = 3 [json_name = "componentName"]; + void clear_component_name(); + const std::string& component_name() const; + template + void set_component_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_name(); + PROTOBUF_NODISCARD std::string* release_component_name(); + void set_allocated_component_name(std::string* component_name); + private: + const std::string& _internal_component_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_name(const std::string& value); + std::string* _internal_mutable_component_name(); + public: + + // string component_model = 4 [json_name = "componentModel"]; + void clear_component_model(); + const std::string& component_model() const; + template + void set_component_model(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_model(); + PROTOBUF_NODISCARD std::string* release_component_model(); + void set_allocated_component_model(std::string* component_model); + private: + const std::string& _internal_component_model() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_model(const std::string& value); + std::string* _internal_mutable_component_model(); + public: + + // string method_name = 5 [json_name = "methodName"]; + void clear_method_name(); + const std::string& method_name() const; + template + void set_method_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_method_name(); + PROTOBUF_NODISCARD std::string* release_method_name(); + void set_allocated_method_name(std::string* method_name); + private: + const std::string& _internal_method_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_method_name(const std::string& value); + std::string* _internal_mutable_method_name(); + public: + + // string file_name = 7 [json_name = "fileName"]; + void clear_file_name(); + const std::string& file_name() const; + template + void set_file_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_file_name(); + PROTOBUF_NODISCARD std::string* release_file_name(); + void set_allocated_file_name(std::string* file_name); + private: + const std::string& _internal_file_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_name(const std::string& value); + std::string* _internal_mutable_file_name(); + public: + + // string file_extension = 9 [json_name = "fileExtension"]; + void clear_file_extension(); + const std::string& file_extension() const; + template + void set_file_extension(ArgT0&& arg0, ArgT... args); + std::string* mutable_file_extension(); + PROTOBUF_NODISCARD std::string* release_file_extension(); + void set_allocated_file_extension(std::string* file_extension); + private: + const std::string& _internal_file_extension() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_extension(const std::string& value); + std::string* _internal_mutable_file_extension(); + public: + + // string session_id = 11 [json_name = "sessionId"]; + void clear_session_id(); + const std::string& session_id() const; + template + void set_session_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_session_id(); + PROTOBUF_NODISCARD std::string* release_session_id(); + void set_allocated_session_id(std::string* session_id); + private: + const std::string& _internal_session_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_session_id(const std::string& value); + std::string* _internal_mutable_session_id(); + public: + + // .viam.app.datasync.v1.DataType type = 6 [json_name = "type"]; + void clear_type(); + ::viam::app::datasync::v1::DataType type() const; + void set_type(::viam::app::datasync::v1::DataType value); + private: + ::viam::app::datasync::v1::DataType _internal_type() const; + void _internal_set_type(::viam::app::datasync::v1::DataType value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.datasync.v1.UploadMetadata) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + UploadMetadata_MethodParametersEntry_DoNotUse, + std::string, ::PROTOBUF_NAMESPACE_ID::Any, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> method_parameters_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField tags_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr part_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_model_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr method_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_extension_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr session_id_; + int type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdatasync_2fv1_2fdata_5fsync_2eproto; +}; +// ------------------------------------------------------------------- + +class UploadRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.datasync.v1.UploadRequest) */ { + public: + inline UploadRequest() : UploadRequest(nullptr) {} + ~UploadRequest() override; + explicit PROTOBUF_CONSTEXPR UploadRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UploadRequest(const UploadRequest& from); + UploadRequest(UploadRequest&& from) noexcept + : UploadRequest() { + *this = ::std::move(from); + } + + inline UploadRequest& operator=(const UploadRequest& from) { + CopyFrom(from); + return *this; + } + inline UploadRequest& operator=(UploadRequest&& 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 UploadRequest& default_instance() { + return *internal_default_instance(); + } + enum UploadPacketCase { + kMetadata = 1, + kSensorContents = 2, + kFileContents = 3, + UPLOAD_PACKET_NOT_SET = 0, + }; + + static inline const UploadRequest* internal_default_instance() { + return reinterpret_cast( + &_UploadRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(UploadRequest& a, UploadRequest& b) { + a.Swap(&b); + } + inline void Swap(UploadRequest* 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(UploadRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UploadRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UploadRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const UploadRequest& from) { + UploadRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UploadRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.datasync.v1.UploadRequest"; + } + protected: + explicit UploadRequest(::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 { + kMetadataFieldNumber = 1, + kSensorContentsFieldNumber = 2, + kFileContentsFieldNumber = 3, + }; + // .viam.app.datasync.v1.UploadMetadata metadata = 1 [json_name = "metadata"]; + bool has_metadata() const; + private: + bool _internal_has_metadata() const; + public: + void clear_metadata(); + const ::viam::app::datasync::v1::UploadMetadata& metadata() const; + PROTOBUF_NODISCARD ::viam::app::datasync::v1::UploadMetadata* release_metadata(); + ::viam::app::datasync::v1::UploadMetadata* mutable_metadata(); + void set_allocated_metadata(::viam::app::datasync::v1::UploadMetadata* metadata); + private: + const ::viam::app::datasync::v1::UploadMetadata& _internal_metadata() const; + ::viam::app::datasync::v1::UploadMetadata* _internal_mutable_metadata(); + public: + void unsafe_arena_set_allocated_metadata( + ::viam::app::datasync::v1::UploadMetadata* metadata); + ::viam::app::datasync::v1::UploadMetadata* unsafe_arena_release_metadata(); + + // .viam.app.datasync.v1.SensorData sensor_contents = 2 [json_name = "sensorContents"]; + bool has_sensor_contents() const; + private: + bool _internal_has_sensor_contents() const; + public: + void clear_sensor_contents(); + const ::viam::app::datasync::v1::SensorData& sensor_contents() const; + PROTOBUF_NODISCARD ::viam::app::datasync::v1::SensorData* release_sensor_contents(); + ::viam::app::datasync::v1::SensorData* mutable_sensor_contents(); + void set_allocated_sensor_contents(::viam::app::datasync::v1::SensorData* sensor_contents); + private: + const ::viam::app::datasync::v1::SensorData& _internal_sensor_contents() const; + ::viam::app::datasync::v1::SensorData* _internal_mutable_sensor_contents(); + public: + void unsafe_arena_set_allocated_sensor_contents( + ::viam::app::datasync::v1::SensorData* sensor_contents); + ::viam::app::datasync::v1::SensorData* unsafe_arena_release_sensor_contents(); + + // .viam.app.datasync.v1.FileData file_contents = 3 [json_name = "fileContents"]; + bool has_file_contents() const; + private: + bool _internal_has_file_contents() const; + public: + void clear_file_contents(); + const ::viam::app::datasync::v1::FileData& file_contents() const; + PROTOBUF_NODISCARD ::viam::app::datasync::v1::FileData* release_file_contents(); + ::viam::app::datasync::v1::FileData* mutable_file_contents(); + void set_allocated_file_contents(::viam::app::datasync::v1::FileData* file_contents); + private: + const ::viam::app::datasync::v1::FileData& _internal_file_contents() const; + ::viam::app::datasync::v1::FileData* _internal_mutable_file_contents(); + public: + void unsafe_arena_set_allocated_file_contents( + ::viam::app::datasync::v1::FileData* file_contents); + ::viam::app::datasync::v1::FileData* unsafe_arena_release_file_contents(); + + void clear_upload_packet(); + UploadPacketCase upload_packet_case() const; + // @@protoc_insertion_point(class_scope:viam.app.datasync.v1.UploadRequest) + private: + class _Internal; + void set_has_metadata(); + void set_has_sensor_contents(); + void set_has_file_contents(); + + inline bool has_upload_packet() const; + inline void clear_has_upload_packet(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + union UploadPacketUnion { + constexpr UploadPacketUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::viam::app::datasync::v1::UploadMetadata* metadata_; + ::viam::app::datasync::v1::SensorData* sensor_contents_; + ::viam::app::datasync::v1::FileData* file_contents_; + } upload_packet_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdatasync_2fv1_2fdata_5fsync_2eproto; +}; +// ------------------------------------------------------------------- + +class UploadResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.datasync.v1.UploadResponse) */ { + public: + inline UploadResponse() : UploadResponse(nullptr) {} + ~UploadResponse() override; + explicit PROTOBUF_CONSTEXPR UploadResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UploadResponse(const UploadResponse& from); + UploadResponse(UploadResponse&& from) noexcept + : UploadResponse() { + *this = ::std::move(from); + } + + inline UploadResponse& operator=(const UploadResponse& from) { + CopyFrom(from); + return *this; + } + inline UploadResponse& operator=(UploadResponse&& 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 UploadResponse& default_instance() { + return *internal_default_instance(); + } + static inline const UploadResponse* internal_default_instance() { + return reinterpret_cast( + &_UploadResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(UploadResponse& a, UploadResponse& b) { + a.Swap(&b); + } + inline void Swap(UploadResponse* 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(UploadResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UploadResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UploadResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const UploadResponse& from) { + UploadResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UploadResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.datasync.v1.UploadResponse"; + } + protected: + explicit UploadResponse(::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 { + kRequestsWrittenFieldNumber = 1, + }; + // int32 requests_written = 1 [json_name = "requestsWritten"]; + void clear_requests_written(); + int32_t requests_written() const; + void set_requests_written(int32_t value); + private: + int32_t _internal_requests_written() const; + void _internal_set_requests_written(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.datasync.v1.UploadResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + int32_t requests_written_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdatasync_2fv1_2fdata_5fsync_2eproto; +}; +// ------------------------------------------------------------------- + +class CaptureInterval final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.datasync.v1.CaptureInterval) */ { + public: + inline CaptureInterval() : CaptureInterval(nullptr) {} + ~CaptureInterval() override; + explicit PROTOBUF_CONSTEXPR CaptureInterval(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CaptureInterval(const CaptureInterval& from); + CaptureInterval(CaptureInterval&& from) noexcept + : CaptureInterval() { + *this = ::std::move(from); + } + + inline CaptureInterval& operator=(const CaptureInterval& from) { + CopyFrom(from); + return *this; + } + inline CaptureInterval& operator=(CaptureInterval&& 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 CaptureInterval& default_instance() { + return *internal_default_instance(); + } + static inline const CaptureInterval* internal_default_instance() { + return reinterpret_cast( + &_CaptureInterval_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(CaptureInterval& a, CaptureInterval& b) { + a.Swap(&b); + } + inline void Swap(CaptureInterval* 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(CaptureInterval* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CaptureInterval* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CaptureInterval& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const CaptureInterval& from) { + CaptureInterval::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CaptureInterval* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.datasync.v1.CaptureInterval"; + } + protected: + explicit CaptureInterval(::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 { + kStartFieldNumber = 1, + kEndFieldNumber = 2, + }; + // .google.protobuf.Timestamp start = 1 [json_name = "start"]; + bool has_start() const; + private: + bool _internal_has_start() const; + public: + void clear_start(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& start() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_start(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_start(); + void set_allocated_start(::PROTOBUF_NAMESPACE_ID::Timestamp* start); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_start() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_start(); + public: + void unsafe_arena_set_allocated_start( + ::PROTOBUF_NAMESPACE_ID::Timestamp* start); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_start(); + + // .google.protobuf.Timestamp end = 2 [json_name = "end"]; + bool has_end() const; + private: + bool _internal_has_end() const; + public: + void clear_end(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& end() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_end(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_end(); + void set_allocated_end(::PROTOBUF_NAMESPACE_ID::Timestamp* end); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_end() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_end(); + public: + void unsafe_arena_set_allocated_end( + ::PROTOBUF_NAMESPACE_ID::Timestamp* end); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_end(); + + // @@protoc_insertion_point(class_scope:viam.app.datasync.v1.CaptureInterval) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::Timestamp* start_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* end_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdatasync_2fv1_2fdata_5fsync_2eproto; +}; +// ------------------------------------------------------------------- + +class DataCaptureMetadata_MethodParametersEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + DataCaptureMetadata_MethodParametersEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR DataCaptureMetadata_MethodParametersEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit DataCaptureMetadata_MethodParametersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const DataCaptureMetadata_MethodParametersEntry_DoNotUse& other); + static const DataCaptureMetadata_MethodParametersEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_DataCaptureMetadata_MethodParametersEntry_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.app.datasync.v1.DataCaptureMetadata.MethodParametersEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_app_2fdatasync_2fv1_2fdata_5fsync_2eproto; +}; + +// ------------------------------------------------------------------- + +class DataCaptureMetadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.datasync.v1.DataCaptureMetadata) */ { + public: + inline DataCaptureMetadata() : DataCaptureMetadata(nullptr) {} + ~DataCaptureMetadata() override; + explicit PROTOBUF_CONSTEXPR DataCaptureMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DataCaptureMetadata(const DataCaptureMetadata& from); + DataCaptureMetadata(DataCaptureMetadata&& from) noexcept + : DataCaptureMetadata() { + *this = ::std::move(from); + } + + inline DataCaptureMetadata& operator=(const DataCaptureMetadata& from) { + CopyFrom(from); + return *this; + } + inline DataCaptureMetadata& operator=(DataCaptureMetadata&& 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 DataCaptureMetadata& default_instance() { + return *internal_default_instance(); + } + static inline const DataCaptureMetadata* internal_default_instance() { + return reinterpret_cast( + &_DataCaptureMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(DataCaptureMetadata& a, DataCaptureMetadata& b) { + a.Swap(&b); + } + inline void Swap(DataCaptureMetadata* 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(DataCaptureMetadata* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DataCaptureMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DataCaptureMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DataCaptureMetadata& from) { + DataCaptureMetadata::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DataCaptureMetadata* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.datasync.v1.DataCaptureMetadata"; + } + protected: + explicit DataCaptureMetadata(::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 { + kMethodParametersFieldNumber = 6, + kTagsFieldNumber = 8, + kComponentTypeFieldNumber = 1, + kComponentNameFieldNumber = 2, + kComponentModelFieldNumber = 3, + kMethodNameFieldNumber = 4, + kFileExtensionFieldNumber = 7, + kSessionIdFieldNumber = 9, + kTypeFieldNumber = 5, + }; + // map method_parameters = 6 [json_name = "methodParameters"]; + int method_parameters_size() const; + private: + int _internal_method_parameters_size() const; + public: + void clear_method_parameters(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >& + _internal_method_parameters() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >* + _internal_mutable_method_parameters(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >& + method_parameters() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >* + mutable_method_parameters(); + + // repeated string tags = 8 [json_name = "tags"]; + int tags_size() const; + private: + int _internal_tags_size() const; + public: + void clear_tags(); + const std::string& tags(int index) const; + std::string* mutable_tags(int index); + void set_tags(int index, const std::string& value); + void set_tags(int index, std::string&& value); + void set_tags(int index, const char* value); + void set_tags(int index, const char* value, size_t size); + std::string* add_tags(); + void add_tags(const std::string& value); + void add_tags(std::string&& value); + void add_tags(const char* value); + void add_tags(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& tags() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_tags(); + private: + const std::string& _internal_tags(int index) const; + std::string* _internal_add_tags(); + public: + + // string component_type = 1 [json_name = "componentType"]; + void clear_component_type(); + const std::string& component_type() const; + template + void set_component_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_type(); + PROTOBUF_NODISCARD std::string* release_component_type(); + void set_allocated_component_type(std::string* component_type); + private: + const std::string& _internal_component_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_type(const std::string& value); + std::string* _internal_mutable_component_type(); + public: + + // string component_name = 2 [json_name = "componentName"]; + void clear_component_name(); + const std::string& component_name() const; + template + void set_component_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_name(); + PROTOBUF_NODISCARD std::string* release_component_name(); + void set_allocated_component_name(std::string* component_name); + private: + const std::string& _internal_component_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_name(const std::string& value); + std::string* _internal_mutable_component_name(); + public: + + // string component_model = 3 [json_name = "componentModel"]; + void clear_component_model(); + const std::string& component_model() const; + template + void set_component_model(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_model(); + PROTOBUF_NODISCARD std::string* release_component_model(); + void set_allocated_component_model(std::string* component_model); + private: + const std::string& _internal_component_model() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_model(const std::string& value); + std::string* _internal_mutable_component_model(); + public: + + // string method_name = 4 [json_name = "methodName"]; + void clear_method_name(); + const std::string& method_name() const; + template + void set_method_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_method_name(); + PROTOBUF_NODISCARD std::string* release_method_name(); + void set_allocated_method_name(std::string* method_name); + private: + const std::string& _internal_method_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_method_name(const std::string& value); + std::string* _internal_mutable_method_name(); + public: + + // string file_extension = 7 [json_name = "fileExtension"]; + void clear_file_extension(); + const std::string& file_extension() const; + template + void set_file_extension(ArgT0&& arg0, ArgT... args); + std::string* mutable_file_extension(); + PROTOBUF_NODISCARD std::string* release_file_extension(); + void set_allocated_file_extension(std::string* file_extension); + private: + const std::string& _internal_file_extension() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_extension(const std::string& value); + std::string* _internal_mutable_file_extension(); + public: + + // string session_id = 9 [json_name = "sessionId"]; + void clear_session_id(); + const std::string& session_id() const; + template + void set_session_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_session_id(); + PROTOBUF_NODISCARD std::string* release_session_id(); + void set_allocated_session_id(std::string* session_id); + private: + const std::string& _internal_session_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_session_id(const std::string& value); + std::string* _internal_mutable_session_id(); + public: + + // .viam.app.datasync.v1.DataType type = 5 [json_name = "type"]; + void clear_type(); + ::viam::app::datasync::v1::DataType type() const; + void set_type(::viam::app::datasync::v1::DataType value); + private: + ::viam::app::datasync::v1::DataType _internal_type() const; + void _internal_set_type(::viam::app::datasync::v1::DataType value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.datasync.v1.DataCaptureMetadata) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + DataCaptureMetadata_MethodParametersEntry_DoNotUse, + std::string, ::PROTOBUF_NAMESPACE_ID::Any, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> method_parameters_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField tags_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_model_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr method_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_extension_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr session_id_; + int type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdatasync_2fv1_2fdata_5fsync_2eproto; +}; +// ------------------------------------------------------------------- + +class TabularCapture_MethodParametersEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + TabularCapture_MethodParametersEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR TabularCapture_MethodParametersEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit TabularCapture_MethodParametersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const TabularCapture_MethodParametersEntry_DoNotUse& other); + static const TabularCapture_MethodParametersEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_TabularCapture_MethodParametersEntry_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.app.datasync.v1.TabularCapture.MethodParametersEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_app_2fdatasync_2fv1_2fdata_5fsync_2eproto; +}; + +// ------------------------------------------------------------------- + +class TabularCapture final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.datasync.v1.TabularCapture) */ { + public: + inline TabularCapture() : TabularCapture(nullptr) {} + ~TabularCapture() override; + explicit PROTOBUF_CONSTEXPR TabularCapture(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + TabularCapture(const TabularCapture& from); + TabularCapture(TabularCapture&& from) noexcept + : TabularCapture() { + *this = ::std::move(from); + } + + inline TabularCapture& operator=(const TabularCapture& from) { + CopyFrom(from); + return *this; + } + inline TabularCapture& operator=(TabularCapture&& 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 TabularCapture& default_instance() { + return *internal_default_instance(); + } + static inline const TabularCapture* internal_default_instance() { + return reinterpret_cast( + &_TabularCapture_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(TabularCapture& a, TabularCapture& b) { + a.Swap(&b); + } + inline void Swap(TabularCapture* 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(TabularCapture* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TabularCapture* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TabularCapture& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const TabularCapture& from) { + TabularCapture::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TabularCapture* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.datasync.v1.TabularCapture"; + } + protected: + explicit TabularCapture(::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 { + kColumnNamesFieldNumber = 11, + kMethodParametersFieldNumber = 12, + kTagsFieldNumber = 14, + kOrgIdFieldNumber = 2, + kRobotIdFieldNumber = 3, + kPartIdFieldNumber = 4, + kLocationIdFieldNumber = 5, + kComponentNameFieldNumber = 6, + kComponentTypeFieldNumber = 7, + kComponentModelFieldNumber = 8, + kMethodNameFieldNumber = 9, + kBlobPathFieldNumber = 10, + kFileIdFieldNumber = 13, + kSessionIdFieldNumber = 17, + kMimeTypeFieldNumber = 18, + kIntervalFieldNumber = 1, + kFileSizeBytesFieldNumber = 16, + kMessageCountFieldNumber = 15, + }; + // repeated string column_names = 11 [json_name = "columnNames", (.tagger.v1.tags) = "bson:\"column_names\" json:\"column_names\""]; + int column_names_size() const; + private: + int _internal_column_names_size() const; + public: + void clear_column_names(); + const std::string& column_names(int index) const; + std::string* mutable_column_names(int index); + void set_column_names(int index, const std::string& value); + void set_column_names(int index, std::string&& value); + void set_column_names(int index, const char* value); + void set_column_names(int index, const char* value, size_t size); + std::string* add_column_names(); + void add_column_names(const std::string& value); + void add_column_names(std::string&& value); + void add_column_names(const char* value); + void add_column_names(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& column_names() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_column_names(); + private: + const std::string& _internal_column_names(int index) const; + std::string* _internal_add_column_names(); + public: + + // map method_parameters = 12 [json_name = "methodParameters", (.tagger.v1.tags) = "bson:\"method_parameters\" json:\"method_parameters\""]; + int method_parameters_size() const; + private: + int _internal_method_parameters_size() const; + public: + void clear_method_parameters(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >& + _internal_method_parameters() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >* + _internal_mutable_method_parameters(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >& + method_parameters() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >* + mutable_method_parameters(); + + // repeated string tags = 14 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; + int tags_size() const; + private: + int _internal_tags_size() const; + public: + void clear_tags(); + const std::string& tags(int index) const; + std::string* mutable_tags(int index); + void set_tags(int index, const std::string& value); + void set_tags(int index, std::string&& value); + void set_tags(int index, const char* value); + void set_tags(int index, const char* value, size_t size); + std::string* add_tags(); + void add_tags(const std::string& value); + void add_tags(std::string&& value); + void add_tags(const char* value); + void add_tags(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& tags() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_tags(); + private: + const std::string& _internal_tags(int index) const; + std::string* _internal_add_tags(); + public: + + // string org_id = 2 [json_name = "orgId", (.tagger.v1.tags) = "bson:\"org_id\" json:\"org_id\""]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); + public: + + // string robot_id = 3 [json_name = "robotId", (.tagger.v1.tags) = "bson:\"robot_id\" json:\"robot_id\""]; + void clear_robot_id(); + const std::string& robot_id() const; + template + void set_robot_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_robot_id(); + PROTOBUF_NODISCARD std::string* release_robot_id(); + void set_allocated_robot_id(std::string* robot_id); + private: + const std::string& _internal_robot_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_id(const std::string& value); + std::string* _internal_mutable_robot_id(); + public: + + // string part_id = 4 [json_name = "partId", (.tagger.v1.tags) = "bson:\"part_id\" json:\"part_id\""]; + void clear_part_id(); + const std::string& part_id() const; + template + void set_part_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_part_id(); + PROTOBUF_NODISCARD std::string* release_part_id(); + void set_allocated_part_id(std::string* part_id); + private: + const std::string& _internal_part_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_id(const std::string& value); + std::string* _internal_mutable_part_id(); + public: + + // string location_id = 5 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"location_id\""]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); + private: + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); + public: + + // string component_name = 6 [json_name = "componentName", (.tagger.v1.tags) = "bson:\"component_name\" json:\"component_name\""]; + void clear_component_name(); + const std::string& component_name() const; + template + void set_component_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_name(); + PROTOBUF_NODISCARD std::string* release_component_name(); + void set_allocated_component_name(std::string* component_name); + private: + const std::string& _internal_component_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_name(const std::string& value); + std::string* _internal_mutable_component_name(); + public: + + // string component_type = 7 [json_name = "componentType", (.tagger.v1.tags) = "bson:\"component_type\" json:\"component_type\""]; + void clear_component_type(); + const std::string& component_type() const; + template + void set_component_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_type(); + PROTOBUF_NODISCARD std::string* release_component_type(); + void set_allocated_component_type(std::string* component_type); + private: + const std::string& _internal_component_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_type(const std::string& value); + std::string* _internal_mutable_component_type(); + public: + + // string component_model = 8 [json_name = "componentModel", (.tagger.v1.tags) = "bson:\"component_model\" json:\"component_model\""]; + void clear_component_model(); + const std::string& component_model() const; + template + void set_component_model(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_model(); + PROTOBUF_NODISCARD std::string* release_component_model(); + void set_allocated_component_model(std::string* component_model); + private: + const std::string& _internal_component_model() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_model(const std::string& value); + std::string* _internal_mutable_component_model(); + public: + + // string method_name = 9 [json_name = "methodName", (.tagger.v1.tags) = "bson:\"method_name\" json:\"method_name\""]; + void clear_method_name(); + const std::string& method_name() const; + template + void set_method_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_method_name(); + PROTOBUF_NODISCARD std::string* release_method_name(); + void set_allocated_method_name(std::string* method_name); + private: + const std::string& _internal_method_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_method_name(const std::string& value); + std::string* _internal_mutable_method_name(); + public: + + // string blob_path = 10 [json_name = "blobPath", (.tagger.v1.tags) = "bson:\"blob_path\" json:\"blob_path\""]; + void clear_blob_path(); + const std::string& blob_path() const; + template + void set_blob_path(ArgT0&& arg0, ArgT... args); + std::string* mutable_blob_path(); + PROTOBUF_NODISCARD std::string* release_blob_path(); + void set_allocated_blob_path(std::string* blob_path); + private: + const std::string& _internal_blob_path() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_blob_path(const std::string& value); + std::string* _internal_mutable_blob_path(); + public: + + // string file_id = 13 [json_name = "fileId", (.tagger.v1.tags) = "bson:\"file_id\" json:\"file_id\""]; + void clear_file_id(); + const std::string& file_id() const; + template + void set_file_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_file_id(); + PROTOBUF_NODISCARD std::string* release_file_id(); + void set_allocated_file_id(std::string* file_id); + private: + const std::string& _internal_file_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_id(const std::string& value); + std::string* _internal_mutable_file_id(); + public: + + // string session_id = 17 [json_name = "sessionId", (.tagger.v1.tags) = "bson:\"session_id\" json:\"session_id\""]; + void clear_session_id(); + const std::string& session_id() const; + template + void set_session_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_session_id(); + PROTOBUF_NODISCARD std::string* release_session_id(); + void set_allocated_session_id(std::string* session_id); + private: + const std::string& _internal_session_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_session_id(const std::string& value); + std::string* _internal_mutable_session_id(); + public: + + // string mime_type = 18 [json_name = "mimeType", (.tagger.v1.tags) = "bson:\"mime_type\" json:\"mime_type\""]; + void clear_mime_type(); + const std::string& mime_type() const; + template + void set_mime_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_mime_type(); + PROTOBUF_NODISCARD std::string* release_mime_type(); + void set_allocated_mime_type(std::string* mime_type); + private: + const std::string& _internal_mime_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); + std::string* _internal_mutable_mime_type(); + public: + + // .viam.app.datasync.v1.CaptureInterval interval = 1 [json_name = "interval", (.tagger.v1.tags) = "bson:\"interval\" json:\"interval\""]; + bool has_interval() const; + private: + bool _internal_has_interval() const; + public: + void clear_interval(); + const ::viam::app::datasync::v1::CaptureInterval& interval() const; + PROTOBUF_NODISCARD ::viam::app::datasync::v1::CaptureInterval* release_interval(); + ::viam::app::datasync::v1::CaptureInterval* mutable_interval(); + void set_allocated_interval(::viam::app::datasync::v1::CaptureInterval* interval); + private: + const ::viam::app::datasync::v1::CaptureInterval& _internal_interval() const; + ::viam::app::datasync::v1::CaptureInterval* _internal_mutable_interval(); + public: + void unsafe_arena_set_allocated_interval( + ::viam::app::datasync::v1::CaptureInterval* interval); + ::viam::app::datasync::v1::CaptureInterval* unsafe_arena_release_interval(); + + // int64 file_size_bytes = 16 [json_name = "fileSizeBytes", (.tagger.v1.tags) = "bson:\"file_size_bytes\" json:\"file_size_bytes\""]; + void clear_file_size_bytes(); + int64_t file_size_bytes() const; + void set_file_size_bytes(int64_t value); + private: + int64_t _internal_file_size_bytes() const; + void _internal_set_file_size_bytes(int64_t value); + public: + + // int32 message_count = 15 [json_name = "messageCount", (.tagger.v1.tags) = "bson:\"message_count\" json:\"message_count\""]; + void clear_message_count(); + int32_t message_count() const; + void set_message_count(int32_t value); + private: + int32_t _internal_message_count() const; + void _internal_set_message_count(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.datasync.v1.TabularCapture) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField column_names_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + TabularCapture_MethodParametersEntry_DoNotUse, + std::string, ::PROTOBUF_NAMESPACE_ID::Any, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> method_parameters_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField tags_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr robot_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr part_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_model_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr method_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr blob_path_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr session_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + ::viam::app::datasync::v1::CaptureInterval* interval_; + int64_t file_size_bytes_; + int32_t message_count_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdatasync_2fv1_2fdata_5fsync_2eproto; +}; +// ------------------------------------------------------------------- + +class BinaryCapture_MethodParametersEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + BinaryCapture_MethodParametersEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR BinaryCapture_MethodParametersEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit BinaryCapture_MethodParametersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const BinaryCapture_MethodParametersEntry_DoNotUse& other); + static const BinaryCapture_MethodParametersEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_BinaryCapture_MethodParametersEntry_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.app.datasync.v1.BinaryCapture.MethodParametersEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_app_2fdatasync_2fv1_2fdata_5fsync_2eproto; +}; + +// ------------------------------------------------------------------- + +class BinaryCapture final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.datasync.v1.BinaryCapture) */ { + public: + inline BinaryCapture() : BinaryCapture(nullptr) {} + ~BinaryCapture() override; + explicit PROTOBUF_CONSTEXPR BinaryCapture(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + BinaryCapture(const BinaryCapture& from); + BinaryCapture(BinaryCapture&& from) noexcept + : BinaryCapture() { + *this = ::std::move(from); + } + + inline BinaryCapture& operator=(const BinaryCapture& from) { + CopyFrom(from); + return *this; + } + inline BinaryCapture& operator=(BinaryCapture&& 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 BinaryCapture& default_instance() { + return *internal_default_instance(); + } + static inline const BinaryCapture* internal_default_instance() { + return reinterpret_cast( + &_BinaryCapture_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(BinaryCapture& a, BinaryCapture& b) { + a.Swap(&b); + } + inline void Swap(BinaryCapture* 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(BinaryCapture* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BinaryCapture* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const BinaryCapture& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const BinaryCapture& from) { + BinaryCapture::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BinaryCapture* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.datasync.v1.BinaryCapture"; + } + protected: + explicit BinaryCapture(::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 { + kMethodParametersFieldNumber = 11, + kTagsFieldNumber = 13, + kOrgIdFieldNumber = 2, + kRobotIdFieldNumber = 3, + kPartIdFieldNumber = 4, + kLocationIdFieldNumber = 5, + kComponentNameFieldNumber = 6, + kComponentTypeFieldNumber = 7, + kComponentModelFieldNumber = 8, + kMethodNameFieldNumber = 9, + kBlobPathFieldNumber = 10, + kFileIdFieldNumber = 12, + kSessionIdFieldNumber = 15, + kMimeTypeFieldNumber = 16, + kFileNameFieldNumber = 17, + kIntervalFieldNumber = 1, + kFileSizeBytesFieldNumber = 14, + }; + // map method_parameters = 11 [json_name = "methodParameters", (.tagger.v1.tags) = "bson:\"method_parameters\" json:\"method_parameters\""]; + int method_parameters_size() const; + private: + int _internal_method_parameters_size() const; + public: + void clear_method_parameters(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >& + _internal_method_parameters() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >* + _internal_mutable_method_parameters(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >& + method_parameters() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >* + mutable_method_parameters(); + + // repeated string tags = 13 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; + int tags_size() const; + private: + int _internal_tags_size() const; + public: + void clear_tags(); + const std::string& tags(int index) const; + std::string* mutable_tags(int index); + void set_tags(int index, const std::string& value); + void set_tags(int index, std::string&& value); + void set_tags(int index, const char* value); + void set_tags(int index, const char* value, size_t size); + std::string* add_tags(); + void add_tags(const std::string& value); + void add_tags(std::string&& value); + void add_tags(const char* value); + void add_tags(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& tags() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_tags(); + private: + const std::string& _internal_tags(int index) const; + std::string* _internal_add_tags(); + public: + + // string org_id = 2 [json_name = "orgId", (.tagger.v1.tags) = "bson:\"org_id\" json:\"org_id\""]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); + public: + + // string robot_id = 3 [json_name = "robotId", (.tagger.v1.tags) = "bson:\"robot_id\" json:\"robot_id\""]; + void clear_robot_id(); + const std::string& robot_id() const; + template + void set_robot_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_robot_id(); + PROTOBUF_NODISCARD std::string* release_robot_id(); + void set_allocated_robot_id(std::string* robot_id); + private: + const std::string& _internal_robot_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_id(const std::string& value); + std::string* _internal_mutable_robot_id(); + public: + + // string part_id = 4 [json_name = "partId", (.tagger.v1.tags) = "bson:\"part_id\" json:\"part_id\""]; + void clear_part_id(); + const std::string& part_id() const; + template + void set_part_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_part_id(); + PROTOBUF_NODISCARD std::string* release_part_id(); + void set_allocated_part_id(std::string* part_id); + private: + const std::string& _internal_part_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_id(const std::string& value); + std::string* _internal_mutable_part_id(); + public: + + // string location_id = 5 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"location_id\""]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); + private: + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); + public: + + // string component_name = 6 [json_name = "componentName", (.tagger.v1.tags) = "bson:\"component_name\" json:\"component_name\""]; + void clear_component_name(); + const std::string& component_name() const; + template + void set_component_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_name(); + PROTOBUF_NODISCARD std::string* release_component_name(); + void set_allocated_component_name(std::string* component_name); + private: + const std::string& _internal_component_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_name(const std::string& value); + std::string* _internal_mutable_component_name(); + public: + + // string component_type = 7 [json_name = "componentType", (.tagger.v1.tags) = "bson:\"component_type\" json:\"component_type\""]; + void clear_component_type(); + const std::string& component_type() const; + template + void set_component_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_type(); + PROTOBUF_NODISCARD std::string* release_component_type(); + void set_allocated_component_type(std::string* component_type); + private: + const std::string& _internal_component_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_type(const std::string& value); + std::string* _internal_mutable_component_type(); + public: + + // string component_model = 8 [json_name = "componentModel", (.tagger.v1.tags) = "bson:\"component_model\" json:\"component_model\""]; + void clear_component_model(); + const std::string& component_model() const; + template + void set_component_model(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_model(); + PROTOBUF_NODISCARD std::string* release_component_model(); + void set_allocated_component_model(std::string* component_model); + private: + const std::string& _internal_component_model() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_model(const std::string& value); + std::string* _internal_mutable_component_model(); + public: + + // string method_name = 9 [json_name = "methodName", (.tagger.v1.tags) = "bson:\"method_name\" json:\"method_name\""]; + void clear_method_name(); + const std::string& method_name() const; + template + void set_method_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_method_name(); + PROTOBUF_NODISCARD std::string* release_method_name(); + void set_allocated_method_name(std::string* method_name); + private: + const std::string& _internal_method_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_method_name(const std::string& value); + std::string* _internal_mutable_method_name(); + public: + + // string blob_path = 10 [json_name = "blobPath", (.tagger.v1.tags) = "bson:\"blob_path\" json:\"blob_path\""]; + void clear_blob_path(); + const std::string& blob_path() const; + template + void set_blob_path(ArgT0&& arg0, ArgT... args); + std::string* mutable_blob_path(); + PROTOBUF_NODISCARD std::string* release_blob_path(); + void set_allocated_blob_path(std::string* blob_path); + private: + const std::string& _internal_blob_path() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_blob_path(const std::string& value); + std::string* _internal_mutable_blob_path(); + public: + + // string file_id = 12 [json_name = "fileId", (.tagger.v1.tags) = "bson:\"file_id\" json:\"file_id\""]; + void clear_file_id(); + const std::string& file_id() const; + template + void set_file_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_file_id(); + PROTOBUF_NODISCARD std::string* release_file_id(); + void set_allocated_file_id(std::string* file_id); + private: + const std::string& _internal_file_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_id(const std::string& value); + std::string* _internal_mutable_file_id(); + public: + + // string session_id = 15 [json_name = "sessionId", (.tagger.v1.tags) = "bson:\"session_id\" json:\"session_id\""]; + void clear_session_id(); + const std::string& session_id() const; + template + void set_session_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_session_id(); + PROTOBUF_NODISCARD std::string* release_session_id(); + void set_allocated_session_id(std::string* session_id); + private: + const std::string& _internal_session_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_session_id(const std::string& value); + std::string* _internal_mutable_session_id(); + public: + + // string mime_type = 16 [json_name = "mimeType", (.tagger.v1.tags) = "bson:\"mime_type\" json:\"mime_type\""]; + void clear_mime_type(); + const std::string& mime_type() const; + template + void set_mime_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_mime_type(); + PROTOBUF_NODISCARD std::string* release_mime_type(); + void set_allocated_mime_type(std::string* mime_type); + private: + const std::string& _internal_mime_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); + std::string* _internal_mutable_mime_type(); + public: + + // string file_name = 17 [json_name = "fileName", (.tagger.v1.tags) = "bson:\"file_name\" json:\"file_name\""]; + void clear_file_name(); + const std::string& file_name() const; + template + void set_file_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_file_name(); + PROTOBUF_NODISCARD std::string* release_file_name(); + void set_allocated_file_name(std::string* file_name); + private: + const std::string& _internal_file_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_name(const std::string& value); + std::string* _internal_mutable_file_name(); + public: + + // .viam.app.datasync.v1.CaptureInterval interval = 1 [json_name = "interval", (.tagger.v1.tags) = "bson:\"interval\" json:\"interval\""]; + bool has_interval() const; + private: + bool _internal_has_interval() const; + public: + void clear_interval(); + const ::viam::app::datasync::v1::CaptureInterval& interval() const; + PROTOBUF_NODISCARD ::viam::app::datasync::v1::CaptureInterval* release_interval(); + ::viam::app::datasync::v1::CaptureInterval* mutable_interval(); + void set_allocated_interval(::viam::app::datasync::v1::CaptureInterval* interval); + private: + const ::viam::app::datasync::v1::CaptureInterval& _internal_interval() const; + ::viam::app::datasync::v1::CaptureInterval* _internal_mutable_interval(); + public: + void unsafe_arena_set_allocated_interval( + ::viam::app::datasync::v1::CaptureInterval* interval); + ::viam::app::datasync::v1::CaptureInterval* unsafe_arena_release_interval(); + + // int64 file_size_bytes = 14 [json_name = "fileSizeBytes", (.tagger.v1.tags) = "bson:\"file_size_bytes\" json:\"file_size_bytes\""]; + void clear_file_size_bytes(); + int64_t file_size_bytes() const; + void set_file_size_bytes(int64_t value); + private: + int64_t _internal_file_size_bytes() const; + void _internal_set_file_size_bytes(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.datasync.v1.BinaryCapture) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + BinaryCapture_MethodParametersEntry_DoNotUse, + std::string, ::PROTOBUF_NAMESPACE_ID::Any, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> method_parameters_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField tags_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr robot_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr part_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_model_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr method_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr blob_path_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr session_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_; + ::viam::app::datasync::v1::CaptureInterval* interval_; + int64_t file_size_bytes_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fdatasync_2fv1_2fdata_5fsync_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// SensorMetadata + +// .google.protobuf.Timestamp time_requested = 1 [json_name = "timeRequested"]; +inline bool SensorMetadata::_internal_has_time_requested() const { + return this != internal_default_instance() && _impl_.time_requested_ != nullptr; +} +inline bool SensorMetadata::has_time_requested() const { + return _internal_has_time_requested(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& SensorMetadata::_internal_time_requested() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.time_requested_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& SensorMetadata::time_requested() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.SensorMetadata.time_requested) + return _internal_time_requested(); +} +inline void SensorMetadata::unsafe_arena_set_allocated_time_requested( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_requested) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_requested_); + } + _impl_.time_requested_ = time_requested; + if (time_requested) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.datasync.v1.SensorMetadata.time_requested) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* SensorMetadata::release_time_requested() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_requested_; + _impl_.time_requested_ = 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* SensorMetadata::unsafe_arena_release_time_requested() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.SensorMetadata.time_requested) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_requested_; + _impl_.time_requested_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* SensorMetadata::_internal_mutable_time_requested() { + + if (_impl_.time_requested_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.time_requested_ = p; + } + return _impl_.time_requested_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* SensorMetadata::mutable_time_requested() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_time_requested(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.SensorMetadata.time_requested) + return _msg; +} +inline void SensorMetadata::set_allocated_time_requested(::PROTOBUF_NAMESPACE_ID::Timestamp* time_requested) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_requested_); + } + if (time_requested) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_requested)); + if (message_arena != submessage_arena) { + time_requested = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, time_requested, submessage_arena); + } + + } else { + + } + _impl_.time_requested_ = time_requested; + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.SensorMetadata.time_requested) +} + +// .google.protobuf.Timestamp time_received = 2 [json_name = "timeReceived"]; +inline bool SensorMetadata::_internal_has_time_received() const { + return this != internal_default_instance() && _impl_.time_received_ != nullptr; +} +inline bool SensorMetadata::has_time_received() const { + return _internal_has_time_received(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& SensorMetadata::_internal_time_received() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.time_received_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& SensorMetadata::time_received() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.SensorMetadata.time_received) + return _internal_time_received(); +} +inline void SensorMetadata::unsafe_arena_set_allocated_time_received( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_received) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_received_); + } + _impl_.time_received_ = time_received; + if (time_received) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.datasync.v1.SensorMetadata.time_received) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* SensorMetadata::release_time_received() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_received_; + _impl_.time_received_ = 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* SensorMetadata::unsafe_arena_release_time_received() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.SensorMetadata.time_received) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_received_; + _impl_.time_received_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* SensorMetadata::_internal_mutable_time_received() { + + if (_impl_.time_received_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.time_received_ = p; + } + return _impl_.time_received_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* SensorMetadata::mutable_time_received() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_time_received(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.SensorMetadata.time_received) + return _msg; +} +inline void SensorMetadata::set_allocated_time_received(::PROTOBUF_NAMESPACE_ID::Timestamp* time_received) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_received_); + } + if (time_received) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_received)); + if (message_arena != submessage_arena) { + time_received = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, time_received, submessage_arena); + } + + } else { + + } + _impl_.time_received_ = time_received; + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.SensorMetadata.time_received) +} + +// ------------------------------------------------------------------- + +// SensorData + +// .viam.app.datasync.v1.SensorMetadata metadata = 1 [json_name = "metadata"]; +inline bool SensorData::_internal_has_metadata() const { + return this != internal_default_instance() && _impl_.metadata_ != nullptr; +} +inline bool SensorData::has_metadata() const { + return _internal_has_metadata(); +} +inline void SensorData::clear_metadata() { + if (GetArenaForAllocation() == nullptr && _impl_.metadata_ != nullptr) { + delete _impl_.metadata_; + } + _impl_.metadata_ = nullptr; +} +inline const ::viam::app::datasync::v1::SensorMetadata& SensorData::_internal_metadata() const { + const ::viam::app::datasync::v1::SensorMetadata* p = _impl_.metadata_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::datasync::v1::_SensorMetadata_default_instance_); +} +inline const ::viam::app::datasync::v1::SensorMetadata& SensorData::metadata() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.SensorData.metadata) + return _internal_metadata(); +} +inline void SensorData::unsafe_arena_set_allocated_metadata( + ::viam::app::datasync::v1::SensorMetadata* metadata) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.metadata_); + } + _impl_.metadata_ = metadata; + if (metadata) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.datasync.v1.SensorData.metadata) +} +inline ::viam::app::datasync::v1::SensorMetadata* SensorData::release_metadata() { + + ::viam::app::datasync::v1::SensorMetadata* temp = _impl_.metadata_; + _impl_.metadata_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::datasync::v1::SensorMetadata* SensorData::unsafe_arena_release_metadata() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.SensorData.metadata) + + ::viam::app::datasync::v1::SensorMetadata* temp = _impl_.metadata_; + _impl_.metadata_ = nullptr; + return temp; +} +inline ::viam::app::datasync::v1::SensorMetadata* SensorData::_internal_mutable_metadata() { + + if (_impl_.metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::datasync::v1::SensorMetadata>(GetArenaForAllocation()); + _impl_.metadata_ = p; + } + return _impl_.metadata_; +} +inline ::viam::app::datasync::v1::SensorMetadata* SensorData::mutable_metadata() { + ::viam::app::datasync::v1::SensorMetadata* _msg = _internal_mutable_metadata(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.SensorData.metadata) + return _msg; +} +inline void SensorData::set_allocated_metadata(::viam::app::datasync::v1::SensorMetadata* metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.metadata_; + } + if (metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metadata); + if (message_arena != submessage_arena) { + metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + _impl_.metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.SensorData.metadata) +} + +// .google.protobuf.Struct struct = 2 [json_name = "struct"]; +inline bool SensorData::_internal_has_struct_() const { + return data_case() == kStruct; +} +inline bool SensorData::has_struct_() const { + return _internal_has_struct_(); +} +inline void SensorData::set_has_struct_() { + _impl_._oneof_case_[0] = kStruct; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SensorData::release_struct_() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.SensorData.struct) + if (_internal_has_struct_()) { + clear_has_data(); + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.data_.struct__; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.data_.struct__ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SensorData::_internal_struct_() const { + return _internal_has_struct_() + ? *_impl_.data_.struct__ + : reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::Struct&>(::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SensorData::struct_() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.SensorData.struct) + return _internal_struct_(); +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SensorData::unsafe_arena_release_struct_() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.datasync.v1.SensorData.struct) + if (_internal_has_struct_()) { + clear_has_data(); + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.data_.struct__; + _impl_.data_.struct__ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void SensorData::unsafe_arena_set_allocated_struct_(::PROTOBUF_NAMESPACE_ID::Struct* struct_) { + clear_data(); + if (struct_) { + set_has_struct_(); + _impl_.data_.struct__ = struct_; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.datasync.v1.SensorData.struct) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SensorData::_internal_mutable_struct_() { + if (!_internal_has_struct_()) { + clear_data(); + set_has_struct_(); + _impl_.data_.struct__ = CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Struct >(GetArenaForAllocation()); + } + return _impl_.data_.struct__; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SensorData::mutable_struct_() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_struct_(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.SensorData.struct) + return _msg; +} + +// bytes binary = 3 [json_name = "binary"]; +inline bool SensorData::_internal_has_binary() const { + return data_case() == kBinary; +} +inline bool SensorData::has_binary() const { + return _internal_has_binary(); +} +inline void SensorData::set_has_binary() { + _impl_._oneof_case_[0] = kBinary; +} +inline void SensorData::clear_binary() { + if (_internal_has_binary()) { + _impl_.data_.binary_.Destroy(); + clear_has_data(); + } +} +inline const std::string& SensorData::binary() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.SensorData.binary) + return _internal_binary(); +} +template +inline void SensorData::set_binary(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_binary()) { + clear_data(); + set_has_binary(); + _impl_.data_.binary_.InitDefault(); + } + _impl_.data_.binary_.SetBytes( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.SensorData.binary) +} +inline std::string* SensorData::mutable_binary() { + std::string* _s = _internal_mutable_binary(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.SensorData.binary) + return _s; +} +inline const std::string& SensorData::_internal_binary() const { + if (_internal_has_binary()) { + return _impl_.data_.binary_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void SensorData::_internal_set_binary(const std::string& value) { + if (!_internal_has_binary()) { + clear_data(); + set_has_binary(); + _impl_.data_.binary_.InitDefault(); + } + _impl_.data_.binary_.Set(value, GetArenaForAllocation()); +} +inline std::string* SensorData::_internal_mutable_binary() { + if (!_internal_has_binary()) { + clear_data(); + set_has_binary(); + _impl_.data_.binary_.InitDefault(); + } + return _impl_.data_.binary_.Mutable( GetArenaForAllocation()); +} +inline std::string* SensorData::release_binary() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.SensorData.binary) + if (_internal_has_binary()) { + clear_has_data(); + return _impl_.data_.binary_.Release(); + } else { + return nullptr; + } +} +inline void SensorData::set_allocated_binary(std::string* binary) { + if (has_data()) { + clear_data(); + } + if (binary != nullptr) { + set_has_binary(); + _impl_.data_.binary_.InitAllocated(binary, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.SensorData.binary) +} + +inline bool SensorData::has_data() const { + return data_case() != DATA_NOT_SET; +} +inline void SensorData::clear_has_data() { + _impl_._oneof_case_[0] = DATA_NOT_SET; +} +inline SensorData::DataCase SensorData::data_case() const { + return SensorData::DataCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// FileData + +// bytes data = 1 [json_name = "data"]; +inline void FileData::clear_data() { + _impl_.data_.ClearToEmpty(); +} +inline const std::string& FileData::data() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.FileData.data) + return _internal_data(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void FileData::set_data(ArgT0&& arg0, ArgT... args) { + + _impl_.data_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.FileData.data) +} +inline std::string* FileData::mutable_data() { + std::string* _s = _internal_mutable_data(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.FileData.data) + return _s; +} +inline const std::string& FileData::_internal_data() const { + return _impl_.data_.Get(); +} +inline void FileData::_internal_set_data(const std::string& value) { + + _impl_.data_.Set(value, GetArenaForAllocation()); +} +inline std::string* FileData::_internal_mutable_data() { + + return _impl_.data_.Mutable(GetArenaForAllocation()); +} +inline std::string* FileData::release_data() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.FileData.data) + return _impl_.data_.Release(); +} +inline void FileData::set_allocated_data(std::string* data) { + if (data != nullptr) { + + } else { + + } + _impl_.data_.SetAllocated(data, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.data_.IsDefault()) { + _impl_.data_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.FileData.data) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// UploadMetadata + +// string part_id = 1 [json_name = "partId"]; +inline void UploadMetadata::clear_part_id() { + _impl_.part_id_.ClearToEmpty(); +} +inline const std::string& UploadMetadata::part_id() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.UploadMetadata.part_id) + return _internal_part_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UploadMetadata::set_part_id(ArgT0&& arg0, ArgT... args) { + + _impl_.part_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.UploadMetadata.part_id) +} +inline std::string* UploadMetadata::mutable_part_id() { + std::string* _s = _internal_mutable_part_id(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.UploadMetadata.part_id) + return _s; +} +inline const std::string& UploadMetadata::_internal_part_id() const { + return _impl_.part_id_.Get(); +} +inline void UploadMetadata::_internal_set_part_id(const std::string& value) { + + _impl_.part_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* UploadMetadata::_internal_mutable_part_id() { + + return _impl_.part_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* UploadMetadata::release_part_id() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.UploadMetadata.part_id) + return _impl_.part_id_.Release(); +} +inline void UploadMetadata::set_allocated_part_id(std::string* part_id) { + if (part_id != nullptr) { + + } else { + + } + _impl_.part_id_.SetAllocated(part_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.part_id_.IsDefault()) { + _impl_.part_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.UploadMetadata.part_id) +} + +// string component_type = 2 [json_name = "componentType"]; +inline void UploadMetadata::clear_component_type() { + _impl_.component_type_.ClearToEmpty(); +} +inline const std::string& UploadMetadata::component_type() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.UploadMetadata.component_type) + return _internal_component_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UploadMetadata::set_component_type(ArgT0&& arg0, ArgT... args) { + + _impl_.component_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.UploadMetadata.component_type) +} +inline std::string* UploadMetadata::mutable_component_type() { + std::string* _s = _internal_mutable_component_type(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.UploadMetadata.component_type) + return _s; +} +inline const std::string& UploadMetadata::_internal_component_type() const { + return _impl_.component_type_.Get(); +} +inline void UploadMetadata::_internal_set_component_type(const std::string& value) { + + _impl_.component_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* UploadMetadata::_internal_mutable_component_type() { + + return _impl_.component_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* UploadMetadata::release_component_type() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.UploadMetadata.component_type) + return _impl_.component_type_.Release(); +} +inline void UploadMetadata::set_allocated_component_type(std::string* component_type) { + if (component_type != nullptr) { + + } else { + + } + _impl_.component_type_.SetAllocated(component_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.component_type_.IsDefault()) { + _impl_.component_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.UploadMetadata.component_type) +} + +// string component_name = 3 [json_name = "componentName"]; +inline void UploadMetadata::clear_component_name() { + _impl_.component_name_.ClearToEmpty(); +} +inline const std::string& UploadMetadata::component_name() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.UploadMetadata.component_name) + return _internal_component_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UploadMetadata::set_component_name(ArgT0&& arg0, ArgT... args) { + + _impl_.component_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.UploadMetadata.component_name) +} +inline std::string* UploadMetadata::mutable_component_name() { + std::string* _s = _internal_mutable_component_name(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.UploadMetadata.component_name) + return _s; +} +inline const std::string& UploadMetadata::_internal_component_name() const { + return _impl_.component_name_.Get(); +} +inline void UploadMetadata::_internal_set_component_name(const std::string& value) { + + _impl_.component_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* UploadMetadata::_internal_mutable_component_name() { + + return _impl_.component_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* UploadMetadata::release_component_name() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.UploadMetadata.component_name) + return _impl_.component_name_.Release(); +} +inline void UploadMetadata::set_allocated_component_name(std::string* component_name) { + if (component_name != nullptr) { + + } else { + + } + _impl_.component_name_.SetAllocated(component_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.component_name_.IsDefault()) { + _impl_.component_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.UploadMetadata.component_name) +} + +// string component_model = 4 [json_name = "componentModel"]; +inline void UploadMetadata::clear_component_model() { + _impl_.component_model_.ClearToEmpty(); +} +inline const std::string& UploadMetadata::component_model() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.UploadMetadata.component_model) + return _internal_component_model(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UploadMetadata::set_component_model(ArgT0&& arg0, ArgT... args) { + + _impl_.component_model_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.UploadMetadata.component_model) +} +inline std::string* UploadMetadata::mutable_component_model() { + std::string* _s = _internal_mutable_component_model(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.UploadMetadata.component_model) + return _s; +} +inline const std::string& UploadMetadata::_internal_component_model() const { + return _impl_.component_model_.Get(); +} +inline void UploadMetadata::_internal_set_component_model(const std::string& value) { + + _impl_.component_model_.Set(value, GetArenaForAllocation()); +} +inline std::string* UploadMetadata::_internal_mutable_component_model() { + + return _impl_.component_model_.Mutable(GetArenaForAllocation()); +} +inline std::string* UploadMetadata::release_component_model() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.UploadMetadata.component_model) + return _impl_.component_model_.Release(); +} +inline void UploadMetadata::set_allocated_component_model(std::string* component_model) { + if (component_model != nullptr) { + + } else { + + } + _impl_.component_model_.SetAllocated(component_model, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.component_model_.IsDefault()) { + _impl_.component_model_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.UploadMetadata.component_model) +} + +// string method_name = 5 [json_name = "methodName"]; +inline void UploadMetadata::clear_method_name() { + _impl_.method_name_.ClearToEmpty(); +} +inline const std::string& UploadMetadata::method_name() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.UploadMetadata.method_name) + return _internal_method_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UploadMetadata::set_method_name(ArgT0&& arg0, ArgT... args) { + + _impl_.method_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.UploadMetadata.method_name) +} +inline std::string* UploadMetadata::mutable_method_name() { + std::string* _s = _internal_mutable_method_name(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.UploadMetadata.method_name) + return _s; +} +inline const std::string& UploadMetadata::_internal_method_name() const { + return _impl_.method_name_.Get(); +} +inline void UploadMetadata::_internal_set_method_name(const std::string& value) { + + _impl_.method_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* UploadMetadata::_internal_mutable_method_name() { + + return _impl_.method_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* UploadMetadata::release_method_name() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.UploadMetadata.method_name) + return _impl_.method_name_.Release(); +} +inline void UploadMetadata::set_allocated_method_name(std::string* method_name) { + if (method_name != nullptr) { + + } else { + + } + _impl_.method_name_.SetAllocated(method_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.method_name_.IsDefault()) { + _impl_.method_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.UploadMetadata.method_name) +} + +// .viam.app.datasync.v1.DataType type = 6 [json_name = "type"]; +inline void UploadMetadata::clear_type() { + _impl_.type_ = 0; +} +inline ::viam::app::datasync::v1::DataType UploadMetadata::_internal_type() const { + return static_cast< ::viam::app::datasync::v1::DataType >(_impl_.type_); +} +inline ::viam::app::datasync::v1::DataType UploadMetadata::type() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.UploadMetadata.type) + return _internal_type(); +} +inline void UploadMetadata::_internal_set_type(::viam::app::datasync::v1::DataType value) { + + _impl_.type_ = value; +} +inline void UploadMetadata::set_type(::viam::app::datasync::v1::DataType value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.UploadMetadata.type) +} + +// string file_name = 7 [json_name = "fileName"]; +inline void UploadMetadata::clear_file_name() { + _impl_.file_name_.ClearToEmpty(); +} +inline const std::string& UploadMetadata::file_name() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.UploadMetadata.file_name) + return _internal_file_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UploadMetadata::set_file_name(ArgT0&& arg0, ArgT... args) { + + _impl_.file_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.UploadMetadata.file_name) +} +inline std::string* UploadMetadata::mutable_file_name() { + std::string* _s = _internal_mutable_file_name(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.UploadMetadata.file_name) + return _s; +} +inline const std::string& UploadMetadata::_internal_file_name() const { + return _impl_.file_name_.Get(); +} +inline void UploadMetadata::_internal_set_file_name(const std::string& value) { + + _impl_.file_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* UploadMetadata::_internal_mutable_file_name() { + + return _impl_.file_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* UploadMetadata::release_file_name() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.UploadMetadata.file_name) + return _impl_.file_name_.Release(); +} +inline void UploadMetadata::set_allocated_file_name(std::string* file_name) { + if (file_name != nullptr) { + + } else { + + } + _impl_.file_name_.SetAllocated(file_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.file_name_.IsDefault()) { + _impl_.file_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.UploadMetadata.file_name) +} + +// map method_parameters = 8 [json_name = "methodParameters"]; +inline int UploadMetadata::_internal_method_parameters_size() const { + return _impl_.method_parameters_.size(); +} +inline int UploadMetadata::method_parameters_size() const { + return _internal_method_parameters_size(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >& +UploadMetadata::_internal_method_parameters() const { + return _impl_.method_parameters_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >& +UploadMetadata::method_parameters() const { + // @@protoc_insertion_point(field_map:viam.app.datasync.v1.UploadMetadata.method_parameters) + return _internal_method_parameters(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >* +UploadMetadata::_internal_mutable_method_parameters() { + return _impl_.method_parameters_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >* +UploadMetadata::mutable_method_parameters() { + // @@protoc_insertion_point(field_mutable_map:viam.app.datasync.v1.UploadMetadata.method_parameters) + return _internal_mutable_method_parameters(); +} + +// string file_extension = 9 [json_name = "fileExtension"]; +inline void UploadMetadata::clear_file_extension() { + _impl_.file_extension_.ClearToEmpty(); +} +inline const std::string& UploadMetadata::file_extension() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.UploadMetadata.file_extension) + return _internal_file_extension(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UploadMetadata::set_file_extension(ArgT0&& arg0, ArgT... args) { + + _impl_.file_extension_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.UploadMetadata.file_extension) +} +inline std::string* UploadMetadata::mutable_file_extension() { + std::string* _s = _internal_mutable_file_extension(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.UploadMetadata.file_extension) + return _s; +} +inline const std::string& UploadMetadata::_internal_file_extension() const { + return _impl_.file_extension_.Get(); +} +inline void UploadMetadata::_internal_set_file_extension(const std::string& value) { + + _impl_.file_extension_.Set(value, GetArenaForAllocation()); +} +inline std::string* UploadMetadata::_internal_mutable_file_extension() { + + return _impl_.file_extension_.Mutable(GetArenaForAllocation()); +} +inline std::string* UploadMetadata::release_file_extension() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.UploadMetadata.file_extension) + return _impl_.file_extension_.Release(); +} +inline void UploadMetadata::set_allocated_file_extension(std::string* file_extension) { + if (file_extension != nullptr) { + + } else { + + } + _impl_.file_extension_.SetAllocated(file_extension, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.file_extension_.IsDefault()) { + _impl_.file_extension_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.UploadMetadata.file_extension) +} + +// repeated string tags = 10 [json_name = "tags"]; +inline int UploadMetadata::_internal_tags_size() const { + return _impl_.tags_.size(); +} +inline int UploadMetadata::tags_size() const { + return _internal_tags_size(); +} +inline void UploadMetadata::clear_tags() { + _impl_.tags_.Clear(); +} +inline std::string* UploadMetadata::add_tags() { + std::string* _s = _internal_add_tags(); + // @@protoc_insertion_point(field_add_mutable:viam.app.datasync.v1.UploadMetadata.tags) + return _s; +} +inline const std::string& UploadMetadata::_internal_tags(int index) const { + return _impl_.tags_.Get(index); +} +inline const std::string& UploadMetadata::tags(int index) const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.UploadMetadata.tags) + return _internal_tags(index); +} +inline std::string* UploadMetadata::mutable_tags(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.UploadMetadata.tags) + return _impl_.tags_.Mutable(index); +} +inline void UploadMetadata::set_tags(int index, const std::string& value) { + _impl_.tags_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.UploadMetadata.tags) +} +inline void UploadMetadata::set_tags(int index, std::string&& value) { + _impl_.tags_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.UploadMetadata.tags) +} +inline void UploadMetadata::set_tags(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.tags_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.datasync.v1.UploadMetadata.tags) +} +inline void UploadMetadata::set_tags(int index, const char* value, size_t size) { + _impl_.tags_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.datasync.v1.UploadMetadata.tags) +} +inline std::string* UploadMetadata::_internal_add_tags() { + return _impl_.tags_.Add(); +} +inline void UploadMetadata::add_tags(const std::string& value) { + _impl_.tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.datasync.v1.UploadMetadata.tags) +} +inline void UploadMetadata::add_tags(std::string&& value) { + _impl_.tags_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.datasync.v1.UploadMetadata.tags) +} +inline void UploadMetadata::add_tags(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.datasync.v1.UploadMetadata.tags) +} +inline void UploadMetadata::add_tags(const char* value, size_t size) { + _impl_.tags_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.datasync.v1.UploadMetadata.tags) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +UploadMetadata::tags() const { + // @@protoc_insertion_point(field_list:viam.app.datasync.v1.UploadMetadata.tags) + return _impl_.tags_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +UploadMetadata::mutable_tags() { + // @@protoc_insertion_point(field_mutable_list:viam.app.datasync.v1.UploadMetadata.tags) + return &_impl_.tags_; +} + +// string session_id = 11 [json_name = "sessionId"]; +inline void UploadMetadata::clear_session_id() { + _impl_.session_id_.ClearToEmpty(); +} +inline const std::string& UploadMetadata::session_id() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.UploadMetadata.session_id) + return _internal_session_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UploadMetadata::set_session_id(ArgT0&& arg0, ArgT... args) { + + _impl_.session_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.UploadMetadata.session_id) +} +inline std::string* UploadMetadata::mutable_session_id() { + std::string* _s = _internal_mutable_session_id(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.UploadMetadata.session_id) + return _s; +} +inline const std::string& UploadMetadata::_internal_session_id() const { + return _impl_.session_id_.Get(); +} +inline void UploadMetadata::_internal_set_session_id(const std::string& value) { + + _impl_.session_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* UploadMetadata::_internal_mutable_session_id() { + + return _impl_.session_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* UploadMetadata::release_session_id() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.UploadMetadata.session_id) + return _impl_.session_id_.Release(); +} +inline void UploadMetadata::set_allocated_session_id(std::string* session_id) { + if (session_id != nullptr) { + + } else { + + } + _impl_.session_id_.SetAllocated(session_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.session_id_.IsDefault()) { + _impl_.session_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.UploadMetadata.session_id) +} + +// ------------------------------------------------------------------- + +// UploadRequest + +// .viam.app.datasync.v1.UploadMetadata metadata = 1 [json_name = "metadata"]; +inline bool UploadRequest::_internal_has_metadata() const { + return upload_packet_case() == kMetadata; +} +inline bool UploadRequest::has_metadata() const { + return _internal_has_metadata(); +} +inline void UploadRequest::set_has_metadata() { + _impl_._oneof_case_[0] = kMetadata; +} +inline void UploadRequest::clear_metadata() { + if (_internal_has_metadata()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.upload_packet_.metadata_; + } + clear_has_upload_packet(); + } +} +inline ::viam::app::datasync::v1::UploadMetadata* UploadRequest::release_metadata() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.UploadRequest.metadata) + if (_internal_has_metadata()) { + clear_has_upload_packet(); + ::viam::app::datasync::v1::UploadMetadata* temp = _impl_.upload_packet_.metadata_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.upload_packet_.metadata_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::app::datasync::v1::UploadMetadata& UploadRequest::_internal_metadata() const { + return _internal_has_metadata() + ? *_impl_.upload_packet_.metadata_ + : reinterpret_cast< ::viam::app::datasync::v1::UploadMetadata&>(::viam::app::datasync::v1::_UploadMetadata_default_instance_); +} +inline const ::viam::app::datasync::v1::UploadMetadata& UploadRequest::metadata() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.UploadRequest.metadata) + return _internal_metadata(); +} +inline ::viam::app::datasync::v1::UploadMetadata* UploadRequest::unsafe_arena_release_metadata() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.datasync.v1.UploadRequest.metadata) + if (_internal_has_metadata()) { + clear_has_upload_packet(); + ::viam::app::datasync::v1::UploadMetadata* temp = _impl_.upload_packet_.metadata_; + _impl_.upload_packet_.metadata_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void UploadRequest::unsafe_arena_set_allocated_metadata(::viam::app::datasync::v1::UploadMetadata* metadata) { + clear_upload_packet(); + if (metadata) { + set_has_metadata(); + _impl_.upload_packet_.metadata_ = metadata; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.datasync.v1.UploadRequest.metadata) +} +inline ::viam::app::datasync::v1::UploadMetadata* UploadRequest::_internal_mutable_metadata() { + if (!_internal_has_metadata()) { + clear_upload_packet(); + set_has_metadata(); + _impl_.upload_packet_.metadata_ = CreateMaybeMessage< ::viam::app::datasync::v1::UploadMetadata >(GetArenaForAllocation()); + } + return _impl_.upload_packet_.metadata_; +} +inline ::viam::app::datasync::v1::UploadMetadata* UploadRequest::mutable_metadata() { + ::viam::app::datasync::v1::UploadMetadata* _msg = _internal_mutable_metadata(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.UploadRequest.metadata) + return _msg; +} + +// .viam.app.datasync.v1.SensorData sensor_contents = 2 [json_name = "sensorContents"]; +inline bool UploadRequest::_internal_has_sensor_contents() const { + return upload_packet_case() == kSensorContents; +} +inline bool UploadRequest::has_sensor_contents() const { + return _internal_has_sensor_contents(); +} +inline void UploadRequest::set_has_sensor_contents() { + _impl_._oneof_case_[0] = kSensorContents; +} +inline void UploadRequest::clear_sensor_contents() { + if (_internal_has_sensor_contents()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.upload_packet_.sensor_contents_; + } + clear_has_upload_packet(); + } +} +inline ::viam::app::datasync::v1::SensorData* UploadRequest::release_sensor_contents() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.UploadRequest.sensor_contents) + if (_internal_has_sensor_contents()) { + clear_has_upload_packet(); + ::viam::app::datasync::v1::SensorData* temp = _impl_.upload_packet_.sensor_contents_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.upload_packet_.sensor_contents_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::app::datasync::v1::SensorData& UploadRequest::_internal_sensor_contents() const { + return _internal_has_sensor_contents() + ? *_impl_.upload_packet_.sensor_contents_ + : reinterpret_cast< ::viam::app::datasync::v1::SensorData&>(::viam::app::datasync::v1::_SensorData_default_instance_); +} +inline const ::viam::app::datasync::v1::SensorData& UploadRequest::sensor_contents() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.UploadRequest.sensor_contents) + return _internal_sensor_contents(); +} +inline ::viam::app::datasync::v1::SensorData* UploadRequest::unsafe_arena_release_sensor_contents() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.datasync.v1.UploadRequest.sensor_contents) + if (_internal_has_sensor_contents()) { + clear_has_upload_packet(); + ::viam::app::datasync::v1::SensorData* temp = _impl_.upload_packet_.sensor_contents_; + _impl_.upload_packet_.sensor_contents_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void UploadRequest::unsafe_arena_set_allocated_sensor_contents(::viam::app::datasync::v1::SensorData* sensor_contents) { + clear_upload_packet(); + if (sensor_contents) { + set_has_sensor_contents(); + _impl_.upload_packet_.sensor_contents_ = sensor_contents; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.datasync.v1.UploadRequest.sensor_contents) +} +inline ::viam::app::datasync::v1::SensorData* UploadRequest::_internal_mutable_sensor_contents() { + if (!_internal_has_sensor_contents()) { + clear_upload_packet(); + set_has_sensor_contents(); + _impl_.upload_packet_.sensor_contents_ = CreateMaybeMessage< ::viam::app::datasync::v1::SensorData >(GetArenaForAllocation()); + } + return _impl_.upload_packet_.sensor_contents_; +} +inline ::viam::app::datasync::v1::SensorData* UploadRequest::mutable_sensor_contents() { + ::viam::app::datasync::v1::SensorData* _msg = _internal_mutable_sensor_contents(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.UploadRequest.sensor_contents) + return _msg; +} + +// .viam.app.datasync.v1.FileData file_contents = 3 [json_name = "fileContents"]; +inline bool UploadRequest::_internal_has_file_contents() const { + return upload_packet_case() == kFileContents; +} +inline bool UploadRequest::has_file_contents() const { + return _internal_has_file_contents(); +} +inline void UploadRequest::set_has_file_contents() { + _impl_._oneof_case_[0] = kFileContents; +} +inline void UploadRequest::clear_file_contents() { + if (_internal_has_file_contents()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.upload_packet_.file_contents_; + } + clear_has_upload_packet(); + } +} +inline ::viam::app::datasync::v1::FileData* UploadRequest::release_file_contents() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.UploadRequest.file_contents) + if (_internal_has_file_contents()) { + clear_has_upload_packet(); + ::viam::app::datasync::v1::FileData* temp = _impl_.upload_packet_.file_contents_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.upload_packet_.file_contents_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::app::datasync::v1::FileData& UploadRequest::_internal_file_contents() const { + return _internal_has_file_contents() + ? *_impl_.upload_packet_.file_contents_ + : reinterpret_cast< ::viam::app::datasync::v1::FileData&>(::viam::app::datasync::v1::_FileData_default_instance_); +} +inline const ::viam::app::datasync::v1::FileData& UploadRequest::file_contents() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.UploadRequest.file_contents) + return _internal_file_contents(); +} +inline ::viam::app::datasync::v1::FileData* UploadRequest::unsafe_arena_release_file_contents() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.datasync.v1.UploadRequest.file_contents) + if (_internal_has_file_contents()) { + clear_has_upload_packet(); + ::viam::app::datasync::v1::FileData* temp = _impl_.upload_packet_.file_contents_; + _impl_.upload_packet_.file_contents_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void UploadRequest::unsafe_arena_set_allocated_file_contents(::viam::app::datasync::v1::FileData* file_contents) { + clear_upload_packet(); + if (file_contents) { + set_has_file_contents(); + _impl_.upload_packet_.file_contents_ = file_contents; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.datasync.v1.UploadRequest.file_contents) +} +inline ::viam::app::datasync::v1::FileData* UploadRequest::_internal_mutable_file_contents() { + if (!_internal_has_file_contents()) { + clear_upload_packet(); + set_has_file_contents(); + _impl_.upload_packet_.file_contents_ = CreateMaybeMessage< ::viam::app::datasync::v1::FileData >(GetArenaForAllocation()); + } + return _impl_.upload_packet_.file_contents_; +} +inline ::viam::app::datasync::v1::FileData* UploadRequest::mutable_file_contents() { + ::viam::app::datasync::v1::FileData* _msg = _internal_mutable_file_contents(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.UploadRequest.file_contents) + return _msg; +} + +inline bool UploadRequest::has_upload_packet() const { + return upload_packet_case() != UPLOAD_PACKET_NOT_SET; +} +inline void UploadRequest::clear_has_upload_packet() { + _impl_._oneof_case_[0] = UPLOAD_PACKET_NOT_SET; +} +inline UploadRequest::UploadPacketCase UploadRequest::upload_packet_case() const { + return UploadRequest::UploadPacketCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// UploadResponse + +// int32 requests_written = 1 [json_name = "requestsWritten"]; +inline void UploadResponse::clear_requests_written() { + _impl_.requests_written_ = 0; +} +inline int32_t UploadResponse::_internal_requests_written() const { + return _impl_.requests_written_; +} +inline int32_t UploadResponse::requests_written() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.UploadResponse.requests_written) + return _internal_requests_written(); +} +inline void UploadResponse::_internal_set_requests_written(int32_t value) { + + _impl_.requests_written_ = value; +} +inline void UploadResponse::set_requests_written(int32_t value) { + _internal_set_requests_written(value); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.UploadResponse.requests_written) +} + +// ------------------------------------------------------------------- + +// CaptureInterval + +// .google.protobuf.Timestamp start = 1 [json_name = "start"]; +inline bool CaptureInterval::_internal_has_start() const { + return this != internal_default_instance() && _impl_.start_ != nullptr; +} +inline bool CaptureInterval::has_start() const { + return _internal_has_start(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& CaptureInterval::_internal_start() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.start_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& CaptureInterval::start() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.CaptureInterval.start) + return _internal_start(); +} +inline void CaptureInterval::unsafe_arena_set_allocated_start( + ::PROTOBUF_NAMESPACE_ID::Timestamp* start) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.start_); + } + _impl_.start_ = start; + if (start) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.datasync.v1.CaptureInterval.start) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CaptureInterval::release_start() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.start_; + _impl_.start_ = 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* CaptureInterval::unsafe_arena_release_start() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.CaptureInterval.start) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.start_; + _impl_.start_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CaptureInterval::_internal_mutable_start() { + + if (_impl_.start_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.start_ = p; + } + return _impl_.start_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CaptureInterval::mutable_start() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_start(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.CaptureInterval.start) + return _msg; +} +inline void CaptureInterval::set_allocated_start(::PROTOBUF_NAMESPACE_ID::Timestamp* start) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.start_); + } + if (start) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(start)); + if (message_arena != submessage_arena) { + start = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, start, submessage_arena); + } + + } else { + + } + _impl_.start_ = start; + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.CaptureInterval.start) +} + +// .google.protobuf.Timestamp end = 2 [json_name = "end"]; +inline bool CaptureInterval::_internal_has_end() const { + return this != internal_default_instance() && _impl_.end_ != nullptr; +} +inline bool CaptureInterval::has_end() const { + return _internal_has_end(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& CaptureInterval::_internal_end() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.end_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& CaptureInterval::end() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.CaptureInterval.end) + return _internal_end(); +} +inline void CaptureInterval::unsafe_arena_set_allocated_end( + ::PROTOBUF_NAMESPACE_ID::Timestamp* end) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.end_); + } + _impl_.end_ = end; + if (end) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.datasync.v1.CaptureInterval.end) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CaptureInterval::release_end() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.end_; + _impl_.end_ = 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* CaptureInterval::unsafe_arena_release_end() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.CaptureInterval.end) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.end_; + _impl_.end_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CaptureInterval::_internal_mutable_end() { + + if (_impl_.end_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.end_ = p; + } + return _impl_.end_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CaptureInterval::mutable_end() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_end(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.CaptureInterval.end) + return _msg; +} +inline void CaptureInterval::set_allocated_end(::PROTOBUF_NAMESPACE_ID::Timestamp* end) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.end_); + } + if (end) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(end)); + if (message_arena != submessage_arena) { + end = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, end, submessage_arena); + } + + } else { + + } + _impl_.end_ = end; + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.CaptureInterval.end) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// DataCaptureMetadata + +// string component_type = 1 [json_name = "componentType"]; +inline void DataCaptureMetadata::clear_component_type() { + _impl_.component_type_.ClearToEmpty(); +} +inline const std::string& DataCaptureMetadata::component_type() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.DataCaptureMetadata.component_type) + return _internal_component_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DataCaptureMetadata::set_component_type(ArgT0&& arg0, ArgT... args) { + + _impl_.component_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.DataCaptureMetadata.component_type) +} +inline std::string* DataCaptureMetadata::mutable_component_type() { + std::string* _s = _internal_mutable_component_type(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.DataCaptureMetadata.component_type) + return _s; +} +inline const std::string& DataCaptureMetadata::_internal_component_type() const { + return _impl_.component_type_.Get(); +} +inline void DataCaptureMetadata::_internal_set_component_type(const std::string& value) { + + _impl_.component_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* DataCaptureMetadata::_internal_mutable_component_type() { + + return _impl_.component_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* DataCaptureMetadata::release_component_type() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.DataCaptureMetadata.component_type) + return _impl_.component_type_.Release(); +} +inline void DataCaptureMetadata::set_allocated_component_type(std::string* component_type) { + if (component_type != nullptr) { + + } else { + + } + _impl_.component_type_.SetAllocated(component_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.component_type_.IsDefault()) { + _impl_.component_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.DataCaptureMetadata.component_type) +} + +// string component_name = 2 [json_name = "componentName"]; +inline void DataCaptureMetadata::clear_component_name() { + _impl_.component_name_.ClearToEmpty(); +} +inline const std::string& DataCaptureMetadata::component_name() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.DataCaptureMetadata.component_name) + return _internal_component_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DataCaptureMetadata::set_component_name(ArgT0&& arg0, ArgT... args) { + + _impl_.component_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.DataCaptureMetadata.component_name) +} +inline std::string* DataCaptureMetadata::mutable_component_name() { + std::string* _s = _internal_mutable_component_name(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.DataCaptureMetadata.component_name) + return _s; +} +inline const std::string& DataCaptureMetadata::_internal_component_name() const { + return _impl_.component_name_.Get(); +} +inline void DataCaptureMetadata::_internal_set_component_name(const std::string& value) { + + _impl_.component_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* DataCaptureMetadata::_internal_mutable_component_name() { + + return _impl_.component_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* DataCaptureMetadata::release_component_name() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.DataCaptureMetadata.component_name) + return _impl_.component_name_.Release(); +} +inline void DataCaptureMetadata::set_allocated_component_name(std::string* component_name) { + if (component_name != nullptr) { + + } else { + + } + _impl_.component_name_.SetAllocated(component_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.component_name_.IsDefault()) { + _impl_.component_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.DataCaptureMetadata.component_name) +} + +// string component_model = 3 [json_name = "componentModel"]; +inline void DataCaptureMetadata::clear_component_model() { + _impl_.component_model_.ClearToEmpty(); +} +inline const std::string& DataCaptureMetadata::component_model() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.DataCaptureMetadata.component_model) + return _internal_component_model(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DataCaptureMetadata::set_component_model(ArgT0&& arg0, ArgT... args) { + + _impl_.component_model_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.DataCaptureMetadata.component_model) +} +inline std::string* DataCaptureMetadata::mutable_component_model() { + std::string* _s = _internal_mutable_component_model(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.DataCaptureMetadata.component_model) + return _s; +} +inline const std::string& DataCaptureMetadata::_internal_component_model() const { + return _impl_.component_model_.Get(); +} +inline void DataCaptureMetadata::_internal_set_component_model(const std::string& value) { + + _impl_.component_model_.Set(value, GetArenaForAllocation()); +} +inline std::string* DataCaptureMetadata::_internal_mutable_component_model() { + + return _impl_.component_model_.Mutable(GetArenaForAllocation()); +} +inline std::string* DataCaptureMetadata::release_component_model() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.DataCaptureMetadata.component_model) + return _impl_.component_model_.Release(); +} +inline void DataCaptureMetadata::set_allocated_component_model(std::string* component_model) { + if (component_model != nullptr) { + + } else { + + } + _impl_.component_model_.SetAllocated(component_model, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.component_model_.IsDefault()) { + _impl_.component_model_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.DataCaptureMetadata.component_model) +} + +// string method_name = 4 [json_name = "methodName"]; +inline void DataCaptureMetadata::clear_method_name() { + _impl_.method_name_.ClearToEmpty(); +} +inline const std::string& DataCaptureMetadata::method_name() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.DataCaptureMetadata.method_name) + return _internal_method_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DataCaptureMetadata::set_method_name(ArgT0&& arg0, ArgT... args) { + + _impl_.method_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.DataCaptureMetadata.method_name) +} +inline std::string* DataCaptureMetadata::mutable_method_name() { + std::string* _s = _internal_mutable_method_name(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.DataCaptureMetadata.method_name) + return _s; +} +inline const std::string& DataCaptureMetadata::_internal_method_name() const { + return _impl_.method_name_.Get(); +} +inline void DataCaptureMetadata::_internal_set_method_name(const std::string& value) { + + _impl_.method_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* DataCaptureMetadata::_internal_mutable_method_name() { + + return _impl_.method_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* DataCaptureMetadata::release_method_name() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.DataCaptureMetadata.method_name) + return _impl_.method_name_.Release(); +} +inline void DataCaptureMetadata::set_allocated_method_name(std::string* method_name) { + if (method_name != nullptr) { + + } else { + + } + _impl_.method_name_.SetAllocated(method_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.method_name_.IsDefault()) { + _impl_.method_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.DataCaptureMetadata.method_name) +} + +// .viam.app.datasync.v1.DataType type = 5 [json_name = "type"]; +inline void DataCaptureMetadata::clear_type() { + _impl_.type_ = 0; +} +inline ::viam::app::datasync::v1::DataType DataCaptureMetadata::_internal_type() const { + return static_cast< ::viam::app::datasync::v1::DataType >(_impl_.type_); +} +inline ::viam::app::datasync::v1::DataType DataCaptureMetadata::type() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.DataCaptureMetadata.type) + return _internal_type(); +} +inline void DataCaptureMetadata::_internal_set_type(::viam::app::datasync::v1::DataType value) { + + _impl_.type_ = value; +} +inline void DataCaptureMetadata::set_type(::viam::app::datasync::v1::DataType value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.DataCaptureMetadata.type) +} + +// map method_parameters = 6 [json_name = "methodParameters"]; +inline int DataCaptureMetadata::_internal_method_parameters_size() const { + return _impl_.method_parameters_.size(); +} +inline int DataCaptureMetadata::method_parameters_size() const { + return _internal_method_parameters_size(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >& +DataCaptureMetadata::_internal_method_parameters() const { + return _impl_.method_parameters_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >& +DataCaptureMetadata::method_parameters() const { + // @@protoc_insertion_point(field_map:viam.app.datasync.v1.DataCaptureMetadata.method_parameters) + return _internal_method_parameters(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >* +DataCaptureMetadata::_internal_mutable_method_parameters() { + return _impl_.method_parameters_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >* +DataCaptureMetadata::mutable_method_parameters() { + // @@protoc_insertion_point(field_mutable_map:viam.app.datasync.v1.DataCaptureMetadata.method_parameters) + return _internal_mutable_method_parameters(); +} + +// string file_extension = 7 [json_name = "fileExtension"]; +inline void DataCaptureMetadata::clear_file_extension() { + _impl_.file_extension_.ClearToEmpty(); +} +inline const std::string& DataCaptureMetadata::file_extension() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.DataCaptureMetadata.file_extension) + return _internal_file_extension(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DataCaptureMetadata::set_file_extension(ArgT0&& arg0, ArgT... args) { + + _impl_.file_extension_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.DataCaptureMetadata.file_extension) +} +inline std::string* DataCaptureMetadata::mutable_file_extension() { + std::string* _s = _internal_mutable_file_extension(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.DataCaptureMetadata.file_extension) + return _s; +} +inline const std::string& DataCaptureMetadata::_internal_file_extension() const { + return _impl_.file_extension_.Get(); +} +inline void DataCaptureMetadata::_internal_set_file_extension(const std::string& value) { + + _impl_.file_extension_.Set(value, GetArenaForAllocation()); +} +inline std::string* DataCaptureMetadata::_internal_mutable_file_extension() { + + return _impl_.file_extension_.Mutable(GetArenaForAllocation()); +} +inline std::string* DataCaptureMetadata::release_file_extension() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.DataCaptureMetadata.file_extension) + return _impl_.file_extension_.Release(); +} +inline void DataCaptureMetadata::set_allocated_file_extension(std::string* file_extension) { + if (file_extension != nullptr) { + + } else { + + } + _impl_.file_extension_.SetAllocated(file_extension, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.file_extension_.IsDefault()) { + _impl_.file_extension_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.DataCaptureMetadata.file_extension) +} + +// repeated string tags = 8 [json_name = "tags"]; +inline int DataCaptureMetadata::_internal_tags_size() const { + return _impl_.tags_.size(); +} +inline int DataCaptureMetadata::tags_size() const { + return _internal_tags_size(); +} +inline void DataCaptureMetadata::clear_tags() { + _impl_.tags_.Clear(); +} +inline std::string* DataCaptureMetadata::add_tags() { + std::string* _s = _internal_add_tags(); + // @@protoc_insertion_point(field_add_mutable:viam.app.datasync.v1.DataCaptureMetadata.tags) + return _s; +} +inline const std::string& DataCaptureMetadata::_internal_tags(int index) const { + return _impl_.tags_.Get(index); +} +inline const std::string& DataCaptureMetadata::tags(int index) const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.DataCaptureMetadata.tags) + return _internal_tags(index); +} +inline std::string* DataCaptureMetadata::mutable_tags(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.DataCaptureMetadata.tags) + return _impl_.tags_.Mutable(index); +} +inline void DataCaptureMetadata::set_tags(int index, const std::string& value) { + _impl_.tags_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.DataCaptureMetadata.tags) +} +inline void DataCaptureMetadata::set_tags(int index, std::string&& value) { + _impl_.tags_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.DataCaptureMetadata.tags) +} +inline void DataCaptureMetadata::set_tags(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.tags_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.datasync.v1.DataCaptureMetadata.tags) +} +inline void DataCaptureMetadata::set_tags(int index, const char* value, size_t size) { + _impl_.tags_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.datasync.v1.DataCaptureMetadata.tags) +} +inline std::string* DataCaptureMetadata::_internal_add_tags() { + return _impl_.tags_.Add(); +} +inline void DataCaptureMetadata::add_tags(const std::string& value) { + _impl_.tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.datasync.v1.DataCaptureMetadata.tags) +} +inline void DataCaptureMetadata::add_tags(std::string&& value) { + _impl_.tags_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.datasync.v1.DataCaptureMetadata.tags) +} +inline void DataCaptureMetadata::add_tags(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.datasync.v1.DataCaptureMetadata.tags) +} +inline void DataCaptureMetadata::add_tags(const char* value, size_t size) { + _impl_.tags_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.datasync.v1.DataCaptureMetadata.tags) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +DataCaptureMetadata::tags() const { + // @@protoc_insertion_point(field_list:viam.app.datasync.v1.DataCaptureMetadata.tags) + return _impl_.tags_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +DataCaptureMetadata::mutable_tags() { + // @@protoc_insertion_point(field_mutable_list:viam.app.datasync.v1.DataCaptureMetadata.tags) + return &_impl_.tags_; +} + +// string session_id = 9 [json_name = "sessionId"]; +inline void DataCaptureMetadata::clear_session_id() { + _impl_.session_id_.ClearToEmpty(); +} +inline const std::string& DataCaptureMetadata::session_id() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.DataCaptureMetadata.session_id) + return _internal_session_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DataCaptureMetadata::set_session_id(ArgT0&& arg0, ArgT... args) { + + _impl_.session_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.DataCaptureMetadata.session_id) +} +inline std::string* DataCaptureMetadata::mutable_session_id() { + std::string* _s = _internal_mutable_session_id(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.DataCaptureMetadata.session_id) + return _s; +} +inline const std::string& DataCaptureMetadata::_internal_session_id() const { + return _impl_.session_id_.Get(); +} +inline void DataCaptureMetadata::_internal_set_session_id(const std::string& value) { + + _impl_.session_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* DataCaptureMetadata::_internal_mutable_session_id() { + + return _impl_.session_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* DataCaptureMetadata::release_session_id() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.DataCaptureMetadata.session_id) + return _impl_.session_id_.Release(); +} +inline void DataCaptureMetadata::set_allocated_session_id(std::string* session_id) { + if (session_id != nullptr) { + + } else { + + } + _impl_.session_id_.SetAllocated(session_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.session_id_.IsDefault()) { + _impl_.session_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.DataCaptureMetadata.session_id) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// TabularCapture + +// .viam.app.datasync.v1.CaptureInterval interval = 1 [json_name = "interval", (.tagger.v1.tags) = "bson:\"interval\" json:\"interval\""]; +inline bool TabularCapture::_internal_has_interval() const { + return this != internal_default_instance() && _impl_.interval_ != nullptr; +} +inline bool TabularCapture::has_interval() const { + return _internal_has_interval(); +} +inline void TabularCapture::clear_interval() { + if (GetArenaForAllocation() == nullptr && _impl_.interval_ != nullptr) { + delete _impl_.interval_; + } + _impl_.interval_ = nullptr; +} +inline const ::viam::app::datasync::v1::CaptureInterval& TabularCapture::_internal_interval() const { + const ::viam::app::datasync::v1::CaptureInterval* p = _impl_.interval_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::datasync::v1::_CaptureInterval_default_instance_); +} +inline const ::viam::app::datasync::v1::CaptureInterval& TabularCapture::interval() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.TabularCapture.interval) + return _internal_interval(); +} +inline void TabularCapture::unsafe_arena_set_allocated_interval( + ::viam::app::datasync::v1::CaptureInterval* interval) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.interval_); + } + _impl_.interval_ = interval; + if (interval) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.datasync.v1.TabularCapture.interval) +} +inline ::viam::app::datasync::v1::CaptureInterval* TabularCapture::release_interval() { + + ::viam::app::datasync::v1::CaptureInterval* temp = _impl_.interval_; + _impl_.interval_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::datasync::v1::CaptureInterval* TabularCapture::unsafe_arena_release_interval() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.TabularCapture.interval) + + ::viam::app::datasync::v1::CaptureInterval* temp = _impl_.interval_; + _impl_.interval_ = nullptr; + return temp; +} +inline ::viam::app::datasync::v1::CaptureInterval* TabularCapture::_internal_mutable_interval() { + + if (_impl_.interval_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::datasync::v1::CaptureInterval>(GetArenaForAllocation()); + _impl_.interval_ = p; + } + return _impl_.interval_; +} +inline ::viam::app::datasync::v1::CaptureInterval* TabularCapture::mutable_interval() { + ::viam::app::datasync::v1::CaptureInterval* _msg = _internal_mutable_interval(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.TabularCapture.interval) + return _msg; +} +inline void TabularCapture::set_allocated_interval(::viam::app::datasync::v1::CaptureInterval* interval) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.interval_; + } + if (interval) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(interval); + if (message_arena != submessage_arena) { + interval = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, interval, submessage_arena); + } + + } else { + + } + _impl_.interval_ = interval; + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.TabularCapture.interval) +} + +// string org_id = 2 [json_name = "orgId", (.tagger.v1.tags) = "bson:\"org_id\" json:\"org_id\""]; +inline void TabularCapture::clear_org_id() { + _impl_.org_id_.ClearToEmpty(); +} +inline const std::string& TabularCapture::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.TabularCapture.org_id) + return _internal_org_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TabularCapture::set_org_id(ArgT0&& arg0, ArgT... args) { + + _impl_.org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.TabularCapture.org_id) +} +inline std::string* TabularCapture::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.TabularCapture.org_id) + return _s; +} +inline const std::string& TabularCapture::_internal_org_id() const { + return _impl_.org_id_.Get(); +} +inline void TabularCapture::_internal_set_org_id(const std::string& value) { + + _impl_.org_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* TabularCapture::_internal_mutable_org_id() { + + return _impl_.org_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* TabularCapture::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.TabularCapture.org_id) + return _impl_.org_id_.Release(); +} +inline void TabularCapture::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + _impl_.org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.org_id_.IsDefault()) { + _impl_.org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.TabularCapture.org_id) +} + +// string robot_id = 3 [json_name = "robotId", (.tagger.v1.tags) = "bson:\"robot_id\" json:\"robot_id\""]; +inline void TabularCapture::clear_robot_id() { + _impl_.robot_id_.ClearToEmpty(); +} +inline const std::string& TabularCapture::robot_id() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.TabularCapture.robot_id) + return _internal_robot_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TabularCapture::set_robot_id(ArgT0&& arg0, ArgT... args) { + + _impl_.robot_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.TabularCapture.robot_id) +} +inline std::string* TabularCapture::mutable_robot_id() { + std::string* _s = _internal_mutable_robot_id(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.TabularCapture.robot_id) + return _s; +} +inline const std::string& TabularCapture::_internal_robot_id() const { + return _impl_.robot_id_.Get(); +} +inline void TabularCapture::_internal_set_robot_id(const std::string& value) { + + _impl_.robot_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* TabularCapture::_internal_mutable_robot_id() { + + return _impl_.robot_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* TabularCapture::release_robot_id() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.TabularCapture.robot_id) + return _impl_.robot_id_.Release(); +} +inline void TabularCapture::set_allocated_robot_id(std::string* robot_id) { + if (robot_id != nullptr) { + + } else { + + } + _impl_.robot_id_.SetAllocated(robot_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.robot_id_.IsDefault()) { + _impl_.robot_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.TabularCapture.robot_id) +} + +// string part_id = 4 [json_name = "partId", (.tagger.v1.tags) = "bson:\"part_id\" json:\"part_id\""]; +inline void TabularCapture::clear_part_id() { + _impl_.part_id_.ClearToEmpty(); +} +inline const std::string& TabularCapture::part_id() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.TabularCapture.part_id) + return _internal_part_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TabularCapture::set_part_id(ArgT0&& arg0, ArgT... args) { + + _impl_.part_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.TabularCapture.part_id) +} +inline std::string* TabularCapture::mutable_part_id() { + std::string* _s = _internal_mutable_part_id(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.TabularCapture.part_id) + return _s; +} +inline const std::string& TabularCapture::_internal_part_id() const { + return _impl_.part_id_.Get(); +} +inline void TabularCapture::_internal_set_part_id(const std::string& value) { + + _impl_.part_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* TabularCapture::_internal_mutable_part_id() { + + return _impl_.part_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* TabularCapture::release_part_id() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.TabularCapture.part_id) + return _impl_.part_id_.Release(); +} +inline void TabularCapture::set_allocated_part_id(std::string* part_id) { + if (part_id != nullptr) { + + } else { + + } + _impl_.part_id_.SetAllocated(part_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.part_id_.IsDefault()) { + _impl_.part_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.TabularCapture.part_id) +} + +// string location_id = 5 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"location_id\""]; +inline void TabularCapture::clear_location_id() { + _impl_.location_id_.ClearToEmpty(); +} +inline const std::string& TabularCapture::location_id() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.TabularCapture.location_id) + return _internal_location_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TabularCapture::set_location_id(ArgT0&& arg0, ArgT... args) { + + _impl_.location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.TabularCapture.location_id) +} +inline std::string* TabularCapture::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.TabularCapture.location_id) + return _s; +} +inline const std::string& TabularCapture::_internal_location_id() const { + return _impl_.location_id_.Get(); +} +inline void TabularCapture::_internal_set_location_id(const std::string& value) { + + _impl_.location_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* TabularCapture::_internal_mutable_location_id() { + + return _impl_.location_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* TabularCapture::release_location_id() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.TabularCapture.location_id) + return _impl_.location_id_.Release(); +} +inline void TabularCapture::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + + } else { + + } + _impl_.location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.location_id_.IsDefault()) { + _impl_.location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.TabularCapture.location_id) +} + +// string component_name = 6 [json_name = "componentName", (.tagger.v1.tags) = "bson:\"component_name\" json:\"component_name\""]; +inline void TabularCapture::clear_component_name() { + _impl_.component_name_.ClearToEmpty(); +} +inline const std::string& TabularCapture::component_name() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.TabularCapture.component_name) + return _internal_component_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TabularCapture::set_component_name(ArgT0&& arg0, ArgT... args) { + + _impl_.component_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.TabularCapture.component_name) +} +inline std::string* TabularCapture::mutable_component_name() { + std::string* _s = _internal_mutable_component_name(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.TabularCapture.component_name) + return _s; +} +inline const std::string& TabularCapture::_internal_component_name() const { + return _impl_.component_name_.Get(); +} +inline void TabularCapture::_internal_set_component_name(const std::string& value) { + + _impl_.component_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* TabularCapture::_internal_mutable_component_name() { + + return _impl_.component_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* TabularCapture::release_component_name() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.TabularCapture.component_name) + return _impl_.component_name_.Release(); +} +inline void TabularCapture::set_allocated_component_name(std::string* component_name) { + if (component_name != nullptr) { + + } else { + + } + _impl_.component_name_.SetAllocated(component_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.component_name_.IsDefault()) { + _impl_.component_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.TabularCapture.component_name) +} + +// string component_type = 7 [json_name = "componentType", (.tagger.v1.tags) = "bson:\"component_type\" json:\"component_type\""]; +inline void TabularCapture::clear_component_type() { + _impl_.component_type_.ClearToEmpty(); +} +inline const std::string& TabularCapture::component_type() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.TabularCapture.component_type) + return _internal_component_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TabularCapture::set_component_type(ArgT0&& arg0, ArgT... args) { + + _impl_.component_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.TabularCapture.component_type) +} +inline std::string* TabularCapture::mutable_component_type() { + std::string* _s = _internal_mutable_component_type(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.TabularCapture.component_type) + return _s; +} +inline const std::string& TabularCapture::_internal_component_type() const { + return _impl_.component_type_.Get(); +} +inline void TabularCapture::_internal_set_component_type(const std::string& value) { + + _impl_.component_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* TabularCapture::_internal_mutable_component_type() { + + return _impl_.component_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* TabularCapture::release_component_type() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.TabularCapture.component_type) + return _impl_.component_type_.Release(); +} +inline void TabularCapture::set_allocated_component_type(std::string* component_type) { + if (component_type != nullptr) { + + } else { + + } + _impl_.component_type_.SetAllocated(component_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.component_type_.IsDefault()) { + _impl_.component_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.TabularCapture.component_type) +} + +// string component_model = 8 [json_name = "componentModel", (.tagger.v1.tags) = "bson:\"component_model\" json:\"component_model\""]; +inline void TabularCapture::clear_component_model() { + _impl_.component_model_.ClearToEmpty(); +} +inline const std::string& TabularCapture::component_model() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.TabularCapture.component_model) + return _internal_component_model(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TabularCapture::set_component_model(ArgT0&& arg0, ArgT... args) { + + _impl_.component_model_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.TabularCapture.component_model) +} +inline std::string* TabularCapture::mutable_component_model() { + std::string* _s = _internal_mutable_component_model(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.TabularCapture.component_model) + return _s; +} +inline const std::string& TabularCapture::_internal_component_model() const { + return _impl_.component_model_.Get(); +} +inline void TabularCapture::_internal_set_component_model(const std::string& value) { + + _impl_.component_model_.Set(value, GetArenaForAllocation()); +} +inline std::string* TabularCapture::_internal_mutable_component_model() { + + return _impl_.component_model_.Mutable(GetArenaForAllocation()); +} +inline std::string* TabularCapture::release_component_model() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.TabularCapture.component_model) + return _impl_.component_model_.Release(); +} +inline void TabularCapture::set_allocated_component_model(std::string* component_model) { + if (component_model != nullptr) { + + } else { + + } + _impl_.component_model_.SetAllocated(component_model, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.component_model_.IsDefault()) { + _impl_.component_model_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.TabularCapture.component_model) +} + +// string method_name = 9 [json_name = "methodName", (.tagger.v1.tags) = "bson:\"method_name\" json:\"method_name\""]; +inline void TabularCapture::clear_method_name() { + _impl_.method_name_.ClearToEmpty(); +} +inline const std::string& TabularCapture::method_name() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.TabularCapture.method_name) + return _internal_method_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TabularCapture::set_method_name(ArgT0&& arg0, ArgT... args) { + + _impl_.method_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.TabularCapture.method_name) +} +inline std::string* TabularCapture::mutable_method_name() { + std::string* _s = _internal_mutable_method_name(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.TabularCapture.method_name) + return _s; +} +inline const std::string& TabularCapture::_internal_method_name() const { + return _impl_.method_name_.Get(); +} +inline void TabularCapture::_internal_set_method_name(const std::string& value) { + + _impl_.method_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* TabularCapture::_internal_mutable_method_name() { + + return _impl_.method_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* TabularCapture::release_method_name() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.TabularCapture.method_name) + return _impl_.method_name_.Release(); +} +inline void TabularCapture::set_allocated_method_name(std::string* method_name) { + if (method_name != nullptr) { + + } else { + + } + _impl_.method_name_.SetAllocated(method_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.method_name_.IsDefault()) { + _impl_.method_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.TabularCapture.method_name) +} + +// string blob_path = 10 [json_name = "blobPath", (.tagger.v1.tags) = "bson:\"blob_path\" json:\"blob_path\""]; +inline void TabularCapture::clear_blob_path() { + _impl_.blob_path_.ClearToEmpty(); +} +inline const std::string& TabularCapture::blob_path() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.TabularCapture.blob_path) + return _internal_blob_path(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TabularCapture::set_blob_path(ArgT0&& arg0, ArgT... args) { + + _impl_.blob_path_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.TabularCapture.blob_path) +} +inline std::string* TabularCapture::mutable_blob_path() { + std::string* _s = _internal_mutable_blob_path(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.TabularCapture.blob_path) + return _s; +} +inline const std::string& TabularCapture::_internal_blob_path() const { + return _impl_.blob_path_.Get(); +} +inline void TabularCapture::_internal_set_blob_path(const std::string& value) { + + _impl_.blob_path_.Set(value, GetArenaForAllocation()); +} +inline std::string* TabularCapture::_internal_mutable_blob_path() { + + return _impl_.blob_path_.Mutable(GetArenaForAllocation()); +} +inline std::string* TabularCapture::release_blob_path() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.TabularCapture.blob_path) + return _impl_.blob_path_.Release(); +} +inline void TabularCapture::set_allocated_blob_path(std::string* blob_path) { + if (blob_path != nullptr) { + + } else { + + } + _impl_.blob_path_.SetAllocated(blob_path, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.blob_path_.IsDefault()) { + _impl_.blob_path_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.TabularCapture.blob_path) +} + +// repeated string column_names = 11 [json_name = "columnNames", (.tagger.v1.tags) = "bson:\"column_names\" json:\"column_names\""]; +inline int TabularCapture::_internal_column_names_size() const { + return _impl_.column_names_.size(); +} +inline int TabularCapture::column_names_size() const { + return _internal_column_names_size(); +} +inline void TabularCapture::clear_column_names() { + _impl_.column_names_.Clear(); +} +inline std::string* TabularCapture::add_column_names() { + std::string* _s = _internal_add_column_names(); + // @@protoc_insertion_point(field_add_mutable:viam.app.datasync.v1.TabularCapture.column_names) + return _s; +} +inline const std::string& TabularCapture::_internal_column_names(int index) const { + return _impl_.column_names_.Get(index); +} +inline const std::string& TabularCapture::column_names(int index) const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.TabularCapture.column_names) + return _internal_column_names(index); +} +inline std::string* TabularCapture::mutable_column_names(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.TabularCapture.column_names) + return _impl_.column_names_.Mutable(index); +} +inline void TabularCapture::set_column_names(int index, const std::string& value) { + _impl_.column_names_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.TabularCapture.column_names) +} +inline void TabularCapture::set_column_names(int index, std::string&& value) { + _impl_.column_names_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.TabularCapture.column_names) +} +inline void TabularCapture::set_column_names(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.column_names_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.datasync.v1.TabularCapture.column_names) +} +inline void TabularCapture::set_column_names(int index, const char* value, size_t size) { + _impl_.column_names_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.datasync.v1.TabularCapture.column_names) +} +inline std::string* TabularCapture::_internal_add_column_names() { + return _impl_.column_names_.Add(); +} +inline void TabularCapture::add_column_names(const std::string& value) { + _impl_.column_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.datasync.v1.TabularCapture.column_names) +} +inline void TabularCapture::add_column_names(std::string&& value) { + _impl_.column_names_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.datasync.v1.TabularCapture.column_names) +} +inline void TabularCapture::add_column_names(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.column_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.datasync.v1.TabularCapture.column_names) +} +inline void TabularCapture::add_column_names(const char* value, size_t size) { + _impl_.column_names_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.datasync.v1.TabularCapture.column_names) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +TabularCapture::column_names() const { + // @@protoc_insertion_point(field_list:viam.app.datasync.v1.TabularCapture.column_names) + return _impl_.column_names_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +TabularCapture::mutable_column_names() { + // @@protoc_insertion_point(field_mutable_list:viam.app.datasync.v1.TabularCapture.column_names) + return &_impl_.column_names_; +} + +// map method_parameters = 12 [json_name = "methodParameters", (.tagger.v1.tags) = "bson:\"method_parameters\" json:\"method_parameters\""]; +inline int TabularCapture::_internal_method_parameters_size() const { + return _impl_.method_parameters_.size(); +} +inline int TabularCapture::method_parameters_size() const { + return _internal_method_parameters_size(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >& +TabularCapture::_internal_method_parameters() const { + return _impl_.method_parameters_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >& +TabularCapture::method_parameters() const { + // @@protoc_insertion_point(field_map:viam.app.datasync.v1.TabularCapture.method_parameters) + return _internal_method_parameters(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >* +TabularCapture::_internal_mutable_method_parameters() { + return _impl_.method_parameters_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >* +TabularCapture::mutable_method_parameters() { + // @@protoc_insertion_point(field_mutable_map:viam.app.datasync.v1.TabularCapture.method_parameters) + return _internal_mutable_method_parameters(); +} + +// string file_id = 13 [json_name = "fileId", (.tagger.v1.tags) = "bson:\"file_id\" json:\"file_id\""]; +inline void TabularCapture::clear_file_id() { + _impl_.file_id_.ClearToEmpty(); +} +inline const std::string& TabularCapture::file_id() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.TabularCapture.file_id) + return _internal_file_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TabularCapture::set_file_id(ArgT0&& arg0, ArgT... args) { + + _impl_.file_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.TabularCapture.file_id) +} +inline std::string* TabularCapture::mutable_file_id() { + std::string* _s = _internal_mutable_file_id(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.TabularCapture.file_id) + return _s; +} +inline const std::string& TabularCapture::_internal_file_id() const { + return _impl_.file_id_.Get(); +} +inline void TabularCapture::_internal_set_file_id(const std::string& value) { + + _impl_.file_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* TabularCapture::_internal_mutable_file_id() { + + return _impl_.file_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* TabularCapture::release_file_id() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.TabularCapture.file_id) + return _impl_.file_id_.Release(); +} +inline void TabularCapture::set_allocated_file_id(std::string* file_id) { + if (file_id != nullptr) { + + } else { + + } + _impl_.file_id_.SetAllocated(file_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.file_id_.IsDefault()) { + _impl_.file_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.TabularCapture.file_id) +} + +// repeated string tags = 14 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; +inline int TabularCapture::_internal_tags_size() const { + return _impl_.tags_.size(); +} +inline int TabularCapture::tags_size() const { + return _internal_tags_size(); +} +inline void TabularCapture::clear_tags() { + _impl_.tags_.Clear(); +} +inline std::string* TabularCapture::add_tags() { + std::string* _s = _internal_add_tags(); + // @@protoc_insertion_point(field_add_mutable:viam.app.datasync.v1.TabularCapture.tags) + return _s; +} +inline const std::string& TabularCapture::_internal_tags(int index) const { + return _impl_.tags_.Get(index); +} +inline const std::string& TabularCapture::tags(int index) const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.TabularCapture.tags) + return _internal_tags(index); +} +inline std::string* TabularCapture::mutable_tags(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.TabularCapture.tags) + return _impl_.tags_.Mutable(index); +} +inline void TabularCapture::set_tags(int index, const std::string& value) { + _impl_.tags_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.TabularCapture.tags) +} +inline void TabularCapture::set_tags(int index, std::string&& value) { + _impl_.tags_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.TabularCapture.tags) +} +inline void TabularCapture::set_tags(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.tags_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.datasync.v1.TabularCapture.tags) +} +inline void TabularCapture::set_tags(int index, const char* value, size_t size) { + _impl_.tags_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.datasync.v1.TabularCapture.tags) +} +inline std::string* TabularCapture::_internal_add_tags() { + return _impl_.tags_.Add(); +} +inline void TabularCapture::add_tags(const std::string& value) { + _impl_.tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.datasync.v1.TabularCapture.tags) +} +inline void TabularCapture::add_tags(std::string&& value) { + _impl_.tags_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.datasync.v1.TabularCapture.tags) +} +inline void TabularCapture::add_tags(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.datasync.v1.TabularCapture.tags) +} +inline void TabularCapture::add_tags(const char* value, size_t size) { + _impl_.tags_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.datasync.v1.TabularCapture.tags) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +TabularCapture::tags() const { + // @@protoc_insertion_point(field_list:viam.app.datasync.v1.TabularCapture.tags) + return _impl_.tags_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +TabularCapture::mutable_tags() { + // @@protoc_insertion_point(field_mutable_list:viam.app.datasync.v1.TabularCapture.tags) + return &_impl_.tags_; +} + +// int32 message_count = 15 [json_name = "messageCount", (.tagger.v1.tags) = "bson:\"message_count\" json:\"message_count\""]; +inline void TabularCapture::clear_message_count() { + _impl_.message_count_ = 0; +} +inline int32_t TabularCapture::_internal_message_count() const { + return _impl_.message_count_; +} +inline int32_t TabularCapture::message_count() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.TabularCapture.message_count) + return _internal_message_count(); +} +inline void TabularCapture::_internal_set_message_count(int32_t value) { + + _impl_.message_count_ = value; +} +inline void TabularCapture::set_message_count(int32_t value) { + _internal_set_message_count(value); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.TabularCapture.message_count) +} + +// int64 file_size_bytes = 16 [json_name = "fileSizeBytes", (.tagger.v1.tags) = "bson:\"file_size_bytes\" json:\"file_size_bytes\""]; +inline void TabularCapture::clear_file_size_bytes() { + _impl_.file_size_bytes_ = int64_t{0}; +} +inline int64_t TabularCapture::_internal_file_size_bytes() const { + return _impl_.file_size_bytes_; +} +inline int64_t TabularCapture::file_size_bytes() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.TabularCapture.file_size_bytes) + return _internal_file_size_bytes(); +} +inline void TabularCapture::_internal_set_file_size_bytes(int64_t value) { + + _impl_.file_size_bytes_ = value; +} +inline void TabularCapture::set_file_size_bytes(int64_t value) { + _internal_set_file_size_bytes(value); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.TabularCapture.file_size_bytes) +} + +// string session_id = 17 [json_name = "sessionId", (.tagger.v1.tags) = "bson:\"session_id\" json:\"session_id\""]; +inline void TabularCapture::clear_session_id() { + _impl_.session_id_.ClearToEmpty(); +} +inline const std::string& TabularCapture::session_id() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.TabularCapture.session_id) + return _internal_session_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TabularCapture::set_session_id(ArgT0&& arg0, ArgT... args) { + + _impl_.session_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.TabularCapture.session_id) +} +inline std::string* TabularCapture::mutable_session_id() { + std::string* _s = _internal_mutable_session_id(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.TabularCapture.session_id) + return _s; +} +inline const std::string& TabularCapture::_internal_session_id() const { + return _impl_.session_id_.Get(); +} +inline void TabularCapture::_internal_set_session_id(const std::string& value) { + + _impl_.session_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* TabularCapture::_internal_mutable_session_id() { + + return _impl_.session_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* TabularCapture::release_session_id() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.TabularCapture.session_id) + return _impl_.session_id_.Release(); +} +inline void TabularCapture::set_allocated_session_id(std::string* session_id) { + if (session_id != nullptr) { + + } else { + + } + _impl_.session_id_.SetAllocated(session_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.session_id_.IsDefault()) { + _impl_.session_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.TabularCapture.session_id) +} + +// string mime_type = 18 [json_name = "mimeType", (.tagger.v1.tags) = "bson:\"mime_type\" json:\"mime_type\""]; +inline void TabularCapture::clear_mime_type() { + _impl_.mime_type_.ClearToEmpty(); +} +inline const std::string& TabularCapture::mime_type() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.TabularCapture.mime_type) + return _internal_mime_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TabularCapture::set_mime_type(ArgT0&& arg0, ArgT... args) { + + _impl_.mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.TabularCapture.mime_type) +} +inline std::string* TabularCapture::mutable_mime_type() { + std::string* _s = _internal_mutable_mime_type(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.TabularCapture.mime_type) + return _s; +} +inline const std::string& TabularCapture::_internal_mime_type() const { + return _impl_.mime_type_.Get(); +} +inline void TabularCapture::_internal_set_mime_type(const std::string& value) { + + _impl_.mime_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* TabularCapture::_internal_mutable_mime_type() { + + return _impl_.mime_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* TabularCapture::release_mime_type() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.TabularCapture.mime_type) + return _impl_.mime_type_.Release(); +} +inline void TabularCapture::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + _impl_.mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.mime_type_.IsDefault()) { + _impl_.mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.TabularCapture.mime_type) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// BinaryCapture + +// .viam.app.datasync.v1.CaptureInterval interval = 1 [json_name = "interval", (.tagger.v1.tags) = "bson:\"interval\" json:\"interval\""]; +inline bool BinaryCapture::_internal_has_interval() const { + return this != internal_default_instance() && _impl_.interval_ != nullptr; +} +inline bool BinaryCapture::has_interval() const { + return _internal_has_interval(); +} +inline void BinaryCapture::clear_interval() { + if (GetArenaForAllocation() == nullptr && _impl_.interval_ != nullptr) { + delete _impl_.interval_; + } + _impl_.interval_ = nullptr; +} +inline const ::viam::app::datasync::v1::CaptureInterval& BinaryCapture::_internal_interval() const { + const ::viam::app::datasync::v1::CaptureInterval* p = _impl_.interval_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::datasync::v1::_CaptureInterval_default_instance_); +} +inline const ::viam::app::datasync::v1::CaptureInterval& BinaryCapture::interval() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.BinaryCapture.interval) + return _internal_interval(); +} +inline void BinaryCapture::unsafe_arena_set_allocated_interval( + ::viam::app::datasync::v1::CaptureInterval* interval) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.interval_); + } + _impl_.interval_ = interval; + if (interval) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.datasync.v1.BinaryCapture.interval) +} +inline ::viam::app::datasync::v1::CaptureInterval* BinaryCapture::release_interval() { + + ::viam::app::datasync::v1::CaptureInterval* temp = _impl_.interval_; + _impl_.interval_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::datasync::v1::CaptureInterval* BinaryCapture::unsafe_arena_release_interval() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.BinaryCapture.interval) + + ::viam::app::datasync::v1::CaptureInterval* temp = _impl_.interval_; + _impl_.interval_ = nullptr; + return temp; +} +inline ::viam::app::datasync::v1::CaptureInterval* BinaryCapture::_internal_mutable_interval() { + + if (_impl_.interval_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::datasync::v1::CaptureInterval>(GetArenaForAllocation()); + _impl_.interval_ = p; + } + return _impl_.interval_; +} +inline ::viam::app::datasync::v1::CaptureInterval* BinaryCapture::mutable_interval() { + ::viam::app::datasync::v1::CaptureInterval* _msg = _internal_mutable_interval(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.BinaryCapture.interval) + return _msg; +} +inline void BinaryCapture::set_allocated_interval(::viam::app::datasync::v1::CaptureInterval* interval) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.interval_; + } + if (interval) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(interval); + if (message_arena != submessage_arena) { + interval = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, interval, submessage_arena); + } + + } else { + + } + _impl_.interval_ = interval; + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.BinaryCapture.interval) +} + +// string org_id = 2 [json_name = "orgId", (.tagger.v1.tags) = "bson:\"org_id\" json:\"org_id\""]; +inline void BinaryCapture::clear_org_id() { + _impl_.org_id_.ClearToEmpty(); +} +inline const std::string& BinaryCapture::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.BinaryCapture.org_id) + return _internal_org_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BinaryCapture::set_org_id(ArgT0&& arg0, ArgT... args) { + + _impl_.org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.BinaryCapture.org_id) +} +inline std::string* BinaryCapture::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.BinaryCapture.org_id) + return _s; +} +inline const std::string& BinaryCapture::_internal_org_id() const { + return _impl_.org_id_.Get(); +} +inline void BinaryCapture::_internal_set_org_id(const std::string& value) { + + _impl_.org_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* BinaryCapture::_internal_mutable_org_id() { + + return _impl_.org_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* BinaryCapture::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.BinaryCapture.org_id) + return _impl_.org_id_.Release(); +} +inline void BinaryCapture::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + _impl_.org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.org_id_.IsDefault()) { + _impl_.org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.BinaryCapture.org_id) +} + +// string robot_id = 3 [json_name = "robotId", (.tagger.v1.tags) = "bson:\"robot_id\" json:\"robot_id\""]; +inline void BinaryCapture::clear_robot_id() { + _impl_.robot_id_.ClearToEmpty(); +} +inline const std::string& BinaryCapture::robot_id() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.BinaryCapture.robot_id) + return _internal_robot_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BinaryCapture::set_robot_id(ArgT0&& arg0, ArgT... args) { + + _impl_.robot_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.BinaryCapture.robot_id) +} +inline std::string* BinaryCapture::mutable_robot_id() { + std::string* _s = _internal_mutable_robot_id(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.BinaryCapture.robot_id) + return _s; +} +inline const std::string& BinaryCapture::_internal_robot_id() const { + return _impl_.robot_id_.Get(); +} +inline void BinaryCapture::_internal_set_robot_id(const std::string& value) { + + _impl_.robot_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* BinaryCapture::_internal_mutable_robot_id() { + + return _impl_.robot_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* BinaryCapture::release_robot_id() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.BinaryCapture.robot_id) + return _impl_.robot_id_.Release(); +} +inline void BinaryCapture::set_allocated_robot_id(std::string* robot_id) { + if (robot_id != nullptr) { + + } else { + + } + _impl_.robot_id_.SetAllocated(robot_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.robot_id_.IsDefault()) { + _impl_.robot_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.BinaryCapture.robot_id) +} + +// string part_id = 4 [json_name = "partId", (.tagger.v1.tags) = "bson:\"part_id\" json:\"part_id\""]; +inline void BinaryCapture::clear_part_id() { + _impl_.part_id_.ClearToEmpty(); +} +inline const std::string& BinaryCapture::part_id() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.BinaryCapture.part_id) + return _internal_part_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BinaryCapture::set_part_id(ArgT0&& arg0, ArgT... args) { + + _impl_.part_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.BinaryCapture.part_id) +} +inline std::string* BinaryCapture::mutable_part_id() { + std::string* _s = _internal_mutable_part_id(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.BinaryCapture.part_id) + return _s; +} +inline const std::string& BinaryCapture::_internal_part_id() const { + return _impl_.part_id_.Get(); +} +inline void BinaryCapture::_internal_set_part_id(const std::string& value) { + + _impl_.part_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* BinaryCapture::_internal_mutable_part_id() { + + return _impl_.part_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* BinaryCapture::release_part_id() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.BinaryCapture.part_id) + return _impl_.part_id_.Release(); +} +inline void BinaryCapture::set_allocated_part_id(std::string* part_id) { + if (part_id != nullptr) { + + } else { + + } + _impl_.part_id_.SetAllocated(part_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.part_id_.IsDefault()) { + _impl_.part_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.BinaryCapture.part_id) +} + +// string location_id = 5 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"location_id\""]; +inline void BinaryCapture::clear_location_id() { + _impl_.location_id_.ClearToEmpty(); +} +inline const std::string& BinaryCapture::location_id() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.BinaryCapture.location_id) + return _internal_location_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BinaryCapture::set_location_id(ArgT0&& arg0, ArgT... args) { + + _impl_.location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.BinaryCapture.location_id) +} +inline std::string* BinaryCapture::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.BinaryCapture.location_id) + return _s; +} +inline const std::string& BinaryCapture::_internal_location_id() const { + return _impl_.location_id_.Get(); +} +inline void BinaryCapture::_internal_set_location_id(const std::string& value) { + + _impl_.location_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* BinaryCapture::_internal_mutable_location_id() { + + return _impl_.location_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* BinaryCapture::release_location_id() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.BinaryCapture.location_id) + return _impl_.location_id_.Release(); +} +inline void BinaryCapture::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + + } else { + + } + _impl_.location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.location_id_.IsDefault()) { + _impl_.location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.BinaryCapture.location_id) +} + +// string component_name = 6 [json_name = "componentName", (.tagger.v1.tags) = "bson:\"component_name\" json:\"component_name\""]; +inline void BinaryCapture::clear_component_name() { + _impl_.component_name_.ClearToEmpty(); +} +inline const std::string& BinaryCapture::component_name() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.BinaryCapture.component_name) + return _internal_component_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BinaryCapture::set_component_name(ArgT0&& arg0, ArgT... args) { + + _impl_.component_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.BinaryCapture.component_name) +} +inline std::string* BinaryCapture::mutable_component_name() { + std::string* _s = _internal_mutable_component_name(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.BinaryCapture.component_name) + return _s; +} +inline const std::string& BinaryCapture::_internal_component_name() const { + return _impl_.component_name_.Get(); +} +inline void BinaryCapture::_internal_set_component_name(const std::string& value) { + + _impl_.component_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* BinaryCapture::_internal_mutable_component_name() { + + return _impl_.component_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* BinaryCapture::release_component_name() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.BinaryCapture.component_name) + return _impl_.component_name_.Release(); +} +inline void BinaryCapture::set_allocated_component_name(std::string* component_name) { + if (component_name != nullptr) { + + } else { + + } + _impl_.component_name_.SetAllocated(component_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.component_name_.IsDefault()) { + _impl_.component_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.BinaryCapture.component_name) +} + +// string component_type = 7 [json_name = "componentType", (.tagger.v1.tags) = "bson:\"component_type\" json:\"component_type\""]; +inline void BinaryCapture::clear_component_type() { + _impl_.component_type_.ClearToEmpty(); +} +inline const std::string& BinaryCapture::component_type() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.BinaryCapture.component_type) + return _internal_component_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BinaryCapture::set_component_type(ArgT0&& arg0, ArgT... args) { + + _impl_.component_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.BinaryCapture.component_type) +} +inline std::string* BinaryCapture::mutable_component_type() { + std::string* _s = _internal_mutable_component_type(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.BinaryCapture.component_type) + return _s; +} +inline const std::string& BinaryCapture::_internal_component_type() const { + return _impl_.component_type_.Get(); +} +inline void BinaryCapture::_internal_set_component_type(const std::string& value) { + + _impl_.component_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* BinaryCapture::_internal_mutable_component_type() { + + return _impl_.component_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* BinaryCapture::release_component_type() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.BinaryCapture.component_type) + return _impl_.component_type_.Release(); +} +inline void BinaryCapture::set_allocated_component_type(std::string* component_type) { + if (component_type != nullptr) { + + } else { + + } + _impl_.component_type_.SetAllocated(component_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.component_type_.IsDefault()) { + _impl_.component_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.BinaryCapture.component_type) +} + +// string component_model = 8 [json_name = "componentModel", (.tagger.v1.tags) = "bson:\"component_model\" json:\"component_model\""]; +inline void BinaryCapture::clear_component_model() { + _impl_.component_model_.ClearToEmpty(); +} +inline const std::string& BinaryCapture::component_model() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.BinaryCapture.component_model) + return _internal_component_model(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BinaryCapture::set_component_model(ArgT0&& arg0, ArgT... args) { + + _impl_.component_model_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.BinaryCapture.component_model) +} +inline std::string* BinaryCapture::mutable_component_model() { + std::string* _s = _internal_mutable_component_model(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.BinaryCapture.component_model) + return _s; +} +inline const std::string& BinaryCapture::_internal_component_model() const { + return _impl_.component_model_.Get(); +} +inline void BinaryCapture::_internal_set_component_model(const std::string& value) { + + _impl_.component_model_.Set(value, GetArenaForAllocation()); +} +inline std::string* BinaryCapture::_internal_mutable_component_model() { + + return _impl_.component_model_.Mutable(GetArenaForAllocation()); +} +inline std::string* BinaryCapture::release_component_model() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.BinaryCapture.component_model) + return _impl_.component_model_.Release(); +} +inline void BinaryCapture::set_allocated_component_model(std::string* component_model) { + if (component_model != nullptr) { + + } else { + + } + _impl_.component_model_.SetAllocated(component_model, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.component_model_.IsDefault()) { + _impl_.component_model_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.BinaryCapture.component_model) +} + +// string method_name = 9 [json_name = "methodName", (.tagger.v1.tags) = "bson:\"method_name\" json:\"method_name\""]; +inline void BinaryCapture::clear_method_name() { + _impl_.method_name_.ClearToEmpty(); +} +inline const std::string& BinaryCapture::method_name() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.BinaryCapture.method_name) + return _internal_method_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BinaryCapture::set_method_name(ArgT0&& arg0, ArgT... args) { + + _impl_.method_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.BinaryCapture.method_name) +} +inline std::string* BinaryCapture::mutable_method_name() { + std::string* _s = _internal_mutable_method_name(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.BinaryCapture.method_name) + return _s; +} +inline const std::string& BinaryCapture::_internal_method_name() const { + return _impl_.method_name_.Get(); +} +inline void BinaryCapture::_internal_set_method_name(const std::string& value) { + + _impl_.method_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* BinaryCapture::_internal_mutable_method_name() { + + return _impl_.method_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* BinaryCapture::release_method_name() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.BinaryCapture.method_name) + return _impl_.method_name_.Release(); +} +inline void BinaryCapture::set_allocated_method_name(std::string* method_name) { + if (method_name != nullptr) { + + } else { + + } + _impl_.method_name_.SetAllocated(method_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.method_name_.IsDefault()) { + _impl_.method_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.BinaryCapture.method_name) +} + +// string blob_path = 10 [json_name = "blobPath", (.tagger.v1.tags) = "bson:\"blob_path\" json:\"blob_path\""]; +inline void BinaryCapture::clear_blob_path() { + _impl_.blob_path_.ClearToEmpty(); +} +inline const std::string& BinaryCapture::blob_path() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.BinaryCapture.blob_path) + return _internal_blob_path(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BinaryCapture::set_blob_path(ArgT0&& arg0, ArgT... args) { + + _impl_.blob_path_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.BinaryCapture.blob_path) +} +inline std::string* BinaryCapture::mutable_blob_path() { + std::string* _s = _internal_mutable_blob_path(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.BinaryCapture.blob_path) + return _s; +} +inline const std::string& BinaryCapture::_internal_blob_path() const { + return _impl_.blob_path_.Get(); +} +inline void BinaryCapture::_internal_set_blob_path(const std::string& value) { + + _impl_.blob_path_.Set(value, GetArenaForAllocation()); +} +inline std::string* BinaryCapture::_internal_mutable_blob_path() { + + return _impl_.blob_path_.Mutable(GetArenaForAllocation()); +} +inline std::string* BinaryCapture::release_blob_path() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.BinaryCapture.blob_path) + return _impl_.blob_path_.Release(); +} +inline void BinaryCapture::set_allocated_blob_path(std::string* blob_path) { + if (blob_path != nullptr) { + + } else { + + } + _impl_.blob_path_.SetAllocated(blob_path, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.blob_path_.IsDefault()) { + _impl_.blob_path_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.BinaryCapture.blob_path) +} + +// map method_parameters = 11 [json_name = "methodParameters", (.tagger.v1.tags) = "bson:\"method_parameters\" json:\"method_parameters\""]; +inline int BinaryCapture::_internal_method_parameters_size() const { + return _impl_.method_parameters_.size(); +} +inline int BinaryCapture::method_parameters_size() const { + return _internal_method_parameters_size(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >& +BinaryCapture::_internal_method_parameters() const { + return _impl_.method_parameters_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >& +BinaryCapture::method_parameters() const { + // @@protoc_insertion_point(field_map:viam.app.datasync.v1.BinaryCapture.method_parameters) + return _internal_method_parameters(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >* +BinaryCapture::_internal_mutable_method_parameters() { + return _impl_.method_parameters_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Any >* +BinaryCapture::mutable_method_parameters() { + // @@protoc_insertion_point(field_mutable_map:viam.app.datasync.v1.BinaryCapture.method_parameters) + return _internal_mutable_method_parameters(); +} + +// string file_id = 12 [json_name = "fileId", (.tagger.v1.tags) = "bson:\"file_id\" json:\"file_id\""]; +inline void BinaryCapture::clear_file_id() { + _impl_.file_id_.ClearToEmpty(); +} +inline const std::string& BinaryCapture::file_id() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.BinaryCapture.file_id) + return _internal_file_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BinaryCapture::set_file_id(ArgT0&& arg0, ArgT... args) { + + _impl_.file_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.BinaryCapture.file_id) +} +inline std::string* BinaryCapture::mutable_file_id() { + std::string* _s = _internal_mutable_file_id(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.BinaryCapture.file_id) + return _s; +} +inline const std::string& BinaryCapture::_internal_file_id() const { + return _impl_.file_id_.Get(); +} +inline void BinaryCapture::_internal_set_file_id(const std::string& value) { + + _impl_.file_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* BinaryCapture::_internal_mutable_file_id() { + + return _impl_.file_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* BinaryCapture::release_file_id() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.BinaryCapture.file_id) + return _impl_.file_id_.Release(); +} +inline void BinaryCapture::set_allocated_file_id(std::string* file_id) { + if (file_id != nullptr) { + + } else { + + } + _impl_.file_id_.SetAllocated(file_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.file_id_.IsDefault()) { + _impl_.file_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.BinaryCapture.file_id) +} + +// repeated string tags = 13 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; +inline int BinaryCapture::_internal_tags_size() const { + return _impl_.tags_.size(); +} +inline int BinaryCapture::tags_size() const { + return _internal_tags_size(); +} +inline void BinaryCapture::clear_tags() { + _impl_.tags_.Clear(); +} +inline std::string* BinaryCapture::add_tags() { + std::string* _s = _internal_add_tags(); + // @@protoc_insertion_point(field_add_mutable:viam.app.datasync.v1.BinaryCapture.tags) + return _s; +} +inline const std::string& BinaryCapture::_internal_tags(int index) const { + return _impl_.tags_.Get(index); +} +inline const std::string& BinaryCapture::tags(int index) const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.BinaryCapture.tags) + return _internal_tags(index); +} +inline std::string* BinaryCapture::mutable_tags(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.BinaryCapture.tags) + return _impl_.tags_.Mutable(index); +} +inline void BinaryCapture::set_tags(int index, const std::string& value) { + _impl_.tags_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.BinaryCapture.tags) +} +inline void BinaryCapture::set_tags(int index, std::string&& value) { + _impl_.tags_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.BinaryCapture.tags) +} +inline void BinaryCapture::set_tags(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.tags_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.datasync.v1.BinaryCapture.tags) +} +inline void BinaryCapture::set_tags(int index, const char* value, size_t size) { + _impl_.tags_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.datasync.v1.BinaryCapture.tags) +} +inline std::string* BinaryCapture::_internal_add_tags() { + return _impl_.tags_.Add(); +} +inline void BinaryCapture::add_tags(const std::string& value) { + _impl_.tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.datasync.v1.BinaryCapture.tags) +} +inline void BinaryCapture::add_tags(std::string&& value) { + _impl_.tags_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.datasync.v1.BinaryCapture.tags) +} +inline void BinaryCapture::add_tags(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.datasync.v1.BinaryCapture.tags) +} +inline void BinaryCapture::add_tags(const char* value, size_t size) { + _impl_.tags_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.datasync.v1.BinaryCapture.tags) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +BinaryCapture::tags() const { + // @@protoc_insertion_point(field_list:viam.app.datasync.v1.BinaryCapture.tags) + return _impl_.tags_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +BinaryCapture::mutable_tags() { + // @@protoc_insertion_point(field_mutable_list:viam.app.datasync.v1.BinaryCapture.tags) + return &_impl_.tags_; +} + +// int64 file_size_bytes = 14 [json_name = "fileSizeBytes", (.tagger.v1.tags) = "bson:\"file_size_bytes\" json:\"file_size_bytes\""]; +inline void BinaryCapture::clear_file_size_bytes() { + _impl_.file_size_bytes_ = int64_t{0}; +} +inline int64_t BinaryCapture::_internal_file_size_bytes() const { + return _impl_.file_size_bytes_; +} +inline int64_t BinaryCapture::file_size_bytes() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.BinaryCapture.file_size_bytes) + return _internal_file_size_bytes(); +} +inline void BinaryCapture::_internal_set_file_size_bytes(int64_t value) { + + _impl_.file_size_bytes_ = value; +} +inline void BinaryCapture::set_file_size_bytes(int64_t value) { + _internal_set_file_size_bytes(value); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.BinaryCapture.file_size_bytes) +} + +// string session_id = 15 [json_name = "sessionId", (.tagger.v1.tags) = "bson:\"session_id\" json:\"session_id\""]; +inline void BinaryCapture::clear_session_id() { + _impl_.session_id_.ClearToEmpty(); +} +inline const std::string& BinaryCapture::session_id() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.BinaryCapture.session_id) + return _internal_session_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BinaryCapture::set_session_id(ArgT0&& arg0, ArgT... args) { + + _impl_.session_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.BinaryCapture.session_id) +} +inline std::string* BinaryCapture::mutable_session_id() { + std::string* _s = _internal_mutable_session_id(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.BinaryCapture.session_id) + return _s; +} +inline const std::string& BinaryCapture::_internal_session_id() const { + return _impl_.session_id_.Get(); +} +inline void BinaryCapture::_internal_set_session_id(const std::string& value) { + + _impl_.session_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* BinaryCapture::_internal_mutable_session_id() { + + return _impl_.session_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* BinaryCapture::release_session_id() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.BinaryCapture.session_id) + return _impl_.session_id_.Release(); +} +inline void BinaryCapture::set_allocated_session_id(std::string* session_id) { + if (session_id != nullptr) { + + } else { + + } + _impl_.session_id_.SetAllocated(session_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.session_id_.IsDefault()) { + _impl_.session_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.BinaryCapture.session_id) +} + +// string mime_type = 16 [json_name = "mimeType", (.tagger.v1.tags) = "bson:\"mime_type\" json:\"mime_type\""]; +inline void BinaryCapture::clear_mime_type() { + _impl_.mime_type_.ClearToEmpty(); +} +inline const std::string& BinaryCapture::mime_type() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.BinaryCapture.mime_type) + return _internal_mime_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BinaryCapture::set_mime_type(ArgT0&& arg0, ArgT... args) { + + _impl_.mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.BinaryCapture.mime_type) +} +inline std::string* BinaryCapture::mutable_mime_type() { + std::string* _s = _internal_mutable_mime_type(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.BinaryCapture.mime_type) + return _s; +} +inline const std::string& BinaryCapture::_internal_mime_type() const { + return _impl_.mime_type_.Get(); +} +inline void BinaryCapture::_internal_set_mime_type(const std::string& value) { + + _impl_.mime_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* BinaryCapture::_internal_mutable_mime_type() { + + return _impl_.mime_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* BinaryCapture::release_mime_type() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.BinaryCapture.mime_type) + return _impl_.mime_type_.Release(); +} +inline void BinaryCapture::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + _impl_.mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.mime_type_.IsDefault()) { + _impl_.mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.BinaryCapture.mime_type) +} + +// string file_name = 17 [json_name = "fileName", (.tagger.v1.tags) = "bson:\"file_name\" json:\"file_name\""]; +inline void BinaryCapture::clear_file_name() { + _impl_.file_name_.ClearToEmpty(); +} +inline const std::string& BinaryCapture::file_name() const { + // @@protoc_insertion_point(field_get:viam.app.datasync.v1.BinaryCapture.file_name) + return _internal_file_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BinaryCapture::set_file_name(ArgT0&& arg0, ArgT... args) { + + _impl_.file_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.datasync.v1.BinaryCapture.file_name) +} +inline std::string* BinaryCapture::mutable_file_name() { + std::string* _s = _internal_mutable_file_name(); + // @@protoc_insertion_point(field_mutable:viam.app.datasync.v1.BinaryCapture.file_name) + return _s; +} +inline const std::string& BinaryCapture::_internal_file_name() const { + return _impl_.file_name_.Get(); +} +inline void BinaryCapture::_internal_set_file_name(const std::string& value) { + + _impl_.file_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* BinaryCapture::_internal_mutable_file_name() { + + return _impl_.file_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* BinaryCapture::release_file_name() { + // @@protoc_insertion_point(field_release:viam.app.datasync.v1.BinaryCapture.file_name) + return _impl_.file_name_.Release(); +} +inline void BinaryCapture::set_allocated_file_name(std::string* file_name) { + if (file_name != nullptr) { + + } else { + + } + _impl_.file_name_.SetAllocated(file_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.file_name_.IsDefault()) { + _impl_.file_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.datasync.v1.BinaryCapture.file_name) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace datasync +} // namespace app +} // namespace viam + +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::viam::app::datasync::v1::DataType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::viam::app::datasync::v1::DataType>() { + return ::viam::app::datasync::v1::DataType_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_app_2fdatasync_2fv1_2fdata_5fsync_2eproto diff --git a/src/gen/app/model/v1/model.grpc.pb.cc b/src/gen/app/model/v1/model.grpc.pb.cc new file mode 100644 index 000000000..3a6057089 --- /dev/null +++ b/src/gen/app/model/v1/model.grpc.pb.cc @@ -0,0 +1,169 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: app/model/v1/model.proto + +#include "app/model/v1/model.pb.h" +#include "app/model/v1/model.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace app { +namespace model { +namespace v1 { + +static const char* ModelService_method_names[] = { + "/viam.app.model.v1.ModelService/Upload", + "/viam.app.model.v1.ModelService/Delete", + "/viam.app.model.v1.ModelService/Deploy", +}; + +std::unique_ptr< ModelService::Stub> ModelService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< ModelService::Stub> stub(new ModelService::Stub(channel, options)); + return stub; +} + +ModelService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_Upload_(ModelService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::CLIENT_STREAMING, channel) + , rpcmethod_Delete_(ModelService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Deploy_(ModelService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::ClientWriter< ::viam::app::model::v1::UploadRequest>* ModelService::Stub::UploadRaw(::grpc::ClientContext* context, ::viam::app::model::v1::UploadResponse* response) { + return ::grpc::internal::ClientWriterFactory< ::viam::app::model::v1::UploadRequest>::Create(channel_.get(), rpcmethod_Upload_, context, response); +} + +void ModelService::Stub::async::Upload(::grpc::ClientContext* context, ::viam::app::model::v1::UploadResponse* response, ::grpc::ClientWriteReactor< ::viam::app::model::v1::UploadRequest>* reactor) { + ::grpc::internal::ClientCallbackWriterFactory< ::viam::app::model::v1::UploadRequest>::Create(stub_->channel_.get(), stub_->rpcmethod_Upload_, context, response, reactor); +} + +::grpc::ClientAsyncWriter< ::viam::app::model::v1::UploadRequest>* ModelService::Stub::AsyncUploadRaw(::grpc::ClientContext* context, ::viam::app::model::v1::UploadResponse* response, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc::internal::ClientAsyncWriterFactory< ::viam::app::model::v1::UploadRequest>::Create(channel_.get(), cq, rpcmethod_Upload_, context, response, true, tag); +} + +::grpc::ClientAsyncWriter< ::viam::app::model::v1::UploadRequest>* ModelService::Stub::PrepareAsyncUploadRaw(::grpc::ClientContext* context, ::viam::app::model::v1::UploadResponse* response, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncWriterFactory< ::viam::app::model::v1::UploadRequest>::Create(channel_.get(), cq, rpcmethod_Upload_, context, response, false, nullptr); +} + +::grpc::Status ModelService::Stub::Delete(::grpc::ClientContext* context, const ::viam::app::model::v1::DeleteRequest& request, ::viam::app::model::v1::DeleteResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::model::v1::DeleteRequest, ::viam::app::model::v1::DeleteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Delete_, context, request, response); +} + +void ModelService::Stub::async::Delete(::grpc::ClientContext* context, const ::viam::app::model::v1::DeleteRequest* request, ::viam::app::model::v1::DeleteResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::model::v1::DeleteRequest, ::viam::app::model::v1::DeleteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Delete_, context, request, response, std::move(f)); +} + +void ModelService::Stub::async::Delete(::grpc::ClientContext* context, const ::viam::app::model::v1::DeleteRequest* request, ::viam::app::model::v1::DeleteResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Delete_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::model::v1::DeleteResponse>* ModelService::Stub::PrepareAsyncDeleteRaw(::grpc::ClientContext* context, const ::viam::app::model::v1::DeleteRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::model::v1::DeleteResponse, ::viam::app::model::v1::DeleteRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Delete_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::model::v1::DeleteResponse>* ModelService::Stub::AsyncDeleteRaw(::grpc::ClientContext* context, const ::viam::app::model::v1::DeleteRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncDeleteRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status ModelService::Stub::Deploy(::grpc::ClientContext* context, const ::viam::app::model::v1::DeployRequest& request, ::viam::app::model::v1::DeployResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::model::v1::DeployRequest, ::viam::app::model::v1::DeployResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Deploy_, context, request, response); +} + +void ModelService::Stub::async::Deploy(::grpc::ClientContext* context, const ::viam::app::model::v1::DeployRequest* request, ::viam::app::model::v1::DeployResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::model::v1::DeployRequest, ::viam::app::model::v1::DeployResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Deploy_, context, request, response, std::move(f)); +} + +void ModelService::Stub::async::Deploy(::grpc::ClientContext* context, const ::viam::app::model::v1::DeployRequest* request, ::viam::app::model::v1::DeployResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Deploy_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::model::v1::DeployResponse>* ModelService::Stub::PrepareAsyncDeployRaw(::grpc::ClientContext* context, const ::viam::app::model::v1::DeployRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::model::v1::DeployResponse, ::viam::app::model::v1::DeployRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Deploy_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::model::v1::DeployResponse>* ModelService::Stub::AsyncDeployRaw(::grpc::ClientContext* context, const ::viam::app::model::v1::DeployRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncDeployRaw(context, request, cq); + result->StartCall(); + return result; +} + +ModelService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + ModelService_method_names[0], + ::grpc::internal::RpcMethod::CLIENT_STREAMING, + new ::grpc::internal::ClientStreamingHandler< ModelService::Service, ::viam::app::model::v1::UploadRequest, ::viam::app::model::v1::UploadResponse>( + [](ModelService::Service* service, + ::grpc::ServerContext* ctx, + ::grpc::ServerReader<::viam::app::model::v1::UploadRequest>* reader, + ::viam::app::model::v1::UploadResponse* resp) { + return service->Upload(ctx, reader, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ModelService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ModelService::Service, ::viam::app::model::v1::DeleteRequest, ::viam::app::model::v1::DeleteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ModelService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::model::v1::DeleteRequest* req, + ::viam::app::model::v1::DeleteResponse* resp) { + return service->Delete(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ModelService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ModelService::Service, ::viam::app::model::v1::DeployRequest, ::viam::app::model::v1::DeployResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ModelService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::model::v1::DeployRequest* req, + ::viam::app::model::v1::DeployResponse* resp) { + return service->Deploy(ctx, req, resp); + }, this))); +} + +ModelService::Service::~Service() { +} + +::grpc::Status ModelService::Service::Upload(::grpc::ServerContext* context, ::grpc::ServerReader< ::viam::app::model::v1::UploadRequest>* reader, ::viam::app::model::v1::UploadResponse* response) { + (void) context; + (void) reader; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ModelService::Service::Delete(::grpc::ServerContext* context, const ::viam::app::model::v1::DeleteRequest* request, ::viam::app::model::v1::DeleteResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ModelService::Service::Deploy(::grpc::ServerContext* context, const ::viam::app::model::v1::DeployRequest* request, ::viam::app::model::v1::DeployResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace app +} // namespace model +} // namespace v1 + diff --git a/src/gen/app/model/v1/model.grpc.pb.h b/src/gen/app/model/v1/model.grpc.pb.h new file mode 100644 index 000000000..c316e2e0a --- /dev/null +++ b/src/gen/app/model/v1/model.grpc.pb.h @@ -0,0 +1,532 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: app/model/v1/model.proto +#ifndef GRPC_app_2fmodel_2fv1_2fmodel_2eproto__INCLUDED +#define GRPC_app_2fmodel_2fv1_2fmodel_2eproto__INCLUDED + +#include "app/model/v1/model.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace app { +namespace model { +namespace v1 { + +class ModelService final { + public: + static constexpr char const* service_full_name() { + return "viam.app.model.v1.ModelService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + std::unique_ptr< ::grpc::ClientWriterInterface< ::viam::app::model::v1::UploadRequest>> Upload(::grpc::ClientContext* context, ::viam::app::model::v1::UploadResponse* response) { + return std::unique_ptr< ::grpc::ClientWriterInterface< ::viam::app::model::v1::UploadRequest>>(UploadRaw(context, response)); + } + std::unique_ptr< ::grpc::ClientAsyncWriterInterface< ::viam::app::model::v1::UploadRequest>> AsyncUpload(::grpc::ClientContext* context, ::viam::app::model::v1::UploadResponse* response, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncWriterInterface< ::viam::app::model::v1::UploadRequest>>(AsyncUploadRaw(context, response, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncWriterInterface< ::viam::app::model::v1::UploadRequest>> PrepareAsyncUpload(::grpc::ClientContext* context, ::viam::app::model::v1::UploadResponse* response, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncWriterInterface< ::viam::app::model::v1::UploadRequest>>(PrepareAsyncUploadRaw(context, response, cq)); + } + virtual ::grpc::Status Delete(::grpc::ClientContext* context, const ::viam::app::model::v1::DeleteRequest& request, ::viam::app::model::v1::DeleteResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::model::v1::DeleteResponse>> AsyncDelete(::grpc::ClientContext* context, const ::viam::app::model::v1::DeleteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::model::v1::DeleteResponse>>(AsyncDeleteRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::model::v1::DeleteResponse>> PrepareAsyncDelete(::grpc::ClientContext* context, const ::viam::app::model::v1::DeleteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::model::v1::DeleteResponse>>(PrepareAsyncDeleteRaw(context, request, cq)); + } + virtual ::grpc::Status Deploy(::grpc::ClientContext* context, const ::viam::app::model::v1::DeployRequest& request, ::viam::app::model::v1::DeployResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::model::v1::DeployResponse>> AsyncDeploy(::grpc::ClientContext* context, const ::viam::app::model::v1::DeployRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::model::v1::DeployResponse>>(AsyncDeployRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::model::v1::DeployResponse>> PrepareAsyncDeploy(::grpc::ClientContext* context, const ::viam::app::model::v1::DeployRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::model::v1::DeployResponse>>(PrepareAsyncDeployRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void Upload(::grpc::ClientContext* context, ::viam::app::model::v1::UploadResponse* response, ::grpc::ClientWriteReactor< ::viam::app::model::v1::UploadRequest>* reactor) = 0; + virtual void Delete(::grpc::ClientContext* context, const ::viam::app::model::v1::DeleteRequest* request, ::viam::app::model::v1::DeleteResponse* response, std::function) = 0; + virtual void Delete(::grpc::ClientContext* context, const ::viam::app::model::v1::DeleteRequest* request, ::viam::app::model::v1::DeleteResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void Deploy(::grpc::ClientContext* context, const ::viam::app::model::v1::DeployRequest* request, ::viam::app::model::v1::DeployResponse* response, std::function) = 0; + virtual void Deploy(::grpc::ClientContext* context, const ::viam::app::model::v1::DeployRequest* request, ::viam::app::model::v1::DeployResponse* 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::ClientWriterInterface< ::viam::app::model::v1::UploadRequest>* UploadRaw(::grpc::ClientContext* context, ::viam::app::model::v1::UploadResponse* response) = 0; + virtual ::grpc::ClientAsyncWriterInterface< ::viam::app::model::v1::UploadRequest>* AsyncUploadRaw(::grpc::ClientContext* context, ::viam::app::model::v1::UploadResponse* response, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncWriterInterface< ::viam::app::model::v1::UploadRequest>* PrepareAsyncUploadRaw(::grpc::ClientContext* context, ::viam::app::model::v1::UploadResponse* response, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::model::v1::DeleteResponse>* AsyncDeleteRaw(::grpc::ClientContext* context, const ::viam::app::model::v1::DeleteRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::model::v1::DeleteResponse>* PrepareAsyncDeleteRaw(::grpc::ClientContext* context, const ::viam::app::model::v1::DeleteRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::model::v1::DeployResponse>* AsyncDeployRaw(::grpc::ClientContext* context, const ::viam::app::model::v1::DeployRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::model::v1::DeployResponse>* PrepareAsyncDeployRaw(::grpc::ClientContext* context, const ::viam::app::model::v1::DeployRequest& 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::ClientWriter< ::viam::app::model::v1::UploadRequest>> Upload(::grpc::ClientContext* context, ::viam::app::model::v1::UploadResponse* response) { + return std::unique_ptr< ::grpc::ClientWriter< ::viam::app::model::v1::UploadRequest>>(UploadRaw(context, response)); + } + std::unique_ptr< ::grpc::ClientAsyncWriter< ::viam::app::model::v1::UploadRequest>> AsyncUpload(::grpc::ClientContext* context, ::viam::app::model::v1::UploadResponse* response, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncWriter< ::viam::app::model::v1::UploadRequest>>(AsyncUploadRaw(context, response, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncWriter< ::viam::app::model::v1::UploadRequest>> PrepareAsyncUpload(::grpc::ClientContext* context, ::viam::app::model::v1::UploadResponse* response, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncWriter< ::viam::app::model::v1::UploadRequest>>(PrepareAsyncUploadRaw(context, response, cq)); + } + ::grpc::Status Delete(::grpc::ClientContext* context, const ::viam::app::model::v1::DeleteRequest& request, ::viam::app::model::v1::DeleteResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::model::v1::DeleteResponse>> AsyncDelete(::grpc::ClientContext* context, const ::viam::app::model::v1::DeleteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::model::v1::DeleteResponse>>(AsyncDeleteRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::model::v1::DeleteResponse>> PrepareAsyncDelete(::grpc::ClientContext* context, const ::viam::app::model::v1::DeleteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::model::v1::DeleteResponse>>(PrepareAsyncDeleteRaw(context, request, cq)); + } + ::grpc::Status Deploy(::grpc::ClientContext* context, const ::viam::app::model::v1::DeployRequest& request, ::viam::app::model::v1::DeployResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::model::v1::DeployResponse>> AsyncDeploy(::grpc::ClientContext* context, const ::viam::app::model::v1::DeployRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::model::v1::DeployResponse>>(AsyncDeployRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::model::v1::DeployResponse>> PrepareAsyncDeploy(::grpc::ClientContext* context, const ::viam::app::model::v1::DeployRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::model::v1::DeployResponse>>(PrepareAsyncDeployRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void Upload(::grpc::ClientContext* context, ::viam::app::model::v1::UploadResponse* response, ::grpc::ClientWriteReactor< ::viam::app::model::v1::UploadRequest>* reactor) override; + void Delete(::grpc::ClientContext* context, const ::viam::app::model::v1::DeleteRequest* request, ::viam::app::model::v1::DeleteResponse* response, std::function) override; + void Delete(::grpc::ClientContext* context, const ::viam::app::model::v1::DeleteRequest* request, ::viam::app::model::v1::DeleteResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void Deploy(::grpc::ClientContext* context, const ::viam::app::model::v1::DeployRequest* request, ::viam::app::model::v1::DeployResponse* response, std::function) override; + void Deploy(::grpc::ClientContext* context, const ::viam::app::model::v1::DeployRequest* request, ::viam::app::model::v1::DeployResponse* 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::ClientWriter< ::viam::app::model::v1::UploadRequest>* UploadRaw(::grpc::ClientContext* context, ::viam::app::model::v1::UploadResponse* response) override; + ::grpc::ClientAsyncWriter< ::viam::app::model::v1::UploadRequest>* AsyncUploadRaw(::grpc::ClientContext* context, ::viam::app::model::v1::UploadResponse* response, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncWriter< ::viam::app::model::v1::UploadRequest>* PrepareAsyncUploadRaw(::grpc::ClientContext* context, ::viam::app::model::v1::UploadResponse* response, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::model::v1::DeleteResponse>* AsyncDeleteRaw(::grpc::ClientContext* context, const ::viam::app::model::v1::DeleteRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::model::v1::DeleteResponse>* PrepareAsyncDeleteRaw(::grpc::ClientContext* context, const ::viam::app::model::v1::DeleteRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::model::v1::DeployResponse>* AsyncDeployRaw(::grpc::ClientContext* context, const ::viam::app::model::v1::DeployRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::model::v1::DeployResponse>* PrepareAsyncDeployRaw(::grpc::ClientContext* context, const ::viam::app::model::v1::DeployRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_Upload_; + const ::grpc::internal::RpcMethod rpcmethod_Delete_; + const ::grpc::internal::RpcMethod rpcmethod_Deploy_; + }; + 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(); + virtual ::grpc::Status Upload(::grpc::ServerContext* context, ::grpc::ServerReader< ::viam::app::model::v1::UploadRequest>* reader, ::viam::app::model::v1::UploadResponse* response); + virtual ::grpc::Status Delete(::grpc::ServerContext* context, const ::viam::app::model::v1::DeleteRequest* request, ::viam::app::model::v1::DeleteResponse* response); + virtual ::grpc::Status Deploy(::grpc::ServerContext* context, const ::viam::app::model::v1::DeployRequest* request, ::viam::app::model::v1::DeployResponse* response); + }; + template + class WithAsyncMethod_Upload : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Upload() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_Upload() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Upload(::grpc::ServerContext* /*context*/, ::grpc::ServerReader< ::viam::app::model::v1::UploadRequest>* /*reader*/, ::viam::app::model::v1::UploadResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpload(::grpc::ServerContext* context, ::grpc::ServerAsyncReader< ::viam::app::model::v1::UploadResponse, ::viam::app::model::v1::UploadRequest>* reader, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncClientStreaming(0, context, reader, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_Delete : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Delete() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_Delete() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Delete(::grpc::ServerContext* /*context*/, const ::viam::app::model::v1::DeleteRequest* /*request*/, ::viam::app::model::v1::DeleteResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDelete(::grpc::ServerContext* context, ::viam::app::model::v1::DeleteRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::model::v1::DeleteResponse>* 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 WithAsyncMethod_Deploy : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Deploy() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_Deploy() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Deploy(::grpc::ServerContext* /*context*/, const ::viam::app::model::v1::DeployRequest* /*request*/, ::viam::app::model::v1::DeployResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeploy(::grpc::ServerContext* context, ::viam::app::model::v1::DeployRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::model::v1::DeployResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_Upload > > AsyncService; + template + class WithCallbackMethod_Upload : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Upload() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackClientStreamingHandler< ::viam::app::model::v1::UploadRequest, ::viam::app::model::v1::UploadResponse>( + [this]( + ::grpc::CallbackServerContext* context, ::viam::app::model::v1::UploadResponse* response) { return this->Upload(context, response); })); + } + ~WithCallbackMethod_Upload() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Upload(::grpc::ServerContext* /*context*/, ::grpc::ServerReader< ::viam::app::model::v1::UploadRequest>* /*reader*/, ::viam::app::model::v1::UploadResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerReadReactor< ::viam::app::model::v1::UploadRequest>* Upload( + ::grpc::CallbackServerContext* /*context*/, ::viam::app::model::v1::UploadResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_Delete : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Delete() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::model::v1::DeleteRequest, ::viam::app::model::v1::DeleteResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::model::v1::DeleteRequest* request, ::viam::app::model::v1::DeleteResponse* response) { return this->Delete(context, request, response); }));} + void SetMessageAllocatorFor_Delete( + ::grpc::MessageAllocator< ::viam::app::model::v1::DeleteRequest, ::viam::app::model::v1::DeleteResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::model::v1::DeleteRequest, ::viam::app::model::v1::DeleteResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Delete() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Delete(::grpc::ServerContext* /*context*/, const ::viam::app::model::v1::DeleteRequest* /*request*/, ::viam::app::model::v1::DeleteResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Delete( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::model::v1::DeleteRequest* /*request*/, ::viam::app::model::v1::DeleteResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_Deploy : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Deploy() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::model::v1::DeployRequest, ::viam::app::model::v1::DeployResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::model::v1::DeployRequest* request, ::viam::app::model::v1::DeployResponse* response) { return this->Deploy(context, request, response); }));} + void SetMessageAllocatorFor_Deploy( + ::grpc::MessageAllocator< ::viam::app::model::v1::DeployRequest, ::viam::app::model::v1::DeployResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::model::v1::DeployRequest, ::viam::app::model::v1::DeployResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Deploy() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Deploy(::grpc::ServerContext* /*context*/, const ::viam::app::model::v1::DeployRequest* /*request*/, ::viam::app::model::v1::DeployResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Deploy( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::model::v1::DeployRequest* /*request*/, ::viam::app::model::v1::DeployResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_Upload > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_Upload : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Upload() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_Upload() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Upload(::grpc::ServerContext* /*context*/, ::grpc::ServerReader< ::viam::app::model::v1::UploadRequest>* /*reader*/, ::viam::app::model::v1::UploadResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_Delete : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Delete() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_Delete() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Delete(::grpc::ServerContext* /*context*/, const ::viam::app::model::v1::DeleteRequest* /*request*/, ::viam::app::model::v1::DeleteResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_Deploy : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Deploy() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_Deploy() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Deploy(::grpc::ServerContext* /*context*/, const ::viam::app::model::v1::DeployRequest* /*request*/, ::viam::app::model::v1::DeployResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_Upload : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Upload() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_Upload() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Upload(::grpc::ServerContext* /*context*/, ::grpc::ServerReader< ::viam::app::model::v1::UploadRequest>* /*reader*/, ::viam::app::model::v1::UploadResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpload(::grpc::ServerContext* context, ::grpc::ServerAsyncReader< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* reader, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncClientStreaming(0, context, reader, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_Delete : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Delete() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_Delete() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Delete(::grpc::ServerContext* /*context*/, const ::viam::app::model::v1::DeleteRequest* /*request*/, ::viam::app::model::v1::DeleteResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDelete(::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 WithRawMethod_Deploy : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Deploy() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_Deploy() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Deploy(::grpc::ServerContext* /*context*/, const ::viam::app::model::v1::DeployRequest* /*request*/, ::viam::app::model::v1::DeployResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeploy(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_Upload : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Upload() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackClientStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, ::grpc::ByteBuffer* response) { return this->Upload(context, response); })); + } + ~WithRawCallbackMethod_Upload() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Upload(::grpc::ServerContext* /*context*/, ::grpc::ServerReader< ::viam::app::model::v1::UploadRequest>* /*reader*/, ::viam::app::model::v1::UploadResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerReadReactor< ::grpc::ByteBuffer>* Upload( + ::grpc::CallbackServerContext* /*context*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_Delete : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Delete() { + ::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->Delete(context, request, response); })); + } + ~WithRawCallbackMethod_Delete() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Delete(::grpc::ServerContext* /*context*/, const ::viam::app::model::v1::DeleteRequest* /*request*/, ::viam::app::model::v1::DeleteResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Delete( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_Deploy : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Deploy() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Deploy(context, request, response); })); + } + ~WithRawCallbackMethod_Deploy() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Deploy(::grpc::ServerContext* /*context*/, const ::viam::app::model::v1::DeployRequest* /*request*/, ::viam::app::model::v1::DeployResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Deploy( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_Delete : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Delete() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::model::v1::DeleteRequest, ::viam::app::model::v1::DeleteResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::model::v1::DeleteRequest, ::viam::app::model::v1::DeleteResponse>* streamer) { + return this->StreamedDelete(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Delete() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Delete(::grpc::ServerContext* /*context*/, const ::viam::app::model::v1::DeleteRequest* /*request*/, ::viam::app::model::v1::DeleteResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDelete(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::model::v1::DeleteRequest,::viam::app::model::v1::DeleteResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_Deploy : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Deploy() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::model::v1::DeployRequest, ::viam::app::model::v1::DeployResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::model::v1::DeployRequest, ::viam::app::model::v1::DeployResponse>* streamer) { + return this->StreamedDeploy(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Deploy() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Deploy(::grpc::ServerContext* /*context*/, const ::viam::app::model::v1::DeployRequest* /*request*/, ::viam::app::model::v1::DeployResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDeploy(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::model::v1::DeployRequest,::viam::app::model::v1::DeployResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_Delete > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_Delete > StreamedService; +}; + +} // namespace v1 +} // namespace model +} // namespace app +} // namespace viam + + +#endif // GRPC_app_2fmodel_2fv1_2fmodel_2eproto__INCLUDED diff --git a/src/gen/app/model/v1/model.pb.cc b/src/gen/app/model/v1/model.pb.cc new file mode 100644 index 000000000..070c78c3d --- /dev/null +++ b/src/gen/app/model/v1/model.pb.cc @@ -0,0 +1,3187 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: app/model/v1/model.proto + +#include "app/model/v1/model.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 app { +namespace model { +namespace v1 { +PROTOBUF_CONSTEXPR FileData::FileData( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.data_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct FileDataDefaultTypeInternal { + PROTOBUF_CONSTEXPR FileDataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FileDataDefaultTypeInternal() {} + union { + FileData _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileDataDefaultTypeInternal _FileData_default_instance_; +PROTOBUF_CONSTEXPR UploadMetadata::UploadMetadata( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.org_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.model_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.associated_dataset_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct UploadMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR UploadMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UploadMetadataDefaultTypeInternal() {} + union { + UploadMetadata _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UploadMetadataDefaultTypeInternal _UploadMetadata_default_instance_; +PROTOBUF_CONSTEXPR UploadRequest::UploadRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.upload_packet_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct UploadRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR UploadRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UploadRequestDefaultTypeInternal() {} + union { + UploadRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UploadRequestDefaultTypeInternal _UploadRequest_default_instance_; +PROTOBUF_CONSTEXPR DeleteMetadata::DeleteMetadata( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.org_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.model_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DeleteMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteMetadataDefaultTypeInternal() {} + union { + DeleteMetadata _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteMetadataDefaultTypeInternal _DeleteMetadata_default_instance_; +PROTOBUF_CONSTEXPR DeleteRequest::DeleteRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.metadata_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DeleteRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteRequestDefaultTypeInternal() {} + union { + DeleteRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRequestDefaultTypeInternal _DeleteRequest_default_instance_; +PROTOBUF_CONSTEXPR DeployMetadata::DeployMetadata( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.model_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DeployMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeployMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeployMetadataDefaultTypeInternal() {} + union { + DeployMetadata _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeployMetadataDefaultTypeInternal _DeployMetadata_default_instance_; +PROTOBUF_CONSTEXPR DeployRequest::DeployRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.metadata_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DeployRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeployRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeployRequestDefaultTypeInternal() {} + union { + DeployRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeployRequestDefaultTypeInternal _DeployRequest_default_instance_; +PROTOBUF_CONSTEXPR UploadResponse::UploadResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.message_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.status_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct UploadResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR UploadResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UploadResponseDefaultTypeInternal() {} + union { + UploadResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UploadResponseDefaultTypeInternal _UploadResponse_default_instance_; +PROTOBUF_CONSTEXPR DeleteResponse::DeleteResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.message_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.status_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DeleteResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteResponseDefaultTypeInternal() {} + union { + DeleteResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteResponseDefaultTypeInternal _DeleteResponse_default_instance_; +PROTOBUF_CONSTEXPR DeployResponse::DeployResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.message_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.status_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DeployResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeployResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeployResponseDefaultTypeInternal() {} + union { + DeployResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeployResponseDefaultTypeInternal _DeployResponse_default_instance_; +PROTOBUF_CONSTEXPR SyncedModel::SyncedModel( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.org_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.model_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.associated_dataset_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.blob_path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.sync_time_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SyncedModelDefaultTypeInternal { + PROTOBUF_CONSTEXPR SyncedModelDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SyncedModelDefaultTypeInternal() {} + union { + SyncedModel _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SyncedModelDefaultTypeInternal _SyncedModel_default_instance_; +} // namespace v1 +} // namespace model +} // namespace app +} // namespace viam +static ::_pb::Metadata file_level_metadata_app_2fmodel_2fv1_2fmodel_2eproto[11]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_app_2fmodel_2fv1_2fmodel_2eproto[1]; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_app_2fmodel_2fv1_2fmodel_2eproto = nullptr; + +const uint32_t TableStruct_app_2fmodel_2fv1_2fmodel_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::FileData, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::FileData, _impl_.data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::UploadMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::UploadMetadata, _impl_.org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::UploadMetadata, _impl_.model_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::UploadMetadata, _impl_.associated_dataset_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::UploadRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::UploadRequest, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::UploadRequest, _impl_.upload_packet_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::DeleteMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::DeleteMetadata, _impl_.org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::DeleteMetadata, _impl_.model_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::DeleteRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::DeleteRequest, _impl_.metadata_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::DeployMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::DeployMetadata, _impl_.model_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::DeployRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::DeployRequest, _impl_.metadata_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::UploadResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::UploadResponse, _impl_.message_), + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::UploadResponse, _impl_.status_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::DeleteResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::DeleteResponse, _impl_.message_), + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::DeleteResponse, _impl_.status_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::DeployResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::DeployResponse, _impl_.message_), + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::DeployResponse, _impl_.status_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::SyncedModel, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::SyncedModel, _impl_.org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::SyncedModel, _impl_.model_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::SyncedModel, _impl_.associated_dataset_), + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::SyncedModel, _impl_.blob_path_), + PROTOBUF_FIELD_OFFSET(::viam::app::model::v1::SyncedModel, _impl_.sync_time_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::app::model::v1::FileData)}, + { 7, -1, -1, sizeof(::viam::app::model::v1::UploadMetadata)}, + { 16, -1, -1, sizeof(::viam::app::model::v1::UploadRequest)}, + { 25, -1, -1, sizeof(::viam::app::model::v1::DeleteMetadata)}, + { 33, -1, -1, sizeof(::viam::app::model::v1::DeleteRequest)}, + { 40, -1, -1, sizeof(::viam::app::model::v1::DeployMetadata)}, + { 47, -1, -1, sizeof(::viam::app::model::v1::DeployRequest)}, + { 54, -1, -1, sizeof(::viam::app::model::v1::UploadResponse)}, + { 62, -1, -1, sizeof(::viam::app::model::v1::DeleteResponse)}, + { 70, -1, -1, sizeof(::viam::app::model::v1::DeployResponse)}, + { 78, -1, -1, sizeof(::viam::app::model::v1::SyncedModel)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::app::model::v1::_FileData_default_instance_._instance, + &::viam::app::model::v1::_UploadMetadata_default_instance_._instance, + &::viam::app::model::v1::_UploadRequest_default_instance_._instance, + &::viam::app::model::v1::_DeleteMetadata_default_instance_._instance, + &::viam::app::model::v1::_DeleteRequest_default_instance_._instance, + &::viam::app::model::v1::_DeployMetadata_default_instance_._instance, + &::viam::app::model::v1::_DeployRequest_default_instance_._instance, + &::viam::app::model::v1::_UploadResponse_default_instance_._instance, + &::viam::app::model::v1::_DeleteResponse_default_instance_._instance, + &::viam::app::model::v1::_DeployResponse_default_instance_._instance, + &::viam::app::model::v1::_SyncedModel_default_instance_._instance, +}; + +const char descriptor_table_protodef_app_2fmodel_2fv1_2fmodel_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\030app/model/v1/model.proto\022\021viam.app.mod" + "el.v1\032\037google/protobuf/timestamp.proto\"\036" + "\n\010FileData\022\022\n\004data\030\001 \001(\014R\004data\"u\n\016Upload" + "Metadata\022\025\n\006org_id\030\001 \001(\tR\005orgId\022\035\n\nmodel" + "_name\030\002 \001(\tR\tmodelName\022-\n\022associated_dat" + "aset\030\003 \001(\tR\021associatedDataset\"\245\001\n\rUpload" + "Request\022\?\n\010metadata\030\001 \001(\0132!.viam.app.mod" + "el.v1.UploadMetadataH\000R\010metadata\022B\n\rfile" + "_contents\030\002 \001(\0132\033.viam.app.model.v1.File" + "DataH\000R\014fileContentsB\017\n\rupload_packet\"F\n" + "\016DeleteMetadata\022\025\n\006org_id\030\001 \001(\tR\005orgId\022\035" + "\n\nmodel_name\030\002 \001(\tR\tmodelName\"N\n\rDeleteR" + "equest\022=\n\010metadata\030\001 \001(\0132!.viam.app.mode" + "l.v1.DeleteMetadataR\010metadata\"/\n\016DeployM" + "etadata\022\035\n\nmodel_name\030\001 \001(\tR\tmodelName\"N" + "\n\rDeployRequest\022=\n\010metadata\030\001 \001(\0132!.viam" + ".app.model.v1.DeployMetadataR\010metadata\"]" + "\n\016UploadResponse\022\030\n\007message\030\001 \001(\tR\007messa" + "ge\0221\n\006status\030\002 \001(\0162\031.viam.app.model.v1.S" + "tatusR\006status\"]\n\016DeleteResponse\022\030\n\007messa" + "ge\030\001 \001(\tR\007message\0221\n\006status\030\002 \001(\0162\031.viam" + ".app.model.v1.StatusR\006status\"]\n\016DeployRe" + "sponse\022\030\n\007message\030\001 \001(\tR\007message\0221\n\006stat" + "us\030\002 \001(\0162\031.viam.app.model.v1.StatusR\006sta" + "tus\"\310\001\n\013SyncedModel\022\025\n\006org_id\030\001 \001(\tR\005org" + "Id\022\035\n\nmodel_name\030\002 \001(\tR\tmodelName\022-\n\022ass" + "ociated_dataset\030\003 \001(\tR\021associatedDataset" + "\022\033\n\tblob_path\030\004 \001(\tR\010blobPath\0227\n\tsync_ti" + "me\030\005 \001(\0132\032.google.protobuf.TimestampR\010sy" + "ncTime*+\n\006Status\022\017\n\013UNSPECIFIED\020\000\022\010\n\004FAI" + "L\020\001\022\006\n\002OK\020\0022\375\001\n\014ModelService\022O\n\006Upload\022 " + ".viam.app.model.v1.UploadRequest\032!.viam." + "app.model.v1.UploadResponse(\001\022M\n\006Delete\022" + " .viam.app.model.v1.DeleteRequest\032!.viam" + ".app.model.v1.DeleteResponse\022M\n\006Deploy\022 " + ".viam.app.model.v1.DeployRequest\032!.viam." + "app.model.v1.DeployResponseB\036Z\034go.viam.c" + "om/api/app/model/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_deps[1] = { + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, +}; +static ::_pbi::once_flag descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto = { + false, false, 1507, descriptor_table_protodef_app_2fmodel_2fv1_2fmodel_2eproto, + "app/model/v1/model.proto", + &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_once, descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_deps, 1, 11, + schemas, file_default_instances, TableStruct_app_2fmodel_2fv1_2fmodel_2eproto::offsets, + file_level_metadata_app_2fmodel_2fv1_2fmodel_2eproto, file_level_enum_descriptors_app_2fmodel_2fv1_2fmodel_2eproto, + file_level_service_descriptors_app_2fmodel_2fv1_2fmodel_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_getter() { + return &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_app_2fmodel_2fv1_2fmodel_2eproto(&descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto); +namespace viam { +namespace app { +namespace model { +namespace v1 { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Status_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto); + return file_level_enum_descriptors_app_2fmodel_2fv1_2fmodel_2eproto[0]; +} +bool Status_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + + +// =================================================================== + +class FileData::_Internal { + public: +}; + +FileData::FileData(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.model.v1.FileData) +} +FileData::FileData(const FileData& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + FileData* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.data_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_data().empty()) { + _this->_impl_.data_.Set(from._internal_data(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.model.v1.FileData) +} + +inline void FileData::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.data_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +FileData::~FileData() { + // @@protoc_insertion_point(destructor:viam.app.model.v1.FileData) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void FileData::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.data_.Destroy(); +} + +void FileData::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void FileData::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.model.v1.FileData) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.data_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FileData::_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 data = 1 [json_name = "data"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_data(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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* FileData::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.model.v1.FileData) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bytes data = 1 [json_name = "data"]; + if (!this->_internal_data().empty()) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_data(), 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.model.v1.FileData) + return target; +} + +size_t FileData::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.model.v1.FileData) + 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 data = 1 [json_name = "data"]; + if (!this->_internal_data().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_data()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FileData::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + FileData::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FileData::GetClassData() const { return &_class_data_; } + + +void FileData::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.model.v1.FileData) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_data().empty()) { + _this->_internal_set_data(from._internal_data()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void FileData::CopyFrom(const FileData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.model.v1.FileData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FileData::IsInitialized() const { + return true; +} + +void FileData::InternalSwap(FileData* 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( + &_impl_.data_, lhs_arena, + &other->_impl_.data_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FileData::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_getter, &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_once, + file_level_metadata_app_2fmodel_2fv1_2fmodel_2eproto[0]); +} + +// =================================================================== + +class UploadMetadata::_Internal { + public: +}; + +UploadMetadata::UploadMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.model.v1.UploadMetadata) +} +UploadMetadata::UploadMetadata(const UploadMetadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + UploadMetadata* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.org_id_){} + , decltype(_impl_.model_name_){} + , decltype(_impl_.associated_dataset_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + _this->_impl_.org_id_.Set(from._internal_org_id(), + _this->GetArenaForAllocation()); + } + _impl_.model_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model_name().empty()) { + _this->_impl_.model_name_.Set(from._internal_model_name(), + _this->GetArenaForAllocation()); + } + _impl_.associated_dataset_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.associated_dataset_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_associated_dataset().empty()) { + _this->_impl_.associated_dataset_.Set(from._internal_associated_dataset(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.model.v1.UploadMetadata) +} + +inline void UploadMetadata::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.org_id_){} + , decltype(_impl_.model_name_){} + , decltype(_impl_.associated_dataset_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.associated_dataset_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.associated_dataset_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +UploadMetadata::~UploadMetadata() { + // @@protoc_insertion_point(destructor:viam.app.model.v1.UploadMetadata) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void UploadMetadata::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.org_id_.Destroy(); + _impl_.model_name_.Destroy(); + _impl_.associated_dataset_.Destroy(); +} + +void UploadMetadata::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void UploadMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.model.v1.UploadMetadata) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.org_id_.ClearToEmpty(); + _impl_.model_name_.ClearToEmpty(); + _impl_.associated_dataset_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UploadMetadata::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.model.v1.UploadMetadata.org_id")); + } else + goto handle_unusual; + continue; + // string model_name = 2 [json_name = "modelName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_model_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.model.v1.UploadMetadata.model_name")); + } else + goto handle_unusual; + continue; + // string associated_dataset = 3 [json_name = "associatedDataset"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_associated_dataset(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.model.v1.UploadMetadata.associated_dataset")); + } 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* UploadMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.model.v1.UploadMetadata) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.model.v1.UploadMetadata.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); + } + + // string model_name = 2 [json_name = "modelName"]; + if (!this->_internal_model_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_model_name().data(), static_cast(this->_internal_model_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.model.v1.UploadMetadata.model_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_model_name(), target); + } + + // string associated_dataset = 3 [json_name = "associatedDataset"]; + if (!this->_internal_associated_dataset().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_associated_dataset().data(), static_cast(this->_internal_associated_dataset().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.model.v1.UploadMetadata.associated_dataset"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_associated_dataset(), 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.model.v1.UploadMetadata) + return target; +} + +size_t UploadMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.model.v1.UploadMetadata) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); + } + + // string model_name = 2 [json_name = "modelName"]; + if (!this->_internal_model_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_model_name()); + } + + // string associated_dataset = 3 [json_name = "associatedDataset"]; + if (!this->_internal_associated_dataset().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_associated_dataset()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UploadMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + UploadMetadata::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UploadMetadata::GetClassData() const { return &_class_data_; } + + +void UploadMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.model.v1.UploadMetadata) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_org_id().empty()) { + _this->_internal_set_org_id(from._internal_org_id()); + } + if (!from._internal_model_name().empty()) { + _this->_internal_set_model_name(from._internal_model_name()); + } + if (!from._internal_associated_dataset().empty()) { + _this->_internal_set_associated_dataset(from._internal_associated_dataset()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void UploadMetadata::CopyFrom(const UploadMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.model.v1.UploadMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UploadMetadata::IsInitialized() const { + return true; +} + +void UploadMetadata::InternalSwap(UploadMetadata* 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( + &_impl_.org_id_, lhs_arena, + &other->_impl_.org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.model_name_, lhs_arena, + &other->_impl_.model_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.associated_dataset_, lhs_arena, + &other->_impl_.associated_dataset_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UploadMetadata::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_getter, &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_once, + file_level_metadata_app_2fmodel_2fv1_2fmodel_2eproto[1]); +} + +// =================================================================== + +class UploadRequest::_Internal { + public: + static const ::viam::app::model::v1::UploadMetadata& metadata(const UploadRequest* msg); + static const ::viam::app::model::v1::FileData& file_contents(const UploadRequest* msg); +}; + +const ::viam::app::model::v1::UploadMetadata& +UploadRequest::_Internal::metadata(const UploadRequest* msg) { + return *msg->_impl_.upload_packet_.metadata_; +} +const ::viam::app::model::v1::FileData& +UploadRequest::_Internal::file_contents(const UploadRequest* msg) { + return *msg->_impl_.upload_packet_.file_contents_; +} +void UploadRequest::set_allocated_metadata(::viam::app::model::v1::UploadMetadata* metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_upload_packet(); + if (metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metadata); + if (message_arena != submessage_arena) { + metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + set_has_metadata(); + _impl_.upload_packet_.metadata_ = metadata; + } + // @@protoc_insertion_point(field_set_allocated:viam.app.model.v1.UploadRequest.metadata) +} +void UploadRequest::set_allocated_file_contents(::viam::app::model::v1::FileData* file_contents) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_upload_packet(); + if (file_contents) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(file_contents); + if (message_arena != submessage_arena) { + file_contents = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, file_contents, submessage_arena); + } + set_has_file_contents(); + _impl_.upload_packet_.file_contents_ = file_contents; + } + // @@protoc_insertion_point(field_set_allocated:viam.app.model.v1.UploadRequest.file_contents) +} +UploadRequest::UploadRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.model.v1.UploadRequest) +} +UploadRequest::UploadRequest(const UploadRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + UploadRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.upload_packet_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_upload_packet(); + switch (from.upload_packet_case()) { + case kMetadata: { + _this->_internal_mutable_metadata()->::viam::app::model::v1::UploadMetadata::MergeFrom( + from._internal_metadata()); + break; + } + case kFileContents: { + _this->_internal_mutable_file_contents()->::viam::app::model::v1::FileData::MergeFrom( + from._internal_file_contents()); + break; + } + case UPLOAD_PACKET_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:viam.app.model.v1.UploadRequest) +} + +inline void UploadRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.upload_packet_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_upload_packet(); +} + +UploadRequest::~UploadRequest() { + // @@protoc_insertion_point(destructor:viam.app.model.v1.UploadRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void UploadRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_upload_packet()) { + clear_upload_packet(); + } +} + +void UploadRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void UploadRequest::clear_upload_packet() { +// @@protoc_insertion_point(one_of_clear_start:viam.app.model.v1.UploadRequest) + switch (upload_packet_case()) { + case kMetadata: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.upload_packet_.metadata_; + } + break; + } + case kFileContents: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.upload_packet_.file_contents_; + } + break; + } + case UPLOAD_PACKET_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = UPLOAD_PACKET_NOT_SET; +} + + +void UploadRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.model.v1.UploadRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_upload_packet(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UploadRequest::_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) { + // .viam.app.model.v1.UploadMetadata metadata = 1 [json_name = "metadata"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_metadata(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.model.v1.FileData file_contents = 2 [json_name = "fileContents"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_file_contents(), 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* UploadRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.model.v1.UploadRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.model.v1.UploadMetadata metadata = 1 [json_name = "metadata"]; + if (_internal_has_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::metadata(this), + _Internal::metadata(this).GetCachedSize(), target, stream); + } + + // .viam.app.model.v1.FileData file_contents = 2 [json_name = "fileContents"]; + if (_internal_has_file_contents()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::file_contents(this), + _Internal::file_contents(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.model.v1.UploadRequest) + return target; +} + +size_t UploadRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.model.v1.UploadRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (upload_packet_case()) { + // .viam.app.model.v1.UploadMetadata metadata = 1 [json_name = "metadata"]; + case kMetadata: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.upload_packet_.metadata_); + break; + } + // .viam.app.model.v1.FileData file_contents = 2 [json_name = "fileContents"]; + case kFileContents: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.upload_packet_.file_contents_); + break; + } + case UPLOAD_PACKET_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UploadRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + UploadRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UploadRequest::GetClassData() const { return &_class_data_; } + + +void UploadRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.model.v1.UploadRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.upload_packet_case()) { + case kMetadata: { + _this->_internal_mutable_metadata()->::viam::app::model::v1::UploadMetadata::MergeFrom( + from._internal_metadata()); + break; + } + case kFileContents: { + _this->_internal_mutable_file_contents()->::viam::app::model::v1::FileData::MergeFrom( + from._internal_file_contents()); + break; + } + case UPLOAD_PACKET_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void UploadRequest::CopyFrom(const UploadRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.model.v1.UploadRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UploadRequest::IsInitialized() const { + return true; +} + +void UploadRequest::InternalSwap(UploadRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.upload_packet_, other->_impl_.upload_packet_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UploadRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_getter, &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_once, + file_level_metadata_app_2fmodel_2fv1_2fmodel_2eproto[2]); +} + +// =================================================================== + +class DeleteMetadata::_Internal { + public: +}; + +DeleteMetadata::DeleteMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.model.v1.DeleteMetadata) +} +DeleteMetadata::DeleteMetadata(const DeleteMetadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DeleteMetadata* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.org_id_){} + , decltype(_impl_.model_name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + _this->_impl_.org_id_.Set(from._internal_org_id(), + _this->GetArenaForAllocation()); + } + _impl_.model_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model_name().empty()) { + _this->_impl_.model_name_.Set(from._internal_model_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.model.v1.DeleteMetadata) +} + +inline void DeleteMetadata::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.org_id_){} + , decltype(_impl_.model_name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +DeleteMetadata::~DeleteMetadata() { + // @@protoc_insertion_point(destructor:viam.app.model.v1.DeleteMetadata) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DeleteMetadata::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.org_id_.Destroy(); + _impl_.model_name_.Destroy(); +} + +void DeleteMetadata::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DeleteMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.model.v1.DeleteMetadata) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.org_id_.ClearToEmpty(); + _impl_.model_name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteMetadata::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.model.v1.DeleteMetadata.org_id")); + } else + goto handle_unusual; + continue; + // string model_name = 2 [json_name = "modelName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_model_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.model.v1.DeleteMetadata.model_name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* DeleteMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.model.v1.DeleteMetadata) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.model.v1.DeleteMetadata.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); + } + + // string model_name = 2 [json_name = "modelName"]; + if (!this->_internal_model_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_model_name().data(), static_cast(this->_internal_model_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.model.v1.DeleteMetadata.model_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_model_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.model.v1.DeleteMetadata) + return target; +} + +size_t DeleteMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.model.v1.DeleteMetadata) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); + } + + // string model_name = 2 [json_name = "modelName"]; + if (!this->_internal_model_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_model_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DeleteMetadata::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteMetadata::GetClassData() const { return &_class_data_; } + + +void DeleteMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.model.v1.DeleteMetadata) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_org_id().empty()) { + _this->_internal_set_org_id(from._internal_org_id()); + } + if (!from._internal_model_name().empty()) { + _this->_internal_set_model_name(from._internal_model_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DeleteMetadata::CopyFrom(const DeleteMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.model.v1.DeleteMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteMetadata::IsInitialized() const { + return true; +} + +void DeleteMetadata::InternalSwap(DeleteMetadata* 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( + &_impl_.org_id_, lhs_arena, + &other->_impl_.org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.model_name_, lhs_arena, + &other->_impl_.model_name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DeleteMetadata::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_getter, &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_once, + file_level_metadata_app_2fmodel_2fv1_2fmodel_2eproto[3]); +} + +// =================================================================== + +class DeleteRequest::_Internal { + public: + static const ::viam::app::model::v1::DeleteMetadata& metadata(const DeleteRequest* msg); +}; + +const ::viam::app::model::v1::DeleteMetadata& +DeleteRequest::_Internal::metadata(const DeleteRequest* msg) { + return *msg->_impl_.metadata_; +} +DeleteRequest::DeleteRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.model.v1.DeleteRequest) +} +DeleteRequest::DeleteRequest(const DeleteRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DeleteRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.metadata_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_metadata()) { + _this->_impl_.metadata_ = new ::viam::app::model::v1::DeleteMetadata(*from._impl_.metadata_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.model.v1.DeleteRequest) +} + +inline void DeleteRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.metadata_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +DeleteRequest::~DeleteRequest() { + // @@protoc_insertion_point(destructor:viam.app.model.v1.DeleteRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DeleteRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.metadata_; +} + +void DeleteRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DeleteRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.model.v1.DeleteRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.metadata_ != nullptr) { + delete _impl_.metadata_; + } + _impl_.metadata_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteRequest::_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) { + // .viam.app.model.v1.DeleteMetadata metadata = 1 [json_name = "metadata"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_metadata(), 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* DeleteRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.model.v1.DeleteRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.model.v1.DeleteMetadata metadata = 1 [json_name = "metadata"]; + if (this->_internal_has_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::metadata(this), + _Internal::metadata(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.model.v1.DeleteRequest) + return target; +} + +size_t DeleteRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.model.v1.DeleteRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.app.model.v1.DeleteMetadata metadata = 1 [json_name = "metadata"]; + if (this->_internal_has_metadata()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.metadata_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DeleteRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteRequest::GetClassData() const { return &_class_data_; } + + +void DeleteRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.model.v1.DeleteRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_metadata()) { + _this->_internal_mutable_metadata()->::viam::app::model::v1::DeleteMetadata::MergeFrom( + from._internal_metadata()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DeleteRequest::CopyFrom(const DeleteRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.model.v1.DeleteRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteRequest::IsInitialized() const { + return true; +} + +void DeleteRequest::InternalSwap(DeleteRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.metadata_, other->_impl_.metadata_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DeleteRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_getter, &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_once, + file_level_metadata_app_2fmodel_2fv1_2fmodel_2eproto[4]); +} + +// =================================================================== + +class DeployMetadata::_Internal { + public: +}; + +DeployMetadata::DeployMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.model.v1.DeployMetadata) +} +DeployMetadata::DeployMetadata(const DeployMetadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DeployMetadata* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.model_name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.model_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model_name().empty()) { + _this->_impl_.model_name_.Set(from._internal_model_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.model.v1.DeployMetadata) +} + +inline void DeployMetadata::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.model_name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.model_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +DeployMetadata::~DeployMetadata() { + // @@protoc_insertion_point(destructor:viam.app.model.v1.DeployMetadata) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DeployMetadata::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.model_name_.Destroy(); +} + +void DeployMetadata::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DeployMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.model.v1.DeployMetadata) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.model_name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeployMetadata::_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 model_name = 1 [json_name = "modelName"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_model_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.model.v1.DeployMetadata.model_name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* DeployMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.model.v1.DeployMetadata) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string model_name = 1 [json_name = "modelName"]; + if (!this->_internal_model_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_model_name().data(), static_cast(this->_internal_model_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.model.v1.DeployMetadata.model_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_model_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.model.v1.DeployMetadata) + return target; +} + +size_t DeployMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.model.v1.DeployMetadata) + 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 model_name = 1 [json_name = "modelName"]; + if (!this->_internal_model_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_model_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeployMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DeployMetadata::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeployMetadata::GetClassData() const { return &_class_data_; } + + +void DeployMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.model.v1.DeployMetadata) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_model_name().empty()) { + _this->_internal_set_model_name(from._internal_model_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DeployMetadata::CopyFrom(const DeployMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.model.v1.DeployMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeployMetadata::IsInitialized() const { + return true; +} + +void DeployMetadata::InternalSwap(DeployMetadata* 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( + &_impl_.model_name_, lhs_arena, + &other->_impl_.model_name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DeployMetadata::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_getter, &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_once, + file_level_metadata_app_2fmodel_2fv1_2fmodel_2eproto[5]); +} + +// =================================================================== + +class DeployRequest::_Internal { + public: + static const ::viam::app::model::v1::DeployMetadata& metadata(const DeployRequest* msg); +}; + +const ::viam::app::model::v1::DeployMetadata& +DeployRequest::_Internal::metadata(const DeployRequest* msg) { + return *msg->_impl_.metadata_; +} +DeployRequest::DeployRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.model.v1.DeployRequest) +} +DeployRequest::DeployRequest(const DeployRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DeployRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.metadata_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_metadata()) { + _this->_impl_.metadata_ = new ::viam::app::model::v1::DeployMetadata(*from._impl_.metadata_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.model.v1.DeployRequest) +} + +inline void DeployRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.metadata_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +DeployRequest::~DeployRequest() { + // @@protoc_insertion_point(destructor:viam.app.model.v1.DeployRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DeployRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.metadata_; +} + +void DeployRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DeployRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.model.v1.DeployRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.metadata_ != nullptr) { + delete _impl_.metadata_; + } + _impl_.metadata_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeployRequest::_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) { + // .viam.app.model.v1.DeployMetadata metadata = 1 [json_name = "metadata"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_metadata(), 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* DeployRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.model.v1.DeployRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.model.v1.DeployMetadata metadata = 1 [json_name = "metadata"]; + if (this->_internal_has_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::metadata(this), + _Internal::metadata(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.model.v1.DeployRequest) + return target; +} + +size_t DeployRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.model.v1.DeployRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.app.model.v1.DeployMetadata metadata = 1 [json_name = "metadata"]; + if (this->_internal_has_metadata()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.metadata_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeployRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DeployRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeployRequest::GetClassData() const { return &_class_data_; } + + +void DeployRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.model.v1.DeployRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_metadata()) { + _this->_internal_mutable_metadata()->::viam::app::model::v1::DeployMetadata::MergeFrom( + from._internal_metadata()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DeployRequest::CopyFrom(const DeployRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.model.v1.DeployRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeployRequest::IsInitialized() const { + return true; +} + +void DeployRequest::InternalSwap(DeployRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.metadata_, other->_impl_.metadata_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DeployRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_getter, &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_once, + file_level_metadata_app_2fmodel_2fv1_2fmodel_2eproto[6]); +} + +// =================================================================== + +class UploadResponse::_Internal { + public: +}; + +UploadResponse::UploadResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.model.v1.UploadResponse) +} +UploadResponse::UploadResponse(const UploadResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + UploadResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.message_){} + , decltype(_impl_.status_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + _this->_impl_.message_.Set(from._internal_message(), + _this->GetArenaForAllocation()); + } + _this->_impl_.status_ = from._impl_.status_; + // @@protoc_insertion_point(copy_constructor:viam.app.model.v1.UploadResponse) +} + +inline void UploadResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.message_){} + , decltype(_impl_.status_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +UploadResponse::~UploadResponse() { + // @@protoc_insertion_point(destructor:viam.app.model.v1.UploadResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void UploadResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.message_.Destroy(); +} + +void UploadResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void UploadResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.model.v1.UploadResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.message_.ClearToEmpty(); + _impl_.status_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UploadResponse::_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 message = 1 [json_name = "message"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.model.v1.UploadResponse.message")); + } else + goto handle_unusual; + continue; + // .viam.app.model.v1.Status status = 2 [json_name = "status"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_status(static_cast<::viam::app::model::v1::Status>(val)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* UploadResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.model.v1.UploadResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string message = 1 [json_name = "message"]; + if (!this->_internal_message().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.model.v1.UploadResponse.message"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_message(), target); + } + + // .viam.app.model.v1.Status status = 2 [json_name = "status"]; + if (this->_internal_status() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_status(), 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.model.v1.UploadResponse) + return target; +} + +size_t UploadResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.model.v1.UploadResponse) + 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 message = 1 [json_name = "message"]; + if (!this->_internal_message().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); + } + + // .viam.app.model.v1.Status status = 2 [json_name = "status"]; + if (this->_internal_status() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_status()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UploadResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + UploadResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UploadResponse::GetClassData() const { return &_class_data_; } + + +void UploadResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.model.v1.UploadResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_message().empty()) { + _this->_internal_set_message(from._internal_message()); + } + if (from._internal_status() != 0) { + _this->_internal_set_status(from._internal_status()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void UploadResponse::CopyFrom(const UploadResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.model.v1.UploadResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UploadResponse::IsInitialized() const { + return true; +} + +void UploadResponse::InternalSwap(UploadResponse* 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( + &_impl_.message_, lhs_arena, + &other->_impl_.message_, rhs_arena + ); + swap(_impl_.status_, other->_impl_.status_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UploadResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_getter, &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_once, + file_level_metadata_app_2fmodel_2fv1_2fmodel_2eproto[7]); +} + +// =================================================================== + +class DeleteResponse::_Internal { + public: +}; + +DeleteResponse::DeleteResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.model.v1.DeleteResponse) +} +DeleteResponse::DeleteResponse(const DeleteResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DeleteResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.message_){} + , decltype(_impl_.status_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + _this->_impl_.message_.Set(from._internal_message(), + _this->GetArenaForAllocation()); + } + _this->_impl_.status_ = from._impl_.status_; + // @@protoc_insertion_point(copy_constructor:viam.app.model.v1.DeleteResponse) +} + +inline void DeleteResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.message_){} + , decltype(_impl_.status_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +DeleteResponse::~DeleteResponse() { + // @@protoc_insertion_point(destructor:viam.app.model.v1.DeleteResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DeleteResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.message_.Destroy(); +} + +void DeleteResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DeleteResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.model.v1.DeleteResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.message_.ClearToEmpty(); + _impl_.status_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteResponse::_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 message = 1 [json_name = "message"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.model.v1.DeleteResponse.message")); + } else + goto handle_unusual; + continue; + // .viam.app.model.v1.Status status = 2 [json_name = "status"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_status(static_cast<::viam::app::model::v1::Status>(val)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* DeleteResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.model.v1.DeleteResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string message = 1 [json_name = "message"]; + if (!this->_internal_message().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.model.v1.DeleteResponse.message"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_message(), target); + } + + // .viam.app.model.v1.Status status = 2 [json_name = "status"]; + if (this->_internal_status() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_status(), 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.model.v1.DeleteResponse) + return target; +} + +size_t DeleteResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.model.v1.DeleteResponse) + 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 message = 1 [json_name = "message"]; + if (!this->_internal_message().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); + } + + // .viam.app.model.v1.Status status = 2 [json_name = "status"]; + if (this->_internal_status() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_status()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DeleteResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteResponse::GetClassData() const { return &_class_data_; } + + +void DeleteResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.model.v1.DeleteResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_message().empty()) { + _this->_internal_set_message(from._internal_message()); + } + if (from._internal_status() != 0) { + _this->_internal_set_status(from._internal_status()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DeleteResponse::CopyFrom(const DeleteResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.model.v1.DeleteResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteResponse::IsInitialized() const { + return true; +} + +void DeleteResponse::InternalSwap(DeleteResponse* 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( + &_impl_.message_, lhs_arena, + &other->_impl_.message_, rhs_arena + ); + swap(_impl_.status_, other->_impl_.status_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DeleteResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_getter, &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_once, + file_level_metadata_app_2fmodel_2fv1_2fmodel_2eproto[8]); +} + +// =================================================================== + +class DeployResponse::_Internal { + public: +}; + +DeployResponse::DeployResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.model.v1.DeployResponse) +} +DeployResponse::DeployResponse(const DeployResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DeployResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.message_){} + , decltype(_impl_.status_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + _this->_impl_.message_.Set(from._internal_message(), + _this->GetArenaForAllocation()); + } + _this->_impl_.status_ = from._impl_.status_; + // @@protoc_insertion_point(copy_constructor:viam.app.model.v1.DeployResponse) +} + +inline void DeployResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.message_){} + , decltype(_impl_.status_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +DeployResponse::~DeployResponse() { + // @@protoc_insertion_point(destructor:viam.app.model.v1.DeployResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DeployResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.message_.Destroy(); +} + +void DeployResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DeployResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.model.v1.DeployResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.message_.ClearToEmpty(); + _impl_.status_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeployResponse::_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 message = 1 [json_name = "message"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.model.v1.DeployResponse.message")); + } else + goto handle_unusual; + continue; + // .viam.app.model.v1.Status status = 2 [json_name = "status"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_status(static_cast<::viam::app::model::v1::Status>(val)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* DeployResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.model.v1.DeployResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string message = 1 [json_name = "message"]; + if (!this->_internal_message().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.model.v1.DeployResponse.message"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_message(), target); + } + + // .viam.app.model.v1.Status status = 2 [json_name = "status"]; + if (this->_internal_status() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_status(), 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.model.v1.DeployResponse) + return target; +} + +size_t DeployResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.model.v1.DeployResponse) + 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 message = 1 [json_name = "message"]; + if (!this->_internal_message().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); + } + + // .viam.app.model.v1.Status status = 2 [json_name = "status"]; + if (this->_internal_status() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_status()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeployResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DeployResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeployResponse::GetClassData() const { return &_class_data_; } + + +void DeployResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.model.v1.DeployResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_message().empty()) { + _this->_internal_set_message(from._internal_message()); + } + if (from._internal_status() != 0) { + _this->_internal_set_status(from._internal_status()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DeployResponse::CopyFrom(const DeployResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.model.v1.DeployResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeployResponse::IsInitialized() const { + return true; +} + +void DeployResponse::InternalSwap(DeployResponse* 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( + &_impl_.message_, lhs_arena, + &other->_impl_.message_, rhs_arena + ); + swap(_impl_.status_, other->_impl_.status_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DeployResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_getter, &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_once, + file_level_metadata_app_2fmodel_2fv1_2fmodel_2eproto[9]); +} + +// =================================================================== + +class SyncedModel::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& sync_time(const SyncedModel* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +SyncedModel::_Internal::sync_time(const SyncedModel* msg) { + return *msg->_impl_.sync_time_; +} +void SyncedModel::clear_sync_time() { + if (GetArenaForAllocation() == nullptr && _impl_.sync_time_ != nullptr) { + delete _impl_.sync_time_; + } + _impl_.sync_time_ = nullptr; +} +SyncedModel::SyncedModel(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.model.v1.SyncedModel) +} +SyncedModel::SyncedModel(const SyncedModel& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + SyncedModel* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.org_id_){} + , decltype(_impl_.model_name_){} + , decltype(_impl_.associated_dataset_){} + , decltype(_impl_.blob_path_){} + , decltype(_impl_.sync_time_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + _this->_impl_.org_id_.Set(from._internal_org_id(), + _this->GetArenaForAllocation()); + } + _impl_.model_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model_name().empty()) { + _this->_impl_.model_name_.Set(from._internal_model_name(), + _this->GetArenaForAllocation()); + } + _impl_.associated_dataset_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.associated_dataset_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_associated_dataset().empty()) { + _this->_impl_.associated_dataset_.Set(from._internal_associated_dataset(), + _this->GetArenaForAllocation()); + } + _impl_.blob_path_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.blob_path_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_blob_path().empty()) { + _this->_impl_.blob_path_.Set(from._internal_blob_path(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_sync_time()) { + _this->_impl_.sync_time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.sync_time_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.model.v1.SyncedModel) +} + +inline void SyncedModel::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.org_id_){} + , decltype(_impl_.model_name_){} + , decltype(_impl_.associated_dataset_){} + , decltype(_impl_.blob_path_){} + , decltype(_impl_.sync_time_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.associated_dataset_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.associated_dataset_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.blob_path_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.blob_path_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +SyncedModel::~SyncedModel() { + // @@protoc_insertion_point(destructor:viam.app.model.v1.SyncedModel) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SyncedModel::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.org_id_.Destroy(); + _impl_.model_name_.Destroy(); + _impl_.associated_dataset_.Destroy(); + _impl_.blob_path_.Destroy(); + if (this != internal_default_instance()) delete _impl_.sync_time_; +} + +void SyncedModel::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SyncedModel::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.model.v1.SyncedModel) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.org_id_.ClearToEmpty(); + _impl_.model_name_.ClearToEmpty(); + _impl_.associated_dataset_.ClearToEmpty(); + _impl_.blob_path_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.sync_time_ != nullptr) { + delete _impl_.sync_time_; + } + _impl_.sync_time_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SyncedModel::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.model.v1.SyncedModel.org_id")); + } else + goto handle_unusual; + continue; + // string model_name = 2 [json_name = "modelName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_model_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.model.v1.SyncedModel.model_name")); + } else + goto handle_unusual; + continue; + // string associated_dataset = 3 [json_name = "associatedDataset"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_associated_dataset(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.model.v1.SyncedModel.associated_dataset")); + } else + goto handle_unusual; + continue; + // string blob_path = 4 [json_name = "blobPath"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_blob_path(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.model.v1.SyncedModel.blob_path")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp sync_time = 5 [json_name = "syncTime"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_sync_time(), 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* SyncedModel::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.model.v1.SyncedModel) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.model.v1.SyncedModel.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); + } + + // string model_name = 2 [json_name = "modelName"]; + if (!this->_internal_model_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_model_name().data(), static_cast(this->_internal_model_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.model.v1.SyncedModel.model_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_model_name(), target); + } + + // string associated_dataset = 3 [json_name = "associatedDataset"]; + if (!this->_internal_associated_dataset().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_associated_dataset().data(), static_cast(this->_internal_associated_dataset().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.model.v1.SyncedModel.associated_dataset"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_associated_dataset(), target); + } + + // string blob_path = 4 [json_name = "blobPath"]; + if (!this->_internal_blob_path().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_blob_path().data(), static_cast(this->_internal_blob_path().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.model.v1.SyncedModel.blob_path"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_blob_path(), target); + } + + // .google.protobuf.Timestamp sync_time = 5 [json_name = "syncTime"]; + if (this->_internal_has_sync_time()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::sync_time(this), + _Internal::sync_time(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.model.v1.SyncedModel) + return target; +} + +size_t SyncedModel::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.model.v1.SyncedModel) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); + } + + // string model_name = 2 [json_name = "modelName"]; + if (!this->_internal_model_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_model_name()); + } + + // string associated_dataset = 3 [json_name = "associatedDataset"]; + if (!this->_internal_associated_dataset().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_associated_dataset()); + } + + // string blob_path = 4 [json_name = "blobPath"]; + if (!this->_internal_blob_path().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_blob_path()); + } + + // .google.protobuf.Timestamp sync_time = 5 [json_name = "syncTime"]; + if (this->_internal_has_sync_time()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.sync_time_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SyncedModel::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SyncedModel::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SyncedModel::GetClassData() const { return &_class_data_; } + + +void SyncedModel::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.model.v1.SyncedModel) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_org_id().empty()) { + _this->_internal_set_org_id(from._internal_org_id()); + } + if (!from._internal_model_name().empty()) { + _this->_internal_set_model_name(from._internal_model_name()); + } + if (!from._internal_associated_dataset().empty()) { + _this->_internal_set_associated_dataset(from._internal_associated_dataset()); + } + if (!from._internal_blob_path().empty()) { + _this->_internal_set_blob_path(from._internal_blob_path()); + } + if (from._internal_has_sync_time()) { + _this->_internal_mutable_sync_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_sync_time()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SyncedModel::CopyFrom(const SyncedModel& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.model.v1.SyncedModel) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SyncedModel::IsInitialized() const { + return true; +} + +void SyncedModel::InternalSwap(SyncedModel* 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( + &_impl_.org_id_, lhs_arena, + &other->_impl_.org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.model_name_, lhs_arena, + &other->_impl_.model_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.associated_dataset_, lhs_arena, + &other->_impl_.associated_dataset_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.blob_path_, lhs_arena, + &other->_impl_.blob_path_, rhs_arena + ); + swap(_impl_.sync_time_, other->_impl_.sync_time_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SyncedModel::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_getter, &descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto_once, + file_level_metadata_app_2fmodel_2fv1_2fmodel_2eproto[10]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace model +} // namespace app +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::app::model::v1::FileData* +Arena::CreateMaybeMessage< ::viam::app::model::v1::FileData >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::model::v1::FileData >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::model::v1::UploadMetadata* +Arena::CreateMaybeMessage< ::viam::app::model::v1::UploadMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::model::v1::UploadMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::model::v1::UploadRequest* +Arena::CreateMaybeMessage< ::viam::app::model::v1::UploadRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::model::v1::UploadRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::model::v1::DeleteMetadata* +Arena::CreateMaybeMessage< ::viam::app::model::v1::DeleteMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::model::v1::DeleteMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::model::v1::DeleteRequest* +Arena::CreateMaybeMessage< ::viam::app::model::v1::DeleteRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::model::v1::DeleteRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::model::v1::DeployMetadata* +Arena::CreateMaybeMessage< ::viam::app::model::v1::DeployMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::model::v1::DeployMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::model::v1::DeployRequest* +Arena::CreateMaybeMessage< ::viam::app::model::v1::DeployRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::model::v1::DeployRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::model::v1::UploadResponse* +Arena::CreateMaybeMessage< ::viam::app::model::v1::UploadResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::model::v1::UploadResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::model::v1::DeleteResponse* +Arena::CreateMaybeMessage< ::viam::app::model::v1::DeleteResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::model::v1::DeleteResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::model::v1::DeployResponse* +Arena::CreateMaybeMessage< ::viam::app::model::v1::DeployResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::model::v1::DeployResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::model::v1::SyncedModel* +Arena::CreateMaybeMessage< ::viam::app::model::v1::SyncedModel >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::model::v1::SyncedModel >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/app/model/v1/model.pb.h b/src/gen/app/model/v1/model.pb.h new file mode 100644 index 000000000..a310d7e04 --- /dev/null +++ b/src/gen/app/model/v1/model.pb.h @@ -0,0 +1,3294 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: app/model/v1/model.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_app_2fmodel_2fv1_2fmodel_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_app_2fmodel_2fv1_2fmodel_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_app_2fmodel_2fv1_2fmodel_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_app_2fmodel_2fv1_2fmodel_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_app_2fmodel_2fv1_2fmodel_2eproto; +namespace viam { +namespace app { +namespace model { +namespace v1 { +class DeleteMetadata; +struct DeleteMetadataDefaultTypeInternal; +extern DeleteMetadataDefaultTypeInternal _DeleteMetadata_default_instance_; +class DeleteRequest; +struct DeleteRequestDefaultTypeInternal; +extern DeleteRequestDefaultTypeInternal _DeleteRequest_default_instance_; +class DeleteResponse; +struct DeleteResponseDefaultTypeInternal; +extern DeleteResponseDefaultTypeInternal _DeleteResponse_default_instance_; +class DeployMetadata; +struct DeployMetadataDefaultTypeInternal; +extern DeployMetadataDefaultTypeInternal _DeployMetadata_default_instance_; +class DeployRequest; +struct DeployRequestDefaultTypeInternal; +extern DeployRequestDefaultTypeInternal _DeployRequest_default_instance_; +class DeployResponse; +struct DeployResponseDefaultTypeInternal; +extern DeployResponseDefaultTypeInternal _DeployResponse_default_instance_; +class FileData; +struct FileDataDefaultTypeInternal; +extern FileDataDefaultTypeInternal _FileData_default_instance_; +class SyncedModel; +struct SyncedModelDefaultTypeInternal; +extern SyncedModelDefaultTypeInternal _SyncedModel_default_instance_; +class UploadMetadata; +struct UploadMetadataDefaultTypeInternal; +extern UploadMetadataDefaultTypeInternal _UploadMetadata_default_instance_; +class UploadRequest; +struct UploadRequestDefaultTypeInternal; +extern UploadRequestDefaultTypeInternal _UploadRequest_default_instance_; +class UploadResponse; +struct UploadResponseDefaultTypeInternal; +extern UploadResponseDefaultTypeInternal _UploadResponse_default_instance_; +} // namespace v1 +} // namespace model +} // namespace app +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::app::model::v1::DeleteMetadata* Arena::CreateMaybeMessage<::viam::app::model::v1::DeleteMetadata>(Arena*); +template<> ::viam::app::model::v1::DeleteRequest* Arena::CreateMaybeMessage<::viam::app::model::v1::DeleteRequest>(Arena*); +template<> ::viam::app::model::v1::DeleteResponse* Arena::CreateMaybeMessage<::viam::app::model::v1::DeleteResponse>(Arena*); +template<> ::viam::app::model::v1::DeployMetadata* Arena::CreateMaybeMessage<::viam::app::model::v1::DeployMetadata>(Arena*); +template<> ::viam::app::model::v1::DeployRequest* Arena::CreateMaybeMessage<::viam::app::model::v1::DeployRequest>(Arena*); +template<> ::viam::app::model::v1::DeployResponse* Arena::CreateMaybeMessage<::viam::app::model::v1::DeployResponse>(Arena*); +template<> ::viam::app::model::v1::FileData* Arena::CreateMaybeMessage<::viam::app::model::v1::FileData>(Arena*); +template<> ::viam::app::model::v1::SyncedModel* Arena::CreateMaybeMessage<::viam::app::model::v1::SyncedModel>(Arena*); +template<> ::viam::app::model::v1::UploadMetadata* Arena::CreateMaybeMessage<::viam::app::model::v1::UploadMetadata>(Arena*); +template<> ::viam::app::model::v1::UploadRequest* Arena::CreateMaybeMessage<::viam::app::model::v1::UploadRequest>(Arena*); +template<> ::viam::app::model::v1::UploadResponse* Arena::CreateMaybeMessage<::viam::app::model::v1::UploadResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace app { +namespace model { +namespace v1 { + +enum Status : int { + UNSPECIFIED = 0, + FAIL = 1, + OK = 2, + Status_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + Status_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool Status_IsValid(int value); +constexpr Status Status_MIN = UNSPECIFIED; +constexpr Status Status_MAX = OK; +constexpr int Status_ARRAYSIZE = Status_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Status_descriptor(); +template +inline const std::string& Status_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Status_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + Status_descriptor(), enum_t_value); +} +inline bool Status_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Status* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + Status_descriptor(), name, value); +} +// =================================================================== + +class FileData final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.model.v1.FileData) */ { + public: + inline FileData() : FileData(nullptr) {} + ~FileData() override; + explicit PROTOBUF_CONSTEXPR FileData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + FileData(const FileData& from); + FileData(FileData&& from) noexcept + : FileData() { + *this = ::std::move(from); + } + + inline FileData& operator=(const FileData& from) { + CopyFrom(from); + return *this; + } + inline FileData& operator=(FileData&& 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 FileData& default_instance() { + return *internal_default_instance(); + } + static inline const FileData* internal_default_instance() { + return reinterpret_cast( + &_FileData_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(FileData& a, FileData& b) { + a.Swap(&b); + } + inline void Swap(FileData* 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(FileData* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + FileData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FileData& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const FileData& from) { + FileData::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FileData* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.model.v1.FileData"; + } + protected: + explicit FileData(::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 { + kDataFieldNumber = 1, + }; + // bytes data = 1 [json_name = "data"]; + void clear_data(); + const std::string& data() const; + template + void set_data(ArgT0&& arg0, ArgT... args); + std::string* mutable_data(); + PROTOBUF_NODISCARD std::string* release_data(); + void set_allocated_data(std::string* data); + private: + const std::string& _internal_data() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value); + std::string* _internal_mutable_data(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.model.v1.FileData) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fmodel_2fv1_2fmodel_2eproto; +}; +// ------------------------------------------------------------------- + +class UploadMetadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.model.v1.UploadMetadata) */ { + public: + inline UploadMetadata() : UploadMetadata(nullptr) {} + ~UploadMetadata() override; + explicit PROTOBUF_CONSTEXPR UploadMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UploadMetadata(const UploadMetadata& from); + UploadMetadata(UploadMetadata&& from) noexcept + : UploadMetadata() { + *this = ::std::move(from); + } + + inline UploadMetadata& operator=(const UploadMetadata& from) { + CopyFrom(from); + return *this; + } + inline UploadMetadata& operator=(UploadMetadata&& 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 UploadMetadata& default_instance() { + return *internal_default_instance(); + } + static inline const UploadMetadata* internal_default_instance() { + return reinterpret_cast( + &_UploadMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(UploadMetadata& a, UploadMetadata& b) { + a.Swap(&b); + } + inline void Swap(UploadMetadata* 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(UploadMetadata* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UploadMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UploadMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const UploadMetadata& from) { + UploadMetadata::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UploadMetadata* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.model.v1.UploadMetadata"; + } + protected: + explicit UploadMetadata(::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 { + kOrgIdFieldNumber = 1, + kModelNameFieldNumber = 2, + kAssociatedDatasetFieldNumber = 3, + }; + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); + public: + + // string model_name = 2 [json_name = "modelName"]; + void clear_model_name(); + const std::string& model_name() const; + template + void set_model_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_model_name(); + PROTOBUF_NODISCARD std::string* release_model_name(); + void set_allocated_model_name(std::string* model_name); + private: + const std::string& _internal_model_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_name(const std::string& value); + std::string* _internal_mutable_model_name(); + public: + + // string associated_dataset = 3 [json_name = "associatedDataset"]; + void clear_associated_dataset(); + const std::string& associated_dataset() const; + template + void set_associated_dataset(ArgT0&& arg0, ArgT... args); + std::string* mutable_associated_dataset(); + PROTOBUF_NODISCARD std::string* release_associated_dataset(); + void set_allocated_associated_dataset(std::string* associated_dataset); + private: + const std::string& _internal_associated_dataset() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_associated_dataset(const std::string& value); + std::string* _internal_mutable_associated_dataset(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.model.v1.UploadMetadata) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr associated_dataset_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fmodel_2fv1_2fmodel_2eproto; +}; +// ------------------------------------------------------------------- + +class UploadRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.model.v1.UploadRequest) */ { + public: + inline UploadRequest() : UploadRequest(nullptr) {} + ~UploadRequest() override; + explicit PROTOBUF_CONSTEXPR UploadRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UploadRequest(const UploadRequest& from); + UploadRequest(UploadRequest&& from) noexcept + : UploadRequest() { + *this = ::std::move(from); + } + + inline UploadRequest& operator=(const UploadRequest& from) { + CopyFrom(from); + return *this; + } + inline UploadRequest& operator=(UploadRequest&& 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 UploadRequest& default_instance() { + return *internal_default_instance(); + } + enum UploadPacketCase { + kMetadata = 1, + kFileContents = 2, + UPLOAD_PACKET_NOT_SET = 0, + }; + + static inline const UploadRequest* internal_default_instance() { + return reinterpret_cast( + &_UploadRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(UploadRequest& a, UploadRequest& b) { + a.Swap(&b); + } + inline void Swap(UploadRequest* 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(UploadRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UploadRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UploadRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const UploadRequest& from) { + UploadRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UploadRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.model.v1.UploadRequest"; + } + protected: + explicit UploadRequest(::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 { + kMetadataFieldNumber = 1, + kFileContentsFieldNumber = 2, + }; + // .viam.app.model.v1.UploadMetadata metadata = 1 [json_name = "metadata"]; + bool has_metadata() const; + private: + bool _internal_has_metadata() const; + public: + void clear_metadata(); + const ::viam::app::model::v1::UploadMetadata& metadata() const; + PROTOBUF_NODISCARD ::viam::app::model::v1::UploadMetadata* release_metadata(); + ::viam::app::model::v1::UploadMetadata* mutable_metadata(); + void set_allocated_metadata(::viam::app::model::v1::UploadMetadata* metadata); + private: + const ::viam::app::model::v1::UploadMetadata& _internal_metadata() const; + ::viam::app::model::v1::UploadMetadata* _internal_mutable_metadata(); + public: + void unsafe_arena_set_allocated_metadata( + ::viam::app::model::v1::UploadMetadata* metadata); + ::viam::app::model::v1::UploadMetadata* unsafe_arena_release_metadata(); + + // .viam.app.model.v1.FileData file_contents = 2 [json_name = "fileContents"]; + bool has_file_contents() const; + private: + bool _internal_has_file_contents() const; + public: + void clear_file_contents(); + const ::viam::app::model::v1::FileData& file_contents() const; + PROTOBUF_NODISCARD ::viam::app::model::v1::FileData* release_file_contents(); + ::viam::app::model::v1::FileData* mutable_file_contents(); + void set_allocated_file_contents(::viam::app::model::v1::FileData* file_contents); + private: + const ::viam::app::model::v1::FileData& _internal_file_contents() const; + ::viam::app::model::v1::FileData* _internal_mutable_file_contents(); + public: + void unsafe_arena_set_allocated_file_contents( + ::viam::app::model::v1::FileData* file_contents); + ::viam::app::model::v1::FileData* unsafe_arena_release_file_contents(); + + void clear_upload_packet(); + UploadPacketCase upload_packet_case() const; + // @@protoc_insertion_point(class_scope:viam.app.model.v1.UploadRequest) + private: + class _Internal; + void set_has_metadata(); + void set_has_file_contents(); + + inline bool has_upload_packet() const; + inline void clear_has_upload_packet(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + union UploadPacketUnion { + constexpr UploadPacketUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::viam::app::model::v1::UploadMetadata* metadata_; + ::viam::app::model::v1::FileData* file_contents_; + } upload_packet_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fmodel_2fv1_2fmodel_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteMetadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.model.v1.DeleteMetadata) */ { + public: + inline DeleteMetadata() : DeleteMetadata(nullptr) {} + ~DeleteMetadata() override; + explicit PROTOBUF_CONSTEXPR DeleteMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeleteMetadata(const DeleteMetadata& from); + DeleteMetadata(DeleteMetadata&& from) noexcept + : DeleteMetadata() { + *this = ::std::move(from); + } + + inline DeleteMetadata& operator=(const DeleteMetadata& from) { + CopyFrom(from); + return *this; + } + inline DeleteMetadata& operator=(DeleteMetadata&& 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 DeleteMetadata& default_instance() { + return *internal_default_instance(); + } + static inline const DeleteMetadata* internal_default_instance() { + return reinterpret_cast( + &_DeleteMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(DeleteMetadata& a, DeleteMetadata& b) { + a.Swap(&b); + } + inline void Swap(DeleteMetadata* 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(DeleteMetadata* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeleteMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DeleteMetadata& from) { + DeleteMetadata::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteMetadata* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.model.v1.DeleteMetadata"; + } + protected: + explicit DeleteMetadata(::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 { + kOrgIdFieldNumber = 1, + kModelNameFieldNumber = 2, + }; + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); + public: + + // string model_name = 2 [json_name = "modelName"]; + void clear_model_name(); + const std::string& model_name() const; + template + void set_model_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_model_name(); + PROTOBUF_NODISCARD std::string* release_model_name(); + void set_allocated_model_name(std::string* model_name); + private: + const std::string& _internal_model_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_name(const std::string& value); + std::string* _internal_mutable_model_name(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.model.v1.DeleteMetadata) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fmodel_2fv1_2fmodel_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.model.v1.DeleteRequest) */ { + public: + inline DeleteRequest() : DeleteRequest(nullptr) {} + ~DeleteRequest() override; + explicit PROTOBUF_CONSTEXPR DeleteRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeleteRequest(const DeleteRequest& from); + DeleteRequest(DeleteRequest&& from) noexcept + : DeleteRequest() { + *this = ::std::move(from); + } + + inline DeleteRequest& operator=(const DeleteRequest& from) { + CopyFrom(from); + return *this; + } + inline DeleteRequest& operator=(DeleteRequest&& 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 DeleteRequest& default_instance() { + return *internal_default_instance(); + } + static inline const DeleteRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(DeleteRequest& a, DeleteRequest& b) { + a.Swap(&b); + } + inline void Swap(DeleteRequest* 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(DeleteRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeleteRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DeleteRequest& from) { + DeleteRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.model.v1.DeleteRequest"; + } + protected: + explicit DeleteRequest(::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 { + kMetadataFieldNumber = 1, + }; + // .viam.app.model.v1.DeleteMetadata metadata = 1 [json_name = "metadata"]; + bool has_metadata() const; + private: + bool _internal_has_metadata() const; + public: + void clear_metadata(); + const ::viam::app::model::v1::DeleteMetadata& metadata() const; + PROTOBUF_NODISCARD ::viam::app::model::v1::DeleteMetadata* release_metadata(); + ::viam::app::model::v1::DeleteMetadata* mutable_metadata(); + void set_allocated_metadata(::viam::app::model::v1::DeleteMetadata* metadata); + private: + const ::viam::app::model::v1::DeleteMetadata& _internal_metadata() const; + ::viam::app::model::v1::DeleteMetadata* _internal_mutable_metadata(); + public: + void unsafe_arena_set_allocated_metadata( + ::viam::app::model::v1::DeleteMetadata* metadata); + ::viam::app::model::v1::DeleteMetadata* unsafe_arena_release_metadata(); + + // @@protoc_insertion_point(class_scope:viam.app.model.v1.DeleteRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::app::model::v1::DeleteMetadata* metadata_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fmodel_2fv1_2fmodel_2eproto; +}; +// ------------------------------------------------------------------- + +class DeployMetadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.model.v1.DeployMetadata) */ { + public: + inline DeployMetadata() : DeployMetadata(nullptr) {} + ~DeployMetadata() override; + explicit PROTOBUF_CONSTEXPR DeployMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeployMetadata(const DeployMetadata& from); + DeployMetadata(DeployMetadata&& from) noexcept + : DeployMetadata() { + *this = ::std::move(from); + } + + inline DeployMetadata& operator=(const DeployMetadata& from) { + CopyFrom(from); + return *this; + } + inline DeployMetadata& operator=(DeployMetadata&& 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 DeployMetadata& default_instance() { + return *internal_default_instance(); + } + static inline const DeployMetadata* internal_default_instance() { + return reinterpret_cast( + &_DeployMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(DeployMetadata& a, DeployMetadata& b) { + a.Swap(&b); + } + inline void Swap(DeployMetadata* 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(DeployMetadata* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeployMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeployMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DeployMetadata& from) { + DeployMetadata::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeployMetadata* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.model.v1.DeployMetadata"; + } + protected: + explicit DeployMetadata(::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 { + kModelNameFieldNumber = 1, + }; + // string model_name = 1 [json_name = "modelName"]; + void clear_model_name(); + const std::string& model_name() const; + template + void set_model_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_model_name(); + PROTOBUF_NODISCARD std::string* release_model_name(); + void set_allocated_model_name(std::string* model_name); + private: + const std::string& _internal_model_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_name(const std::string& value); + std::string* _internal_mutable_model_name(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.model.v1.DeployMetadata) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fmodel_2fv1_2fmodel_2eproto; +}; +// ------------------------------------------------------------------- + +class DeployRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.model.v1.DeployRequest) */ { + public: + inline DeployRequest() : DeployRequest(nullptr) {} + ~DeployRequest() override; + explicit PROTOBUF_CONSTEXPR DeployRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeployRequest(const DeployRequest& from); + DeployRequest(DeployRequest&& from) noexcept + : DeployRequest() { + *this = ::std::move(from); + } + + inline DeployRequest& operator=(const DeployRequest& from) { + CopyFrom(from); + return *this; + } + inline DeployRequest& operator=(DeployRequest&& 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 DeployRequest& default_instance() { + return *internal_default_instance(); + } + static inline const DeployRequest* internal_default_instance() { + return reinterpret_cast( + &_DeployRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(DeployRequest& a, DeployRequest& b) { + a.Swap(&b); + } + inline void Swap(DeployRequest* 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(DeployRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeployRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeployRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DeployRequest& from) { + DeployRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeployRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.model.v1.DeployRequest"; + } + protected: + explicit DeployRequest(::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 { + kMetadataFieldNumber = 1, + }; + // .viam.app.model.v1.DeployMetadata metadata = 1 [json_name = "metadata"]; + bool has_metadata() const; + private: + bool _internal_has_metadata() const; + public: + void clear_metadata(); + const ::viam::app::model::v1::DeployMetadata& metadata() const; + PROTOBUF_NODISCARD ::viam::app::model::v1::DeployMetadata* release_metadata(); + ::viam::app::model::v1::DeployMetadata* mutable_metadata(); + void set_allocated_metadata(::viam::app::model::v1::DeployMetadata* metadata); + private: + const ::viam::app::model::v1::DeployMetadata& _internal_metadata() const; + ::viam::app::model::v1::DeployMetadata* _internal_mutable_metadata(); + public: + void unsafe_arena_set_allocated_metadata( + ::viam::app::model::v1::DeployMetadata* metadata); + ::viam::app::model::v1::DeployMetadata* unsafe_arena_release_metadata(); + + // @@protoc_insertion_point(class_scope:viam.app.model.v1.DeployRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::app::model::v1::DeployMetadata* metadata_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fmodel_2fv1_2fmodel_2eproto; +}; +// ------------------------------------------------------------------- + +class UploadResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.model.v1.UploadResponse) */ { + public: + inline UploadResponse() : UploadResponse(nullptr) {} + ~UploadResponse() override; + explicit PROTOBUF_CONSTEXPR UploadResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UploadResponse(const UploadResponse& from); + UploadResponse(UploadResponse&& from) noexcept + : UploadResponse() { + *this = ::std::move(from); + } + + inline UploadResponse& operator=(const UploadResponse& from) { + CopyFrom(from); + return *this; + } + inline UploadResponse& operator=(UploadResponse&& 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 UploadResponse& default_instance() { + return *internal_default_instance(); + } + static inline const UploadResponse* internal_default_instance() { + return reinterpret_cast( + &_UploadResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(UploadResponse& a, UploadResponse& b) { + a.Swap(&b); + } + inline void Swap(UploadResponse* 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(UploadResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UploadResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UploadResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const UploadResponse& from) { + UploadResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UploadResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.model.v1.UploadResponse"; + } + protected: + explicit UploadResponse(::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 { + kMessageFieldNumber = 1, + kStatusFieldNumber = 2, + }; + // string message = 1 [json_name = "message"]; + void clear_message(); + const std::string& message() const; + template + void set_message(ArgT0&& arg0, ArgT... args); + std::string* mutable_message(); + PROTOBUF_NODISCARD std::string* release_message(); + void set_allocated_message(std::string* message); + private: + const std::string& _internal_message() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); + std::string* _internal_mutable_message(); + public: + + // .viam.app.model.v1.Status status = 2 [json_name = "status"]; + void clear_status(); + ::viam::app::model::v1::Status status() const; + void set_status(::viam::app::model::v1::Status value); + private: + ::viam::app::model::v1::Status _internal_status() const; + void _internal_set_status(::viam::app::model::v1::Status value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.model.v1.UploadResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + int status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fmodel_2fv1_2fmodel_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.model.v1.DeleteResponse) */ { + public: + inline DeleteResponse() : DeleteResponse(nullptr) {} + ~DeleteResponse() override; + explicit PROTOBUF_CONSTEXPR DeleteResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeleteResponse(const DeleteResponse& from); + DeleteResponse(DeleteResponse&& from) noexcept + : DeleteResponse() { + *this = ::std::move(from); + } + + inline DeleteResponse& operator=(const DeleteResponse& from) { + CopyFrom(from); + return *this; + } + inline DeleteResponse& operator=(DeleteResponse&& 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 DeleteResponse& default_instance() { + return *internal_default_instance(); + } + static inline const DeleteResponse* internal_default_instance() { + return reinterpret_cast( + &_DeleteResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(DeleteResponse& a, DeleteResponse& b) { + a.Swap(&b); + } + inline void Swap(DeleteResponse* 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(DeleteResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeleteResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DeleteResponse& from) { + DeleteResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.model.v1.DeleteResponse"; + } + protected: + explicit DeleteResponse(::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 { + kMessageFieldNumber = 1, + kStatusFieldNumber = 2, + }; + // string message = 1 [json_name = "message"]; + void clear_message(); + const std::string& message() const; + template + void set_message(ArgT0&& arg0, ArgT... args); + std::string* mutable_message(); + PROTOBUF_NODISCARD std::string* release_message(); + void set_allocated_message(std::string* message); + private: + const std::string& _internal_message() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); + std::string* _internal_mutable_message(); + public: + + // .viam.app.model.v1.Status status = 2 [json_name = "status"]; + void clear_status(); + ::viam::app::model::v1::Status status() const; + void set_status(::viam::app::model::v1::Status value); + private: + ::viam::app::model::v1::Status _internal_status() const; + void _internal_set_status(::viam::app::model::v1::Status value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.model.v1.DeleteResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + int status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fmodel_2fv1_2fmodel_2eproto; +}; +// ------------------------------------------------------------------- + +class DeployResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.model.v1.DeployResponse) */ { + public: + inline DeployResponse() : DeployResponse(nullptr) {} + ~DeployResponse() override; + explicit PROTOBUF_CONSTEXPR DeployResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeployResponse(const DeployResponse& from); + DeployResponse(DeployResponse&& from) noexcept + : DeployResponse() { + *this = ::std::move(from); + } + + inline DeployResponse& operator=(const DeployResponse& from) { + CopyFrom(from); + return *this; + } + inline DeployResponse& operator=(DeployResponse&& 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 DeployResponse& default_instance() { + return *internal_default_instance(); + } + static inline const DeployResponse* internal_default_instance() { + return reinterpret_cast( + &_DeployResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(DeployResponse& a, DeployResponse& b) { + a.Swap(&b); + } + inline void Swap(DeployResponse* 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(DeployResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeployResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeployResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DeployResponse& from) { + DeployResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeployResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.model.v1.DeployResponse"; + } + protected: + explicit DeployResponse(::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 { + kMessageFieldNumber = 1, + kStatusFieldNumber = 2, + }; + // string message = 1 [json_name = "message"]; + void clear_message(); + const std::string& message() const; + template + void set_message(ArgT0&& arg0, ArgT... args); + std::string* mutable_message(); + PROTOBUF_NODISCARD std::string* release_message(); + void set_allocated_message(std::string* message); + private: + const std::string& _internal_message() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); + std::string* _internal_mutable_message(); + public: + + // .viam.app.model.v1.Status status = 2 [json_name = "status"]; + void clear_status(); + ::viam::app::model::v1::Status status() const; + void set_status(::viam::app::model::v1::Status value); + private: + ::viam::app::model::v1::Status _internal_status() const; + void _internal_set_status(::viam::app::model::v1::Status value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.model.v1.DeployResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + int status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fmodel_2fv1_2fmodel_2eproto; +}; +// ------------------------------------------------------------------- + +class SyncedModel final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.model.v1.SyncedModel) */ { + public: + inline SyncedModel() : SyncedModel(nullptr) {} + ~SyncedModel() override; + explicit PROTOBUF_CONSTEXPR SyncedModel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SyncedModel(const SyncedModel& from); + SyncedModel(SyncedModel&& from) noexcept + : SyncedModel() { + *this = ::std::move(from); + } + + inline SyncedModel& operator=(const SyncedModel& from) { + CopyFrom(from); + return *this; + } + inline SyncedModel& operator=(SyncedModel&& 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 SyncedModel& default_instance() { + return *internal_default_instance(); + } + static inline const SyncedModel* internal_default_instance() { + return reinterpret_cast( + &_SyncedModel_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(SyncedModel& a, SyncedModel& b) { + a.Swap(&b); + } + inline void Swap(SyncedModel* 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(SyncedModel* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SyncedModel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SyncedModel& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SyncedModel& from) { + SyncedModel::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SyncedModel* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.model.v1.SyncedModel"; + } + protected: + explicit SyncedModel(::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 { + kOrgIdFieldNumber = 1, + kModelNameFieldNumber = 2, + kAssociatedDatasetFieldNumber = 3, + kBlobPathFieldNumber = 4, + kSyncTimeFieldNumber = 5, + }; + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); + public: + + // string model_name = 2 [json_name = "modelName"]; + void clear_model_name(); + const std::string& model_name() const; + template + void set_model_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_model_name(); + PROTOBUF_NODISCARD std::string* release_model_name(); + void set_allocated_model_name(std::string* model_name); + private: + const std::string& _internal_model_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_name(const std::string& value); + std::string* _internal_mutable_model_name(); + public: + + // string associated_dataset = 3 [json_name = "associatedDataset"]; + void clear_associated_dataset(); + const std::string& associated_dataset() const; + template + void set_associated_dataset(ArgT0&& arg0, ArgT... args); + std::string* mutable_associated_dataset(); + PROTOBUF_NODISCARD std::string* release_associated_dataset(); + void set_allocated_associated_dataset(std::string* associated_dataset); + private: + const std::string& _internal_associated_dataset() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_associated_dataset(const std::string& value); + std::string* _internal_mutable_associated_dataset(); + public: + + // string blob_path = 4 [json_name = "blobPath"]; + void clear_blob_path(); + const std::string& blob_path() const; + template + void set_blob_path(ArgT0&& arg0, ArgT... args); + std::string* mutable_blob_path(); + PROTOBUF_NODISCARD std::string* release_blob_path(); + void set_allocated_blob_path(std::string* blob_path); + private: + const std::string& _internal_blob_path() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_blob_path(const std::string& value); + std::string* _internal_mutable_blob_path(); + public: + + // .google.protobuf.Timestamp sync_time = 5 [json_name = "syncTime"]; + bool has_sync_time() const; + private: + bool _internal_has_sync_time() const; + public: + void clear_sync_time(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& sync_time() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_sync_time(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_sync_time(); + void set_allocated_sync_time(::PROTOBUF_NAMESPACE_ID::Timestamp* sync_time); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_sync_time() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_sync_time(); + public: + void unsafe_arena_set_allocated_sync_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* sync_time); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_sync_time(); + + // @@protoc_insertion_point(class_scope:viam.app.model.v1.SyncedModel) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr associated_dataset_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr blob_path_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* sync_time_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fmodel_2fv1_2fmodel_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// FileData + +// bytes data = 1 [json_name = "data"]; +inline void FileData::clear_data() { + _impl_.data_.ClearToEmpty(); +} +inline const std::string& FileData::data() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.FileData.data) + return _internal_data(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void FileData::set_data(ArgT0&& arg0, ArgT... args) { + + _impl_.data_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.model.v1.FileData.data) +} +inline std::string* FileData::mutable_data() { + std::string* _s = _internal_mutable_data(); + // @@protoc_insertion_point(field_mutable:viam.app.model.v1.FileData.data) + return _s; +} +inline const std::string& FileData::_internal_data() const { + return _impl_.data_.Get(); +} +inline void FileData::_internal_set_data(const std::string& value) { + + _impl_.data_.Set(value, GetArenaForAllocation()); +} +inline std::string* FileData::_internal_mutable_data() { + + return _impl_.data_.Mutable(GetArenaForAllocation()); +} +inline std::string* FileData::release_data() { + // @@protoc_insertion_point(field_release:viam.app.model.v1.FileData.data) + return _impl_.data_.Release(); +} +inline void FileData::set_allocated_data(std::string* data) { + if (data != nullptr) { + + } else { + + } + _impl_.data_.SetAllocated(data, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.data_.IsDefault()) { + _impl_.data_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.model.v1.FileData.data) +} + +// ------------------------------------------------------------------- + +// UploadMetadata + +// string org_id = 1 [json_name = "orgId"]; +inline void UploadMetadata::clear_org_id() { + _impl_.org_id_.ClearToEmpty(); +} +inline const std::string& UploadMetadata::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.UploadMetadata.org_id) + return _internal_org_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UploadMetadata::set_org_id(ArgT0&& arg0, ArgT... args) { + + _impl_.org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.model.v1.UploadMetadata.org_id) +} +inline std::string* UploadMetadata::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.model.v1.UploadMetadata.org_id) + return _s; +} +inline const std::string& UploadMetadata::_internal_org_id() const { + return _impl_.org_id_.Get(); +} +inline void UploadMetadata::_internal_set_org_id(const std::string& value) { + + _impl_.org_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* UploadMetadata::_internal_mutable_org_id() { + + return _impl_.org_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* UploadMetadata::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.model.v1.UploadMetadata.org_id) + return _impl_.org_id_.Release(); +} +inline void UploadMetadata::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + _impl_.org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.org_id_.IsDefault()) { + _impl_.org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.model.v1.UploadMetadata.org_id) +} + +// string model_name = 2 [json_name = "modelName"]; +inline void UploadMetadata::clear_model_name() { + _impl_.model_name_.ClearToEmpty(); +} +inline const std::string& UploadMetadata::model_name() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.UploadMetadata.model_name) + return _internal_model_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UploadMetadata::set_model_name(ArgT0&& arg0, ArgT... args) { + + _impl_.model_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.model.v1.UploadMetadata.model_name) +} +inline std::string* UploadMetadata::mutable_model_name() { + std::string* _s = _internal_mutable_model_name(); + // @@protoc_insertion_point(field_mutable:viam.app.model.v1.UploadMetadata.model_name) + return _s; +} +inline const std::string& UploadMetadata::_internal_model_name() const { + return _impl_.model_name_.Get(); +} +inline void UploadMetadata::_internal_set_model_name(const std::string& value) { + + _impl_.model_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* UploadMetadata::_internal_mutable_model_name() { + + return _impl_.model_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* UploadMetadata::release_model_name() { + // @@protoc_insertion_point(field_release:viam.app.model.v1.UploadMetadata.model_name) + return _impl_.model_name_.Release(); +} +inline void UploadMetadata::set_allocated_model_name(std::string* model_name) { + if (model_name != nullptr) { + + } else { + + } + _impl_.model_name_.SetAllocated(model_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.model_name_.IsDefault()) { + _impl_.model_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.model.v1.UploadMetadata.model_name) +} + +// string associated_dataset = 3 [json_name = "associatedDataset"]; +inline void UploadMetadata::clear_associated_dataset() { + _impl_.associated_dataset_.ClearToEmpty(); +} +inline const std::string& UploadMetadata::associated_dataset() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.UploadMetadata.associated_dataset) + return _internal_associated_dataset(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UploadMetadata::set_associated_dataset(ArgT0&& arg0, ArgT... args) { + + _impl_.associated_dataset_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.model.v1.UploadMetadata.associated_dataset) +} +inline std::string* UploadMetadata::mutable_associated_dataset() { + std::string* _s = _internal_mutable_associated_dataset(); + // @@protoc_insertion_point(field_mutable:viam.app.model.v1.UploadMetadata.associated_dataset) + return _s; +} +inline const std::string& UploadMetadata::_internal_associated_dataset() const { + return _impl_.associated_dataset_.Get(); +} +inline void UploadMetadata::_internal_set_associated_dataset(const std::string& value) { + + _impl_.associated_dataset_.Set(value, GetArenaForAllocation()); +} +inline std::string* UploadMetadata::_internal_mutable_associated_dataset() { + + return _impl_.associated_dataset_.Mutable(GetArenaForAllocation()); +} +inline std::string* UploadMetadata::release_associated_dataset() { + // @@protoc_insertion_point(field_release:viam.app.model.v1.UploadMetadata.associated_dataset) + return _impl_.associated_dataset_.Release(); +} +inline void UploadMetadata::set_allocated_associated_dataset(std::string* associated_dataset) { + if (associated_dataset != nullptr) { + + } else { + + } + _impl_.associated_dataset_.SetAllocated(associated_dataset, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.associated_dataset_.IsDefault()) { + _impl_.associated_dataset_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.model.v1.UploadMetadata.associated_dataset) +} + +// ------------------------------------------------------------------- + +// UploadRequest + +// .viam.app.model.v1.UploadMetadata metadata = 1 [json_name = "metadata"]; +inline bool UploadRequest::_internal_has_metadata() const { + return upload_packet_case() == kMetadata; +} +inline bool UploadRequest::has_metadata() const { + return _internal_has_metadata(); +} +inline void UploadRequest::set_has_metadata() { + _impl_._oneof_case_[0] = kMetadata; +} +inline void UploadRequest::clear_metadata() { + if (_internal_has_metadata()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.upload_packet_.metadata_; + } + clear_has_upload_packet(); + } +} +inline ::viam::app::model::v1::UploadMetadata* UploadRequest::release_metadata() { + // @@protoc_insertion_point(field_release:viam.app.model.v1.UploadRequest.metadata) + if (_internal_has_metadata()) { + clear_has_upload_packet(); + ::viam::app::model::v1::UploadMetadata* temp = _impl_.upload_packet_.metadata_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.upload_packet_.metadata_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::app::model::v1::UploadMetadata& UploadRequest::_internal_metadata() const { + return _internal_has_metadata() + ? *_impl_.upload_packet_.metadata_ + : reinterpret_cast< ::viam::app::model::v1::UploadMetadata&>(::viam::app::model::v1::_UploadMetadata_default_instance_); +} +inline const ::viam::app::model::v1::UploadMetadata& UploadRequest::metadata() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.UploadRequest.metadata) + return _internal_metadata(); +} +inline ::viam::app::model::v1::UploadMetadata* UploadRequest::unsafe_arena_release_metadata() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.model.v1.UploadRequest.metadata) + if (_internal_has_metadata()) { + clear_has_upload_packet(); + ::viam::app::model::v1::UploadMetadata* temp = _impl_.upload_packet_.metadata_; + _impl_.upload_packet_.metadata_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void UploadRequest::unsafe_arena_set_allocated_metadata(::viam::app::model::v1::UploadMetadata* metadata) { + clear_upload_packet(); + if (metadata) { + set_has_metadata(); + _impl_.upload_packet_.metadata_ = metadata; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.model.v1.UploadRequest.metadata) +} +inline ::viam::app::model::v1::UploadMetadata* UploadRequest::_internal_mutable_metadata() { + if (!_internal_has_metadata()) { + clear_upload_packet(); + set_has_metadata(); + _impl_.upload_packet_.metadata_ = CreateMaybeMessage< ::viam::app::model::v1::UploadMetadata >(GetArenaForAllocation()); + } + return _impl_.upload_packet_.metadata_; +} +inline ::viam::app::model::v1::UploadMetadata* UploadRequest::mutable_metadata() { + ::viam::app::model::v1::UploadMetadata* _msg = _internal_mutable_metadata(); + // @@protoc_insertion_point(field_mutable:viam.app.model.v1.UploadRequest.metadata) + return _msg; +} + +// .viam.app.model.v1.FileData file_contents = 2 [json_name = "fileContents"]; +inline bool UploadRequest::_internal_has_file_contents() const { + return upload_packet_case() == kFileContents; +} +inline bool UploadRequest::has_file_contents() const { + return _internal_has_file_contents(); +} +inline void UploadRequest::set_has_file_contents() { + _impl_._oneof_case_[0] = kFileContents; +} +inline void UploadRequest::clear_file_contents() { + if (_internal_has_file_contents()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.upload_packet_.file_contents_; + } + clear_has_upload_packet(); + } +} +inline ::viam::app::model::v1::FileData* UploadRequest::release_file_contents() { + // @@protoc_insertion_point(field_release:viam.app.model.v1.UploadRequest.file_contents) + if (_internal_has_file_contents()) { + clear_has_upload_packet(); + ::viam::app::model::v1::FileData* temp = _impl_.upload_packet_.file_contents_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.upload_packet_.file_contents_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::app::model::v1::FileData& UploadRequest::_internal_file_contents() const { + return _internal_has_file_contents() + ? *_impl_.upload_packet_.file_contents_ + : reinterpret_cast< ::viam::app::model::v1::FileData&>(::viam::app::model::v1::_FileData_default_instance_); +} +inline const ::viam::app::model::v1::FileData& UploadRequest::file_contents() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.UploadRequest.file_contents) + return _internal_file_contents(); +} +inline ::viam::app::model::v1::FileData* UploadRequest::unsafe_arena_release_file_contents() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.model.v1.UploadRequest.file_contents) + if (_internal_has_file_contents()) { + clear_has_upload_packet(); + ::viam::app::model::v1::FileData* temp = _impl_.upload_packet_.file_contents_; + _impl_.upload_packet_.file_contents_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void UploadRequest::unsafe_arena_set_allocated_file_contents(::viam::app::model::v1::FileData* file_contents) { + clear_upload_packet(); + if (file_contents) { + set_has_file_contents(); + _impl_.upload_packet_.file_contents_ = file_contents; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.model.v1.UploadRequest.file_contents) +} +inline ::viam::app::model::v1::FileData* UploadRequest::_internal_mutable_file_contents() { + if (!_internal_has_file_contents()) { + clear_upload_packet(); + set_has_file_contents(); + _impl_.upload_packet_.file_contents_ = CreateMaybeMessage< ::viam::app::model::v1::FileData >(GetArenaForAllocation()); + } + return _impl_.upload_packet_.file_contents_; +} +inline ::viam::app::model::v1::FileData* UploadRequest::mutable_file_contents() { + ::viam::app::model::v1::FileData* _msg = _internal_mutable_file_contents(); + // @@protoc_insertion_point(field_mutable:viam.app.model.v1.UploadRequest.file_contents) + return _msg; +} + +inline bool UploadRequest::has_upload_packet() const { + return upload_packet_case() != UPLOAD_PACKET_NOT_SET; +} +inline void UploadRequest::clear_has_upload_packet() { + _impl_._oneof_case_[0] = UPLOAD_PACKET_NOT_SET; +} +inline UploadRequest::UploadPacketCase UploadRequest::upload_packet_case() const { + return UploadRequest::UploadPacketCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// DeleteMetadata + +// string org_id = 1 [json_name = "orgId"]; +inline void DeleteMetadata::clear_org_id() { + _impl_.org_id_.ClearToEmpty(); +} +inline const std::string& DeleteMetadata::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.DeleteMetadata.org_id) + return _internal_org_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteMetadata::set_org_id(ArgT0&& arg0, ArgT... args) { + + _impl_.org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.model.v1.DeleteMetadata.org_id) +} +inline std::string* DeleteMetadata::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.model.v1.DeleteMetadata.org_id) + return _s; +} +inline const std::string& DeleteMetadata::_internal_org_id() const { + return _impl_.org_id_.Get(); +} +inline void DeleteMetadata::_internal_set_org_id(const std::string& value) { + + _impl_.org_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* DeleteMetadata::_internal_mutable_org_id() { + + return _impl_.org_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* DeleteMetadata::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.model.v1.DeleteMetadata.org_id) + return _impl_.org_id_.Release(); +} +inline void DeleteMetadata::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + _impl_.org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.org_id_.IsDefault()) { + _impl_.org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.model.v1.DeleteMetadata.org_id) +} + +// string model_name = 2 [json_name = "modelName"]; +inline void DeleteMetadata::clear_model_name() { + _impl_.model_name_.ClearToEmpty(); +} +inline const std::string& DeleteMetadata::model_name() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.DeleteMetadata.model_name) + return _internal_model_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteMetadata::set_model_name(ArgT0&& arg0, ArgT... args) { + + _impl_.model_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.model.v1.DeleteMetadata.model_name) +} +inline std::string* DeleteMetadata::mutable_model_name() { + std::string* _s = _internal_mutable_model_name(); + // @@protoc_insertion_point(field_mutable:viam.app.model.v1.DeleteMetadata.model_name) + return _s; +} +inline const std::string& DeleteMetadata::_internal_model_name() const { + return _impl_.model_name_.Get(); +} +inline void DeleteMetadata::_internal_set_model_name(const std::string& value) { + + _impl_.model_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* DeleteMetadata::_internal_mutable_model_name() { + + return _impl_.model_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* DeleteMetadata::release_model_name() { + // @@protoc_insertion_point(field_release:viam.app.model.v1.DeleteMetadata.model_name) + return _impl_.model_name_.Release(); +} +inline void DeleteMetadata::set_allocated_model_name(std::string* model_name) { + if (model_name != nullptr) { + + } else { + + } + _impl_.model_name_.SetAllocated(model_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.model_name_.IsDefault()) { + _impl_.model_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.model.v1.DeleteMetadata.model_name) +} + +// ------------------------------------------------------------------- + +// DeleteRequest + +// .viam.app.model.v1.DeleteMetadata metadata = 1 [json_name = "metadata"]; +inline bool DeleteRequest::_internal_has_metadata() const { + return this != internal_default_instance() && _impl_.metadata_ != nullptr; +} +inline bool DeleteRequest::has_metadata() const { + return _internal_has_metadata(); +} +inline void DeleteRequest::clear_metadata() { + if (GetArenaForAllocation() == nullptr && _impl_.metadata_ != nullptr) { + delete _impl_.metadata_; + } + _impl_.metadata_ = nullptr; +} +inline const ::viam::app::model::v1::DeleteMetadata& DeleteRequest::_internal_metadata() const { + const ::viam::app::model::v1::DeleteMetadata* p = _impl_.metadata_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::model::v1::_DeleteMetadata_default_instance_); +} +inline const ::viam::app::model::v1::DeleteMetadata& DeleteRequest::metadata() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.DeleteRequest.metadata) + return _internal_metadata(); +} +inline void DeleteRequest::unsafe_arena_set_allocated_metadata( + ::viam::app::model::v1::DeleteMetadata* metadata) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.metadata_); + } + _impl_.metadata_ = metadata; + if (metadata) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.model.v1.DeleteRequest.metadata) +} +inline ::viam::app::model::v1::DeleteMetadata* DeleteRequest::release_metadata() { + + ::viam::app::model::v1::DeleteMetadata* temp = _impl_.metadata_; + _impl_.metadata_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::model::v1::DeleteMetadata* DeleteRequest::unsafe_arena_release_metadata() { + // @@protoc_insertion_point(field_release:viam.app.model.v1.DeleteRequest.metadata) + + ::viam::app::model::v1::DeleteMetadata* temp = _impl_.metadata_; + _impl_.metadata_ = nullptr; + return temp; +} +inline ::viam::app::model::v1::DeleteMetadata* DeleteRequest::_internal_mutable_metadata() { + + if (_impl_.metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::model::v1::DeleteMetadata>(GetArenaForAllocation()); + _impl_.metadata_ = p; + } + return _impl_.metadata_; +} +inline ::viam::app::model::v1::DeleteMetadata* DeleteRequest::mutable_metadata() { + ::viam::app::model::v1::DeleteMetadata* _msg = _internal_mutable_metadata(); + // @@protoc_insertion_point(field_mutable:viam.app.model.v1.DeleteRequest.metadata) + return _msg; +} +inline void DeleteRequest::set_allocated_metadata(::viam::app::model::v1::DeleteMetadata* metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.metadata_; + } + if (metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metadata); + if (message_arena != submessage_arena) { + metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + _impl_.metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:viam.app.model.v1.DeleteRequest.metadata) +} + +// ------------------------------------------------------------------- + +// DeployMetadata + +// string model_name = 1 [json_name = "modelName"]; +inline void DeployMetadata::clear_model_name() { + _impl_.model_name_.ClearToEmpty(); +} +inline const std::string& DeployMetadata::model_name() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.DeployMetadata.model_name) + return _internal_model_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DeployMetadata::set_model_name(ArgT0&& arg0, ArgT... args) { + + _impl_.model_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.model.v1.DeployMetadata.model_name) +} +inline std::string* DeployMetadata::mutable_model_name() { + std::string* _s = _internal_mutable_model_name(); + // @@protoc_insertion_point(field_mutable:viam.app.model.v1.DeployMetadata.model_name) + return _s; +} +inline const std::string& DeployMetadata::_internal_model_name() const { + return _impl_.model_name_.Get(); +} +inline void DeployMetadata::_internal_set_model_name(const std::string& value) { + + _impl_.model_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* DeployMetadata::_internal_mutable_model_name() { + + return _impl_.model_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* DeployMetadata::release_model_name() { + // @@protoc_insertion_point(field_release:viam.app.model.v1.DeployMetadata.model_name) + return _impl_.model_name_.Release(); +} +inline void DeployMetadata::set_allocated_model_name(std::string* model_name) { + if (model_name != nullptr) { + + } else { + + } + _impl_.model_name_.SetAllocated(model_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.model_name_.IsDefault()) { + _impl_.model_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.model.v1.DeployMetadata.model_name) +} + +// ------------------------------------------------------------------- + +// DeployRequest + +// .viam.app.model.v1.DeployMetadata metadata = 1 [json_name = "metadata"]; +inline bool DeployRequest::_internal_has_metadata() const { + return this != internal_default_instance() && _impl_.metadata_ != nullptr; +} +inline bool DeployRequest::has_metadata() const { + return _internal_has_metadata(); +} +inline void DeployRequest::clear_metadata() { + if (GetArenaForAllocation() == nullptr && _impl_.metadata_ != nullptr) { + delete _impl_.metadata_; + } + _impl_.metadata_ = nullptr; +} +inline const ::viam::app::model::v1::DeployMetadata& DeployRequest::_internal_metadata() const { + const ::viam::app::model::v1::DeployMetadata* p = _impl_.metadata_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::model::v1::_DeployMetadata_default_instance_); +} +inline const ::viam::app::model::v1::DeployMetadata& DeployRequest::metadata() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.DeployRequest.metadata) + return _internal_metadata(); +} +inline void DeployRequest::unsafe_arena_set_allocated_metadata( + ::viam::app::model::v1::DeployMetadata* metadata) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.metadata_); + } + _impl_.metadata_ = metadata; + if (metadata) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.model.v1.DeployRequest.metadata) +} +inline ::viam::app::model::v1::DeployMetadata* DeployRequest::release_metadata() { + + ::viam::app::model::v1::DeployMetadata* temp = _impl_.metadata_; + _impl_.metadata_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::model::v1::DeployMetadata* DeployRequest::unsafe_arena_release_metadata() { + // @@protoc_insertion_point(field_release:viam.app.model.v1.DeployRequest.metadata) + + ::viam::app::model::v1::DeployMetadata* temp = _impl_.metadata_; + _impl_.metadata_ = nullptr; + return temp; +} +inline ::viam::app::model::v1::DeployMetadata* DeployRequest::_internal_mutable_metadata() { + + if (_impl_.metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::model::v1::DeployMetadata>(GetArenaForAllocation()); + _impl_.metadata_ = p; + } + return _impl_.metadata_; +} +inline ::viam::app::model::v1::DeployMetadata* DeployRequest::mutable_metadata() { + ::viam::app::model::v1::DeployMetadata* _msg = _internal_mutable_metadata(); + // @@protoc_insertion_point(field_mutable:viam.app.model.v1.DeployRequest.metadata) + return _msg; +} +inline void DeployRequest::set_allocated_metadata(::viam::app::model::v1::DeployMetadata* metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.metadata_; + } + if (metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metadata); + if (message_arena != submessage_arena) { + metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + _impl_.metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:viam.app.model.v1.DeployRequest.metadata) +} + +// ------------------------------------------------------------------- + +// UploadResponse + +// string message = 1 [json_name = "message"]; +inline void UploadResponse::clear_message() { + _impl_.message_.ClearToEmpty(); +} +inline const std::string& UploadResponse::message() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.UploadResponse.message) + return _internal_message(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UploadResponse::set_message(ArgT0&& arg0, ArgT... args) { + + _impl_.message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.model.v1.UploadResponse.message) +} +inline std::string* UploadResponse::mutable_message() { + std::string* _s = _internal_mutable_message(); + // @@protoc_insertion_point(field_mutable:viam.app.model.v1.UploadResponse.message) + return _s; +} +inline const std::string& UploadResponse::_internal_message() const { + return _impl_.message_.Get(); +} +inline void UploadResponse::_internal_set_message(const std::string& value) { + + _impl_.message_.Set(value, GetArenaForAllocation()); +} +inline std::string* UploadResponse::_internal_mutable_message() { + + return _impl_.message_.Mutable(GetArenaForAllocation()); +} +inline std::string* UploadResponse::release_message() { + // @@protoc_insertion_point(field_release:viam.app.model.v1.UploadResponse.message) + return _impl_.message_.Release(); +} +inline void UploadResponse::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + _impl_.message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.message_.IsDefault()) { + _impl_.message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.model.v1.UploadResponse.message) +} + +// .viam.app.model.v1.Status status = 2 [json_name = "status"]; +inline void UploadResponse::clear_status() { + _impl_.status_ = 0; +} +inline ::viam::app::model::v1::Status UploadResponse::_internal_status() const { + return static_cast< ::viam::app::model::v1::Status >(_impl_.status_); +} +inline ::viam::app::model::v1::Status UploadResponse::status() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.UploadResponse.status) + return _internal_status(); +} +inline void UploadResponse::_internal_set_status(::viam::app::model::v1::Status value) { + + _impl_.status_ = value; +} +inline void UploadResponse::set_status(::viam::app::model::v1::Status value) { + _internal_set_status(value); + // @@protoc_insertion_point(field_set:viam.app.model.v1.UploadResponse.status) +} + +// ------------------------------------------------------------------- + +// DeleteResponse + +// string message = 1 [json_name = "message"]; +inline void DeleteResponse::clear_message() { + _impl_.message_.ClearToEmpty(); +} +inline const std::string& DeleteResponse::message() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.DeleteResponse.message) + return _internal_message(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteResponse::set_message(ArgT0&& arg0, ArgT... args) { + + _impl_.message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.model.v1.DeleteResponse.message) +} +inline std::string* DeleteResponse::mutable_message() { + std::string* _s = _internal_mutable_message(); + // @@protoc_insertion_point(field_mutable:viam.app.model.v1.DeleteResponse.message) + return _s; +} +inline const std::string& DeleteResponse::_internal_message() const { + return _impl_.message_.Get(); +} +inline void DeleteResponse::_internal_set_message(const std::string& value) { + + _impl_.message_.Set(value, GetArenaForAllocation()); +} +inline std::string* DeleteResponse::_internal_mutable_message() { + + return _impl_.message_.Mutable(GetArenaForAllocation()); +} +inline std::string* DeleteResponse::release_message() { + // @@protoc_insertion_point(field_release:viam.app.model.v1.DeleteResponse.message) + return _impl_.message_.Release(); +} +inline void DeleteResponse::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + _impl_.message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.message_.IsDefault()) { + _impl_.message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.model.v1.DeleteResponse.message) +} + +// .viam.app.model.v1.Status status = 2 [json_name = "status"]; +inline void DeleteResponse::clear_status() { + _impl_.status_ = 0; +} +inline ::viam::app::model::v1::Status DeleteResponse::_internal_status() const { + return static_cast< ::viam::app::model::v1::Status >(_impl_.status_); +} +inline ::viam::app::model::v1::Status DeleteResponse::status() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.DeleteResponse.status) + return _internal_status(); +} +inline void DeleteResponse::_internal_set_status(::viam::app::model::v1::Status value) { + + _impl_.status_ = value; +} +inline void DeleteResponse::set_status(::viam::app::model::v1::Status value) { + _internal_set_status(value); + // @@protoc_insertion_point(field_set:viam.app.model.v1.DeleteResponse.status) +} + +// ------------------------------------------------------------------- + +// DeployResponse + +// string message = 1 [json_name = "message"]; +inline void DeployResponse::clear_message() { + _impl_.message_.ClearToEmpty(); +} +inline const std::string& DeployResponse::message() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.DeployResponse.message) + return _internal_message(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DeployResponse::set_message(ArgT0&& arg0, ArgT... args) { + + _impl_.message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.model.v1.DeployResponse.message) +} +inline std::string* DeployResponse::mutable_message() { + std::string* _s = _internal_mutable_message(); + // @@protoc_insertion_point(field_mutable:viam.app.model.v1.DeployResponse.message) + return _s; +} +inline const std::string& DeployResponse::_internal_message() const { + return _impl_.message_.Get(); +} +inline void DeployResponse::_internal_set_message(const std::string& value) { + + _impl_.message_.Set(value, GetArenaForAllocation()); +} +inline std::string* DeployResponse::_internal_mutable_message() { + + return _impl_.message_.Mutable(GetArenaForAllocation()); +} +inline std::string* DeployResponse::release_message() { + // @@protoc_insertion_point(field_release:viam.app.model.v1.DeployResponse.message) + return _impl_.message_.Release(); +} +inline void DeployResponse::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + _impl_.message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.message_.IsDefault()) { + _impl_.message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.model.v1.DeployResponse.message) +} + +// .viam.app.model.v1.Status status = 2 [json_name = "status"]; +inline void DeployResponse::clear_status() { + _impl_.status_ = 0; +} +inline ::viam::app::model::v1::Status DeployResponse::_internal_status() const { + return static_cast< ::viam::app::model::v1::Status >(_impl_.status_); +} +inline ::viam::app::model::v1::Status DeployResponse::status() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.DeployResponse.status) + return _internal_status(); +} +inline void DeployResponse::_internal_set_status(::viam::app::model::v1::Status value) { + + _impl_.status_ = value; +} +inline void DeployResponse::set_status(::viam::app::model::v1::Status value) { + _internal_set_status(value); + // @@protoc_insertion_point(field_set:viam.app.model.v1.DeployResponse.status) +} + +// ------------------------------------------------------------------- + +// SyncedModel + +// string org_id = 1 [json_name = "orgId"]; +inline void SyncedModel::clear_org_id() { + _impl_.org_id_.ClearToEmpty(); +} +inline const std::string& SyncedModel::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.SyncedModel.org_id) + return _internal_org_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SyncedModel::set_org_id(ArgT0&& arg0, ArgT... args) { + + _impl_.org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.model.v1.SyncedModel.org_id) +} +inline std::string* SyncedModel::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.model.v1.SyncedModel.org_id) + return _s; +} +inline const std::string& SyncedModel::_internal_org_id() const { + return _impl_.org_id_.Get(); +} +inline void SyncedModel::_internal_set_org_id(const std::string& value) { + + _impl_.org_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* SyncedModel::_internal_mutable_org_id() { + + return _impl_.org_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* SyncedModel::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.model.v1.SyncedModel.org_id) + return _impl_.org_id_.Release(); +} +inline void SyncedModel::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + _impl_.org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.org_id_.IsDefault()) { + _impl_.org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.model.v1.SyncedModel.org_id) +} + +// string model_name = 2 [json_name = "modelName"]; +inline void SyncedModel::clear_model_name() { + _impl_.model_name_.ClearToEmpty(); +} +inline const std::string& SyncedModel::model_name() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.SyncedModel.model_name) + return _internal_model_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SyncedModel::set_model_name(ArgT0&& arg0, ArgT... args) { + + _impl_.model_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.model.v1.SyncedModel.model_name) +} +inline std::string* SyncedModel::mutable_model_name() { + std::string* _s = _internal_mutable_model_name(); + // @@protoc_insertion_point(field_mutable:viam.app.model.v1.SyncedModel.model_name) + return _s; +} +inline const std::string& SyncedModel::_internal_model_name() const { + return _impl_.model_name_.Get(); +} +inline void SyncedModel::_internal_set_model_name(const std::string& value) { + + _impl_.model_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* SyncedModel::_internal_mutable_model_name() { + + return _impl_.model_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* SyncedModel::release_model_name() { + // @@protoc_insertion_point(field_release:viam.app.model.v1.SyncedModel.model_name) + return _impl_.model_name_.Release(); +} +inline void SyncedModel::set_allocated_model_name(std::string* model_name) { + if (model_name != nullptr) { + + } else { + + } + _impl_.model_name_.SetAllocated(model_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.model_name_.IsDefault()) { + _impl_.model_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.model.v1.SyncedModel.model_name) +} + +// string associated_dataset = 3 [json_name = "associatedDataset"]; +inline void SyncedModel::clear_associated_dataset() { + _impl_.associated_dataset_.ClearToEmpty(); +} +inline const std::string& SyncedModel::associated_dataset() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.SyncedModel.associated_dataset) + return _internal_associated_dataset(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SyncedModel::set_associated_dataset(ArgT0&& arg0, ArgT... args) { + + _impl_.associated_dataset_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.model.v1.SyncedModel.associated_dataset) +} +inline std::string* SyncedModel::mutable_associated_dataset() { + std::string* _s = _internal_mutable_associated_dataset(); + // @@protoc_insertion_point(field_mutable:viam.app.model.v1.SyncedModel.associated_dataset) + return _s; +} +inline const std::string& SyncedModel::_internal_associated_dataset() const { + return _impl_.associated_dataset_.Get(); +} +inline void SyncedModel::_internal_set_associated_dataset(const std::string& value) { + + _impl_.associated_dataset_.Set(value, GetArenaForAllocation()); +} +inline std::string* SyncedModel::_internal_mutable_associated_dataset() { + + return _impl_.associated_dataset_.Mutable(GetArenaForAllocation()); +} +inline std::string* SyncedModel::release_associated_dataset() { + // @@protoc_insertion_point(field_release:viam.app.model.v1.SyncedModel.associated_dataset) + return _impl_.associated_dataset_.Release(); +} +inline void SyncedModel::set_allocated_associated_dataset(std::string* associated_dataset) { + if (associated_dataset != nullptr) { + + } else { + + } + _impl_.associated_dataset_.SetAllocated(associated_dataset, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.associated_dataset_.IsDefault()) { + _impl_.associated_dataset_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.model.v1.SyncedModel.associated_dataset) +} + +// string blob_path = 4 [json_name = "blobPath"]; +inline void SyncedModel::clear_blob_path() { + _impl_.blob_path_.ClearToEmpty(); +} +inline const std::string& SyncedModel::blob_path() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.SyncedModel.blob_path) + return _internal_blob_path(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SyncedModel::set_blob_path(ArgT0&& arg0, ArgT... args) { + + _impl_.blob_path_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.model.v1.SyncedModel.blob_path) +} +inline std::string* SyncedModel::mutable_blob_path() { + std::string* _s = _internal_mutable_blob_path(); + // @@protoc_insertion_point(field_mutable:viam.app.model.v1.SyncedModel.blob_path) + return _s; +} +inline const std::string& SyncedModel::_internal_blob_path() const { + return _impl_.blob_path_.Get(); +} +inline void SyncedModel::_internal_set_blob_path(const std::string& value) { + + _impl_.blob_path_.Set(value, GetArenaForAllocation()); +} +inline std::string* SyncedModel::_internal_mutable_blob_path() { + + return _impl_.blob_path_.Mutable(GetArenaForAllocation()); +} +inline std::string* SyncedModel::release_blob_path() { + // @@protoc_insertion_point(field_release:viam.app.model.v1.SyncedModel.blob_path) + return _impl_.blob_path_.Release(); +} +inline void SyncedModel::set_allocated_blob_path(std::string* blob_path) { + if (blob_path != nullptr) { + + } else { + + } + _impl_.blob_path_.SetAllocated(blob_path, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.blob_path_.IsDefault()) { + _impl_.blob_path_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.model.v1.SyncedModel.blob_path) +} + +// .google.protobuf.Timestamp sync_time = 5 [json_name = "syncTime"]; +inline bool SyncedModel::_internal_has_sync_time() const { + return this != internal_default_instance() && _impl_.sync_time_ != nullptr; +} +inline bool SyncedModel::has_sync_time() const { + return _internal_has_sync_time(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& SyncedModel::_internal_sync_time() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.sync_time_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& SyncedModel::sync_time() const { + // @@protoc_insertion_point(field_get:viam.app.model.v1.SyncedModel.sync_time) + return _internal_sync_time(); +} +inline void SyncedModel::unsafe_arena_set_allocated_sync_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* sync_time) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.sync_time_); + } + _impl_.sync_time_ = sync_time; + if (sync_time) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.model.v1.SyncedModel.sync_time) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* SyncedModel::release_sync_time() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.sync_time_; + _impl_.sync_time_ = 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* SyncedModel::unsafe_arena_release_sync_time() { + // @@protoc_insertion_point(field_release:viam.app.model.v1.SyncedModel.sync_time) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.sync_time_; + _impl_.sync_time_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* SyncedModel::_internal_mutable_sync_time() { + + if (_impl_.sync_time_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.sync_time_ = p; + } + return _impl_.sync_time_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* SyncedModel::mutable_sync_time() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_sync_time(); + // @@protoc_insertion_point(field_mutable:viam.app.model.v1.SyncedModel.sync_time) + return _msg; +} +inline void SyncedModel::set_allocated_sync_time(::PROTOBUF_NAMESPACE_ID::Timestamp* sync_time) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.sync_time_); + } + if (sync_time) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(sync_time)); + if (message_arena != submessage_arena) { + sync_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, sync_time, submessage_arena); + } + + } else { + + } + _impl_.sync_time_ = sync_time; + // @@protoc_insertion_point(field_set_allocated:viam.app.model.v1.SyncedModel.sync_time) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace model +} // namespace app +} // namespace viam + +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::viam::app::model::v1::Status> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::viam::app::model::v1::Status>() { + return ::viam::app::model::v1::Status_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_app_2fmodel_2fv1_2fmodel_2eproto diff --git a/src/gen/app/v1/app.grpc.pb.cc b/src/gen/app/v1/app.grpc.pb.cc new file mode 100644 index 000000000..040a56df8 --- /dev/null +++ b/src/gen/app/v1/app.grpc.pb.cc @@ -0,0 +1,755 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: app/v1/app.proto + +#include "app/v1/app.pb.h" +#include "app/v1/app.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace app { +namespace v1 { + +static const char* AppService_method_names[] = { + "/viam.app.v1.AppService/ListOrganizations", + "/viam.app.v1.AppService/ListLocations", + "/viam.app.v1.AppService/LocationAuth", + "/viam.app.v1.AppService/GetRobot", + "/viam.app.v1.AppService/GetRobotParts", + "/viam.app.v1.AppService/GetRobotPart", + "/viam.app.v1.AppService/GetRobotPartLogs", + "/viam.app.v1.AppService/TailRobotPartLogs", + "/viam.app.v1.AppService/GetRobotPartHistory", + "/viam.app.v1.AppService/UpdateRobotPart", + "/viam.app.v1.AppService/NewRobotPart", + "/viam.app.v1.AppService/DeleteRobotPart", + "/viam.app.v1.AppService/MarkPartAsMain", + "/viam.app.v1.AppService/FindRobots", + "/viam.app.v1.AppService/NewRobot", + "/viam.app.v1.AppService/UpdateRobot", + "/viam.app.v1.AppService/DeleteRobot", +}; + +std::unique_ptr< AppService::Stub> AppService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< AppService::Stub> stub(new AppService::Stub(channel, options)); + return stub; +} + +AppService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_ListOrganizations_(AppService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListLocations_(AppService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_LocationAuth_(AppService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetRobot_(AppService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetRobotParts_(AppService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetRobotPart_(AppService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetRobotPartLogs_(AppService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_TailRobotPartLogs_(AppService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_GetRobotPartHistory_(AppService_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateRobotPart_(AppService_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_NewRobotPart_(AppService_method_names[10], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteRobotPart_(AppService_method_names[11], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_MarkPartAsMain_(AppService_method_names[12], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_FindRobots_(AppService_method_names[13], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_NewRobot_(AppService_method_names[14], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateRobot_(AppService_method_names[15], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteRobot_(AppService_method_names[16], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status AppService::Stub::ListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest& request, ::viam::app::v1::ListOrganizationsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::ListOrganizationsRequest, ::viam::app::v1::ListOrganizationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListOrganizations_, context, request, response); +} + +void AppService::Stub::async::ListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest* request, ::viam::app::v1::ListOrganizationsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::ListOrganizationsRequest, ::viam::app::v1::ListOrganizationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListOrganizations_, context, request, response, std::move(f)); +} + +void AppService::Stub::async::ListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest* request, ::viam::app::v1::ListOrganizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListOrganizations_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationsResponse>* AppService::Stub::PrepareAsyncListOrganizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::ListOrganizationsResponse, ::viam::app::v1::ListOrganizationsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListOrganizations_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationsResponse>* AppService::Stub::AsyncListOrganizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncListOrganizationsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AppService::Stub::ListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest& request, ::viam::app::v1::ListLocationsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::ListLocationsRequest, ::viam::app::v1::ListLocationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListLocations_, context, request, response); +} + +void AppService::Stub::async::ListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest* request, ::viam::app::v1::ListLocationsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::ListLocationsRequest, ::viam::app::v1::ListLocationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListLocations_, context, request, response, std::move(f)); +} + +void AppService::Stub::async::ListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest* request, ::viam::app::v1::ListLocationsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListLocations_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListLocationsResponse>* AppService::Stub::PrepareAsyncListLocationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::ListLocationsResponse, ::viam::app::v1::ListLocationsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListLocations_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListLocationsResponse>* AppService::Stub::AsyncListLocationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncListLocationsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AppService::Stub::LocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest& request, ::viam::app::v1::LocationAuthResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::LocationAuthRequest, ::viam::app::v1::LocationAuthResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_LocationAuth_, context, request, response); +} + +void AppService::Stub::async::LocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest* request, ::viam::app::v1::LocationAuthResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::LocationAuthRequest, ::viam::app::v1::LocationAuthResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_LocationAuth_, context, request, response, std::move(f)); +} + +void AppService::Stub::async::LocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest* request, ::viam::app::v1::LocationAuthResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_LocationAuth_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::LocationAuthResponse>* AppService::Stub::PrepareAsyncLocationAuthRaw(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::LocationAuthResponse, ::viam::app::v1::LocationAuthRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_LocationAuth_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::LocationAuthResponse>* AppService::Stub::AsyncLocationAuthRaw(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncLocationAuthRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AppService::Stub::GetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest& request, ::viam::app::v1::GetRobotResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetRobotRequest, ::viam::app::v1::GetRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetRobot_, context, request, response); +} + +void AppService::Stub::async::GetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest* request, ::viam::app::v1::GetRobotResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetRobotRequest, ::viam::app::v1::GetRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobot_, context, request, response, std::move(f)); +} + +void AppService::Stub::async::GetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest* request, ::viam::app::v1::GetRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobot_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotResponse>* AppService::Stub::PrepareAsyncGetRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetRobotResponse, ::viam::app::v1::GetRobotRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetRobot_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotResponse>* AppService::Stub::AsyncGetRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetRobotRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AppService::Stub::GetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest& request, ::viam::app::v1::GetRobotPartsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetRobotPartsRequest, ::viam::app::v1::GetRobotPartsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetRobotParts_, context, request, response); +} + +void AppService::Stub::async::GetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest* request, ::viam::app::v1::GetRobotPartsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetRobotPartsRequest, ::viam::app::v1::GetRobotPartsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobotParts_, context, request, response, std::move(f)); +} + +void AppService::Stub::async::GetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest* request, ::viam::app::v1::GetRobotPartsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobotParts_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartsResponse>* AppService::Stub::PrepareAsyncGetRobotPartsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetRobotPartsResponse, ::viam::app::v1::GetRobotPartsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetRobotParts_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartsResponse>* AppService::Stub::AsyncGetRobotPartsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetRobotPartsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AppService::Stub::GetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest& request, ::viam::app::v1::GetRobotPartResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetRobotPartRequest, ::viam::app::v1::GetRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetRobotPart_, context, request, response); +} + +void AppService::Stub::async::GetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest* request, ::viam::app::v1::GetRobotPartResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetRobotPartRequest, ::viam::app::v1::GetRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobotPart_, context, request, response, std::move(f)); +} + +void AppService::Stub::async::GetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest* request, ::viam::app::v1::GetRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobotPart_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartResponse>* AppService::Stub::PrepareAsyncGetRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetRobotPartResponse, ::viam::app::v1::GetRobotPartRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetRobotPart_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartResponse>* AppService::Stub::AsyncGetRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetRobotPartRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AppService::Stub::GetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest& request, ::viam::app::v1::GetRobotPartLogsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetRobotPartLogsRequest, ::viam::app::v1::GetRobotPartLogsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetRobotPartLogs_, context, request, response); +} + +void AppService::Stub::async::GetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest* request, ::viam::app::v1::GetRobotPartLogsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetRobotPartLogsRequest, ::viam::app::v1::GetRobotPartLogsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobotPartLogs_, context, request, response, std::move(f)); +} + +void AppService::Stub::async::GetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest* request, ::viam::app::v1::GetRobotPartLogsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobotPartLogs_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartLogsResponse>* AppService::Stub::PrepareAsyncGetRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetRobotPartLogsResponse, ::viam::app::v1::GetRobotPartLogsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetRobotPartLogs_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartLogsResponse>* AppService::Stub::AsyncGetRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetRobotPartLogsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::ClientReader< ::viam::app::v1::TailRobotPartLogsResponse>* AppService::Stub::TailRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest& request) { + return ::grpc::internal::ClientReaderFactory< ::viam::app::v1::TailRobotPartLogsResponse>::Create(channel_.get(), rpcmethod_TailRobotPartLogs_, context, request); +} + +void AppService::Stub::async::TailRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest* request, ::grpc::ClientReadReactor< ::viam::app::v1::TailRobotPartLogsResponse>* reactor) { + ::grpc::internal::ClientCallbackReaderFactory< ::viam::app::v1::TailRobotPartLogsResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_TailRobotPartLogs_, context, request, reactor); +} + +::grpc::ClientAsyncReader< ::viam::app::v1::TailRobotPartLogsResponse>* AppService::Stub::AsyncTailRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc::internal::ClientAsyncReaderFactory< ::viam::app::v1::TailRobotPartLogsResponse>::Create(channel_.get(), cq, rpcmethod_TailRobotPartLogs_, context, request, true, tag); +} + +::grpc::ClientAsyncReader< ::viam::app::v1::TailRobotPartLogsResponse>* AppService::Stub::PrepareAsyncTailRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncReaderFactory< ::viam::app::v1::TailRobotPartLogsResponse>::Create(channel_.get(), cq, rpcmethod_TailRobotPartLogs_, context, request, false, nullptr); +} + +::grpc::Status AppService::Stub::GetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest& request, ::viam::app::v1::GetRobotPartHistoryResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetRobotPartHistoryRequest, ::viam::app::v1::GetRobotPartHistoryResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetRobotPartHistory_, context, request, response); +} + +void AppService::Stub::async::GetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetRobotPartHistoryRequest, ::viam::app::v1::GetRobotPartHistoryResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobotPartHistory_, context, request, response, std::move(f)); +} + +void AppService::Stub::async::GetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobotPartHistory_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartHistoryResponse>* AppService::Stub::PrepareAsyncGetRobotPartHistoryRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetRobotPartHistoryResponse, ::viam::app::v1::GetRobotPartHistoryRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetRobotPartHistory_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartHistoryResponse>* AppService::Stub::AsyncGetRobotPartHistoryRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetRobotPartHistoryRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AppService::Stub::UpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest& request, ::viam::app::v1::UpdateRobotPartResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::UpdateRobotPartRequest, ::viam::app::v1::UpdateRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UpdateRobotPart_, context, request, response); +} + +void AppService::Stub::async::UpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest* request, ::viam::app::v1::UpdateRobotPartResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::UpdateRobotPartRequest, ::viam::app::v1::UpdateRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateRobotPart_, context, request, response, std::move(f)); +} + +void AppService::Stub::async::UpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest* request, ::viam::app::v1::UpdateRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateRobotPart_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotPartResponse>* AppService::Stub::PrepareAsyncUpdateRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::UpdateRobotPartResponse, ::viam::app::v1::UpdateRobotPartRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UpdateRobotPart_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotPartResponse>* AppService::Stub::AsyncUpdateRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncUpdateRobotPartRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AppService::Stub::NewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest& request, ::viam::app::v1::NewRobotPartResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::NewRobotPartRequest, ::viam::app::v1::NewRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_NewRobotPart_, context, request, response); +} + +void AppService::Stub::async::NewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest* request, ::viam::app::v1::NewRobotPartResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::NewRobotPartRequest, ::viam::app::v1::NewRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_NewRobotPart_, context, request, response, std::move(f)); +} + +void AppService::Stub::async::NewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest* request, ::viam::app::v1::NewRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_NewRobotPart_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotPartResponse>* AppService::Stub::PrepareAsyncNewRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::NewRobotPartResponse, ::viam::app::v1::NewRobotPartRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_NewRobotPart_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotPartResponse>* AppService::Stub::AsyncNewRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncNewRobotPartRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AppService::Stub::DeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest& request, ::viam::app::v1::DeleteRobotPartResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::DeleteRobotPartRequest, ::viam::app::v1::DeleteRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeleteRobotPart_, context, request, response); +} + +void AppService::Stub::async::DeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest* request, ::viam::app::v1::DeleteRobotPartResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::DeleteRobotPartRequest, ::viam::app::v1::DeleteRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteRobotPart_, context, request, response, std::move(f)); +} + +void AppService::Stub::async::DeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest* request, ::viam::app::v1::DeleteRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteRobotPart_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotPartResponse>* AppService::Stub::PrepareAsyncDeleteRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::DeleteRobotPartResponse, ::viam::app::v1::DeleteRobotPartRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeleteRobotPart_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotPartResponse>* AppService::Stub::AsyncDeleteRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncDeleteRobotPartRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AppService::Stub::MarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest& request, ::viam::app::v1::MarkPartAsMainResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::MarkPartAsMainRequest, ::viam::app::v1::MarkPartAsMainResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MarkPartAsMain_, context, request, response); +} + +void AppService::Stub::async::MarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest* request, ::viam::app::v1::MarkPartAsMainResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::MarkPartAsMainRequest, ::viam::app::v1::MarkPartAsMainResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MarkPartAsMain_, context, request, response, std::move(f)); +} + +void AppService::Stub::async::MarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest* request, ::viam::app::v1::MarkPartAsMainResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MarkPartAsMain_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::MarkPartAsMainResponse>* AppService::Stub::PrepareAsyncMarkPartAsMainRaw(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::MarkPartAsMainResponse, ::viam::app::v1::MarkPartAsMainRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MarkPartAsMain_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::MarkPartAsMainResponse>* AppService::Stub::AsyncMarkPartAsMainRaw(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncMarkPartAsMainRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AppService::Stub::FindRobots(::grpc::ClientContext* context, const ::viam::app::v1::FindRobotsRequest& request, ::viam::app::v1::FindRobotsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::FindRobotsRequest, ::viam::app::v1::FindRobotsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_FindRobots_, context, request, response); +} + +void AppService::Stub::async::FindRobots(::grpc::ClientContext* context, const ::viam::app::v1::FindRobotsRequest* request, ::viam::app::v1::FindRobotsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::FindRobotsRequest, ::viam::app::v1::FindRobotsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_FindRobots_, context, request, response, std::move(f)); +} + +void AppService::Stub::async::FindRobots(::grpc::ClientContext* context, const ::viam::app::v1::FindRobotsRequest* request, ::viam::app::v1::FindRobotsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_FindRobots_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::FindRobotsResponse>* AppService::Stub::PrepareAsyncFindRobotsRaw(::grpc::ClientContext* context, const ::viam::app::v1::FindRobotsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::FindRobotsResponse, ::viam::app::v1::FindRobotsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_FindRobots_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::FindRobotsResponse>* AppService::Stub::AsyncFindRobotsRaw(::grpc::ClientContext* context, const ::viam::app::v1::FindRobotsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncFindRobotsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AppService::Stub::NewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest& request, ::viam::app::v1::NewRobotResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::NewRobotRequest, ::viam::app::v1::NewRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_NewRobot_, context, request, response); +} + +void AppService::Stub::async::NewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest* request, ::viam::app::v1::NewRobotResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::NewRobotRequest, ::viam::app::v1::NewRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_NewRobot_, context, request, response, std::move(f)); +} + +void AppService::Stub::async::NewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest* request, ::viam::app::v1::NewRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_NewRobot_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotResponse>* AppService::Stub::PrepareAsyncNewRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::NewRobotResponse, ::viam::app::v1::NewRobotRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_NewRobot_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotResponse>* AppService::Stub::AsyncNewRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncNewRobotRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AppService::Stub::UpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest& request, ::viam::app::v1::UpdateRobotResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::UpdateRobotRequest, ::viam::app::v1::UpdateRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UpdateRobot_, context, request, response); +} + +void AppService::Stub::async::UpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest* request, ::viam::app::v1::UpdateRobotResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::UpdateRobotRequest, ::viam::app::v1::UpdateRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateRobot_, context, request, response, std::move(f)); +} + +void AppService::Stub::async::UpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest* request, ::viam::app::v1::UpdateRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateRobot_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotResponse>* AppService::Stub::PrepareAsyncUpdateRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::UpdateRobotResponse, ::viam::app::v1::UpdateRobotRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UpdateRobot_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotResponse>* AppService::Stub::AsyncUpdateRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncUpdateRobotRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AppService::Stub::DeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest& request, ::viam::app::v1::DeleteRobotResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::DeleteRobotRequest, ::viam::app::v1::DeleteRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeleteRobot_, context, request, response); +} + +void AppService::Stub::async::DeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest* request, ::viam::app::v1::DeleteRobotResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::DeleteRobotRequest, ::viam::app::v1::DeleteRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteRobot_, context, request, response, std::move(f)); +} + +void AppService::Stub::async::DeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest* request, ::viam::app::v1::DeleteRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteRobot_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotResponse>* AppService::Stub::PrepareAsyncDeleteRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::DeleteRobotResponse, ::viam::app::v1::DeleteRobotRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeleteRobot_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotResponse>* AppService::Stub::AsyncDeleteRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncDeleteRobotRaw(context, request, cq); + result->StartCall(); + return result; +} + +AppService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListOrganizationsRequest, ::viam::app::v1::ListOrganizationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AppService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::ListOrganizationsRequest* req, + ::viam::app::v1::ListOrganizationsResponse* resp) { + return service->ListOrganizations(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListLocationsRequest, ::viam::app::v1::ListLocationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AppService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::ListLocationsRequest* req, + ::viam::app::v1::ListLocationsResponse* resp) { + return service->ListLocations(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::LocationAuthRequest, ::viam::app::v1::LocationAuthResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AppService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::LocationAuthRequest* req, + ::viam::app::v1::LocationAuthResponse* resp) { + return service->LocationAuth(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetRobotRequest, ::viam::app::v1::GetRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AppService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::GetRobotRequest* req, + ::viam::app::v1::GetRobotResponse* resp) { + return service->GetRobot(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[4], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetRobotPartsRequest, ::viam::app::v1::GetRobotPartsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AppService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::GetRobotPartsRequest* req, + ::viam::app::v1::GetRobotPartsResponse* resp) { + return service->GetRobotParts(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[5], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetRobotPartRequest, ::viam::app::v1::GetRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AppService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::GetRobotPartRequest* req, + ::viam::app::v1::GetRobotPartResponse* resp) { + return service->GetRobotPart(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[6], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetRobotPartLogsRequest, ::viam::app::v1::GetRobotPartLogsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AppService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::GetRobotPartLogsRequest* req, + ::viam::app::v1::GetRobotPartLogsResponse* resp) { + return service->GetRobotPartLogs(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[7], + ::grpc::internal::RpcMethod::SERVER_STREAMING, + new ::grpc::internal::ServerStreamingHandler< AppService::Service, ::viam::app::v1::TailRobotPartLogsRequest, ::viam::app::v1::TailRobotPartLogsResponse>( + [](AppService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::TailRobotPartLogsRequest* req, + ::grpc::ServerWriter<::viam::app::v1::TailRobotPartLogsResponse>* writer) { + return service->TailRobotPartLogs(ctx, req, writer); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[8], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetRobotPartHistoryRequest, ::viam::app::v1::GetRobotPartHistoryResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AppService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::GetRobotPartHistoryRequest* req, + ::viam::app::v1::GetRobotPartHistoryResponse* resp) { + return service->GetRobotPartHistory(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[9], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UpdateRobotPartRequest, ::viam::app::v1::UpdateRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AppService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::UpdateRobotPartRequest* req, + ::viam::app::v1::UpdateRobotPartResponse* resp) { + return service->UpdateRobotPart(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[10], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::NewRobotPartRequest, ::viam::app::v1::NewRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AppService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::NewRobotPartRequest* req, + ::viam::app::v1::NewRobotPartResponse* resp) { + return service->NewRobotPart(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[11], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteRobotPartRequest, ::viam::app::v1::DeleteRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AppService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::DeleteRobotPartRequest* req, + ::viam::app::v1::DeleteRobotPartResponse* resp) { + return service->DeleteRobotPart(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[12], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::MarkPartAsMainRequest, ::viam::app::v1::MarkPartAsMainResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AppService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::MarkPartAsMainRequest* req, + ::viam::app::v1::MarkPartAsMainResponse* resp) { + return service->MarkPartAsMain(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[13], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::FindRobotsRequest, ::viam::app::v1::FindRobotsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AppService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::FindRobotsRequest* req, + ::viam::app::v1::FindRobotsResponse* resp) { + return service->FindRobots(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[14], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::NewRobotRequest, ::viam::app::v1::NewRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AppService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::NewRobotRequest* req, + ::viam::app::v1::NewRobotResponse* resp) { + return service->NewRobot(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[15], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UpdateRobotRequest, ::viam::app::v1::UpdateRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AppService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::UpdateRobotRequest* req, + ::viam::app::v1::UpdateRobotResponse* resp) { + return service->UpdateRobot(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[16], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteRobotRequest, ::viam::app::v1::DeleteRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AppService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::DeleteRobotRequest* req, + ::viam::app::v1::DeleteRobotResponse* resp) { + return service->DeleteRobot(ctx, req, resp); + }, this))); +} + +AppService::Service::~Service() { +} + +::grpc::Status AppService::Service::ListOrganizations(::grpc::ServerContext* context, const ::viam::app::v1::ListOrganizationsRequest* request, ::viam::app::v1::ListOrganizationsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::ListLocations(::grpc::ServerContext* context, const ::viam::app::v1::ListLocationsRequest* request, ::viam::app::v1::ListLocationsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::LocationAuth(::grpc::ServerContext* context, const ::viam::app::v1::LocationAuthRequest* request, ::viam::app::v1::LocationAuthResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::GetRobot(::grpc::ServerContext* context, const ::viam::app::v1::GetRobotRequest* request, ::viam::app::v1::GetRobotResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::GetRobotParts(::grpc::ServerContext* context, const ::viam::app::v1::GetRobotPartsRequest* request, ::viam::app::v1::GetRobotPartsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::GetRobotPart(::grpc::ServerContext* context, const ::viam::app::v1::GetRobotPartRequest* request, ::viam::app::v1::GetRobotPartResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::GetRobotPartLogs(::grpc::ServerContext* context, const ::viam::app::v1::GetRobotPartLogsRequest* request, ::viam::app::v1::GetRobotPartLogsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::TailRobotPartLogs(::grpc::ServerContext* context, const ::viam::app::v1::TailRobotPartLogsRequest* request, ::grpc::ServerWriter< ::viam::app::v1::TailRobotPartLogsResponse>* writer) { + (void) context; + (void) request; + (void) writer; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::GetRobotPartHistory(::grpc::ServerContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest* request, ::viam::app::v1::GetRobotPartHistoryResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::UpdateRobotPart(::grpc::ServerContext* context, const ::viam::app::v1::UpdateRobotPartRequest* request, ::viam::app::v1::UpdateRobotPartResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::NewRobotPart(::grpc::ServerContext* context, const ::viam::app::v1::NewRobotPartRequest* request, ::viam::app::v1::NewRobotPartResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::DeleteRobotPart(::grpc::ServerContext* context, const ::viam::app::v1::DeleteRobotPartRequest* request, ::viam::app::v1::DeleteRobotPartResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::MarkPartAsMain(::grpc::ServerContext* context, const ::viam::app::v1::MarkPartAsMainRequest* request, ::viam::app::v1::MarkPartAsMainResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::FindRobots(::grpc::ServerContext* context, const ::viam::app::v1::FindRobotsRequest* request, ::viam::app::v1::FindRobotsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::NewRobot(::grpc::ServerContext* context, const ::viam::app::v1::NewRobotRequest* request, ::viam::app::v1::NewRobotResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::UpdateRobot(::grpc::ServerContext* context, const ::viam::app::v1::UpdateRobotRequest* request, ::viam::app::v1::UpdateRobotResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::DeleteRobot(::grpc::ServerContext* context, const ::viam::app::v1::DeleteRobotRequest* request, ::viam::app::v1::DeleteRobotResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace app +} // namespace v1 + diff --git a/src/gen/app/v1/app.grpc.pb.h b/src/gen/app/v1/app.grpc.pb.h new file mode 100644 index 000000000..520387639 --- /dev/null +++ b/src/gen/app/v1/app.grpc.pb.h @@ -0,0 +1,2788 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: app/v1/app.proto +#ifndef GRPC_app_2fv1_2fapp_2eproto__INCLUDED +#define GRPC_app_2fv1_2fapp_2eproto__INCLUDED + +#include "app/v1/app.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace app { +namespace v1 { + +class AppService final { + public: + static constexpr char const* service_full_name() { + return "viam.app.v1.AppService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status ListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest& request, ::viam::app::v1::ListOrganizationsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListOrganizationsResponse>> AsyncListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListOrganizationsResponse>>(AsyncListOrganizationsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListOrganizationsResponse>> PrepareAsyncListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListOrganizationsResponse>>(PrepareAsyncListOrganizationsRaw(context, request, cq)); + } + virtual ::grpc::Status ListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest& request, ::viam::app::v1::ListLocationsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListLocationsResponse>> AsyncListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListLocationsResponse>>(AsyncListLocationsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListLocationsResponse>> PrepareAsyncListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListLocationsResponse>>(PrepareAsyncListLocationsRaw(context, request, cq)); + } + virtual ::grpc::Status LocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest& request, ::viam::app::v1::LocationAuthResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::LocationAuthResponse>> AsyncLocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::LocationAuthResponse>>(AsyncLocationAuthRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::LocationAuthResponse>> PrepareAsyncLocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::LocationAuthResponse>>(PrepareAsyncLocationAuthRaw(context, request, cq)); + } + // Get a specific robot by ID + virtual ::grpc::Status GetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest& request, ::viam::app::v1::GetRobotResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotResponse>> AsyncGetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotResponse>>(AsyncGetRobotRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotResponse>> PrepareAsyncGetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotResponse>>(PrepareAsyncGetRobotRaw(context, request, cq)); + } + virtual ::grpc::Status GetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest& request, ::viam::app::v1::GetRobotPartsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartsResponse>> AsyncGetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartsResponse>>(AsyncGetRobotPartsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartsResponse>> PrepareAsyncGetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartsResponse>>(PrepareAsyncGetRobotPartsRaw(context, request, cq)); + } + // Get a specific robot part by ID + virtual ::grpc::Status GetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest& request, ::viam::app::v1::GetRobotPartResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartResponse>> AsyncGetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartResponse>>(AsyncGetRobotPartRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartResponse>> PrepareAsyncGetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartResponse>>(PrepareAsyncGetRobotPartRaw(context, request, cq)); + } + virtual ::grpc::Status GetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest& request, ::viam::app::v1::GetRobotPartLogsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartLogsResponse>> AsyncGetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartLogsResponse>>(AsyncGetRobotPartLogsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartLogsResponse>> PrepareAsyncGetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartLogsResponse>>(PrepareAsyncGetRobotPartLogsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientReaderInterface< ::viam::app::v1::TailRobotPartLogsResponse>> TailRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest& request) { + return std::unique_ptr< ::grpc::ClientReaderInterface< ::viam::app::v1::TailRobotPartLogsResponse>>(TailRobotPartLogsRaw(context, request)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::app::v1::TailRobotPartLogsResponse>> AsyncTailRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::app::v1::TailRobotPartLogsResponse>>(AsyncTailRobotPartLogsRaw(context, request, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::app::v1::TailRobotPartLogsResponse>> PrepareAsyncTailRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::app::v1::TailRobotPartLogsResponse>>(PrepareAsyncTailRobotPartLogsRaw(context, request, cq)); + } + // Get a specific robot part histy by ID + virtual ::grpc::Status GetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest& request, ::viam::app::v1::GetRobotPartHistoryResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartHistoryResponse>> AsyncGetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartHistoryResponse>>(AsyncGetRobotPartHistoryRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartHistoryResponse>> PrepareAsyncGetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartHistoryResponse>>(PrepareAsyncGetRobotPartHistoryRaw(context, request, cq)); + } + // Update a robot + virtual ::grpc::Status UpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest& request, ::viam::app::v1::UpdateRobotPartResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateRobotPartResponse>> AsyncUpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateRobotPartResponse>>(AsyncUpdateRobotPartRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateRobotPartResponse>> PrepareAsyncUpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateRobotPartResponse>>(PrepareAsyncUpdateRobotPartRaw(context, request, cq)); + } + // Create a new robot part + virtual ::grpc::Status NewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest& request, ::viam::app::v1::NewRobotPartResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::NewRobotPartResponse>> AsyncNewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::NewRobotPartResponse>>(AsyncNewRobotPartRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::NewRobotPartResponse>> PrepareAsyncNewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::NewRobotPartResponse>>(PrepareAsyncNewRobotPartRaw(context, request, cq)); + } + // Delete a robot part + virtual ::grpc::Status DeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest& request, ::viam::app::v1::DeleteRobotPartResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DeleteRobotPartResponse>> AsyncDeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DeleteRobotPartResponse>>(AsyncDeleteRobotPartRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DeleteRobotPartResponse>> PrepareAsyncDeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DeleteRobotPartResponse>>(PrepareAsyncDeleteRobotPartRaw(context, request, cq)); + } + // Marks the given part as the main part, and all the others as not + virtual ::grpc::Status MarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest& request, ::viam::app::v1::MarkPartAsMainResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::MarkPartAsMainResponse>> AsyncMarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::MarkPartAsMainResponse>>(AsyncMarkPartAsMainRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::MarkPartAsMainResponse>> PrepareAsyncMarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::MarkPartAsMainResponse>>(PrepareAsyncMarkPartAsMainRaw(context, request, cq)); + } + // Finds robots given a query + virtual ::grpc::Status FindRobots(::grpc::ClientContext* context, const ::viam::app::v1::FindRobotsRequest& request, ::viam::app::v1::FindRobotsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::FindRobotsResponse>> AsyncFindRobots(::grpc::ClientContext* context, const ::viam::app::v1::FindRobotsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::FindRobotsResponse>>(AsyncFindRobotsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::FindRobotsResponse>> PrepareAsyncFindRobots(::grpc::ClientContext* context, const ::viam::app::v1::FindRobotsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::FindRobotsResponse>>(PrepareAsyncFindRobotsRaw(context, request, cq)); + } + // NewRobot creates a new robot + virtual ::grpc::Status NewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest& request, ::viam::app::v1::NewRobotResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::NewRobotResponse>> AsyncNewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::NewRobotResponse>>(AsyncNewRobotRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::NewRobotResponse>> PrepareAsyncNewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::NewRobotResponse>>(PrepareAsyncNewRobotRaw(context, request, cq)); + } + // UpdateRobot updates a robot + virtual ::grpc::Status UpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest& request, ::viam::app::v1::UpdateRobotResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateRobotResponse>> AsyncUpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateRobotResponse>>(AsyncUpdateRobotRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateRobotResponse>> PrepareAsyncUpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateRobotResponse>>(PrepareAsyncUpdateRobotRaw(context, request, cq)); + } + // DeleteRobot deletes a robot + virtual ::grpc::Status DeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest& request, ::viam::app::v1::DeleteRobotResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DeleteRobotResponse>> AsyncDeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DeleteRobotResponse>>(AsyncDeleteRobotRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DeleteRobotResponse>> PrepareAsyncDeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DeleteRobotResponse>>(PrepareAsyncDeleteRobotRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void ListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest* request, ::viam::app::v1::ListOrganizationsResponse* response, std::function) = 0; + virtual void ListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest* request, ::viam::app::v1::ListOrganizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void ListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest* request, ::viam::app::v1::ListLocationsResponse* response, std::function) = 0; + virtual void ListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest* request, ::viam::app::v1::ListLocationsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void LocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest* request, ::viam::app::v1::LocationAuthResponse* response, std::function) = 0; + virtual void LocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest* request, ::viam::app::v1::LocationAuthResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Get a specific robot by ID + virtual void GetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest* request, ::viam::app::v1::GetRobotResponse* response, std::function) = 0; + virtual void GetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest* request, ::viam::app::v1::GetRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void GetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest* request, ::viam::app::v1::GetRobotPartsResponse* response, std::function) = 0; + virtual void GetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest* request, ::viam::app::v1::GetRobotPartsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Get a specific robot part by ID + virtual void GetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest* request, ::viam::app::v1::GetRobotPartResponse* response, std::function) = 0; + virtual void GetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest* request, ::viam::app::v1::GetRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void GetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest* request, ::viam::app::v1::GetRobotPartLogsResponse* response, std::function) = 0; + virtual void GetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest* request, ::viam::app::v1::GetRobotPartLogsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void TailRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest* request, ::grpc::ClientReadReactor< ::viam::app::v1::TailRobotPartLogsResponse>* reactor) = 0; + // Get a specific robot part histy by ID + virtual void GetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, std::function) = 0; + virtual void GetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Update a robot + virtual void UpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest* request, ::viam::app::v1::UpdateRobotPartResponse* response, std::function) = 0; + virtual void UpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest* request, ::viam::app::v1::UpdateRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Create a new robot part + virtual void NewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest* request, ::viam::app::v1::NewRobotPartResponse* response, std::function) = 0; + virtual void NewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest* request, ::viam::app::v1::NewRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Delete a robot part + virtual void DeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest* request, ::viam::app::v1::DeleteRobotPartResponse* response, std::function) = 0; + virtual void DeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest* request, ::viam::app::v1::DeleteRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Marks the given part as the main part, and all the others as not + virtual void MarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest* request, ::viam::app::v1::MarkPartAsMainResponse* response, std::function) = 0; + virtual void MarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest* request, ::viam::app::v1::MarkPartAsMainResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Finds robots given a query + virtual void FindRobots(::grpc::ClientContext* context, const ::viam::app::v1::FindRobotsRequest* request, ::viam::app::v1::FindRobotsResponse* response, std::function) = 0; + virtual void FindRobots(::grpc::ClientContext* context, const ::viam::app::v1::FindRobotsRequest* request, ::viam::app::v1::FindRobotsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // NewRobot creates a new robot + virtual void NewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest* request, ::viam::app::v1::NewRobotResponse* response, std::function) = 0; + virtual void NewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest* request, ::viam::app::v1::NewRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // UpdateRobot updates a robot + virtual void UpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest* request, ::viam::app::v1::UpdateRobotResponse* response, std::function) = 0; + virtual void UpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest* request, ::viam::app::v1::UpdateRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // DeleteRobot deletes a robot + virtual void DeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest* request, ::viam::app::v1::DeleteRobotResponse* response, std::function) = 0; + virtual void DeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest* request, ::viam::app::v1::DeleteRobotResponse* 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::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListOrganizationsResponse>* AsyncListOrganizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListOrganizationsResponse>* PrepareAsyncListOrganizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListLocationsResponse>* AsyncListLocationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListLocationsResponse>* PrepareAsyncListLocationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::LocationAuthResponse>* AsyncLocationAuthRaw(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::LocationAuthResponse>* PrepareAsyncLocationAuthRaw(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotResponse>* AsyncGetRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotResponse>* PrepareAsyncGetRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartsResponse>* AsyncGetRobotPartsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartsResponse>* PrepareAsyncGetRobotPartsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartResponse>* AsyncGetRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartResponse>* PrepareAsyncGetRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartLogsResponse>* AsyncGetRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartLogsResponse>* PrepareAsyncGetRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientReaderInterface< ::viam::app::v1::TailRobotPartLogsResponse>* TailRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest& request) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::viam::app::v1::TailRobotPartLogsResponse>* AsyncTailRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::viam::app::v1::TailRobotPartLogsResponse>* PrepareAsyncTailRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartHistoryResponse>* AsyncGetRobotPartHistoryRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetRobotPartHistoryResponse>* PrepareAsyncGetRobotPartHistoryRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateRobotPartResponse>* AsyncUpdateRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateRobotPartResponse>* PrepareAsyncUpdateRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::NewRobotPartResponse>* AsyncNewRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::NewRobotPartResponse>* PrepareAsyncNewRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DeleteRobotPartResponse>* AsyncDeleteRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DeleteRobotPartResponse>* PrepareAsyncDeleteRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::MarkPartAsMainResponse>* AsyncMarkPartAsMainRaw(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::MarkPartAsMainResponse>* PrepareAsyncMarkPartAsMainRaw(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::FindRobotsResponse>* AsyncFindRobotsRaw(::grpc::ClientContext* context, const ::viam::app::v1::FindRobotsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::FindRobotsResponse>* PrepareAsyncFindRobotsRaw(::grpc::ClientContext* context, const ::viam::app::v1::FindRobotsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::NewRobotResponse>* AsyncNewRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::NewRobotResponse>* PrepareAsyncNewRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateRobotResponse>* AsyncUpdateRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateRobotResponse>* PrepareAsyncUpdateRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DeleteRobotResponse>* AsyncDeleteRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DeleteRobotResponse>* PrepareAsyncDeleteRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest& 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()); + ::grpc::Status ListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest& request, ::viam::app::v1::ListOrganizationsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationsResponse>> AsyncListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationsResponse>>(AsyncListOrganizationsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationsResponse>> PrepareAsyncListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationsResponse>>(PrepareAsyncListOrganizationsRaw(context, request, cq)); + } + ::grpc::Status ListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest& request, ::viam::app::v1::ListLocationsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListLocationsResponse>> AsyncListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListLocationsResponse>>(AsyncListLocationsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListLocationsResponse>> PrepareAsyncListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListLocationsResponse>>(PrepareAsyncListLocationsRaw(context, request, cq)); + } + ::grpc::Status LocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest& request, ::viam::app::v1::LocationAuthResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::LocationAuthResponse>> AsyncLocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::LocationAuthResponse>>(AsyncLocationAuthRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::LocationAuthResponse>> PrepareAsyncLocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::LocationAuthResponse>>(PrepareAsyncLocationAuthRaw(context, request, cq)); + } + ::grpc::Status GetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest& request, ::viam::app::v1::GetRobotResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotResponse>> AsyncGetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotResponse>>(AsyncGetRobotRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotResponse>> PrepareAsyncGetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotResponse>>(PrepareAsyncGetRobotRaw(context, request, cq)); + } + ::grpc::Status GetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest& request, ::viam::app::v1::GetRobotPartsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartsResponse>> AsyncGetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartsResponse>>(AsyncGetRobotPartsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartsResponse>> PrepareAsyncGetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartsResponse>>(PrepareAsyncGetRobotPartsRaw(context, request, cq)); + } + ::grpc::Status GetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest& request, ::viam::app::v1::GetRobotPartResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartResponse>> AsyncGetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartResponse>>(AsyncGetRobotPartRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartResponse>> PrepareAsyncGetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartResponse>>(PrepareAsyncGetRobotPartRaw(context, request, cq)); + } + ::grpc::Status GetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest& request, ::viam::app::v1::GetRobotPartLogsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartLogsResponse>> AsyncGetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartLogsResponse>>(AsyncGetRobotPartLogsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartLogsResponse>> PrepareAsyncGetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartLogsResponse>>(PrepareAsyncGetRobotPartLogsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientReader< ::viam::app::v1::TailRobotPartLogsResponse>> TailRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest& request) { + return std::unique_ptr< ::grpc::ClientReader< ::viam::app::v1::TailRobotPartLogsResponse>>(TailRobotPartLogsRaw(context, request)); + } + std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::app::v1::TailRobotPartLogsResponse>> AsyncTailRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::app::v1::TailRobotPartLogsResponse>>(AsyncTailRobotPartLogsRaw(context, request, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::app::v1::TailRobotPartLogsResponse>> PrepareAsyncTailRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::app::v1::TailRobotPartLogsResponse>>(PrepareAsyncTailRobotPartLogsRaw(context, request, cq)); + } + ::grpc::Status GetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest& request, ::viam::app::v1::GetRobotPartHistoryResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartHistoryResponse>> AsyncGetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartHistoryResponse>>(AsyncGetRobotPartHistoryRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartHistoryResponse>> PrepareAsyncGetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartHistoryResponse>>(PrepareAsyncGetRobotPartHistoryRaw(context, request, cq)); + } + ::grpc::Status UpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest& request, ::viam::app::v1::UpdateRobotPartResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotPartResponse>> AsyncUpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotPartResponse>>(AsyncUpdateRobotPartRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotPartResponse>> PrepareAsyncUpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotPartResponse>>(PrepareAsyncUpdateRobotPartRaw(context, request, cq)); + } + ::grpc::Status NewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest& request, ::viam::app::v1::NewRobotPartResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotPartResponse>> AsyncNewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotPartResponse>>(AsyncNewRobotPartRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotPartResponse>> PrepareAsyncNewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotPartResponse>>(PrepareAsyncNewRobotPartRaw(context, request, cq)); + } + ::grpc::Status DeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest& request, ::viam::app::v1::DeleteRobotPartResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotPartResponse>> AsyncDeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotPartResponse>>(AsyncDeleteRobotPartRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotPartResponse>> PrepareAsyncDeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotPartResponse>>(PrepareAsyncDeleteRobotPartRaw(context, request, cq)); + } + ::grpc::Status MarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest& request, ::viam::app::v1::MarkPartAsMainResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::MarkPartAsMainResponse>> AsyncMarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::MarkPartAsMainResponse>>(AsyncMarkPartAsMainRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::MarkPartAsMainResponse>> PrepareAsyncMarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::MarkPartAsMainResponse>>(PrepareAsyncMarkPartAsMainRaw(context, request, cq)); + } + ::grpc::Status FindRobots(::grpc::ClientContext* context, const ::viam::app::v1::FindRobotsRequest& request, ::viam::app::v1::FindRobotsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::FindRobotsResponse>> AsyncFindRobots(::grpc::ClientContext* context, const ::viam::app::v1::FindRobotsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::FindRobotsResponse>>(AsyncFindRobotsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::FindRobotsResponse>> PrepareAsyncFindRobots(::grpc::ClientContext* context, const ::viam::app::v1::FindRobotsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::FindRobotsResponse>>(PrepareAsyncFindRobotsRaw(context, request, cq)); + } + ::grpc::Status NewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest& request, ::viam::app::v1::NewRobotResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotResponse>> AsyncNewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotResponse>>(AsyncNewRobotRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotResponse>> PrepareAsyncNewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotResponse>>(PrepareAsyncNewRobotRaw(context, request, cq)); + } + ::grpc::Status UpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest& request, ::viam::app::v1::UpdateRobotResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotResponse>> AsyncUpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotResponse>>(AsyncUpdateRobotRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotResponse>> PrepareAsyncUpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotResponse>>(PrepareAsyncUpdateRobotRaw(context, request, cq)); + } + ::grpc::Status DeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest& request, ::viam::app::v1::DeleteRobotResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotResponse>> AsyncDeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotResponse>>(AsyncDeleteRobotRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotResponse>> PrepareAsyncDeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotResponse>>(PrepareAsyncDeleteRobotRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void ListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest* request, ::viam::app::v1::ListOrganizationsResponse* response, std::function) override; + void ListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest* request, ::viam::app::v1::ListOrganizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void ListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest* request, ::viam::app::v1::ListLocationsResponse* response, std::function) override; + void ListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest* request, ::viam::app::v1::ListLocationsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void LocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest* request, ::viam::app::v1::LocationAuthResponse* response, std::function) override; + void LocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest* request, ::viam::app::v1::LocationAuthResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest* request, ::viam::app::v1::GetRobotResponse* response, std::function) override; + void GetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest* request, ::viam::app::v1::GetRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest* request, ::viam::app::v1::GetRobotPartsResponse* response, std::function) override; + void GetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest* request, ::viam::app::v1::GetRobotPartsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest* request, ::viam::app::v1::GetRobotPartResponse* response, std::function) override; + void GetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest* request, ::viam::app::v1::GetRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest* request, ::viam::app::v1::GetRobotPartLogsResponse* response, std::function) override; + void GetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest* request, ::viam::app::v1::GetRobotPartLogsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void TailRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest* request, ::grpc::ClientReadReactor< ::viam::app::v1::TailRobotPartLogsResponse>* reactor) override; + void GetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, std::function) override; + void GetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void UpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest* request, ::viam::app::v1::UpdateRobotPartResponse* response, std::function) override; + void UpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest* request, ::viam::app::v1::UpdateRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void NewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest* request, ::viam::app::v1::NewRobotPartResponse* response, std::function) override; + void NewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest* request, ::viam::app::v1::NewRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void DeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest* request, ::viam::app::v1::DeleteRobotPartResponse* response, std::function) override; + void DeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest* request, ::viam::app::v1::DeleteRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void MarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest* request, ::viam::app::v1::MarkPartAsMainResponse* response, std::function) override; + void MarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest* request, ::viam::app::v1::MarkPartAsMainResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void FindRobots(::grpc::ClientContext* context, const ::viam::app::v1::FindRobotsRequest* request, ::viam::app::v1::FindRobotsResponse* response, std::function) override; + void FindRobots(::grpc::ClientContext* context, const ::viam::app::v1::FindRobotsRequest* request, ::viam::app::v1::FindRobotsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void NewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest* request, ::viam::app::v1::NewRobotResponse* response, std::function) override; + void NewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest* request, ::viam::app::v1::NewRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void UpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest* request, ::viam::app::v1::UpdateRobotResponse* response, std::function) override; + void UpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest* request, ::viam::app::v1::UpdateRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void DeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest* request, ::viam::app::v1::DeleteRobotResponse* response, std::function) override; + void DeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest* request, ::viam::app::v1::DeleteRobotResponse* 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::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationsResponse>* AsyncListOrganizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationsResponse>* PrepareAsyncListOrganizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListLocationsResponse>* AsyncListLocationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListLocationsResponse>* PrepareAsyncListLocationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::LocationAuthResponse>* AsyncLocationAuthRaw(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::LocationAuthResponse>* PrepareAsyncLocationAuthRaw(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotResponse>* AsyncGetRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotResponse>* PrepareAsyncGetRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartsResponse>* AsyncGetRobotPartsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartsResponse>* PrepareAsyncGetRobotPartsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartResponse>* AsyncGetRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartResponse>* PrepareAsyncGetRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartLogsResponse>* AsyncGetRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartLogsResponse>* PrepareAsyncGetRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientReader< ::viam::app::v1::TailRobotPartLogsResponse>* TailRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest& request) override; + ::grpc::ClientAsyncReader< ::viam::app::v1::TailRobotPartLogsResponse>* AsyncTailRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReader< ::viam::app::v1::TailRobotPartLogsResponse>* PrepareAsyncTailRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartHistoryResponse>* AsyncGetRobotPartHistoryRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartHistoryResponse>* PrepareAsyncGetRobotPartHistoryRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotPartResponse>* AsyncUpdateRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotPartResponse>* PrepareAsyncUpdateRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotPartResponse>* AsyncNewRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotPartResponse>* PrepareAsyncNewRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotPartResponse>* AsyncDeleteRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotPartResponse>* PrepareAsyncDeleteRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::MarkPartAsMainResponse>* AsyncMarkPartAsMainRaw(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::MarkPartAsMainResponse>* PrepareAsyncMarkPartAsMainRaw(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::FindRobotsResponse>* AsyncFindRobotsRaw(::grpc::ClientContext* context, const ::viam::app::v1::FindRobotsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::FindRobotsResponse>* PrepareAsyncFindRobotsRaw(::grpc::ClientContext* context, const ::viam::app::v1::FindRobotsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotResponse>* AsyncNewRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotResponse>* PrepareAsyncNewRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotResponse>* AsyncUpdateRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotResponse>* PrepareAsyncUpdateRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotResponse>* AsyncDeleteRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotResponse>* PrepareAsyncDeleteRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_ListOrganizations_; + const ::grpc::internal::RpcMethod rpcmethod_ListLocations_; + const ::grpc::internal::RpcMethod rpcmethod_LocationAuth_; + const ::grpc::internal::RpcMethod rpcmethod_GetRobot_; + const ::grpc::internal::RpcMethod rpcmethod_GetRobotParts_; + const ::grpc::internal::RpcMethod rpcmethod_GetRobotPart_; + const ::grpc::internal::RpcMethod rpcmethod_GetRobotPartLogs_; + const ::grpc::internal::RpcMethod rpcmethod_TailRobotPartLogs_; + const ::grpc::internal::RpcMethod rpcmethod_GetRobotPartHistory_; + const ::grpc::internal::RpcMethod rpcmethod_UpdateRobotPart_; + const ::grpc::internal::RpcMethod rpcmethod_NewRobotPart_; + const ::grpc::internal::RpcMethod rpcmethod_DeleteRobotPart_; + const ::grpc::internal::RpcMethod rpcmethod_MarkPartAsMain_; + const ::grpc::internal::RpcMethod rpcmethod_FindRobots_; + const ::grpc::internal::RpcMethod rpcmethod_NewRobot_; + const ::grpc::internal::RpcMethod rpcmethod_UpdateRobot_; + const ::grpc::internal::RpcMethod rpcmethod_DeleteRobot_; + }; + 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(); + virtual ::grpc::Status ListOrganizations(::grpc::ServerContext* context, const ::viam::app::v1::ListOrganizationsRequest* request, ::viam::app::v1::ListOrganizationsResponse* response); + virtual ::grpc::Status ListLocations(::grpc::ServerContext* context, const ::viam::app::v1::ListLocationsRequest* request, ::viam::app::v1::ListLocationsResponse* response); + virtual ::grpc::Status LocationAuth(::grpc::ServerContext* context, const ::viam::app::v1::LocationAuthRequest* request, ::viam::app::v1::LocationAuthResponse* response); + // Get a specific robot by ID + virtual ::grpc::Status GetRobot(::grpc::ServerContext* context, const ::viam::app::v1::GetRobotRequest* request, ::viam::app::v1::GetRobotResponse* response); + virtual ::grpc::Status GetRobotParts(::grpc::ServerContext* context, const ::viam::app::v1::GetRobotPartsRequest* request, ::viam::app::v1::GetRobotPartsResponse* response); + // Get a specific robot part by ID + virtual ::grpc::Status GetRobotPart(::grpc::ServerContext* context, const ::viam::app::v1::GetRobotPartRequest* request, ::viam::app::v1::GetRobotPartResponse* response); + virtual ::grpc::Status GetRobotPartLogs(::grpc::ServerContext* context, const ::viam::app::v1::GetRobotPartLogsRequest* request, ::viam::app::v1::GetRobotPartLogsResponse* response); + virtual ::grpc::Status TailRobotPartLogs(::grpc::ServerContext* context, const ::viam::app::v1::TailRobotPartLogsRequest* request, ::grpc::ServerWriter< ::viam::app::v1::TailRobotPartLogsResponse>* writer); + // Get a specific robot part histy by ID + virtual ::grpc::Status GetRobotPartHistory(::grpc::ServerContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest* request, ::viam::app::v1::GetRobotPartHistoryResponse* response); + // Update a robot + virtual ::grpc::Status UpdateRobotPart(::grpc::ServerContext* context, const ::viam::app::v1::UpdateRobotPartRequest* request, ::viam::app::v1::UpdateRobotPartResponse* response); + // Create a new robot part + virtual ::grpc::Status NewRobotPart(::grpc::ServerContext* context, const ::viam::app::v1::NewRobotPartRequest* request, ::viam::app::v1::NewRobotPartResponse* response); + // Delete a robot part + virtual ::grpc::Status DeleteRobotPart(::grpc::ServerContext* context, const ::viam::app::v1::DeleteRobotPartRequest* request, ::viam::app::v1::DeleteRobotPartResponse* response); + // Marks the given part as the main part, and all the others as not + virtual ::grpc::Status MarkPartAsMain(::grpc::ServerContext* context, const ::viam::app::v1::MarkPartAsMainRequest* request, ::viam::app::v1::MarkPartAsMainResponse* response); + // Finds robots given a query + virtual ::grpc::Status FindRobots(::grpc::ServerContext* context, const ::viam::app::v1::FindRobotsRequest* request, ::viam::app::v1::FindRobotsResponse* response); + // NewRobot creates a new robot + virtual ::grpc::Status NewRobot(::grpc::ServerContext* context, const ::viam::app::v1::NewRobotRequest* request, ::viam::app::v1::NewRobotResponse* response); + // UpdateRobot updates a robot + virtual ::grpc::Status UpdateRobot(::grpc::ServerContext* context, const ::viam::app::v1::UpdateRobotRequest* request, ::viam::app::v1::UpdateRobotResponse* response); + // DeleteRobot deletes a robot + virtual ::grpc::Status DeleteRobot(::grpc::ServerContext* context, const ::viam::app::v1::DeleteRobotRequest* request, ::viam::app::v1::DeleteRobotResponse* response); + }; + template + class WithAsyncMethod_ListOrganizations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ListOrganizations() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_ListOrganizations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListOrganizations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListOrganizationsRequest* /*request*/, ::viam::app::v1::ListOrganizationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListOrganizations(::grpc::ServerContext* context, ::viam::app::v1::ListOrganizationsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::ListOrganizationsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListLocations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ListLocations() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_ListLocations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListLocations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListLocationsRequest* /*request*/, ::viam::app::v1::ListLocationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListLocations(::grpc::ServerContext* context, ::viam::app::v1::ListLocationsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::ListLocationsResponse>* 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 WithAsyncMethod_LocationAuth : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_LocationAuth() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_LocationAuth() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status LocationAuth(::grpc::ServerContext* /*context*/, const ::viam::app::v1::LocationAuthRequest* /*request*/, ::viam::app::v1::LocationAuthResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestLocationAuth(::grpc::ServerContext* context, ::viam::app::v1::LocationAuthRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::LocationAuthResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetRobot() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_GetRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotRequest* /*request*/, ::viam::app::v1::GetRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetRobot(::grpc::ServerContext* context, ::viam::app::v1::GetRobotRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetRobotResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetRobotParts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetRobotParts() { + ::grpc::Service::MarkMethodAsync(4); + } + ~WithAsyncMethod_GetRobotParts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotParts(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartsRequest* /*request*/, ::viam::app::v1::GetRobotPartsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetRobotParts(::grpc::ServerContext* context, ::viam::app::v1::GetRobotPartsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetRobotPartsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetRobotPart() { + ::grpc::Service::MarkMethodAsync(5); + } + ~WithAsyncMethod_GetRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartRequest* /*request*/, ::viam::app::v1::GetRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetRobotPart(::grpc::ServerContext* context, ::viam::app::v1::GetRobotPartRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetRobotPartResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetRobotPartLogs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetRobotPartLogs() { + ::grpc::Service::MarkMethodAsync(6); + } + ~WithAsyncMethod_GetRobotPartLogs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotPartLogs(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartLogsRequest* /*request*/, ::viam::app::v1::GetRobotPartLogsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetRobotPartLogs(::grpc::ServerContext* context, ::viam::app::v1::GetRobotPartLogsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetRobotPartLogsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_TailRobotPartLogs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_TailRobotPartLogs() { + ::grpc::Service::MarkMethodAsync(7); + } + ~WithAsyncMethod_TailRobotPartLogs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TailRobotPartLogs(::grpc::ServerContext* /*context*/, const ::viam::app::v1::TailRobotPartLogsRequest* /*request*/, ::grpc::ServerWriter< ::viam::app::v1::TailRobotPartLogsResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestTailRobotPartLogs(::grpc::ServerContext* context, ::viam::app::v1::TailRobotPartLogsRequest* request, ::grpc::ServerAsyncWriter< ::viam::app::v1::TailRobotPartLogsResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncServerStreaming(7, context, request, writer, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetRobotPartHistory : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetRobotPartHistory() { + ::grpc::Service::MarkMethodAsync(8); + } + ~WithAsyncMethod_GetRobotPartHistory() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotPartHistory(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartHistoryRequest* /*request*/, ::viam::app::v1::GetRobotPartHistoryResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetRobotPartHistory(::grpc::ServerContext* context, ::viam::app::v1::GetRobotPartHistoryRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetRobotPartHistoryResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_UpdateRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_UpdateRobotPart() { + ::grpc::Service::MarkMethodAsync(9); + } + ~WithAsyncMethod_UpdateRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateRobotPartRequest* /*request*/, ::viam::app::v1::UpdateRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateRobotPart(::grpc::ServerContext* context, ::viam::app::v1::UpdateRobotPartRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::UpdateRobotPartResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_NewRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_NewRobotPart() { + ::grpc::Service::MarkMethodAsync(10); + } + ~WithAsyncMethod_NewRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status NewRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::NewRobotPartRequest* /*request*/, ::viam::app::v1::NewRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestNewRobotPart(::grpc::ServerContext* context, ::viam::app::v1::NewRobotPartRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::NewRobotPartResponse>* 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 WithAsyncMethod_DeleteRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_DeleteRobotPart() { + ::grpc::Service::MarkMethodAsync(11); + } + ~WithAsyncMethod_DeleteRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteRobotPartRequest* /*request*/, ::viam::app::v1::DeleteRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteRobotPart(::grpc::ServerContext* context, ::viam::app::v1::DeleteRobotPartRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::DeleteRobotPartResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_MarkPartAsMain : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_MarkPartAsMain() { + ::grpc::Service::MarkMethodAsync(12); + } + ~WithAsyncMethod_MarkPartAsMain() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MarkPartAsMain(::grpc::ServerContext* /*context*/, const ::viam::app::v1::MarkPartAsMainRequest* /*request*/, ::viam::app::v1::MarkPartAsMainResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestMarkPartAsMain(::grpc::ServerContext* context, ::viam::app::v1::MarkPartAsMainRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::MarkPartAsMainResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_FindRobots : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_FindRobots() { + ::grpc::Service::MarkMethodAsync(13); + } + ~WithAsyncMethod_FindRobots() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status FindRobots(::grpc::ServerContext* /*context*/, const ::viam::app::v1::FindRobotsRequest* /*request*/, ::viam::app::v1::FindRobotsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestFindRobots(::grpc::ServerContext* context, ::viam::app::v1::FindRobotsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::FindRobotsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_NewRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_NewRobot() { + ::grpc::Service::MarkMethodAsync(14); + } + ~WithAsyncMethod_NewRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status NewRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::NewRobotRequest* /*request*/, ::viam::app::v1::NewRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestNewRobot(::grpc::ServerContext* context, ::viam::app::v1::NewRobotRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::NewRobotResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_UpdateRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_UpdateRobot() { + ::grpc::Service::MarkMethodAsync(15); + } + ~WithAsyncMethod_UpdateRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateRobotRequest* /*request*/, ::viam::app::v1::UpdateRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateRobot(::grpc::ServerContext* context, ::viam::app::v1::UpdateRobotRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::UpdateRobotResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_DeleteRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_DeleteRobot() { + ::grpc::Service::MarkMethodAsync(16); + } + ~WithAsyncMethod_DeleteRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteRobotRequest* /*request*/, ::viam::app::v1::DeleteRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteRobot(::grpc::ServerContext* context, ::viam::app::v1::DeleteRobotRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::DeleteRobotResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(16, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_ListOrganizations > > > > > > > > > > > > > > > > AsyncService; + template + class WithCallbackMethod_ListOrganizations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_ListOrganizations() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListOrganizationsRequest, ::viam::app::v1::ListOrganizationsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::ListOrganizationsRequest* request, ::viam::app::v1::ListOrganizationsResponse* response) { return this->ListOrganizations(context, request, response); }));} + void SetMessageAllocatorFor_ListOrganizations( + ::grpc::MessageAllocator< ::viam::app::v1::ListOrganizationsRequest, ::viam::app::v1::ListOrganizationsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListOrganizationsRequest, ::viam::app::v1::ListOrganizationsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_ListOrganizations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListOrganizations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListOrganizationsRequest* /*request*/, ::viam::app::v1::ListOrganizationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ListOrganizations( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListOrganizationsRequest* /*request*/, ::viam::app::v1::ListOrganizationsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_ListLocations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_ListLocations() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListLocationsRequest, ::viam::app::v1::ListLocationsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::ListLocationsRequest* request, ::viam::app::v1::ListLocationsResponse* response) { return this->ListLocations(context, request, response); }));} + void SetMessageAllocatorFor_ListLocations( + ::grpc::MessageAllocator< ::viam::app::v1::ListLocationsRequest, ::viam::app::v1::ListLocationsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListLocationsRequest, ::viam::app::v1::ListLocationsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_ListLocations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListLocations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListLocationsRequest* /*request*/, ::viam::app::v1::ListLocationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ListLocations( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListLocationsRequest* /*request*/, ::viam::app::v1::ListLocationsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_LocationAuth : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_LocationAuth() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::LocationAuthRequest, ::viam::app::v1::LocationAuthResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::LocationAuthRequest* request, ::viam::app::v1::LocationAuthResponse* response) { return this->LocationAuth(context, request, response); }));} + void SetMessageAllocatorFor_LocationAuth( + ::grpc::MessageAllocator< ::viam::app::v1::LocationAuthRequest, ::viam::app::v1::LocationAuthResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::LocationAuthRequest, ::viam::app::v1::LocationAuthResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_LocationAuth() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status LocationAuth(::grpc::ServerContext* /*context*/, const ::viam::app::v1::LocationAuthRequest* /*request*/, ::viam::app::v1::LocationAuthResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* LocationAuth( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::LocationAuthRequest* /*request*/, ::viam::app::v1::LocationAuthResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetRobot() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotRequest, ::viam::app::v1::GetRobotResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetRobotRequest* request, ::viam::app::v1::GetRobotResponse* response) { return this->GetRobot(context, request, response); }));} + void SetMessageAllocatorFor_GetRobot( + ::grpc::MessageAllocator< ::viam::app::v1::GetRobotRequest, ::viam::app::v1::GetRobotResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotRequest, ::viam::app::v1::GetRobotResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotRequest* /*request*/, ::viam::app::v1::GetRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetRobot( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotRequest* /*request*/, ::viam::app::v1::GetRobotResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetRobotParts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetRobotParts() { + ::grpc::Service::MarkMethodCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartsRequest, ::viam::app::v1::GetRobotPartsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetRobotPartsRequest* request, ::viam::app::v1::GetRobotPartsResponse* response) { return this->GetRobotParts(context, request, response); }));} + void SetMessageAllocatorFor_GetRobotParts( + ::grpc::MessageAllocator< ::viam::app::v1::GetRobotPartsRequest, ::viam::app::v1::GetRobotPartsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartsRequest, ::viam::app::v1::GetRobotPartsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetRobotParts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotParts(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartsRequest* /*request*/, ::viam::app::v1::GetRobotPartsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetRobotParts( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotPartsRequest* /*request*/, ::viam::app::v1::GetRobotPartsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetRobotPart() { + ::grpc::Service::MarkMethodCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartRequest, ::viam::app::v1::GetRobotPartResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetRobotPartRequest* request, ::viam::app::v1::GetRobotPartResponse* response) { return this->GetRobotPart(context, request, response); }));} + void SetMessageAllocatorFor_GetRobotPart( + ::grpc::MessageAllocator< ::viam::app::v1::GetRobotPartRequest, ::viam::app::v1::GetRobotPartResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartRequest, ::viam::app::v1::GetRobotPartResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartRequest* /*request*/, ::viam::app::v1::GetRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetRobotPart( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotPartRequest* /*request*/, ::viam::app::v1::GetRobotPartResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetRobotPartLogs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetRobotPartLogs() { + ::grpc::Service::MarkMethodCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartLogsRequest, ::viam::app::v1::GetRobotPartLogsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetRobotPartLogsRequest* request, ::viam::app::v1::GetRobotPartLogsResponse* response) { return this->GetRobotPartLogs(context, request, response); }));} + void SetMessageAllocatorFor_GetRobotPartLogs( + ::grpc::MessageAllocator< ::viam::app::v1::GetRobotPartLogsRequest, ::viam::app::v1::GetRobotPartLogsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartLogsRequest, ::viam::app::v1::GetRobotPartLogsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetRobotPartLogs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotPartLogs(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartLogsRequest* /*request*/, ::viam::app::v1::GetRobotPartLogsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetRobotPartLogs( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotPartLogsRequest* /*request*/, ::viam::app::v1::GetRobotPartLogsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_TailRobotPartLogs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_TailRobotPartLogs() { + ::grpc::Service::MarkMethodCallback(7, + new ::grpc::internal::CallbackServerStreamingHandler< ::viam::app::v1::TailRobotPartLogsRequest, ::viam::app::v1::TailRobotPartLogsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::TailRobotPartLogsRequest* request) { return this->TailRobotPartLogs(context, request); })); + } + ~WithCallbackMethod_TailRobotPartLogs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TailRobotPartLogs(::grpc::ServerContext* /*context*/, const ::viam::app::v1::TailRobotPartLogsRequest* /*request*/, ::grpc::ServerWriter< ::viam::app::v1::TailRobotPartLogsResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerWriteReactor< ::viam::app::v1::TailRobotPartLogsResponse>* TailRobotPartLogs( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::TailRobotPartLogsRequest* /*request*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetRobotPartHistory : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetRobotPartHistory() { + ::grpc::Service::MarkMethodCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartHistoryRequest, ::viam::app::v1::GetRobotPartHistoryResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest* request, ::viam::app::v1::GetRobotPartHistoryResponse* response) { return this->GetRobotPartHistory(context, request, response); }));} + void SetMessageAllocatorFor_GetRobotPartHistory( + ::grpc::MessageAllocator< ::viam::app::v1::GetRobotPartHistoryRequest, ::viam::app::v1::GetRobotPartHistoryResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartHistoryRequest, ::viam::app::v1::GetRobotPartHistoryResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetRobotPartHistory() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotPartHistory(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartHistoryRequest* /*request*/, ::viam::app::v1::GetRobotPartHistoryResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetRobotPartHistory( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotPartHistoryRequest* /*request*/, ::viam::app::v1::GetRobotPartHistoryResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_UpdateRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_UpdateRobotPart() { + ::grpc::Service::MarkMethodCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateRobotPartRequest, ::viam::app::v1::UpdateRobotPartResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::UpdateRobotPartRequest* request, ::viam::app::v1::UpdateRobotPartResponse* response) { return this->UpdateRobotPart(context, request, response); }));} + void SetMessageAllocatorFor_UpdateRobotPart( + ::grpc::MessageAllocator< ::viam::app::v1::UpdateRobotPartRequest, ::viam::app::v1::UpdateRobotPartResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateRobotPartRequest, ::viam::app::v1::UpdateRobotPartResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_UpdateRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateRobotPartRequest* /*request*/, ::viam::app::v1::UpdateRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* UpdateRobotPart( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateRobotPartRequest* /*request*/, ::viam::app::v1::UpdateRobotPartResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_NewRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_NewRobotPart() { + ::grpc::Service::MarkMethodCallback(10, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::NewRobotPartRequest, ::viam::app::v1::NewRobotPartResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::NewRobotPartRequest* request, ::viam::app::v1::NewRobotPartResponse* response) { return this->NewRobotPart(context, request, response); }));} + void SetMessageAllocatorFor_NewRobotPart( + ::grpc::MessageAllocator< ::viam::app::v1::NewRobotPartRequest, ::viam::app::v1::NewRobotPartResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::NewRobotPartRequest, ::viam::app::v1::NewRobotPartResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_NewRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status NewRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::NewRobotPartRequest* /*request*/, ::viam::app::v1::NewRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* NewRobotPart( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::NewRobotPartRequest* /*request*/, ::viam::app::v1::NewRobotPartResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_DeleteRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_DeleteRobotPart() { + ::grpc::Service::MarkMethodCallback(11, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteRobotPartRequest, ::viam::app::v1::DeleteRobotPartResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::DeleteRobotPartRequest* request, ::viam::app::v1::DeleteRobotPartResponse* response) { return this->DeleteRobotPart(context, request, response); }));} + void SetMessageAllocatorFor_DeleteRobotPart( + ::grpc::MessageAllocator< ::viam::app::v1::DeleteRobotPartRequest, ::viam::app::v1::DeleteRobotPartResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(11); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteRobotPartRequest, ::viam::app::v1::DeleteRobotPartResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_DeleteRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteRobotPartRequest* /*request*/, ::viam::app::v1::DeleteRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DeleteRobotPart( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteRobotPartRequest* /*request*/, ::viam::app::v1::DeleteRobotPartResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_MarkPartAsMain : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_MarkPartAsMain() { + ::grpc::Service::MarkMethodCallback(12, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::MarkPartAsMainRequest, ::viam::app::v1::MarkPartAsMainResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::MarkPartAsMainRequest* request, ::viam::app::v1::MarkPartAsMainResponse* response) { return this->MarkPartAsMain(context, request, response); }));} + void SetMessageAllocatorFor_MarkPartAsMain( + ::grpc::MessageAllocator< ::viam::app::v1::MarkPartAsMainRequest, ::viam::app::v1::MarkPartAsMainResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(12); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::MarkPartAsMainRequest, ::viam::app::v1::MarkPartAsMainResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_MarkPartAsMain() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MarkPartAsMain(::grpc::ServerContext* /*context*/, const ::viam::app::v1::MarkPartAsMainRequest* /*request*/, ::viam::app::v1::MarkPartAsMainResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* MarkPartAsMain( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::MarkPartAsMainRequest* /*request*/, ::viam::app::v1::MarkPartAsMainResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_FindRobots : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_FindRobots() { + ::grpc::Service::MarkMethodCallback(13, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::FindRobotsRequest, ::viam::app::v1::FindRobotsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::FindRobotsRequest* request, ::viam::app::v1::FindRobotsResponse* response) { return this->FindRobots(context, request, response); }));} + void SetMessageAllocatorFor_FindRobots( + ::grpc::MessageAllocator< ::viam::app::v1::FindRobotsRequest, ::viam::app::v1::FindRobotsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(13); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::FindRobotsRequest, ::viam::app::v1::FindRobotsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_FindRobots() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status FindRobots(::grpc::ServerContext* /*context*/, const ::viam::app::v1::FindRobotsRequest* /*request*/, ::viam::app::v1::FindRobotsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* FindRobots( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::FindRobotsRequest* /*request*/, ::viam::app::v1::FindRobotsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_NewRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_NewRobot() { + ::grpc::Service::MarkMethodCallback(14, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::NewRobotRequest, ::viam::app::v1::NewRobotResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::NewRobotRequest* request, ::viam::app::v1::NewRobotResponse* response) { return this->NewRobot(context, request, response); }));} + void SetMessageAllocatorFor_NewRobot( + ::grpc::MessageAllocator< ::viam::app::v1::NewRobotRequest, ::viam::app::v1::NewRobotResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(14); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::NewRobotRequest, ::viam::app::v1::NewRobotResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_NewRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status NewRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::NewRobotRequest* /*request*/, ::viam::app::v1::NewRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* NewRobot( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::NewRobotRequest* /*request*/, ::viam::app::v1::NewRobotResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_UpdateRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_UpdateRobot() { + ::grpc::Service::MarkMethodCallback(15, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateRobotRequest, ::viam::app::v1::UpdateRobotResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::UpdateRobotRequest* request, ::viam::app::v1::UpdateRobotResponse* response) { return this->UpdateRobot(context, request, response); }));} + void SetMessageAllocatorFor_UpdateRobot( + ::grpc::MessageAllocator< ::viam::app::v1::UpdateRobotRequest, ::viam::app::v1::UpdateRobotResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(15); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateRobotRequest, ::viam::app::v1::UpdateRobotResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_UpdateRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateRobotRequest* /*request*/, ::viam::app::v1::UpdateRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* UpdateRobot( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateRobotRequest* /*request*/, ::viam::app::v1::UpdateRobotResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_DeleteRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_DeleteRobot() { + ::grpc::Service::MarkMethodCallback(16, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteRobotRequest, ::viam::app::v1::DeleteRobotResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::DeleteRobotRequest* request, ::viam::app::v1::DeleteRobotResponse* response) { return this->DeleteRobot(context, request, response); }));} + void SetMessageAllocatorFor_DeleteRobot( + ::grpc::MessageAllocator< ::viam::app::v1::DeleteRobotRequest, ::viam::app::v1::DeleteRobotResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(16); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteRobotRequest, ::viam::app::v1::DeleteRobotResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_DeleteRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteRobotRequest* /*request*/, ::viam::app::v1::DeleteRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DeleteRobot( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteRobotRequest* /*request*/, ::viam::app::v1::DeleteRobotResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_ListOrganizations > > > > > > > > > > > > > > > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_ListOrganizations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ListOrganizations() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_ListOrganizations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListOrganizations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListOrganizationsRequest* /*request*/, ::viam::app::v1::ListOrganizationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListLocations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ListLocations() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_ListLocations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListLocations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListLocationsRequest* /*request*/, ::viam::app::v1::ListLocationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_LocationAuth : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_LocationAuth() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_LocationAuth() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status LocationAuth(::grpc::ServerContext* /*context*/, const ::viam::app::v1::LocationAuthRequest* /*request*/, ::viam::app::v1::LocationAuthResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetRobot() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_GetRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotRequest* /*request*/, ::viam::app::v1::GetRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetRobotParts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetRobotParts() { + ::grpc::Service::MarkMethodGeneric(4); + } + ~WithGenericMethod_GetRobotParts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotParts(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartsRequest* /*request*/, ::viam::app::v1::GetRobotPartsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetRobotPart() { + ::grpc::Service::MarkMethodGeneric(5); + } + ~WithGenericMethod_GetRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartRequest* /*request*/, ::viam::app::v1::GetRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetRobotPartLogs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetRobotPartLogs() { + ::grpc::Service::MarkMethodGeneric(6); + } + ~WithGenericMethod_GetRobotPartLogs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotPartLogs(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartLogsRequest* /*request*/, ::viam::app::v1::GetRobotPartLogsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_TailRobotPartLogs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_TailRobotPartLogs() { + ::grpc::Service::MarkMethodGeneric(7); + } + ~WithGenericMethod_TailRobotPartLogs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TailRobotPartLogs(::grpc::ServerContext* /*context*/, const ::viam::app::v1::TailRobotPartLogsRequest* /*request*/, ::grpc::ServerWriter< ::viam::app::v1::TailRobotPartLogsResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetRobotPartHistory : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetRobotPartHistory() { + ::grpc::Service::MarkMethodGeneric(8); + } + ~WithGenericMethod_GetRobotPartHistory() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotPartHistory(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartHistoryRequest* /*request*/, ::viam::app::v1::GetRobotPartHistoryResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_UpdateRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_UpdateRobotPart() { + ::grpc::Service::MarkMethodGeneric(9); + } + ~WithGenericMethod_UpdateRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateRobotPartRequest* /*request*/, ::viam::app::v1::UpdateRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_NewRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_NewRobotPart() { + ::grpc::Service::MarkMethodGeneric(10); + } + ~WithGenericMethod_NewRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status NewRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::NewRobotPartRequest* /*request*/, ::viam::app::v1::NewRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DeleteRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_DeleteRobotPart() { + ::grpc::Service::MarkMethodGeneric(11); + } + ~WithGenericMethod_DeleteRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteRobotPartRequest* /*request*/, ::viam::app::v1::DeleteRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_MarkPartAsMain : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_MarkPartAsMain() { + ::grpc::Service::MarkMethodGeneric(12); + } + ~WithGenericMethod_MarkPartAsMain() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MarkPartAsMain(::grpc::ServerContext* /*context*/, const ::viam::app::v1::MarkPartAsMainRequest* /*request*/, ::viam::app::v1::MarkPartAsMainResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_FindRobots : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_FindRobots() { + ::grpc::Service::MarkMethodGeneric(13); + } + ~WithGenericMethod_FindRobots() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status FindRobots(::grpc::ServerContext* /*context*/, const ::viam::app::v1::FindRobotsRequest* /*request*/, ::viam::app::v1::FindRobotsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_NewRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_NewRobot() { + ::grpc::Service::MarkMethodGeneric(14); + } + ~WithGenericMethod_NewRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status NewRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::NewRobotRequest* /*request*/, ::viam::app::v1::NewRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_UpdateRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_UpdateRobot() { + ::grpc::Service::MarkMethodGeneric(15); + } + ~WithGenericMethod_UpdateRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateRobotRequest* /*request*/, ::viam::app::v1::UpdateRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DeleteRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_DeleteRobot() { + ::grpc::Service::MarkMethodGeneric(16); + } + ~WithGenericMethod_DeleteRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteRobotRequest* /*request*/, ::viam::app::v1::DeleteRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_ListOrganizations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ListOrganizations() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_ListOrganizations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListOrganizations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListOrganizationsRequest* /*request*/, ::viam::app::v1::ListOrganizationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListOrganizations(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListLocations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ListLocations() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_ListLocations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListLocations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListLocationsRequest* /*request*/, ::viam::app::v1::ListLocationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListLocations(::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 WithRawMethod_LocationAuth : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_LocationAuth() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_LocationAuth() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status LocationAuth(::grpc::ServerContext* /*context*/, const ::viam::app::v1::LocationAuthRequest* /*request*/, ::viam::app::v1::LocationAuthResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestLocationAuth(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetRobot() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_GetRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotRequest* /*request*/, ::viam::app::v1::GetRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetRobot(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetRobotParts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetRobotParts() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_GetRobotParts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotParts(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartsRequest* /*request*/, ::viam::app::v1::GetRobotPartsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetRobotParts(::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(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetRobotPart() { + ::grpc::Service::MarkMethodRaw(5); + } + ~WithRawMethod_GetRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartRequest* /*request*/, ::viam::app::v1::GetRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetRobotPart(::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(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetRobotPartLogs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetRobotPartLogs() { + ::grpc::Service::MarkMethodRaw(6); + } + ~WithRawMethod_GetRobotPartLogs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotPartLogs(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartLogsRequest* /*request*/, ::viam::app::v1::GetRobotPartLogsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetRobotPartLogs(::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(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_TailRobotPartLogs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_TailRobotPartLogs() { + ::grpc::Service::MarkMethodRaw(7); + } + ~WithRawMethod_TailRobotPartLogs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TailRobotPartLogs(::grpc::ServerContext* /*context*/, const ::viam::app::v1::TailRobotPartLogsRequest* /*request*/, ::grpc::ServerWriter< ::viam::app::v1::TailRobotPartLogsResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestTailRobotPartLogs(::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(7, context, request, writer, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetRobotPartHistory : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetRobotPartHistory() { + ::grpc::Service::MarkMethodRaw(8); + } + ~WithRawMethod_GetRobotPartHistory() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotPartHistory(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartHistoryRequest* /*request*/, ::viam::app::v1::GetRobotPartHistoryResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetRobotPartHistory(::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(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_UpdateRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_UpdateRobotPart() { + ::grpc::Service::MarkMethodRaw(9); + } + ~WithRawMethod_UpdateRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateRobotPartRequest* /*request*/, ::viam::app::v1::UpdateRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateRobotPart(::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(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_NewRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_NewRobotPart() { + ::grpc::Service::MarkMethodRaw(10); + } + ~WithRawMethod_NewRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status NewRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::NewRobotPartRequest* /*request*/, ::viam::app::v1::NewRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestNewRobotPart(::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 WithRawMethod_DeleteRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_DeleteRobotPart() { + ::grpc::Service::MarkMethodRaw(11); + } + ~WithRawMethod_DeleteRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteRobotPartRequest* /*request*/, ::viam::app::v1::DeleteRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteRobotPart(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_MarkPartAsMain : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_MarkPartAsMain() { + ::grpc::Service::MarkMethodRaw(12); + } + ~WithRawMethod_MarkPartAsMain() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MarkPartAsMain(::grpc::ServerContext* /*context*/, const ::viam::app::v1::MarkPartAsMainRequest* /*request*/, ::viam::app::v1::MarkPartAsMainResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestMarkPartAsMain(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_FindRobots : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_FindRobots() { + ::grpc::Service::MarkMethodRaw(13); + } + ~WithRawMethod_FindRobots() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status FindRobots(::grpc::ServerContext* /*context*/, const ::viam::app::v1::FindRobotsRequest* /*request*/, ::viam::app::v1::FindRobotsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestFindRobots(::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(13, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_NewRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_NewRobot() { + ::grpc::Service::MarkMethodRaw(14); + } + ~WithRawMethod_NewRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status NewRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::NewRobotRequest* /*request*/, ::viam::app::v1::NewRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestNewRobot(::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(14, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_UpdateRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_UpdateRobot() { + ::grpc::Service::MarkMethodRaw(15); + } + ~WithRawMethod_UpdateRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateRobotRequest* /*request*/, ::viam::app::v1::UpdateRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateRobot(::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(15, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DeleteRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_DeleteRobot() { + ::grpc::Service::MarkMethodRaw(16); + } + ~WithRawMethod_DeleteRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteRobotRequest* /*request*/, ::viam::app::v1::DeleteRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteRobot(::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(16, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_ListOrganizations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_ListOrganizations() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListOrganizations(context, request, response); })); + } + ~WithRawCallbackMethod_ListOrganizations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListOrganizations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListOrganizationsRequest* /*request*/, ::viam::app::v1::ListOrganizationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ListOrganizations( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_ListLocations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_ListLocations() { + ::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->ListLocations(context, request, response); })); + } + ~WithRawCallbackMethod_ListLocations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListLocations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListLocationsRequest* /*request*/, ::viam::app::v1::ListLocationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ListLocations( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_LocationAuth : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_LocationAuth() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->LocationAuth(context, request, response); })); + } + ~WithRawCallbackMethod_LocationAuth() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status LocationAuth(::grpc::ServerContext* /*context*/, const ::viam::app::v1::LocationAuthRequest* /*request*/, ::viam::app::v1::LocationAuthResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* LocationAuth( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetRobot() { + ::grpc::Service::MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRobot(context, request, response); })); + } + ~WithRawCallbackMethod_GetRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotRequest* /*request*/, ::viam::app::v1::GetRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetRobot( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetRobotParts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetRobotParts() { + ::grpc::Service::MarkMethodRawCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRobotParts(context, request, response); })); + } + ~WithRawCallbackMethod_GetRobotParts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotParts(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartsRequest* /*request*/, ::viam::app::v1::GetRobotPartsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetRobotParts( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetRobotPart() { + ::grpc::Service::MarkMethodRawCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRobotPart(context, request, response); })); + } + ~WithRawCallbackMethod_GetRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartRequest* /*request*/, ::viam::app::v1::GetRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetRobotPart( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetRobotPartLogs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetRobotPartLogs() { + ::grpc::Service::MarkMethodRawCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRobotPartLogs(context, request, response); })); + } + ~WithRawCallbackMethod_GetRobotPartLogs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotPartLogs(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartLogsRequest* /*request*/, ::viam::app::v1::GetRobotPartLogsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetRobotPartLogs( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_TailRobotPartLogs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_TailRobotPartLogs() { + ::grpc::Service::MarkMethodRawCallback(7, + new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->TailRobotPartLogs(context, request); })); + } + ~WithRawCallbackMethod_TailRobotPartLogs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TailRobotPartLogs(::grpc::ServerContext* /*context*/, const ::viam::app::v1::TailRobotPartLogsRequest* /*request*/, ::grpc::ServerWriter< ::viam::app::v1::TailRobotPartLogsResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* TailRobotPartLogs( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetRobotPartHistory : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetRobotPartHistory() { + ::grpc::Service::MarkMethodRawCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRobotPartHistory(context, request, response); })); + } + ~WithRawCallbackMethod_GetRobotPartHistory() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotPartHistory(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartHistoryRequest* /*request*/, ::viam::app::v1::GetRobotPartHistoryResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetRobotPartHistory( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_UpdateRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_UpdateRobotPart() { + ::grpc::Service::MarkMethodRawCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateRobotPart(context, request, response); })); + } + ~WithRawCallbackMethod_UpdateRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateRobotPartRequest* /*request*/, ::viam::app::v1::UpdateRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* UpdateRobotPart( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_NewRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_NewRobotPart() { + ::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->NewRobotPart(context, request, response); })); + } + ~WithRawCallbackMethod_NewRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status NewRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::NewRobotPartRequest* /*request*/, ::viam::app::v1::NewRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* NewRobotPart( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_DeleteRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_DeleteRobotPart() { + ::grpc::Service::MarkMethodRawCallback(11, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteRobotPart(context, request, response); })); + } + ~WithRawCallbackMethod_DeleteRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteRobotPartRequest* /*request*/, ::viam::app::v1::DeleteRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DeleteRobotPart( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_MarkPartAsMain : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_MarkPartAsMain() { + ::grpc::Service::MarkMethodRawCallback(12, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MarkPartAsMain(context, request, response); })); + } + ~WithRawCallbackMethod_MarkPartAsMain() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MarkPartAsMain(::grpc::ServerContext* /*context*/, const ::viam::app::v1::MarkPartAsMainRequest* /*request*/, ::viam::app::v1::MarkPartAsMainResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* MarkPartAsMain( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_FindRobots : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_FindRobots() { + ::grpc::Service::MarkMethodRawCallback(13, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->FindRobots(context, request, response); })); + } + ~WithRawCallbackMethod_FindRobots() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status FindRobots(::grpc::ServerContext* /*context*/, const ::viam::app::v1::FindRobotsRequest* /*request*/, ::viam::app::v1::FindRobotsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* FindRobots( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_NewRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_NewRobot() { + ::grpc::Service::MarkMethodRawCallback(14, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->NewRobot(context, request, response); })); + } + ~WithRawCallbackMethod_NewRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status NewRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::NewRobotRequest* /*request*/, ::viam::app::v1::NewRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* NewRobot( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_UpdateRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_UpdateRobot() { + ::grpc::Service::MarkMethodRawCallback(15, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateRobot(context, request, response); })); + } + ~WithRawCallbackMethod_UpdateRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateRobotRequest* /*request*/, ::viam::app::v1::UpdateRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* UpdateRobot( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_DeleteRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_DeleteRobot() { + ::grpc::Service::MarkMethodRawCallback(16, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteRobot(context, request, response); })); + } + ~WithRawCallbackMethod_DeleteRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteRobotRequest* /*request*/, ::viam::app::v1::DeleteRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DeleteRobot( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_ListOrganizations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ListOrganizations() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::ListOrganizationsRequest, ::viam::app::v1::ListOrganizationsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::ListOrganizationsRequest, ::viam::app::v1::ListOrganizationsResponse>* streamer) { + return this->StreamedListOrganizations(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ListOrganizations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListOrganizations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListOrganizationsRequest* /*request*/, ::viam::app::v1::ListOrganizationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListOrganizations(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::ListOrganizationsRequest,::viam::app::v1::ListOrganizationsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListLocations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ListLocations() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::ListLocationsRequest, ::viam::app::v1::ListLocationsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::ListLocationsRequest, ::viam::app::v1::ListLocationsResponse>* streamer) { + return this->StreamedListLocations(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ListLocations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListLocations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListLocationsRequest* /*request*/, ::viam::app::v1::ListLocationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListLocations(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::ListLocationsRequest,::viam::app::v1::ListLocationsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_LocationAuth : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_LocationAuth() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::LocationAuthRequest, ::viam::app::v1::LocationAuthResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::LocationAuthRequest, ::viam::app::v1::LocationAuthResponse>* streamer) { + return this->StreamedLocationAuth(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_LocationAuth() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status LocationAuth(::grpc::ServerContext* /*context*/, const ::viam::app::v1::LocationAuthRequest* /*request*/, ::viam::app::v1::LocationAuthResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedLocationAuth(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::LocationAuthRequest,::viam::app::v1::LocationAuthResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetRobot() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::GetRobotRequest, ::viam::app::v1::GetRobotResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::GetRobotRequest, ::viam::app::v1::GetRobotResponse>* streamer) { + return this->StreamedGetRobot(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotRequest* /*request*/, ::viam::app::v1::GetRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetRobot(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::GetRobotRequest,::viam::app::v1::GetRobotResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetRobotParts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetRobotParts() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::GetRobotPartsRequest, ::viam::app::v1::GetRobotPartsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::GetRobotPartsRequest, ::viam::app::v1::GetRobotPartsResponse>* streamer) { + return this->StreamedGetRobotParts(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetRobotParts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetRobotParts(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartsRequest* /*request*/, ::viam::app::v1::GetRobotPartsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetRobotParts(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::GetRobotPartsRequest,::viam::app::v1::GetRobotPartsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetRobotPart() { + ::grpc::Service::MarkMethodStreamed(5, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::GetRobotPartRequest, ::viam::app::v1::GetRobotPartResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::GetRobotPartRequest, ::viam::app::v1::GetRobotPartResponse>* streamer) { + return this->StreamedGetRobotPart(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartRequest* /*request*/, ::viam::app::v1::GetRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetRobotPart(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::GetRobotPartRequest,::viam::app::v1::GetRobotPartResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetRobotPartLogs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetRobotPartLogs() { + ::grpc::Service::MarkMethodStreamed(6, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::GetRobotPartLogsRequest, ::viam::app::v1::GetRobotPartLogsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::GetRobotPartLogsRequest, ::viam::app::v1::GetRobotPartLogsResponse>* streamer) { + return this->StreamedGetRobotPartLogs(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetRobotPartLogs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetRobotPartLogs(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartLogsRequest* /*request*/, ::viam::app::v1::GetRobotPartLogsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetRobotPartLogs(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::GetRobotPartLogsRequest,::viam::app::v1::GetRobotPartLogsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetRobotPartHistory : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetRobotPartHistory() { + ::grpc::Service::MarkMethodStreamed(8, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::GetRobotPartHistoryRequest, ::viam::app::v1::GetRobotPartHistoryResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::GetRobotPartHistoryRequest, ::viam::app::v1::GetRobotPartHistoryResponse>* streamer) { + return this->StreamedGetRobotPartHistory(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetRobotPartHistory() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetRobotPartHistory(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartHistoryRequest* /*request*/, ::viam::app::v1::GetRobotPartHistoryResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetRobotPartHistory(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::GetRobotPartHistoryRequest,::viam::app::v1::GetRobotPartHistoryResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_UpdateRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_UpdateRobotPart() { + ::grpc::Service::MarkMethodStreamed(9, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::UpdateRobotPartRequest, ::viam::app::v1::UpdateRobotPartResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::UpdateRobotPartRequest, ::viam::app::v1::UpdateRobotPartResponse>* streamer) { + return this->StreamedUpdateRobotPart(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_UpdateRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status UpdateRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateRobotPartRequest* /*request*/, ::viam::app::v1::UpdateRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedUpdateRobotPart(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::UpdateRobotPartRequest,::viam::app::v1::UpdateRobotPartResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_NewRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_NewRobotPart() { + ::grpc::Service::MarkMethodStreamed(10, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::NewRobotPartRequest, ::viam::app::v1::NewRobotPartResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::NewRobotPartRequest, ::viam::app::v1::NewRobotPartResponse>* streamer) { + return this->StreamedNewRobotPart(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_NewRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status NewRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::NewRobotPartRequest* /*request*/, ::viam::app::v1::NewRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedNewRobotPart(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::NewRobotPartRequest,::viam::app::v1::NewRobotPartResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DeleteRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DeleteRobotPart() { + ::grpc::Service::MarkMethodStreamed(11, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::DeleteRobotPartRequest, ::viam::app::v1::DeleteRobotPartResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::DeleteRobotPartRequest, ::viam::app::v1::DeleteRobotPartResponse>* streamer) { + return this->StreamedDeleteRobotPart(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DeleteRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DeleteRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteRobotPartRequest* /*request*/, ::viam::app::v1::DeleteRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDeleteRobotPart(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::DeleteRobotPartRequest,::viam::app::v1::DeleteRobotPartResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_MarkPartAsMain : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_MarkPartAsMain() { + ::grpc::Service::MarkMethodStreamed(12, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::MarkPartAsMainRequest, ::viam::app::v1::MarkPartAsMainResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::MarkPartAsMainRequest, ::viam::app::v1::MarkPartAsMainResponse>* streamer) { + return this->StreamedMarkPartAsMain(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_MarkPartAsMain() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status MarkPartAsMain(::grpc::ServerContext* /*context*/, const ::viam::app::v1::MarkPartAsMainRequest* /*request*/, ::viam::app::v1::MarkPartAsMainResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedMarkPartAsMain(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::MarkPartAsMainRequest,::viam::app::v1::MarkPartAsMainResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_FindRobots : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_FindRobots() { + ::grpc::Service::MarkMethodStreamed(13, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::FindRobotsRequest, ::viam::app::v1::FindRobotsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::FindRobotsRequest, ::viam::app::v1::FindRobotsResponse>* streamer) { + return this->StreamedFindRobots(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_FindRobots() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status FindRobots(::grpc::ServerContext* /*context*/, const ::viam::app::v1::FindRobotsRequest* /*request*/, ::viam::app::v1::FindRobotsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedFindRobots(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::FindRobotsRequest,::viam::app::v1::FindRobotsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_NewRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_NewRobot() { + ::grpc::Service::MarkMethodStreamed(14, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::NewRobotRequest, ::viam::app::v1::NewRobotResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::NewRobotRequest, ::viam::app::v1::NewRobotResponse>* streamer) { + return this->StreamedNewRobot(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_NewRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status NewRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::NewRobotRequest* /*request*/, ::viam::app::v1::NewRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedNewRobot(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::NewRobotRequest,::viam::app::v1::NewRobotResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_UpdateRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_UpdateRobot() { + ::grpc::Service::MarkMethodStreamed(15, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::UpdateRobotRequest, ::viam::app::v1::UpdateRobotResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::UpdateRobotRequest, ::viam::app::v1::UpdateRobotResponse>* streamer) { + return this->StreamedUpdateRobot(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_UpdateRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status UpdateRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateRobotRequest* /*request*/, ::viam::app::v1::UpdateRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedUpdateRobot(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::UpdateRobotRequest,::viam::app::v1::UpdateRobotResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DeleteRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DeleteRobot() { + ::grpc::Service::MarkMethodStreamed(16, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::DeleteRobotRequest, ::viam::app::v1::DeleteRobotResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::DeleteRobotRequest, ::viam::app::v1::DeleteRobotResponse>* streamer) { + return this->StreamedDeleteRobot(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DeleteRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DeleteRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteRobotRequest* /*request*/, ::viam::app::v1::DeleteRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDeleteRobot(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::DeleteRobotRequest,::viam::app::v1::DeleteRobotResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_ListOrganizations > > > > > > > > > > > > > > > StreamedUnaryService; + template + class WithSplitStreamingMethod_TailRobotPartLogs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithSplitStreamingMethod_TailRobotPartLogs() { + ::grpc::Service::MarkMethodStreamed(7, + new ::grpc::internal::SplitServerStreamingHandler< + ::viam::app::v1::TailRobotPartLogsRequest, ::viam::app::v1::TailRobotPartLogsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerSplitStreamer< + ::viam::app::v1::TailRobotPartLogsRequest, ::viam::app::v1::TailRobotPartLogsResponse>* streamer) { + return this->StreamedTailRobotPartLogs(context, + streamer); + })); + } + ~WithSplitStreamingMethod_TailRobotPartLogs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status TailRobotPartLogs(::grpc::ServerContext* /*context*/, const ::viam::app::v1::TailRobotPartLogsRequest* /*request*/, ::grpc::ServerWriter< ::viam::app::v1::TailRobotPartLogsResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with split streamed + virtual ::grpc::Status StreamedTailRobotPartLogs(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::viam::app::v1::TailRobotPartLogsRequest,::viam::app::v1::TailRobotPartLogsResponse>* server_split_streamer) = 0; + }; + typedef WithSplitStreamingMethod_TailRobotPartLogs SplitStreamedService; + typedef WithStreamedUnaryMethod_ListOrganizations > > > > > > > > > > > > > > > > StreamedService; +}; + +} // namespace v1 +} // namespace app +} // namespace viam + + +#endif // GRPC_app_2fv1_2fapp_2eproto__INCLUDED diff --git a/src/gen/app/v1/app.pb.cc b/src/gen/app/v1/app.pb.cc new file mode 100644 index 000000000..a2fb421e1 --- /dev/null +++ b/src/gen/app/v1/app.pb.cc @@ -0,0 +1,11176 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: app/v1/app.proto + +#include "app/v1/app.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 app { +namespace v1 { +PROTOBUF_CONSTEXPR Robot::Robot( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.location_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.last_access_)*/nullptr + , /*decltype(_impl_.created_on_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RobotDefaultTypeInternal { + PROTOBUF_CONSTEXPR RobotDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RobotDefaultTypeInternal() {} + union { + Robot _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RobotDefaultTypeInternal _Robot_default_instance_; +PROTOBUF_CONSTEXPR RobotPart::RobotPart( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.secret_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.robot_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.fqdn_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.dns_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.local_fqdn_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.location_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.robot_config_)*/nullptr + , /*decltype(_impl_.last_access_)*/nullptr + , /*decltype(_impl_.user_supplied_info_)*/nullptr + , /*decltype(_impl_.created_on_)*/nullptr + , /*decltype(_impl_.main_part_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RobotPartDefaultTypeInternal { + PROTOBUF_CONSTEXPR RobotPartDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RobotPartDefaultTypeInternal() {} + union { + RobotPart _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RobotPartDefaultTypeInternal _RobotPart_default_instance_; +PROTOBUF_CONSTEXPR RobotPartHistoryEntry::RobotPartHistoryEntry( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.part_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.robot_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.when_)*/nullptr + , /*decltype(_impl_.old_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RobotPartHistoryEntryDefaultTypeInternal { + PROTOBUF_CONSTEXPR RobotPartHistoryEntryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RobotPartHistoryEntryDefaultTypeInternal() {} + union { + RobotPartHistoryEntry _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RobotPartHistoryEntryDefaultTypeInternal _RobotPartHistoryEntry_default_instance_; +PROTOBUF_CONSTEXPR ListOrganizationsRequest::ListOrganizationsRequest( + ::_pbi::ConstantInitialized) {} +struct ListOrganizationsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListOrganizationsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListOrganizationsRequestDefaultTypeInternal() {} + union { + ListOrganizationsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListOrganizationsRequestDefaultTypeInternal _ListOrganizationsRequest_default_instance_; +PROTOBUF_CONSTEXPR Organization::Organization( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.created_on_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct OrganizationDefaultTypeInternal { + PROTOBUF_CONSTEXPR OrganizationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OrganizationDefaultTypeInternal() {} + union { + Organization _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrganizationDefaultTypeInternal _Organization_default_instance_; +PROTOBUF_CONSTEXPR ListOrganizationsResponse::ListOrganizationsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.organizations_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ListOrganizationsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListOrganizationsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListOrganizationsResponseDefaultTypeInternal() {} + union { + ListOrganizationsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListOrganizationsResponseDefaultTypeInternal _ListOrganizationsResponse_default_instance_; +PROTOBUF_CONSTEXPR Location::Location( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.created_on_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct LocationDefaultTypeInternal { + PROTOBUF_CONSTEXPR LocationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LocationDefaultTypeInternal() {} + union { + Location _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocationDefaultTypeInternal _Location_default_instance_; +PROTOBUF_CONSTEXPR ListLocationsRequest::ListLocationsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.organization_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ListLocationsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListLocationsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListLocationsRequestDefaultTypeInternal() {} + union { + ListLocationsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListLocationsRequestDefaultTypeInternal _ListLocationsRequest_default_instance_; +PROTOBUF_CONSTEXPR ListLocationsResponse::ListLocationsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.locations_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ListLocationsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListLocationsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListLocationsResponseDefaultTypeInternal() {} + union { + ListLocationsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListLocationsResponseDefaultTypeInternal _ListLocationsResponse_default_instance_; +PROTOBUF_CONSTEXPR LocationAuth::LocationAuth( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.secret_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct LocationAuthDefaultTypeInternal { + PROTOBUF_CONSTEXPR LocationAuthDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LocationAuthDefaultTypeInternal() {} + union { + LocationAuth _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocationAuthDefaultTypeInternal _LocationAuth_default_instance_; +PROTOBUF_CONSTEXPR LocationAuthRequest::LocationAuthRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.location_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct LocationAuthRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR LocationAuthRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LocationAuthRequestDefaultTypeInternal() {} + union { + LocationAuthRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocationAuthRequestDefaultTypeInternal _LocationAuthRequest_default_instance_; +PROTOBUF_CONSTEXPR LocationAuthResponse::LocationAuthResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.auth_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct LocationAuthResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR LocationAuthResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LocationAuthResponseDefaultTypeInternal() {} + union { + LocationAuthResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocationAuthResponseDefaultTypeInternal _LocationAuthResponse_default_instance_; +PROTOBUF_CONSTEXPR GetRobotRequest::GetRobotRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetRobotRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotRequestDefaultTypeInternal() {} + union { + GetRobotRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotRequestDefaultTypeInternal _GetRobotRequest_default_instance_; +PROTOBUF_CONSTEXPR GetRobotResponse::GetRobotResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.robot_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetRobotResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotResponseDefaultTypeInternal() {} + union { + GetRobotResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotResponseDefaultTypeInternal _GetRobotResponse_default_instance_; +PROTOBUF_CONSTEXPR GetRobotPartsRequest::GetRobotPartsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.robot_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetRobotPartsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotPartsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotPartsRequestDefaultTypeInternal() {} + union { + GetRobotPartsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartsRequestDefaultTypeInternal _GetRobotPartsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetRobotPartsResponse::GetRobotPartsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.parts_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetRobotPartsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotPartsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotPartsResponseDefaultTypeInternal() {} + union { + GetRobotPartsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartsResponseDefaultTypeInternal _GetRobotPartsResponse_default_instance_; +PROTOBUF_CONSTEXPR GetRobotPartRequest::GetRobotPartRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetRobotPartRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotPartRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotPartRequestDefaultTypeInternal() {} + union { + GetRobotPartRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartRequestDefaultTypeInternal _GetRobotPartRequest_default_instance_; +PROTOBUF_CONSTEXPR GetRobotPartResponse::GetRobotPartResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.config_json_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.part_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetRobotPartResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotPartResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotPartResponseDefaultTypeInternal() {} + union { + GetRobotPartResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartResponseDefaultTypeInternal _GetRobotPartResponse_default_instance_; +PROTOBUF_CONSTEXPR GetRobotPartLogsRequest::GetRobotPartLogsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.errors_only_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetRobotPartLogsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotPartLogsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotPartLogsRequestDefaultTypeInternal() {} + union { + GetRobotPartLogsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartLogsRequestDefaultTypeInternal _GetRobotPartLogsRequest_default_instance_; +PROTOBUF_CONSTEXPR LogEntry::LogEntry( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.fields_)*/{} + , /*decltype(_impl_.host_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.level_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.logger_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.message_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.stack_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.time_)*/nullptr + , /*decltype(_impl_.caller_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct LogEntryDefaultTypeInternal { + PROTOBUF_CONSTEXPR LogEntryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LogEntryDefaultTypeInternal() {} + union { + LogEntry _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogEntryDefaultTypeInternal _LogEntry_default_instance_; +PROTOBUF_CONSTEXPR GetRobotPartLogsResponse::GetRobotPartLogsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.logs_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetRobotPartLogsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotPartLogsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotPartLogsResponseDefaultTypeInternal() {} + union { + GetRobotPartLogsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartLogsResponseDefaultTypeInternal _GetRobotPartLogsResponse_default_instance_; +PROTOBUF_CONSTEXPR TailRobotPartLogsRequest::TailRobotPartLogsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.errors_only_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct TailRobotPartLogsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR TailRobotPartLogsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TailRobotPartLogsRequestDefaultTypeInternal() {} + union { + TailRobotPartLogsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TailRobotPartLogsRequestDefaultTypeInternal _TailRobotPartLogsRequest_default_instance_; +PROTOBUF_CONSTEXPR TailRobotPartLogsResponse::TailRobotPartLogsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.logs_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct TailRobotPartLogsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR TailRobotPartLogsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TailRobotPartLogsResponseDefaultTypeInternal() {} + union { + TailRobotPartLogsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TailRobotPartLogsResponseDefaultTypeInternal _TailRobotPartLogsResponse_default_instance_; +PROTOBUF_CONSTEXPR GetRobotPartHistoryRequest::GetRobotPartHistoryRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetRobotPartHistoryRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotPartHistoryRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotPartHistoryRequestDefaultTypeInternal() {} + union { + GetRobotPartHistoryRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartHistoryRequestDefaultTypeInternal _GetRobotPartHistoryRequest_default_instance_; +PROTOBUF_CONSTEXPR GetRobotPartHistoryResponse::GetRobotPartHistoryResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.history_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetRobotPartHistoryResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotPartHistoryResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotPartHistoryResponseDefaultTypeInternal() {} + union { + GetRobotPartHistoryResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartHistoryResponseDefaultTypeInternal _GetRobotPartHistoryResponse_default_instance_; +PROTOBUF_CONSTEXPR UpdateRobotPartRequest::UpdateRobotPartRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.robot_config_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct UpdateRobotPartRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateRobotPartRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateRobotPartRequestDefaultTypeInternal() {} + union { + UpdateRobotPartRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateRobotPartRequestDefaultTypeInternal _UpdateRobotPartRequest_default_instance_; +PROTOBUF_CONSTEXPR UpdateRobotPartResponse::UpdateRobotPartResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.part_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct UpdateRobotPartResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateRobotPartResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateRobotPartResponseDefaultTypeInternal() {} + union { + UpdateRobotPartResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateRobotPartResponseDefaultTypeInternal _UpdateRobotPartResponse_default_instance_; +PROTOBUF_CONSTEXPR NewRobotPartRequest::NewRobotPartRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.robot_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.part_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct NewRobotPartRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR NewRobotPartRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~NewRobotPartRequestDefaultTypeInternal() {} + union { + NewRobotPartRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewRobotPartRequestDefaultTypeInternal _NewRobotPartRequest_default_instance_; +PROTOBUF_CONSTEXPR NewRobotPartResponse::NewRobotPartResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.part_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct NewRobotPartResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR NewRobotPartResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~NewRobotPartResponseDefaultTypeInternal() {} + union { + NewRobotPartResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewRobotPartResponseDefaultTypeInternal _NewRobotPartResponse_default_instance_; +PROTOBUF_CONSTEXPR DeleteRobotPartRequest::DeleteRobotPartRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.part_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DeleteRobotPartRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteRobotPartRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteRobotPartRequestDefaultTypeInternal() {} + union { + DeleteRobotPartRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRobotPartRequestDefaultTypeInternal _DeleteRobotPartRequest_default_instance_; +PROTOBUF_CONSTEXPR DeleteRobotPartResponse::DeleteRobotPartResponse( + ::_pbi::ConstantInitialized) {} +struct DeleteRobotPartResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteRobotPartResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteRobotPartResponseDefaultTypeInternal() {} + union { + DeleteRobotPartResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRobotPartResponseDefaultTypeInternal _DeleteRobotPartResponse_default_instance_; +PROTOBUF_CONSTEXPR Fragment::Fragment( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.organization_owner_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.fragment_)*/nullptr + , /*decltype(_impl_.created_on_)*/nullptr + , /*decltype(_impl_.public__)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct FragmentDefaultTypeInternal { + PROTOBUF_CONSTEXPR FragmentDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FragmentDefaultTypeInternal() {} + union { + Fragment _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FragmentDefaultTypeInternal _Fragment_default_instance_; +PROTOBUF_CONSTEXPR FindRobotsRequest::FindRobotsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.location_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct FindRobotsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR FindRobotsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FindRobotsRequestDefaultTypeInternal() {} + union { + FindRobotsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FindRobotsRequestDefaultTypeInternal _FindRobotsRequest_default_instance_; +PROTOBUF_CONSTEXPR FindRobotsResponse::FindRobotsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.robots_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct FindRobotsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR FindRobotsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FindRobotsResponseDefaultTypeInternal() {} + union { + FindRobotsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FindRobotsResponseDefaultTypeInternal _FindRobotsResponse_default_instance_; +PROTOBUF_CONSTEXPR NewRobotRequest::NewRobotRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.location_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct NewRobotRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR NewRobotRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~NewRobotRequestDefaultTypeInternal() {} + union { + NewRobotRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewRobotRequestDefaultTypeInternal _NewRobotRequest_default_instance_; +PROTOBUF_CONSTEXPR NewRobotResponse::NewRobotResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct NewRobotResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR NewRobotResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~NewRobotResponseDefaultTypeInternal() {} + union { + NewRobotResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewRobotResponseDefaultTypeInternal _NewRobotResponse_default_instance_; +PROTOBUF_CONSTEXPR UpdateRobotRequest::UpdateRobotRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.location_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct UpdateRobotRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateRobotRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateRobotRequestDefaultTypeInternal() {} + union { + UpdateRobotRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateRobotRequestDefaultTypeInternal _UpdateRobotRequest_default_instance_; +PROTOBUF_CONSTEXPR UpdateRobotResponse::UpdateRobotResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.robot_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct UpdateRobotResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateRobotResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateRobotResponseDefaultTypeInternal() {} + union { + UpdateRobotResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateRobotResponseDefaultTypeInternal _UpdateRobotResponse_default_instance_; +PROTOBUF_CONSTEXPR DeleteRobotRequest::DeleteRobotRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DeleteRobotRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteRobotRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteRobotRequestDefaultTypeInternal() {} + union { + DeleteRobotRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRobotRequestDefaultTypeInternal _DeleteRobotRequest_default_instance_; +PROTOBUF_CONSTEXPR DeleteRobotResponse::DeleteRobotResponse( + ::_pbi::ConstantInitialized) {} +struct DeleteRobotResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteRobotResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteRobotResponseDefaultTypeInternal() {} + union { + DeleteRobotResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRobotResponseDefaultTypeInternal _DeleteRobotResponse_default_instance_; +PROTOBUF_CONSTEXPR MarkPartAsMainRequest::MarkPartAsMainRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.part_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct MarkPartAsMainRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR MarkPartAsMainRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MarkPartAsMainRequestDefaultTypeInternal() {} + union { + MarkPartAsMainRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MarkPartAsMainRequestDefaultTypeInternal _MarkPartAsMainRequest_default_instance_; +PROTOBUF_CONSTEXPR MarkPartAsMainResponse::MarkPartAsMainResponse( + ::_pbi::ConstantInitialized) {} +struct MarkPartAsMainResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR MarkPartAsMainResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MarkPartAsMainResponseDefaultTypeInternal() {} + union { + MarkPartAsMainResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MarkPartAsMainResponseDefaultTypeInternal _MarkPartAsMainResponse_default_instance_; +} // namespace v1 +} // namespace app +} // namespace viam +static ::_pb::Metadata file_level_metadata_app_2fv1_2fapp_2eproto[42]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_app_2fv1_2fapp_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_app_2fv1_2fapp_2eproto = nullptr; + +const uint32_t TableStruct_app_2fv1_2fapp_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Robot, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Robot, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Robot, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Robot, _impl_.location_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Robot, _impl_.last_access_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Robot, _impl_.created_on_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.dns_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.secret_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.robot_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.location_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.robot_config_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.last_access_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.user_supplied_info_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.main_part_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.fqdn_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.local_fqdn_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.created_on_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPartHistoryEntry, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPartHistoryEntry, _impl_.part_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPartHistoryEntry, _impl_.robot_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPartHistoryEntry, _impl_.when_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPartHistoryEntry, _impl_.old_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Organization, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Organization, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Organization, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Organization, _impl_.created_on_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationsResponse, _impl_.organizations_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, _impl_.created_on_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListLocationsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListLocationsRequest, _impl_.organization_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListLocationsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListLocationsResponse, _impl_.locations_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationAuth, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationAuth, _impl_.secret_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationAuthRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationAuthRequest, _impl_.location_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationAuthResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationAuthResponse, _impl_.auth_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotRequest, _impl_.id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotResponse, _impl_.robot_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartsRequest, _impl_.robot_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartsResponse, _impl_.parts_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartRequest, _impl_.id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartResponse, _impl_.part_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartResponse, _impl_.config_json_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, _impl_.errors_only_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogEntry, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogEntry, _impl_.host_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogEntry, _impl_.level_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogEntry, _impl_.time_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogEntry, _impl_.logger_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogEntry, _impl_.message_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogEntry, _impl_.caller_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogEntry, _impl_.stack_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogEntry, _impl_.fields_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsResponse, _impl_.logs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::TailRobotPartLogsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::TailRobotPartLogsRequest, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::TailRobotPartLogsRequest, _impl_.errors_only_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::TailRobotPartLogsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::TailRobotPartLogsResponse, _impl_.logs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartHistoryRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartHistoryRequest, _impl_.id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartHistoryResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartHistoryResponse, _impl_.history_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotPartRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotPartRequest, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotPartRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotPartRequest, _impl_.robot_config_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotPartResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotPartResponse, _impl_.part_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotPartRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotPartRequest, _impl_.robot_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotPartRequest, _impl_.part_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotPartResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotPartResponse, _impl_.part_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotPartRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotPartRequest, _impl_.part_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotPartResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _impl_.fragment_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _impl_.organization_owner_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _impl_.public__), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _impl_.created_on_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::FindRobotsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::FindRobotsRequest, _impl_.location_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::FindRobotsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::FindRobotsResponse, _impl_.robots_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotRequest, _impl_.location_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotResponse, _impl_.id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotRequest, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotRequest, _impl_.location_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotResponse, _impl_.robot_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotRequest, _impl_.id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MarkPartAsMainRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MarkPartAsMainRequest, _impl_.part_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MarkPartAsMainResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::app::v1::Robot)}, + { 11, -1, -1, sizeof(::viam::app::v1::RobotPart)}, + { 30, -1, -1, sizeof(::viam::app::v1::RobotPartHistoryEntry)}, + { 40, -1, -1, sizeof(::viam::app::v1::ListOrganizationsRequest)}, + { 46, -1, -1, sizeof(::viam::app::v1::Organization)}, + { 55, -1, -1, sizeof(::viam::app::v1::ListOrganizationsResponse)}, + { 62, -1, -1, sizeof(::viam::app::v1::Location)}, + { 71, -1, -1, sizeof(::viam::app::v1::ListLocationsRequest)}, + { 78, -1, -1, sizeof(::viam::app::v1::ListLocationsResponse)}, + { 85, -1, -1, sizeof(::viam::app::v1::LocationAuth)}, + { 92, -1, -1, sizeof(::viam::app::v1::LocationAuthRequest)}, + { 99, -1, -1, sizeof(::viam::app::v1::LocationAuthResponse)}, + { 106, -1, -1, sizeof(::viam::app::v1::GetRobotRequest)}, + { 113, -1, -1, sizeof(::viam::app::v1::GetRobotResponse)}, + { 120, -1, -1, sizeof(::viam::app::v1::GetRobotPartsRequest)}, + { 127, -1, -1, sizeof(::viam::app::v1::GetRobotPartsResponse)}, + { 134, -1, -1, sizeof(::viam::app::v1::GetRobotPartRequest)}, + { 141, -1, -1, sizeof(::viam::app::v1::GetRobotPartResponse)}, + { 149, -1, -1, sizeof(::viam::app::v1::GetRobotPartLogsRequest)}, + { 157, -1, -1, sizeof(::viam::app::v1::LogEntry)}, + { 171, -1, -1, sizeof(::viam::app::v1::GetRobotPartLogsResponse)}, + { 178, -1, -1, sizeof(::viam::app::v1::TailRobotPartLogsRequest)}, + { 186, -1, -1, sizeof(::viam::app::v1::TailRobotPartLogsResponse)}, + { 193, -1, -1, sizeof(::viam::app::v1::GetRobotPartHistoryRequest)}, + { 200, -1, -1, sizeof(::viam::app::v1::GetRobotPartHistoryResponse)}, + { 207, -1, -1, sizeof(::viam::app::v1::UpdateRobotPartRequest)}, + { 216, -1, -1, sizeof(::viam::app::v1::UpdateRobotPartResponse)}, + { 223, -1, -1, sizeof(::viam::app::v1::NewRobotPartRequest)}, + { 231, -1, -1, sizeof(::viam::app::v1::NewRobotPartResponse)}, + { 238, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartRequest)}, + { 245, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartResponse)}, + { 251, -1, -1, sizeof(::viam::app::v1::Fragment)}, + { 263, -1, -1, sizeof(::viam::app::v1::FindRobotsRequest)}, + { 270, -1, -1, sizeof(::viam::app::v1::FindRobotsResponse)}, + { 277, -1, -1, sizeof(::viam::app::v1::NewRobotRequest)}, + { 285, -1, -1, sizeof(::viam::app::v1::NewRobotResponse)}, + { 292, -1, -1, sizeof(::viam::app::v1::UpdateRobotRequest)}, + { 301, -1, -1, sizeof(::viam::app::v1::UpdateRobotResponse)}, + { 308, -1, -1, sizeof(::viam::app::v1::DeleteRobotRequest)}, + { 315, -1, -1, sizeof(::viam::app::v1::DeleteRobotResponse)}, + { 321, -1, -1, sizeof(::viam::app::v1::MarkPartAsMainRequest)}, + { 328, -1, -1, sizeof(::viam::app::v1::MarkPartAsMainResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::app::v1::_Robot_default_instance_._instance, + &::viam::app::v1::_RobotPart_default_instance_._instance, + &::viam::app::v1::_RobotPartHistoryEntry_default_instance_._instance, + &::viam::app::v1::_ListOrganizationsRequest_default_instance_._instance, + &::viam::app::v1::_Organization_default_instance_._instance, + &::viam::app::v1::_ListOrganizationsResponse_default_instance_._instance, + &::viam::app::v1::_Location_default_instance_._instance, + &::viam::app::v1::_ListLocationsRequest_default_instance_._instance, + &::viam::app::v1::_ListLocationsResponse_default_instance_._instance, + &::viam::app::v1::_LocationAuth_default_instance_._instance, + &::viam::app::v1::_LocationAuthRequest_default_instance_._instance, + &::viam::app::v1::_LocationAuthResponse_default_instance_._instance, + &::viam::app::v1::_GetRobotRequest_default_instance_._instance, + &::viam::app::v1::_GetRobotResponse_default_instance_._instance, + &::viam::app::v1::_GetRobotPartsRequest_default_instance_._instance, + &::viam::app::v1::_GetRobotPartsResponse_default_instance_._instance, + &::viam::app::v1::_GetRobotPartRequest_default_instance_._instance, + &::viam::app::v1::_GetRobotPartResponse_default_instance_._instance, + &::viam::app::v1::_GetRobotPartLogsRequest_default_instance_._instance, + &::viam::app::v1::_LogEntry_default_instance_._instance, + &::viam::app::v1::_GetRobotPartLogsResponse_default_instance_._instance, + &::viam::app::v1::_TailRobotPartLogsRequest_default_instance_._instance, + &::viam::app::v1::_TailRobotPartLogsResponse_default_instance_._instance, + &::viam::app::v1::_GetRobotPartHistoryRequest_default_instance_._instance, + &::viam::app::v1::_GetRobotPartHistoryResponse_default_instance_._instance, + &::viam::app::v1::_UpdateRobotPartRequest_default_instance_._instance, + &::viam::app::v1::_UpdateRobotPartResponse_default_instance_._instance, + &::viam::app::v1::_NewRobotPartRequest_default_instance_._instance, + &::viam::app::v1::_NewRobotPartResponse_default_instance_._instance, + &::viam::app::v1::_DeleteRobotPartRequest_default_instance_._instance, + &::viam::app::v1::_DeleteRobotPartResponse_default_instance_._instance, + &::viam::app::v1::_Fragment_default_instance_._instance, + &::viam::app::v1::_FindRobotsRequest_default_instance_._instance, + &::viam::app::v1::_FindRobotsResponse_default_instance_._instance, + &::viam::app::v1::_NewRobotRequest_default_instance_._instance, + &::viam::app::v1::_NewRobotResponse_default_instance_._instance, + &::viam::app::v1::_UpdateRobotRequest_default_instance_._instance, + &::viam::app::v1::_UpdateRobotResponse_default_instance_._instance, + &::viam::app::v1::_DeleteRobotRequest_default_instance_._instance, + &::viam::app::v1::_DeleteRobotResponse_default_instance_._instance, + &::viam::app::v1::_MarkPartAsMainRequest_default_instance_._instance, + &::viam::app::v1::_MarkPartAsMainResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_app_2fv1_2fapp_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\020app/v1/app.proto\022\013viam.app.v1\032\034google/" + "protobuf/struct.proto\032\037google/protobuf/t" + "imestamp.proto\032\026tagger/v1/tagger.proto\"\354" + "\002\n\005Robot\0223\n\002id\030\001 \001(\tB#\232\204\236\003\036bson:\"_id\" js" + "on:\"id,omitempty\"R\002id\0220\n\004name\030\002 \001(\tB\034\232\204\236" + "\003\027bson:\"name\" json:\"name\"R\004name\022@\n\010locat" + "ion\030\003 \001(\tB$\232\204\236\003\037bson:\"location\" json:\"lo" + "cation\"R\010location\022g\n\013last_access\030\004 \001(\0132\032" + ".google.protobuf.TimestampB*\232\204\236\003%bson:\"l" + "ast_access\" json:\"last_access\"R\nlastAcce" + "ss\022Q\n\ncreated_on\030\005 \001(\0132\032.google.protobuf" + ".TimestampB\026\232\204\236\003\021bson:\"created_on\"R\tcrea" + "tedOn\"\211\007\n\tRobotPart\0223\n\002id\030\001 \001(\tB#\232\204\236\003\036bs" + "on:\"_id\" json:\"id,omitempty\"R\002id\0220\n\004name" + "\030\002 \001(\tB\034\232\204\236\003\027bson:\"name\" json:\"name\"R\004na" + "me\022\?\n\010dns_name\030\n \001(\tB$\232\204\236\003\037bson:\"dns_nam" + "e\" json:\"dns_name\"R\007dnsName\022B\n\006secret\030\003 " + "\001(\tB*\232\204\236\003%bson:\"secret\" json:\"secret,omi" + "tempty\"R\006secret\0224\n\005robot\030\004 \001(\tB\036\232\204\236\003\031bso" + "n:\"robot\" json:\"robot\"R\005robot\022A\n\013locatio" + "n_id\030\014 \001(\tB \232\204\236\003\033bson:\"location_id\" json" + ":\"-\"R\nlocationId\022b\n\014robot_config\030\005 \001(\0132\027" + ".google.protobuf.StructB&\232\204\236\003!bson:\"conf" + "ig\" json:\"robot_config\"R\013robotConfig\022g\n\013" + "last_access\030\006 \001(\0132\032.google.protobuf.Time" + "stampB*\232\204\236\003%bson:\"last_access\" json:\"las" + "t_access\"R\nlastAccess\022\177\n\022user_supplied_i" + "nfo\030\007 \001(\0132\027.google.protobuf.StructB8\232\204\236\003" + "3bson:\"user_supplied_info\" json:\"user_su" + "pplied_info\"R\020userSuppliedInfo\022C\n\tmain_p" + "art\030\010 \001(\010B&\232\204\236\003!bson:\"main_part\" json:\"m" + "ain_part\"R\010mainPart\022\022\n\004fqdn\030\t \001(\tR\004fqdn\022" + "\035\n\nlocal_fqdn\030\013 \001(\tR\tlocalFqdn\022Q\n\ncreate" + "d_on\030\r \001(\0132\032.google.protobuf.TimestampB\026" + "\232\204\236\003\021bson:\"created_on\"R\tcreatedOn\"\223\002\n\025Ro" + "botPartHistoryEntry\0220\n\004part\030\001 \001(\tB\034\232\204\236\003\027" + "bson:\"part\" json:\"part\"R\004part\0224\n\005robot\030\002" + " \001(\tB\036\232\204\236\003\031bson:\"robot\" json:\"robot\"R\005ro" + "bot\022L\n\004when\030\003 \001(\0132\032.google.protobuf.Time" + "stampB\034\232\204\236\003\027bson:\"when\" json:\"when\"R\004whe" + "n\022D\n\003old\030\004 \001(\0132\026.viam.app.v1.RobotPartB\032" + "\232\204\236\003\025bson:\"old\" json:\"old\"R\003old\"\032\n\030ListO" + "rganizationsRequest\"m\n\014Organization\022\016\n\002i" + "d\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\0229\n\ncreat" + "ed_on\030\003 \001(\0132\032.google.protobuf.TimestampR" + "\tcreatedOn\"\\\n\031ListOrganizationsResponse\022" + "\?\n\rorganizations\030\001 \003(\0132\031.viam.app.v1.Org" + "anizationR\rorganizations\"i\n\010Location\022\016\n\002" + "id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\0229\n\ncrea" + "ted_on\030\003 \001(\0132\032.google.protobuf.Timestamp" + "R\tcreatedOn\"\?\n\024ListLocationsRequest\022\'\n\017o" + "rganization_id\030\001 \001(\tR\016organizationId\"L\n\025" + "ListLocationsResponse\0223\n\tlocations\030\001 \003(\013" + "2\025.viam.app.v1.LocationR\tlocations\"&\n\014Lo" + "cationAuth\022\026\n\006secret\030\001 \001(\tR\006secret\"6\n\023Lo" + "cationAuthRequest\022\037\n\013location_id\030\001 \001(\tR\n" + "locationId\"E\n\024LocationAuthResponse\022-\n\004au" + "th\030\001 \001(\0132\031.viam.app.v1.LocationAuthR\004aut" + "h\"!\n\017GetRobotRequest\022\016\n\002id\030\001 \001(\tR\002id\"<\n\020" + "GetRobotResponse\022(\n\005robot\030\001 \001(\0132\022.viam.a" + "pp.v1.RobotR\005robot\"1\n\024GetRobotPartsReque" + "st\022\031\n\010robot_id\030\001 \001(\tR\007robotId\"E\n\025GetRobo" + "tPartsResponse\022,\n\005parts\030\001 \003(\0132\026.viam.app" + ".v1.RobotPartR\005parts\"%\n\023GetRobotPartRequ" + "est\022\016\n\002id\030\001 \001(\tR\002id\"c\n\024GetRobotPartRespo" + "nse\022*\n\004part\030\001 \001(\0132\026.viam.app.v1.RobotPar" + "tR\004part\022\037\n\013config_json\030\002 \001(\tR\nconfigJson" + "\"J\n\027GetRobotPartLogsRequest\022\016\n\002id\030\001 \001(\tR" + "\002id\022\037\n\013errors_only\030\002 \001(\010R\nerrorsOnly\"\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.proto" + "buf.TimestampR\004time\022\037\n\013logger_name\030\004 \001(\t" + "R\nloggerName\022\030\n\007message\030\005 \001(\tR\007message\022/" + "\n\006caller\030\006 \001(\0132\027.google.protobuf.StructR" + "\006caller\022\024\n\005stack\030\007 \001(\tR\005stack\022/\n\006fields\030" + "\010 \003(\0132\027.google.protobuf.StructR\006fields\"E" + "\n\030GetRobotPartLogsResponse\022)\n\004logs\030\001 \003(\013" + "2\025.viam.app.v1.LogEntryR\004logs\"K\n\030TailRob" + "otPartLogsRequest\022\016\n\002id\030\001 \001(\tR\002id\022\037\n\013err" + "ors_only\030\002 \001(\010R\nerrorsOnly\"F\n\031TailRobotP" + "artLogsResponse\022)\n\004logs\030\001 \003(\0132\025.viam.app" + ".v1.LogEntryR\004logs\",\n\032GetRobotPartHistor" + "yRequest\022\016\n\002id\030\001 \001(\tR\002id\"[\n\033GetRobotPart" + "HistoryResponse\022<\n\007history\030\001 \003(\0132\".viam." + "app.v1.RobotPartHistoryEntryR\007history\"x\n" + "\026UpdateRobotPartRequest\022\016\n\002id\030\001 \001(\tR\002id\022" + "\022\n\004name\030\002 \001(\tR\004name\022:\n\014robot_config\030\003 \001(" + "\0132\027.google.protobuf.StructR\013robotConfig\"" + "E\n\027UpdateRobotPartResponse\022*\n\004part\030\001 \001(\013" + "2\026.viam.app.v1.RobotPartR\004part\"M\n\023NewRob" + "otPartRequest\022\031\n\010robot_id\030\001 \001(\tR\007robotId" + "\022\033\n\tpart_name\030\002 \001(\tR\010partName\"/\n\024NewRobo" + "tPartResponse\022\027\n\007part_id\030\001 \001(\tR\006partId\"1" + "\n\026DeleteRobotPartRequest\022\027\n\007part_id\030\001 \001(" + "\tR\006partId\"\031\n\027DeleteRobotPartResponse\"\265\003\n" + "\010Fragment\0223\n\002id\030\001 \001(\tB#\232\204\236\003\036bson:\"_id\" j" + "son:\"id,omitempty\"R\002id\0220\n\004name\030\002 \001(\tB\034\232\204" + "\236\003\027bson:\"name\" json:\"name\"R\004name\022Y\n\010frag" + "ment\030\003 \001(\0132\027.google.protobuf.StructB$\232\204\236" + "\003\037bson:\"fragment\" json:\"fragment\"R\010fragm" + "ent\022Z\n\022organization_owner\030\004 \001(\tB+\232\204\236\003&bs" + "on:\"organization_owner\" json:\"owner\"R\021or" + "ganizationOwner\0228\n\006public\030\005 \001(\010B \232\204\236\003\033bs" + "on:\"public\" json:\"public\"R\006public\022Q\n\ncre" + "ated_on\030\006 \001(\0132\032.google.protobuf.Timestam" + "pB\026\232\204\236\003\021bson:\"created_on\"R\tcreatedOn\"4\n\021" + "FindRobotsRequest\022\037\n\013location_id\030\001 \001(\tR\n" + "locationId\"@\n\022FindRobotsResponse\022*\n\006robo" + "ts\030\001 \003(\0132\022.viam.app.v1.RobotR\006robots\"A\n\017" + "NewRobotRequest\022\022\n\004name\030\001 \001(\tR\004name\022\032\n\010l" + "ocation\030\002 \001(\tR\010location\"\"\n\020NewRobotRespo" + "nse\022\016\n\002id\030\001 \001(\tR\002id\"T\n\022UpdateRobotReques" + "t\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022\032\n" + "\010location\030\003 \001(\tR\010location\"\?\n\023UpdateRobot" + "Response\022(\n\005robot\030\001 \001(\0132\022.viam.app.v1.Ro" + "botR\005robot\"$\n\022DeleteRobotRequest\022\016\n\002id\030\001" + " \001(\tR\002id\"\025\n\023DeleteRobotResponse\"0\n\025MarkP" + "artAsMainRequest\022\027\n\007part_id\030\001 \001(\tR\006partI" + "d\"\030\n\026MarkPartAsMainResponse2\354\013\n\nAppServi" + "ce\022b\n\021ListOrganizations\022%.viam.app.v1.Li" + "stOrganizationsRequest\032&.viam.app.v1.Lis" + "tOrganizationsResponse\022V\n\rListLocations\022" + "!.viam.app.v1.ListLocationsRequest\032\".via" + "m.app.v1.ListLocationsResponse\022S\n\014Locati" + "onAuth\022 .viam.app.v1.LocationAuthRequest" + "\032!.viam.app.v1.LocationAuthResponse\022G\n\010G" + "etRobot\022\034.viam.app.v1.GetRobotRequest\032\035." + "viam.app.v1.GetRobotResponse\022V\n\rGetRobot" + "Parts\022!.viam.app.v1.GetRobotPartsRequest" + "\032\".viam.app.v1.GetRobotPartsResponse\022S\n\014" + "GetRobotPart\022 .viam.app.v1.GetRobotPartR" + "equest\032!.viam.app.v1.GetRobotPartRespons" + "e\022_\n\020GetRobotPartLogs\022$.viam.app.v1.GetR" + "obotPartLogsRequest\032%.viam.app.v1.GetRob" + "otPartLogsResponse\022d\n\021TailRobotPartLogs\022" + "%.viam.app.v1.TailRobotPartLogsRequest\032&" + ".viam.app.v1.TailRobotPartLogsResponse0\001" + "\022h\n\023GetRobotPartHistory\022\'.viam.app.v1.Ge" + "tRobotPartHistoryRequest\032(.viam.app.v1.G" + "etRobotPartHistoryResponse\022\\\n\017UpdateRobo" + "tPart\022#.viam.app.v1.UpdateRobotPartReque" + "st\032$.viam.app.v1.UpdateRobotPartResponse" + "\022S\n\014NewRobotPart\022 .viam.app.v1.NewRobotP" + "artRequest\032!.viam.app.v1.NewRobotPartRes" + "ponse\022\\\n\017DeleteRobotPart\022#.viam.app.v1.D" + "eleteRobotPartRequest\032$.viam.app.v1.Dele" + "teRobotPartResponse\022Y\n\016MarkPartAsMain\022\"." + "viam.app.v1.MarkPartAsMainRequest\032#.viam" + ".app.v1.MarkPartAsMainResponse\022M\n\nFindRo" + "bots\022\036.viam.app.v1.FindRobotsRequest\032\037.v" + "iam.app.v1.FindRobotsResponse\022G\n\010NewRobo" + "t\022\034.viam.app.v1.NewRobotRequest\032\035.viam.a" + "pp.v1.NewRobotResponse\022P\n\013UpdateRobot\022\037." + "viam.app.v1.UpdateRobotRequest\032 .viam.ap" + "p.v1.UpdateRobotResponse\022P\n\013DeleteRobot\022" + "\037.viam.app.v1.DeleteRobotRequest\032 .viam." + "app.v1.DeleteRobotResponseB\030Z\026go.viam.co" + "m/api/app/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2fapp_2eproto_deps[3] = { + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, + &::descriptor_table_tagger_2fv1_2ftagger_2eproto, +}; +static ::_pbi::once_flag descriptor_table_app_2fv1_2fapp_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_app_2fv1_2fapp_2eproto = { + false, false, 6300, descriptor_table_protodef_app_2fv1_2fapp_2eproto, + "app/v1/app.proto", + &descriptor_table_app_2fv1_2fapp_2eproto_once, descriptor_table_app_2fv1_2fapp_2eproto_deps, 3, 42, + schemas, file_default_instances, TableStruct_app_2fv1_2fapp_2eproto::offsets, + file_level_metadata_app_2fv1_2fapp_2eproto, file_level_enum_descriptors_app_2fv1_2fapp_2eproto, + file_level_service_descriptors_app_2fv1_2fapp_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_app_2fv1_2fapp_2eproto_getter() { + return &descriptor_table_app_2fv1_2fapp_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_app_2fv1_2fapp_2eproto(&descriptor_table_app_2fv1_2fapp_2eproto); +namespace viam { +namespace app { +namespace v1 { + +// =================================================================== + +class Robot::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_access(const Robot* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on(const Robot* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +Robot::_Internal::last_access(const Robot* msg) { + return *msg->_impl_.last_access_; +} +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +Robot::_Internal::created_on(const Robot* msg) { + return *msg->_impl_.created_on_; +} +void Robot::clear_last_access() { + if (GetArenaForAllocation() == nullptr && _impl_.last_access_ != nullptr) { + delete _impl_.last_access_; + } + _impl_.last_access_ = nullptr; +} +void Robot::clear_created_on() { + if (GetArenaForAllocation() == nullptr && _impl_.created_on_ != nullptr) { + delete _impl_.created_on_; + } + _impl_.created_on_ = nullptr; +} +Robot::Robot(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.Robot) +} +Robot::Robot(const Robot& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Robot* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.name_){} + , decltype(_impl_.location_){} + , decltype(_impl_.last_access_){nullptr} + , decltype(_impl_.created_on_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location().empty()) { + _this->_impl_.location_.Set(from._internal_location(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_last_access()) { + _this->_impl_.last_access_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.last_access_); + } + if (from._internal_has_created_on()) { + _this->_impl_.created_on_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.created_on_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Robot) +} + +inline void Robot::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.name_){} + , decltype(_impl_.location_){} + , decltype(_impl_.last_access_){nullptr} + , decltype(_impl_.created_on_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Robot::~Robot() { + // @@protoc_insertion_point(destructor:viam.app.v1.Robot) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Robot::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); + _impl_.name_.Destroy(); + _impl_.location_.Destroy(); + if (this != internal_default_instance()) delete _impl_.last_access_; + if (this != internal_default_instance()) delete _impl_.created_on_; +} + +void Robot::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Robot::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.Robot) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _impl_.name_.ClearToEmpty(); + _impl_.location_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.last_access_ != nullptr) { + delete _impl_.last_access_; + } + _impl_.last_access_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.created_on_ != nullptr) { + delete _impl_.created_on_; + } + _impl_.created_on_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Robot::_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 id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Robot.id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Robot.name")); + } else + goto handle_unusual; + continue; + // string location = 3 [json_name = "location", (.tagger.v1.tags) = "bson:\"location\" json:\"location\""]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_location(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Robot.location")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp last_access = 4 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_last_access(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp created_on = 5 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_created_on(), 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* Robot::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Robot) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Robot.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"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.app.v1.Robot.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); + } + + // string location = 3 [json_name = "location", (.tagger.v1.tags) = "bson:\"location\" json:\"location\""]; + if (!this->_internal_location().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location().data(), static_cast(this->_internal_location().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Robot.location"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_location(), target); + } + + // .google.protobuf.Timestamp last_access = 4 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; + if (this->_internal_has_last_access()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::last_access(this), + _Internal::last_access(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Timestamp created_on = 5 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; + if (this->_internal_has_created_on()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::created_on(this), + _Internal::created_on(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.Robot) + return target; +} + +size_t Robot::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Robot) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // string location = 3 [json_name = "location", (.tagger.v1.tags) = "bson:\"location\" json:\"location\""]; + if (!this->_internal_location().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location()); + } + + // .google.protobuf.Timestamp last_access = 4 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; + if (this->_internal_has_last_access()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.last_access_); + } + + // .google.protobuf.Timestamp created_on = 5 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; + if (this->_internal_has_created_on()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.created_on_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Robot::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Robot::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Robot::GetClassData() const { return &_class_data_; } + + +void Robot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Robot) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_location().empty()) { + _this->_internal_set_location(from._internal_location()); + } + if (from._internal_has_last_access()) { + _this->_internal_mutable_last_access()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_last_access()); + } + if (from._internal_has_created_on()) { + _this->_internal_mutable_created_on()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_created_on()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Robot::CopyFrom(const Robot& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.Robot) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Robot::IsInitialized() const { + return true; +} + +void Robot::InternalSwap(Robot* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.location_, lhs_arena, + &other->_impl_.location_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Robot, _impl_.created_on_) + + sizeof(Robot::_impl_.created_on_) + - PROTOBUF_FIELD_OFFSET(Robot, _impl_.last_access_)>( + reinterpret_cast(&_impl_.last_access_), + reinterpret_cast(&other->_impl_.last_access_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Robot::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[0]); +} + +// =================================================================== + +class RobotPart::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& robot_config(const RobotPart* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_access(const RobotPart* msg); + static const ::PROTOBUF_NAMESPACE_ID::Struct& user_supplied_info(const RobotPart* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on(const RobotPart* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +RobotPart::_Internal::robot_config(const RobotPart* msg) { + return *msg->_impl_.robot_config_; +} +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +RobotPart::_Internal::last_access(const RobotPart* msg) { + return *msg->_impl_.last_access_; +} +const ::PROTOBUF_NAMESPACE_ID::Struct& +RobotPart::_Internal::user_supplied_info(const RobotPart* msg) { + return *msg->_impl_.user_supplied_info_; +} +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +RobotPart::_Internal::created_on(const RobotPart* msg) { + return *msg->_impl_.created_on_; +} +void RobotPart::clear_robot_config() { + if (GetArenaForAllocation() == nullptr && _impl_.robot_config_ != nullptr) { + delete _impl_.robot_config_; + } + _impl_.robot_config_ = nullptr; +} +void RobotPart::clear_last_access() { + if (GetArenaForAllocation() == nullptr && _impl_.last_access_ != nullptr) { + delete _impl_.last_access_; + } + _impl_.last_access_ = nullptr; +} +void RobotPart::clear_user_supplied_info() { + if (GetArenaForAllocation() == nullptr && _impl_.user_supplied_info_ != nullptr) { + delete _impl_.user_supplied_info_; + } + _impl_.user_supplied_info_ = nullptr; +} +void RobotPart::clear_created_on() { + if (GetArenaForAllocation() == nullptr && _impl_.created_on_ != nullptr) { + delete _impl_.created_on_; + } + _impl_.created_on_ = nullptr; +} +RobotPart::RobotPart(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.RobotPart) +} +RobotPart::RobotPart(const RobotPart& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RobotPart* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.name_){} + , decltype(_impl_.secret_){} + , decltype(_impl_.robot_){} + , decltype(_impl_.fqdn_){} + , decltype(_impl_.dns_name_){} + , decltype(_impl_.local_fqdn_){} + , decltype(_impl_.location_id_){} + , decltype(_impl_.robot_config_){nullptr} + , decltype(_impl_.last_access_){nullptr} + , decltype(_impl_.user_supplied_info_){nullptr} + , decltype(_impl_.created_on_){nullptr} + , decltype(_impl_.main_part_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_secret().empty()) { + _this->_impl_.secret_.Set(from._internal_secret(), + _this->GetArenaForAllocation()); + } + _impl_.robot_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_robot().empty()) { + _this->_impl_.robot_.Set(from._internal_robot(), + _this->GetArenaForAllocation()); + } + _impl_.fqdn_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fqdn_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_fqdn().empty()) { + _this->_impl_.fqdn_.Set(from._internal_fqdn(), + _this->GetArenaForAllocation()); + } + _impl_.dns_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.dns_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_dns_name().empty()) { + _this->_impl_.dns_name_.Set(from._internal_dns_name(), + _this->GetArenaForAllocation()); + } + _impl_.local_fqdn_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.local_fqdn_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_local_fqdn().empty()) { + _this->_impl_.local_fqdn_.Set(from._internal_local_fqdn(), + _this->GetArenaForAllocation()); + } + _impl_.location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + _this->_impl_.location_id_.Set(from._internal_location_id(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_robot_config()) { + _this->_impl_.robot_config_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.robot_config_); + } + if (from._internal_has_last_access()) { + _this->_impl_.last_access_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.last_access_); + } + if (from._internal_has_user_supplied_info()) { + _this->_impl_.user_supplied_info_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.user_supplied_info_); + } + if (from._internal_has_created_on()) { + _this->_impl_.created_on_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.created_on_); + } + _this->_impl_.main_part_ = from._impl_.main_part_; + // @@protoc_insertion_point(copy_constructor:viam.app.v1.RobotPart) +} + +inline void RobotPart::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.name_){} + , decltype(_impl_.secret_){} + , decltype(_impl_.robot_){} + , decltype(_impl_.fqdn_){} + , decltype(_impl_.dns_name_){} + , decltype(_impl_.local_fqdn_){} + , decltype(_impl_.location_id_){} + , decltype(_impl_.robot_config_){nullptr} + , decltype(_impl_.last_access_){nullptr} + , decltype(_impl_.user_supplied_info_){nullptr} + , decltype(_impl_.created_on_){nullptr} + , decltype(_impl_.main_part_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fqdn_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fqdn_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.dns_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.dns_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.local_fqdn_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.local_fqdn_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +RobotPart::~RobotPart() { + // @@protoc_insertion_point(destructor:viam.app.v1.RobotPart) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RobotPart::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); + _impl_.name_.Destroy(); + _impl_.secret_.Destroy(); + _impl_.robot_.Destroy(); + _impl_.fqdn_.Destroy(); + _impl_.dns_name_.Destroy(); + _impl_.local_fqdn_.Destroy(); + _impl_.location_id_.Destroy(); + if (this != internal_default_instance()) delete _impl_.robot_config_; + if (this != internal_default_instance()) delete _impl_.last_access_; + if (this != internal_default_instance()) delete _impl_.user_supplied_info_; + if (this != internal_default_instance()) delete _impl_.created_on_; +} + +void RobotPart::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RobotPart::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.RobotPart) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _impl_.name_.ClearToEmpty(); + _impl_.secret_.ClearToEmpty(); + _impl_.robot_.ClearToEmpty(); + _impl_.fqdn_.ClearToEmpty(); + _impl_.dns_name_.ClearToEmpty(); + _impl_.local_fqdn_.ClearToEmpty(); + _impl_.location_id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.robot_config_ != nullptr) { + delete _impl_.robot_config_; + } + _impl_.robot_config_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.last_access_ != nullptr) { + delete _impl_.last_access_; + } + _impl_.last_access_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.user_supplied_info_ != nullptr) { + delete _impl_.user_supplied_info_; + } + _impl_.user_supplied_info_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.created_on_ != nullptr) { + delete _impl_.created_on_; + } + _impl_.created_on_ = nullptr; + _impl_.main_part_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RobotPart::_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 id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RobotPart.id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RobotPart.name")); + } else + goto handle_unusual; + continue; + // string secret = 3 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\" json:\"secret,omitempty\""]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_secret(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RobotPart.secret")); + } else + goto handle_unusual; + continue; + // string robot = 4 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_robot(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RobotPart.robot")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct robot_config = 5 [json_name = "robotConfig", (.tagger.v1.tags) = "bson:\"config\" json:\"robot_config\""]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_robot_config(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp last_access = 6 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_last_access(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct user_supplied_info = 7 [json_name = "userSuppliedInfo", (.tagger.v1.tags) = "bson:\"user_supplied_info\" json:\"user_supplied_info\""]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_user_supplied_info(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool main_part = 8 [json_name = "mainPart", (.tagger.v1.tags) = "bson:\"main_part\" json:\"main_part\""]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { + _impl_.main_part_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string fqdn = 9 [json_name = "fqdn"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + auto str = _internal_mutable_fqdn(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RobotPart.fqdn")); + } else + goto handle_unusual; + continue; + // string dns_name = 10 [json_name = "dnsName", (.tagger.v1.tags) = "bson:\"dns_name\" json:\"dns_name\""]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + auto str = _internal_mutable_dns_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RobotPart.dns_name")); + } else + goto handle_unusual; + continue; + // string local_fqdn = 11 [json_name = "localFqdn"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + auto str = _internal_mutable_local_fqdn(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RobotPart.local_fqdn")); + } else + goto handle_unusual; + continue; + // string location_id = 12 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"-\""]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RobotPart.location_id")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp created_on = 13 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { + ptr = ctx->ParseMessage(_internal_mutable_created_on(), 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* RobotPart::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RobotPart) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RobotPart.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"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.app.v1.RobotPart.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); + } + + // string secret = 3 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\" json:\"secret,omitempty\""]; + if (!this->_internal_secret().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_secret().data(), static_cast(this->_internal_secret().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RobotPart.secret"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_secret(), target); + } + + // string robot = 4 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; + if (!this->_internal_robot().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_robot().data(), static_cast(this->_internal_robot().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RobotPart.robot"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_robot(), target); + } + + // .google.protobuf.Struct robot_config = 5 [json_name = "robotConfig", (.tagger.v1.tags) = "bson:\"config\" json:\"robot_config\""]; + if (this->_internal_has_robot_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::robot_config(this), + _Internal::robot_config(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Timestamp last_access = 6 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; + if (this->_internal_has_last_access()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::last_access(this), + _Internal::last_access(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Struct user_supplied_info = 7 [json_name = "userSuppliedInfo", (.tagger.v1.tags) = "bson:\"user_supplied_info\" json:\"user_supplied_info\""]; + if (this->_internal_has_user_supplied_info()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::user_supplied_info(this), + _Internal::user_supplied_info(this).GetCachedSize(), target, stream); + } + + // bool main_part = 8 [json_name = "mainPart", (.tagger.v1.tags) = "bson:\"main_part\" json:\"main_part\""]; + if (this->_internal_main_part() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(8, this->_internal_main_part(), target); + } + + // string fqdn = 9 [json_name = "fqdn"]; + if (!this->_internal_fqdn().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_fqdn().data(), static_cast(this->_internal_fqdn().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RobotPart.fqdn"); + target = stream->WriteStringMaybeAliased( + 9, this->_internal_fqdn(), target); + } + + // string dns_name = 10 [json_name = "dnsName", (.tagger.v1.tags) = "bson:\"dns_name\" json:\"dns_name\""]; + if (!this->_internal_dns_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_dns_name().data(), static_cast(this->_internal_dns_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RobotPart.dns_name"); + target = stream->WriteStringMaybeAliased( + 10, this->_internal_dns_name(), target); + } + + // string local_fqdn = 11 [json_name = "localFqdn"]; + if (!this->_internal_local_fqdn().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_local_fqdn().data(), static_cast(this->_internal_local_fqdn().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RobotPart.local_fqdn"); + target = stream->WriteStringMaybeAliased( + 11, this->_internal_local_fqdn(), target); + } + + // string location_id = 12 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"-\""]; + if (!this->_internal_location_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RobotPart.location_id"); + target = stream->WriteStringMaybeAliased( + 12, this->_internal_location_id(), target); + } + + // .google.protobuf.Timestamp created_on = 13 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; + if (this->_internal_has_created_on()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(13, _Internal::created_on(this), + _Internal::created_on(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.RobotPart) + return target; +} + +size_t RobotPart::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RobotPart) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // string secret = 3 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\" json:\"secret,omitempty\""]; + if (!this->_internal_secret().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_secret()); + } + + // string robot = 4 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; + if (!this->_internal_robot().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_robot()); + } + + // string fqdn = 9 [json_name = "fqdn"]; + if (!this->_internal_fqdn().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_fqdn()); + } + + // string dns_name = 10 [json_name = "dnsName", (.tagger.v1.tags) = "bson:\"dns_name\" json:\"dns_name\""]; + if (!this->_internal_dns_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_dns_name()); + } + + // string local_fqdn = 11 [json_name = "localFqdn"]; + if (!this->_internal_local_fqdn().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_local_fqdn()); + } + + // string location_id = 12 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"-\""]; + if (!this->_internal_location_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); + } + + // .google.protobuf.Struct robot_config = 5 [json_name = "robotConfig", (.tagger.v1.tags) = "bson:\"config\" json:\"robot_config\""]; + if (this->_internal_has_robot_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.robot_config_); + } + + // .google.protobuf.Timestamp last_access = 6 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; + if (this->_internal_has_last_access()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.last_access_); + } + + // .google.protobuf.Struct user_supplied_info = 7 [json_name = "userSuppliedInfo", (.tagger.v1.tags) = "bson:\"user_supplied_info\" json:\"user_supplied_info\""]; + if (this->_internal_has_user_supplied_info()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.user_supplied_info_); + } + + // .google.protobuf.Timestamp created_on = 13 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; + if (this->_internal_has_created_on()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.created_on_); + } + + // bool main_part = 8 [json_name = "mainPart", (.tagger.v1.tags) = "bson:\"main_part\" json:\"main_part\""]; + if (this->_internal_main_part() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RobotPart::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RobotPart::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RobotPart::GetClassData() const { return &_class_data_; } + + +void RobotPart::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RobotPart) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_secret().empty()) { + _this->_internal_set_secret(from._internal_secret()); + } + if (!from._internal_robot().empty()) { + _this->_internal_set_robot(from._internal_robot()); + } + if (!from._internal_fqdn().empty()) { + _this->_internal_set_fqdn(from._internal_fqdn()); + } + if (!from._internal_dns_name().empty()) { + _this->_internal_set_dns_name(from._internal_dns_name()); + } + if (!from._internal_local_fqdn().empty()) { + _this->_internal_set_local_fqdn(from._internal_local_fqdn()); + } + if (!from._internal_location_id().empty()) { + _this->_internal_set_location_id(from._internal_location_id()); + } + if (from._internal_has_robot_config()) { + _this->_internal_mutable_robot_config()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_robot_config()); + } + if (from._internal_has_last_access()) { + _this->_internal_mutable_last_access()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_last_access()); + } + if (from._internal_has_user_supplied_info()) { + _this->_internal_mutable_user_supplied_info()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_user_supplied_info()); + } + if (from._internal_has_created_on()) { + _this->_internal_mutable_created_on()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_created_on()); + } + if (from._internal_main_part() != 0) { + _this->_internal_set_main_part(from._internal_main_part()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RobotPart::CopyFrom(const RobotPart& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.RobotPart) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RobotPart::IsInitialized() const { + return true; +} + +void RobotPart::InternalSwap(RobotPart* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.secret_, lhs_arena, + &other->_impl_.secret_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.robot_, lhs_arena, + &other->_impl_.robot_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.fqdn_, lhs_arena, + &other->_impl_.fqdn_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.dns_name_, lhs_arena, + &other->_impl_.dns_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.local_fqdn_, lhs_arena, + &other->_impl_.local_fqdn_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.location_id_, lhs_arena, + &other->_impl_.location_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.main_part_) + + sizeof(RobotPart::_impl_.main_part_) + - PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.robot_config_)>( + reinterpret_cast(&_impl_.robot_config_), + reinterpret_cast(&other->_impl_.robot_config_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RobotPart::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[1]); +} + +// =================================================================== + +class RobotPartHistoryEntry::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& when(const RobotPartHistoryEntry* msg); + static const ::viam::app::v1::RobotPart& old(const RobotPartHistoryEntry* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +RobotPartHistoryEntry::_Internal::when(const RobotPartHistoryEntry* msg) { + return *msg->_impl_.when_; +} +const ::viam::app::v1::RobotPart& +RobotPartHistoryEntry::_Internal::old(const RobotPartHistoryEntry* msg) { + return *msg->_impl_.old_; +} +void RobotPartHistoryEntry::clear_when() { + if (GetArenaForAllocation() == nullptr && _impl_.when_ != nullptr) { + delete _impl_.when_; + } + _impl_.when_ = nullptr; +} +RobotPartHistoryEntry::RobotPartHistoryEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.RobotPartHistoryEntry) +} +RobotPartHistoryEntry::RobotPartHistoryEntry(const RobotPartHistoryEntry& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RobotPartHistoryEntry* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.part_){} + , decltype(_impl_.robot_){} + , decltype(_impl_.when_){nullptr} + , decltype(_impl_.old_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.part_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_part().empty()) { + _this->_impl_.part_.Set(from._internal_part(), + _this->GetArenaForAllocation()); + } + _impl_.robot_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_robot().empty()) { + _this->_impl_.robot_.Set(from._internal_robot(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_when()) { + _this->_impl_.when_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.when_); + } + if (from._internal_has_old()) { + _this->_impl_.old_ = new ::viam::app::v1::RobotPart(*from._impl_.old_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.RobotPartHistoryEntry) +} + +inline void RobotPartHistoryEntry::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.part_){} + , decltype(_impl_.robot_){} + , decltype(_impl_.when_){nullptr} + , decltype(_impl_.old_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.part_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +RobotPartHistoryEntry::~RobotPartHistoryEntry() { + // @@protoc_insertion_point(destructor:viam.app.v1.RobotPartHistoryEntry) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RobotPartHistoryEntry::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.part_.Destroy(); + _impl_.robot_.Destroy(); + if (this != internal_default_instance()) delete _impl_.when_; + if (this != internal_default_instance()) delete _impl_.old_; +} + +void RobotPartHistoryEntry::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RobotPartHistoryEntry::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.RobotPartHistoryEntry) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.part_.ClearToEmpty(); + _impl_.robot_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.when_ != nullptr) { + delete _impl_.when_; + } + _impl_.when_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.old_ != nullptr) { + delete _impl_.old_; + } + _impl_.old_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RobotPartHistoryEntry::_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 part = 1 [json_name = "part", (.tagger.v1.tags) = "bson:\"part\" json:\"part\""]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_part(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RobotPartHistoryEntry.part")); + } else + goto handle_unusual; + continue; + // string robot = 2 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_robot(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RobotPartHistoryEntry.robot")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp when = 3 [json_name = "when", (.tagger.v1.tags) = "bson:\"when\" json:\"when\""]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_when(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.RobotPart old = 4 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_old(), 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* RobotPartHistoryEntry::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RobotPartHistoryEntry) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string part = 1 [json_name = "part", (.tagger.v1.tags) = "bson:\"part\" json:\"part\""]; + if (!this->_internal_part().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_part().data(), static_cast(this->_internal_part().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RobotPartHistoryEntry.part"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_part(), target); + } + + // string robot = 2 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; + if (!this->_internal_robot().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_robot().data(), static_cast(this->_internal_robot().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RobotPartHistoryEntry.robot"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_robot(), target); + } + + // .google.protobuf.Timestamp when = 3 [json_name = "when", (.tagger.v1.tags) = "bson:\"when\" json:\"when\""]; + if (this->_internal_has_when()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::when(this), + _Internal::when(this).GetCachedSize(), target, stream); + } + + // .viam.app.v1.RobotPart old = 4 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; + if (this->_internal_has_old()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::old(this), + _Internal::old(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.RobotPartHistoryEntry) + return target; +} + +size_t RobotPartHistoryEntry::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RobotPartHistoryEntry) + 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 part = 1 [json_name = "part", (.tagger.v1.tags) = "bson:\"part\" json:\"part\""]; + if (!this->_internal_part().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_part()); + } + + // string robot = 2 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; + if (!this->_internal_robot().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_robot()); + } + + // .google.protobuf.Timestamp when = 3 [json_name = "when", (.tagger.v1.tags) = "bson:\"when\" json:\"when\""]; + if (this->_internal_has_when()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.when_); + } + + // .viam.app.v1.RobotPart old = 4 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; + if (this->_internal_has_old()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.old_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RobotPartHistoryEntry::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RobotPartHistoryEntry::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RobotPartHistoryEntry::GetClassData() const { return &_class_data_; } + + +void RobotPartHistoryEntry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RobotPartHistoryEntry) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_part().empty()) { + _this->_internal_set_part(from._internal_part()); + } + if (!from._internal_robot().empty()) { + _this->_internal_set_robot(from._internal_robot()); + } + if (from._internal_has_when()) { + _this->_internal_mutable_when()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_when()); + } + if (from._internal_has_old()) { + _this->_internal_mutable_old()->::viam::app::v1::RobotPart::MergeFrom( + from._internal_old()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RobotPartHistoryEntry::CopyFrom(const RobotPartHistoryEntry& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.RobotPartHistoryEntry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RobotPartHistoryEntry::IsInitialized() const { + return true; +} + +void RobotPartHistoryEntry::InternalSwap(RobotPartHistoryEntry* 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( + &_impl_.part_, lhs_arena, + &other->_impl_.part_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.robot_, lhs_arena, + &other->_impl_.robot_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(RobotPartHistoryEntry, _impl_.old_) + + sizeof(RobotPartHistoryEntry::_impl_.old_) + - PROTOBUF_FIELD_OFFSET(RobotPartHistoryEntry, _impl_.when_)>( + reinterpret_cast(&_impl_.when_), + reinterpret_cast(&other->_impl_.when_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RobotPartHistoryEntry::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[2]); +} + +// =================================================================== + +class ListOrganizationsRequest::_Internal { + public: +}; + +ListOrganizationsRequest::ListOrganizationsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListOrganizationsRequest) +} +ListOrganizationsRequest::ListOrganizationsRequest(const ListOrganizationsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + ListOrganizationsRequest* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListOrganizationsRequest) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListOrganizationsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListOrganizationsRequest::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata ListOrganizationsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[3]); +} + +// =================================================================== + +class Organization::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on(const Organization* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +Organization::_Internal::created_on(const Organization* msg) { + return *msg->_impl_.created_on_; +} +void Organization::clear_created_on() { + if (GetArenaForAllocation() == nullptr && _impl_.created_on_ != nullptr) { + delete _impl_.created_on_; + } + _impl_.created_on_ = nullptr; +} +Organization::Organization(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.Organization) +} +Organization::Organization(const Organization& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Organization* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.name_){} + , decltype(_impl_.created_on_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_created_on()) { + _this->_impl_.created_on_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.created_on_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Organization) +} + +inline void Organization::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.name_){} + , decltype(_impl_.created_on_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Organization::~Organization() { + // @@protoc_insertion_point(destructor:viam.app.v1.Organization) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Organization::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.created_on_; +} + +void Organization::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Organization::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.Organization) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.created_on_ != nullptr) { + delete _impl_.created_on_; + } + _impl_.created_on_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Organization::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Organization.id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Organization.name")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_created_on(), 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* Organization::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Organization) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Organization.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // string name = 2 [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.app.v1.Organization.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); + } + + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; + if (this->_internal_has_created_on()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::created_on(this), + _Internal::created_on(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.Organization) + return target; +} + +size_t Organization::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Organization) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // string name = 2 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; + if (this->_internal_has_created_on()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.created_on_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Organization::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Organization::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Organization::GetClassData() const { return &_class_data_; } + + +void Organization::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Organization) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_created_on()) { + _this->_internal_mutable_created_on()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_created_on()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Organization::CopyFrom(const Organization& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.Organization) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Organization::IsInitialized() const { + return true; +} + +void Organization::InternalSwap(Organization* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.created_on_, other->_impl_.created_on_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Organization::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[4]); +} + +// =================================================================== + +class ListOrganizationsResponse::_Internal { + public: +}; + +ListOrganizationsResponse::ListOrganizationsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListOrganizationsResponse) +} +ListOrganizationsResponse::ListOrganizationsResponse(const ListOrganizationsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ListOrganizationsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.organizations_){from._impl_.organizations_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListOrganizationsResponse) +} + +inline void ListOrganizationsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.organizations_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +ListOrganizationsResponse::~ListOrganizationsResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.ListOrganizationsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ListOrganizationsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.organizations_.~RepeatedPtrField(); +} + +void ListOrganizationsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ListOrganizationsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListOrganizationsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.organizations_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListOrganizationsResponse::_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) { + // repeated .viam.app.v1.Organization organizations = 1 [json_name = "organizations"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_organizations(), 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* ListOrganizationsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListOrganizationsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.app.v1.Organization organizations = 1 [json_name = "organizations"]; + for (unsigned i = 0, + n = static_cast(this->_internal_organizations_size()); i < n; i++) { + const auto& repfield = this->_internal_organizations(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.ListOrganizationsResponse) + return target; +} + +size_t ListOrganizationsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListOrganizationsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.app.v1.Organization organizations = 1 [json_name = "organizations"]; + total_size += 1UL * this->_internal_organizations_size(); + for (const auto& msg : this->_impl_.organizations_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListOrganizationsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ListOrganizationsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListOrganizationsResponse::GetClassData() const { return &_class_data_; } + + +void ListOrganizationsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListOrganizationsResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.organizations_.MergeFrom(from._impl_.organizations_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ListOrganizationsResponse::CopyFrom(const ListOrganizationsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ListOrganizationsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListOrganizationsResponse::IsInitialized() const { + return true; +} + +void ListOrganizationsResponse::InternalSwap(ListOrganizationsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.organizations_.InternalSwap(&other->_impl_.organizations_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListOrganizationsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[5]); +} + +// =================================================================== + +class Location::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on(const Location* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +Location::_Internal::created_on(const Location* msg) { + return *msg->_impl_.created_on_; +} +void Location::clear_created_on() { + if (GetArenaForAllocation() == nullptr && _impl_.created_on_ != nullptr) { + delete _impl_.created_on_; + } + _impl_.created_on_ = nullptr; +} +Location::Location(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.Location) +} +Location::Location(const Location& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Location* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.name_){} + , decltype(_impl_.created_on_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_created_on()) { + _this->_impl_.created_on_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.created_on_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Location) +} + +inline void Location::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.name_){} + , decltype(_impl_.created_on_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Location::~Location() { + // @@protoc_insertion_point(destructor:viam.app.v1.Location) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Location::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.created_on_; +} + +void Location::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Location::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.Location) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.created_on_ != nullptr) { + delete _impl_.created_on_; + } + _impl_.created_on_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Location::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Location.id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Location.name")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_created_on(), 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* Location::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Location) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Location.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // string name = 2 [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.app.v1.Location.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); + } + + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; + if (this->_internal_has_created_on()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::created_on(this), + _Internal::created_on(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.Location) + return target; +} + +size_t Location::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Location) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // string name = 2 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; + if (this->_internal_has_created_on()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.created_on_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Location::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Location::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Location::GetClassData() const { return &_class_data_; } + + +void Location::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Location) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_created_on()) { + _this->_internal_mutable_created_on()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_created_on()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Location::CopyFrom(const Location& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.Location) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Location::IsInitialized() const { + return true; +} + +void Location::InternalSwap(Location* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.created_on_, other->_impl_.created_on_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Location::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[6]); +} + +// =================================================================== + +class ListLocationsRequest::_Internal { + public: +}; + +ListLocationsRequest::ListLocationsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListLocationsRequest) +} +ListLocationsRequest::ListLocationsRequest(const ListLocationsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ListLocationsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.organization_id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + _this->_impl_.organization_id_.Set(from._internal_organization_id(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListLocationsRequest) +} + +inline void ListLocationsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.organization_id_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ListLocationsRequest::~ListLocationsRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.ListLocationsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ListLocationsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.organization_id_.Destroy(); +} + +void ListLocationsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ListLocationsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListLocationsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.organization_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListLocationsRequest::_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 organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ListLocationsRequest.organization_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* ListLocationsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListLocationsRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string organization_id = 1 [json_name = "organizationId"]; + if (!this->_internal_organization_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ListLocationsRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_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.ListLocationsRequest) + return target; +} + +size_t ListLocationsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListLocationsRequest) + 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 organization_id = 1 [json_name = "organizationId"]; + if (!this->_internal_organization_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListLocationsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ListLocationsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListLocationsRequest::GetClassData() const { return &_class_data_; } + + +void ListLocationsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListLocationsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_organization_id().empty()) { + _this->_internal_set_organization_id(from._internal_organization_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ListLocationsRequest::CopyFrom(const ListLocationsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ListLocationsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListLocationsRequest::IsInitialized() const { + return true; +} + +void ListLocationsRequest::InternalSwap(ListLocationsRequest* 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( + &_impl_.organization_id_, lhs_arena, + &other->_impl_.organization_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListLocationsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[7]); +} + +// =================================================================== + +class ListLocationsResponse::_Internal { + public: +}; + +ListLocationsResponse::ListLocationsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListLocationsResponse) +} +ListLocationsResponse::ListLocationsResponse(const ListLocationsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ListLocationsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.locations_){from._impl_.locations_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListLocationsResponse) +} + +inline void ListLocationsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.locations_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +ListLocationsResponse::~ListLocationsResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.ListLocationsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ListLocationsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.locations_.~RepeatedPtrField(); +} + +void ListLocationsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ListLocationsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListLocationsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.locations_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListLocationsResponse::_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) { + // repeated .viam.app.v1.Location locations = 1 [json_name = "locations"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_locations(), 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* ListLocationsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListLocationsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.app.v1.Location locations = 1 [json_name = "locations"]; + for (unsigned i = 0, + n = static_cast(this->_internal_locations_size()); i < n; i++) { + const auto& repfield = this->_internal_locations(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.ListLocationsResponse) + return target; +} + +size_t ListLocationsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListLocationsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.app.v1.Location locations = 1 [json_name = "locations"]; + total_size += 1UL * this->_internal_locations_size(); + for (const auto& msg : this->_impl_.locations_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListLocationsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ListLocationsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListLocationsResponse::GetClassData() const { return &_class_data_; } + + +void ListLocationsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListLocationsResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.locations_.MergeFrom(from._impl_.locations_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ListLocationsResponse::CopyFrom(const ListLocationsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ListLocationsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListLocationsResponse::IsInitialized() const { + return true; +} + +void ListLocationsResponse::InternalSwap(ListLocationsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.locations_.InternalSwap(&other->_impl_.locations_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListLocationsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[8]); +} + +// =================================================================== + +class LocationAuth::_Internal { + public: +}; + +LocationAuth::LocationAuth(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.LocationAuth) +} +LocationAuth::LocationAuth(const LocationAuth& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + LocationAuth* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.secret_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_secret().empty()) { + _this->_impl_.secret_.Set(from._internal_secret(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.LocationAuth) +} + +inline void LocationAuth::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.secret_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +LocationAuth::~LocationAuth() { + // @@protoc_insertion_point(destructor:viam.app.v1.LocationAuth) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void LocationAuth::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.secret_.Destroy(); +} + +void LocationAuth::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void LocationAuth::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.LocationAuth) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.secret_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LocationAuth::_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 secret = 1 [json_name = "secret"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_secret(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LocationAuth.secret")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* LocationAuth::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.LocationAuth) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string secret = 1 [json_name = "secret"]; + if (!this->_internal_secret().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_secret().data(), static_cast(this->_internal_secret().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.LocationAuth.secret"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_secret(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.LocationAuth) + return target; +} + +size_t LocationAuth::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.LocationAuth) + 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 secret = 1 [json_name = "secret"]; + if (!this->_internal_secret().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_secret()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocationAuth::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + LocationAuth::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocationAuth::GetClassData() const { return &_class_data_; } + + +void LocationAuth::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LocationAuth) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_secret().empty()) { + _this->_internal_set_secret(from._internal_secret()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void LocationAuth::CopyFrom(const LocationAuth& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.LocationAuth) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LocationAuth::IsInitialized() const { + return true; +} + +void LocationAuth::InternalSwap(LocationAuth* 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( + &_impl_.secret_, lhs_arena, + &other->_impl_.secret_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata LocationAuth::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[9]); +} + +// =================================================================== + +class LocationAuthRequest::_Internal { + public: +}; + +LocationAuthRequest::LocationAuthRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.LocationAuthRequest) +} +LocationAuthRequest::LocationAuthRequest(const LocationAuthRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + LocationAuthRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.location_id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + _this->_impl_.location_id_.Set(from._internal_location_id(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.LocationAuthRequest) +} + +inline void LocationAuthRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.location_id_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +LocationAuthRequest::~LocationAuthRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.LocationAuthRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void LocationAuthRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.location_id_.Destroy(); +} + +void LocationAuthRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void LocationAuthRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.LocationAuthRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.location_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LocationAuthRequest::_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 location_id = 1 [json_name = "locationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LocationAuthRequest.location_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* LocationAuthRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.LocationAuthRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string location_id = 1 [json_name = "locationId"]; + if (!this->_internal_location_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.LocationAuthRequest.location_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_location_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.LocationAuthRequest) + return target; +} + +size_t LocationAuthRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.LocationAuthRequest) + 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 location_id = 1 [json_name = "locationId"]; + if (!this->_internal_location_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocationAuthRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + LocationAuthRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocationAuthRequest::GetClassData() const { return &_class_data_; } + + +void LocationAuthRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LocationAuthRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_location_id().empty()) { + _this->_internal_set_location_id(from._internal_location_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void LocationAuthRequest::CopyFrom(const LocationAuthRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.LocationAuthRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LocationAuthRequest::IsInitialized() const { + return true; +} + +void LocationAuthRequest::InternalSwap(LocationAuthRequest* 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( + &_impl_.location_id_, lhs_arena, + &other->_impl_.location_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata LocationAuthRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[10]); +} + +// =================================================================== + +class LocationAuthResponse::_Internal { + public: + static const ::viam::app::v1::LocationAuth& auth(const LocationAuthResponse* msg); +}; + +const ::viam::app::v1::LocationAuth& +LocationAuthResponse::_Internal::auth(const LocationAuthResponse* msg) { + return *msg->_impl_.auth_; +} +LocationAuthResponse::LocationAuthResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.LocationAuthResponse) +} +LocationAuthResponse::LocationAuthResponse(const LocationAuthResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + LocationAuthResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.auth_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_auth()) { + _this->_impl_.auth_ = new ::viam::app::v1::LocationAuth(*from._impl_.auth_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.LocationAuthResponse) +} + +inline void LocationAuthResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.auth_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +LocationAuthResponse::~LocationAuthResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.LocationAuthResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void LocationAuthResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.auth_; +} + +void LocationAuthResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void LocationAuthResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.LocationAuthResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.auth_ != nullptr) { + delete _impl_.auth_; + } + _impl_.auth_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LocationAuthResponse::_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) { + // .viam.app.v1.LocationAuth auth = 1 [json_name = "auth"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_auth(), 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* LocationAuthResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.LocationAuthResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.v1.LocationAuth auth = 1 [json_name = "auth"]; + if (this->_internal_has_auth()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::auth(this), + _Internal::auth(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.LocationAuthResponse) + return target; +} + +size_t LocationAuthResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.LocationAuthResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.app.v1.LocationAuth auth = 1 [json_name = "auth"]; + if (this->_internal_has_auth()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.auth_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocationAuthResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + LocationAuthResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocationAuthResponse::GetClassData() const { return &_class_data_; } + + +void LocationAuthResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LocationAuthResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_auth()) { + _this->_internal_mutable_auth()->::viam::app::v1::LocationAuth::MergeFrom( + from._internal_auth()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void LocationAuthResponse::CopyFrom(const LocationAuthResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.LocationAuthResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LocationAuthResponse::IsInitialized() const { + return true; +} + +void LocationAuthResponse::InternalSwap(LocationAuthResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.auth_, other->_impl_.auth_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata LocationAuthResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[11]); +} + +// =================================================================== + +class GetRobotRequest::_Internal { + public: +}; + +GetRobotRequest::GetRobotRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetRobotRequest) +} +GetRobotRequest::GetRobotRequest(const GetRobotRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetRobotRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotRequest) +} + +inline void GetRobotRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetRobotRequest::~GetRobotRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetRobotRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); +} + +void GetRobotRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetRobotRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetRobotRequest.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* GetRobotRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetRobotRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_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.GetRobotRequest) + return target; +} + +size_t GetRobotRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetRobotRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotRequest::GetClassData() const { return &_class_data_; } + + +void GetRobotRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetRobotRequest::CopyFrom(const GetRobotRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.GetRobotRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRobotRequest::IsInitialized() const { + return true; +} + +void GetRobotRequest::InternalSwap(GetRobotRequest* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[12]); +} + +// =================================================================== + +class GetRobotResponse::_Internal { + public: + static const ::viam::app::v1::Robot& robot(const GetRobotResponse* msg); +}; + +const ::viam::app::v1::Robot& +GetRobotResponse::_Internal::robot(const GetRobotResponse* msg) { + return *msg->_impl_.robot_; +} +GetRobotResponse::GetRobotResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetRobotResponse) +} +GetRobotResponse::GetRobotResponse(const GetRobotResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetRobotResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.robot_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_robot()) { + _this->_impl_.robot_ = new ::viam::app::v1::Robot(*from._impl_.robot_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotResponse) +} + +inline void GetRobotResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.robot_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetRobotResponse::~GetRobotResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetRobotResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.robot_; +} + +void GetRobotResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetRobotResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.robot_ != nullptr) { + delete _impl_.robot_; + } + _impl_.robot_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotResponse::_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) { + // .viam.app.v1.Robot robot = 1 [json_name = "robot"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_robot(), 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* GetRobotResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.v1.Robot robot = 1 [json_name = "robot"]; + if (this->_internal_has_robot()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::robot(this), + _Internal::robot(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.GetRobotResponse) + return target; +} + +size_t GetRobotResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.app.v1.Robot robot = 1 [json_name = "robot"]; + if (this->_internal_has_robot()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.robot_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetRobotResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotResponse::GetClassData() const { return &_class_data_; } + + +void GetRobotResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_robot()) { + _this->_internal_mutable_robot()->::viam::app::v1::Robot::MergeFrom( + from._internal_robot()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetRobotResponse::CopyFrom(const GetRobotResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.GetRobotResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRobotResponse::IsInitialized() const { + return true; +} + +void GetRobotResponse::InternalSwap(GetRobotResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.robot_, other->_impl_.robot_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[13]); +} + +// =================================================================== + +class GetRobotPartsRequest::_Internal { + public: +}; + +GetRobotPartsRequest::GetRobotPartsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetRobotPartsRequest) +} +GetRobotPartsRequest::GetRobotPartsRequest(const GetRobotPartsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetRobotPartsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.robot_id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.robot_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_robot_id().empty()) { + _this->_impl_.robot_id_.Set(from._internal_robot_id(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotPartsRequest) +} + +inline void GetRobotPartsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.robot_id_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.robot_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetRobotPartsRequest::~GetRobotPartsRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotPartsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetRobotPartsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.robot_id_.Destroy(); +} + +void GetRobotPartsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetRobotPartsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.robot_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotPartsRequest::_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 robot_id = 1 [json_name = "robotId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_robot_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetRobotPartsRequest.robot_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* GetRobotPartsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotPartsRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string robot_id = 1 [json_name = "robotId"]; + if (!this->_internal_robot_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_robot_id().data(), static_cast(this->_internal_robot_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetRobotPartsRequest.robot_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_robot_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.GetRobotPartsRequest) + return target; +} + +size_t GetRobotPartsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotPartsRequest) + 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 robot_id = 1 [json_name = "robotId"]; + if (!this->_internal_robot_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_robot_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotPartsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetRobotPartsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotPartsRequest::GetClassData() const { return &_class_data_; } + + +void GetRobotPartsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_robot_id().empty()) { + _this->_internal_set_robot_id(from._internal_robot_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetRobotPartsRequest::CopyFrom(const GetRobotPartsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.GetRobotPartsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRobotPartsRequest::IsInitialized() const { + return true; +} + +void GetRobotPartsRequest::InternalSwap(GetRobotPartsRequest* 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( + &_impl_.robot_id_, lhs_arena, + &other->_impl_.robot_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotPartsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[14]); +} + +// =================================================================== + +class GetRobotPartsResponse::_Internal { + public: +}; + +GetRobotPartsResponse::GetRobotPartsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetRobotPartsResponse) +} +GetRobotPartsResponse::GetRobotPartsResponse(const GetRobotPartsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetRobotPartsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.parts_){from._impl_.parts_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotPartsResponse) +} + +inline void GetRobotPartsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.parts_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetRobotPartsResponse::~GetRobotPartsResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotPartsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetRobotPartsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.parts_.~RepeatedPtrField(); +} + +void GetRobotPartsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetRobotPartsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.parts_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotPartsResponse::_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) { + // repeated .viam.app.v1.RobotPart parts = 1 [json_name = "parts"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_parts(), 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* GetRobotPartsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotPartsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.app.v1.RobotPart parts = 1 [json_name = "parts"]; + for (unsigned i = 0, + n = static_cast(this->_internal_parts_size()); i < n; i++) { + const auto& repfield = this->_internal_parts(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.GetRobotPartsResponse) + return target; +} + +size_t GetRobotPartsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotPartsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.app.v1.RobotPart parts = 1 [json_name = "parts"]; + total_size += 1UL * this->_internal_parts_size(); + for (const auto& msg : this->_impl_.parts_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotPartsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetRobotPartsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotPartsResponse::GetClassData() const { return &_class_data_; } + + +void GetRobotPartsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartsResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.parts_.MergeFrom(from._impl_.parts_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetRobotPartsResponse::CopyFrom(const GetRobotPartsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.GetRobotPartsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRobotPartsResponse::IsInitialized() const { + return true; +} + +void GetRobotPartsResponse::InternalSwap(GetRobotPartsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.parts_.InternalSwap(&other->_impl_.parts_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotPartsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[15]); +} + +// =================================================================== + +class GetRobotPartRequest::_Internal { + public: +}; + +GetRobotPartRequest::GetRobotPartRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetRobotPartRequest) +} +GetRobotPartRequest::GetRobotPartRequest(const GetRobotPartRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetRobotPartRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotPartRequest) +} + +inline void GetRobotPartRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetRobotPartRequest::~GetRobotPartRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotPartRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetRobotPartRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); +} + +void GetRobotPartRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetRobotPartRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotPartRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetRobotPartRequest.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* GetRobotPartRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotPartRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetRobotPartRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_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.GetRobotPartRequest) + return target; +} + +size_t GetRobotPartRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotPartRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotPartRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetRobotPartRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotPartRequest::GetClassData() const { return &_class_data_; } + + +void GetRobotPartRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetRobotPartRequest::CopyFrom(const GetRobotPartRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.GetRobotPartRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRobotPartRequest::IsInitialized() const { + return true; +} + +void GetRobotPartRequest::InternalSwap(GetRobotPartRequest* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotPartRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[16]); +} + +// =================================================================== + +class GetRobotPartResponse::_Internal { + public: + static const ::viam::app::v1::RobotPart& part(const GetRobotPartResponse* msg); +}; + +const ::viam::app::v1::RobotPart& +GetRobotPartResponse::_Internal::part(const GetRobotPartResponse* msg) { + return *msg->_impl_.part_; +} +GetRobotPartResponse::GetRobotPartResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetRobotPartResponse) +} +GetRobotPartResponse::GetRobotPartResponse(const GetRobotPartResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetRobotPartResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.config_json_){} + , decltype(_impl_.part_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.config_json_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.config_json_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_config_json().empty()) { + _this->_impl_.config_json_.Set(from._internal_config_json(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_part()) { + _this->_impl_.part_ = new ::viam::app::v1::RobotPart(*from._impl_.part_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotPartResponse) +} + +inline void GetRobotPartResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.config_json_){} + , decltype(_impl_.part_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.config_json_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.config_json_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetRobotPartResponse::~GetRobotPartResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotPartResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetRobotPartResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.config_json_.Destroy(); + if (this != internal_default_instance()) delete _impl_.part_; +} + +void GetRobotPartResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetRobotPartResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.config_json_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.part_ != nullptr) { + delete _impl_.part_; + } + _impl_.part_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotPartResponse::_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) { + // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_part(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string config_json = 2 [json_name = "configJson"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_config_json(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetRobotPartResponse.config_json")); + } 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* GetRobotPartResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotPartResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; + if (this->_internal_has_part()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::part(this), + _Internal::part(this).GetCachedSize(), target, stream); + } + + // string config_json = 2 [json_name = "configJson"]; + if (!this->_internal_config_json().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_config_json().data(), static_cast(this->_internal_config_json().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetRobotPartResponse.config_json"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_config_json(), 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.GetRobotPartResponse) + return target; +} + +size_t GetRobotPartResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotPartResponse) + 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 config_json = 2 [json_name = "configJson"]; + if (!this->_internal_config_json().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_config_json()); + } + + // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; + if (this->_internal_has_part()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.part_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotPartResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetRobotPartResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotPartResponse::GetClassData() const { return &_class_data_; } + + +void GetRobotPartResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_config_json().empty()) { + _this->_internal_set_config_json(from._internal_config_json()); + } + if (from._internal_has_part()) { + _this->_internal_mutable_part()->::viam::app::v1::RobotPart::MergeFrom( + from._internal_part()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetRobotPartResponse::CopyFrom(const GetRobotPartResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.GetRobotPartResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRobotPartResponse::IsInitialized() const { + return true; +} + +void GetRobotPartResponse::InternalSwap(GetRobotPartResponse* 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( + &_impl_.config_json_, lhs_arena, + &other->_impl_.config_json_, rhs_arena + ); + swap(_impl_.part_, other->_impl_.part_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotPartResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[17]); +} + +// =================================================================== + +class GetRobotPartLogsRequest::_Internal { + public: +}; + +GetRobotPartLogsRequest::GetRobotPartLogsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetRobotPartLogsRequest) +} +GetRobotPartLogsRequest::GetRobotPartLogsRequest(const GetRobotPartLogsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetRobotPartLogsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.errors_only_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + _this->_impl_.errors_only_ = from._impl_.errors_only_; + // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotPartLogsRequest) +} + +inline void GetRobotPartLogsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.errors_only_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetRobotPartLogsRequest::~GetRobotPartLogsRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotPartLogsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetRobotPartLogsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); +} + +void GetRobotPartLogsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetRobotPartLogsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartLogsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _impl_.errors_only_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotPartLogsRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetRobotPartLogsRequest.id")); + } else + goto handle_unusual; + continue; + // bool errors_only = 2 [json_name = "errorsOnly"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.errors_only_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetRobotPartLogsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotPartLogsRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetRobotPartLogsRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // bool errors_only = 2 [json_name = "errorsOnly"]; + if (this->_internal_errors_only() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_errors_only(), 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.GetRobotPartLogsRequest) + return target; +} + +size_t GetRobotPartLogsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotPartLogsRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // bool errors_only = 2 [json_name = "errorsOnly"]; + if (this->_internal_errors_only() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotPartLogsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetRobotPartLogsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotPartLogsRequest::GetClassData() const { return &_class_data_; } + + +void GetRobotPartLogsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartLogsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + if (from._internal_errors_only() != 0) { + _this->_internal_set_errors_only(from._internal_errors_only()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetRobotPartLogsRequest::CopyFrom(const GetRobotPartLogsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.GetRobotPartLogsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRobotPartLogsRequest::IsInitialized() const { + return true; +} + +void GetRobotPartLogsRequest::InternalSwap(GetRobotPartLogsRequest* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); + swap(_impl_.errors_only_, other->_impl_.errors_only_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotPartLogsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[18]); +} + +// =================================================================== + +class LogEntry::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& time(const LogEntry* msg); + static const ::PROTOBUF_NAMESPACE_ID::Struct& caller(const LogEntry* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +LogEntry::_Internal::time(const LogEntry* msg) { + return *msg->_impl_.time_; +} +const ::PROTOBUF_NAMESPACE_ID::Struct& +LogEntry::_Internal::caller(const LogEntry* msg) { + return *msg->_impl_.caller_; +} +void LogEntry::clear_time() { + if (GetArenaForAllocation() == nullptr && _impl_.time_ != nullptr) { + delete _impl_.time_; + } + _impl_.time_ = nullptr; +} +void LogEntry::clear_caller() { + if (GetArenaForAllocation() == nullptr && _impl_.caller_ != nullptr) { + delete _impl_.caller_; + } + _impl_.caller_ = nullptr; +} +void LogEntry::clear_fields() { + _impl_.fields_.Clear(); +} +LogEntry::LogEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.LogEntry) +} +LogEntry::LogEntry(const LogEntry& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + LogEntry* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.fields_){from._impl_.fields_} + , decltype(_impl_.host_){} + , decltype(_impl_.level_){} + , decltype(_impl_.logger_name_){} + , decltype(_impl_.message_){} + , decltype(_impl_.stack_){} + , decltype(_impl_.time_){nullptr} + , decltype(_impl_.caller_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.host_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.host_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_host().empty()) { + _this->_impl_.host_.Set(from._internal_host(), + _this->GetArenaForAllocation()); + } + _impl_.level_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.level_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_level().empty()) { + _this->_impl_.level_.Set(from._internal_level(), + _this->GetArenaForAllocation()); + } + _impl_.logger_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.logger_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_logger_name().empty()) { + _this->_impl_.logger_name_.Set(from._internal_logger_name(), + _this->GetArenaForAllocation()); + } + _impl_.message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + _this->_impl_.message_.Set(from._internal_message(), + _this->GetArenaForAllocation()); + } + _impl_.stack_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.stack_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_stack().empty()) { + _this->_impl_.stack_.Set(from._internal_stack(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_time()) { + _this->_impl_.time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.time_); + } + if (from._internal_has_caller()) { + _this->_impl_.caller_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.caller_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.LogEntry) +} + +inline void LogEntry::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.fields_){arena} + , decltype(_impl_.host_){} + , decltype(_impl_.level_){} + , decltype(_impl_.logger_name_){} + , decltype(_impl_.message_){} + , decltype(_impl_.stack_){} + , decltype(_impl_.time_){nullptr} + , decltype(_impl_.caller_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.host_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.host_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.level_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.level_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.logger_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.logger_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.stack_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.stack_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +LogEntry::~LogEntry() { + // @@protoc_insertion_point(destructor:viam.app.v1.LogEntry) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void LogEntry::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.fields_.~RepeatedPtrField(); + _impl_.host_.Destroy(); + _impl_.level_.Destroy(); + _impl_.logger_name_.Destroy(); + _impl_.message_.Destroy(); + _impl_.stack_.Destroy(); + if (this != internal_default_instance()) delete _impl_.time_; + if (this != internal_default_instance()) delete _impl_.caller_; +} + +void LogEntry::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void LogEntry::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.LogEntry) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.fields_.Clear(); + _impl_.host_.ClearToEmpty(); + _impl_.level_.ClearToEmpty(); + _impl_.logger_name_.ClearToEmpty(); + _impl_.message_.ClearToEmpty(); + _impl_.stack_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.time_ != nullptr) { + delete _impl_.time_; + } + _impl_.time_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.caller_ != nullptr) { + delete _impl_.caller_; + } + _impl_.caller_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LogEntry::_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 host = 1 [json_name = "host"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_host(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LogEntry.host")); + } else + goto handle_unusual; + continue; + // string level = 2 [json_name = "level"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_level(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LogEntry.level")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp time = 3 [json_name = "time"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_time(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string logger_name = 4 [json_name = "loggerName"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_logger_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LogEntry.logger_name")); + } else + goto handle_unusual; + continue; + // string message = 5 [json_name = "message"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LogEntry.message")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct caller = 6 [json_name = "caller"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_caller(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string stack = 7 [json_name = "stack"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_stack(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LogEntry.stack")); + } else + goto handle_unusual; + continue; + // repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_fields(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(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* LogEntry::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.LogEntry) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string host = 1 [json_name = "host"]; + if (!this->_internal_host().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_host().data(), static_cast(this->_internal_host().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.LogEntry.host"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_host(), target); + } + + // string level = 2 [json_name = "level"]; + if (!this->_internal_level().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_level().data(), static_cast(this->_internal_level().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.LogEntry.level"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_level(), target); + } + + // .google.protobuf.Timestamp time = 3 [json_name = "time"]; + if (this->_internal_has_time()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::time(this), + _Internal::time(this).GetCachedSize(), target, stream); + } + + // string logger_name = 4 [json_name = "loggerName"]; + if (!this->_internal_logger_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_logger_name().data(), static_cast(this->_internal_logger_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.LogEntry.logger_name"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_logger_name(), target); + } + + // string message = 5 [json_name = "message"]; + if (!this->_internal_message().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.LogEntry.message"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_message(), target); + } + + // .google.protobuf.Struct caller = 6 [json_name = "caller"]; + if (this->_internal_has_caller()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::caller(this), + _Internal::caller(this).GetCachedSize(), target, stream); + } + + // string stack = 7 [json_name = "stack"]; + if (!this->_internal_stack().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_stack().data(), static_cast(this->_internal_stack().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.LogEntry.stack"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_stack(), target); + } + + // repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; + for (unsigned i = 0, + n = static_cast(this->_internal_fields_size()); i < n; i++) { + const auto& repfield = this->_internal_fields(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.LogEntry) + return target; +} + +size_t LogEntry::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.LogEntry) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; + total_size += 1UL * this->_internal_fields_size(); + for (const auto& msg : this->_impl_.fields_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string host = 1 [json_name = "host"]; + if (!this->_internal_host().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_host()); + } + + // string level = 2 [json_name = "level"]; + if (!this->_internal_level().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_level()); + } + + // string logger_name = 4 [json_name = "loggerName"]; + if (!this->_internal_logger_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_logger_name()); + } + + // string message = 5 [json_name = "message"]; + if (!this->_internal_message().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); + } + + // string stack = 7 [json_name = "stack"]; + if (!this->_internal_stack().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_stack()); + } + + // .google.protobuf.Timestamp time = 3 [json_name = "time"]; + if (this->_internal_has_time()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.time_); + } + + // .google.protobuf.Struct caller = 6 [json_name = "caller"]; + if (this->_internal_has_caller()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.caller_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LogEntry::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + LogEntry::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogEntry::GetClassData() const { return &_class_data_; } + + +void LogEntry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LogEntry) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.fields_.MergeFrom(from._impl_.fields_); + if (!from._internal_host().empty()) { + _this->_internal_set_host(from._internal_host()); + } + if (!from._internal_level().empty()) { + _this->_internal_set_level(from._internal_level()); + } + if (!from._internal_logger_name().empty()) { + _this->_internal_set_logger_name(from._internal_logger_name()); + } + if (!from._internal_message().empty()) { + _this->_internal_set_message(from._internal_message()); + } + if (!from._internal_stack().empty()) { + _this->_internal_set_stack(from._internal_stack()); + } + if (from._internal_has_time()) { + _this->_internal_mutable_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_time()); + } + if (from._internal_has_caller()) { + _this->_internal_mutable_caller()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_caller()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void LogEntry::CopyFrom(const LogEntry& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.LogEntry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LogEntry::IsInitialized() const { + return true; +} + +void LogEntry::InternalSwap(LogEntry* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.fields_.InternalSwap(&other->_impl_.fields_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.host_, lhs_arena, + &other->_impl_.host_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.level_, lhs_arena, + &other->_impl_.level_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.logger_name_, lhs_arena, + &other->_impl_.logger_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.message_, lhs_arena, + &other->_impl_.message_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.stack_, lhs_arena, + &other->_impl_.stack_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(LogEntry, _impl_.caller_) + + sizeof(LogEntry::_impl_.caller_) + - PROTOBUF_FIELD_OFFSET(LogEntry, _impl_.time_)>( + reinterpret_cast(&_impl_.time_), + reinterpret_cast(&other->_impl_.time_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata LogEntry::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[19]); +} + +// =================================================================== + +class GetRobotPartLogsResponse::_Internal { + public: +}; + +GetRobotPartLogsResponse::GetRobotPartLogsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetRobotPartLogsResponse) +} +GetRobotPartLogsResponse::GetRobotPartLogsResponse(const GetRobotPartLogsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetRobotPartLogsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.logs_){from._impl_.logs_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotPartLogsResponse) +} + +inline void GetRobotPartLogsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.logs_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetRobotPartLogsResponse::~GetRobotPartLogsResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotPartLogsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetRobotPartLogsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.logs_.~RepeatedPtrField(); +} + +void GetRobotPartLogsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetRobotPartLogsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartLogsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.logs_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotPartLogsResponse::_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) { + // repeated .viam.app.v1.LogEntry logs = 1 [json_name = "logs"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_logs(), 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* GetRobotPartLogsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotPartLogsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.app.v1.LogEntry logs = 1 [json_name = "logs"]; + for (unsigned i = 0, + n = static_cast(this->_internal_logs_size()); i < n; i++) { + const auto& repfield = this->_internal_logs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.GetRobotPartLogsResponse) + return target; +} + +size_t GetRobotPartLogsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotPartLogsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.app.v1.LogEntry logs = 1 [json_name = "logs"]; + total_size += 1UL * this->_internal_logs_size(); + for (const auto& msg : this->_impl_.logs_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotPartLogsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetRobotPartLogsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotPartLogsResponse::GetClassData() const { return &_class_data_; } + + +void GetRobotPartLogsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartLogsResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.logs_.MergeFrom(from._impl_.logs_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetRobotPartLogsResponse::CopyFrom(const GetRobotPartLogsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.GetRobotPartLogsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRobotPartLogsResponse::IsInitialized() const { + return true; +} + +void GetRobotPartLogsResponse::InternalSwap(GetRobotPartLogsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.logs_.InternalSwap(&other->_impl_.logs_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotPartLogsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[20]); +} + +// =================================================================== + +class TailRobotPartLogsRequest::_Internal { + public: +}; + +TailRobotPartLogsRequest::TailRobotPartLogsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.TailRobotPartLogsRequest) +} +TailRobotPartLogsRequest::TailRobotPartLogsRequest(const TailRobotPartLogsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + TailRobotPartLogsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.errors_only_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + _this->_impl_.errors_only_ = from._impl_.errors_only_; + // @@protoc_insertion_point(copy_constructor:viam.app.v1.TailRobotPartLogsRequest) +} + +inline void TailRobotPartLogsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.errors_only_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +TailRobotPartLogsRequest::~TailRobotPartLogsRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.TailRobotPartLogsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void TailRobotPartLogsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); +} + +void TailRobotPartLogsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void TailRobotPartLogsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.TailRobotPartLogsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _impl_.errors_only_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TailRobotPartLogsRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.TailRobotPartLogsRequest.id")); + } else + goto handle_unusual; + continue; + // bool errors_only = 2 [json_name = "errorsOnly"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.errors_only_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* TailRobotPartLogsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.TailRobotPartLogsRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.TailRobotPartLogsRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // bool errors_only = 2 [json_name = "errorsOnly"]; + if (this->_internal_errors_only() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_errors_only(), 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.TailRobotPartLogsRequest) + return target; +} + +size_t TailRobotPartLogsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.TailRobotPartLogsRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // bool errors_only = 2 [json_name = "errorsOnly"]; + if (this->_internal_errors_only() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TailRobotPartLogsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + TailRobotPartLogsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TailRobotPartLogsRequest::GetClassData() const { return &_class_data_; } + + +void TailRobotPartLogsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.TailRobotPartLogsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + if (from._internal_errors_only() != 0) { + _this->_internal_set_errors_only(from._internal_errors_only()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void TailRobotPartLogsRequest::CopyFrom(const TailRobotPartLogsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.TailRobotPartLogsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TailRobotPartLogsRequest::IsInitialized() const { + return true; +} + +void TailRobotPartLogsRequest::InternalSwap(TailRobotPartLogsRequest* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); + swap(_impl_.errors_only_, other->_impl_.errors_only_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TailRobotPartLogsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[21]); +} + +// =================================================================== + +class TailRobotPartLogsResponse::_Internal { + public: +}; + +TailRobotPartLogsResponse::TailRobotPartLogsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.TailRobotPartLogsResponse) +} +TailRobotPartLogsResponse::TailRobotPartLogsResponse(const TailRobotPartLogsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + TailRobotPartLogsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.logs_){from._impl_.logs_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.TailRobotPartLogsResponse) +} + +inline void TailRobotPartLogsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.logs_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +TailRobotPartLogsResponse::~TailRobotPartLogsResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.TailRobotPartLogsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void TailRobotPartLogsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.logs_.~RepeatedPtrField(); +} + +void TailRobotPartLogsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void TailRobotPartLogsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.TailRobotPartLogsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.logs_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TailRobotPartLogsResponse::_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) { + // repeated .viam.app.v1.LogEntry logs = 1 [json_name = "logs"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_logs(), 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* TailRobotPartLogsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.TailRobotPartLogsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.app.v1.LogEntry logs = 1 [json_name = "logs"]; + for (unsigned i = 0, + n = static_cast(this->_internal_logs_size()); i < n; i++) { + const auto& repfield = this->_internal_logs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.TailRobotPartLogsResponse) + return target; +} + +size_t TailRobotPartLogsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.TailRobotPartLogsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.app.v1.LogEntry logs = 1 [json_name = "logs"]; + total_size += 1UL * this->_internal_logs_size(); + for (const auto& msg : this->_impl_.logs_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TailRobotPartLogsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + TailRobotPartLogsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TailRobotPartLogsResponse::GetClassData() const { return &_class_data_; } + + +void TailRobotPartLogsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.TailRobotPartLogsResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.logs_.MergeFrom(from._impl_.logs_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void TailRobotPartLogsResponse::CopyFrom(const TailRobotPartLogsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.TailRobotPartLogsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TailRobotPartLogsResponse::IsInitialized() const { + return true; +} + +void TailRobotPartLogsResponse::InternalSwap(TailRobotPartLogsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.logs_.InternalSwap(&other->_impl_.logs_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TailRobotPartLogsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[22]); +} + +// =================================================================== + +class GetRobotPartHistoryRequest::_Internal { + public: +}; + +GetRobotPartHistoryRequest::GetRobotPartHistoryRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetRobotPartHistoryRequest) +} +GetRobotPartHistoryRequest::GetRobotPartHistoryRequest(const GetRobotPartHistoryRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetRobotPartHistoryRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotPartHistoryRequest) +} + +inline void GetRobotPartHistoryRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetRobotPartHistoryRequest::~GetRobotPartHistoryRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotPartHistoryRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetRobotPartHistoryRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); +} + +void GetRobotPartHistoryRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetRobotPartHistoryRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartHistoryRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotPartHistoryRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetRobotPartHistoryRequest.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* GetRobotPartHistoryRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotPartHistoryRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetRobotPartHistoryRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_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.GetRobotPartHistoryRequest) + return target; +} + +size_t GetRobotPartHistoryRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotPartHistoryRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotPartHistoryRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetRobotPartHistoryRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotPartHistoryRequest::GetClassData() const { return &_class_data_; } + + +void GetRobotPartHistoryRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartHistoryRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetRobotPartHistoryRequest::CopyFrom(const GetRobotPartHistoryRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.GetRobotPartHistoryRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRobotPartHistoryRequest::IsInitialized() const { + return true; +} + +void GetRobotPartHistoryRequest::InternalSwap(GetRobotPartHistoryRequest* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotPartHistoryRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[23]); +} + +// =================================================================== + +class GetRobotPartHistoryResponse::_Internal { + public: +}; + +GetRobotPartHistoryResponse::GetRobotPartHistoryResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetRobotPartHistoryResponse) +} +GetRobotPartHistoryResponse::GetRobotPartHistoryResponse(const GetRobotPartHistoryResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetRobotPartHistoryResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.history_){from._impl_.history_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotPartHistoryResponse) +} + +inline void GetRobotPartHistoryResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.history_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetRobotPartHistoryResponse::~GetRobotPartHistoryResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotPartHistoryResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetRobotPartHistoryResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.history_.~RepeatedPtrField(); +} + +void GetRobotPartHistoryResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetRobotPartHistoryResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartHistoryResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.history_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotPartHistoryResponse::_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) { + // repeated .viam.app.v1.RobotPartHistoryEntry history = 1 [json_name = "history"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_history(), 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* GetRobotPartHistoryResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotPartHistoryResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.app.v1.RobotPartHistoryEntry history = 1 [json_name = "history"]; + for (unsigned i = 0, + n = static_cast(this->_internal_history_size()); i < n; i++) { + const auto& repfield = this->_internal_history(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.GetRobotPartHistoryResponse) + return target; +} + +size_t GetRobotPartHistoryResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotPartHistoryResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.app.v1.RobotPartHistoryEntry history = 1 [json_name = "history"]; + total_size += 1UL * this->_internal_history_size(); + for (const auto& msg : this->_impl_.history_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotPartHistoryResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetRobotPartHistoryResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotPartHistoryResponse::GetClassData() const { return &_class_data_; } + + +void GetRobotPartHistoryResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartHistoryResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.history_.MergeFrom(from._impl_.history_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetRobotPartHistoryResponse::CopyFrom(const GetRobotPartHistoryResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.GetRobotPartHistoryResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRobotPartHistoryResponse::IsInitialized() const { + return true; +} + +void GetRobotPartHistoryResponse::InternalSwap(GetRobotPartHistoryResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.history_.InternalSwap(&other->_impl_.history_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotPartHistoryResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[24]); +} + +// =================================================================== + +class UpdateRobotPartRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& robot_config(const UpdateRobotPartRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +UpdateRobotPartRequest::_Internal::robot_config(const UpdateRobotPartRequest* msg) { + return *msg->_impl_.robot_config_; +} +void UpdateRobotPartRequest::clear_robot_config() { + if (GetArenaForAllocation() == nullptr && _impl_.robot_config_ != nullptr) { + delete _impl_.robot_config_; + } + _impl_.robot_config_ = nullptr; +} +UpdateRobotPartRequest::UpdateRobotPartRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.UpdateRobotPartRequest) +} +UpdateRobotPartRequest::UpdateRobotPartRequest(const UpdateRobotPartRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + UpdateRobotPartRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.name_){} + , decltype(_impl_.robot_config_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_robot_config()) { + _this->_impl_.robot_config_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.robot_config_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateRobotPartRequest) +} + +inline void UpdateRobotPartRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.name_){} + , decltype(_impl_.robot_config_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +UpdateRobotPartRequest::~UpdateRobotPartRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.UpdateRobotPartRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void UpdateRobotPartRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.robot_config_; +} + +void UpdateRobotPartRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void UpdateRobotPartRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateRobotPartRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.robot_config_ != nullptr) { + delete _impl_.robot_config_; + } + _impl_.robot_config_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateRobotPartRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateRobotPartRequest.id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateRobotPartRequest.name")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct robot_config = 3 [json_name = "robotConfig"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_robot_config(), 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* UpdateRobotPartRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateRobotPartRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateRobotPartRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // string name = 2 [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.app.v1.UpdateRobotPartRequest.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); + } + + // .google.protobuf.Struct robot_config = 3 [json_name = "robotConfig"]; + if (this->_internal_has_robot_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::robot_config(this), + _Internal::robot_config(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.UpdateRobotPartRequest) + return target; +} + +size_t UpdateRobotPartRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateRobotPartRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // string name = 2 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // .google.protobuf.Struct robot_config = 3 [json_name = "robotConfig"]; + if (this->_internal_has_robot_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.robot_config_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateRobotPartRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + UpdateRobotPartRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateRobotPartRequest::GetClassData() const { return &_class_data_; } + + +void UpdateRobotPartRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateRobotPartRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_robot_config()) { + _this->_internal_mutable_robot_config()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_robot_config()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void UpdateRobotPartRequest::CopyFrom(const UpdateRobotPartRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.UpdateRobotPartRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UpdateRobotPartRequest::IsInitialized() const { + return true; +} + +void UpdateRobotPartRequest::InternalSwap(UpdateRobotPartRequest* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.robot_config_, other->_impl_.robot_config_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UpdateRobotPartRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[25]); +} + +// =================================================================== + +class UpdateRobotPartResponse::_Internal { + public: + static const ::viam::app::v1::RobotPart& part(const UpdateRobotPartResponse* msg); +}; + +const ::viam::app::v1::RobotPart& +UpdateRobotPartResponse::_Internal::part(const UpdateRobotPartResponse* msg) { + return *msg->_impl_.part_; +} +UpdateRobotPartResponse::UpdateRobotPartResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.UpdateRobotPartResponse) +} +UpdateRobotPartResponse::UpdateRobotPartResponse(const UpdateRobotPartResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + UpdateRobotPartResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.part_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_part()) { + _this->_impl_.part_ = new ::viam::app::v1::RobotPart(*from._impl_.part_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateRobotPartResponse) +} + +inline void UpdateRobotPartResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.part_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +UpdateRobotPartResponse::~UpdateRobotPartResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.UpdateRobotPartResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void UpdateRobotPartResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.part_; +} + +void UpdateRobotPartResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void UpdateRobotPartResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateRobotPartResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.part_ != nullptr) { + delete _impl_.part_; + } + _impl_.part_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateRobotPartResponse::_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) { + // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_part(), 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* UpdateRobotPartResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateRobotPartResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; + if (this->_internal_has_part()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::part(this), + _Internal::part(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.UpdateRobotPartResponse) + return target; +} + +size_t UpdateRobotPartResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateRobotPartResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; + if (this->_internal_has_part()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.part_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateRobotPartResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + UpdateRobotPartResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateRobotPartResponse::GetClassData() const { return &_class_data_; } + + +void UpdateRobotPartResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateRobotPartResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_part()) { + _this->_internal_mutable_part()->::viam::app::v1::RobotPart::MergeFrom( + from._internal_part()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void UpdateRobotPartResponse::CopyFrom(const UpdateRobotPartResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.UpdateRobotPartResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UpdateRobotPartResponse::IsInitialized() const { + return true; +} + +void UpdateRobotPartResponse::InternalSwap(UpdateRobotPartResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.part_, other->_impl_.part_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UpdateRobotPartResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[26]); +} + +// =================================================================== + +class NewRobotPartRequest::_Internal { + public: +}; + +NewRobotPartRequest::NewRobotPartRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.NewRobotPartRequest) +} +NewRobotPartRequest::NewRobotPartRequest(const NewRobotPartRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + NewRobotPartRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.robot_id_){} + , decltype(_impl_.part_name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.robot_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_robot_id().empty()) { + _this->_impl_.robot_id_.Set(from._internal_robot_id(), + _this->GetArenaForAllocation()); + } + _impl_.part_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_part_name().empty()) { + _this->_impl_.part_name_.Set(from._internal_part_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.NewRobotPartRequest) +} + +inline void NewRobotPartRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.robot_id_){} + , decltype(_impl_.part_name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.robot_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.robot_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +NewRobotPartRequest::~NewRobotPartRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.NewRobotPartRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void NewRobotPartRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.robot_id_.Destroy(); + _impl_.part_name_.Destroy(); +} + +void NewRobotPartRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void NewRobotPartRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.NewRobotPartRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.robot_id_.ClearToEmpty(); + _impl_.part_name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NewRobotPartRequest::_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 robot_id = 1 [json_name = "robotId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_robot_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NewRobotPartRequest.robot_id")); + } else + goto handle_unusual; + continue; + // string part_name = 2 [json_name = "partName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_part_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NewRobotPartRequest.part_name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* NewRobotPartRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.NewRobotPartRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string robot_id = 1 [json_name = "robotId"]; + if (!this->_internal_robot_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_robot_id().data(), static_cast(this->_internal_robot_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NewRobotPartRequest.robot_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_robot_id(), target); + } + + // string part_name = 2 [json_name = "partName"]; + if (!this->_internal_part_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_part_name().data(), static_cast(this->_internal_part_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NewRobotPartRequest.part_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_part_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.NewRobotPartRequest) + return target; +} + +size_t NewRobotPartRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.NewRobotPartRequest) + 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 robot_id = 1 [json_name = "robotId"]; + if (!this->_internal_robot_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_robot_id()); + } + + // string part_name = 2 [json_name = "partName"]; + if (!this->_internal_part_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_part_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NewRobotPartRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + NewRobotPartRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NewRobotPartRequest::GetClassData() const { return &_class_data_; } + + +void NewRobotPartRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.NewRobotPartRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_robot_id().empty()) { + _this->_internal_set_robot_id(from._internal_robot_id()); + } + if (!from._internal_part_name().empty()) { + _this->_internal_set_part_name(from._internal_part_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void NewRobotPartRequest::CopyFrom(const NewRobotPartRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.NewRobotPartRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NewRobotPartRequest::IsInitialized() const { + return true; +} + +void NewRobotPartRequest::InternalSwap(NewRobotPartRequest* 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( + &_impl_.robot_id_, lhs_arena, + &other->_impl_.robot_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.part_name_, lhs_arena, + &other->_impl_.part_name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata NewRobotPartRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[27]); +} + +// =================================================================== + +class NewRobotPartResponse::_Internal { + public: +}; + +NewRobotPartResponse::NewRobotPartResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.NewRobotPartResponse) +} +NewRobotPartResponse::NewRobotPartResponse(const NewRobotPartResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + NewRobotPartResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.part_id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_part_id().empty()) { + _this->_impl_.part_id_.Set(from._internal_part_id(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.NewRobotPartResponse) +} + +inline void NewRobotPartResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.part_id_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +NewRobotPartResponse::~NewRobotPartResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.NewRobotPartResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void NewRobotPartResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.part_id_.Destroy(); +} + +void NewRobotPartResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void NewRobotPartResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.NewRobotPartResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.part_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NewRobotPartResponse::_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 part_id = 1 [json_name = "partId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_part_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NewRobotPartResponse.part_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* NewRobotPartResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.NewRobotPartResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string part_id = 1 [json_name = "partId"]; + if (!this->_internal_part_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_part_id().data(), static_cast(this->_internal_part_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NewRobotPartResponse.part_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_part_id(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.NewRobotPartResponse) + return target; +} + +size_t NewRobotPartResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.NewRobotPartResponse) + 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 part_id = 1 [json_name = "partId"]; + if (!this->_internal_part_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_part_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NewRobotPartResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + NewRobotPartResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NewRobotPartResponse::GetClassData() const { return &_class_data_; } + + +void NewRobotPartResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.NewRobotPartResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_part_id().empty()) { + _this->_internal_set_part_id(from._internal_part_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void NewRobotPartResponse::CopyFrom(const NewRobotPartResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.NewRobotPartResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NewRobotPartResponse::IsInitialized() const { + return true; +} + +void NewRobotPartResponse::InternalSwap(NewRobotPartResponse* 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( + &_impl_.part_id_, lhs_arena, + &other->_impl_.part_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata NewRobotPartResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[28]); +} + +// =================================================================== + +class DeleteRobotPartRequest::_Internal { + public: +}; + +DeleteRobotPartRequest::DeleteRobotPartRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.DeleteRobotPartRequest) +} +DeleteRobotPartRequest::DeleteRobotPartRequest(const DeleteRobotPartRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DeleteRobotPartRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.part_id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_part_id().empty()) { + _this->_impl_.part_id_.Set(from._internal_part_id(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteRobotPartRequest) +} + +inline void DeleteRobotPartRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.part_id_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +DeleteRobotPartRequest::~DeleteRobotPartRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.DeleteRobotPartRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DeleteRobotPartRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.part_id_.Destroy(); +} + +void DeleteRobotPartRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DeleteRobotPartRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteRobotPartRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.part_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteRobotPartRequest::_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 part_id = 1 [json_name = "partId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_part_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.DeleteRobotPartRequest.part_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* DeleteRobotPartRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.DeleteRobotPartRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string part_id = 1 [json_name = "partId"]; + if (!this->_internal_part_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_part_id().data(), static_cast(this->_internal_part_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.DeleteRobotPartRequest.part_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_part_id(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.DeleteRobotPartRequest) + return target; +} + +size_t DeleteRobotPartRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.DeleteRobotPartRequest) + 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 part_id = 1 [json_name = "partId"]; + if (!this->_internal_part_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_part_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteRobotPartRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DeleteRobotPartRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteRobotPartRequest::GetClassData() const { return &_class_data_; } + + +void DeleteRobotPartRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteRobotPartRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_part_id().empty()) { + _this->_internal_set_part_id(from._internal_part_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DeleteRobotPartRequest::CopyFrom(const DeleteRobotPartRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.DeleteRobotPartRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteRobotPartRequest::IsInitialized() const { + return true; +} + +void DeleteRobotPartRequest::InternalSwap(DeleteRobotPartRequest* 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( + &_impl_.part_id_, lhs_arena, + &other->_impl_.part_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DeleteRobotPartRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[29]); +} + +// =================================================================== + +class DeleteRobotPartResponse::_Internal { + public: +}; + +DeleteRobotPartResponse::DeleteRobotPartResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.app.v1.DeleteRobotPartResponse) +} +DeleteRobotPartResponse::DeleteRobotPartResponse(const DeleteRobotPartResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + DeleteRobotPartResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteRobotPartResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteRobotPartResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteRobotPartResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata DeleteRobotPartResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[30]); +} + +// =================================================================== + +class Fragment::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& fragment(const Fragment* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on(const Fragment* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +Fragment::_Internal::fragment(const Fragment* msg) { + return *msg->_impl_.fragment_; +} +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +Fragment::_Internal::created_on(const Fragment* msg) { + return *msg->_impl_.created_on_; +} +void Fragment::clear_fragment() { + if (GetArenaForAllocation() == nullptr && _impl_.fragment_ != nullptr) { + delete _impl_.fragment_; + } + _impl_.fragment_ = nullptr; +} +void Fragment::clear_created_on() { + if (GetArenaForAllocation() == nullptr && _impl_.created_on_ != nullptr) { + delete _impl_.created_on_; + } + _impl_.created_on_ = nullptr; +} +Fragment::Fragment(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.Fragment) +} +Fragment::Fragment(const Fragment& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Fragment* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.name_){} + , decltype(_impl_.organization_owner_){} + , decltype(_impl_.fragment_){nullptr} + , decltype(_impl_.created_on_){nullptr} + , decltype(_impl_.public__){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.organization_owner_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.organization_owner_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_owner().empty()) { + _this->_impl_.organization_owner_.Set(from._internal_organization_owner(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_fragment()) { + _this->_impl_.fragment_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.fragment_); + } + if (from._internal_has_created_on()) { + _this->_impl_.created_on_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.created_on_); + } + _this->_impl_.public__ = from._impl_.public__; + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Fragment) +} + +inline void Fragment::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.name_){} + , decltype(_impl_.organization_owner_){} + , decltype(_impl_.fragment_){nullptr} + , decltype(_impl_.created_on_){nullptr} + , decltype(_impl_.public__){false} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.organization_owner_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.organization_owner_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Fragment::~Fragment() { + // @@protoc_insertion_point(destructor:viam.app.v1.Fragment) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Fragment::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); + _impl_.name_.Destroy(); + _impl_.organization_owner_.Destroy(); + if (this != internal_default_instance()) delete _impl_.fragment_; + if (this != internal_default_instance()) delete _impl_.created_on_; +} + +void Fragment::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Fragment::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.Fragment) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _impl_.name_.ClearToEmpty(); + _impl_.organization_owner_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.fragment_ != nullptr) { + delete _impl_.fragment_; + } + _impl_.fragment_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.created_on_ != nullptr) { + delete _impl_.created_on_; + } + _impl_.created_on_ = nullptr; + _impl_.public__ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Fragment::_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 id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Fragment.id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Fragment.name")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct fragment = 3 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_fragment(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string organization_owner = 4 [json_name = "organizationOwner", (.tagger.v1.tags) = "bson:\"organization_owner\" json:\"owner\""]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_organization_owner(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Fragment.organization_owner")); + } else + goto handle_unusual; + continue; + // bool public = 5 [json_name = "public", (.tagger.v1.tags) = "bson:\"public\" json:\"public\""]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + _impl_.public__ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp created_on = 6 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_created_on(), 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* Fragment::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Fragment) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Fragment.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"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.app.v1.Fragment.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); + } + + // .google.protobuf.Struct fragment = 3 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; + if (this->_internal_has_fragment()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::fragment(this), + _Internal::fragment(this).GetCachedSize(), target, stream); + } + + // string organization_owner = 4 [json_name = "organizationOwner", (.tagger.v1.tags) = "bson:\"organization_owner\" json:\"owner\""]; + if (!this->_internal_organization_owner().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_owner().data(), static_cast(this->_internal_organization_owner().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Fragment.organization_owner"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_organization_owner(), target); + } + + // bool public = 5 [json_name = "public", (.tagger.v1.tags) = "bson:\"public\" json:\"public\""]; + if (this->_internal_public_() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_public_(), target); + } + + // .google.protobuf.Timestamp created_on = 6 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; + if (this->_internal_has_created_on()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::created_on(this), + _Internal::created_on(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.Fragment) + return target; +} + +size_t Fragment::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Fragment) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // string organization_owner = 4 [json_name = "organizationOwner", (.tagger.v1.tags) = "bson:\"organization_owner\" json:\"owner\""]; + if (!this->_internal_organization_owner().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_owner()); + } + + // .google.protobuf.Struct fragment = 3 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; + if (this->_internal_has_fragment()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.fragment_); + } + + // .google.protobuf.Timestamp created_on = 6 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; + if (this->_internal_has_created_on()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.created_on_); + } + + // bool public = 5 [json_name = "public", (.tagger.v1.tags) = "bson:\"public\" json:\"public\""]; + if (this->_internal_public_() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Fragment::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Fragment::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Fragment::GetClassData() const { return &_class_data_; } + + +void Fragment::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Fragment) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_organization_owner().empty()) { + _this->_internal_set_organization_owner(from._internal_organization_owner()); + } + if (from._internal_has_fragment()) { + _this->_internal_mutable_fragment()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_fragment()); + } + if (from._internal_has_created_on()) { + _this->_internal_mutable_created_on()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_created_on()); + } + if (from._internal_public_() != 0) { + _this->_internal_set_public_(from._internal_public_()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Fragment::CopyFrom(const Fragment& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.Fragment) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Fragment::IsInitialized() const { + return true; +} + +void Fragment::InternalSwap(Fragment* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.organization_owner_, lhs_arena, + &other->_impl_.organization_owner_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Fragment, _impl_.public__) + + sizeof(Fragment::_impl_.public__) + - PROTOBUF_FIELD_OFFSET(Fragment, _impl_.fragment_)>( + reinterpret_cast(&_impl_.fragment_), + reinterpret_cast(&other->_impl_.fragment_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Fragment::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[31]); +} + +// =================================================================== + +class FindRobotsRequest::_Internal { + public: +}; + +FindRobotsRequest::FindRobotsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.FindRobotsRequest) +} +FindRobotsRequest::FindRobotsRequest(const FindRobotsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + FindRobotsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.location_id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + _this->_impl_.location_id_.Set(from._internal_location_id(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.FindRobotsRequest) +} + +inline void FindRobotsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.location_id_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +FindRobotsRequest::~FindRobotsRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.FindRobotsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void FindRobotsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.location_id_.Destroy(); +} + +void FindRobotsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void FindRobotsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.FindRobotsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.location_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FindRobotsRequest::_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 location_id = 1 [json_name = "locationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.FindRobotsRequest.location_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* FindRobotsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.FindRobotsRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string location_id = 1 [json_name = "locationId"]; + if (!this->_internal_location_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.FindRobotsRequest.location_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_location_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.FindRobotsRequest) + return target; +} + +size_t FindRobotsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.FindRobotsRequest) + 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 location_id = 1 [json_name = "locationId"]; + if (!this->_internal_location_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FindRobotsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + FindRobotsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FindRobotsRequest::GetClassData() const { return &_class_data_; } + + +void FindRobotsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.FindRobotsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_location_id().empty()) { + _this->_internal_set_location_id(from._internal_location_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void FindRobotsRequest::CopyFrom(const FindRobotsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.FindRobotsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FindRobotsRequest::IsInitialized() const { + return true; +} + +void FindRobotsRequest::InternalSwap(FindRobotsRequest* 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( + &_impl_.location_id_, lhs_arena, + &other->_impl_.location_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FindRobotsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[32]); +} + +// =================================================================== + +class FindRobotsResponse::_Internal { + public: +}; + +FindRobotsResponse::FindRobotsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.FindRobotsResponse) +} +FindRobotsResponse::FindRobotsResponse(const FindRobotsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + FindRobotsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.robots_){from._impl_.robots_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.FindRobotsResponse) +} + +inline void FindRobotsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.robots_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +FindRobotsResponse::~FindRobotsResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.FindRobotsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void FindRobotsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.robots_.~RepeatedPtrField(); +} + +void FindRobotsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void FindRobotsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.FindRobotsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.robots_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FindRobotsResponse::_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) { + // repeated .viam.app.v1.Robot robots = 1 [json_name = "robots"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_robots(), 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* FindRobotsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.FindRobotsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.app.v1.Robot robots = 1 [json_name = "robots"]; + for (unsigned i = 0, + n = static_cast(this->_internal_robots_size()); i < n; i++) { + const auto& repfield = this->_internal_robots(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.FindRobotsResponse) + return target; +} + +size_t FindRobotsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.FindRobotsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.app.v1.Robot robots = 1 [json_name = "robots"]; + total_size += 1UL * this->_internal_robots_size(); + for (const auto& msg : this->_impl_.robots_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FindRobotsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + FindRobotsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FindRobotsResponse::GetClassData() const { return &_class_data_; } + + +void FindRobotsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.FindRobotsResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.robots_.MergeFrom(from._impl_.robots_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void FindRobotsResponse::CopyFrom(const FindRobotsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.FindRobotsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FindRobotsResponse::IsInitialized() const { + return true; +} + +void FindRobotsResponse::InternalSwap(FindRobotsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.robots_.InternalSwap(&other->_impl_.robots_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FindRobotsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[33]); +} + +// =================================================================== + +class NewRobotRequest::_Internal { + public: +}; + +NewRobotRequest::NewRobotRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.NewRobotRequest) +} +NewRobotRequest::NewRobotRequest(const NewRobotRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + NewRobotRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.location_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location().empty()) { + _this->_impl_.location_.Set(from._internal_location(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.NewRobotRequest) +} + +inline void NewRobotRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.location_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +NewRobotRequest::~NewRobotRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.NewRobotRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void NewRobotRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.location_.Destroy(); +} + +void NewRobotRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void NewRobotRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.NewRobotRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.location_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NewRobotRequest::_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.app.v1.NewRobotRequest.name")); + } else + goto handle_unusual; + continue; + // string location = 2 [json_name = "location"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_location(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NewRobotRequest.location")); + } 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* NewRobotRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.NewRobotRequest) + 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.app.v1.NewRobotRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string location = 2 [json_name = "location"]; + if (!this->_internal_location().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location().data(), static_cast(this->_internal_location().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NewRobotRequest.location"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_location(), 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.NewRobotRequest) + return target; +} + +size_t NewRobotRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.NewRobotRequest) + 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 location = 2 [json_name = "location"]; + if (!this->_internal_location().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NewRobotRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + NewRobotRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NewRobotRequest::GetClassData() const { return &_class_data_; } + + +void NewRobotRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.NewRobotRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_location().empty()) { + _this->_internal_set_location(from._internal_location()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void NewRobotRequest::CopyFrom(const NewRobotRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.NewRobotRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NewRobotRequest::IsInitialized() const { + return true; +} + +void NewRobotRequest::InternalSwap(NewRobotRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.location_, lhs_arena, + &other->_impl_.location_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata NewRobotRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[34]); +} + +// =================================================================== + +class NewRobotResponse::_Internal { + public: +}; + +NewRobotResponse::NewRobotResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.NewRobotResponse) +} +NewRobotResponse::NewRobotResponse(const NewRobotResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + NewRobotResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.NewRobotResponse) +} + +inline void NewRobotResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +NewRobotResponse::~NewRobotResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.NewRobotResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void NewRobotResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); +} + +void NewRobotResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void NewRobotResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.NewRobotResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NewRobotResponse::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NewRobotResponse.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* NewRobotResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.NewRobotResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NewRobotResponse.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_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.NewRobotResponse) + return target; +} + +size_t NewRobotResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.NewRobotResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NewRobotResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + NewRobotResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NewRobotResponse::GetClassData() const { return &_class_data_; } + + +void NewRobotResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.NewRobotResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void NewRobotResponse::CopyFrom(const NewRobotResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.NewRobotResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NewRobotResponse::IsInitialized() const { + return true; +} + +void NewRobotResponse::InternalSwap(NewRobotResponse* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata NewRobotResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[35]); +} + +// =================================================================== + +class UpdateRobotRequest::_Internal { + public: +}; + +UpdateRobotRequest::UpdateRobotRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.UpdateRobotRequest) +} +UpdateRobotRequest::UpdateRobotRequest(const UpdateRobotRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + UpdateRobotRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.name_){} + , decltype(_impl_.location_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location().empty()) { + _this->_impl_.location_.Set(from._internal_location(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateRobotRequest) +} + +inline void UpdateRobotRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.name_){} + , decltype(_impl_.location_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +UpdateRobotRequest::~UpdateRobotRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.UpdateRobotRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void UpdateRobotRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); + _impl_.name_.Destroy(); + _impl_.location_.Destroy(); +} + +void UpdateRobotRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void UpdateRobotRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateRobotRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _impl_.name_.ClearToEmpty(); + _impl_.location_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateRobotRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateRobotRequest.id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateRobotRequest.name")); + } else + goto handle_unusual; + continue; + // string location = 3 [json_name = "location"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_location(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateRobotRequest.location")); + } 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* UpdateRobotRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateRobotRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateRobotRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // string name = 2 [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.app.v1.UpdateRobotRequest.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); + } + + // string location = 3 [json_name = "location"]; + if (!this->_internal_location().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location().data(), static_cast(this->_internal_location().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateRobotRequest.location"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_location(), 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.UpdateRobotRequest) + return target; +} + +size_t UpdateRobotRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateRobotRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // string name = 2 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // string location = 3 [json_name = "location"]; + if (!this->_internal_location().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateRobotRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + UpdateRobotRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateRobotRequest::GetClassData() const { return &_class_data_; } + + +void UpdateRobotRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateRobotRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_location().empty()) { + _this->_internal_set_location(from._internal_location()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void UpdateRobotRequest::CopyFrom(const UpdateRobotRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.UpdateRobotRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UpdateRobotRequest::IsInitialized() const { + return true; +} + +void UpdateRobotRequest::InternalSwap(UpdateRobotRequest* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.location_, lhs_arena, + &other->_impl_.location_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UpdateRobotRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[36]); +} + +// =================================================================== + +class UpdateRobotResponse::_Internal { + public: + static const ::viam::app::v1::Robot& robot(const UpdateRobotResponse* msg); +}; + +const ::viam::app::v1::Robot& +UpdateRobotResponse::_Internal::robot(const UpdateRobotResponse* msg) { + return *msg->_impl_.robot_; +} +UpdateRobotResponse::UpdateRobotResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.UpdateRobotResponse) +} +UpdateRobotResponse::UpdateRobotResponse(const UpdateRobotResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + UpdateRobotResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.robot_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_robot()) { + _this->_impl_.robot_ = new ::viam::app::v1::Robot(*from._impl_.robot_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateRobotResponse) +} + +inline void UpdateRobotResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.robot_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +UpdateRobotResponse::~UpdateRobotResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.UpdateRobotResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void UpdateRobotResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.robot_; +} + +void UpdateRobotResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void UpdateRobotResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateRobotResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.robot_ != nullptr) { + delete _impl_.robot_; + } + _impl_.robot_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateRobotResponse::_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) { + // .viam.app.v1.Robot robot = 1 [json_name = "robot"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_robot(), 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* UpdateRobotResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateRobotResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.v1.Robot robot = 1 [json_name = "robot"]; + if (this->_internal_has_robot()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::robot(this), + _Internal::robot(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.UpdateRobotResponse) + return target; +} + +size_t UpdateRobotResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateRobotResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.app.v1.Robot robot = 1 [json_name = "robot"]; + if (this->_internal_has_robot()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.robot_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateRobotResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + UpdateRobotResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateRobotResponse::GetClassData() const { return &_class_data_; } + + +void UpdateRobotResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateRobotResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_robot()) { + _this->_internal_mutable_robot()->::viam::app::v1::Robot::MergeFrom( + from._internal_robot()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void UpdateRobotResponse::CopyFrom(const UpdateRobotResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.UpdateRobotResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UpdateRobotResponse::IsInitialized() const { + return true; +} + +void UpdateRobotResponse::InternalSwap(UpdateRobotResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.robot_, other->_impl_.robot_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UpdateRobotResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[37]); +} + +// =================================================================== + +class DeleteRobotRequest::_Internal { + public: +}; + +DeleteRobotRequest::DeleteRobotRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.DeleteRobotRequest) +} +DeleteRobotRequest::DeleteRobotRequest(const DeleteRobotRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DeleteRobotRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteRobotRequest) +} + +inline void DeleteRobotRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +DeleteRobotRequest::~DeleteRobotRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.DeleteRobotRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DeleteRobotRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); +} + +void DeleteRobotRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DeleteRobotRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteRobotRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteRobotRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.DeleteRobotRequest.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* DeleteRobotRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.DeleteRobotRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.DeleteRobotRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_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.DeleteRobotRequest) + return target; +} + +size_t DeleteRobotRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.DeleteRobotRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteRobotRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DeleteRobotRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteRobotRequest::GetClassData() const { return &_class_data_; } + + +void DeleteRobotRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteRobotRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DeleteRobotRequest::CopyFrom(const DeleteRobotRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.DeleteRobotRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteRobotRequest::IsInitialized() const { + return true; +} + +void DeleteRobotRequest::InternalSwap(DeleteRobotRequest* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DeleteRobotRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[38]); +} + +// =================================================================== + +class DeleteRobotResponse::_Internal { + public: +}; + +DeleteRobotResponse::DeleteRobotResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.app.v1.DeleteRobotResponse) +} +DeleteRobotResponse::DeleteRobotResponse(const DeleteRobotResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + DeleteRobotResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteRobotResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteRobotResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteRobotResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata DeleteRobotResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[39]); +} + +// =================================================================== + +class MarkPartAsMainRequest::_Internal { + public: +}; + +MarkPartAsMainRequest::MarkPartAsMainRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.MarkPartAsMainRequest) +} +MarkPartAsMainRequest::MarkPartAsMainRequest(const MarkPartAsMainRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + MarkPartAsMainRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.part_id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_part_id().empty()) { + _this->_impl_.part_id_.Set(from._internal_part_id(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.MarkPartAsMainRequest) +} + +inline void MarkPartAsMainRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.part_id_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +MarkPartAsMainRequest::~MarkPartAsMainRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.MarkPartAsMainRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void MarkPartAsMainRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.part_id_.Destroy(); +} + +void MarkPartAsMainRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void MarkPartAsMainRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.MarkPartAsMainRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.part_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MarkPartAsMainRequest::_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 part_id = 1 [json_name = "partId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_part_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.MarkPartAsMainRequest.part_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* MarkPartAsMainRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.MarkPartAsMainRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string part_id = 1 [json_name = "partId"]; + if (!this->_internal_part_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_part_id().data(), static_cast(this->_internal_part_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.MarkPartAsMainRequest.part_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_part_id(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.MarkPartAsMainRequest) + return target; +} + +size_t MarkPartAsMainRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.MarkPartAsMainRequest) + 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 part_id = 1 [json_name = "partId"]; + if (!this->_internal_part_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_part_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MarkPartAsMainRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MarkPartAsMainRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MarkPartAsMainRequest::GetClassData() const { return &_class_data_; } + + +void MarkPartAsMainRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.MarkPartAsMainRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_part_id().empty()) { + _this->_internal_set_part_id(from._internal_part_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MarkPartAsMainRequest::CopyFrom(const MarkPartAsMainRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.MarkPartAsMainRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MarkPartAsMainRequest::IsInitialized() const { + return true; +} + +void MarkPartAsMainRequest::InternalSwap(MarkPartAsMainRequest* 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( + &_impl_.part_id_, lhs_arena, + &other->_impl_.part_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MarkPartAsMainRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[40]); +} + +// =================================================================== + +class MarkPartAsMainResponse::_Internal { + public: +}; + +MarkPartAsMainResponse::MarkPartAsMainResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.app.v1.MarkPartAsMainResponse) +} +MarkPartAsMainResponse::MarkPartAsMainResponse(const MarkPartAsMainResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + MarkPartAsMainResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.MarkPartAsMainResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MarkPartAsMainResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MarkPartAsMainResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata MarkPartAsMainResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[41]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace app +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::app::v1::Robot* +Arena::CreateMaybeMessage< ::viam::app::v1::Robot >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Robot >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RobotPart* +Arena::CreateMaybeMessage< ::viam::app::v1::RobotPart >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RobotPart >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RobotPartHistoryEntry* +Arena::CreateMaybeMessage< ::viam::app::v1::RobotPartHistoryEntry >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RobotPartHistoryEntry >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListOrganizationsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::ListOrganizationsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListOrganizationsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Organization* +Arena::CreateMaybeMessage< ::viam::app::v1::Organization >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Organization >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListOrganizationsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::ListOrganizationsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListOrganizationsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Location* +Arena::CreateMaybeMessage< ::viam::app::v1::Location >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Location >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListLocationsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::ListLocationsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListLocationsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListLocationsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::ListLocationsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListLocationsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::LocationAuth* +Arena::CreateMaybeMessage< ::viam::app::v1::LocationAuth >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::LocationAuth >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::LocationAuthRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::LocationAuthRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::LocationAuthRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::LocationAuthResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::LocationAuthResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::LocationAuthResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotPartsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotPartsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotPartsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotPartsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotPartsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotPartsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotPartRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotPartRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotPartRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotPartResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotPartResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotPartResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotPartLogsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotPartLogsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotPartLogsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::LogEntry* +Arena::CreateMaybeMessage< ::viam::app::v1::LogEntry >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::LogEntry >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotPartLogsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotPartLogsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotPartLogsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::TailRobotPartLogsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::TailRobotPartLogsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::TailRobotPartLogsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::TailRobotPartLogsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::TailRobotPartLogsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::TailRobotPartLogsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotPartHistoryRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotPartHistoryRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotPartHistoryRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotPartHistoryResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotPartHistoryResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotPartHistoryResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateRobotPartRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateRobotPartRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateRobotPartRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateRobotPartResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateRobotPartResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateRobotPartResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::NewRobotPartRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::NewRobotPartRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::NewRobotPartRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::NewRobotPartResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::NewRobotPartResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::NewRobotPartResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteRobotPartRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteRobotPartRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteRobotPartRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteRobotPartResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteRobotPartResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteRobotPartResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Fragment* +Arena::CreateMaybeMessage< ::viam::app::v1::Fragment >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Fragment >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::FindRobotsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::FindRobotsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::FindRobotsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::FindRobotsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::FindRobotsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::FindRobotsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::NewRobotRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::NewRobotRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::NewRobotRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::NewRobotResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::NewRobotResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::NewRobotResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateRobotRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateRobotRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateRobotRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateRobotResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateRobotResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateRobotResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteRobotRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteRobotRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteRobotRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteRobotResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteRobotResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteRobotResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::MarkPartAsMainRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::MarkPartAsMainRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::MarkPartAsMainRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::MarkPartAsMainResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::MarkPartAsMainResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::MarkPartAsMainResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/app/v1/app.pb.h b/src/gen/app/v1/app.pb.h new file mode 100644 index 000000000..35448f826 --- /dev/null +++ b/src/gen/app/v1/app.pb.h @@ -0,0 +1,12210 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: app/v1/app.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2fapp_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2fapp_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include "tagger/v1/tagger.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_app_2fv1_2fapp_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_app_2fv1_2fapp_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_app_2fv1_2fapp_2eproto; +namespace viam { +namespace app { +namespace v1 { +class DeleteRobotPartRequest; +struct DeleteRobotPartRequestDefaultTypeInternal; +extern DeleteRobotPartRequestDefaultTypeInternal _DeleteRobotPartRequest_default_instance_; +class DeleteRobotPartResponse; +struct DeleteRobotPartResponseDefaultTypeInternal; +extern DeleteRobotPartResponseDefaultTypeInternal _DeleteRobotPartResponse_default_instance_; +class DeleteRobotRequest; +struct DeleteRobotRequestDefaultTypeInternal; +extern DeleteRobotRequestDefaultTypeInternal _DeleteRobotRequest_default_instance_; +class DeleteRobotResponse; +struct DeleteRobotResponseDefaultTypeInternal; +extern DeleteRobotResponseDefaultTypeInternal _DeleteRobotResponse_default_instance_; +class FindRobotsRequest; +struct FindRobotsRequestDefaultTypeInternal; +extern FindRobotsRequestDefaultTypeInternal _FindRobotsRequest_default_instance_; +class FindRobotsResponse; +struct FindRobotsResponseDefaultTypeInternal; +extern FindRobotsResponseDefaultTypeInternal _FindRobotsResponse_default_instance_; +class Fragment; +struct FragmentDefaultTypeInternal; +extern FragmentDefaultTypeInternal _Fragment_default_instance_; +class GetRobotPartHistoryRequest; +struct GetRobotPartHistoryRequestDefaultTypeInternal; +extern GetRobotPartHistoryRequestDefaultTypeInternal _GetRobotPartHistoryRequest_default_instance_; +class GetRobotPartHistoryResponse; +struct GetRobotPartHistoryResponseDefaultTypeInternal; +extern GetRobotPartHistoryResponseDefaultTypeInternal _GetRobotPartHistoryResponse_default_instance_; +class GetRobotPartLogsRequest; +struct GetRobotPartLogsRequestDefaultTypeInternal; +extern GetRobotPartLogsRequestDefaultTypeInternal _GetRobotPartLogsRequest_default_instance_; +class GetRobotPartLogsResponse; +struct GetRobotPartLogsResponseDefaultTypeInternal; +extern GetRobotPartLogsResponseDefaultTypeInternal _GetRobotPartLogsResponse_default_instance_; +class GetRobotPartRequest; +struct GetRobotPartRequestDefaultTypeInternal; +extern GetRobotPartRequestDefaultTypeInternal _GetRobotPartRequest_default_instance_; +class GetRobotPartResponse; +struct GetRobotPartResponseDefaultTypeInternal; +extern GetRobotPartResponseDefaultTypeInternal _GetRobotPartResponse_default_instance_; +class GetRobotPartsRequest; +struct GetRobotPartsRequestDefaultTypeInternal; +extern GetRobotPartsRequestDefaultTypeInternal _GetRobotPartsRequest_default_instance_; +class GetRobotPartsResponse; +struct GetRobotPartsResponseDefaultTypeInternal; +extern GetRobotPartsResponseDefaultTypeInternal _GetRobotPartsResponse_default_instance_; +class GetRobotRequest; +struct GetRobotRequestDefaultTypeInternal; +extern GetRobotRequestDefaultTypeInternal _GetRobotRequest_default_instance_; +class GetRobotResponse; +struct GetRobotResponseDefaultTypeInternal; +extern GetRobotResponseDefaultTypeInternal _GetRobotResponse_default_instance_; +class ListLocationsRequest; +struct ListLocationsRequestDefaultTypeInternal; +extern ListLocationsRequestDefaultTypeInternal _ListLocationsRequest_default_instance_; +class ListLocationsResponse; +struct ListLocationsResponseDefaultTypeInternal; +extern ListLocationsResponseDefaultTypeInternal _ListLocationsResponse_default_instance_; +class ListOrganizationsRequest; +struct ListOrganizationsRequestDefaultTypeInternal; +extern ListOrganizationsRequestDefaultTypeInternal _ListOrganizationsRequest_default_instance_; +class ListOrganizationsResponse; +struct ListOrganizationsResponseDefaultTypeInternal; +extern ListOrganizationsResponseDefaultTypeInternal _ListOrganizationsResponse_default_instance_; +class Location; +struct LocationDefaultTypeInternal; +extern LocationDefaultTypeInternal _Location_default_instance_; +class LocationAuth; +struct LocationAuthDefaultTypeInternal; +extern LocationAuthDefaultTypeInternal _LocationAuth_default_instance_; +class LocationAuthRequest; +struct LocationAuthRequestDefaultTypeInternal; +extern LocationAuthRequestDefaultTypeInternal _LocationAuthRequest_default_instance_; +class LocationAuthResponse; +struct LocationAuthResponseDefaultTypeInternal; +extern LocationAuthResponseDefaultTypeInternal _LocationAuthResponse_default_instance_; +class LogEntry; +struct LogEntryDefaultTypeInternal; +extern LogEntryDefaultTypeInternal _LogEntry_default_instance_; +class MarkPartAsMainRequest; +struct MarkPartAsMainRequestDefaultTypeInternal; +extern MarkPartAsMainRequestDefaultTypeInternal _MarkPartAsMainRequest_default_instance_; +class MarkPartAsMainResponse; +struct MarkPartAsMainResponseDefaultTypeInternal; +extern MarkPartAsMainResponseDefaultTypeInternal _MarkPartAsMainResponse_default_instance_; +class NewRobotPartRequest; +struct NewRobotPartRequestDefaultTypeInternal; +extern NewRobotPartRequestDefaultTypeInternal _NewRobotPartRequest_default_instance_; +class NewRobotPartResponse; +struct NewRobotPartResponseDefaultTypeInternal; +extern NewRobotPartResponseDefaultTypeInternal _NewRobotPartResponse_default_instance_; +class NewRobotRequest; +struct NewRobotRequestDefaultTypeInternal; +extern NewRobotRequestDefaultTypeInternal _NewRobotRequest_default_instance_; +class NewRobotResponse; +struct NewRobotResponseDefaultTypeInternal; +extern NewRobotResponseDefaultTypeInternal _NewRobotResponse_default_instance_; +class Organization; +struct OrganizationDefaultTypeInternal; +extern OrganizationDefaultTypeInternal _Organization_default_instance_; +class Robot; +struct RobotDefaultTypeInternal; +extern RobotDefaultTypeInternal _Robot_default_instance_; +class RobotPart; +struct RobotPartDefaultTypeInternal; +extern RobotPartDefaultTypeInternal _RobotPart_default_instance_; +class RobotPartHistoryEntry; +struct RobotPartHistoryEntryDefaultTypeInternal; +extern RobotPartHistoryEntryDefaultTypeInternal _RobotPartHistoryEntry_default_instance_; +class TailRobotPartLogsRequest; +struct TailRobotPartLogsRequestDefaultTypeInternal; +extern TailRobotPartLogsRequestDefaultTypeInternal _TailRobotPartLogsRequest_default_instance_; +class TailRobotPartLogsResponse; +struct TailRobotPartLogsResponseDefaultTypeInternal; +extern TailRobotPartLogsResponseDefaultTypeInternal _TailRobotPartLogsResponse_default_instance_; +class UpdateRobotPartRequest; +struct UpdateRobotPartRequestDefaultTypeInternal; +extern UpdateRobotPartRequestDefaultTypeInternal _UpdateRobotPartRequest_default_instance_; +class UpdateRobotPartResponse; +struct UpdateRobotPartResponseDefaultTypeInternal; +extern UpdateRobotPartResponseDefaultTypeInternal _UpdateRobotPartResponse_default_instance_; +class UpdateRobotRequest; +struct UpdateRobotRequestDefaultTypeInternal; +extern UpdateRobotRequestDefaultTypeInternal _UpdateRobotRequest_default_instance_; +class UpdateRobotResponse; +struct UpdateRobotResponseDefaultTypeInternal; +extern UpdateRobotResponseDefaultTypeInternal _UpdateRobotResponse_default_instance_; +} // namespace v1 +} // namespace app +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::app::v1::DeleteRobotPartRequest* Arena::CreateMaybeMessage<::viam::app::v1::DeleteRobotPartRequest>(Arena*); +template<> ::viam::app::v1::DeleteRobotPartResponse* Arena::CreateMaybeMessage<::viam::app::v1::DeleteRobotPartResponse>(Arena*); +template<> ::viam::app::v1::DeleteRobotRequest* Arena::CreateMaybeMessage<::viam::app::v1::DeleteRobotRequest>(Arena*); +template<> ::viam::app::v1::DeleteRobotResponse* Arena::CreateMaybeMessage<::viam::app::v1::DeleteRobotResponse>(Arena*); +template<> ::viam::app::v1::FindRobotsRequest* Arena::CreateMaybeMessage<::viam::app::v1::FindRobotsRequest>(Arena*); +template<> ::viam::app::v1::FindRobotsResponse* Arena::CreateMaybeMessage<::viam::app::v1::FindRobotsResponse>(Arena*); +template<> ::viam::app::v1::Fragment* Arena::CreateMaybeMessage<::viam::app::v1::Fragment>(Arena*); +template<> ::viam::app::v1::GetRobotPartHistoryRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotPartHistoryRequest>(Arena*); +template<> ::viam::app::v1::GetRobotPartHistoryResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotPartHistoryResponse>(Arena*); +template<> ::viam::app::v1::GetRobotPartLogsRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotPartLogsRequest>(Arena*); +template<> ::viam::app::v1::GetRobotPartLogsResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotPartLogsResponse>(Arena*); +template<> ::viam::app::v1::GetRobotPartRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotPartRequest>(Arena*); +template<> ::viam::app::v1::GetRobotPartResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotPartResponse>(Arena*); +template<> ::viam::app::v1::GetRobotPartsRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotPartsRequest>(Arena*); +template<> ::viam::app::v1::GetRobotPartsResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotPartsResponse>(Arena*); +template<> ::viam::app::v1::GetRobotRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotRequest>(Arena*); +template<> ::viam::app::v1::GetRobotResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotResponse>(Arena*); +template<> ::viam::app::v1::ListLocationsRequest* Arena::CreateMaybeMessage<::viam::app::v1::ListLocationsRequest>(Arena*); +template<> ::viam::app::v1::ListLocationsResponse* Arena::CreateMaybeMessage<::viam::app::v1::ListLocationsResponse>(Arena*); +template<> ::viam::app::v1::ListOrganizationsRequest* Arena::CreateMaybeMessage<::viam::app::v1::ListOrganizationsRequest>(Arena*); +template<> ::viam::app::v1::ListOrganizationsResponse* Arena::CreateMaybeMessage<::viam::app::v1::ListOrganizationsResponse>(Arena*); +template<> ::viam::app::v1::Location* Arena::CreateMaybeMessage<::viam::app::v1::Location>(Arena*); +template<> ::viam::app::v1::LocationAuth* Arena::CreateMaybeMessage<::viam::app::v1::LocationAuth>(Arena*); +template<> ::viam::app::v1::LocationAuthRequest* Arena::CreateMaybeMessage<::viam::app::v1::LocationAuthRequest>(Arena*); +template<> ::viam::app::v1::LocationAuthResponse* Arena::CreateMaybeMessage<::viam::app::v1::LocationAuthResponse>(Arena*); +template<> ::viam::app::v1::LogEntry* Arena::CreateMaybeMessage<::viam::app::v1::LogEntry>(Arena*); +template<> ::viam::app::v1::MarkPartAsMainRequest* Arena::CreateMaybeMessage<::viam::app::v1::MarkPartAsMainRequest>(Arena*); +template<> ::viam::app::v1::MarkPartAsMainResponse* Arena::CreateMaybeMessage<::viam::app::v1::MarkPartAsMainResponse>(Arena*); +template<> ::viam::app::v1::NewRobotPartRequest* Arena::CreateMaybeMessage<::viam::app::v1::NewRobotPartRequest>(Arena*); +template<> ::viam::app::v1::NewRobotPartResponse* Arena::CreateMaybeMessage<::viam::app::v1::NewRobotPartResponse>(Arena*); +template<> ::viam::app::v1::NewRobotRequest* Arena::CreateMaybeMessage<::viam::app::v1::NewRobotRequest>(Arena*); +template<> ::viam::app::v1::NewRobotResponse* Arena::CreateMaybeMessage<::viam::app::v1::NewRobotResponse>(Arena*); +template<> ::viam::app::v1::Organization* Arena::CreateMaybeMessage<::viam::app::v1::Organization>(Arena*); +template<> ::viam::app::v1::Robot* Arena::CreateMaybeMessage<::viam::app::v1::Robot>(Arena*); +template<> ::viam::app::v1::RobotPart* Arena::CreateMaybeMessage<::viam::app::v1::RobotPart>(Arena*); +template<> ::viam::app::v1::RobotPartHistoryEntry* Arena::CreateMaybeMessage<::viam::app::v1::RobotPartHistoryEntry>(Arena*); +template<> ::viam::app::v1::TailRobotPartLogsRequest* Arena::CreateMaybeMessage<::viam::app::v1::TailRobotPartLogsRequest>(Arena*); +template<> ::viam::app::v1::TailRobotPartLogsResponse* Arena::CreateMaybeMessage<::viam::app::v1::TailRobotPartLogsResponse>(Arena*); +template<> ::viam::app::v1::UpdateRobotPartRequest* Arena::CreateMaybeMessage<::viam::app::v1::UpdateRobotPartRequest>(Arena*); +template<> ::viam::app::v1::UpdateRobotPartResponse* Arena::CreateMaybeMessage<::viam::app::v1::UpdateRobotPartResponse>(Arena*); +template<> ::viam::app::v1::UpdateRobotRequest* Arena::CreateMaybeMessage<::viam::app::v1::UpdateRobotRequest>(Arena*); +template<> ::viam::app::v1::UpdateRobotResponse* Arena::CreateMaybeMessage<::viam::app::v1::UpdateRobotResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace app { +namespace v1 { + +// =================================================================== + +class Robot final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Robot) */ { + public: + inline Robot() : Robot(nullptr) {} + ~Robot() override; + explicit PROTOBUF_CONSTEXPR Robot(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Robot(const Robot& from); + Robot(Robot&& from) noexcept + : Robot() { + *this = ::std::move(from); + } + + inline Robot& operator=(const Robot& from) { + CopyFrom(from); + return *this; + } + inline Robot& operator=(Robot&& 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 Robot& default_instance() { + return *internal_default_instance(); + } + static inline const Robot* internal_default_instance() { + return reinterpret_cast( + &_Robot_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(Robot& a, Robot& b) { + a.Swap(&b); + } + inline void Swap(Robot* 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(Robot* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Robot* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Robot& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Robot& from) { + Robot::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Robot* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Robot"; + } + protected: + explicit Robot(::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 { + kIdFieldNumber = 1, + kNameFieldNumber = 2, + kLocationFieldNumber = 3, + kLastAccessFieldNumber = 4, + kCreatedOnFieldNumber = 5, + }; + // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"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 location = 3 [json_name = "location", (.tagger.v1.tags) = "bson:\"location\" json:\"location\""]; + void clear_location(); + const std::string& location() const; + template + void set_location(ArgT0&& arg0, ArgT... args); + std::string* mutable_location(); + PROTOBUF_NODISCARD std::string* release_location(); + void set_allocated_location(std::string* location); + private: + const std::string& _internal_location() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location(const std::string& value); + std::string* _internal_mutable_location(); + public: + + // .google.protobuf.Timestamp last_access = 4 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; + bool has_last_access() const; + private: + bool _internal_has_last_access() const; + public: + void clear_last_access(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_access() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_last_access(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_access(); + void set_allocated_last_access(::PROTOBUF_NAMESPACE_ID::Timestamp* last_access); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_last_access() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_last_access(); + public: + void unsafe_arena_set_allocated_last_access( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_access); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_last_access(); + + // .google.protobuf.Timestamp created_on = 5 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; + bool has_created_on() const; + private: + bool _internal_has_created_on() const; + public: + void clear_created_on(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_created_on(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_created_on(); + void set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_created_on() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_created_on(); + public: + void unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_created_on(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.Robot) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_access_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class RobotPart final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RobotPart) */ { + public: + inline RobotPart() : RobotPart(nullptr) {} + ~RobotPart() override; + explicit PROTOBUF_CONSTEXPR RobotPart(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RobotPart(const RobotPart& from); + RobotPart(RobotPart&& from) noexcept + : RobotPart() { + *this = ::std::move(from); + } + + inline RobotPart& operator=(const RobotPart& from) { + CopyFrom(from); + return *this; + } + inline RobotPart& operator=(RobotPart&& 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 RobotPart& default_instance() { + return *internal_default_instance(); + } + static inline const RobotPart* internal_default_instance() { + return reinterpret_cast( + &_RobotPart_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(RobotPart& a, RobotPart& b) { + a.Swap(&b); + } + inline void Swap(RobotPart* 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(RobotPart* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RobotPart* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RobotPart& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RobotPart& from) { + RobotPart::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RobotPart* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RobotPart"; + } + protected: + explicit RobotPart(::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 { + kIdFieldNumber = 1, + kNameFieldNumber = 2, + kSecretFieldNumber = 3, + kRobotFieldNumber = 4, + kFqdnFieldNumber = 9, + kDnsNameFieldNumber = 10, + kLocalFqdnFieldNumber = 11, + kLocationIdFieldNumber = 12, + kRobotConfigFieldNumber = 5, + kLastAccessFieldNumber = 6, + kUserSuppliedInfoFieldNumber = 7, + kCreatedOnFieldNumber = 13, + kMainPartFieldNumber = 8, + }; + // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"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 secret = 3 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\" json:\"secret,omitempty\""]; + void clear_secret(); + const std::string& secret() const; + template + void set_secret(ArgT0&& arg0, ArgT... args); + std::string* mutable_secret(); + PROTOBUF_NODISCARD std::string* release_secret(); + void set_allocated_secret(std::string* secret); + private: + const std::string& _internal_secret() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret(const std::string& value); + std::string* _internal_mutable_secret(); + public: + + // string robot = 4 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; + void clear_robot(); + const std::string& robot() const; + template + void set_robot(ArgT0&& arg0, ArgT... args); + std::string* mutable_robot(); + PROTOBUF_NODISCARD std::string* release_robot(); + void set_allocated_robot(std::string* robot); + private: + const std::string& _internal_robot() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot(const std::string& value); + std::string* _internal_mutable_robot(); + public: + + // string fqdn = 9 [json_name = "fqdn"]; + void clear_fqdn(); + const std::string& fqdn() const; + template + void set_fqdn(ArgT0&& arg0, ArgT... args); + std::string* mutable_fqdn(); + PROTOBUF_NODISCARD std::string* release_fqdn(); + void set_allocated_fqdn(std::string* fqdn); + private: + const std::string& _internal_fqdn() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fqdn(const std::string& value); + std::string* _internal_mutable_fqdn(); + public: + + // string dns_name = 10 [json_name = "dnsName", (.tagger.v1.tags) = "bson:\"dns_name\" json:\"dns_name\""]; + void clear_dns_name(); + const std::string& dns_name() const; + template + void set_dns_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_dns_name(); + PROTOBUF_NODISCARD std::string* release_dns_name(); + void set_allocated_dns_name(std::string* dns_name); + private: + const std::string& _internal_dns_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_dns_name(const std::string& value); + std::string* _internal_mutable_dns_name(); + public: + + // string local_fqdn = 11 [json_name = "localFqdn"]; + void clear_local_fqdn(); + const std::string& local_fqdn() const; + template + void set_local_fqdn(ArgT0&& arg0, ArgT... args); + std::string* mutable_local_fqdn(); + PROTOBUF_NODISCARD std::string* release_local_fqdn(); + void set_allocated_local_fqdn(std::string* local_fqdn); + private: + const std::string& _internal_local_fqdn() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_local_fqdn(const std::string& value); + std::string* _internal_mutable_local_fqdn(); + public: + + // string location_id = 12 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"-\""]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); + private: + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); + public: + + // .google.protobuf.Struct robot_config = 5 [json_name = "robotConfig", (.tagger.v1.tags) = "bson:\"config\" json:\"robot_config\""]; + bool has_robot_config() const; + private: + bool _internal_has_robot_config() const; + public: + void clear_robot_config(); + const ::PROTOBUF_NAMESPACE_ID::Struct& robot_config() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_robot_config(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_robot_config(); + void set_allocated_robot_config(::PROTOBUF_NAMESPACE_ID::Struct* robot_config); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_robot_config() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_robot_config(); + public: + void unsafe_arena_set_allocated_robot_config( + ::PROTOBUF_NAMESPACE_ID::Struct* robot_config); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_robot_config(); + + // .google.protobuf.Timestamp last_access = 6 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; + bool has_last_access() const; + private: + bool _internal_has_last_access() const; + public: + void clear_last_access(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_access() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_last_access(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_access(); + void set_allocated_last_access(::PROTOBUF_NAMESPACE_ID::Timestamp* last_access); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_last_access() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_last_access(); + public: + void unsafe_arena_set_allocated_last_access( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_access); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_last_access(); + + // .google.protobuf.Struct user_supplied_info = 7 [json_name = "userSuppliedInfo", (.tagger.v1.tags) = "bson:\"user_supplied_info\" json:\"user_supplied_info\""]; + bool has_user_supplied_info() const; + private: + bool _internal_has_user_supplied_info() const; + public: + void clear_user_supplied_info(); + const ::PROTOBUF_NAMESPACE_ID::Struct& user_supplied_info() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_user_supplied_info(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_user_supplied_info(); + void set_allocated_user_supplied_info(::PROTOBUF_NAMESPACE_ID::Struct* user_supplied_info); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_user_supplied_info() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_user_supplied_info(); + public: + void unsafe_arena_set_allocated_user_supplied_info( + ::PROTOBUF_NAMESPACE_ID::Struct* user_supplied_info); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_user_supplied_info(); + + // .google.protobuf.Timestamp created_on = 13 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; + bool has_created_on() const; + private: + bool _internal_has_created_on() const; + public: + void clear_created_on(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_created_on(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_created_on(); + void set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_created_on() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_created_on(); + public: + void unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_created_on(); + + // bool main_part = 8 [json_name = "mainPart", (.tagger.v1.tags) = "bson:\"main_part\" json:\"main_part\""]; + void clear_main_part(); + bool main_part() const; + void set_main_part(bool value); + private: + bool _internal_main_part() const; + void _internal_set_main_part(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.RobotPart) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr secret_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr robot_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fqdn_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dns_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr local_fqdn_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + ::PROTOBUF_NAMESPACE_ID::Struct* robot_config_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_access_; + ::PROTOBUF_NAMESPACE_ID::Struct* user_supplied_info_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on_; + bool main_part_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class RobotPartHistoryEntry final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RobotPartHistoryEntry) */ { + public: + inline RobotPartHistoryEntry() : RobotPartHistoryEntry(nullptr) {} + ~RobotPartHistoryEntry() override; + explicit PROTOBUF_CONSTEXPR RobotPartHistoryEntry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RobotPartHistoryEntry(const RobotPartHistoryEntry& from); + RobotPartHistoryEntry(RobotPartHistoryEntry&& from) noexcept + : RobotPartHistoryEntry() { + *this = ::std::move(from); + } + + inline RobotPartHistoryEntry& operator=(const RobotPartHistoryEntry& from) { + CopyFrom(from); + return *this; + } + inline RobotPartHistoryEntry& operator=(RobotPartHistoryEntry&& 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 RobotPartHistoryEntry& default_instance() { + return *internal_default_instance(); + } + static inline const RobotPartHistoryEntry* internal_default_instance() { + return reinterpret_cast( + &_RobotPartHistoryEntry_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(RobotPartHistoryEntry& a, RobotPartHistoryEntry& b) { + a.Swap(&b); + } + inline void Swap(RobotPartHistoryEntry* 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(RobotPartHistoryEntry* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RobotPartHistoryEntry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RobotPartHistoryEntry& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RobotPartHistoryEntry& from) { + RobotPartHistoryEntry::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RobotPartHistoryEntry* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RobotPartHistoryEntry"; + } + protected: + explicit RobotPartHistoryEntry(::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 { + kPartFieldNumber = 1, + kRobotFieldNumber = 2, + kWhenFieldNumber = 3, + kOldFieldNumber = 4, + }; + // string part = 1 [json_name = "part", (.tagger.v1.tags) = "bson:\"part\" json:\"part\""]; + void clear_part(); + const std::string& part() const; + template + void set_part(ArgT0&& arg0, ArgT... args); + std::string* mutable_part(); + PROTOBUF_NODISCARD std::string* release_part(); + void set_allocated_part(std::string* part); + private: + const std::string& _internal_part() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_part(const std::string& value); + std::string* _internal_mutable_part(); + public: + + // string robot = 2 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; + void clear_robot(); + const std::string& robot() const; + template + void set_robot(ArgT0&& arg0, ArgT... args); + std::string* mutable_robot(); + PROTOBUF_NODISCARD std::string* release_robot(); + void set_allocated_robot(std::string* robot); + private: + const std::string& _internal_robot() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot(const std::string& value); + std::string* _internal_mutable_robot(); + public: + + // .google.protobuf.Timestamp when = 3 [json_name = "when", (.tagger.v1.tags) = "bson:\"when\" json:\"when\""]; + bool has_when() const; + private: + bool _internal_has_when() const; + public: + void clear_when(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& when() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_when(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_when(); + void set_allocated_when(::PROTOBUF_NAMESPACE_ID::Timestamp* when); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_when() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_when(); + public: + void unsafe_arena_set_allocated_when( + ::PROTOBUF_NAMESPACE_ID::Timestamp* when); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_when(); + + // .viam.app.v1.RobotPart old = 4 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; + bool has_old() const; + private: + bool _internal_has_old() const; + public: + void clear_old(); + const ::viam::app::v1::RobotPart& old() const; + PROTOBUF_NODISCARD ::viam::app::v1::RobotPart* release_old(); + ::viam::app::v1::RobotPart* mutable_old(); + void set_allocated_old(::viam::app::v1::RobotPart* old); + private: + const ::viam::app::v1::RobotPart& _internal_old() const; + ::viam::app::v1::RobotPart* _internal_mutable_old(); + public: + void unsafe_arena_set_allocated_old( + ::viam::app::v1::RobotPart* old); + ::viam::app::v1::RobotPart* unsafe_arena_release_old(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.RobotPartHistoryEntry) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr part_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr robot_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* when_; + ::viam::app::v1::RobotPart* old_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class ListOrganizationsRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.ListOrganizationsRequest) */ { + public: + inline ListOrganizationsRequest() : ListOrganizationsRequest(nullptr) {} + explicit PROTOBUF_CONSTEXPR ListOrganizationsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListOrganizationsRequest(const ListOrganizationsRequest& from); + ListOrganizationsRequest(ListOrganizationsRequest&& from) noexcept + : ListOrganizationsRequest() { + *this = ::std::move(from); + } + + inline ListOrganizationsRequest& operator=(const ListOrganizationsRequest& from) { + CopyFrom(from); + return *this; + } + inline ListOrganizationsRequest& operator=(ListOrganizationsRequest&& 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 ListOrganizationsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const ListOrganizationsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListOrganizationsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(ListOrganizationsRequest& a, ListOrganizationsRequest& b) { + a.Swap(&b); + } + inline void Swap(ListOrganizationsRequest* 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(ListOrganizationsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListOrganizationsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ListOrganizationsRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ListOrganizationsRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListOrganizationsRequest"; + } + protected: + explicit ListOrganizationsRequest(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.app.v1.ListOrganizationsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class Organization final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Organization) */ { + public: + inline Organization() : Organization(nullptr) {} + ~Organization() override; + explicit PROTOBUF_CONSTEXPR Organization(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Organization(const Organization& from); + Organization(Organization&& from) noexcept + : Organization() { + *this = ::std::move(from); + } + + inline Organization& operator=(const Organization& from) { + CopyFrom(from); + return *this; + } + inline Organization& operator=(Organization&& 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 Organization& default_instance() { + return *internal_default_instance(); + } + static inline const Organization* internal_default_instance() { + return reinterpret_cast( + &_Organization_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(Organization& a, Organization& b) { + a.Swap(&b); + } + inline void Swap(Organization* 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(Organization* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Organization* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Organization& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Organization& from) { + Organization::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Organization* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Organization"; + } + protected: + explicit Organization(::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 { + kIdFieldNumber = 1, + kNameFieldNumber = 2, + kCreatedOnFieldNumber = 3, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string name = 2 [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.Timestamp created_on = 3 [json_name = "createdOn"]; + bool has_created_on() const; + private: + bool _internal_has_created_on() const; + public: + void clear_created_on(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_created_on(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_created_on(); + void set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_created_on() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_created_on(); + public: + void unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_created_on(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.Organization) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class ListOrganizationsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListOrganizationsResponse) */ { + public: + inline ListOrganizationsResponse() : ListOrganizationsResponse(nullptr) {} + ~ListOrganizationsResponse() override; + explicit PROTOBUF_CONSTEXPR ListOrganizationsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListOrganizationsResponse(const ListOrganizationsResponse& from); + ListOrganizationsResponse(ListOrganizationsResponse&& from) noexcept + : ListOrganizationsResponse() { + *this = ::std::move(from); + } + + inline ListOrganizationsResponse& operator=(const ListOrganizationsResponse& from) { + CopyFrom(from); + return *this; + } + inline ListOrganizationsResponse& operator=(ListOrganizationsResponse&& 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 ListOrganizationsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ListOrganizationsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListOrganizationsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(ListOrganizationsResponse& a, ListOrganizationsResponse& b) { + a.Swap(&b); + } + inline void Swap(ListOrganizationsResponse* 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(ListOrganizationsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListOrganizationsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListOrganizationsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ListOrganizationsResponse& from) { + ListOrganizationsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListOrganizationsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListOrganizationsResponse"; + } + protected: + explicit ListOrganizationsResponse(::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 { + kOrganizationsFieldNumber = 1, + }; + // repeated .viam.app.v1.Organization organizations = 1 [json_name = "organizations"]; + int organizations_size() const; + private: + int _internal_organizations_size() const; + public: + void clear_organizations(); + ::viam::app::v1::Organization* mutable_organizations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Organization >* + mutable_organizations(); + private: + const ::viam::app::v1::Organization& _internal_organizations(int index) const; + ::viam::app::v1::Organization* _internal_add_organizations(); + public: + const ::viam::app::v1::Organization& organizations(int index) const; + ::viam::app::v1::Organization* add_organizations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Organization >& + organizations() const; + + // @@protoc_insertion_point(class_scope:viam.app.v1.ListOrganizationsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Organization > organizations_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class Location final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Location) */ { + public: + inline Location() : Location(nullptr) {} + ~Location() override; + explicit PROTOBUF_CONSTEXPR Location(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Location(const Location& from); + Location(Location&& from) noexcept + : Location() { + *this = ::std::move(from); + } + + inline Location& operator=(const Location& from) { + CopyFrom(from); + return *this; + } + inline Location& operator=(Location&& 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 Location& default_instance() { + return *internal_default_instance(); + } + static inline const Location* internal_default_instance() { + return reinterpret_cast( + &_Location_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(Location& a, Location& b) { + a.Swap(&b); + } + inline void Swap(Location* 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(Location* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Location* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Location& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Location& from) { + Location::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Location* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Location"; + } + protected: + explicit Location(::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 { + kIdFieldNumber = 1, + kNameFieldNumber = 2, + kCreatedOnFieldNumber = 3, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string name = 2 [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.Timestamp created_on = 3 [json_name = "createdOn"]; + bool has_created_on() const; + private: + bool _internal_has_created_on() const; + public: + void clear_created_on(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_created_on(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_created_on(); + void set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_created_on() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_created_on(); + public: + void unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_created_on(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.Location) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class ListLocationsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListLocationsRequest) */ { + public: + inline ListLocationsRequest() : ListLocationsRequest(nullptr) {} + ~ListLocationsRequest() override; + explicit PROTOBUF_CONSTEXPR ListLocationsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListLocationsRequest(const ListLocationsRequest& from); + ListLocationsRequest(ListLocationsRequest&& from) noexcept + : ListLocationsRequest() { + *this = ::std::move(from); + } + + inline ListLocationsRequest& operator=(const ListLocationsRequest& from) { + CopyFrom(from); + return *this; + } + inline ListLocationsRequest& operator=(ListLocationsRequest&& 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 ListLocationsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const ListLocationsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListLocationsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(ListLocationsRequest& a, ListLocationsRequest& b) { + a.Swap(&b); + } + inline void Swap(ListLocationsRequest* 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(ListLocationsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListLocationsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListLocationsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ListLocationsRequest& from) { + ListLocationsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListLocationsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListLocationsRequest"; + } + protected: + explicit ListLocationsRequest(::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 { + kOrganizationIdFieldNumber = 1, + }; + // string organization_id = 1 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); + private: + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.ListLocationsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class ListLocationsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListLocationsResponse) */ { + public: + inline ListLocationsResponse() : ListLocationsResponse(nullptr) {} + ~ListLocationsResponse() override; + explicit PROTOBUF_CONSTEXPR ListLocationsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListLocationsResponse(const ListLocationsResponse& from); + ListLocationsResponse(ListLocationsResponse&& from) noexcept + : ListLocationsResponse() { + *this = ::std::move(from); + } + + inline ListLocationsResponse& operator=(const ListLocationsResponse& from) { + CopyFrom(from); + return *this; + } + inline ListLocationsResponse& operator=(ListLocationsResponse&& 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 ListLocationsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ListLocationsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListLocationsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(ListLocationsResponse& a, ListLocationsResponse& b) { + a.Swap(&b); + } + inline void Swap(ListLocationsResponse* 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(ListLocationsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListLocationsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListLocationsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ListLocationsResponse& from) { + ListLocationsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListLocationsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListLocationsResponse"; + } + protected: + explicit ListLocationsResponse(::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 { + kLocationsFieldNumber = 1, + }; + // repeated .viam.app.v1.Location locations = 1 [json_name = "locations"]; + int locations_size() const; + private: + int _internal_locations_size() const; + public: + void clear_locations(); + ::viam::app::v1::Location* mutable_locations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Location >* + mutable_locations(); + private: + const ::viam::app::v1::Location& _internal_locations(int index) const; + ::viam::app::v1::Location* _internal_add_locations(); + public: + const ::viam::app::v1::Location& locations(int index) const; + ::viam::app::v1::Location* add_locations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Location >& + locations() const; + + // @@protoc_insertion_point(class_scope:viam.app.v1.ListLocationsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Location > locations_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class LocationAuth final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LocationAuth) */ { + public: + inline LocationAuth() : LocationAuth(nullptr) {} + ~LocationAuth() override; + explicit PROTOBUF_CONSTEXPR LocationAuth(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + LocationAuth(const LocationAuth& from); + LocationAuth(LocationAuth&& from) noexcept + : LocationAuth() { + *this = ::std::move(from); + } + + inline LocationAuth& operator=(const LocationAuth& from) { + CopyFrom(from); + return *this; + } + inline LocationAuth& operator=(LocationAuth&& 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 LocationAuth& default_instance() { + return *internal_default_instance(); + } + static inline const LocationAuth* internal_default_instance() { + return reinterpret_cast( + &_LocationAuth_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(LocationAuth& a, LocationAuth& b) { + a.Swap(&b); + } + inline void Swap(LocationAuth* 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(LocationAuth* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + LocationAuth* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LocationAuth& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const LocationAuth& from) { + LocationAuth::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LocationAuth* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.LocationAuth"; + } + protected: + explicit LocationAuth(::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 { + kSecretFieldNumber = 1, + }; + // string secret = 1 [json_name = "secret"]; + void clear_secret(); + const std::string& secret() const; + template + void set_secret(ArgT0&& arg0, ArgT... args); + std::string* mutable_secret(); + PROTOBUF_NODISCARD std::string* release_secret(); + void set_allocated_secret(std::string* secret); + private: + const std::string& _internal_secret() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret(const std::string& value); + std::string* _internal_mutable_secret(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.LocationAuth) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr secret_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class LocationAuthRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LocationAuthRequest) */ { + public: + inline LocationAuthRequest() : LocationAuthRequest(nullptr) {} + ~LocationAuthRequest() override; + explicit PROTOBUF_CONSTEXPR LocationAuthRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + LocationAuthRequest(const LocationAuthRequest& from); + LocationAuthRequest(LocationAuthRequest&& from) noexcept + : LocationAuthRequest() { + *this = ::std::move(from); + } + + inline LocationAuthRequest& operator=(const LocationAuthRequest& from) { + CopyFrom(from); + return *this; + } + inline LocationAuthRequest& operator=(LocationAuthRequest&& 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 LocationAuthRequest& default_instance() { + return *internal_default_instance(); + } + static inline const LocationAuthRequest* internal_default_instance() { + return reinterpret_cast( + &_LocationAuthRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(LocationAuthRequest& a, LocationAuthRequest& b) { + a.Swap(&b); + } + inline void Swap(LocationAuthRequest* 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(LocationAuthRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + LocationAuthRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LocationAuthRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const LocationAuthRequest& from) { + LocationAuthRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LocationAuthRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.LocationAuthRequest"; + } + protected: + explicit LocationAuthRequest(::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 { + kLocationIdFieldNumber = 1, + }; + // string location_id = 1 [json_name = "locationId"]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); + private: + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.LocationAuthRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class LocationAuthResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LocationAuthResponse) */ { + public: + inline LocationAuthResponse() : LocationAuthResponse(nullptr) {} + ~LocationAuthResponse() override; + explicit PROTOBUF_CONSTEXPR LocationAuthResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + LocationAuthResponse(const LocationAuthResponse& from); + LocationAuthResponse(LocationAuthResponse&& from) noexcept + : LocationAuthResponse() { + *this = ::std::move(from); + } + + inline LocationAuthResponse& operator=(const LocationAuthResponse& from) { + CopyFrom(from); + return *this; + } + inline LocationAuthResponse& operator=(LocationAuthResponse&& 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 LocationAuthResponse& default_instance() { + return *internal_default_instance(); + } + static inline const LocationAuthResponse* internal_default_instance() { + return reinterpret_cast( + &_LocationAuthResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(LocationAuthResponse& a, LocationAuthResponse& b) { + a.Swap(&b); + } + inline void Swap(LocationAuthResponse* 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(LocationAuthResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + LocationAuthResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LocationAuthResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const LocationAuthResponse& from) { + LocationAuthResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LocationAuthResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.LocationAuthResponse"; + } + protected: + explicit LocationAuthResponse(::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 { + kAuthFieldNumber = 1, + }; + // .viam.app.v1.LocationAuth auth = 1 [json_name = "auth"]; + bool has_auth() const; + private: + bool _internal_has_auth() const; + public: + void clear_auth(); + const ::viam::app::v1::LocationAuth& auth() const; + PROTOBUF_NODISCARD ::viam::app::v1::LocationAuth* release_auth(); + ::viam::app::v1::LocationAuth* mutable_auth(); + void set_allocated_auth(::viam::app::v1::LocationAuth* auth); + private: + const ::viam::app::v1::LocationAuth& _internal_auth() const; + ::viam::app::v1::LocationAuth* _internal_mutable_auth(); + public: + void unsafe_arena_set_allocated_auth( + ::viam::app::v1::LocationAuth* auth); + ::viam::app::v1::LocationAuth* unsafe_arena_release_auth(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.LocationAuthResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::app::v1::LocationAuth* auth_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class GetRobotRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotRequest) */ { + public: + inline GetRobotRequest() : GetRobotRequest(nullptr) {} + ~GetRobotRequest() override; + explicit PROTOBUF_CONSTEXPR GetRobotRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetRobotRequest(const GetRobotRequest& from); + GetRobotRequest(GetRobotRequest&& from) noexcept + : GetRobotRequest() { + *this = ::std::move(from); + } + + inline GetRobotRequest& operator=(const GetRobotRequest& from) { + CopyFrom(from); + return *this; + } + inline GetRobotRequest& operator=(GetRobotRequest&& 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 GetRobotRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetRobotRequest* internal_default_instance() { + return reinterpret_cast( + &_GetRobotRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(GetRobotRequest& a, GetRobotRequest& b) { + a.Swap(&b); + } + inline void Swap(GetRobotRequest* 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(GetRobotRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetRobotRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetRobotRequest& from) { + GetRobotRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotRequest"; + } + protected: + explicit GetRobotRequest(::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 { + kIdFieldNumber = 1, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class GetRobotResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotResponse) */ { + public: + inline GetRobotResponse() : GetRobotResponse(nullptr) {} + ~GetRobotResponse() override; + explicit PROTOBUF_CONSTEXPR GetRobotResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetRobotResponse(const GetRobotResponse& from); + GetRobotResponse(GetRobotResponse&& from) noexcept + : GetRobotResponse() { + *this = ::std::move(from); + } + + inline GetRobotResponse& operator=(const GetRobotResponse& from) { + CopyFrom(from); + return *this; + } + inline GetRobotResponse& operator=(GetRobotResponse&& 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 GetRobotResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetRobotResponse* internal_default_instance() { + return reinterpret_cast( + &_GetRobotResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(GetRobotResponse& a, GetRobotResponse& b) { + a.Swap(&b); + } + inline void Swap(GetRobotResponse* 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(GetRobotResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetRobotResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetRobotResponse& from) { + GetRobotResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotResponse"; + } + protected: + explicit GetRobotResponse(::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 { + kRobotFieldNumber = 1, + }; + // .viam.app.v1.Robot robot = 1 [json_name = "robot"]; + bool has_robot() const; + private: + bool _internal_has_robot() const; + public: + void clear_robot(); + const ::viam::app::v1::Robot& robot() const; + PROTOBUF_NODISCARD ::viam::app::v1::Robot* release_robot(); + ::viam::app::v1::Robot* mutable_robot(); + void set_allocated_robot(::viam::app::v1::Robot* robot); + private: + const ::viam::app::v1::Robot& _internal_robot() const; + ::viam::app::v1::Robot* _internal_mutable_robot(); + public: + void unsafe_arena_set_allocated_robot( + ::viam::app::v1::Robot* robot); + ::viam::app::v1::Robot* unsafe_arena_release_robot(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::app::v1::Robot* robot_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class GetRobotPartsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartsRequest) */ { + public: + inline GetRobotPartsRequest() : GetRobotPartsRequest(nullptr) {} + ~GetRobotPartsRequest() override; + explicit PROTOBUF_CONSTEXPR GetRobotPartsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetRobotPartsRequest(const GetRobotPartsRequest& from); + GetRobotPartsRequest(GetRobotPartsRequest&& from) noexcept + : GetRobotPartsRequest() { + *this = ::std::move(from); + } + + inline GetRobotPartsRequest& operator=(const GetRobotPartsRequest& from) { + CopyFrom(from); + return *this; + } + inline GetRobotPartsRequest& operator=(GetRobotPartsRequest&& 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 GetRobotPartsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetRobotPartsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetRobotPartsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(GetRobotPartsRequest& a, GetRobotPartsRequest& b) { + a.Swap(&b); + } + inline void Swap(GetRobotPartsRequest* 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(GetRobotPartsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetRobotPartsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotPartsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetRobotPartsRequest& from) { + GetRobotPartsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotPartsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotPartsRequest"; + } + protected: + explicit GetRobotPartsRequest(::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 { + kRobotIdFieldNumber = 1, + }; + // string robot_id = 1 [json_name = "robotId"]; + void clear_robot_id(); + const std::string& robot_id() const; + template + void set_robot_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_robot_id(); + PROTOBUF_NODISCARD std::string* release_robot_id(); + void set_allocated_robot_id(std::string* robot_id); + private: + const std::string& _internal_robot_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_id(const std::string& value); + std::string* _internal_mutable_robot_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr robot_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class GetRobotPartsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartsResponse) */ { + public: + inline GetRobotPartsResponse() : GetRobotPartsResponse(nullptr) {} + ~GetRobotPartsResponse() override; + explicit PROTOBUF_CONSTEXPR GetRobotPartsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetRobotPartsResponse(const GetRobotPartsResponse& from); + GetRobotPartsResponse(GetRobotPartsResponse&& from) noexcept + : GetRobotPartsResponse() { + *this = ::std::move(from); + } + + inline GetRobotPartsResponse& operator=(const GetRobotPartsResponse& from) { + CopyFrom(from); + return *this; + } + inline GetRobotPartsResponse& operator=(GetRobotPartsResponse&& 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 GetRobotPartsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetRobotPartsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetRobotPartsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(GetRobotPartsResponse& a, GetRobotPartsResponse& b) { + a.Swap(&b); + } + inline void Swap(GetRobotPartsResponse* 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(GetRobotPartsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetRobotPartsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotPartsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetRobotPartsResponse& from) { + GetRobotPartsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotPartsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotPartsResponse"; + } + protected: + explicit GetRobotPartsResponse(::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 { + kPartsFieldNumber = 1, + }; + // repeated .viam.app.v1.RobotPart parts = 1 [json_name = "parts"]; + int parts_size() const; + private: + int _internal_parts_size() const; + public: + void clear_parts(); + ::viam::app::v1::RobotPart* mutable_parts(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RobotPart >* + mutable_parts(); + private: + const ::viam::app::v1::RobotPart& _internal_parts(int index) const; + ::viam::app::v1::RobotPart* _internal_add_parts(); + public: + const ::viam::app::v1::RobotPart& parts(int index) const; + ::viam::app::v1::RobotPart* add_parts(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RobotPart >& + parts() const; + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RobotPart > parts_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class GetRobotPartRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartRequest) */ { + public: + inline GetRobotPartRequest() : GetRobotPartRequest(nullptr) {} + ~GetRobotPartRequest() override; + explicit PROTOBUF_CONSTEXPR GetRobotPartRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetRobotPartRequest(const GetRobotPartRequest& from); + GetRobotPartRequest(GetRobotPartRequest&& from) noexcept + : GetRobotPartRequest() { + *this = ::std::move(from); + } + + inline GetRobotPartRequest& operator=(const GetRobotPartRequest& from) { + CopyFrom(from); + return *this; + } + inline GetRobotPartRequest& operator=(GetRobotPartRequest&& 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 GetRobotPartRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetRobotPartRequest* internal_default_instance() { + return reinterpret_cast( + &_GetRobotPartRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + friend void swap(GetRobotPartRequest& a, GetRobotPartRequest& b) { + a.Swap(&b); + } + inline void Swap(GetRobotPartRequest* 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(GetRobotPartRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetRobotPartRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotPartRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetRobotPartRequest& from) { + GetRobotPartRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotPartRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotPartRequest"; + } + protected: + explicit GetRobotPartRequest(::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 { + kIdFieldNumber = 1, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class GetRobotPartResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartResponse) */ { + public: + inline GetRobotPartResponse() : GetRobotPartResponse(nullptr) {} + ~GetRobotPartResponse() override; + explicit PROTOBUF_CONSTEXPR GetRobotPartResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetRobotPartResponse(const GetRobotPartResponse& from); + GetRobotPartResponse(GetRobotPartResponse&& from) noexcept + : GetRobotPartResponse() { + *this = ::std::move(from); + } + + inline GetRobotPartResponse& operator=(const GetRobotPartResponse& from) { + CopyFrom(from); + return *this; + } + inline GetRobotPartResponse& operator=(GetRobotPartResponse&& 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 GetRobotPartResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetRobotPartResponse* internal_default_instance() { + return reinterpret_cast( + &_GetRobotPartResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + friend void swap(GetRobotPartResponse& a, GetRobotPartResponse& b) { + a.Swap(&b); + } + inline void Swap(GetRobotPartResponse* 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(GetRobotPartResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetRobotPartResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotPartResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetRobotPartResponse& from) { + GetRobotPartResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotPartResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotPartResponse"; + } + protected: + explicit GetRobotPartResponse(::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 { + kConfigJsonFieldNumber = 2, + kPartFieldNumber = 1, + }; + // string config_json = 2 [json_name = "configJson"]; + void clear_config_json(); + const std::string& config_json() const; + template + void set_config_json(ArgT0&& arg0, ArgT... args); + std::string* mutable_config_json(); + PROTOBUF_NODISCARD std::string* release_config_json(); + void set_allocated_config_json(std::string* config_json); + private: + const std::string& _internal_config_json() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_config_json(const std::string& value); + std::string* _internal_mutable_config_json(); + public: + + // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; + bool has_part() const; + private: + bool _internal_has_part() const; + public: + void clear_part(); + const ::viam::app::v1::RobotPart& part() const; + PROTOBUF_NODISCARD ::viam::app::v1::RobotPart* release_part(); + ::viam::app::v1::RobotPart* mutable_part(); + void set_allocated_part(::viam::app::v1::RobotPart* part); + private: + const ::viam::app::v1::RobotPart& _internal_part() const; + ::viam::app::v1::RobotPart* _internal_mutable_part(); + public: + void unsafe_arena_set_allocated_part( + ::viam::app::v1::RobotPart* part); + ::viam::app::v1::RobotPart* unsafe_arena_release_part(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr config_json_; + ::viam::app::v1::RobotPart* part_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class GetRobotPartLogsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartLogsRequest) */ { + public: + inline GetRobotPartLogsRequest() : GetRobotPartLogsRequest(nullptr) {} + ~GetRobotPartLogsRequest() override; + explicit PROTOBUF_CONSTEXPR GetRobotPartLogsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetRobotPartLogsRequest(const GetRobotPartLogsRequest& from); + GetRobotPartLogsRequest(GetRobotPartLogsRequest&& from) noexcept + : GetRobotPartLogsRequest() { + *this = ::std::move(from); + } + + inline GetRobotPartLogsRequest& operator=(const GetRobotPartLogsRequest& from) { + CopyFrom(from); + return *this; + } + inline GetRobotPartLogsRequest& operator=(GetRobotPartLogsRequest&& 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 GetRobotPartLogsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetRobotPartLogsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetRobotPartLogsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + friend void swap(GetRobotPartLogsRequest& a, GetRobotPartLogsRequest& b) { + a.Swap(&b); + } + inline void Swap(GetRobotPartLogsRequest* 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(GetRobotPartLogsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetRobotPartLogsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotPartLogsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetRobotPartLogsRequest& from) { + GetRobotPartLogsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotPartLogsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotPartLogsRequest"; + } + protected: + explicit GetRobotPartLogsRequest(::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 { + kIdFieldNumber = 1, + kErrorsOnlyFieldNumber = 2, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // bool errors_only = 2 [json_name = "errorsOnly"]; + void clear_errors_only(); + bool errors_only() const; + void set_errors_only(bool value); + private: + bool _internal_errors_only() const; + void _internal_set_errors_only(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartLogsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + bool errors_only_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class LogEntry final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LogEntry) */ { + public: + inline LogEntry() : LogEntry(nullptr) {} + ~LogEntry() override; + explicit PROTOBUF_CONSTEXPR LogEntry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + LogEntry(const LogEntry& from); + LogEntry(LogEntry&& from) noexcept + : LogEntry() { + *this = ::std::move(from); + } + + inline LogEntry& operator=(const LogEntry& from) { + CopyFrom(from); + return *this; + } + inline LogEntry& operator=(LogEntry&& 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 LogEntry& default_instance() { + return *internal_default_instance(); + } + static inline const LogEntry* internal_default_instance() { + return reinterpret_cast( + &_LogEntry_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + friend void swap(LogEntry& a, LogEntry& b) { + a.Swap(&b); + } + inline void Swap(LogEntry* 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(LogEntry* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + LogEntry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LogEntry& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const LogEntry& from) { + LogEntry::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LogEntry* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.LogEntry"; + } + protected: + explicit LogEntry(::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 { + kFieldsFieldNumber = 8, + kHostFieldNumber = 1, + kLevelFieldNumber = 2, + kLoggerNameFieldNumber = 4, + kMessageFieldNumber = 5, + kStackFieldNumber = 7, + kTimeFieldNumber = 3, + kCallerFieldNumber = 6, + }; + // repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; + int fields_size() const; + private: + int _internal_fields_size() const; + public: + void clear_fields(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_fields(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Struct >* + mutable_fields(); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_fields(int index) const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_add_fields(); + public: + const ::PROTOBUF_NAMESPACE_ID::Struct& fields(int index) const; + ::PROTOBUF_NAMESPACE_ID::Struct* add_fields(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Struct >& + fields() const; + + // string host = 1 [json_name = "host"]; + void clear_host(); + const std::string& host() const; + template + void set_host(ArgT0&& arg0, ArgT... args); + std::string* mutable_host(); + PROTOBUF_NODISCARD std::string* release_host(); + void set_allocated_host(std::string* host); + private: + const std::string& _internal_host() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_host(const std::string& value); + std::string* _internal_mutable_host(); + public: + + // string level = 2 [json_name = "level"]; + void clear_level(); + const std::string& level() const; + template + void set_level(ArgT0&& arg0, ArgT... args); + std::string* mutable_level(); + PROTOBUF_NODISCARD std::string* release_level(); + void set_allocated_level(std::string* level); + private: + const std::string& _internal_level() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_level(const std::string& value); + std::string* _internal_mutable_level(); + public: + + // string logger_name = 4 [json_name = "loggerName"]; + void clear_logger_name(); + const std::string& logger_name() const; + template + void set_logger_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_logger_name(); + PROTOBUF_NODISCARD std::string* release_logger_name(); + void set_allocated_logger_name(std::string* logger_name); + private: + const std::string& _internal_logger_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_logger_name(const std::string& value); + std::string* _internal_mutable_logger_name(); + public: + + // string message = 5 [json_name = "message"]; + void clear_message(); + const std::string& message() const; + template + void set_message(ArgT0&& arg0, ArgT... args); + std::string* mutable_message(); + PROTOBUF_NODISCARD std::string* release_message(); + void set_allocated_message(std::string* message); + private: + const std::string& _internal_message() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); + std::string* _internal_mutable_message(); + public: + + // string stack = 7 [json_name = "stack"]; + void clear_stack(); + const std::string& stack() const; + template + void set_stack(ArgT0&& arg0, ArgT... args); + std::string* mutable_stack(); + PROTOBUF_NODISCARD std::string* release_stack(); + void set_allocated_stack(std::string* stack); + private: + const std::string& _internal_stack() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_stack(const std::string& value); + std::string* _internal_mutable_stack(); + public: + + // .google.protobuf.Timestamp time = 3 [json_name = "time"]; + bool has_time() const; + private: + bool _internal_has_time() const; + public: + void clear_time(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& time() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_time(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_time(); + void set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_time() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_time(); + public: + void unsafe_arena_set_allocated_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_time(); + + // .google.protobuf.Struct caller = 6 [json_name = "caller"]; + bool has_caller() const; + private: + bool _internal_has_caller() const; + public: + void clear_caller(); + const ::PROTOBUF_NAMESPACE_ID::Struct& caller() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_caller(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_caller(); + void set_allocated_caller(::PROTOBUF_NAMESPACE_ID::Struct* caller); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_caller() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_caller(); + public: + void unsafe_arena_set_allocated_caller( + ::PROTOBUF_NAMESPACE_ID::Struct* caller); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_caller(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.LogEntry) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Struct > fields_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr host_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr level_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logger_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stack_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_; + ::PROTOBUF_NAMESPACE_ID::Struct* caller_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class GetRobotPartLogsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartLogsResponse) */ { + public: + inline GetRobotPartLogsResponse() : GetRobotPartLogsResponse(nullptr) {} + ~GetRobotPartLogsResponse() override; + explicit PROTOBUF_CONSTEXPR GetRobotPartLogsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetRobotPartLogsResponse(const GetRobotPartLogsResponse& from); + GetRobotPartLogsResponse(GetRobotPartLogsResponse&& from) noexcept + : GetRobotPartLogsResponse() { + *this = ::std::move(from); + } + + inline GetRobotPartLogsResponse& operator=(const GetRobotPartLogsResponse& from) { + CopyFrom(from); + return *this; + } + inline GetRobotPartLogsResponse& operator=(GetRobotPartLogsResponse&& 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 GetRobotPartLogsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetRobotPartLogsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetRobotPartLogsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + friend void swap(GetRobotPartLogsResponse& a, GetRobotPartLogsResponse& b) { + a.Swap(&b); + } + inline void Swap(GetRobotPartLogsResponse* 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(GetRobotPartLogsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetRobotPartLogsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotPartLogsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetRobotPartLogsResponse& from) { + GetRobotPartLogsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotPartLogsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotPartLogsResponse"; + } + protected: + explicit GetRobotPartLogsResponse(::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 { + kLogsFieldNumber = 1, + }; + // repeated .viam.app.v1.LogEntry logs = 1 [json_name = "logs"]; + int logs_size() const; + private: + int _internal_logs_size() const; + public: + void clear_logs(); + ::viam::app::v1::LogEntry* mutable_logs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >* + mutable_logs(); + private: + const ::viam::app::v1::LogEntry& _internal_logs(int index) const; + ::viam::app::v1::LogEntry* _internal_add_logs(); + public: + const ::viam::app::v1::LogEntry& logs(int index) const; + ::viam::app::v1::LogEntry* add_logs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >& + logs() const; + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartLogsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry > logs_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class TailRobotPartLogsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.TailRobotPartLogsRequest) */ { + public: + inline TailRobotPartLogsRequest() : TailRobotPartLogsRequest(nullptr) {} + ~TailRobotPartLogsRequest() override; + explicit PROTOBUF_CONSTEXPR TailRobotPartLogsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + TailRobotPartLogsRequest(const TailRobotPartLogsRequest& from); + TailRobotPartLogsRequest(TailRobotPartLogsRequest&& from) noexcept + : TailRobotPartLogsRequest() { + *this = ::std::move(from); + } + + inline TailRobotPartLogsRequest& operator=(const TailRobotPartLogsRequest& from) { + CopyFrom(from); + return *this; + } + inline TailRobotPartLogsRequest& operator=(TailRobotPartLogsRequest&& 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 TailRobotPartLogsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const TailRobotPartLogsRequest* internal_default_instance() { + return reinterpret_cast( + &_TailRobotPartLogsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + friend void swap(TailRobotPartLogsRequest& a, TailRobotPartLogsRequest& b) { + a.Swap(&b); + } + inline void Swap(TailRobotPartLogsRequest* 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(TailRobotPartLogsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TailRobotPartLogsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TailRobotPartLogsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const TailRobotPartLogsRequest& from) { + TailRobotPartLogsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TailRobotPartLogsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.TailRobotPartLogsRequest"; + } + protected: + explicit TailRobotPartLogsRequest(::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 { + kIdFieldNumber = 1, + kErrorsOnlyFieldNumber = 2, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // bool errors_only = 2 [json_name = "errorsOnly"]; + void clear_errors_only(); + bool errors_only() const; + void set_errors_only(bool value); + private: + bool _internal_errors_only() const; + void _internal_set_errors_only(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.TailRobotPartLogsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + bool errors_only_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class TailRobotPartLogsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.TailRobotPartLogsResponse) */ { + public: + inline TailRobotPartLogsResponse() : TailRobotPartLogsResponse(nullptr) {} + ~TailRobotPartLogsResponse() override; + explicit PROTOBUF_CONSTEXPR TailRobotPartLogsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + TailRobotPartLogsResponse(const TailRobotPartLogsResponse& from); + TailRobotPartLogsResponse(TailRobotPartLogsResponse&& from) noexcept + : TailRobotPartLogsResponse() { + *this = ::std::move(from); + } + + inline TailRobotPartLogsResponse& operator=(const TailRobotPartLogsResponse& from) { + CopyFrom(from); + return *this; + } + inline TailRobotPartLogsResponse& operator=(TailRobotPartLogsResponse&& 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 TailRobotPartLogsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const TailRobotPartLogsResponse* internal_default_instance() { + return reinterpret_cast( + &_TailRobotPartLogsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 22; + + friend void swap(TailRobotPartLogsResponse& a, TailRobotPartLogsResponse& b) { + a.Swap(&b); + } + inline void Swap(TailRobotPartLogsResponse* 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(TailRobotPartLogsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TailRobotPartLogsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TailRobotPartLogsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const TailRobotPartLogsResponse& from) { + TailRobotPartLogsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TailRobotPartLogsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.TailRobotPartLogsResponse"; + } + protected: + explicit TailRobotPartLogsResponse(::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 { + kLogsFieldNumber = 1, + }; + // repeated .viam.app.v1.LogEntry logs = 1 [json_name = "logs"]; + int logs_size() const; + private: + int _internal_logs_size() const; + public: + void clear_logs(); + ::viam::app::v1::LogEntry* mutable_logs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >* + mutable_logs(); + private: + const ::viam::app::v1::LogEntry& _internal_logs(int index) const; + ::viam::app::v1::LogEntry* _internal_add_logs(); + public: + const ::viam::app::v1::LogEntry& logs(int index) const; + ::viam::app::v1::LogEntry* add_logs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >& + logs() const; + + // @@protoc_insertion_point(class_scope:viam.app.v1.TailRobotPartLogsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry > logs_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class GetRobotPartHistoryRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartHistoryRequest) */ { + public: + inline GetRobotPartHistoryRequest() : GetRobotPartHistoryRequest(nullptr) {} + ~GetRobotPartHistoryRequest() override; + explicit PROTOBUF_CONSTEXPR GetRobotPartHistoryRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetRobotPartHistoryRequest(const GetRobotPartHistoryRequest& from); + GetRobotPartHistoryRequest(GetRobotPartHistoryRequest&& from) noexcept + : GetRobotPartHistoryRequest() { + *this = ::std::move(from); + } + + inline GetRobotPartHistoryRequest& operator=(const GetRobotPartHistoryRequest& from) { + CopyFrom(from); + return *this; + } + inline GetRobotPartHistoryRequest& operator=(GetRobotPartHistoryRequest&& 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 GetRobotPartHistoryRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetRobotPartHistoryRequest* internal_default_instance() { + return reinterpret_cast( + &_GetRobotPartHistoryRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 23; + + friend void swap(GetRobotPartHistoryRequest& a, GetRobotPartHistoryRequest& b) { + a.Swap(&b); + } + inline void Swap(GetRobotPartHistoryRequest* 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(GetRobotPartHistoryRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetRobotPartHistoryRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotPartHistoryRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetRobotPartHistoryRequest& from) { + GetRobotPartHistoryRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotPartHistoryRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotPartHistoryRequest"; + } + protected: + explicit GetRobotPartHistoryRequest(::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 { + kIdFieldNumber = 1, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartHistoryRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class GetRobotPartHistoryResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartHistoryResponse) */ { + public: + inline GetRobotPartHistoryResponse() : GetRobotPartHistoryResponse(nullptr) {} + ~GetRobotPartHistoryResponse() override; + explicit PROTOBUF_CONSTEXPR GetRobotPartHistoryResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetRobotPartHistoryResponse(const GetRobotPartHistoryResponse& from); + GetRobotPartHistoryResponse(GetRobotPartHistoryResponse&& from) noexcept + : GetRobotPartHistoryResponse() { + *this = ::std::move(from); + } + + inline GetRobotPartHistoryResponse& operator=(const GetRobotPartHistoryResponse& from) { + CopyFrom(from); + return *this; + } + inline GetRobotPartHistoryResponse& operator=(GetRobotPartHistoryResponse&& 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 GetRobotPartHistoryResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetRobotPartHistoryResponse* internal_default_instance() { + return reinterpret_cast( + &_GetRobotPartHistoryResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 24; + + friend void swap(GetRobotPartHistoryResponse& a, GetRobotPartHistoryResponse& b) { + a.Swap(&b); + } + inline void Swap(GetRobotPartHistoryResponse* 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(GetRobotPartHistoryResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetRobotPartHistoryResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotPartHistoryResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetRobotPartHistoryResponse& from) { + GetRobotPartHistoryResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotPartHistoryResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotPartHistoryResponse"; + } + protected: + explicit GetRobotPartHistoryResponse(::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 { + kHistoryFieldNumber = 1, + }; + // repeated .viam.app.v1.RobotPartHistoryEntry history = 1 [json_name = "history"]; + int history_size() const; + private: + int _internal_history_size() const; + public: + void clear_history(); + ::viam::app::v1::RobotPartHistoryEntry* mutable_history(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RobotPartHistoryEntry >* + mutable_history(); + private: + const ::viam::app::v1::RobotPartHistoryEntry& _internal_history(int index) const; + ::viam::app::v1::RobotPartHistoryEntry* _internal_add_history(); + public: + const ::viam::app::v1::RobotPartHistoryEntry& history(int index) const; + ::viam::app::v1::RobotPartHistoryEntry* add_history(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RobotPartHistoryEntry >& + history() const; + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartHistoryResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RobotPartHistoryEntry > history_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class UpdateRobotPartRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateRobotPartRequest) */ { + public: + inline UpdateRobotPartRequest() : UpdateRobotPartRequest(nullptr) {} + ~UpdateRobotPartRequest() override; + explicit PROTOBUF_CONSTEXPR UpdateRobotPartRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UpdateRobotPartRequest(const UpdateRobotPartRequest& from); + UpdateRobotPartRequest(UpdateRobotPartRequest&& from) noexcept + : UpdateRobotPartRequest() { + *this = ::std::move(from); + } + + inline UpdateRobotPartRequest& operator=(const UpdateRobotPartRequest& from) { + CopyFrom(from); + return *this; + } + inline UpdateRobotPartRequest& operator=(UpdateRobotPartRequest&& 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 UpdateRobotPartRequest& default_instance() { + return *internal_default_instance(); + } + static inline const UpdateRobotPartRequest* internal_default_instance() { + return reinterpret_cast( + &_UpdateRobotPartRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 25; + + friend void swap(UpdateRobotPartRequest& a, UpdateRobotPartRequest& b) { + a.Swap(&b); + } + inline void Swap(UpdateRobotPartRequest* 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(UpdateRobotPartRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UpdateRobotPartRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateRobotPartRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const UpdateRobotPartRequest& from) { + UpdateRobotPartRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateRobotPartRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateRobotPartRequest"; + } + protected: + explicit UpdateRobotPartRequest(::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 { + kIdFieldNumber = 1, + kNameFieldNumber = 2, + kRobotConfigFieldNumber = 3, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string name = 2 [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 robot_config = 3 [json_name = "robotConfig"]; + bool has_robot_config() const; + private: + bool _internal_has_robot_config() const; + public: + void clear_robot_config(); + const ::PROTOBUF_NAMESPACE_ID::Struct& robot_config() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_robot_config(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_robot_config(); + void set_allocated_robot_config(::PROTOBUF_NAMESPACE_ID::Struct* robot_config); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_robot_config() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_robot_config(); + public: + void unsafe_arena_set_allocated_robot_config( + ::PROTOBUF_NAMESPACE_ID::Struct* robot_config); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_robot_config(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateRobotPartRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* robot_config_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class UpdateRobotPartResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateRobotPartResponse) */ { + public: + inline UpdateRobotPartResponse() : UpdateRobotPartResponse(nullptr) {} + ~UpdateRobotPartResponse() override; + explicit PROTOBUF_CONSTEXPR UpdateRobotPartResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UpdateRobotPartResponse(const UpdateRobotPartResponse& from); + UpdateRobotPartResponse(UpdateRobotPartResponse&& from) noexcept + : UpdateRobotPartResponse() { + *this = ::std::move(from); + } + + inline UpdateRobotPartResponse& operator=(const UpdateRobotPartResponse& from) { + CopyFrom(from); + return *this; + } + inline UpdateRobotPartResponse& operator=(UpdateRobotPartResponse&& 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 UpdateRobotPartResponse& default_instance() { + return *internal_default_instance(); + } + static inline const UpdateRobotPartResponse* internal_default_instance() { + return reinterpret_cast( + &_UpdateRobotPartResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 26; + + friend void swap(UpdateRobotPartResponse& a, UpdateRobotPartResponse& b) { + a.Swap(&b); + } + inline void Swap(UpdateRobotPartResponse* 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(UpdateRobotPartResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UpdateRobotPartResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateRobotPartResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const UpdateRobotPartResponse& from) { + UpdateRobotPartResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateRobotPartResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateRobotPartResponse"; + } + protected: + explicit UpdateRobotPartResponse(::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 { + kPartFieldNumber = 1, + }; + // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; + bool has_part() const; + private: + bool _internal_has_part() const; + public: + void clear_part(); + const ::viam::app::v1::RobotPart& part() const; + PROTOBUF_NODISCARD ::viam::app::v1::RobotPart* release_part(); + ::viam::app::v1::RobotPart* mutable_part(); + void set_allocated_part(::viam::app::v1::RobotPart* part); + private: + const ::viam::app::v1::RobotPart& _internal_part() const; + ::viam::app::v1::RobotPart* _internal_mutable_part(); + public: + void unsafe_arena_set_allocated_part( + ::viam::app::v1::RobotPart* part); + ::viam::app::v1::RobotPart* unsafe_arena_release_part(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateRobotPartResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::app::v1::RobotPart* part_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class NewRobotPartRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.NewRobotPartRequest) */ { + public: + inline NewRobotPartRequest() : NewRobotPartRequest(nullptr) {} + ~NewRobotPartRequest() override; + explicit PROTOBUF_CONSTEXPR NewRobotPartRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + NewRobotPartRequest(const NewRobotPartRequest& from); + NewRobotPartRequest(NewRobotPartRequest&& from) noexcept + : NewRobotPartRequest() { + *this = ::std::move(from); + } + + inline NewRobotPartRequest& operator=(const NewRobotPartRequest& from) { + CopyFrom(from); + return *this; + } + inline NewRobotPartRequest& operator=(NewRobotPartRequest&& 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 NewRobotPartRequest& default_instance() { + return *internal_default_instance(); + } + static inline const NewRobotPartRequest* internal_default_instance() { + return reinterpret_cast( + &_NewRobotPartRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 27; + + friend void swap(NewRobotPartRequest& a, NewRobotPartRequest& b) { + a.Swap(&b); + } + inline void Swap(NewRobotPartRequest* 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(NewRobotPartRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + NewRobotPartRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const NewRobotPartRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const NewRobotPartRequest& from) { + NewRobotPartRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NewRobotPartRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.NewRobotPartRequest"; + } + protected: + explicit NewRobotPartRequest(::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 { + kRobotIdFieldNumber = 1, + kPartNameFieldNumber = 2, + }; + // string robot_id = 1 [json_name = "robotId"]; + void clear_robot_id(); + const std::string& robot_id() const; + template + void set_robot_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_robot_id(); + PROTOBUF_NODISCARD std::string* release_robot_id(); + void set_allocated_robot_id(std::string* robot_id); + private: + const std::string& _internal_robot_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_id(const std::string& value); + std::string* _internal_mutable_robot_id(); + public: + + // string part_name = 2 [json_name = "partName"]; + void clear_part_name(); + const std::string& part_name() const; + template + void set_part_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_part_name(); + PROTOBUF_NODISCARD std::string* release_part_name(); + void set_allocated_part_name(std::string* part_name); + private: + const std::string& _internal_part_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_name(const std::string& value); + std::string* _internal_mutable_part_name(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.NewRobotPartRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr robot_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr part_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class NewRobotPartResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.NewRobotPartResponse) */ { + public: + inline NewRobotPartResponse() : NewRobotPartResponse(nullptr) {} + ~NewRobotPartResponse() override; + explicit PROTOBUF_CONSTEXPR NewRobotPartResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + NewRobotPartResponse(const NewRobotPartResponse& from); + NewRobotPartResponse(NewRobotPartResponse&& from) noexcept + : NewRobotPartResponse() { + *this = ::std::move(from); + } + + inline NewRobotPartResponse& operator=(const NewRobotPartResponse& from) { + CopyFrom(from); + return *this; + } + inline NewRobotPartResponse& operator=(NewRobotPartResponse&& 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 NewRobotPartResponse& default_instance() { + return *internal_default_instance(); + } + static inline const NewRobotPartResponse* internal_default_instance() { + return reinterpret_cast( + &_NewRobotPartResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 28; + + friend void swap(NewRobotPartResponse& a, NewRobotPartResponse& b) { + a.Swap(&b); + } + inline void Swap(NewRobotPartResponse* 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(NewRobotPartResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + NewRobotPartResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const NewRobotPartResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const NewRobotPartResponse& from) { + NewRobotPartResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NewRobotPartResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.NewRobotPartResponse"; + } + protected: + explicit NewRobotPartResponse(::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 { + kPartIdFieldNumber = 1, + }; + // string part_id = 1 [json_name = "partId"]; + void clear_part_id(); + const std::string& part_id() const; + template + void set_part_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_part_id(); + PROTOBUF_NODISCARD std::string* release_part_id(); + void set_allocated_part_id(std::string* part_id); + private: + const std::string& _internal_part_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_id(const std::string& value); + std::string* _internal_mutable_part_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.NewRobotPartResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr part_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteRobotPartRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteRobotPartRequest) */ { + public: + inline DeleteRobotPartRequest() : DeleteRobotPartRequest(nullptr) {} + ~DeleteRobotPartRequest() override; + explicit PROTOBUF_CONSTEXPR DeleteRobotPartRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeleteRobotPartRequest(const DeleteRobotPartRequest& from); + DeleteRobotPartRequest(DeleteRobotPartRequest&& from) noexcept + : DeleteRobotPartRequest() { + *this = ::std::move(from); + } + + inline DeleteRobotPartRequest& operator=(const DeleteRobotPartRequest& from) { + CopyFrom(from); + return *this; + } + inline DeleteRobotPartRequest& operator=(DeleteRobotPartRequest&& 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 DeleteRobotPartRequest& default_instance() { + return *internal_default_instance(); + } + static inline const DeleteRobotPartRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteRobotPartRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 29; + + friend void swap(DeleteRobotPartRequest& a, DeleteRobotPartRequest& b) { + a.Swap(&b); + } + inline void Swap(DeleteRobotPartRequest* 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(DeleteRobotPartRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeleteRobotPartRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteRobotPartRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DeleteRobotPartRequest& from) { + DeleteRobotPartRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteRobotPartRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteRobotPartRequest"; + } + protected: + explicit DeleteRobotPartRequest(::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 { + kPartIdFieldNumber = 1, + }; + // string part_id = 1 [json_name = "partId"]; + void clear_part_id(); + const std::string& part_id() const; + template + void set_part_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_part_id(); + PROTOBUF_NODISCARD std::string* release_part_id(); + void set_allocated_part_id(std::string* part_id); + private: + const std::string& _internal_part_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_id(const std::string& value); + std::string* _internal_mutable_part_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteRobotPartRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr part_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteRobotPartResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteRobotPartResponse) */ { + public: + inline DeleteRobotPartResponse() : DeleteRobotPartResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR DeleteRobotPartResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeleteRobotPartResponse(const DeleteRobotPartResponse& from); + DeleteRobotPartResponse(DeleteRobotPartResponse&& from) noexcept + : DeleteRobotPartResponse() { + *this = ::std::move(from); + } + + inline DeleteRobotPartResponse& operator=(const DeleteRobotPartResponse& from) { + CopyFrom(from); + return *this; + } + inline DeleteRobotPartResponse& operator=(DeleteRobotPartResponse&& 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 DeleteRobotPartResponse& default_instance() { + return *internal_default_instance(); + } + static inline const DeleteRobotPartResponse* internal_default_instance() { + return reinterpret_cast( + &_DeleteRobotPartResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 30; + + friend void swap(DeleteRobotPartResponse& a, DeleteRobotPartResponse& b) { + a.Swap(&b); + } + inline void Swap(DeleteRobotPartResponse* 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(DeleteRobotPartResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeleteRobotPartResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DeleteRobotPartResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DeleteRobotPartResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteRobotPartResponse"; + } + protected: + explicit DeleteRobotPartResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteRobotPartResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class Fragment final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Fragment) */ { + public: + inline Fragment() : Fragment(nullptr) {} + ~Fragment() override; + explicit PROTOBUF_CONSTEXPR Fragment(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Fragment(const Fragment& from); + Fragment(Fragment&& from) noexcept + : Fragment() { + *this = ::std::move(from); + } + + inline Fragment& operator=(const Fragment& from) { + CopyFrom(from); + return *this; + } + inline Fragment& operator=(Fragment&& 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 Fragment& default_instance() { + return *internal_default_instance(); + } + static inline const Fragment* internal_default_instance() { + return reinterpret_cast( + &_Fragment_default_instance_); + } + static constexpr int kIndexInFileMessages = + 31; + + friend void swap(Fragment& a, Fragment& b) { + a.Swap(&b); + } + inline void Swap(Fragment* 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(Fragment* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Fragment* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Fragment& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Fragment& from) { + Fragment::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Fragment* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Fragment"; + } + protected: + explicit Fragment(::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 { + kIdFieldNumber = 1, + kNameFieldNumber = 2, + kOrganizationOwnerFieldNumber = 4, + kFragmentFieldNumber = 3, + kCreatedOnFieldNumber = 6, + kPublicFieldNumber = 5, + }; + // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"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 organization_owner = 4 [json_name = "organizationOwner", (.tagger.v1.tags) = "bson:\"organization_owner\" json:\"owner\""]; + void clear_organization_owner(); + const std::string& organization_owner() const; + template + void set_organization_owner(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_owner(); + PROTOBUF_NODISCARD std::string* release_organization_owner(); + void set_allocated_organization_owner(std::string* organization_owner); + private: + const std::string& _internal_organization_owner() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_owner(const std::string& value); + std::string* _internal_mutable_organization_owner(); + public: + + // .google.protobuf.Struct fragment = 3 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; + bool has_fragment() const; + private: + bool _internal_has_fragment() const; + public: + void clear_fragment(); + const ::PROTOBUF_NAMESPACE_ID::Struct& fragment() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_fragment(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_fragment(); + void set_allocated_fragment(::PROTOBUF_NAMESPACE_ID::Struct* fragment); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_fragment() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_fragment(); + public: + void unsafe_arena_set_allocated_fragment( + ::PROTOBUF_NAMESPACE_ID::Struct* fragment); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_fragment(); + + // .google.protobuf.Timestamp created_on = 6 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; + bool has_created_on() const; + private: + bool _internal_has_created_on() const; + public: + void clear_created_on(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_created_on(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_created_on(); + void set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_created_on() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_created_on(); + public: + void unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_created_on(); + + // bool public = 5 [json_name = "public", (.tagger.v1.tags) = "bson:\"public\" json:\"public\""]; + void clear_public_(); + bool public_() const; + void set_public_(bool value); + private: + bool _internal_public_() const; + void _internal_set_public_(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.Fragment) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_owner_; + ::PROTOBUF_NAMESPACE_ID::Struct* fragment_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on_; + bool public__; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class FindRobotsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.FindRobotsRequest) */ { + public: + inline FindRobotsRequest() : FindRobotsRequest(nullptr) {} + ~FindRobotsRequest() override; + explicit PROTOBUF_CONSTEXPR FindRobotsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + FindRobotsRequest(const FindRobotsRequest& from); + FindRobotsRequest(FindRobotsRequest&& from) noexcept + : FindRobotsRequest() { + *this = ::std::move(from); + } + + inline FindRobotsRequest& operator=(const FindRobotsRequest& from) { + CopyFrom(from); + return *this; + } + inline FindRobotsRequest& operator=(FindRobotsRequest&& 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 FindRobotsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const FindRobotsRequest* internal_default_instance() { + return reinterpret_cast( + &_FindRobotsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 32; + + friend void swap(FindRobotsRequest& a, FindRobotsRequest& b) { + a.Swap(&b); + } + inline void Swap(FindRobotsRequest* 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(FindRobotsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + FindRobotsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FindRobotsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const FindRobotsRequest& from) { + FindRobotsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FindRobotsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.FindRobotsRequest"; + } + protected: + explicit FindRobotsRequest(::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 { + kLocationIdFieldNumber = 1, + }; + // string location_id = 1 [json_name = "locationId"]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); + private: + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.FindRobotsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class FindRobotsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.FindRobotsResponse) */ { + public: + inline FindRobotsResponse() : FindRobotsResponse(nullptr) {} + ~FindRobotsResponse() override; + explicit PROTOBUF_CONSTEXPR FindRobotsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + FindRobotsResponse(const FindRobotsResponse& from); + FindRobotsResponse(FindRobotsResponse&& from) noexcept + : FindRobotsResponse() { + *this = ::std::move(from); + } + + inline FindRobotsResponse& operator=(const FindRobotsResponse& from) { + CopyFrom(from); + return *this; + } + inline FindRobotsResponse& operator=(FindRobotsResponse&& 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 FindRobotsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const FindRobotsResponse* internal_default_instance() { + return reinterpret_cast( + &_FindRobotsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 33; + + friend void swap(FindRobotsResponse& a, FindRobotsResponse& b) { + a.Swap(&b); + } + inline void Swap(FindRobotsResponse* 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(FindRobotsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + FindRobotsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FindRobotsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const FindRobotsResponse& from) { + FindRobotsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FindRobotsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.FindRobotsResponse"; + } + protected: + explicit FindRobotsResponse(::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 { + kRobotsFieldNumber = 1, + }; + // repeated .viam.app.v1.Robot robots = 1 [json_name = "robots"]; + int robots_size() const; + private: + int _internal_robots_size() const; + public: + void clear_robots(); + ::viam::app::v1::Robot* mutable_robots(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Robot >* + mutable_robots(); + private: + const ::viam::app::v1::Robot& _internal_robots(int index) const; + ::viam::app::v1::Robot* _internal_add_robots(); + public: + const ::viam::app::v1::Robot& robots(int index) const; + ::viam::app::v1::Robot* add_robots(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Robot >& + robots() const; + + // @@protoc_insertion_point(class_scope:viam.app.v1.FindRobotsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Robot > robots_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class NewRobotRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.NewRobotRequest) */ { + public: + inline NewRobotRequest() : NewRobotRequest(nullptr) {} + ~NewRobotRequest() override; + explicit PROTOBUF_CONSTEXPR NewRobotRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + NewRobotRequest(const NewRobotRequest& from); + NewRobotRequest(NewRobotRequest&& from) noexcept + : NewRobotRequest() { + *this = ::std::move(from); + } + + inline NewRobotRequest& operator=(const NewRobotRequest& from) { + CopyFrom(from); + return *this; + } + inline NewRobotRequest& operator=(NewRobotRequest&& 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 NewRobotRequest& default_instance() { + return *internal_default_instance(); + } + static inline const NewRobotRequest* internal_default_instance() { + return reinterpret_cast( + &_NewRobotRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 34; + + friend void swap(NewRobotRequest& a, NewRobotRequest& b) { + a.Swap(&b); + } + inline void Swap(NewRobotRequest* 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(NewRobotRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + NewRobotRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const NewRobotRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const NewRobotRequest& from) { + NewRobotRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NewRobotRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.NewRobotRequest"; + } + protected: + explicit NewRobotRequest(::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, + kLocationFieldNumber = 2, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // string location = 2 [json_name = "location"]; + void clear_location(); + const std::string& location() const; + template + void set_location(ArgT0&& arg0, ArgT... args); + std::string* mutable_location(); + PROTOBUF_NODISCARD std::string* release_location(); + void set_allocated_location(std::string* location); + private: + const std::string& _internal_location() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location(const std::string& value); + std::string* _internal_mutable_location(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.NewRobotRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class NewRobotResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.NewRobotResponse) */ { + public: + inline NewRobotResponse() : NewRobotResponse(nullptr) {} + ~NewRobotResponse() override; + explicit PROTOBUF_CONSTEXPR NewRobotResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + NewRobotResponse(const NewRobotResponse& from); + NewRobotResponse(NewRobotResponse&& from) noexcept + : NewRobotResponse() { + *this = ::std::move(from); + } + + inline NewRobotResponse& operator=(const NewRobotResponse& from) { + CopyFrom(from); + return *this; + } + inline NewRobotResponse& operator=(NewRobotResponse&& 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 NewRobotResponse& default_instance() { + return *internal_default_instance(); + } + static inline const NewRobotResponse* internal_default_instance() { + return reinterpret_cast( + &_NewRobotResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 35; + + friend void swap(NewRobotResponse& a, NewRobotResponse& b) { + a.Swap(&b); + } + inline void Swap(NewRobotResponse* 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(NewRobotResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + NewRobotResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const NewRobotResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const NewRobotResponse& from) { + NewRobotResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NewRobotResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.NewRobotResponse"; + } + protected: + explicit NewRobotResponse(::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 { + kIdFieldNumber = 1, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.NewRobotResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class UpdateRobotRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateRobotRequest) */ { + public: + inline UpdateRobotRequest() : UpdateRobotRequest(nullptr) {} + ~UpdateRobotRequest() override; + explicit PROTOBUF_CONSTEXPR UpdateRobotRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UpdateRobotRequest(const UpdateRobotRequest& from); + UpdateRobotRequest(UpdateRobotRequest&& from) noexcept + : UpdateRobotRequest() { + *this = ::std::move(from); + } + + inline UpdateRobotRequest& operator=(const UpdateRobotRequest& from) { + CopyFrom(from); + return *this; + } + inline UpdateRobotRequest& operator=(UpdateRobotRequest&& 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 UpdateRobotRequest& default_instance() { + return *internal_default_instance(); + } + static inline const UpdateRobotRequest* internal_default_instance() { + return reinterpret_cast( + &_UpdateRobotRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 36; + + friend void swap(UpdateRobotRequest& a, UpdateRobotRequest& b) { + a.Swap(&b); + } + inline void Swap(UpdateRobotRequest* 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(UpdateRobotRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UpdateRobotRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateRobotRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const UpdateRobotRequest& from) { + UpdateRobotRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateRobotRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateRobotRequest"; + } + protected: + explicit UpdateRobotRequest(::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 { + kIdFieldNumber = 1, + kNameFieldNumber = 2, + kLocationFieldNumber = 3, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string name = 2 [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 location = 3 [json_name = "location"]; + void clear_location(); + const std::string& location() const; + template + void set_location(ArgT0&& arg0, ArgT... args); + std::string* mutable_location(); + PROTOBUF_NODISCARD std::string* release_location(); + void set_allocated_location(std::string* location); + private: + const std::string& _internal_location() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location(const std::string& value); + std::string* _internal_mutable_location(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateRobotRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class UpdateRobotResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateRobotResponse) */ { + public: + inline UpdateRobotResponse() : UpdateRobotResponse(nullptr) {} + ~UpdateRobotResponse() override; + explicit PROTOBUF_CONSTEXPR UpdateRobotResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UpdateRobotResponse(const UpdateRobotResponse& from); + UpdateRobotResponse(UpdateRobotResponse&& from) noexcept + : UpdateRobotResponse() { + *this = ::std::move(from); + } + + inline UpdateRobotResponse& operator=(const UpdateRobotResponse& from) { + CopyFrom(from); + return *this; + } + inline UpdateRobotResponse& operator=(UpdateRobotResponse&& 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 UpdateRobotResponse& default_instance() { + return *internal_default_instance(); + } + static inline const UpdateRobotResponse* internal_default_instance() { + return reinterpret_cast( + &_UpdateRobotResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 37; + + friend void swap(UpdateRobotResponse& a, UpdateRobotResponse& b) { + a.Swap(&b); + } + inline void Swap(UpdateRobotResponse* 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(UpdateRobotResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UpdateRobotResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateRobotResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const UpdateRobotResponse& from) { + UpdateRobotResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateRobotResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateRobotResponse"; + } + protected: + explicit UpdateRobotResponse(::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 { + kRobotFieldNumber = 1, + }; + // .viam.app.v1.Robot robot = 1 [json_name = "robot"]; + bool has_robot() const; + private: + bool _internal_has_robot() const; + public: + void clear_robot(); + const ::viam::app::v1::Robot& robot() const; + PROTOBUF_NODISCARD ::viam::app::v1::Robot* release_robot(); + ::viam::app::v1::Robot* mutable_robot(); + void set_allocated_robot(::viam::app::v1::Robot* robot); + private: + const ::viam::app::v1::Robot& _internal_robot() const; + ::viam::app::v1::Robot* _internal_mutable_robot(); + public: + void unsafe_arena_set_allocated_robot( + ::viam::app::v1::Robot* robot); + ::viam::app::v1::Robot* unsafe_arena_release_robot(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateRobotResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::app::v1::Robot* robot_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteRobotRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteRobotRequest) */ { + public: + inline DeleteRobotRequest() : DeleteRobotRequest(nullptr) {} + ~DeleteRobotRequest() override; + explicit PROTOBUF_CONSTEXPR DeleteRobotRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeleteRobotRequest(const DeleteRobotRequest& from); + DeleteRobotRequest(DeleteRobotRequest&& from) noexcept + : DeleteRobotRequest() { + *this = ::std::move(from); + } + + inline DeleteRobotRequest& operator=(const DeleteRobotRequest& from) { + CopyFrom(from); + return *this; + } + inline DeleteRobotRequest& operator=(DeleteRobotRequest&& 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 DeleteRobotRequest& default_instance() { + return *internal_default_instance(); + } + static inline const DeleteRobotRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteRobotRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 38; + + friend void swap(DeleteRobotRequest& a, DeleteRobotRequest& b) { + a.Swap(&b); + } + inline void Swap(DeleteRobotRequest* 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(DeleteRobotRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeleteRobotRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteRobotRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DeleteRobotRequest& from) { + DeleteRobotRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteRobotRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteRobotRequest"; + } + protected: + explicit DeleteRobotRequest(::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 { + kIdFieldNumber = 1, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteRobotRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteRobotResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteRobotResponse) */ { + public: + inline DeleteRobotResponse() : DeleteRobotResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR DeleteRobotResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeleteRobotResponse(const DeleteRobotResponse& from); + DeleteRobotResponse(DeleteRobotResponse&& from) noexcept + : DeleteRobotResponse() { + *this = ::std::move(from); + } + + inline DeleteRobotResponse& operator=(const DeleteRobotResponse& from) { + CopyFrom(from); + return *this; + } + inline DeleteRobotResponse& operator=(DeleteRobotResponse&& 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 DeleteRobotResponse& default_instance() { + return *internal_default_instance(); + } + static inline const DeleteRobotResponse* internal_default_instance() { + return reinterpret_cast( + &_DeleteRobotResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 39; + + friend void swap(DeleteRobotResponse& a, DeleteRobotResponse& b) { + a.Swap(&b); + } + inline void Swap(DeleteRobotResponse* 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(DeleteRobotResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeleteRobotResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DeleteRobotResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DeleteRobotResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteRobotResponse"; + } + protected: + explicit DeleteRobotResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteRobotResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class MarkPartAsMainRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.MarkPartAsMainRequest) */ { + public: + inline MarkPartAsMainRequest() : MarkPartAsMainRequest(nullptr) {} + ~MarkPartAsMainRequest() override; + explicit PROTOBUF_CONSTEXPR MarkPartAsMainRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MarkPartAsMainRequest(const MarkPartAsMainRequest& from); + MarkPartAsMainRequest(MarkPartAsMainRequest&& from) noexcept + : MarkPartAsMainRequest() { + *this = ::std::move(from); + } + + inline MarkPartAsMainRequest& operator=(const MarkPartAsMainRequest& from) { + CopyFrom(from); + return *this; + } + inline MarkPartAsMainRequest& operator=(MarkPartAsMainRequest&& 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 MarkPartAsMainRequest& default_instance() { + return *internal_default_instance(); + } + static inline const MarkPartAsMainRequest* internal_default_instance() { + return reinterpret_cast( + &_MarkPartAsMainRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 40; + + friend void swap(MarkPartAsMainRequest& a, MarkPartAsMainRequest& b) { + a.Swap(&b); + } + inline void Swap(MarkPartAsMainRequest* 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(MarkPartAsMainRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MarkPartAsMainRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MarkPartAsMainRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MarkPartAsMainRequest& from) { + MarkPartAsMainRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MarkPartAsMainRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.MarkPartAsMainRequest"; + } + protected: + explicit MarkPartAsMainRequest(::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 { + kPartIdFieldNumber = 1, + }; + // string part_id = 1 [json_name = "partId"]; + void clear_part_id(); + const std::string& part_id() const; + template + void set_part_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_part_id(); + PROTOBUF_NODISCARD std::string* release_part_id(); + void set_allocated_part_id(std::string* part_id); + private: + const std::string& _internal_part_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_id(const std::string& value); + std::string* _internal_mutable_part_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.MarkPartAsMainRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr part_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class MarkPartAsMainResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.MarkPartAsMainResponse) */ { + public: + inline MarkPartAsMainResponse() : MarkPartAsMainResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR MarkPartAsMainResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MarkPartAsMainResponse(const MarkPartAsMainResponse& from); + MarkPartAsMainResponse(MarkPartAsMainResponse&& from) noexcept + : MarkPartAsMainResponse() { + *this = ::std::move(from); + } + + inline MarkPartAsMainResponse& operator=(const MarkPartAsMainResponse& from) { + CopyFrom(from); + return *this; + } + inline MarkPartAsMainResponse& operator=(MarkPartAsMainResponse&& 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 MarkPartAsMainResponse& default_instance() { + return *internal_default_instance(); + } + static inline const MarkPartAsMainResponse* internal_default_instance() { + return reinterpret_cast( + &_MarkPartAsMainResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 41; + + friend void swap(MarkPartAsMainResponse& a, MarkPartAsMainResponse& b) { + a.Swap(&b); + } + inline void Swap(MarkPartAsMainResponse* 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(MarkPartAsMainResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MarkPartAsMainResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const MarkPartAsMainResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const MarkPartAsMainResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.MarkPartAsMainResponse"; + } + protected: + explicit MarkPartAsMainResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.app.v1.MarkPartAsMainResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Robot + +// string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; +inline void Robot::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& Robot::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Robot.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Robot::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Robot.id) +} +inline std::string* Robot::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Robot.id) + return _s; +} +inline const std::string& Robot::_internal_id() const { + return _impl_.id_.Get(); +} +inline void Robot::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* Robot::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* Robot::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.Robot.id) + return _impl_.id_.Release(); +} +inline void Robot::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Robot.id) +} + +// string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; +inline void Robot::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& Robot::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Robot.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Robot::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Robot.name) +} +inline std::string* Robot::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Robot.name) + return _s; +} +inline const std::string& Robot::_internal_name() const { + return _impl_.name_.Get(); +} +inline void Robot::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Robot::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* Robot::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.Robot.name) + return _impl_.name_.Release(); +} +inline void Robot::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Robot.name) +} + +// string location = 3 [json_name = "location", (.tagger.v1.tags) = "bson:\"location\" json:\"location\""]; +inline void Robot::clear_location() { + _impl_.location_.ClearToEmpty(); +} +inline const std::string& Robot::location() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Robot.location) + return _internal_location(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Robot::set_location(ArgT0&& arg0, ArgT... args) { + + _impl_.location_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Robot.location) +} +inline std::string* Robot::mutable_location() { + std::string* _s = _internal_mutable_location(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Robot.location) + return _s; +} +inline const std::string& Robot::_internal_location() const { + return _impl_.location_.Get(); +} +inline void Robot::_internal_set_location(const std::string& value) { + + _impl_.location_.Set(value, GetArenaForAllocation()); +} +inline std::string* Robot::_internal_mutable_location() { + + return _impl_.location_.Mutable(GetArenaForAllocation()); +} +inline std::string* Robot::release_location() { + // @@protoc_insertion_point(field_release:viam.app.v1.Robot.location) + return _impl_.location_.Release(); +} +inline void Robot::set_allocated_location(std::string* location) { + if (location != nullptr) { + + } else { + + } + _impl_.location_.SetAllocated(location, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.location_.IsDefault()) { + _impl_.location_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Robot.location) +} + +// .google.protobuf.Timestamp last_access = 4 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; +inline bool Robot::_internal_has_last_access() const { + return this != internal_default_instance() && _impl_.last_access_ != nullptr; +} +inline bool Robot::has_last_access() const { + return _internal_has_last_access(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Robot::_internal_last_access() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.last_access_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Robot::last_access() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Robot.last_access) + return _internal_last_access(); +} +inline void Robot::unsafe_arena_set_allocated_last_access( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_access) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.last_access_); + } + _impl_.last_access_ = last_access; + if (last_access) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Robot.last_access) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Robot::release_last_access() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.last_access_; + _impl_.last_access_ = 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* Robot::unsafe_arena_release_last_access() { + // @@protoc_insertion_point(field_release:viam.app.v1.Robot.last_access) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.last_access_; + _impl_.last_access_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Robot::_internal_mutable_last_access() { + + if (_impl_.last_access_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.last_access_ = p; + } + return _impl_.last_access_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Robot::mutable_last_access() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_last_access(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Robot.last_access) + return _msg; +} +inline void Robot::set_allocated_last_access(::PROTOBUF_NAMESPACE_ID::Timestamp* last_access) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.last_access_); + } + if (last_access) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_access)); + if (message_arena != submessage_arena) { + last_access = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, last_access, submessage_arena); + } + + } else { + + } + _impl_.last_access_ = last_access; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Robot.last_access) +} + +// .google.protobuf.Timestamp created_on = 5 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; +inline bool Robot::_internal_has_created_on() const { + return this != internal_default_instance() && _impl_.created_on_ != nullptr; +} +inline bool Robot::has_created_on() const { + return _internal_has_created_on(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Robot::_internal_created_on() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.created_on_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Robot::created_on() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Robot.created_on) + return _internal_created_on(); +} +inline void Robot::unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.created_on_); + } + _impl_.created_on_ = created_on; + if (created_on) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Robot.created_on) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Robot::release_created_on() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.created_on_; + _impl_.created_on_ = 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* Robot::unsafe_arena_release_created_on() { + // @@protoc_insertion_point(field_release:viam.app.v1.Robot.created_on) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.created_on_; + _impl_.created_on_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Robot::_internal_mutable_created_on() { + + if (_impl_.created_on_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.created_on_ = p; + } + return _impl_.created_on_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Robot::mutable_created_on() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_created_on(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Robot.created_on) + return _msg; +} +inline void Robot::set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.created_on_); + } + if (created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on)); + if (message_arena != submessage_arena) { + created_on = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, created_on, submessage_arena); + } + + } else { + + } + _impl_.created_on_ = created_on; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Robot.created_on) +} + +// ------------------------------------------------------------------- + +// RobotPart + +// string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; +inline void RobotPart::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& RobotPart::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RobotPart::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.id) +} +inline std::string* RobotPart::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.id) + return _s; +} +inline const std::string& RobotPart::_internal_id() const { + return _impl_.id_.Get(); +} +inline void RobotPart::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* RobotPart::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* RobotPart::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.id) + return _impl_.id_.Release(); +} +inline void RobotPart::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.id) +} + +// string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; +inline void RobotPart::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& RobotPart::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RobotPart::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.name) +} +inline std::string* RobotPart::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.name) + return _s; +} +inline const std::string& RobotPart::_internal_name() const { + return _impl_.name_.Get(); +} +inline void RobotPart::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* RobotPart::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* RobotPart::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.name) + return _impl_.name_.Release(); +} +inline void RobotPart::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.name) +} + +// string dns_name = 10 [json_name = "dnsName", (.tagger.v1.tags) = "bson:\"dns_name\" json:\"dns_name\""]; +inline void RobotPart::clear_dns_name() { + _impl_.dns_name_.ClearToEmpty(); +} +inline const std::string& RobotPart::dns_name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.dns_name) + return _internal_dns_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RobotPart::set_dns_name(ArgT0&& arg0, ArgT... args) { + + _impl_.dns_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.dns_name) +} +inline std::string* RobotPart::mutable_dns_name() { + std::string* _s = _internal_mutable_dns_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.dns_name) + return _s; +} +inline const std::string& RobotPart::_internal_dns_name() const { + return _impl_.dns_name_.Get(); +} +inline void RobotPart::_internal_set_dns_name(const std::string& value) { + + _impl_.dns_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* RobotPart::_internal_mutable_dns_name() { + + return _impl_.dns_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* RobotPart::release_dns_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.dns_name) + return _impl_.dns_name_.Release(); +} +inline void RobotPart::set_allocated_dns_name(std::string* dns_name) { + if (dns_name != nullptr) { + + } else { + + } + _impl_.dns_name_.SetAllocated(dns_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.dns_name_.IsDefault()) { + _impl_.dns_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.dns_name) +} + +// string secret = 3 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\" json:\"secret,omitempty\""]; +inline void RobotPart::clear_secret() { + _impl_.secret_.ClearToEmpty(); +} +inline const std::string& RobotPart::secret() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.secret) + return _internal_secret(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RobotPart::set_secret(ArgT0&& arg0, ArgT... args) { + + _impl_.secret_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.secret) +} +inline std::string* RobotPart::mutable_secret() { + std::string* _s = _internal_mutable_secret(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.secret) + return _s; +} +inline const std::string& RobotPart::_internal_secret() const { + return _impl_.secret_.Get(); +} +inline void RobotPart::_internal_set_secret(const std::string& value) { + + _impl_.secret_.Set(value, GetArenaForAllocation()); +} +inline std::string* RobotPart::_internal_mutable_secret() { + + return _impl_.secret_.Mutable(GetArenaForAllocation()); +} +inline std::string* RobotPart::release_secret() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.secret) + return _impl_.secret_.Release(); +} +inline void RobotPart::set_allocated_secret(std::string* secret) { + if (secret != nullptr) { + + } else { + + } + _impl_.secret_.SetAllocated(secret, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.secret_.IsDefault()) { + _impl_.secret_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.secret) +} + +// string robot = 4 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; +inline void RobotPart::clear_robot() { + _impl_.robot_.ClearToEmpty(); +} +inline const std::string& RobotPart::robot() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.robot) + return _internal_robot(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RobotPart::set_robot(ArgT0&& arg0, ArgT... args) { + + _impl_.robot_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.robot) +} +inline std::string* RobotPart::mutable_robot() { + std::string* _s = _internal_mutable_robot(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.robot) + return _s; +} +inline const std::string& RobotPart::_internal_robot() const { + return _impl_.robot_.Get(); +} +inline void RobotPart::_internal_set_robot(const std::string& value) { + + _impl_.robot_.Set(value, GetArenaForAllocation()); +} +inline std::string* RobotPart::_internal_mutable_robot() { + + return _impl_.robot_.Mutable(GetArenaForAllocation()); +} +inline std::string* RobotPart::release_robot() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.robot) + return _impl_.robot_.Release(); +} +inline void RobotPart::set_allocated_robot(std::string* robot) { + if (robot != nullptr) { + + } else { + + } + _impl_.robot_.SetAllocated(robot, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.robot_.IsDefault()) { + _impl_.robot_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.robot) +} + +// string location_id = 12 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"-\""]; +inline void RobotPart::clear_location_id() { + _impl_.location_id_.ClearToEmpty(); +} +inline const std::string& RobotPart::location_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.location_id) + return _internal_location_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RobotPart::set_location_id(ArgT0&& arg0, ArgT... args) { + + _impl_.location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.location_id) +} +inline std::string* RobotPart::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.location_id) + return _s; +} +inline const std::string& RobotPart::_internal_location_id() const { + return _impl_.location_id_.Get(); +} +inline void RobotPart::_internal_set_location_id(const std::string& value) { + + _impl_.location_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* RobotPart::_internal_mutable_location_id() { + + return _impl_.location_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* RobotPart::release_location_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.location_id) + return _impl_.location_id_.Release(); +} +inline void RobotPart::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + + } else { + + } + _impl_.location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.location_id_.IsDefault()) { + _impl_.location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.location_id) +} + +// .google.protobuf.Struct robot_config = 5 [json_name = "robotConfig", (.tagger.v1.tags) = "bson:\"config\" json:\"robot_config\""]; +inline bool RobotPart::_internal_has_robot_config() const { + return this != internal_default_instance() && _impl_.robot_config_ != nullptr; +} +inline bool RobotPart::has_robot_config() const { + return _internal_has_robot_config(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& RobotPart::_internal_robot_config() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.robot_config_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& RobotPart::robot_config() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.robot_config) + return _internal_robot_config(); +} +inline void RobotPart::unsafe_arena_set_allocated_robot_config( + ::PROTOBUF_NAMESPACE_ID::Struct* robot_config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.robot_config_); + } + _impl_.robot_config_ = robot_config; + if (robot_config) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPart.robot_config) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* RobotPart::release_robot_config() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.robot_config_; + _impl_.robot_config_ = 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* RobotPart::unsafe_arena_release_robot_config() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.robot_config) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.robot_config_; + _impl_.robot_config_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* RobotPart::_internal_mutable_robot_config() { + + if (_impl_.robot_config_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.robot_config_ = p; + } + return _impl_.robot_config_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* RobotPart::mutable_robot_config() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_robot_config(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.robot_config) + return _msg; +} +inline void RobotPart::set_allocated_robot_config(::PROTOBUF_NAMESPACE_ID::Struct* robot_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.robot_config_); + } + if (robot_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(robot_config)); + if (message_arena != submessage_arena) { + robot_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, robot_config, submessage_arena); + } + + } else { + + } + _impl_.robot_config_ = robot_config; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.robot_config) +} + +// .google.protobuf.Timestamp last_access = 6 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; +inline bool RobotPart::_internal_has_last_access() const { + return this != internal_default_instance() && _impl_.last_access_ != nullptr; +} +inline bool RobotPart::has_last_access() const { + return _internal_has_last_access(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& RobotPart::_internal_last_access() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.last_access_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& RobotPart::last_access() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.last_access) + return _internal_last_access(); +} +inline void RobotPart::unsafe_arena_set_allocated_last_access( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_access) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.last_access_); + } + _impl_.last_access_ = last_access; + if (last_access) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPart.last_access) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RobotPart::release_last_access() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.last_access_; + _impl_.last_access_ = 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* RobotPart::unsafe_arena_release_last_access() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.last_access) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.last_access_; + _impl_.last_access_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RobotPart::_internal_mutable_last_access() { + + if (_impl_.last_access_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.last_access_ = p; + } + return _impl_.last_access_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RobotPart::mutable_last_access() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_last_access(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.last_access) + return _msg; +} +inline void RobotPart::set_allocated_last_access(::PROTOBUF_NAMESPACE_ID::Timestamp* last_access) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.last_access_); + } + if (last_access) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_access)); + if (message_arena != submessage_arena) { + last_access = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, last_access, submessage_arena); + } + + } else { + + } + _impl_.last_access_ = last_access; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.last_access) +} + +// .google.protobuf.Struct user_supplied_info = 7 [json_name = "userSuppliedInfo", (.tagger.v1.tags) = "bson:\"user_supplied_info\" json:\"user_supplied_info\""]; +inline bool RobotPart::_internal_has_user_supplied_info() const { + return this != internal_default_instance() && _impl_.user_supplied_info_ != nullptr; +} +inline bool RobotPart::has_user_supplied_info() const { + return _internal_has_user_supplied_info(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& RobotPart::_internal_user_supplied_info() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.user_supplied_info_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& RobotPart::user_supplied_info() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.user_supplied_info) + return _internal_user_supplied_info(); +} +inline void RobotPart::unsafe_arena_set_allocated_user_supplied_info( + ::PROTOBUF_NAMESPACE_ID::Struct* user_supplied_info) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.user_supplied_info_); + } + _impl_.user_supplied_info_ = user_supplied_info; + if (user_supplied_info) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPart.user_supplied_info) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* RobotPart::release_user_supplied_info() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.user_supplied_info_; + _impl_.user_supplied_info_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* RobotPart::unsafe_arena_release_user_supplied_info() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.user_supplied_info) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.user_supplied_info_; + _impl_.user_supplied_info_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* RobotPart::_internal_mutable_user_supplied_info() { + + if (_impl_.user_supplied_info_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.user_supplied_info_ = p; + } + return _impl_.user_supplied_info_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* RobotPart::mutable_user_supplied_info() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_user_supplied_info(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.user_supplied_info) + return _msg; +} +inline void RobotPart::set_allocated_user_supplied_info(::PROTOBUF_NAMESPACE_ID::Struct* user_supplied_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.user_supplied_info_); + } + if (user_supplied_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(user_supplied_info)); + if (message_arena != submessage_arena) { + user_supplied_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, user_supplied_info, submessage_arena); + } + + } else { + + } + _impl_.user_supplied_info_ = user_supplied_info; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.user_supplied_info) +} + +// bool main_part = 8 [json_name = "mainPart", (.tagger.v1.tags) = "bson:\"main_part\" json:\"main_part\""]; +inline void RobotPart::clear_main_part() { + _impl_.main_part_ = false; +} +inline bool RobotPart::_internal_main_part() const { + return _impl_.main_part_; +} +inline bool RobotPart::main_part() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.main_part) + return _internal_main_part(); +} +inline void RobotPart::_internal_set_main_part(bool value) { + + _impl_.main_part_ = value; +} +inline void RobotPart::set_main_part(bool value) { + _internal_set_main_part(value); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.main_part) +} + +// string fqdn = 9 [json_name = "fqdn"]; +inline void RobotPart::clear_fqdn() { + _impl_.fqdn_.ClearToEmpty(); +} +inline const std::string& RobotPart::fqdn() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.fqdn) + return _internal_fqdn(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RobotPart::set_fqdn(ArgT0&& arg0, ArgT... args) { + + _impl_.fqdn_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.fqdn) +} +inline std::string* RobotPart::mutable_fqdn() { + std::string* _s = _internal_mutable_fqdn(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.fqdn) + return _s; +} +inline const std::string& RobotPart::_internal_fqdn() const { + return _impl_.fqdn_.Get(); +} +inline void RobotPart::_internal_set_fqdn(const std::string& value) { + + _impl_.fqdn_.Set(value, GetArenaForAllocation()); +} +inline std::string* RobotPart::_internal_mutable_fqdn() { + + return _impl_.fqdn_.Mutable(GetArenaForAllocation()); +} +inline std::string* RobotPart::release_fqdn() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.fqdn) + return _impl_.fqdn_.Release(); +} +inline void RobotPart::set_allocated_fqdn(std::string* fqdn) { + if (fqdn != nullptr) { + + } else { + + } + _impl_.fqdn_.SetAllocated(fqdn, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.fqdn_.IsDefault()) { + _impl_.fqdn_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.fqdn) +} + +// string local_fqdn = 11 [json_name = "localFqdn"]; +inline void RobotPart::clear_local_fqdn() { + _impl_.local_fqdn_.ClearToEmpty(); +} +inline const std::string& RobotPart::local_fqdn() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.local_fqdn) + return _internal_local_fqdn(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RobotPart::set_local_fqdn(ArgT0&& arg0, ArgT... args) { + + _impl_.local_fqdn_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.local_fqdn) +} +inline std::string* RobotPart::mutable_local_fqdn() { + std::string* _s = _internal_mutable_local_fqdn(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.local_fqdn) + return _s; +} +inline const std::string& RobotPart::_internal_local_fqdn() const { + return _impl_.local_fqdn_.Get(); +} +inline void RobotPart::_internal_set_local_fqdn(const std::string& value) { + + _impl_.local_fqdn_.Set(value, GetArenaForAllocation()); +} +inline std::string* RobotPart::_internal_mutable_local_fqdn() { + + return _impl_.local_fqdn_.Mutable(GetArenaForAllocation()); +} +inline std::string* RobotPart::release_local_fqdn() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.local_fqdn) + return _impl_.local_fqdn_.Release(); +} +inline void RobotPart::set_allocated_local_fqdn(std::string* local_fqdn) { + if (local_fqdn != nullptr) { + + } else { + + } + _impl_.local_fqdn_.SetAllocated(local_fqdn, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.local_fqdn_.IsDefault()) { + _impl_.local_fqdn_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.local_fqdn) +} + +// .google.protobuf.Timestamp created_on = 13 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; +inline bool RobotPart::_internal_has_created_on() const { + return this != internal_default_instance() && _impl_.created_on_ != nullptr; +} +inline bool RobotPart::has_created_on() const { + return _internal_has_created_on(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& RobotPart::_internal_created_on() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.created_on_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& RobotPart::created_on() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.created_on) + return _internal_created_on(); +} +inline void RobotPart::unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.created_on_); + } + _impl_.created_on_ = created_on; + if (created_on) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPart.created_on) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RobotPart::release_created_on() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.created_on_; + _impl_.created_on_ = 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* RobotPart::unsafe_arena_release_created_on() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.created_on) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.created_on_; + _impl_.created_on_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RobotPart::_internal_mutable_created_on() { + + if (_impl_.created_on_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.created_on_ = p; + } + return _impl_.created_on_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RobotPart::mutable_created_on() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_created_on(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.created_on) + return _msg; +} +inline void RobotPart::set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.created_on_); + } + if (created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on)); + if (message_arena != submessage_arena) { + created_on = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, created_on, submessage_arena); + } + + } else { + + } + _impl_.created_on_ = created_on; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.created_on) +} + +// ------------------------------------------------------------------- + +// RobotPartHistoryEntry + +// string part = 1 [json_name = "part", (.tagger.v1.tags) = "bson:\"part\" json:\"part\""]; +inline void RobotPartHistoryEntry::clear_part() { + _impl_.part_.ClearToEmpty(); +} +inline const std::string& RobotPartHistoryEntry::part() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPartHistoryEntry.part) + return _internal_part(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RobotPartHistoryEntry::set_part(ArgT0&& arg0, ArgT... args) { + + _impl_.part_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPartHistoryEntry.part) +} +inline std::string* RobotPartHistoryEntry::mutable_part() { + std::string* _s = _internal_mutable_part(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPartHistoryEntry.part) + return _s; +} +inline const std::string& RobotPartHistoryEntry::_internal_part() const { + return _impl_.part_.Get(); +} +inline void RobotPartHistoryEntry::_internal_set_part(const std::string& value) { + + _impl_.part_.Set(value, GetArenaForAllocation()); +} +inline std::string* RobotPartHistoryEntry::_internal_mutable_part() { + + return _impl_.part_.Mutable(GetArenaForAllocation()); +} +inline std::string* RobotPartHistoryEntry::release_part() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPartHistoryEntry.part) + return _impl_.part_.Release(); +} +inline void RobotPartHistoryEntry::set_allocated_part(std::string* part) { + if (part != nullptr) { + + } else { + + } + _impl_.part_.SetAllocated(part, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.part_.IsDefault()) { + _impl_.part_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPartHistoryEntry.part) +} + +// string robot = 2 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; +inline void RobotPartHistoryEntry::clear_robot() { + _impl_.robot_.ClearToEmpty(); +} +inline const std::string& RobotPartHistoryEntry::robot() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPartHistoryEntry.robot) + return _internal_robot(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RobotPartHistoryEntry::set_robot(ArgT0&& arg0, ArgT... args) { + + _impl_.robot_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPartHistoryEntry.robot) +} +inline std::string* RobotPartHistoryEntry::mutable_robot() { + std::string* _s = _internal_mutable_robot(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPartHistoryEntry.robot) + return _s; +} +inline const std::string& RobotPartHistoryEntry::_internal_robot() const { + return _impl_.robot_.Get(); +} +inline void RobotPartHistoryEntry::_internal_set_robot(const std::string& value) { + + _impl_.robot_.Set(value, GetArenaForAllocation()); +} +inline std::string* RobotPartHistoryEntry::_internal_mutable_robot() { + + return _impl_.robot_.Mutable(GetArenaForAllocation()); +} +inline std::string* RobotPartHistoryEntry::release_robot() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPartHistoryEntry.robot) + return _impl_.robot_.Release(); +} +inline void RobotPartHistoryEntry::set_allocated_robot(std::string* robot) { + if (robot != nullptr) { + + } else { + + } + _impl_.robot_.SetAllocated(robot, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.robot_.IsDefault()) { + _impl_.robot_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPartHistoryEntry.robot) +} + +// .google.protobuf.Timestamp when = 3 [json_name = "when", (.tagger.v1.tags) = "bson:\"when\" json:\"when\""]; +inline bool RobotPartHistoryEntry::_internal_has_when() const { + return this != internal_default_instance() && _impl_.when_ != nullptr; +} +inline bool RobotPartHistoryEntry::has_when() const { + return _internal_has_when(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& RobotPartHistoryEntry::_internal_when() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.when_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& RobotPartHistoryEntry::when() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPartHistoryEntry.when) + return _internal_when(); +} +inline void RobotPartHistoryEntry::unsafe_arena_set_allocated_when( + ::PROTOBUF_NAMESPACE_ID::Timestamp* when) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.when_); + } + _impl_.when_ = when; + if (when) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPartHistoryEntry.when) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RobotPartHistoryEntry::release_when() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.when_; + _impl_.when_ = 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* RobotPartHistoryEntry::unsafe_arena_release_when() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPartHistoryEntry.when) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.when_; + _impl_.when_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RobotPartHistoryEntry::_internal_mutable_when() { + + if (_impl_.when_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.when_ = p; + } + return _impl_.when_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RobotPartHistoryEntry::mutable_when() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_when(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPartHistoryEntry.when) + return _msg; +} +inline void RobotPartHistoryEntry::set_allocated_when(::PROTOBUF_NAMESPACE_ID::Timestamp* when) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.when_); + } + if (when) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(when)); + if (message_arena != submessage_arena) { + when = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, when, submessage_arena); + } + + } else { + + } + _impl_.when_ = when; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPartHistoryEntry.when) +} + +// .viam.app.v1.RobotPart old = 4 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; +inline bool RobotPartHistoryEntry::_internal_has_old() const { + return this != internal_default_instance() && _impl_.old_ != nullptr; +} +inline bool RobotPartHistoryEntry::has_old() const { + return _internal_has_old(); +} +inline void RobotPartHistoryEntry::clear_old() { + if (GetArenaForAllocation() == nullptr && _impl_.old_ != nullptr) { + delete _impl_.old_; + } + _impl_.old_ = nullptr; +} +inline const ::viam::app::v1::RobotPart& RobotPartHistoryEntry::_internal_old() const { + const ::viam::app::v1::RobotPart* p = _impl_.old_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_RobotPart_default_instance_); +} +inline const ::viam::app::v1::RobotPart& RobotPartHistoryEntry::old() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPartHistoryEntry.old) + return _internal_old(); +} +inline void RobotPartHistoryEntry::unsafe_arena_set_allocated_old( + ::viam::app::v1::RobotPart* old) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.old_); + } + _impl_.old_ = old; + if (old) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPartHistoryEntry.old) +} +inline ::viam::app::v1::RobotPart* RobotPartHistoryEntry::release_old() { + + ::viam::app::v1::RobotPart* temp = _impl_.old_; + _impl_.old_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::RobotPart* RobotPartHistoryEntry::unsafe_arena_release_old() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPartHistoryEntry.old) + + ::viam::app::v1::RobotPart* temp = _impl_.old_; + _impl_.old_ = nullptr; + return temp; +} +inline ::viam::app::v1::RobotPart* RobotPartHistoryEntry::_internal_mutable_old() { + + if (_impl_.old_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::RobotPart>(GetArenaForAllocation()); + _impl_.old_ = p; + } + return _impl_.old_; +} +inline ::viam::app::v1::RobotPart* RobotPartHistoryEntry::mutable_old() { + ::viam::app::v1::RobotPart* _msg = _internal_mutable_old(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPartHistoryEntry.old) + return _msg; +} +inline void RobotPartHistoryEntry::set_allocated_old(::viam::app::v1::RobotPart* old) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.old_; + } + if (old) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(old); + if (message_arena != submessage_arena) { + old = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, old, submessage_arena); + } + + } else { + + } + _impl_.old_ = old; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPartHistoryEntry.old) +} + +// ------------------------------------------------------------------- + +// ListOrganizationsRequest + +// ------------------------------------------------------------------- + +// Organization + +// string id = 1 [json_name = "id"]; +inline void Organization::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& Organization::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Organization.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Organization::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Organization.id) +} +inline std::string* Organization::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Organization.id) + return _s; +} +inline const std::string& Organization::_internal_id() const { + return _impl_.id_.Get(); +} +inline void Organization::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* Organization::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* Organization::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.Organization.id) + return _impl_.id_.Release(); +} +inline void Organization::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Organization.id) +} + +// string name = 2 [json_name = "name"]; +inline void Organization::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& Organization::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Organization.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Organization::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Organization.name) +} +inline std::string* Organization::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Organization.name) + return _s; +} +inline const std::string& Organization::_internal_name() const { + return _impl_.name_.Get(); +} +inline void Organization::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Organization::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* Organization::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.Organization.name) + return _impl_.name_.Release(); +} +inline void Organization::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Organization.name) +} + +// .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; +inline bool Organization::_internal_has_created_on() const { + return this != internal_default_instance() && _impl_.created_on_ != nullptr; +} +inline bool Organization::has_created_on() const { + return _internal_has_created_on(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Organization::_internal_created_on() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.created_on_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Organization::created_on() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Organization.created_on) + return _internal_created_on(); +} +inline void Organization::unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.created_on_); + } + _impl_.created_on_ = created_on; + if (created_on) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Organization.created_on) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Organization::release_created_on() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.created_on_; + _impl_.created_on_ = 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* Organization::unsafe_arena_release_created_on() { + // @@protoc_insertion_point(field_release:viam.app.v1.Organization.created_on) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.created_on_; + _impl_.created_on_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Organization::_internal_mutable_created_on() { + + if (_impl_.created_on_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.created_on_ = p; + } + return _impl_.created_on_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Organization::mutable_created_on() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_created_on(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Organization.created_on) + return _msg; +} +inline void Organization::set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.created_on_); + } + if (created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on)); + if (message_arena != submessage_arena) { + created_on = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, created_on, submessage_arena); + } + + } else { + + } + _impl_.created_on_ = created_on; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Organization.created_on) +} + +// ------------------------------------------------------------------- + +// ListOrganizationsResponse + +// repeated .viam.app.v1.Organization organizations = 1 [json_name = "organizations"]; +inline int ListOrganizationsResponse::_internal_organizations_size() const { + return _impl_.organizations_.size(); +} +inline int ListOrganizationsResponse::organizations_size() const { + return _internal_organizations_size(); +} +inline void ListOrganizationsResponse::clear_organizations() { + _impl_.organizations_.Clear(); +} +inline ::viam::app::v1::Organization* ListOrganizationsResponse::mutable_organizations(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListOrganizationsResponse.organizations) + return _impl_.organizations_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Organization >* +ListOrganizationsResponse::mutable_organizations() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListOrganizationsResponse.organizations) + return &_impl_.organizations_; +} +inline const ::viam::app::v1::Organization& ListOrganizationsResponse::_internal_organizations(int index) const { + return _impl_.organizations_.Get(index); +} +inline const ::viam::app::v1::Organization& ListOrganizationsResponse::organizations(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListOrganizationsResponse.organizations) + return _internal_organizations(index); +} +inline ::viam::app::v1::Organization* ListOrganizationsResponse::_internal_add_organizations() { + return _impl_.organizations_.Add(); +} +inline ::viam::app::v1::Organization* ListOrganizationsResponse::add_organizations() { + ::viam::app::v1::Organization* _add = _internal_add_organizations(); + // @@protoc_insertion_point(field_add:viam.app.v1.ListOrganizationsResponse.organizations) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Organization >& +ListOrganizationsResponse::organizations() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListOrganizationsResponse.organizations) + return _impl_.organizations_; +} + +// ------------------------------------------------------------------- + +// Location + +// string id = 1 [json_name = "id"]; +inline void Location::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& Location::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Location.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Location::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Location.id) +} +inline std::string* Location::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Location.id) + return _s; +} +inline const std::string& Location::_internal_id() const { + return _impl_.id_.Get(); +} +inline void Location::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* Location::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* Location::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.Location.id) + return _impl_.id_.Release(); +} +inline void Location::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Location.id) +} + +// string name = 2 [json_name = "name"]; +inline void Location::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& Location::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Location.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Location::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Location.name) +} +inline std::string* Location::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Location.name) + return _s; +} +inline const std::string& Location::_internal_name() const { + return _impl_.name_.Get(); +} +inline void Location::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Location::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* Location::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.Location.name) + return _impl_.name_.Release(); +} +inline void Location::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Location.name) +} + +// .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; +inline bool Location::_internal_has_created_on() const { + return this != internal_default_instance() && _impl_.created_on_ != nullptr; +} +inline bool Location::has_created_on() const { + return _internal_has_created_on(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Location::_internal_created_on() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.created_on_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Location::created_on() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Location.created_on) + return _internal_created_on(); +} +inline void Location::unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.created_on_); + } + _impl_.created_on_ = created_on; + if (created_on) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Location.created_on) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Location::release_created_on() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.created_on_; + _impl_.created_on_ = 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* Location::unsafe_arena_release_created_on() { + // @@protoc_insertion_point(field_release:viam.app.v1.Location.created_on) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.created_on_; + _impl_.created_on_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Location::_internal_mutable_created_on() { + + if (_impl_.created_on_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.created_on_ = p; + } + return _impl_.created_on_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Location::mutable_created_on() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_created_on(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Location.created_on) + return _msg; +} +inline void Location::set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.created_on_); + } + if (created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on)); + if (message_arena != submessage_arena) { + created_on = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, created_on, submessage_arena); + } + + } else { + + } + _impl_.created_on_ = created_on; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Location.created_on) +} + +// ------------------------------------------------------------------- + +// ListLocationsRequest + +// string organization_id = 1 [json_name = "organizationId"]; +inline void ListLocationsRequest::clear_organization_id() { + _impl_.organization_id_.ClearToEmpty(); +} +inline const std::string& ListLocationsRequest::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListLocationsRequest.organization_id) + return _internal_organization_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ListLocationsRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + _impl_.organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ListLocationsRequest.organization_id) +} +inline std::string* ListLocationsRequest::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListLocationsRequest.organization_id) + return _s; +} +inline const std::string& ListLocationsRequest::_internal_organization_id() const { + return _impl_.organization_id_.Get(); +} +inline void ListLocationsRequest::_internal_set_organization_id(const std::string& value) { + + _impl_.organization_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* ListLocationsRequest::_internal_mutable_organization_id() { + + return _impl_.organization_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* ListLocationsRequest::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ListLocationsRequest.organization_id) + return _impl_.organization_id_.Release(); +} +inline void ListLocationsRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + _impl_.organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.organization_id_.IsDefault()) { + _impl_.organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListLocationsRequest.organization_id) +} + +// ------------------------------------------------------------------- + +// ListLocationsResponse + +// repeated .viam.app.v1.Location locations = 1 [json_name = "locations"]; +inline int ListLocationsResponse::_internal_locations_size() const { + return _impl_.locations_.size(); +} +inline int ListLocationsResponse::locations_size() const { + return _internal_locations_size(); +} +inline void ListLocationsResponse::clear_locations() { + _impl_.locations_.Clear(); +} +inline ::viam::app::v1::Location* ListLocationsResponse::mutable_locations(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListLocationsResponse.locations) + return _impl_.locations_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Location >* +ListLocationsResponse::mutable_locations() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListLocationsResponse.locations) + return &_impl_.locations_; +} +inline const ::viam::app::v1::Location& ListLocationsResponse::_internal_locations(int index) const { + return _impl_.locations_.Get(index); +} +inline const ::viam::app::v1::Location& ListLocationsResponse::locations(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListLocationsResponse.locations) + return _internal_locations(index); +} +inline ::viam::app::v1::Location* ListLocationsResponse::_internal_add_locations() { + return _impl_.locations_.Add(); +} +inline ::viam::app::v1::Location* ListLocationsResponse::add_locations() { + ::viam::app::v1::Location* _add = _internal_add_locations(); + // @@protoc_insertion_point(field_add:viam.app.v1.ListLocationsResponse.locations) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Location >& +ListLocationsResponse::locations() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListLocationsResponse.locations) + return _impl_.locations_; +} + +// ------------------------------------------------------------------- + +// LocationAuth + +// string secret = 1 [json_name = "secret"]; +inline void LocationAuth::clear_secret() { + _impl_.secret_.ClearToEmpty(); +} +inline const std::string& LocationAuth::secret() const { + // @@protoc_insertion_point(field_get:viam.app.v1.LocationAuth.secret) + return _internal_secret(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void LocationAuth::set_secret(ArgT0&& arg0, ArgT... args) { + + _impl_.secret_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.LocationAuth.secret) +} +inline std::string* LocationAuth::mutable_secret() { + std::string* _s = _internal_mutable_secret(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.LocationAuth.secret) + return _s; +} +inline const std::string& LocationAuth::_internal_secret() const { + return _impl_.secret_.Get(); +} +inline void LocationAuth::_internal_set_secret(const std::string& value) { + + _impl_.secret_.Set(value, GetArenaForAllocation()); +} +inline std::string* LocationAuth::_internal_mutable_secret() { + + return _impl_.secret_.Mutable(GetArenaForAllocation()); +} +inline std::string* LocationAuth::release_secret() { + // @@protoc_insertion_point(field_release:viam.app.v1.LocationAuth.secret) + return _impl_.secret_.Release(); +} +inline void LocationAuth::set_allocated_secret(std::string* secret) { + if (secret != nullptr) { + + } else { + + } + _impl_.secret_.SetAllocated(secret, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.secret_.IsDefault()) { + _impl_.secret_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LocationAuth.secret) +} + +// ------------------------------------------------------------------- + +// LocationAuthRequest + +// string location_id = 1 [json_name = "locationId"]; +inline void LocationAuthRequest::clear_location_id() { + _impl_.location_id_.ClearToEmpty(); +} +inline const std::string& LocationAuthRequest::location_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.LocationAuthRequest.location_id) + return _internal_location_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void LocationAuthRequest::set_location_id(ArgT0&& arg0, ArgT... args) { + + _impl_.location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.LocationAuthRequest.location_id) +} +inline std::string* LocationAuthRequest::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.LocationAuthRequest.location_id) + return _s; +} +inline const std::string& LocationAuthRequest::_internal_location_id() const { + return _impl_.location_id_.Get(); +} +inline void LocationAuthRequest::_internal_set_location_id(const std::string& value) { + + _impl_.location_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* LocationAuthRequest::_internal_mutable_location_id() { + + return _impl_.location_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* LocationAuthRequest::release_location_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.LocationAuthRequest.location_id) + return _impl_.location_id_.Release(); +} +inline void LocationAuthRequest::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + + } else { + + } + _impl_.location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.location_id_.IsDefault()) { + _impl_.location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LocationAuthRequest.location_id) +} + +// ------------------------------------------------------------------- + +// LocationAuthResponse + +// .viam.app.v1.LocationAuth auth = 1 [json_name = "auth"]; +inline bool LocationAuthResponse::_internal_has_auth() const { + return this != internal_default_instance() && _impl_.auth_ != nullptr; +} +inline bool LocationAuthResponse::has_auth() const { + return _internal_has_auth(); +} +inline void LocationAuthResponse::clear_auth() { + if (GetArenaForAllocation() == nullptr && _impl_.auth_ != nullptr) { + delete _impl_.auth_; + } + _impl_.auth_ = nullptr; +} +inline const ::viam::app::v1::LocationAuth& LocationAuthResponse::_internal_auth() const { + const ::viam::app::v1::LocationAuth* p = _impl_.auth_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_LocationAuth_default_instance_); +} +inline const ::viam::app::v1::LocationAuth& LocationAuthResponse::auth() const { + // @@protoc_insertion_point(field_get:viam.app.v1.LocationAuthResponse.auth) + return _internal_auth(); +} +inline void LocationAuthResponse::unsafe_arena_set_allocated_auth( + ::viam::app::v1::LocationAuth* auth) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.auth_); + } + _impl_.auth_ = auth; + if (auth) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.LocationAuthResponse.auth) +} +inline ::viam::app::v1::LocationAuth* LocationAuthResponse::release_auth() { + + ::viam::app::v1::LocationAuth* temp = _impl_.auth_; + _impl_.auth_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::LocationAuth* LocationAuthResponse::unsafe_arena_release_auth() { + // @@protoc_insertion_point(field_release:viam.app.v1.LocationAuthResponse.auth) + + ::viam::app::v1::LocationAuth* temp = _impl_.auth_; + _impl_.auth_ = nullptr; + return temp; +} +inline ::viam::app::v1::LocationAuth* LocationAuthResponse::_internal_mutable_auth() { + + if (_impl_.auth_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::LocationAuth>(GetArenaForAllocation()); + _impl_.auth_ = p; + } + return _impl_.auth_; +} +inline ::viam::app::v1::LocationAuth* LocationAuthResponse::mutable_auth() { + ::viam::app::v1::LocationAuth* _msg = _internal_mutable_auth(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.LocationAuthResponse.auth) + return _msg; +} +inline void LocationAuthResponse::set_allocated_auth(::viam::app::v1::LocationAuth* auth) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.auth_; + } + if (auth) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(auth); + if (message_arena != submessage_arena) { + auth = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, auth, submessage_arena); + } + + } else { + + } + _impl_.auth_ = auth; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LocationAuthResponse.auth) +} + +// ------------------------------------------------------------------- + +// GetRobotRequest + +// string id = 1 [json_name = "id"]; +inline void GetRobotRequest::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& GetRobotRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotRequest.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetRobotRequest::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotRequest.id) +} +inline std::string* GetRobotRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotRequest.id) + return _s; +} +inline const std::string& GetRobotRequest::_internal_id() const { + return _impl_.id_.Get(); +} +inline void GetRobotRequest::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetRobotRequest::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetRobotRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotRequest.id) + return _impl_.id_.Release(); +} +inline void GetRobotRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotRequest.id) +} + +// ------------------------------------------------------------------- + +// GetRobotResponse + +// .viam.app.v1.Robot robot = 1 [json_name = "robot"]; +inline bool GetRobotResponse::_internal_has_robot() const { + return this != internal_default_instance() && _impl_.robot_ != nullptr; +} +inline bool GetRobotResponse::has_robot() const { + return _internal_has_robot(); +} +inline void GetRobotResponse::clear_robot() { + if (GetArenaForAllocation() == nullptr && _impl_.robot_ != nullptr) { + delete _impl_.robot_; + } + _impl_.robot_ = nullptr; +} +inline const ::viam::app::v1::Robot& GetRobotResponse::_internal_robot() const { + const ::viam::app::v1::Robot* p = _impl_.robot_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Robot_default_instance_); +} +inline const ::viam::app::v1::Robot& GetRobotResponse::robot() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotResponse.robot) + return _internal_robot(); +} +inline void GetRobotResponse::unsafe_arena_set_allocated_robot( + ::viam::app::v1::Robot* robot) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.robot_); + } + _impl_.robot_ = robot; + if (robot) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetRobotResponse.robot) +} +inline ::viam::app::v1::Robot* GetRobotResponse::release_robot() { + + ::viam::app::v1::Robot* temp = _impl_.robot_; + _impl_.robot_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::Robot* GetRobotResponse::unsafe_arena_release_robot() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotResponse.robot) + + ::viam::app::v1::Robot* temp = _impl_.robot_; + _impl_.robot_ = nullptr; + return temp; +} +inline ::viam::app::v1::Robot* GetRobotResponse::_internal_mutable_robot() { + + if (_impl_.robot_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Robot>(GetArenaForAllocation()); + _impl_.robot_ = p; + } + return _impl_.robot_; +} +inline ::viam::app::v1::Robot* GetRobotResponse::mutable_robot() { + ::viam::app::v1::Robot* _msg = _internal_mutable_robot(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotResponse.robot) + return _msg; +} +inline void GetRobotResponse::set_allocated_robot(::viam::app::v1::Robot* robot) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.robot_; + } + if (robot) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(robot); + if (message_arena != submessage_arena) { + robot = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, robot, submessage_arena); + } + + } else { + + } + _impl_.robot_ = robot; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotResponse.robot) +} + +// ------------------------------------------------------------------- + +// GetRobotPartsRequest + +// string robot_id = 1 [json_name = "robotId"]; +inline void GetRobotPartsRequest::clear_robot_id() { + _impl_.robot_id_.ClearToEmpty(); +} +inline const std::string& GetRobotPartsRequest::robot_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartsRequest.robot_id) + return _internal_robot_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetRobotPartsRequest::set_robot_id(ArgT0&& arg0, ArgT... args) { + + _impl_.robot_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartsRequest.robot_id) +} +inline std::string* GetRobotPartsRequest::mutable_robot_id() { + std::string* _s = _internal_mutable_robot_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartsRequest.robot_id) + return _s; +} +inline const std::string& GetRobotPartsRequest::_internal_robot_id() const { + return _impl_.robot_id_.Get(); +} +inline void GetRobotPartsRequest::_internal_set_robot_id(const std::string& value) { + + _impl_.robot_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetRobotPartsRequest::_internal_mutable_robot_id() { + + return _impl_.robot_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetRobotPartsRequest::release_robot_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartsRequest.robot_id) + return _impl_.robot_id_.Release(); +} +inline void GetRobotPartsRequest::set_allocated_robot_id(std::string* robot_id) { + if (robot_id != nullptr) { + + } else { + + } + _impl_.robot_id_.SetAllocated(robot_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.robot_id_.IsDefault()) { + _impl_.robot_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartsRequest.robot_id) +} + +// ------------------------------------------------------------------- + +// GetRobotPartsResponse + +// repeated .viam.app.v1.RobotPart parts = 1 [json_name = "parts"]; +inline int GetRobotPartsResponse::_internal_parts_size() const { + return _impl_.parts_.size(); +} +inline int GetRobotPartsResponse::parts_size() const { + return _internal_parts_size(); +} +inline void GetRobotPartsResponse::clear_parts() { + _impl_.parts_.Clear(); +} +inline ::viam::app::v1::RobotPart* GetRobotPartsResponse::mutable_parts(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartsResponse.parts) + return _impl_.parts_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RobotPart >* +GetRobotPartsResponse::mutable_parts() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetRobotPartsResponse.parts) + return &_impl_.parts_; +} +inline const ::viam::app::v1::RobotPart& GetRobotPartsResponse::_internal_parts(int index) const { + return _impl_.parts_.Get(index); +} +inline const ::viam::app::v1::RobotPart& GetRobotPartsResponse::parts(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartsResponse.parts) + return _internal_parts(index); +} +inline ::viam::app::v1::RobotPart* GetRobotPartsResponse::_internal_add_parts() { + return _impl_.parts_.Add(); +} +inline ::viam::app::v1::RobotPart* GetRobotPartsResponse::add_parts() { + ::viam::app::v1::RobotPart* _add = _internal_add_parts(); + // @@protoc_insertion_point(field_add:viam.app.v1.GetRobotPartsResponse.parts) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RobotPart >& +GetRobotPartsResponse::parts() const { + // @@protoc_insertion_point(field_list:viam.app.v1.GetRobotPartsResponse.parts) + return _impl_.parts_; +} + +// ------------------------------------------------------------------- + +// GetRobotPartRequest + +// string id = 1 [json_name = "id"]; +inline void GetRobotPartRequest::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& GetRobotPartRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartRequest.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetRobotPartRequest::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartRequest.id) +} +inline std::string* GetRobotPartRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartRequest.id) + return _s; +} +inline const std::string& GetRobotPartRequest::_internal_id() const { + return _impl_.id_.Get(); +} +inline void GetRobotPartRequest::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetRobotPartRequest::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetRobotPartRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartRequest.id) + return _impl_.id_.Release(); +} +inline void GetRobotPartRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartRequest.id) +} + +// ------------------------------------------------------------------- + +// GetRobotPartResponse + +// .viam.app.v1.RobotPart part = 1 [json_name = "part"]; +inline bool GetRobotPartResponse::_internal_has_part() const { + return this != internal_default_instance() && _impl_.part_ != nullptr; +} +inline bool GetRobotPartResponse::has_part() const { + return _internal_has_part(); +} +inline void GetRobotPartResponse::clear_part() { + if (GetArenaForAllocation() == nullptr && _impl_.part_ != nullptr) { + delete _impl_.part_; + } + _impl_.part_ = nullptr; +} +inline const ::viam::app::v1::RobotPart& GetRobotPartResponse::_internal_part() const { + const ::viam::app::v1::RobotPart* p = _impl_.part_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_RobotPart_default_instance_); +} +inline const ::viam::app::v1::RobotPart& GetRobotPartResponse::part() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartResponse.part) + return _internal_part(); +} +inline void GetRobotPartResponse::unsafe_arena_set_allocated_part( + ::viam::app::v1::RobotPart* part) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.part_); + } + _impl_.part_ = part; + if (part) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetRobotPartResponse.part) +} +inline ::viam::app::v1::RobotPart* GetRobotPartResponse::release_part() { + + ::viam::app::v1::RobotPart* temp = _impl_.part_; + _impl_.part_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::RobotPart* GetRobotPartResponse::unsafe_arena_release_part() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartResponse.part) + + ::viam::app::v1::RobotPart* temp = _impl_.part_; + _impl_.part_ = nullptr; + return temp; +} +inline ::viam::app::v1::RobotPart* GetRobotPartResponse::_internal_mutable_part() { + + if (_impl_.part_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::RobotPart>(GetArenaForAllocation()); + _impl_.part_ = p; + } + return _impl_.part_; +} +inline ::viam::app::v1::RobotPart* GetRobotPartResponse::mutable_part() { + ::viam::app::v1::RobotPart* _msg = _internal_mutable_part(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartResponse.part) + return _msg; +} +inline void GetRobotPartResponse::set_allocated_part(::viam::app::v1::RobotPart* part) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.part_; + } + if (part) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(part); + if (message_arena != submessage_arena) { + part = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, part, submessage_arena); + } + + } else { + + } + _impl_.part_ = part; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartResponse.part) +} + +// string config_json = 2 [json_name = "configJson"]; +inline void GetRobotPartResponse::clear_config_json() { + _impl_.config_json_.ClearToEmpty(); +} +inline const std::string& GetRobotPartResponse::config_json() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartResponse.config_json) + return _internal_config_json(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetRobotPartResponse::set_config_json(ArgT0&& arg0, ArgT... args) { + + _impl_.config_json_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartResponse.config_json) +} +inline std::string* GetRobotPartResponse::mutable_config_json() { + std::string* _s = _internal_mutable_config_json(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartResponse.config_json) + return _s; +} +inline const std::string& GetRobotPartResponse::_internal_config_json() const { + return _impl_.config_json_.Get(); +} +inline void GetRobotPartResponse::_internal_set_config_json(const std::string& value) { + + _impl_.config_json_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetRobotPartResponse::_internal_mutable_config_json() { + + return _impl_.config_json_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetRobotPartResponse::release_config_json() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartResponse.config_json) + return _impl_.config_json_.Release(); +} +inline void GetRobotPartResponse::set_allocated_config_json(std::string* config_json) { + if (config_json != nullptr) { + + } else { + + } + _impl_.config_json_.SetAllocated(config_json, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.config_json_.IsDefault()) { + _impl_.config_json_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartResponse.config_json) +} + +// ------------------------------------------------------------------- + +// GetRobotPartLogsRequest + +// string id = 1 [json_name = "id"]; +inline void GetRobotPartLogsRequest::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& GetRobotPartLogsRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsRequest.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetRobotPartLogsRequest::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsRequest.id) +} +inline std::string* GetRobotPartLogsRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsRequest.id) + return _s; +} +inline const std::string& GetRobotPartLogsRequest::_internal_id() const { + return _impl_.id_.Get(); +} +inline void GetRobotPartLogsRequest::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetRobotPartLogsRequest::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetRobotPartLogsRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartLogsRequest.id) + return _impl_.id_.Release(); +} +inline void GetRobotPartLogsRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartLogsRequest.id) +} + +// bool errors_only = 2 [json_name = "errorsOnly"]; +inline void GetRobotPartLogsRequest::clear_errors_only() { + _impl_.errors_only_ = false; +} +inline bool GetRobotPartLogsRequest::_internal_errors_only() const { + return _impl_.errors_only_; +} +inline bool GetRobotPartLogsRequest::errors_only() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsRequest.errors_only) + return _internal_errors_only(); +} +inline void GetRobotPartLogsRequest::_internal_set_errors_only(bool value) { + + _impl_.errors_only_ = value; +} +inline void GetRobotPartLogsRequest::set_errors_only(bool value) { + _internal_set_errors_only(value); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsRequest.errors_only) +} + +// ------------------------------------------------------------------- + +// LogEntry + +// string host = 1 [json_name = "host"]; +inline void LogEntry::clear_host() { + _impl_.host_.ClearToEmpty(); +} +inline const std::string& LogEntry::host() const { + // @@protoc_insertion_point(field_get:viam.app.v1.LogEntry.host) + return _internal_host(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void LogEntry::set_host(ArgT0&& arg0, ArgT... args) { + + _impl_.host_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.LogEntry.host) +} +inline std::string* LogEntry::mutable_host() { + std::string* _s = _internal_mutable_host(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.LogEntry.host) + return _s; +} +inline const std::string& LogEntry::_internal_host() const { + return _impl_.host_.Get(); +} +inline void LogEntry::_internal_set_host(const std::string& value) { + + _impl_.host_.Set(value, GetArenaForAllocation()); +} +inline std::string* LogEntry::_internal_mutable_host() { + + return _impl_.host_.Mutable(GetArenaForAllocation()); +} +inline std::string* LogEntry::release_host() { + // @@protoc_insertion_point(field_release:viam.app.v1.LogEntry.host) + return _impl_.host_.Release(); +} +inline void LogEntry::set_allocated_host(std::string* host) { + if (host != nullptr) { + + } else { + + } + _impl_.host_.SetAllocated(host, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.host_.IsDefault()) { + _impl_.host_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LogEntry.host) +} + +// string level = 2 [json_name = "level"]; +inline void LogEntry::clear_level() { + _impl_.level_.ClearToEmpty(); +} +inline const std::string& LogEntry::level() const { + // @@protoc_insertion_point(field_get:viam.app.v1.LogEntry.level) + return _internal_level(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void LogEntry::set_level(ArgT0&& arg0, ArgT... args) { + + _impl_.level_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.LogEntry.level) +} +inline std::string* LogEntry::mutable_level() { + std::string* _s = _internal_mutable_level(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.LogEntry.level) + return _s; +} +inline const std::string& LogEntry::_internal_level() const { + return _impl_.level_.Get(); +} +inline void LogEntry::_internal_set_level(const std::string& value) { + + _impl_.level_.Set(value, GetArenaForAllocation()); +} +inline std::string* LogEntry::_internal_mutable_level() { + + return _impl_.level_.Mutable(GetArenaForAllocation()); +} +inline std::string* LogEntry::release_level() { + // @@protoc_insertion_point(field_release:viam.app.v1.LogEntry.level) + return _impl_.level_.Release(); +} +inline void LogEntry::set_allocated_level(std::string* level) { + if (level != nullptr) { + + } else { + + } + _impl_.level_.SetAllocated(level, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.level_.IsDefault()) { + _impl_.level_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LogEntry.level) +} + +// .google.protobuf.Timestamp time = 3 [json_name = "time"]; +inline bool LogEntry::_internal_has_time() const { + return this != internal_default_instance() && _impl_.time_ != nullptr; +} +inline bool LogEntry::has_time() const { + return _internal_has_time(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& LogEntry::_internal_time() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.time_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& LogEntry::time() const { + // @@protoc_insertion_point(field_get:viam.app.v1.LogEntry.time) + return _internal_time(); +} +inline void LogEntry::unsafe_arena_set_allocated_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_); + } + _impl_.time_ = time; + if (time) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.LogEntry.time) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* LogEntry::release_time() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_; + _impl_.time_ = 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* LogEntry::unsafe_arena_release_time() { + // @@protoc_insertion_point(field_release:viam.app.v1.LogEntry.time) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_; + _impl_.time_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* LogEntry::_internal_mutable_time() { + + if (_impl_.time_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.time_ = p; + } + return _impl_.time_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* LogEntry::mutable_time() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_time(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.LogEntry.time) + return _msg; +} +inline void LogEntry::set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_); + } + if (time) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time)); + if (message_arena != submessage_arena) { + time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, time, submessage_arena); + } + + } else { + + } + _impl_.time_ = time; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LogEntry.time) +} + +// string logger_name = 4 [json_name = "loggerName"]; +inline void LogEntry::clear_logger_name() { + _impl_.logger_name_.ClearToEmpty(); +} +inline const std::string& LogEntry::logger_name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.LogEntry.logger_name) + return _internal_logger_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void LogEntry::set_logger_name(ArgT0&& arg0, ArgT... args) { + + _impl_.logger_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.LogEntry.logger_name) +} +inline std::string* LogEntry::mutable_logger_name() { + std::string* _s = _internal_mutable_logger_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.LogEntry.logger_name) + return _s; +} +inline const std::string& LogEntry::_internal_logger_name() const { + return _impl_.logger_name_.Get(); +} +inline void LogEntry::_internal_set_logger_name(const std::string& value) { + + _impl_.logger_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* LogEntry::_internal_mutable_logger_name() { + + return _impl_.logger_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* LogEntry::release_logger_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.LogEntry.logger_name) + return _impl_.logger_name_.Release(); +} +inline void LogEntry::set_allocated_logger_name(std::string* logger_name) { + if (logger_name != nullptr) { + + } else { + + } + _impl_.logger_name_.SetAllocated(logger_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.logger_name_.IsDefault()) { + _impl_.logger_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LogEntry.logger_name) +} + +// string message = 5 [json_name = "message"]; +inline void LogEntry::clear_message() { + _impl_.message_.ClearToEmpty(); +} +inline const std::string& LogEntry::message() const { + // @@protoc_insertion_point(field_get:viam.app.v1.LogEntry.message) + return _internal_message(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void LogEntry::set_message(ArgT0&& arg0, ArgT... args) { + + _impl_.message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.LogEntry.message) +} +inline std::string* LogEntry::mutable_message() { + std::string* _s = _internal_mutable_message(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.LogEntry.message) + return _s; +} +inline const std::string& LogEntry::_internal_message() const { + return _impl_.message_.Get(); +} +inline void LogEntry::_internal_set_message(const std::string& value) { + + _impl_.message_.Set(value, GetArenaForAllocation()); +} +inline std::string* LogEntry::_internal_mutable_message() { + + return _impl_.message_.Mutable(GetArenaForAllocation()); +} +inline std::string* LogEntry::release_message() { + // @@protoc_insertion_point(field_release:viam.app.v1.LogEntry.message) + return _impl_.message_.Release(); +} +inline void LogEntry::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + _impl_.message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.message_.IsDefault()) { + _impl_.message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LogEntry.message) +} + +// .google.protobuf.Struct caller = 6 [json_name = "caller"]; +inline bool LogEntry::_internal_has_caller() const { + return this != internal_default_instance() && _impl_.caller_ != nullptr; +} +inline bool LogEntry::has_caller() const { + return _internal_has_caller(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& LogEntry::_internal_caller() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.caller_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& LogEntry::caller() const { + // @@protoc_insertion_point(field_get:viam.app.v1.LogEntry.caller) + return _internal_caller(); +} +inline void LogEntry::unsafe_arena_set_allocated_caller( + ::PROTOBUF_NAMESPACE_ID::Struct* caller) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.caller_); + } + _impl_.caller_ = caller; + if (caller) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.LogEntry.caller) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::release_caller() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.caller_; + _impl_.caller_ = 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* LogEntry::unsafe_arena_release_caller() { + // @@protoc_insertion_point(field_release:viam.app.v1.LogEntry.caller) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.caller_; + _impl_.caller_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::_internal_mutable_caller() { + + if (_impl_.caller_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.caller_ = p; + } + return _impl_.caller_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::mutable_caller() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_caller(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.LogEntry.caller) + return _msg; +} +inline void LogEntry::set_allocated_caller(::PROTOBUF_NAMESPACE_ID::Struct* caller) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.caller_); + } + if (caller) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(caller)); + if (message_arena != submessage_arena) { + caller = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, caller, submessage_arena); + } + + } else { + + } + _impl_.caller_ = caller; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LogEntry.caller) +} + +// string stack = 7 [json_name = "stack"]; +inline void LogEntry::clear_stack() { + _impl_.stack_.ClearToEmpty(); +} +inline const std::string& LogEntry::stack() const { + // @@protoc_insertion_point(field_get:viam.app.v1.LogEntry.stack) + return _internal_stack(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void LogEntry::set_stack(ArgT0&& arg0, ArgT... args) { + + _impl_.stack_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.LogEntry.stack) +} +inline std::string* LogEntry::mutable_stack() { + std::string* _s = _internal_mutable_stack(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.LogEntry.stack) + return _s; +} +inline const std::string& LogEntry::_internal_stack() const { + return _impl_.stack_.Get(); +} +inline void LogEntry::_internal_set_stack(const std::string& value) { + + _impl_.stack_.Set(value, GetArenaForAllocation()); +} +inline std::string* LogEntry::_internal_mutable_stack() { + + return _impl_.stack_.Mutable(GetArenaForAllocation()); +} +inline std::string* LogEntry::release_stack() { + // @@protoc_insertion_point(field_release:viam.app.v1.LogEntry.stack) + return _impl_.stack_.Release(); +} +inline void LogEntry::set_allocated_stack(std::string* stack) { + if (stack != nullptr) { + + } else { + + } + _impl_.stack_.SetAllocated(stack, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.stack_.IsDefault()) { + _impl_.stack_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LogEntry.stack) +} + +// repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; +inline int LogEntry::_internal_fields_size() const { + return _impl_.fields_.size(); +} +inline int LogEntry::fields_size() const { + return _internal_fields_size(); +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::mutable_fields(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.LogEntry.fields) + return _impl_.fields_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Struct >* +LogEntry::mutable_fields() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.LogEntry.fields) + return &_impl_.fields_; +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& LogEntry::_internal_fields(int index) const { + return _impl_.fields_.Get(index); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& LogEntry::fields(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.LogEntry.fields) + return _internal_fields(index); +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::_internal_add_fields() { + return _impl_.fields_.Add(); +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::add_fields() { + ::PROTOBUF_NAMESPACE_ID::Struct* _add = _internal_add_fields(); + // @@protoc_insertion_point(field_add:viam.app.v1.LogEntry.fields) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Struct >& +LogEntry::fields() const { + // @@protoc_insertion_point(field_list:viam.app.v1.LogEntry.fields) + return _impl_.fields_; +} + +// ------------------------------------------------------------------- + +// GetRobotPartLogsResponse + +// repeated .viam.app.v1.LogEntry logs = 1 [json_name = "logs"]; +inline int GetRobotPartLogsResponse::_internal_logs_size() const { + return _impl_.logs_.size(); +} +inline int GetRobotPartLogsResponse::logs_size() const { + return _internal_logs_size(); +} +inline void GetRobotPartLogsResponse::clear_logs() { + _impl_.logs_.Clear(); +} +inline ::viam::app::v1::LogEntry* GetRobotPartLogsResponse::mutable_logs(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsResponse.logs) + return _impl_.logs_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >* +GetRobotPartLogsResponse::mutable_logs() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetRobotPartLogsResponse.logs) + return &_impl_.logs_; +} +inline const ::viam::app::v1::LogEntry& GetRobotPartLogsResponse::_internal_logs(int index) const { + return _impl_.logs_.Get(index); +} +inline const ::viam::app::v1::LogEntry& GetRobotPartLogsResponse::logs(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsResponse.logs) + return _internal_logs(index); +} +inline ::viam::app::v1::LogEntry* GetRobotPartLogsResponse::_internal_add_logs() { + return _impl_.logs_.Add(); +} +inline ::viam::app::v1::LogEntry* GetRobotPartLogsResponse::add_logs() { + ::viam::app::v1::LogEntry* _add = _internal_add_logs(); + // @@protoc_insertion_point(field_add:viam.app.v1.GetRobotPartLogsResponse.logs) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >& +GetRobotPartLogsResponse::logs() const { + // @@protoc_insertion_point(field_list:viam.app.v1.GetRobotPartLogsResponse.logs) + return _impl_.logs_; +} + +// ------------------------------------------------------------------- + +// TailRobotPartLogsRequest + +// string id = 1 [json_name = "id"]; +inline void TailRobotPartLogsRequest::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& TailRobotPartLogsRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.TailRobotPartLogsRequest.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TailRobotPartLogsRequest::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.TailRobotPartLogsRequest.id) +} +inline std::string* TailRobotPartLogsRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.TailRobotPartLogsRequest.id) + return _s; +} +inline const std::string& TailRobotPartLogsRequest::_internal_id() const { + return _impl_.id_.Get(); +} +inline void TailRobotPartLogsRequest::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* TailRobotPartLogsRequest::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* TailRobotPartLogsRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.TailRobotPartLogsRequest.id) + return _impl_.id_.Release(); +} +inline void TailRobotPartLogsRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.TailRobotPartLogsRequest.id) +} + +// bool errors_only = 2 [json_name = "errorsOnly"]; +inline void TailRobotPartLogsRequest::clear_errors_only() { + _impl_.errors_only_ = false; +} +inline bool TailRobotPartLogsRequest::_internal_errors_only() const { + return _impl_.errors_only_; +} +inline bool TailRobotPartLogsRequest::errors_only() const { + // @@protoc_insertion_point(field_get:viam.app.v1.TailRobotPartLogsRequest.errors_only) + return _internal_errors_only(); +} +inline void TailRobotPartLogsRequest::_internal_set_errors_only(bool value) { + + _impl_.errors_only_ = value; +} +inline void TailRobotPartLogsRequest::set_errors_only(bool value) { + _internal_set_errors_only(value); + // @@protoc_insertion_point(field_set:viam.app.v1.TailRobotPartLogsRequest.errors_only) +} + +// ------------------------------------------------------------------- + +// TailRobotPartLogsResponse + +// repeated .viam.app.v1.LogEntry logs = 1 [json_name = "logs"]; +inline int TailRobotPartLogsResponse::_internal_logs_size() const { + return _impl_.logs_.size(); +} +inline int TailRobotPartLogsResponse::logs_size() const { + return _internal_logs_size(); +} +inline void TailRobotPartLogsResponse::clear_logs() { + _impl_.logs_.Clear(); +} +inline ::viam::app::v1::LogEntry* TailRobotPartLogsResponse::mutable_logs(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.TailRobotPartLogsResponse.logs) + return _impl_.logs_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >* +TailRobotPartLogsResponse::mutable_logs() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.TailRobotPartLogsResponse.logs) + return &_impl_.logs_; +} +inline const ::viam::app::v1::LogEntry& TailRobotPartLogsResponse::_internal_logs(int index) const { + return _impl_.logs_.Get(index); +} +inline const ::viam::app::v1::LogEntry& TailRobotPartLogsResponse::logs(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.TailRobotPartLogsResponse.logs) + return _internal_logs(index); +} +inline ::viam::app::v1::LogEntry* TailRobotPartLogsResponse::_internal_add_logs() { + return _impl_.logs_.Add(); +} +inline ::viam::app::v1::LogEntry* TailRobotPartLogsResponse::add_logs() { + ::viam::app::v1::LogEntry* _add = _internal_add_logs(); + // @@protoc_insertion_point(field_add:viam.app.v1.TailRobotPartLogsResponse.logs) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >& +TailRobotPartLogsResponse::logs() const { + // @@protoc_insertion_point(field_list:viam.app.v1.TailRobotPartLogsResponse.logs) + return _impl_.logs_; +} + +// ------------------------------------------------------------------- + +// GetRobotPartHistoryRequest + +// string id = 1 [json_name = "id"]; +inline void GetRobotPartHistoryRequest::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& GetRobotPartHistoryRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartHistoryRequest.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetRobotPartHistoryRequest::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartHistoryRequest.id) +} +inline std::string* GetRobotPartHistoryRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartHistoryRequest.id) + return _s; +} +inline const std::string& GetRobotPartHistoryRequest::_internal_id() const { + return _impl_.id_.Get(); +} +inline void GetRobotPartHistoryRequest::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetRobotPartHistoryRequest::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetRobotPartHistoryRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartHistoryRequest.id) + return _impl_.id_.Release(); +} +inline void GetRobotPartHistoryRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartHistoryRequest.id) +} + +// ------------------------------------------------------------------- + +// GetRobotPartHistoryResponse + +// repeated .viam.app.v1.RobotPartHistoryEntry history = 1 [json_name = "history"]; +inline int GetRobotPartHistoryResponse::_internal_history_size() const { + return _impl_.history_.size(); +} +inline int GetRobotPartHistoryResponse::history_size() const { + return _internal_history_size(); +} +inline void GetRobotPartHistoryResponse::clear_history() { + _impl_.history_.Clear(); +} +inline ::viam::app::v1::RobotPartHistoryEntry* GetRobotPartHistoryResponse::mutable_history(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartHistoryResponse.history) + return _impl_.history_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RobotPartHistoryEntry >* +GetRobotPartHistoryResponse::mutable_history() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetRobotPartHistoryResponse.history) + return &_impl_.history_; +} +inline const ::viam::app::v1::RobotPartHistoryEntry& GetRobotPartHistoryResponse::_internal_history(int index) const { + return _impl_.history_.Get(index); +} +inline const ::viam::app::v1::RobotPartHistoryEntry& GetRobotPartHistoryResponse::history(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartHistoryResponse.history) + return _internal_history(index); +} +inline ::viam::app::v1::RobotPartHistoryEntry* GetRobotPartHistoryResponse::_internal_add_history() { + return _impl_.history_.Add(); +} +inline ::viam::app::v1::RobotPartHistoryEntry* GetRobotPartHistoryResponse::add_history() { + ::viam::app::v1::RobotPartHistoryEntry* _add = _internal_add_history(); + // @@protoc_insertion_point(field_add:viam.app.v1.GetRobotPartHistoryResponse.history) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RobotPartHistoryEntry >& +GetRobotPartHistoryResponse::history() const { + // @@protoc_insertion_point(field_list:viam.app.v1.GetRobotPartHistoryResponse.history) + return _impl_.history_; +} + +// ------------------------------------------------------------------- + +// UpdateRobotPartRequest + +// string id = 1 [json_name = "id"]; +inline void UpdateRobotPartRequest::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& UpdateRobotPartRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotPartRequest.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateRobotPartRequest::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRobotPartRequest.id) +} +inline std::string* UpdateRobotPartRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotPartRequest.id) + return _s; +} +inline const std::string& UpdateRobotPartRequest::_internal_id() const { + return _impl_.id_.Get(); +} +inline void UpdateRobotPartRequest::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateRobotPartRequest::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateRobotPartRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotPartRequest.id) + return _impl_.id_.Release(); +} +inline void UpdateRobotPartRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotPartRequest.id) +} + +// string name = 2 [json_name = "name"]; +inline void UpdateRobotPartRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& UpdateRobotPartRequest::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotPartRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateRobotPartRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRobotPartRequest.name) +} +inline std::string* UpdateRobotPartRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotPartRequest.name) + return _s; +} +inline const std::string& UpdateRobotPartRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void UpdateRobotPartRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateRobotPartRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateRobotPartRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotPartRequest.name) + return _impl_.name_.Release(); +} +inline void UpdateRobotPartRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotPartRequest.name) +} + +// .google.protobuf.Struct robot_config = 3 [json_name = "robotConfig"]; +inline bool UpdateRobotPartRequest::_internal_has_robot_config() const { + return this != internal_default_instance() && _impl_.robot_config_ != nullptr; +} +inline bool UpdateRobotPartRequest::has_robot_config() const { + return _internal_has_robot_config(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& UpdateRobotPartRequest::_internal_robot_config() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.robot_config_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& UpdateRobotPartRequest::robot_config() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotPartRequest.robot_config) + return _internal_robot_config(); +} +inline void UpdateRobotPartRequest::unsafe_arena_set_allocated_robot_config( + ::PROTOBUF_NAMESPACE_ID::Struct* robot_config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.robot_config_); + } + _impl_.robot_config_ = robot_config; + if (robot_config) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateRobotPartRequest.robot_config) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* UpdateRobotPartRequest::release_robot_config() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.robot_config_; + _impl_.robot_config_ = 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* UpdateRobotPartRequest::unsafe_arena_release_robot_config() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotPartRequest.robot_config) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.robot_config_; + _impl_.robot_config_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* UpdateRobotPartRequest::_internal_mutable_robot_config() { + + if (_impl_.robot_config_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.robot_config_ = p; + } + return _impl_.robot_config_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* UpdateRobotPartRequest::mutable_robot_config() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_robot_config(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotPartRequest.robot_config) + return _msg; +} +inline void UpdateRobotPartRequest::set_allocated_robot_config(::PROTOBUF_NAMESPACE_ID::Struct* robot_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.robot_config_); + } + if (robot_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(robot_config)); + if (message_arena != submessage_arena) { + robot_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, robot_config, submessage_arena); + } + + } else { + + } + _impl_.robot_config_ = robot_config; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotPartRequest.robot_config) +} + +// ------------------------------------------------------------------- + +// UpdateRobotPartResponse + +// .viam.app.v1.RobotPart part = 1 [json_name = "part"]; +inline bool UpdateRobotPartResponse::_internal_has_part() const { + return this != internal_default_instance() && _impl_.part_ != nullptr; +} +inline bool UpdateRobotPartResponse::has_part() const { + return _internal_has_part(); +} +inline void UpdateRobotPartResponse::clear_part() { + if (GetArenaForAllocation() == nullptr && _impl_.part_ != nullptr) { + delete _impl_.part_; + } + _impl_.part_ = nullptr; +} +inline const ::viam::app::v1::RobotPart& UpdateRobotPartResponse::_internal_part() const { + const ::viam::app::v1::RobotPart* p = _impl_.part_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_RobotPart_default_instance_); +} +inline const ::viam::app::v1::RobotPart& UpdateRobotPartResponse::part() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotPartResponse.part) + return _internal_part(); +} +inline void UpdateRobotPartResponse::unsafe_arena_set_allocated_part( + ::viam::app::v1::RobotPart* part) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.part_); + } + _impl_.part_ = part; + if (part) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateRobotPartResponse.part) +} +inline ::viam::app::v1::RobotPart* UpdateRobotPartResponse::release_part() { + + ::viam::app::v1::RobotPart* temp = _impl_.part_; + _impl_.part_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::RobotPart* UpdateRobotPartResponse::unsafe_arena_release_part() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotPartResponse.part) + + ::viam::app::v1::RobotPart* temp = _impl_.part_; + _impl_.part_ = nullptr; + return temp; +} +inline ::viam::app::v1::RobotPart* UpdateRobotPartResponse::_internal_mutable_part() { + + if (_impl_.part_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::RobotPart>(GetArenaForAllocation()); + _impl_.part_ = p; + } + return _impl_.part_; +} +inline ::viam::app::v1::RobotPart* UpdateRobotPartResponse::mutable_part() { + ::viam::app::v1::RobotPart* _msg = _internal_mutable_part(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotPartResponse.part) + return _msg; +} +inline void UpdateRobotPartResponse::set_allocated_part(::viam::app::v1::RobotPart* part) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.part_; + } + if (part) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(part); + if (message_arena != submessage_arena) { + part = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, part, submessage_arena); + } + + } else { + + } + _impl_.part_ = part; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotPartResponse.part) +} + +// ------------------------------------------------------------------- + +// NewRobotPartRequest + +// string robot_id = 1 [json_name = "robotId"]; +inline void NewRobotPartRequest::clear_robot_id() { + _impl_.robot_id_.ClearToEmpty(); +} +inline const std::string& NewRobotPartRequest::robot_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.NewRobotPartRequest.robot_id) + return _internal_robot_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NewRobotPartRequest::set_robot_id(ArgT0&& arg0, ArgT... args) { + + _impl_.robot_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.NewRobotPartRequest.robot_id) +} +inline std::string* NewRobotPartRequest::mutable_robot_id() { + std::string* _s = _internal_mutable_robot_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.NewRobotPartRequest.robot_id) + return _s; +} +inline const std::string& NewRobotPartRequest::_internal_robot_id() const { + return _impl_.robot_id_.Get(); +} +inline void NewRobotPartRequest::_internal_set_robot_id(const std::string& value) { + + _impl_.robot_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* NewRobotPartRequest::_internal_mutable_robot_id() { + + return _impl_.robot_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* NewRobotPartRequest::release_robot_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.NewRobotPartRequest.robot_id) + return _impl_.robot_id_.Release(); +} +inline void NewRobotPartRequest::set_allocated_robot_id(std::string* robot_id) { + if (robot_id != nullptr) { + + } else { + + } + _impl_.robot_id_.SetAllocated(robot_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.robot_id_.IsDefault()) { + _impl_.robot_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NewRobotPartRequest.robot_id) +} + +// string part_name = 2 [json_name = "partName"]; +inline void NewRobotPartRequest::clear_part_name() { + _impl_.part_name_.ClearToEmpty(); +} +inline const std::string& NewRobotPartRequest::part_name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.NewRobotPartRequest.part_name) + return _internal_part_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NewRobotPartRequest::set_part_name(ArgT0&& arg0, ArgT... args) { + + _impl_.part_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.NewRobotPartRequest.part_name) +} +inline std::string* NewRobotPartRequest::mutable_part_name() { + std::string* _s = _internal_mutable_part_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.NewRobotPartRequest.part_name) + return _s; +} +inline const std::string& NewRobotPartRequest::_internal_part_name() const { + return _impl_.part_name_.Get(); +} +inline void NewRobotPartRequest::_internal_set_part_name(const std::string& value) { + + _impl_.part_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* NewRobotPartRequest::_internal_mutable_part_name() { + + return _impl_.part_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* NewRobotPartRequest::release_part_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.NewRobotPartRequest.part_name) + return _impl_.part_name_.Release(); +} +inline void NewRobotPartRequest::set_allocated_part_name(std::string* part_name) { + if (part_name != nullptr) { + + } else { + + } + _impl_.part_name_.SetAllocated(part_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.part_name_.IsDefault()) { + _impl_.part_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NewRobotPartRequest.part_name) +} + +// ------------------------------------------------------------------- + +// NewRobotPartResponse + +// string part_id = 1 [json_name = "partId"]; +inline void NewRobotPartResponse::clear_part_id() { + _impl_.part_id_.ClearToEmpty(); +} +inline const std::string& NewRobotPartResponse::part_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.NewRobotPartResponse.part_id) + return _internal_part_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NewRobotPartResponse::set_part_id(ArgT0&& arg0, ArgT... args) { + + _impl_.part_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.NewRobotPartResponse.part_id) +} +inline std::string* NewRobotPartResponse::mutable_part_id() { + std::string* _s = _internal_mutable_part_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.NewRobotPartResponse.part_id) + return _s; +} +inline const std::string& NewRobotPartResponse::_internal_part_id() const { + return _impl_.part_id_.Get(); +} +inline void NewRobotPartResponse::_internal_set_part_id(const std::string& value) { + + _impl_.part_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* NewRobotPartResponse::_internal_mutable_part_id() { + + return _impl_.part_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* NewRobotPartResponse::release_part_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.NewRobotPartResponse.part_id) + return _impl_.part_id_.Release(); +} +inline void NewRobotPartResponse::set_allocated_part_id(std::string* part_id) { + if (part_id != nullptr) { + + } else { + + } + _impl_.part_id_.SetAllocated(part_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.part_id_.IsDefault()) { + _impl_.part_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NewRobotPartResponse.part_id) +} + +// ------------------------------------------------------------------- + +// DeleteRobotPartRequest + +// string part_id = 1 [json_name = "partId"]; +inline void DeleteRobotPartRequest::clear_part_id() { + _impl_.part_id_.ClearToEmpty(); +} +inline const std::string& DeleteRobotPartRequest::part_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.DeleteRobotPartRequest.part_id) + return _internal_part_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteRobotPartRequest::set_part_id(ArgT0&& arg0, ArgT... args) { + + _impl_.part_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.DeleteRobotPartRequest.part_id) +} +inline std::string* DeleteRobotPartRequest::mutable_part_id() { + std::string* _s = _internal_mutable_part_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteRobotPartRequest.part_id) + return _s; +} +inline const std::string& DeleteRobotPartRequest::_internal_part_id() const { + return _impl_.part_id_.Get(); +} +inline void DeleteRobotPartRequest::_internal_set_part_id(const std::string& value) { + + _impl_.part_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* DeleteRobotPartRequest::_internal_mutable_part_id() { + + return _impl_.part_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* DeleteRobotPartRequest::release_part_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.DeleteRobotPartRequest.part_id) + return _impl_.part_id_.Release(); +} +inline void DeleteRobotPartRequest::set_allocated_part_id(std::string* part_id) { + if (part_id != nullptr) { + + } else { + + } + _impl_.part_id_.SetAllocated(part_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.part_id_.IsDefault()) { + _impl_.part_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteRobotPartRequest.part_id) +} + +// ------------------------------------------------------------------- + +// DeleteRobotPartResponse + +// ------------------------------------------------------------------- + +// Fragment + +// string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; +inline void Fragment::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& Fragment::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Fragment::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.id) +} +inline std::string* Fragment::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Fragment.id) + return _s; +} +inline const std::string& Fragment::_internal_id() const { + return _impl_.id_.Get(); +} +inline void Fragment::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* Fragment::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* Fragment::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.Fragment.id) + return _impl_.id_.Release(); +} +inline void Fragment::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Fragment.id) +} + +// string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; +inline void Fragment::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& Fragment::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Fragment::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.name) +} +inline std::string* Fragment::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Fragment.name) + return _s; +} +inline const std::string& Fragment::_internal_name() const { + return _impl_.name_.Get(); +} +inline void Fragment::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Fragment::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* Fragment::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.Fragment.name) + return _impl_.name_.Release(); +} +inline void Fragment::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Fragment.name) +} + +// .google.protobuf.Struct fragment = 3 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; +inline bool Fragment::_internal_has_fragment() const { + return this != internal_default_instance() && _impl_.fragment_ != nullptr; +} +inline bool Fragment::has_fragment() const { + return _internal_has_fragment(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& Fragment::_internal_fragment() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.fragment_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& Fragment::fragment() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.fragment) + return _internal_fragment(); +} +inline void Fragment::unsafe_arena_set_allocated_fragment( + ::PROTOBUF_NAMESPACE_ID::Struct* fragment) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.fragment_); + } + _impl_.fragment_ = fragment; + if (fragment) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Fragment.fragment) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* Fragment::release_fragment() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.fragment_; + _impl_.fragment_ = 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* Fragment::unsafe_arena_release_fragment() { + // @@protoc_insertion_point(field_release:viam.app.v1.Fragment.fragment) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.fragment_; + _impl_.fragment_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* Fragment::_internal_mutable_fragment() { + + if (_impl_.fragment_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.fragment_ = p; + } + return _impl_.fragment_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* Fragment::mutable_fragment() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_fragment(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Fragment.fragment) + return _msg; +} +inline void Fragment::set_allocated_fragment(::PROTOBUF_NAMESPACE_ID::Struct* fragment) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.fragment_); + } + if (fragment) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fragment)); + if (message_arena != submessage_arena) { + fragment = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, fragment, submessage_arena); + } + + } else { + + } + _impl_.fragment_ = fragment; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Fragment.fragment) +} + +// string organization_owner = 4 [json_name = "organizationOwner", (.tagger.v1.tags) = "bson:\"organization_owner\" json:\"owner\""]; +inline void Fragment::clear_organization_owner() { + _impl_.organization_owner_.ClearToEmpty(); +} +inline const std::string& Fragment::organization_owner() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.organization_owner) + return _internal_organization_owner(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Fragment::set_organization_owner(ArgT0&& arg0, ArgT... args) { + + _impl_.organization_owner_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.organization_owner) +} +inline std::string* Fragment::mutable_organization_owner() { + std::string* _s = _internal_mutable_organization_owner(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Fragment.organization_owner) + return _s; +} +inline const std::string& Fragment::_internal_organization_owner() const { + return _impl_.organization_owner_.Get(); +} +inline void Fragment::_internal_set_organization_owner(const std::string& value) { + + _impl_.organization_owner_.Set(value, GetArenaForAllocation()); +} +inline std::string* Fragment::_internal_mutable_organization_owner() { + + return _impl_.organization_owner_.Mutable(GetArenaForAllocation()); +} +inline std::string* Fragment::release_organization_owner() { + // @@protoc_insertion_point(field_release:viam.app.v1.Fragment.organization_owner) + return _impl_.organization_owner_.Release(); +} +inline void Fragment::set_allocated_organization_owner(std::string* organization_owner) { + if (organization_owner != nullptr) { + + } else { + + } + _impl_.organization_owner_.SetAllocated(organization_owner, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.organization_owner_.IsDefault()) { + _impl_.organization_owner_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Fragment.organization_owner) +} + +// bool public = 5 [json_name = "public", (.tagger.v1.tags) = "bson:\"public\" json:\"public\""]; +inline void Fragment::clear_public_() { + _impl_.public__ = false; +} +inline bool Fragment::_internal_public_() const { + return _impl_.public__; +} +inline bool Fragment::public_() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.public) + return _internal_public_(); +} +inline void Fragment::_internal_set_public_(bool value) { + + _impl_.public__ = value; +} +inline void Fragment::set_public_(bool value) { + _internal_set_public_(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.public) +} + +// .google.protobuf.Timestamp created_on = 6 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; +inline bool Fragment::_internal_has_created_on() const { + return this != internal_default_instance() && _impl_.created_on_ != nullptr; +} +inline bool Fragment::has_created_on() const { + return _internal_has_created_on(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Fragment::_internal_created_on() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.created_on_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Fragment::created_on() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.created_on) + return _internal_created_on(); +} +inline void Fragment::unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.created_on_); + } + _impl_.created_on_ = created_on; + if (created_on) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Fragment.created_on) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Fragment::release_created_on() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.created_on_; + _impl_.created_on_ = 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* Fragment::unsafe_arena_release_created_on() { + // @@protoc_insertion_point(field_release:viam.app.v1.Fragment.created_on) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.created_on_; + _impl_.created_on_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Fragment::_internal_mutable_created_on() { + + if (_impl_.created_on_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.created_on_ = p; + } + return _impl_.created_on_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Fragment::mutable_created_on() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_created_on(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Fragment.created_on) + return _msg; +} +inline void Fragment::set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.created_on_); + } + if (created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on)); + if (message_arena != submessage_arena) { + created_on = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, created_on, submessage_arena); + } + + } else { + + } + _impl_.created_on_ = created_on; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Fragment.created_on) +} + +// ------------------------------------------------------------------- + +// FindRobotsRequest + +// string location_id = 1 [json_name = "locationId"]; +inline void FindRobotsRequest::clear_location_id() { + _impl_.location_id_.ClearToEmpty(); +} +inline const std::string& FindRobotsRequest::location_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.FindRobotsRequest.location_id) + return _internal_location_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void FindRobotsRequest::set_location_id(ArgT0&& arg0, ArgT... args) { + + _impl_.location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.FindRobotsRequest.location_id) +} +inline std::string* FindRobotsRequest::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.FindRobotsRequest.location_id) + return _s; +} +inline const std::string& FindRobotsRequest::_internal_location_id() const { + return _impl_.location_id_.Get(); +} +inline void FindRobotsRequest::_internal_set_location_id(const std::string& value) { + + _impl_.location_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* FindRobotsRequest::_internal_mutable_location_id() { + + return _impl_.location_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* FindRobotsRequest::release_location_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.FindRobotsRequest.location_id) + return _impl_.location_id_.Release(); +} +inline void FindRobotsRequest::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + + } else { + + } + _impl_.location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.location_id_.IsDefault()) { + _impl_.location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.FindRobotsRequest.location_id) +} + +// ------------------------------------------------------------------- + +// FindRobotsResponse + +// repeated .viam.app.v1.Robot robots = 1 [json_name = "robots"]; +inline int FindRobotsResponse::_internal_robots_size() const { + return _impl_.robots_.size(); +} +inline int FindRobotsResponse::robots_size() const { + return _internal_robots_size(); +} +inline void FindRobotsResponse::clear_robots() { + _impl_.robots_.Clear(); +} +inline ::viam::app::v1::Robot* FindRobotsResponse::mutable_robots(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.FindRobotsResponse.robots) + return _impl_.robots_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Robot >* +FindRobotsResponse::mutable_robots() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.FindRobotsResponse.robots) + return &_impl_.robots_; +} +inline const ::viam::app::v1::Robot& FindRobotsResponse::_internal_robots(int index) const { + return _impl_.robots_.Get(index); +} +inline const ::viam::app::v1::Robot& FindRobotsResponse::robots(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.FindRobotsResponse.robots) + return _internal_robots(index); +} +inline ::viam::app::v1::Robot* FindRobotsResponse::_internal_add_robots() { + return _impl_.robots_.Add(); +} +inline ::viam::app::v1::Robot* FindRobotsResponse::add_robots() { + ::viam::app::v1::Robot* _add = _internal_add_robots(); + // @@protoc_insertion_point(field_add:viam.app.v1.FindRobotsResponse.robots) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Robot >& +FindRobotsResponse::robots() const { + // @@protoc_insertion_point(field_list:viam.app.v1.FindRobotsResponse.robots) + return _impl_.robots_; +} + +// ------------------------------------------------------------------- + +// NewRobotRequest + +// string name = 1 [json_name = "name"]; +inline void NewRobotRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& NewRobotRequest::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.NewRobotRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NewRobotRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.NewRobotRequest.name) +} +inline std::string* NewRobotRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.NewRobotRequest.name) + return _s; +} +inline const std::string& NewRobotRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void NewRobotRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* NewRobotRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* NewRobotRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.NewRobotRequest.name) + return _impl_.name_.Release(); +} +inline void NewRobotRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NewRobotRequest.name) +} + +// string location = 2 [json_name = "location"]; +inline void NewRobotRequest::clear_location() { + _impl_.location_.ClearToEmpty(); +} +inline const std::string& NewRobotRequest::location() const { + // @@protoc_insertion_point(field_get:viam.app.v1.NewRobotRequest.location) + return _internal_location(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NewRobotRequest::set_location(ArgT0&& arg0, ArgT... args) { + + _impl_.location_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.NewRobotRequest.location) +} +inline std::string* NewRobotRequest::mutable_location() { + std::string* _s = _internal_mutable_location(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.NewRobotRequest.location) + return _s; +} +inline const std::string& NewRobotRequest::_internal_location() const { + return _impl_.location_.Get(); +} +inline void NewRobotRequest::_internal_set_location(const std::string& value) { + + _impl_.location_.Set(value, GetArenaForAllocation()); +} +inline std::string* NewRobotRequest::_internal_mutable_location() { + + return _impl_.location_.Mutable(GetArenaForAllocation()); +} +inline std::string* NewRobotRequest::release_location() { + // @@protoc_insertion_point(field_release:viam.app.v1.NewRobotRequest.location) + return _impl_.location_.Release(); +} +inline void NewRobotRequest::set_allocated_location(std::string* location) { + if (location != nullptr) { + + } else { + + } + _impl_.location_.SetAllocated(location, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.location_.IsDefault()) { + _impl_.location_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NewRobotRequest.location) +} + +// ------------------------------------------------------------------- + +// NewRobotResponse + +// string id = 1 [json_name = "id"]; +inline void NewRobotResponse::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& NewRobotResponse::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.NewRobotResponse.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NewRobotResponse::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.NewRobotResponse.id) +} +inline std::string* NewRobotResponse::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.NewRobotResponse.id) + return _s; +} +inline const std::string& NewRobotResponse::_internal_id() const { + return _impl_.id_.Get(); +} +inline void NewRobotResponse::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* NewRobotResponse::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* NewRobotResponse::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.NewRobotResponse.id) + return _impl_.id_.Release(); +} +inline void NewRobotResponse::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NewRobotResponse.id) +} + +// ------------------------------------------------------------------- + +// UpdateRobotRequest + +// string id = 1 [json_name = "id"]; +inline void UpdateRobotRequest::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& UpdateRobotRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotRequest.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateRobotRequest::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRobotRequest.id) +} +inline std::string* UpdateRobotRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotRequest.id) + return _s; +} +inline const std::string& UpdateRobotRequest::_internal_id() const { + return _impl_.id_.Get(); +} +inline void UpdateRobotRequest::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateRobotRequest::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateRobotRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotRequest.id) + return _impl_.id_.Release(); +} +inline void UpdateRobotRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotRequest.id) +} + +// string name = 2 [json_name = "name"]; +inline void UpdateRobotRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& UpdateRobotRequest::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateRobotRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRobotRequest.name) +} +inline std::string* UpdateRobotRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotRequest.name) + return _s; +} +inline const std::string& UpdateRobotRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void UpdateRobotRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateRobotRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateRobotRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotRequest.name) + return _impl_.name_.Release(); +} +inline void UpdateRobotRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotRequest.name) +} + +// string location = 3 [json_name = "location"]; +inline void UpdateRobotRequest::clear_location() { + _impl_.location_.ClearToEmpty(); +} +inline const std::string& UpdateRobotRequest::location() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotRequest.location) + return _internal_location(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateRobotRequest::set_location(ArgT0&& arg0, ArgT... args) { + + _impl_.location_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRobotRequest.location) +} +inline std::string* UpdateRobotRequest::mutable_location() { + std::string* _s = _internal_mutable_location(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotRequest.location) + return _s; +} +inline const std::string& UpdateRobotRequest::_internal_location() const { + return _impl_.location_.Get(); +} +inline void UpdateRobotRequest::_internal_set_location(const std::string& value) { + + _impl_.location_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateRobotRequest::_internal_mutable_location() { + + return _impl_.location_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateRobotRequest::release_location() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotRequest.location) + return _impl_.location_.Release(); +} +inline void UpdateRobotRequest::set_allocated_location(std::string* location) { + if (location != nullptr) { + + } else { + + } + _impl_.location_.SetAllocated(location, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.location_.IsDefault()) { + _impl_.location_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotRequest.location) +} + +// ------------------------------------------------------------------- + +// UpdateRobotResponse + +// .viam.app.v1.Robot robot = 1 [json_name = "robot"]; +inline bool UpdateRobotResponse::_internal_has_robot() const { + return this != internal_default_instance() && _impl_.robot_ != nullptr; +} +inline bool UpdateRobotResponse::has_robot() const { + return _internal_has_robot(); +} +inline void UpdateRobotResponse::clear_robot() { + if (GetArenaForAllocation() == nullptr && _impl_.robot_ != nullptr) { + delete _impl_.robot_; + } + _impl_.robot_ = nullptr; +} +inline const ::viam::app::v1::Robot& UpdateRobotResponse::_internal_robot() const { + const ::viam::app::v1::Robot* p = _impl_.robot_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Robot_default_instance_); +} +inline const ::viam::app::v1::Robot& UpdateRobotResponse::robot() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotResponse.robot) + return _internal_robot(); +} +inline void UpdateRobotResponse::unsafe_arena_set_allocated_robot( + ::viam::app::v1::Robot* robot) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.robot_); + } + _impl_.robot_ = robot; + if (robot) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateRobotResponse.robot) +} +inline ::viam::app::v1::Robot* UpdateRobotResponse::release_robot() { + + ::viam::app::v1::Robot* temp = _impl_.robot_; + _impl_.robot_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::Robot* UpdateRobotResponse::unsafe_arena_release_robot() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotResponse.robot) + + ::viam::app::v1::Robot* temp = _impl_.robot_; + _impl_.robot_ = nullptr; + return temp; +} +inline ::viam::app::v1::Robot* UpdateRobotResponse::_internal_mutable_robot() { + + if (_impl_.robot_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Robot>(GetArenaForAllocation()); + _impl_.robot_ = p; + } + return _impl_.robot_; +} +inline ::viam::app::v1::Robot* UpdateRobotResponse::mutable_robot() { + ::viam::app::v1::Robot* _msg = _internal_mutable_robot(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotResponse.robot) + return _msg; +} +inline void UpdateRobotResponse::set_allocated_robot(::viam::app::v1::Robot* robot) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.robot_; + } + if (robot) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(robot); + if (message_arena != submessage_arena) { + robot = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, robot, submessage_arena); + } + + } else { + + } + _impl_.robot_ = robot; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotResponse.robot) +} + +// ------------------------------------------------------------------- + +// DeleteRobotRequest + +// string id = 1 [json_name = "id"]; +inline void DeleteRobotRequest::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& DeleteRobotRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.DeleteRobotRequest.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteRobotRequest::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.DeleteRobotRequest.id) +} +inline std::string* DeleteRobotRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteRobotRequest.id) + return _s; +} +inline const std::string& DeleteRobotRequest::_internal_id() const { + return _impl_.id_.Get(); +} +inline void DeleteRobotRequest::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* DeleteRobotRequest::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* DeleteRobotRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.DeleteRobotRequest.id) + return _impl_.id_.Release(); +} +inline void DeleteRobotRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteRobotRequest.id) +} + +// ------------------------------------------------------------------- + +// DeleteRobotResponse + +// ------------------------------------------------------------------- + +// MarkPartAsMainRequest + +// string part_id = 1 [json_name = "partId"]; +inline void MarkPartAsMainRequest::clear_part_id() { + _impl_.part_id_.ClearToEmpty(); +} +inline const std::string& MarkPartAsMainRequest::part_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.MarkPartAsMainRequest.part_id) + return _internal_part_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void MarkPartAsMainRequest::set_part_id(ArgT0&& arg0, ArgT... args) { + + _impl_.part_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.MarkPartAsMainRequest.part_id) +} +inline std::string* MarkPartAsMainRequest::mutable_part_id() { + std::string* _s = _internal_mutable_part_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.MarkPartAsMainRequest.part_id) + return _s; +} +inline const std::string& MarkPartAsMainRequest::_internal_part_id() const { + return _impl_.part_id_.Get(); +} +inline void MarkPartAsMainRequest::_internal_set_part_id(const std::string& value) { + + _impl_.part_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* MarkPartAsMainRequest::_internal_mutable_part_id() { + + return _impl_.part_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* MarkPartAsMainRequest::release_part_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.MarkPartAsMainRequest.part_id) + return _impl_.part_id_.Release(); +} +inline void MarkPartAsMainRequest::set_allocated_part_id(std::string* part_id) { + if (part_id != nullptr) { + + } else { + + } + _impl_.part_id_.SetAllocated(part_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.part_id_.IsDefault()) { + _impl_.part_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.MarkPartAsMainRequest.part_id) +} + +// ------------------------------------------------------------------- + +// MarkPartAsMainResponse + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace app +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2fapp_2eproto diff --git a/src/gen/app/v1/robot.grpc.pb.cc b/src/gen/app/v1/robot.grpc.pb.cc new file mode 100644 index 000000000..62a5ce180 --- /dev/null +++ b/src/gen/app/v1/robot.grpc.pb.cc @@ -0,0 +1,216 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: app/v1/robot.proto + +#include "app/v1/robot.pb.h" +#include "app/v1/robot.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace app { +namespace v1 { + +static const char* RobotService_method_names[] = { + "/viam.app.v1.RobotService/Config", + "/viam.app.v1.RobotService/Certificate", + "/viam.app.v1.RobotService/Log", + "/viam.app.v1.RobotService/NeedsRestart", +}; + +std::unique_ptr< RobotService::Stub> RobotService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< RobotService::Stub> stub(new RobotService::Stub(channel, options)); + return stub; +} + +RobotService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_Config_(RobotService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Certificate_(RobotService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Log_(RobotService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_NeedsRestart_(RobotService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status RobotService::Stub::Config(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::viam::app::v1::ConfigResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::ConfigRequest, ::viam::app::v1::ConfigResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Config_, context, request, response); +} + +void RobotService::Stub::async::Config(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest* request, ::viam::app::v1::ConfigResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::ConfigRequest, ::viam::app::v1::ConfigResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Config_, context, request, response, std::move(f)); +} + +void RobotService::Stub::async::Config(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest* request, ::viam::app::v1::ConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Config_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ConfigResponse>* RobotService::Stub::PrepareAsyncConfigRaw(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::ConfigResponse, ::viam::app::v1::ConfigRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Config_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ConfigResponse>* RobotService::Stub::AsyncConfigRaw(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncConfigRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status RobotService::Stub::Certificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest& request, ::viam::app::v1::CertificateResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::CertificateRequest, ::viam::app::v1::CertificateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Certificate_, context, request, response); +} + +void RobotService::Stub::async::Certificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest* request, ::viam::app::v1::CertificateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::CertificateRequest, ::viam::app::v1::CertificateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Certificate_, context, request, response, std::move(f)); +} + +void RobotService::Stub::async::Certificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest* request, ::viam::app::v1::CertificateResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Certificate_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::CertificateResponse>* RobotService::Stub::PrepareAsyncCertificateRaw(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::CertificateResponse, ::viam::app::v1::CertificateRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Certificate_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::CertificateResponse>* RobotService::Stub::AsyncCertificateRaw(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncCertificateRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status RobotService::Stub::Log(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest& request, ::viam::app::v1::LogResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::LogRequest, ::viam::app::v1::LogResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Log_, context, request, response); +} + +void RobotService::Stub::async::Log(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest* request, ::viam::app::v1::LogResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::LogRequest, ::viam::app::v1::LogResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Log_, context, request, response, std::move(f)); +} + +void RobotService::Stub::async::Log(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest* request, ::viam::app::v1::LogResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Log_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::LogResponse>* RobotService::Stub::PrepareAsyncLogRaw(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::LogResponse, ::viam::app::v1::LogRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Log_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::LogResponse>* RobotService::Stub::AsyncLogRaw(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncLogRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status RobotService::Stub::NeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest& request, ::viam::app::v1::NeedsRestartResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::NeedsRestartRequest, ::viam::app::v1::NeedsRestartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_NeedsRestart_, context, request, response); +} + +void RobotService::Stub::async::NeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest* request, ::viam::app::v1::NeedsRestartResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::NeedsRestartRequest, ::viam::app::v1::NeedsRestartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_NeedsRestart_, context, request, response, std::move(f)); +} + +void RobotService::Stub::async::NeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest* request, ::viam::app::v1::NeedsRestartResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_NeedsRestart_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::NeedsRestartResponse>* RobotService::Stub::PrepareAsyncNeedsRestartRaw(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::NeedsRestartResponse, ::viam::app::v1::NeedsRestartRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_NeedsRestart_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::NeedsRestartResponse>* RobotService::Stub::AsyncNeedsRestartRaw(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncNeedsRestartRaw(context, request, cq); + result->StartCall(); + return result; +} + +RobotService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + RobotService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::app::v1::ConfigRequest, ::viam::app::v1::ConfigResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](RobotService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::ConfigRequest* req, + ::viam::app::v1::ConfigResponse* resp) { + return service->Config(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + RobotService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::app::v1::CertificateRequest, ::viam::app::v1::CertificateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](RobotService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::CertificateRequest* req, + ::viam::app::v1::CertificateResponse* resp) { + return service->Certificate(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + RobotService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::app::v1::LogRequest, ::viam::app::v1::LogResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](RobotService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::LogRequest* req, + ::viam::app::v1::LogResponse* resp) { + return service->Log(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + RobotService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::app::v1::NeedsRestartRequest, ::viam::app::v1::NeedsRestartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](RobotService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::NeedsRestartRequest* req, + ::viam::app::v1::NeedsRestartResponse* resp) { + return service->NeedsRestart(ctx, req, resp); + }, this))); +} + +RobotService::Service::~Service() { +} + +::grpc::Status RobotService::Service::Config(::grpc::ServerContext* context, const ::viam::app::v1::ConfigRequest* request, ::viam::app::v1::ConfigResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status RobotService::Service::Certificate(::grpc::ServerContext* context, const ::viam::app::v1::CertificateRequest* request, ::viam::app::v1::CertificateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status RobotService::Service::Log(::grpc::ServerContext* context, const ::viam::app::v1::LogRequest* request, ::viam::app::v1::LogResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status RobotService::Service::NeedsRestart(::grpc::ServerContext* context, const ::viam::app::v1::NeedsRestartRequest* request, ::viam::app::v1::NeedsRestartResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace app +} // namespace v1 + diff --git a/src/gen/app/v1/robot.grpc.pb.h b/src/gen/app/v1/robot.grpc.pb.h new file mode 100644 index 000000000..09ddfd850 --- /dev/null +++ b/src/gen/app/v1/robot.grpc.pb.h @@ -0,0 +1,728 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: app/v1/robot.proto +#ifndef GRPC_app_2fv1_2frobot_2eproto__INCLUDED +#define GRPC_app_2fv1_2frobot_2eproto__INCLUDED + +#include "app/v1/robot.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace app { +namespace v1 { + +// RobotService is used by robots to retrieve configs, report logs, etc... +class RobotService final { + public: + static constexpr char const* service_full_name() { + return "viam.app.v1.RobotService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // Config requests the current robot config + virtual ::grpc::Status Config(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::viam::app::v1::ConfigResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ConfigResponse>> AsyncConfig(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ConfigResponse>>(AsyncConfigRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ConfigResponse>> PrepareAsyncConfig(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ConfigResponse>>(PrepareAsyncConfigRaw(context, request, cq)); + } + // Certificate requests the current robot certificate + virtual ::grpc::Status Certificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest& request, ::viam::app::v1::CertificateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::CertificateResponse>> AsyncCertificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::CertificateResponse>>(AsyncCertificateRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::CertificateResponse>> PrepareAsyncCertificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::CertificateResponse>>(PrepareAsyncCertificateRaw(context, request, cq)); + } + // Log insert log entries associated with the robot. Allows up to 1000 entries to be added in one request. + virtual ::grpc::Status Log(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest& request, ::viam::app::v1::LogResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::LogResponse>> AsyncLog(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::LogResponse>>(AsyncLogRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::LogResponse>> PrepareAsyncLog(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::LogResponse>>(PrepareAsyncLogRaw(context, request, cq)); + } + // NeedsRestart returns if the robot should restart and the interval it should check to restart. + virtual ::grpc::Status NeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest& request, ::viam::app::v1::NeedsRestartResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::NeedsRestartResponse>> AsyncNeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::NeedsRestartResponse>>(AsyncNeedsRestartRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::NeedsRestartResponse>> PrepareAsyncNeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::NeedsRestartResponse>>(PrepareAsyncNeedsRestartRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // Config requests the current robot config + virtual void Config(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest* request, ::viam::app::v1::ConfigResponse* response, std::function) = 0; + virtual void Config(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest* request, ::viam::app::v1::ConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Certificate requests the current robot certificate + virtual void Certificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest* request, ::viam::app::v1::CertificateResponse* response, std::function) = 0; + virtual void Certificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest* request, ::viam::app::v1::CertificateResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Log insert log entries associated with the robot. Allows up to 1000 entries to be added in one request. + virtual void Log(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest* request, ::viam::app::v1::LogResponse* response, std::function) = 0; + virtual void Log(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest* request, ::viam::app::v1::LogResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // NeedsRestart returns if the robot should restart and the interval it should check to restart. + virtual void NeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest* request, ::viam::app::v1::NeedsRestartResponse* response, std::function) = 0; + virtual void NeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest* request, ::viam::app::v1::NeedsRestartResponse* 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::ClientAsyncResponseReaderInterface< ::viam::app::v1::ConfigResponse>* AsyncConfigRaw(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ConfigResponse>* PrepareAsyncConfigRaw(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::CertificateResponse>* AsyncCertificateRaw(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::CertificateResponse>* PrepareAsyncCertificateRaw(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::LogResponse>* AsyncLogRaw(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::LogResponse>* PrepareAsyncLogRaw(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::NeedsRestartResponse>* AsyncNeedsRestartRaw(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::NeedsRestartResponse>* PrepareAsyncNeedsRestartRaw(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest& 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()); + ::grpc::Status Config(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::viam::app::v1::ConfigResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ConfigResponse>> AsyncConfig(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ConfigResponse>>(AsyncConfigRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ConfigResponse>> PrepareAsyncConfig(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ConfigResponse>>(PrepareAsyncConfigRaw(context, request, cq)); + } + ::grpc::Status Certificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest& request, ::viam::app::v1::CertificateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CertificateResponse>> AsyncCertificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CertificateResponse>>(AsyncCertificateRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CertificateResponse>> PrepareAsyncCertificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CertificateResponse>>(PrepareAsyncCertificateRaw(context, request, cq)); + } + ::grpc::Status Log(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest& request, ::viam::app::v1::LogResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::LogResponse>> AsyncLog(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::LogResponse>>(AsyncLogRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::LogResponse>> PrepareAsyncLog(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::LogResponse>>(PrepareAsyncLogRaw(context, request, cq)); + } + ::grpc::Status NeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest& request, ::viam::app::v1::NeedsRestartResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::NeedsRestartResponse>> AsyncNeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::NeedsRestartResponse>>(AsyncNeedsRestartRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::NeedsRestartResponse>> PrepareAsyncNeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::NeedsRestartResponse>>(PrepareAsyncNeedsRestartRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void Config(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest* request, ::viam::app::v1::ConfigResponse* response, std::function) override; + void Config(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest* request, ::viam::app::v1::ConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void Certificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest* request, ::viam::app::v1::CertificateResponse* response, std::function) override; + void Certificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest* request, ::viam::app::v1::CertificateResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void Log(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest* request, ::viam::app::v1::LogResponse* response, std::function) override; + void Log(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest* request, ::viam::app::v1::LogResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void NeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest* request, ::viam::app::v1::NeedsRestartResponse* response, std::function) override; + void NeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest* request, ::viam::app::v1::NeedsRestartResponse* 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::ClientAsyncResponseReader< ::viam::app::v1::ConfigResponse>* AsyncConfigRaw(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ConfigResponse>* PrepareAsyncConfigRaw(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CertificateResponse>* AsyncCertificateRaw(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CertificateResponse>* PrepareAsyncCertificateRaw(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::LogResponse>* AsyncLogRaw(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::LogResponse>* PrepareAsyncLogRaw(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::NeedsRestartResponse>* AsyncNeedsRestartRaw(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::NeedsRestartResponse>* PrepareAsyncNeedsRestartRaw(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_Config_; + const ::grpc::internal::RpcMethod rpcmethod_Certificate_; + const ::grpc::internal::RpcMethod rpcmethod_Log_; + const ::grpc::internal::RpcMethod rpcmethod_NeedsRestart_; + }; + 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(); + // Config requests the current robot config + virtual ::grpc::Status Config(::grpc::ServerContext* context, const ::viam::app::v1::ConfigRequest* request, ::viam::app::v1::ConfigResponse* response); + // Certificate requests the current robot certificate + virtual ::grpc::Status Certificate(::grpc::ServerContext* context, const ::viam::app::v1::CertificateRequest* request, ::viam::app::v1::CertificateResponse* response); + // Log insert log entries associated with the robot. Allows up to 1000 entries to be added in one request. + virtual ::grpc::Status Log(::grpc::ServerContext* context, const ::viam::app::v1::LogRequest* request, ::viam::app::v1::LogResponse* response); + // NeedsRestart returns if the robot should restart and the interval it should check to restart. + virtual ::grpc::Status NeedsRestart(::grpc::ServerContext* context, const ::viam::app::v1::NeedsRestartRequest* request, ::viam::app::v1::NeedsRestartResponse* response); + }; + template + class WithAsyncMethod_Config : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Config() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_Config() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Config(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ConfigRequest* /*request*/, ::viam::app::v1::ConfigResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestConfig(::grpc::ServerContext* context, ::viam::app::v1::ConfigRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::ConfigResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_Certificate : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Certificate() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_Certificate() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Certificate(::grpc::ServerContext* /*context*/, const ::viam::app::v1::CertificateRequest* /*request*/, ::viam::app::v1::CertificateResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCertificate(::grpc::ServerContext* context, ::viam::app::v1::CertificateRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::CertificateResponse>* 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 WithAsyncMethod_Log : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Log() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_Log() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Log(::grpc::ServerContext* /*context*/, const ::viam::app::v1::LogRequest* /*request*/, ::viam::app::v1::LogResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestLog(::grpc::ServerContext* context, ::viam::app::v1::LogRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::LogResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_NeedsRestart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_NeedsRestart() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_NeedsRestart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status NeedsRestart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::NeedsRestartRequest* /*request*/, ::viam::app::v1::NeedsRestartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestNeedsRestart(::grpc::ServerContext* context, ::viam::app::v1::NeedsRestartRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::NeedsRestartResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_Config > > > AsyncService; + template + class WithCallbackMethod_Config : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Config() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ConfigRequest, ::viam::app::v1::ConfigResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::ConfigRequest* request, ::viam::app::v1::ConfigResponse* response) { return this->Config(context, request, response); }));} + void SetMessageAllocatorFor_Config( + ::grpc::MessageAllocator< ::viam::app::v1::ConfigRequest, ::viam::app::v1::ConfigResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ConfigRequest, ::viam::app::v1::ConfigResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Config() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Config(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ConfigRequest* /*request*/, ::viam::app::v1::ConfigResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Config( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ConfigRequest* /*request*/, ::viam::app::v1::ConfigResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_Certificate : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Certificate() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CertificateRequest, ::viam::app::v1::CertificateResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::CertificateRequest* request, ::viam::app::v1::CertificateResponse* response) { return this->Certificate(context, request, response); }));} + void SetMessageAllocatorFor_Certificate( + ::grpc::MessageAllocator< ::viam::app::v1::CertificateRequest, ::viam::app::v1::CertificateResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CertificateRequest, ::viam::app::v1::CertificateResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Certificate() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Certificate(::grpc::ServerContext* /*context*/, const ::viam::app::v1::CertificateRequest* /*request*/, ::viam::app::v1::CertificateResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Certificate( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CertificateRequest* /*request*/, ::viam::app::v1::CertificateResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_Log : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Log() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::LogRequest, ::viam::app::v1::LogResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::LogRequest* request, ::viam::app::v1::LogResponse* response) { return this->Log(context, request, response); }));} + void SetMessageAllocatorFor_Log( + ::grpc::MessageAllocator< ::viam::app::v1::LogRequest, ::viam::app::v1::LogResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::LogRequest, ::viam::app::v1::LogResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Log() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Log(::grpc::ServerContext* /*context*/, const ::viam::app::v1::LogRequest* /*request*/, ::viam::app::v1::LogResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Log( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::LogRequest* /*request*/, ::viam::app::v1::LogResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_NeedsRestart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_NeedsRestart() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::NeedsRestartRequest, ::viam::app::v1::NeedsRestartResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::NeedsRestartRequest* request, ::viam::app::v1::NeedsRestartResponse* response) { return this->NeedsRestart(context, request, response); }));} + void SetMessageAllocatorFor_NeedsRestart( + ::grpc::MessageAllocator< ::viam::app::v1::NeedsRestartRequest, ::viam::app::v1::NeedsRestartResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::NeedsRestartRequest, ::viam::app::v1::NeedsRestartResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_NeedsRestart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status NeedsRestart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::NeedsRestartRequest* /*request*/, ::viam::app::v1::NeedsRestartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* NeedsRestart( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::NeedsRestartRequest* /*request*/, ::viam::app::v1::NeedsRestartResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_Config > > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_Config : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Config() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_Config() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Config(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ConfigRequest* /*request*/, ::viam::app::v1::ConfigResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_Certificate : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Certificate() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_Certificate() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Certificate(::grpc::ServerContext* /*context*/, const ::viam::app::v1::CertificateRequest* /*request*/, ::viam::app::v1::CertificateResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_Log : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Log() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_Log() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Log(::grpc::ServerContext* /*context*/, const ::viam::app::v1::LogRequest* /*request*/, ::viam::app::v1::LogResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_NeedsRestart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_NeedsRestart() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_NeedsRestart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status NeedsRestart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::NeedsRestartRequest* /*request*/, ::viam::app::v1::NeedsRestartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_Config : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Config() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_Config() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Config(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ConfigRequest* /*request*/, ::viam::app::v1::ConfigResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestConfig(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_Certificate : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Certificate() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_Certificate() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Certificate(::grpc::ServerContext* /*context*/, const ::viam::app::v1::CertificateRequest* /*request*/, ::viam::app::v1::CertificateResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCertificate(::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 WithRawMethod_Log : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Log() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_Log() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Log(::grpc::ServerContext* /*context*/, const ::viam::app::v1::LogRequest* /*request*/, ::viam::app::v1::LogResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestLog(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_NeedsRestart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_NeedsRestart() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_NeedsRestart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status NeedsRestart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::NeedsRestartRequest* /*request*/, ::viam::app::v1::NeedsRestartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestNeedsRestart(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_Config : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Config() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Config(context, request, response); })); + } + ~WithRawCallbackMethod_Config() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Config(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ConfigRequest* /*request*/, ::viam::app::v1::ConfigResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Config( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_Certificate : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Certificate() { + ::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->Certificate(context, request, response); })); + } + ~WithRawCallbackMethod_Certificate() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Certificate(::grpc::ServerContext* /*context*/, const ::viam::app::v1::CertificateRequest* /*request*/, ::viam::app::v1::CertificateResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Certificate( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_Log : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Log() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Log(context, request, response); })); + } + ~WithRawCallbackMethod_Log() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Log(::grpc::ServerContext* /*context*/, const ::viam::app::v1::LogRequest* /*request*/, ::viam::app::v1::LogResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Log( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_NeedsRestart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_NeedsRestart() { + ::grpc::Service::MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->NeedsRestart(context, request, response); })); + } + ~WithRawCallbackMethod_NeedsRestart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status NeedsRestart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::NeedsRestartRequest* /*request*/, ::viam::app::v1::NeedsRestartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* NeedsRestart( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_Config : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Config() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::ConfigRequest, ::viam::app::v1::ConfigResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::ConfigRequest, ::viam::app::v1::ConfigResponse>* streamer) { + return this->StreamedConfig(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Config() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Config(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ConfigRequest* /*request*/, ::viam::app::v1::ConfigResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedConfig(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::ConfigRequest,::viam::app::v1::ConfigResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_Certificate : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Certificate() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::CertificateRequest, ::viam::app::v1::CertificateResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::CertificateRequest, ::viam::app::v1::CertificateResponse>* streamer) { + return this->StreamedCertificate(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Certificate() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Certificate(::grpc::ServerContext* /*context*/, const ::viam::app::v1::CertificateRequest* /*request*/, ::viam::app::v1::CertificateResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCertificate(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::CertificateRequest,::viam::app::v1::CertificateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_Log : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Log() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::LogRequest, ::viam::app::v1::LogResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::LogRequest, ::viam::app::v1::LogResponse>* streamer) { + return this->StreamedLog(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Log() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Log(::grpc::ServerContext* /*context*/, const ::viam::app::v1::LogRequest* /*request*/, ::viam::app::v1::LogResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedLog(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::LogRequest,::viam::app::v1::LogResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_NeedsRestart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_NeedsRestart() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::NeedsRestartRequest, ::viam::app::v1::NeedsRestartResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::NeedsRestartRequest, ::viam::app::v1::NeedsRestartResponse>* streamer) { + return this->StreamedNeedsRestart(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_NeedsRestart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status NeedsRestart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::NeedsRestartRequest* /*request*/, ::viam::app::v1::NeedsRestartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedNeedsRestart(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::NeedsRestartRequest,::viam::app::v1::NeedsRestartResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_Config > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_Config > > > StreamedService; +}; + +} // namespace v1 +} // namespace app +} // namespace viam + + +#endif // GRPC_app_2fv1_2frobot_2eproto__INCLUDED diff --git a/src/gen/app/v1/robot.pb.cc b/src/gen/app/v1/robot.pb.cc new file mode 100644 index 000000000..d231fa1c0 --- /dev/null +++ b/src/gen/app/v1/robot.pb.cc @@ -0,0 +1,10321 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: app/v1/robot.proto + +#include "app/v1/robot.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 app { +namespace v1 { +PROTOBUF_CONSTEXPR RobotConfig::RobotConfig( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.remotes_)*/{} + , /*decltype(_impl_.components_)*/{} + , /*decltype(_impl_.processes_)*/{} + , /*decltype(_impl_.services_)*/{} + , /*decltype(_impl_.cloud_)*/nullptr + , /*decltype(_impl_.network_)*/nullptr + , /*decltype(_impl_.auth_)*/nullptr + , /*decltype(_impl_.debug_)*/false} {} +struct RobotConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR RobotConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RobotConfigDefaultTypeInternal() {} + union { + RobotConfig _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RobotConfigDefaultTypeInternal _RobotConfig_default_instance_; +PROTOBUF_CONSTEXPR CloudConfig::CloudConfig( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.fqdn_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.local_fqdn_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.managed_by_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.signaling_address_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.location_secret_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.secret_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.signaling_insecure_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct CloudConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR CloudConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CloudConfigDefaultTypeInternal() {} + union { + CloudConfig _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CloudConfigDefaultTypeInternal _CloudConfig_default_instance_; +PROTOBUF_CONSTEXPR ComponentConfig::ComponentConfig( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.depends_on_)*/{} + , /*decltype(_impl_.service_configs_)*/{} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.namespace__)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.model_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.frame_)*/nullptr + , /*decltype(_impl_.attributes_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ComponentConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR ComponentConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ComponentConfigDefaultTypeInternal() {} + union { + ComponentConfig _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentConfigDefaultTypeInternal _ComponentConfig_default_instance_; +PROTOBUF_CONSTEXPR ResourceLevelServiceConfig::ResourceLevelServiceConfig( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.attributes_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ResourceLevelServiceConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResourceLevelServiceConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResourceLevelServiceConfigDefaultTypeInternal() {} + union { + ResourceLevelServiceConfig _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceLevelServiceConfigDefaultTypeInternal _ResourceLevelServiceConfig_default_instance_; +PROTOBUF_CONSTEXPR ProcessConfig::ProcessConfig( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.args_)*/{} + , /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.cwd_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.one_shot_)*/false + , /*decltype(_impl_.log_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ProcessConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR ProcessConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ProcessConfigDefaultTypeInternal() {} + union { + ProcessConfig _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProcessConfigDefaultTypeInternal _ProcessConfig_default_instance_; +PROTOBUF_CONSTEXPR ServiceConfig::ServiceConfig( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.namespace__)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.attributes_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ServiceConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR ServiceConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ServiceConfigDefaultTypeInternal() {} + union { + ServiceConfig _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ServiceConfigDefaultTypeInternal _ServiceConfig_default_instance_; +PROTOBUF_CONSTEXPR NetworkConfig::NetworkConfig( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.fqdn_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.bind_address_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.tls_cert_file_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.tls_key_file_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct NetworkConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR NetworkConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~NetworkConfigDefaultTypeInternal() {} + union { + NetworkConfig _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetworkConfigDefaultTypeInternal _NetworkConfig_default_instance_; +PROTOBUF_CONSTEXPR AuthConfig::AuthConfig( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.handlers_)*/{} + , /*decltype(_impl_.tls_auth_entities_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct AuthConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR AuthConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AuthConfigDefaultTypeInternal() {} + union { + AuthConfig _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthConfigDefaultTypeInternal _AuthConfig_default_instance_; +PROTOBUF_CONSTEXPR AuthHandlerConfig::AuthHandlerConfig( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.config_)*/nullptr + , /*decltype(_impl_.type_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct AuthHandlerConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR AuthHandlerConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AuthHandlerConfigDefaultTypeInternal() {} + union { + AuthHandlerConfig _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthHandlerConfigDefaultTypeInternal _AuthHandlerConfig_default_instance_; +PROTOBUF_CONSTEXPR Frame::Frame( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.parent_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.translation_)*/nullptr + , /*decltype(_impl_.orientation_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct FrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR FrameDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FrameDefaultTypeInternal() {} + union { + Frame _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FrameDefaultTypeInternal _Frame_default_instance_; +PROTOBUF_CONSTEXPR Translation::Translation( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.x_)*/0 + , /*decltype(_impl_.y_)*/0 + , /*decltype(_impl_.z_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct TranslationDefaultTypeInternal { + PROTOBUF_CONSTEXPR TranslationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TranslationDefaultTypeInternal() {} + union { + Translation _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TranslationDefaultTypeInternal _Translation_default_instance_; +PROTOBUF_CONSTEXPR Orientation_NoOrientation::Orientation_NoOrientation( + ::_pbi::ConstantInitialized) {} +struct Orientation_NoOrientationDefaultTypeInternal { + PROTOBUF_CONSTEXPR Orientation_NoOrientationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Orientation_NoOrientationDefaultTypeInternal() {} + union { + Orientation_NoOrientation _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Orientation_NoOrientationDefaultTypeInternal _Orientation_NoOrientation_default_instance_; +PROTOBUF_CONSTEXPR Orientation_OrientationVectorRadians::Orientation_OrientationVectorRadians( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.theta_)*/0 + , /*decltype(_impl_.x_)*/0 + , /*decltype(_impl_.y_)*/0 + , /*decltype(_impl_.z_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Orientation_OrientationVectorRadiansDefaultTypeInternal { + PROTOBUF_CONSTEXPR Orientation_OrientationVectorRadiansDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Orientation_OrientationVectorRadiansDefaultTypeInternal() {} + union { + Orientation_OrientationVectorRadians _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Orientation_OrientationVectorRadiansDefaultTypeInternal _Orientation_OrientationVectorRadians_default_instance_; +PROTOBUF_CONSTEXPR Orientation_OrientationVectorDegrees::Orientation_OrientationVectorDegrees( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.theta_)*/0 + , /*decltype(_impl_.x_)*/0 + , /*decltype(_impl_.y_)*/0 + , /*decltype(_impl_.z_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Orientation_OrientationVectorDegreesDefaultTypeInternal { + PROTOBUF_CONSTEXPR Orientation_OrientationVectorDegreesDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Orientation_OrientationVectorDegreesDefaultTypeInternal() {} + union { + Orientation_OrientationVectorDegrees _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Orientation_OrientationVectorDegreesDefaultTypeInternal _Orientation_OrientationVectorDegrees_default_instance_; +PROTOBUF_CONSTEXPR Orientation_EulerAngles::Orientation_EulerAngles( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.roll_)*/0 + , /*decltype(_impl_.pitch_)*/0 + , /*decltype(_impl_.yaw_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Orientation_EulerAnglesDefaultTypeInternal { + PROTOBUF_CONSTEXPR Orientation_EulerAnglesDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Orientation_EulerAnglesDefaultTypeInternal() {} + union { + Orientation_EulerAngles _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Orientation_EulerAnglesDefaultTypeInternal _Orientation_EulerAngles_default_instance_; +PROTOBUF_CONSTEXPR Orientation_AxisAngles::Orientation_AxisAngles( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.theta_)*/0 + , /*decltype(_impl_.x_)*/0 + , /*decltype(_impl_.y_)*/0 + , /*decltype(_impl_.z_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Orientation_AxisAnglesDefaultTypeInternal { + PROTOBUF_CONSTEXPR Orientation_AxisAnglesDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Orientation_AxisAnglesDefaultTypeInternal() {} + union { + Orientation_AxisAngles _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Orientation_AxisAnglesDefaultTypeInternal _Orientation_AxisAngles_default_instance_; +PROTOBUF_CONSTEXPR Orientation_Quaternion::Orientation_Quaternion( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.w_)*/0 + , /*decltype(_impl_.x_)*/0 + , /*decltype(_impl_.y_)*/0 + , /*decltype(_impl_.z_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Orientation_QuaternionDefaultTypeInternal { + PROTOBUF_CONSTEXPR Orientation_QuaternionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Orientation_QuaternionDefaultTypeInternal() {} + union { + Orientation_Quaternion _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Orientation_QuaternionDefaultTypeInternal _Orientation_Quaternion_default_instance_; +PROTOBUF_CONSTEXPR Orientation::Orientation( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.type_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct OrientationDefaultTypeInternal { + PROTOBUF_CONSTEXPR OrientationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OrientationDefaultTypeInternal() {} + union { + Orientation _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrientationDefaultTypeInternal _Orientation_default_instance_; +PROTOBUF_CONSTEXPR RemoteConfig::RemoteConfig( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.service_configs_)*/{} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.address_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.managed_by_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.secret_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.frame_)*/nullptr + , /*decltype(_impl_.auth_)*/nullptr + , /*decltype(_impl_.connection_check_interval_)*/nullptr + , /*decltype(_impl_.reconnect_interval_)*/nullptr + , /*decltype(_impl_.insecure_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RemoteConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoteConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RemoteConfigDefaultTypeInternal() {} + union { + RemoteConfig _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoteConfigDefaultTypeInternal _RemoteConfig_default_instance_; +PROTOBUF_CONSTEXPR RemoteAuth_Credentials::RemoteAuth_Credentials( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.payload_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.type_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RemoteAuth_CredentialsDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoteAuth_CredentialsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RemoteAuth_CredentialsDefaultTypeInternal() {} + union { + RemoteAuth_Credentials _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoteAuth_CredentialsDefaultTypeInternal _RemoteAuth_Credentials_default_instance_; +PROTOBUF_CONSTEXPR RemoteAuth::RemoteAuth( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.entity_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.credentials_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RemoteAuthDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoteAuthDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RemoteAuthDefaultTypeInternal() {} + union { + RemoteAuth _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoteAuthDefaultTypeInternal _RemoteAuth_default_instance_; +PROTOBUF_CONSTEXPR AgentInfo::AgentInfo( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.ips_)*/{} + , /*decltype(_impl_.host_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.os_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.git_revision_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct AgentInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR AgentInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AgentInfoDefaultTypeInternal() {} + union { + AgentInfo _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AgentInfoDefaultTypeInternal _AgentInfo_default_instance_; +PROTOBUF_CONSTEXPR ConfigRequest::ConfigRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.agent_info_)*/nullptr} {} +struct ConfigRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ConfigRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ConfigRequestDefaultTypeInternal() {} + union { + ConfigRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConfigRequestDefaultTypeInternal _ConfigRequest_default_instance_; +PROTOBUF_CONSTEXPR ConfigResponse::ConfigResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.config_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ConfigResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ConfigResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ConfigResponseDefaultTypeInternal() {} + union { + ConfigResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConfigResponseDefaultTypeInternal _ConfigResponse_default_instance_; +PROTOBUF_CONSTEXPR CertificateRequest::CertificateRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct CertificateRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CertificateRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CertificateRequestDefaultTypeInternal() {} + union { + CertificateRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CertificateRequestDefaultTypeInternal _CertificateRequest_default_instance_; +PROTOBUF_CONSTEXPR CertificateResponse::CertificateResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.tls_certificate_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.tls_private_key_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct CertificateResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CertificateResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CertificateResponseDefaultTypeInternal() {} + union { + CertificateResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CertificateResponseDefaultTypeInternal _CertificateResponse_default_instance_; +PROTOBUF_CONSTEXPR LogRequest::LogRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.logs_)*/{} + , /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct LogRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR LogRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LogRequestDefaultTypeInternal() {} + union { + LogRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogRequestDefaultTypeInternal _LogRequest_default_instance_; +PROTOBUF_CONSTEXPR LogResponse::LogResponse( + ::_pbi::ConstantInitialized) {} +struct LogResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR LogResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LogResponseDefaultTypeInternal() {} + union { + LogResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogResponseDefaultTypeInternal _LogResponse_default_instance_; +PROTOBUF_CONSTEXPR NeedsRestartRequest::NeedsRestartRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct NeedsRestartRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR NeedsRestartRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~NeedsRestartRequestDefaultTypeInternal() {} + union { + NeedsRestartRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NeedsRestartRequestDefaultTypeInternal _NeedsRestartRequest_default_instance_; +PROTOBUF_CONSTEXPR NeedsRestartResponse::NeedsRestartResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.restart_check_interval_)*/nullptr + , /*decltype(_impl_.must_restart_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct NeedsRestartResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR NeedsRestartResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~NeedsRestartResponseDefaultTypeInternal() {} + union { + NeedsRestartResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NeedsRestartResponseDefaultTypeInternal _NeedsRestartResponse_default_instance_; +} // namespace v1 +} // namespace app +} // namespace viam +static ::_pb::Metadata file_level_metadata_app_2fv1_2frobot_2eproto[30]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_app_2fv1_2frobot_2eproto[1]; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_app_2fv1_2frobot_2eproto = nullptr; + +const uint32_t TableStruct_app_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.cloud_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.remotes_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.components_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.processes_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.services_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.network_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.auth_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.debug_), + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + 0, + 1, + 2, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _impl_.fqdn_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _impl_.local_fqdn_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _impl_.managed_by_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _impl_.signaling_address_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _impl_.signaling_insecure_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _impl_.location_secret_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _impl_.secret_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _impl_.namespace__), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _impl_.model_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _impl_.frame_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _impl_.depends_on_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _impl_.service_configs_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _impl_.attributes_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceLevelServiceConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceLevelServiceConfig, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceLevelServiceConfig, _impl_.attributes_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, _impl_.args_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, _impl_.cwd_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, _impl_.one_shot_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, _impl_.log_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, _impl_.namespace__), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, _impl_.attributes_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NetworkConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NetworkConfig, _impl_.fqdn_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NetworkConfig, _impl_.bind_address_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NetworkConfig, _impl_.tls_cert_file_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NetworkConfig, _impl_.tls_key_file_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthConfig, _impl_.handlers_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthConfig, _impl_.tls_auth_entities_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthHandlerConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthHandlerConfig, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthHandlerConfig, _impl_.config_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Frame, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Frame, _impl_.parent_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Frame, _impl_.translation_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Frame, _impl_.orientation_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Translation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Translation, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Translation, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Translation, _impl_.z_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_NoOrientation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorRadians, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorRadians, _impl_.theta_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorRadians, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorRadians, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorRadians, _impl_.z_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorDegrees, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorDegrees, _impl_.theta_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorDegrees, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorDegrees, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorDegrees, _impl_.z_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_EulerAngles, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_EulerAngles, _impl_.roll_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_EulerAngles, _impl_.pitch_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_EulerAngles, _impl_.yaw_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_AxisAngles, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_AxisAngles, _impl_.theta_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_AxisAngles, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_AxisAngles, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_AxisAngles, _impl_.z_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_Quaternion, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_Quaternion, _impl_.w_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_Quaternion, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_Quaternion, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_Quaternion, _impl_.z_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation, _impl_.type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _impl_.address_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _impl_.frame_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _impl_.auth_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _impl_.managed_by_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _impl_.insecure_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _impl_.connection_check_interval_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _impl_.reconnect_interval_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _impl_.service_configs_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _impl_.secret_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteAuth_Credentials, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteAuth_Credentials, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteAuth_Credentials, _impl_.payload_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteAuth, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteAuth, _impl_.credentials_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteAuth, _impl_.entity_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, _impl_.host_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, _impl_.os_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, _impl_.ips_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, _impl_.version_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, _impl_.git_revision_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ConfigRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ConfigRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ConfigRequest, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ConfigRequest, _impl_.agent_info_), + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ConfigResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ConfigResponse, _impl_.config_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CertificateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CertificateRequest, _impl_.id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CertificateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CertificateResponse, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CertificateResponse, _impl_.tls_certificate_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CertificateResponse, _impl_.tls_private_key_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogRequest, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogRequest, _impl_.logs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NeedsRestartRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NeedsRestartRequest, _impl_.id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NeedsRestartResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NeedsRestartResponse, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NeedsRestartResponse, _impl_.must_restart_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NeedsRestartResponse, _impl_.restart_check_interval_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, 14, -1, sizeof(::viam::app::v1::RobotConfig)}, + { 22, -1, -1, sizeof(::viam::app::v1::CloudConfig)}, + { 36, -1, -1, sizeof(::viam::app::v1::ComponentConfig)}, + { 50, -1, -1, sizeof(::viam::app::v1::ResourceLevelServiceConfig)}, + { 58, -1, -1, sizeof(::viam::app::v1::ProcessConfig)}, + { 70, -1, -1, sizeof(::viam::app::v1::ServiceConfig)}, + { 80, -1, -1, sizeof(::viam::app::v1::NetworkConfig)}, + { 90, -1, -1, sizeof(::viam::app::v1::AuthConfig)}, + { 98, -1, -1, sizeof(::viam::app::v1::AuthHandlerConfig)}, + { 106, -1, -1, sizeof(::viam::app::v1::Frame)}, + { 115, -1, -1, sizeof(::viam::app::v1::Translation)}, + { 124, -1, -1, sizeof(::viam::app::v1::Orientation_NoOrientation)}, + { 130, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorRadians)}, + { 140, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorDegrees)}, + { 150, -1, -1, sizeof(::viam::app::v1::Orientation_EulerAngles)}, + { 159, -1, -1, sizeof(::viam::app::v1::Orientation_AxisAngles)}, + { 169, -1, -1, sizeof(::viam::app::v1::Orientation_Quaternion)}, + { 179, -1, -1, sizeof(::viam::app::v1::Orientation)}, + { 192, -1, -1, sizeof(::viam::app::v1::RemoteConfig)}, + { 208, -1, -1, sizeof(::viam::app::v1::RemoteAuth_Credentials)}, + { 216, -1, -1, sizeof(::viam::app::v1::RemoteAuth)}, + { 224, -1, -1, sizeof(::viam::app::v1::AgentInfo)}, + { 235, 243, -1, sizeof(::viam::app::v1::ConfigRequest)}, + { 245, -1, -1, sizeof(::viam::app::v1::ConfigResponse)}, + { 252, -1, -1, sizeof(::viam::app::v1::CertificateRequest)}, + { 259, -1, -1, sizeof(::viam::app::v1::CertificateResponse)}, + { 268, -1, -1, sizeof(::viam::app::v1::LogRequest)}, + { 276, -1, -1, sizeof(::viam::app::v1::LogResponse)}, + { 282, -1, -1, sizeof(::viam::app::v1::NeedsRestartRequest)}, + { 289, -1, -1, sizeof(::viam::app::v1::NeedsRestartResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::app::v1::_RobotConfig_default_instance_._instance, + &::viam::app::v1::_CloudConfig_default_instance_._instance, + &::viam::app::v1::_ComponentConfig_default_instance_._instance, + &::viam::app::v1::_ResourceLevelServiceConfig_default_instance_._instance, + &::viam::app::v1::_ProcessConfig_default_instance_._instance, + &::viam::app::v1::_ServiceConfig_default_instance_._instance, + &::viam::app::v1::_NetworkConfig_default_instance_._instance, + &::viam::app::v1::_AuthConfig_default_instance_._instance, + &::viam::app::v1::_AuthHandlerConfig_default_instance_._instance, + &::viam::app::v1::_Frame_default_instance_._instance, + &::viam::app::v1::_Translation_default_instance_._instance, + &::viam::app::v1::_Orientation_NoOrientation_default_instance_._instance, + &::viam::app::v1::_Orientation_OrientationVectorRadians_default_instance_._instance, + &::viam::app::v1::_Orientation_OrientationVectorDegrees_default_instance_._instance, + &::viam::app::v1::_Orientation_EulerAngles_default_instance_._instance, + &::viam::app::v1::_Orientation_AxisAngles_default_instance_._instance, + &::viam::app::v1::_Orientation_Quaternion_default_instance_._instance, + &::viam::app::v1::_Orientation_default_instance_._instance, + &::viam::app::v1::_RemoteConfig_default_instance_._instance, + &::viam::app::v1::_RemoteAuth_Credentials_default_instance_._instance, + &::viam::app::v1::_RemoteAuth_default_instance_._instance, + &::viam::app::v1::_AgentInfo_default_instance_._instance, + &::viam::app::v1::_ConfigRequest_default_instance_._instance, + &::viam::app::v1::_ConfigResponse_default_instance_._instance, + &::viam::app::v1::_CertificateRequest_default_instance_._instance, + &::viam::app::v1::_CertificateResponse_default_instance_._instance, + &::viam::app::v1::_LogRequest_default_instance_._instance, + &::viam::app::v1::_LogResponse_default_instance_._instance, + &::viam::app::v1::_NeedsRestartRequest_default_instance_._instance, + &::viam::app::v1::_NeedsRestartResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_app_2fv1_2frobot_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\022app/v1/robot.proto\022\013viam.app.v1\032\020app/v" + "1/app.proto\032\036google/protobuf/duration.pr" + "oto\032\034google/protobuf/struct.proto\032\026tagge" + "r/v1/tagger.proto\"\311\003\n\013RobotConfig\022.\n\005clo" + "ud\030\001 \001(\0132\030.viam.app.v1.CloudConfigR\005clou" + "d\0223\n\007remotes\030\002 \003(\0132\031.viam.app.v1.RemoteC" + "onfigR\007remotes\022<\n\ncomponents\030\003 \003(\0132\034.via" + "m.app.v1.ComponentConfigR\ncomponents\0228\n\t" + "processes\030\004 \003(\0132\032.viam.app.v1.ProcessCon" + "figR\tprocesses\0226\n\010services\030\005 \003(\0132\032.viam." + "app.v1.ServiceConfigR\010services\0229\n\007networ" + "k\030\006 \001(\0132\032.viam.app.v1.NetworkConfigH\000R\007n" + "etwork\210\001\001\0220\n\004auth\030\007 \001(\0132\027.viam.app.v1.Au" + "thConfigH\001R\004auth\210\001\001\022\031\n\005debug\030\010 \001(\010H\002R\005de" + "bug\210\001\001B\n\n\010_networkB\007\n\005_authB\010\n\006_debug\"\214\002" + "\n\013CloudConfig\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004fqdn\030\002 " + "\001(\tR\004fqdn\022\035\n\nlocal_fqdn\030\003 \001(\tR\tlocalFqdn" + "\022\035\n\nmanaged_by\030\004 \001(\tR\tmanagedBy\022+\n\021signa" + "ling_address\030\005 \001(\tR\020signalingAddress\022-\n\022" + "signaling_insecure\030\006 \001(\010R\021signalingInsec" + "ure\022\'\n\017location_secret\030\007 \001(\tR\016locationSe" + "cret\022\026\n\006secret\030\010 \001(\tR\006secret\"\335\002\n\017Compone" + "ntConfig\022\022\n\004name\030\001 \001(\tR\004name\022\034\n\tnamespac" + "e\030\002 \001(\tR\tnamespace\022\022\n\004type\030\003 \001(\tR\004type\022\024" + "\n\005model\030\004 \001(\tR\005model\022(\n\005frame\030\005 \001(\0132\022.vi" + "am.app.v1.FrameR\005frame\022\035\n\ndepends_on\030\006 \003" + "(\tR\tdependsOn\022l\n\017service_configs\030\007 \003(\0132\'" + ".viam.app.v1.ResourceLevelServiceConfigB" + "\032\232\204\236\003\025json:\"service_config\"R\016serviceConf" + "igs\0227\n\nattributes\030\010 \001(\0132\027.google.protobu" + "f.StructR\nattributes\"i\n\032ResourceLevelSer" + "viceConfig\022\022\n\004type\030\001 \001(\tR\004type\0227\n\nattrib" + "utes\030\002 \001(\0132\027.google.protobuf.StructR\natt" + "ributes\"\206\001\n\rProcessConfig\022\016\n\002id\030\001 \001(\tR\002i" + "d\022\022\n\004name\030\002 \001(\tR\004name\022\022\n\004args\030\003 \003(\tR\004arg" + "s\022\020\n\003cwd\030\004 \001(\tR\003cwd\022\031\n\010one_shot\030\005 \001(\010R\007o" + "neShot\022\020\n\003log\030\006 \001(\010R\003log\"\216\001\n\rServiceConf" + "ig\022\022\n\004name\030\001 \001(\tR\004name\022\034\n\tnamespace\030\002 \001(" + "\tR\tnamespace\022\022\n\004type\030\003 \001(\tR\004type\0227\n\nattr" + "ibutes\030\004 \001(\0132\027.google.protobuf.StructR\na" + "ttributes\"\214\001\n\rNetworkConfig\022\022\n\004fqdn\030\001 \001(" + "\tR\004fqdn\022!\n\014bind_address\030\002 \001(\tR\013bindAddre" + "ss\022\"\n\rtls_cert_file\030\003 \001(\tR\013tlsCertFile\022 " + "\n\014tls_key_file\030\004 \001(\tR\ntlsKeyFile\"t\n\nAuth" + "Config\022:\n\010handlers\030\001 \003(\0132\036.viam.app.v1.A" + "uthHandlerConfigR\010handlers\022*\n\021tls_auth_e" + "ntities\030\002 \003(\tR\017tlsAuthEntities\"v\n\021AuthHa" + "ndlerConfig\0220\n\004type\030\001 \001(\0162\034.viam.app.v1." + "CredentialsTypeR\004type\022/\n\006config\030\005 \001(\0132\027." + "google.protobuf.StructR\006config\"\227\001\n\005Frame" + "\022\026\n\006parent\030\001 \001(\tR\006parent\022:\n\013translation\030" + "\002 \001(\0132\030.viam.app.v1.TranslationR\013transla" + "tion\022:\n\013orientation\030\003 \001(\0132\030.viam.app.v1." + "OrientationR\013orientation\"7\n\013Translation\022" + "\014\n\001x\030\001 \001(\001R\001x\022\014\n\001y\030\002 \001(\001R\001y\022\014\n\001z\030\003 \001(\001R\001" + "z\"\320\007\n\013Orientation\022O\n\016no_orientation\030\001 \001(" + "\0132&.viam.app.v1.Orientation.NoOrientatio" + "nH\000R\rnoOrientation\022Z\n\016vector_radians\030\002 \001" + "(\01321.viam.app.v1.Orientation.Orientation" + "VectorRadiansH\000R\rvectorRadians\022Z\n\016vector" + "_degrees\030\003 \001(\01321.viam.app.v1.Orientation" + ".OrientationVectorDegreesH\000R\rvectorDegre" + "es\022I\n\014euler_angles\030\004 \001(\0132$.viam.app.v1.O" + "rientation.EulerAnglesH\000R\013eulerAngles\022F\n" + "\013axis_angles\030\005 \001(\0132#.viam.app.v1.Orienta" + "tion.AxisAnglesH\000R\naxisAngles\022E\n\nquatern" + "ion\030\006 \001(\0132#.viam.app.v1.Orientation.Quat" + "ernionH\000R\nquaternion\032\017\n\rNoOrientation\032j\n" + "\030OrientationVectorRadians\022$\n\005theta\030\001 \001(\001" + "B\016\232\204\236\003\tjson:\"th\"R\005theta\022\014\n\001x\030\002 \001(\001R\001x\022\014\n" + "\001y\030\003 \001(\001R\001y\022\014\n\001z\030\004 \001(\001R\001z\032j\n\030Orientation" + "VectorDegrees\022$\n\005theta\030\001 \001(\001B\016\232\204\236\003\tjson:" + "\"th\"R\005theta\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001y\030\003 \001(\001R\001y\022" + "\014\n\001z\030\004 \001(\001R\001z\032I\n\013EulerAngles\022\022\n\004roll\030\001 \001" + "(\001R\004roll\022\024\n\005pitch\030\002 \001(\001R\005pitch\022\020\n\003yaw\030\003 " + "\001(\001R\003yaw\032\\\n\nAxisAngles\022$\n\005theta\030\001 \001(\001B\016\232" + "\204\236\003\tjson:\"th\"R\005theta\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001y\030" + "\003 \001(\001R\001y\022\014\n\001z\030\004 \001(\001R\001z\032D\n\nQuaternion\022\014\n\001" + "w\030\001 \001(\001R\001w\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001y\030\003 \001(\001R\001y\022\014" + "\n\001z\030\004 \001(\001R\001zB\006\n\004type\"\365\003\n\014RemoteConfig\022\022\n" + "\004name\030\001 \001(\tR\004name\022\030\n\007address\030\002 \001(\tR\007addr" + "ess\022(\n\005frame\030\003 \001(\0132\022.viam.app.v1.FrameR\005" + "frame\022+\n\004auth\030\004 \001(\0132\027.viam.app.v1.Remote" + "AuthR\004auth\022\035\n\nmanaged_by\030\005 \001(\tR\tmanagedB" + "y\022\032\n\010insecure\030\006 \001(\010R\010insecure\022U\n\031connect" + "ion_check_interval\030\007 \001(\0132\031.google.protob" + "uf.DurationR\027connectionCheckInterval\022H\n\022" + "reconnect_interval\030\010 \001(\0132\031.google.protob" + "uf.DurationR\021reconnectInterval\022l\n\017servic" + "e_configs\030\t \003(\0132\'.viam.app.v1.ResourceLe" + "velServiceConfigB\032\232\204\236\003\025json:\"service_con" + "fig\"R\016serviceConfigs\022\026\n\006secret\030\n \001(\tR\006se" + "cret\"\306\001\n\nRemoteAuth\022E\n\013credentials\030\001 \001(\013" + "2#.viam.app.v1.RemoteAuth.CredentialsR\013c" + "redentials\022\026\n\006entity\030\002 \001(\tR\006entity\032Y\n\013Cr" + "edentials\0220\n\004type\030\001 \001(\0162\034.viam.app.v1.Cr" + "edentialsTypeR\004type\022\030\n\007payload\030\002 \001(\tR\007pa" + "yload\"~\n\tAgentInfo\022\022\n\004host\030\001 \001(\tR\004host\022\016" + "\n\002os\030\002 \001(\tR\002os\022\020\n\003ips\030\003 \003(\tR\003ips\022\030\n\007vers" + "ion\030\004 \001(\tR\007version\022!\n\014git_revision\030\005 \001(\t" + "R\013gitRevision\"j\n\rConfigRequest\022\016\n\002id\030\001 \001" + "(\tR\002id\022:\n\nagent_info\030\002 \001(\0132\026.viam.app.v1" + ".AgentInfoH\000R\tagentInfo\210\001\001B\r\n\013_agent_inf" + "o\"B\n\016ConfigResponse\0220\n\006config\030\001 \001(\0132\030.vi" + "am.app.v1.RobotConfigR\006config\"$\n\022Certifi" + "cateRequest\022\016\n\002id\030\001 \001(\tR\002id\"v\n\023Certifica" + "teResponse\022\016\n\002id\030\001 \001(\tR\002id\022\'\n\017tls_certif" + "icate\030\002 \001(\tR\016tlsCertificate\022&\n\017tls_priva" + "te_key\030\003 \001(\tR\rtlsPrivateKey\"G\n\nLogReques" + "t\022\016\n\002id\030\001 \001(\tR\002id\022)\n\004logs\030\002 \003(\0132\025.viam.a" + "pp.v1.LogEntryR\004logs\"\r\n\013LogResponse\"%\n\023N" + "eedsRestartRequest\022\016\n\002id\030\001 \001(\tR\002id\"\232\001\n\024N" + "eedsRestartResponse\022\016\n\002id\030\001 \001(\tR\002id\022!\n\014m" + "ust_restart\030\002 \001(\010R\013mustRestart\022O\n\026restar" + "t_check_interval\030\003 \001(\0132\031.google.protobuf" + ".DurationR\024restartCheckInterval*\277\001\n\017Cred" + "entialsType\022 \n\034CREDENTIALS_TYPE_UNSPECIF" + "IED\020\000\022\035\n\031CREDENTIALS_TYPE_INTERNAL\020\001\022\034\n\030" + "CREDENTIALS_TYPE_API_KEY\020\002\022!\n\035CREDENTIAL" + "S_TYPE_ROBOT_SECRET\020\003\022*\n&CREDENTIALS_TYP" + "E_ROBOT_LOCATION_SECRET\020\0042\262\002\n\014RobotServi" + "ce\022A\n\006Config\022\032.viam.app.v1.ConfigRequest" + "\032\033.viam.app.v1.ConfigResponse\022P\n\013Certifi" + "cate\022\037.viam.app.v1.CertificateRequest\032 ." + "viam.app.v1.CertificateResponse\0228\n\003Log\022\027" + ".viam.app.v1.LogRequest\032\030.viam.app.v1.Lo" + "gResponse\022S\n\014NeedsRestart\022 .viam.app.v1." + "NeedsRestartRequest\032!.viam.app.v1.NeedsR" + "estartResponseB\030Z\026go.viam.com/api/app/v1" + "b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2frobot_2eproto_deps[4] = { + &::descriptor_table_app_2fv1_2fapp_2eproto, + &::descriptor_table_google_2fprotobuf_2fduration_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + &::descriptor_table_tagger_2fv1_2ftagger_2eproto, +}; +static ::_pbi::once_flag descriptor_table_app_2fv1_2frobot_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_app_2fv1_2frobot_2eproto = { + false, false, 5168, descriptor_table_protodef_app_2fv1_2frobot_2eproto, + "app/v1/robot.proto", + &descriptor_table_app_2fv1_2frobot_2eproto_once, descriptor_table_app_2fv1_2frobot_2eproto_deps, 4, 30, + schemas, file_default_instances, TableStruct_app_2fv1_2frobot_2eproto::offsets, + file_level_metadata_app_2fv1_2frobot_2eproto, file_level_enum_descriptors_app_2fv1_2frobot_2eproto, + file_level_service_descriptors_app_2fv1_2frobot_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_app_2fv1_2frobot_2eproto_getter() { + return &descriptor_table_app_2fv1_2frobot_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_app_2fv1_2frobot_2eproto(&descriptor_table_app_2fv1_2frobot_2eproto); +namespace viam { +namespace app { +namespace v1 { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CredentialsType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_app_2fv1_2frobot_2eproto); + return file_level_enum_descriptors_app_2fv1_2frobot_2eproto[0]; +} +bool CredentialsType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + + +// =================================================================== + +class RobotConfig::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static const ::viam::app::v1::CloudConfig& cloud(const RobotConfig* msg); + static const ::viam::app::v1::NetworkConfig& network(const RobotConfig* msg); + static void set_has_network(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::viam::app::v1::AuthConfig& auth(const RobotConfig* msg); + static void set_has_auth(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_debug(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } +}; + +const ::viam::app::v1::CloudConfig& +RobotConfig::_Internal::cloud(const RobotConfig* msg) { + return *msg->_impl_.cloud_; +} +const ::viam::app::v1::NetworkConfig& +RobotConfig::_Internal::network(const RobotConfig* msg) { + return *msg->_impl_.network_; +} +const ::viam::app::v1::AuthConfig& +RobotConfig::_Internal::auth(const RobotConfig* msg) { + return *msg->_impl_.auth_; +} +RobotConfig::RobotConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.RobotConfig) +} +RobotConfig::RobotConfig(const RobotConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RobotConfig* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.remotes_){from._impl_.remotes_} + , decltype(_impl_.components_){from._impl_.components_} + , decltype(_impl_.processes_){from._impl_.processes_} + , decltype(_impl_.services_){from._impl_.services_} + , decltype(_impl_.cloud_){nullptr} + , decltype(_impl_.network_){nullptr} + , decltype(_impl_.auth_){nullptr} + , decltype(_impl_.debug_){}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_cloud()) { + _this->_impl_.cloud_ = new ::viam::app::v1::CloudConfig(*from._impl_.cloud_); + } + if (from._internal_has_network()) { + _this->_impl_.network_ = new ::viam::app::v1::NetworkConfig(*from._impl_.network_); + } + if (from._internal_has_auth()) { + _this->_impl_.auth_ = new ::viam::app::v1::AuthConfig(*from._impl_.auth_); + } + _this->_impl_.debug_ = from._impl_.debug_; + // @@protoc_insertion_point(copy_constructor:viam.app.v1.RobotConfig) +} + +inline void RobotConfig::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.remotes_){arena} + , decltype(_impl_.components_){arena} + , decltype(_impl_.processes_){arena} + , decltype(_impl_.services_){arena} + , decltype(_impl_.cloud_){nullptr} + , decltype(_impl_.network_){nullptr} + , decltype(_impl_.auth_){nullptr} + , decltype(_impl_.debug_){false} + }; +} + +RobotConfig::~RobotConfig() { + // @@protoc_insertion_point(destructor:viam.app.v1.RobotConfig) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RobotConfig::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.remotes_.~RepeatedPtrField(); + _impl_.components_.~RepeatedPtrField(); + _impl_.processes_.~RepeatedPtrField(); + _impl_.services_.~RepeatedPtrField(); + if (this != internal_default_instance()) delete _impl_.cloud_; + if (this != internal_default_instance()) delete _impl_.network_; + if (this != internal_default_instance()) delete _impl_.auth_; +} + +void RobotConfig::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RobotConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.RobotConfig) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.remotes_.Clear(); + _impl_.components_.Clear(); + _impl_.processes_.Clear(); + _impl_.services_.Clear(); + if (GetArenaForAllocation() == nullptr && _impl_.cloud_ != nullptr) { + delete _impl_.cloud_; + } + _impl_.cloud_ = nullptr; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(_impl_.network_ != nullptr); + _impl_.network_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(_impl_.auth_ != nullptr); + _impl_.auth_->Clear(); + } + } + _impl_.debug_ = false; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RobotConfig::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .viam.app.v1.CloudConfig cloud = 1 [json_name = "cloud"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_cloud(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.RemoteConfig remotes = 2 [json_name = "remotes"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_remotes(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.ComponentConfig components = 3 [json_name = "components"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_components(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.ProcessConfig processes = 4 [json_name = "processes"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_processes(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.ServiceConfig services = 5 [json_name = "services"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_services(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); + } else + goto handle_unusual; + continue; + // optional .viam.app.v1.NetworkConfig network = 6 [json_name = "network"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_network(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional .viam.app.v1.AuthConfig auth = 7 [json_name = "auth"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_auth(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional bool debug = 8 [json_name = "debug"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { + _Internal::set_has_debug(&has_bits); + _impl_.debug_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + _impl_._has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* RobotConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RobotConfig) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.v1.CloudConfig cloud = 1 [json_name = "cloud"]; + if (this->_internal_has_cloud()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::cloud(this), + _Internal::cloud(this).GetCachedSize(), target, stream); + } + + // repeated .viam.app.v1.RemoteConfig remotes = 2 [json_name = "remotes"]; + for (unsigned i = 0, + n = static_cast(this->_internal_remotes_size()); i < n; i++) { + const auto& repfield = this->_internal_remotes(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + // repeated .viam.app.v1.ComponentConfig components = 3 [json_name = "components"]; + for (unsigned i = 0, + n = static_cast(this->_internal_components_size()); i < n; i++) { + const auto& repfield = this->_internal_components(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); + } + + // repeated .viam.app.v1.ProcessConfig processes = 4 [json_name = "processes"]; + for (unsigned i = 0, + n = static_cast(this->_internal_processes_size()); i < n; i++) { + const auto& repfield = this->_internal_processes(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); + } + + // repeated .viam.app.v1.ServiceConfig services = 5 [json_name = "services"]; + for (unsigned i = 0, + n = static_cast(this->_internal_services_size()); i < n; i++) { + const auto& repfield = this->_internal_services(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream); + } + + // optional .viam.app.v1.NetworkConfig network = 6 [json_name = "network"]; + if (_internal_has_network()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::network(this), + _Internal::network(this).GetCachedSize(), target, stream); + } + + // optional .viam.app.v1.AuthConfig auth = 7 [json_name = "auth"]; + if (_internal_has_auth()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::auth(this), + _Internal::auth(this).GetCachedSize(), target, stream); + } + + // optional bool debug = 8 [json_name = "debug"]; + if (_internal_has_debug()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(8, this->_internal_debug(), 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.RobotConfig) + return target; +} + +size_t RobotConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RobotConfig) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.app.v1.RemoteConfig remotes = 2 [json_name = "remotes"]; + total_size += 1UL * this->_internal_remotes_size(); + for (const auto& msg : this->_impl_.remotes_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated .viam.app.v1.ComponentConfig components = 3 [json_name = "components"]; + total_size += 1UL * this->_internal_components_size(); + for (const auto& msg : this->_impl_.components_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated .viam.app.v1.ProcessConfig processes = 4 [json_name = "processes"]; + total_size += 1UL * this->_internal_processes_size(); + for (const auto& msg : this->_impl_.processes_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated .viam.app.v1.ServiceConfig services = 5 [json_name = "services"]; + total_size += 1UL * this->_internal_services_size(); + for (const auto& msg : this->_impl_.services_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // .viam.app.v1.CloudConfig cloud = 1 [json_name = "cloud"]; + if (this->_internal_has_cloud()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.cloud_); + } + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + // optional .viam.app.v1.NetworkConfig network = 6 [json_name = "network"]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.network_); + } + + // optional .viam.app.v1.AuthConfig auth = 7 [json_name = "auth"]; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.auth_); + } + + // optional bool debug = 8 [json_name = "debug"]; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + 1; + } + + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RobotConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RobotConfig::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RobotConfig::GetClassData() const { return &_class_data_; } + + +void RobotConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RobotConfig) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.remotes_.MergeFrom(from._impl_.remotes_); + _this->_impl_.components_.MergeFrom(from._impl_.components_); + _this->_impl_.processes_.MergeFrom(from._impl_.processes_); + _this->_impl_.services_.MergeFrom(from._impl_.services_); + if (from._internal_has_cloud()) { + _this->_internal_mutable_cloud()->::viam::app::v1::CloudConfig::MergeFrom( + from._internal_cloud()); + } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + _this->_internal_mutable_network()->::viam::app::v1::NetworkConfig::MergeFrom( + from._internal_network()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_auth()->::viam::app::v1::AuthConfig::MergeFrom( + from._internal_auth()); + } + if (cached_has_bits & 0x00000004u) { + _this->_impl_.debug_ = from._impl_.debug_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RobotConfig::CopyFrom(const RobotConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.RobotConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RobotConfig::IsInitialized() const { + return true; +} + +void RobotConfig::InternalSwap(RobotConfig* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.remotes_.InternalSwap(&other->_impl_.remotes_); + _impl_.components_.InternalSwap(&other->_impl_.components_); + _impl_.processes_.InternalSwap(&other->_impl_.processes_); + _impl_.services_.InternalSwap(&other->_impl_.services_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.debug_) + + sizeof(RobotConfig::_impl_.debug_) + - PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.cloud_)>( + reinterpret_cast(&_impl_.cloud_), + reinterpret_cast(&other->_impl_.cloud_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RobotConfig::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[0]); +} + +// =================================================================== + +class CloudConfig::_Internal { + public: +}; + +CloudConfig::CloudConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.CloudConfig) +} +CloudConfig::CloudConfig(const CloudConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + CloudConfig* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.fqdn_){} + , decltype(_impl_.local_fqdn_){} + , decltype(_impl_.managed_by_){} + , decltype(_impl_.signaling_address_){} + , decltype(_impl_.location_secret_){} + , decltype(_impl_.secret_){} + , decltype(_impl_.signaling_insecure_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + _impl_.fqdn_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fqdn_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_fqdn().empty()) { + _this->_impl_.fqdn_.Set(from._internal_fqdn(), + _this->GetArenaForAllocation()); + } + _impl_.local_fqdn_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.local_fqdn_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_local_fqdn().empty()) { + _this->_impl_.local_fqdn_.Set(from._internal_local_fqdn(), + _this->GetArenaForAllocation()); + } + _impl_.managed_by_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.managed_by_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_managed_by().empty()) { + _this->_impl_.managed_by_.Set(from._internal_managed_by(), + _this->GetArenaForAllocation()); + } + _impl_.signaling_address_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.signaling_address_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_signaling_address().empty()) { + _this->_impl_.signaling_address_.Set(from._internal_signaling_address(), + _this->GetArenaForAllocation()); + } + _impl_.location_secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_secret().empty()) { + _this->_impl_.location_secret_.Set(from._internal_location_secret(), + _this->GetArenaForAllocation()); + } + _impl_.secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_secret().empty()) { + _this->_impl_.secret_.Set(from._internal_secret(), + _this->GetArenaForAllocation()); + } + _this->_impl_.signaling_insecure_ = from._impl_.signaling_insecure_; + // @@protoc_insertion_point(copy_constructor:viam.app.v1.CloudConfig) +} + +inline void CloudConfig::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.fqdn_){} + , decltype(_impl_.local_fqdn_){} + , decltype(_impl_.managed_by_){} + , decltype(_impl_.signaling_address_){} + , decltype(_impl_.location_secret_){} + , decltype(_impl_.secret_){} + , decltype(_impl_.signaling_insecure_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fqdn_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fqdn_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.local_fqdn_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.local_fqdn_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.managed_by_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.managed_by_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.signaling_address_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.signaling_address_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +CloudConfig::~CloudConfig() { + // @@protoc_insertion_point(destructor:viam.app.v1.CloudConfig) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CloudConfig::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); + _impl_.fqdn_.Destroy(); + _impl_.local_fqdn_.Destroy(); + _impl_.managed_by_.Destroy(); + _impl_.signaling_address_.Destroy(); + _impl_.location_secret_.Destroy(); + _impl_.secret_.Destroy(); +} + +void CloudConfig::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void CloudConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CloudConfig) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _impl_.fqdn_.ClearToEmpty(); + _impl_.local_fqdn_.ClearToEmpty(); + _impl_.managed_by_.ClearToEmpty(); + _impl_.signaling_address_.ClearToEmpty(); + _impl_.location_secret_.ClearToEmpty(); + _impl_.secret_.ClearToEmpty(); + _impl_.signaling_insecure_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CloudConfig::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CloudConfig.id")); + } else + goto handle_unusual; + continue; + // string fqdn = 2 [json_name = "fqdn"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_fqdn(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CloudConfig.fqdn")); + } else + goto handle_unusual; + continue; + // string local_fqdn = 3 [json_name = "localFqdn"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_local_fqdn(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CloudConfig.local_fqdn")); + } else + goto handle_unusual; + continue; + // string managed_by = 4 [json_name = "managedBy"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_managed_by(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CloudConfig.managed_by")); + } else + goto handle_unusual; + continue; + // string signaling_address = 5 [json_name = "signalingAddress"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_signaling_address(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CloudConfig.signaling_address")); + } else + goto handle_unusual; + continue; + // bool signaling_insecure = 6 [json_name = "signalingInsecure"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + _impl_.signaling_insecure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string location_secret = 7 [json_name = "locationSecret"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_location_secret(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CloudConfig.location_secret")); + } else + goto handle_unusual; + continue; + // string secret = 8 [json_name = "secret"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + auto str = _internal_mutable_secret(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CloudConfig.secret")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* CloudConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CloudConfig) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CloudConfig.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // string fqdn = 2 [json_name = "fqdn"]; + if (!this->_internal_fqdn().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_fqdn().data(), static_cast(this->_internal_fqdn().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CloudConfig.fqdn"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_fqdn(), target); + } + + // string local_fqdn = 3 [json_name = "localFqdn"]; + if (!this->_internal_local_fqdn().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_local_fqdn().data(), static_cast(this->_internal_local_fqdn().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CloudConfig.local_fqdn"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_local_fqdn(), target); + } + + // string managed_by = 4 [json_name = "managedBy"]; + if (!this->_internal_managed_by().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_managed_by().data(), static_cast(this->_internal_managed_by().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CloudConfig.managed_by"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_managed_by(), target); + } + + // string signaling_address = 5 [json_name = "signalingAddress"]; + if (!this->_internal_signaling_address().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_signaling_address().data(), static_cast(this->_internal_signaling_address().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CloudConfig.signaling_address"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_signaling_address(), target); + } + + // bool signaling_insecure = 6 [json_name = "signalingInsecure"]; + if (this->_internal_signaling_insecure() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_signaling_insecure(), target); + } + + // string location_secret = 7 [json_name = "locationSecret"]; + if (!this->_internal_location_secret().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_secret().data(), static_cast(this->_internal_location_secret().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CloudConfig.location_secret"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_location_secret(), target); + } + + // string secret = 8 [json_name = "secret"]; + if (!this->_internal_secret().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_secret().data(), static_cast(this->_internal_secret().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CloudConfig.secret"); + target = stream->WriteStringMaybeAliased( + 8, this->_internal_secret(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.CloudConfig) + return target; +} + +size_t CloudConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CloudConfig) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // string fqdn = 2 [json_name = "fqdn"]; + if (!this->_internal_fqdn().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_fqdn()); + } + + // string local_fqdn = 3 [json_name = "localFqdn"]; + if (!this->_internal_local_fqdn().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_local_fqdn()); + } + + // string managed_by = 4 [json_name = "managedBy"]; + if (!this->_internal_managed_by().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_managed_by()); + } + + // string signaling_address = 5 [json_name = "signalingAddress"]; + if (!this->_internal_signaling_address().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_signaling_address()); + } + + // string location_secret = 7 [json_name = "locationSecret"]; + if (!this->_internal_location_secret().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_secret()); + } + + // string secret = 8 [json_name = "secret"]; + if (!this->_internal_secret().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_secret()); + } + + // bool signaling_insecure = 6 [json_name = "signalingInsecure"]; + if (this->_internal_signaling_insecure() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CloudConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + CloudConfig::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CloudConfig::GetClassData() const { return &_class_data_; } + + +void CloudConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CloudConfig) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + if (!from._internal_fqdn().empty()) { + _this->_internal_set_fqdn(from._internal_fqdn()); + } + if (!from._internal_local_fqdn().empty()) { + _this->_internal_set_local_fqdn(from._internal_local_fqdn()); + } + if (!from._internal_managed_by().empty()) { + _this->_internal_set_managed_by(from._internal_managed_by()); + } + if (!from._internal_signaling_address().empty()) { + _this->_internal_set_signaling_address(from._internal_signaling_address()); + } + if (!from._internal_location_secret().empty()) { + _this->_internal_set_location_secret(from._internal_location_secret()); + } + if (!from._internal_secret().empty()) { + _this->_internal_set_secret(from._internal_secret()); + } + if (from._internal_signaling_insecure() != 0) { + _this->_internal_set_signaling_insecure(from._internal_signaling_insecure()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CloudConfig::CopyFrom(const CloudConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.CloudConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CloudConfig::IsInitialized() const { + return true; +} + +void CloudConfig::InternalSwap(CloudConfig* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.fqdn_, lhs_arena, + &other->_impl_.fqdn_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.local_fqdn_, lhs_arena, + &other->_impl_.local_fqdn_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.managed_by_, lhs_arena, + &other->_impl_.managed_by_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.signaling_address_, lhs_arena, + &other->_impl_.signaling_address_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.location_secret_, lhs_arena, + &other->_impl_.location_secret_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.secret_, lhs_arena, + &other->_impl_.secret_, rhs_arena + ); + swap(_impl_.signaling_insecure_, other->_impl_.signaling_insecure_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CloudConfig::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[1]); +} + +// =================================================================== + +class ComponentConfig::_Internal { + public: + static const ::viam::app::v1::Frame& frame(const ComponentConfig* msg); + static const ::PROTOBUF_NAMESPACE_ID::Struct& attributes(const ComponentConfig* msg); +}; + +const ::viam::app::v1::Frame& +ComponentConfig::_Internal::frame(const ComponentConfig* msg) { + return *msg->_impl_.frame_; +} +const ::PROTOBUF_NAMESPACE_ID::Struct& +ComponentConfig::_Internal::attributes(const ComponentConfig* msg) { + return *msg->_impl_.attributes_; +} +void ComponentConfig::clear_attributes() { + if (GetArenaForAllocation() == nullptr && _impl_.attributes_ != nullptr) { + delete _impl_.attributes_; + } + _impl_.attributes_ = nullptr; +} +ComponentConfig::ComponentConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.ComponentConfig) +} +ComponentConfig::ComponentConfig(const ComponentConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ComponentConfig* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.depends_on_){from._impl_.depends_on_} + , decltype(_impl_.service_configs_){from._impl_.service_configs_} + , decltype(_impl_.name_){} + , decltype(_impl_.namespace__){} + , decltype(_impl_.type_){} + , decltype(_impl_.model_){} + , decltype(_impl_.frame_){nullptr} + , decltype(_impl_.attributes_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.namespace__.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.namespace__.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_namespace_().empty()) { + _this->_impl_.namespace__.Set(from._internal_namespace_(), + _this->GetArenaForAllocation()); + } + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_type().empty()) { + _this->_impl_.type_.Set(from._internal_type(), + _this->GetArenaForAllocation()); + } + _impl_.model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model().empty()) { + _this->_impl_.model_.Set(from._internal_model(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_frame()) { + _this->_impl_.frame_ = new ::viam::app::v1::Frame(*from._impl_.frame_); + } + if (from._internal_has_attributes()) { + _this->_impl_.attributes_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.attributes_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ComponentConfig) +} + +inline void ComponentConfig::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.depends_on_){arena} + , decltype(_impl_.service_configs_){arena} + , decltype(_impl_.name_){} + , decltype(_impl_.namespace__){} + , decltype(_impl_.type_){} + , decltype(_impl_.model_){} + , decltype(_impl_.frame_){nullptr} + , decltype(_impl_.attributes_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.namespace__.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.namespace__.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ComponentConfig::~ComponentConfig() { + // @@protoc_insertion_point(destructor:viam.app.v1.ComponentConfig) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ComponentConfig::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.depends_on_.~RepeatedPtrField(); + _impl_.service_configs_.~RepeatedPtrField(); + _impl_.name_.Destroy(); + _impl_.namespace__.Destroy(); + _impl_.type_.Destroy(); + _impl_.model_.Destroy(); + if (this != internal_default_instance()) delete _impl_.frame_; + if (this != internal_default_instance()) delete _impl_.attributes_; +} + +void ComponentConfig::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ComponentConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ComponentConfig) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.depends_on_.Clear(); + _impl_.service_configs_.Clear(); + _impl_.name_.ClearToEmpty(); + _impl_.namespace__.ClearToEmpty(); + _impl_.type_.ClearToEmpty(); + _impl_.model_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.frame_ != nullptr) { + delete _impl_.frame_; + } + _impl_.frame_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.attributes_ != nullptr) { + delete _impl_.attributes_; + } + _impl_.attributes_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ComponentConfig::_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.app.v1.ComponentConfig.name")); + } else + goto handle_unusual; + continue; + // string namespace = 2 [json_name = "namespace"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_namespace_(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ComponentConfig.namespace")); + } else + goto handle_unusual; + continue; + // string type = 3 [json_name = "type"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ComponentConfig.type")); + } else + goto handle_unusual; + continue; + // string model = 4 [json_name = "model"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_model(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ComponentConfig.model")); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Frame frame = 5 [json_name = "frame"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_frame(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated string depends_on = 6 [json_name = "dependsOn"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_depends_on(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ComponentConfig.depends_on")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 7 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_service_configs(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr)); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct attributes = 8 [json_name = "attributes"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_attributes(), 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* ComponentConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ComponentConfig) + 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.app.v1.ComponentConfig.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string namespace = 2 [json_name = "namespace"]; + if (!this->_internal_namespace_().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_namespace_().data(), static_cast(this->_internal_namespace_().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ComponentConfig.namespace"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_namespace_(), target); + } + + // string type = 3 [json_name = "type"]; + if (!this->_internal_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ComponentConfig.type"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_type(), target); + } + + // string model = 4 [json_name = "model"]; + if (!this->_internal_model().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_model().data(), static_cast(this->_internal_model().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ComponentConfig.model"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_model(), target); + } + + // .viam.app.v1.Frame frame = 5 [json_name = "frame"]; + if (this->_internal_has_frame()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::frame(this), + _Internal::frame(this).GetCachedSize(), target, stream); + } + + // repeated string depends_on = 6 [json_name = "dependsOn"]; + for (int i = 0, n = this->_internal_depends_on_size(); i < n; i++) { + const auto& s = this->_internal_depends_on(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ComponentConfig.depends_on"); + target = stream->WriteString(6, s, target); + } + + // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 7 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; + for (unsigned i = 0, + n = static_cast(this->_internal_service_configs_size()); i < n; i++) { + const auto& repfield = this->_internal_service_configs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, repfield, repfield.GetCachedSize(), target, stream); + } + + // .google.protobuf.Struct attributes = 8 [json_name = "attributes"]; + if (this->_internal_has_attributes()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::attributes(this), + _Internal::attributes(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.ComponentConfig) + return target; +} + +size_t ComponentConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ComponentConfig) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string depends_on = 6 [json_name = "dependsOn"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.depends_on_.size()); + for (int i = 0, n = _impl_.depends_on_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.depends_on_.Get(i)); + } + + // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 7 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; + total_size += 1UL * this->_internal_service_configs_size(); + for (const auto& msg : this->_impl_.service_configs_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // string namespace = 2 [json_name = "namespace"]; + if (!this->_internal_namespace_().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_namespace_()); + } + + // string type = 3 [json_name = "type"]; + if (!this->_internal_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); + } + + // string model = 4 [json_name = "model"]; + if (!this->_internal_model().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_model()); + } + + // .viam.app.v1.Frame frame = 5 [json_name = "frame"]; + if (this->_internal_has_frame()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.frame_); + } + + // .google.protobuf.Struct attributes = 8 [json_name = "attributes"]; + if (this->_internal_has_attributes()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.attributes_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ComponentConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ComponentConfig::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ComponentConfig::GetClassData() const { return &_class_data_; } + + +void ComponentConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ComponentConfig) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.depends_on_.MergeFrom(from._impl_.depends_on_); + _this->_impl_.service_configs_.MergeFrom(from._impl_.service_configs_); + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_namespace_().empty()) { + _this->_internal_set_namespace_(from._internal_namespace_()); + } + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } + if (!from._internal_model().empty()) { + _this->_internal_set_model(from._internal_model()); + } + if (from._internal_has_frame()) { + _this->_internal_mutable_frame()->::viam::app::v1::Frame::MergeFrom( + from._internal_frame()); + } + if (from._internal_has_attributes()) { + _this->_internal_mutable_attributes()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_attributes()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ComponentConfig::CopyFrom(const ComponentConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ComponentConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ComponentConfig::IsInitialized() const { + return true; +} + +void ComponentConfig::InternalSwap(ComponentConfig* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.depends_on_.InternalSwap(&other->_impl_.depends_on_); + _impl_.service_configs_.InternalSwap(&other->_impl_.service_configs_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.namespace__, lhs_arena, + &other->_impl_.namespace__, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.type_, lhs_arena, + &other->_impl_.type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.model_, lhs_arena, + &other->_impl_.model_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.attributes_) + + sizeof(ComponentConfig::_impl_.attributes_) + - PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.frame_)>( + reinterpret_cast(&_impl_.frame_), + reinterpret_cast(&other->_impl_.frame_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ComponentConfig::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[2]); +} + +// =================================================================== + +class ResourceLevelServiceConfig::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& attributes(const ResourceLevelServiceConfig* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +ResourceLevelServiceConfig::_Internal::attributes(const ResourceLevelServiceConfig* msg) { + return *msg->_impl_.attributes_; +} +void ResourceLevelServiceConfig::clear_attributes() { + if (GetArenaForAllocation() == nullptr && _impl_.attributes_ != nullptr) { + delete _impl_.attributes_; + } + _impl_.attributes_ = nullptr; +} +ResourceLevelServiceConfig::ResourceLevelServiceConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.ResourceLevelServiceConfig) +} +ResourceLevelServiceConfig::ResourceLevelServiceConfig(const ResourceLevelServiceConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ResourceLevelServiceConfig* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.type_){} + , decltype(_impl_.attributes_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_type().empty()) { + _this->_impl_.type_.Set(from._internal_type(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_attributes()) { + _this->_impl_.attributes_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.attributes_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ResourceLevelServiceConfig) +} + +inline void ResourceLevelServiceConfig::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.type_){} + , decltype(_impl_.attributes_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ResourceLevelServiceConfig::~ResourceLevelServiceConfig() { + // @@protoc_insertion_point(destructor:viam.app.v1.ResourceLevelServiceConfig) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ResourceLevelServiceConfig::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.type_.Destroy(); + if (this != internal_default_instance()) delete _impl_.attributes_; +} + +void ResourceLevelServiceConfig::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ResourceLevelServiceConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ResourceLevelServiceConfig) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.type_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.attributes_ != nullptr) { + delete _impl_.attributes_; + } + _impl_.attributes_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResourceLevelServiceConfig::_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 type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ResourceLevelServiceConfig.type")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct attributes = 2 [json_name = "attributes"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_attributes(), 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* ResourceLevelServiceConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ResourceLevelServiceConfig) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string type = 1 [json_name = "type"]; + if (!this->_internal_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ResourceLevelServiceConfig.type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_type(), target); + } + + // .google.protobuf.Struct attributes = 2 [json_name = "attributes"]; + if (this->_internal_has_attributes()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::attributes(this), + _Internal::attributes(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.ResourceLevelServiceConfig) + return target; +} + +size_t ResourceLevelServiceConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ResourceLevelServiceConfig) + 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 type = 1 [json_name = "type"]; + if (!this->_internal_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); + } + + // .google.protobuf.Struct attributes = 2 [json_name = "attributes"]; + if (this->_internal_has_attributes()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.attributes_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceLevelServiceConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ResourceLevelServiceConfig::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceLevelServiceConfig::GetClassData() const { return &_class_data_; } + + +void ResourceLevelServiceConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ResourceLevelServiceConfig) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } + if (from._internal_has_attributes()) { + _this->_internal_mutable_attributes()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_attributes()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ResourceLevelServiceConfig::CopyFrom(const ResourceLevelServiceConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ResourceLevelServiceConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResourceLevelServiceConfig::IsInitialized() const { + return true; +} + +void ResourceLevelServiceConfig::InternalSwap(ResourceLevelServiceConfig* 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( + &_impl_.type_, lhs_arena, + &other->_impl_.type_, rhs_arena + ); + swap(_impl_.attributes_, other->_impl_.attributes_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ResourceLevelServiceConfig::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[3]); +} + +// =================================================================== + +class ProcessConfig::_Internal { + public: +}; + +ProcessConfig::ProcessConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.ProcessConfig) +} +ProcessConfig::ProcessConfig(const ProcessConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ProcessConfig* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.args_){from._impl_.args_} + , decltype(_impl_.id_){} + , decltype(_impl_.name_){} + , decltype(_impl_.cwd_){} + , decltype(_impl_.one_shot_){} + , decltype(_impl_.log_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.cwd_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.cwd_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_cwd().empty()) { + _this->_impl_.cwd_.Set(from._internal_cwd(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.one_shot_, &from._impl_.one_shot_, + static_cast(reinterpret_cast(&_impl_.log_) - + reinterpret_cast(&_impl_.one_shot_)) + sizeof(_impl_.log_)); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ProcessConfig) +} + +inline void ProcessConfig::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.args_){arena} + , decltype(_impl_.id_){} + , decltype(_impl_.name_){} + , decltype(_impl_.cwd_){} + , decltype(_impl_.one_shot_){false} + , decltype(_impl_.log_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.cwd_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.cwd_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ProcessConfig::~ProcessConfig() { + // @@protoc_insertion_point(destructor:viam.app.v1.ProcessConfig) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ProcessConfig::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.args_.~RepeatedPtrField(); + _impl_.id_.Destroy(); + _impl_.name_.Destroy(); + _impl_.cwd_.Destroy(); +} + +void ProcessConfig::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ProcessConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ProcessConfig) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.args_.Clear(); + _impl_.id_.ClearToEmpty(); + _impl_.name_.ClearToEmpty(); + _impl_.cwd_.ClearToEmpty(); + ::memset(&_impl_.one_shot_, 0, static_cast( + reinterpret_cast(&_impl_.log_) - + reinterpret_cast(&_impl_.one_shot_)) + sizeof(_impl_.log_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ProcessConfig::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ProcessConfig.id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ProcessConfig.name")); + } else + goto handle_unusual; + continue; + // repeated string args = 3 [json_name = "args"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_args(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ProcessConfig.args")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // string cwd = 4 [json_name = "cwd"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_cwd(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ProcessConfig.cwd")); + } else + goto handle_unusual; + continue; + // bool one_shot = 5 [json_name = "oneShot"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + _impl_.one_shot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool log = 6 [json_name = "log"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + _impl_.log_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ProcessConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ProcessConfig) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ProcessConfig.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // string name = 2 [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.app.v1.ProcessConfig.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); + } + + // repeated string args = 3 [json_name = "args"]; + for (int i = 0, n = this->_internal_args_size(); i < n; i++) { + const auto& s = this->_internal_args(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ProcessConfig.args"); + target = stream->WriteString(3, s, target); + } + + // string cwd = 4 [json_name = "cwd"]; + if (!this->_internal_cwd().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_cwd().data(), static_cast(this->_internal_cwd().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ProcessConfig.cwd"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_cwd(), target); + } + + // bool one_shot = 5 [json_name = "oneShot"]; + if (this->_internal_one_shot() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_one_shot(), target); + } + + // bool log = 6 [json_name = "log"]; + if (this->_internal_log() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_log(), 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.ProcessConfig) + return target; +} + +size_t ProcessConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ProcessConfig) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string args = 3 [json_name = "args"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.args_.size()); + for (int i = 0, n = _impl_.args_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.args_.Get(i)); + } + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // string name = 2 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // string cwd = 4 [json_name = "cwd"]; + if (!this->_internal_cwd().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_cwd()); + } + + // bool one_shot = 5 [json_name = "oneShot"]; + if (this->_internal_one_shot() != 0) { + total_size += 1 + 1; + } + + // bool log = 6 [json_name = "log"]; + if (this->_internal_log() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProcessConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ProcessConfig::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProcessConfig::GetClassData() const { return &_class_data_; } + + +void ProcessConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ProcessConfig) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.args_.MergeFrom(from._impl_.args_); + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_cwd().empty()) { + _this->_internal_set_cwd(from._internal_cwd()); + } + if (from._internal_one_shot() != 0) { + _this->_internal_set_one_shot(from._internal_one_shot()); + } + if (from._internal_log() != 0) { + _this->_internal_set_log(from._internal_log()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ProcessConfig::CopyFrom(const ProcessConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ProcessConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProcessConfig::IsInitialized() const { + return true; +} + +void ProcessConfig::InternalSwap(ProcessConfig* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.args_.InternalSwap(&other->_impl_.args_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.cwd_, lhs_arena, + &other->_impl_.cwd_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.log_) + + sizeof(ProcessConfig::_impl_.log_) + - PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.one_shot_)>( + reinterpret_cast(&_impl_.one_shot_), + reinterpret_cast(&other->_impl_.one_shot_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ProcessConfig::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[4]); +} + +// =================================================================== + +class ServiceConfig::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& attributes(const ServiceConfig* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +ServiceConfig::_Internal::attributes(const ServiceConfig* msg) { + return *msg->_impl_.attributes_; +} +void ServiceConfig::clear_attributes() { + if (GetArenaForAllocation() == nullptr && _impl_.attributes_ != nullptr) { + delete _impl_.attributes_; + } + _impl_.attributes_ = nullptr; +} +ServiceConfig::ServiceConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.ServiceConfig) +} +ServiceConfig::ServiceConfig(const ServiceConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ServiceConfig* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.namespace__){} + , decltype(_impl_.type_){} + , decltype(_impl_.attributes_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.namespace__.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.namespace__.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_namespace_().empty()) { + _this->_impl_.namespace__.Set(from._internal_namespace_(), + _this->GetArenaForAllocation()); + } + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_type().empty()) { + _this->_impl_.type_.Set(from._internal_type(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_attributes()) { + _this->_impl_.attributes_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.attributes_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ServiceConfig) +} + +inline void ServiceConfig::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.namespace__){} + , decltype(_impl_.type_){} + , decltype(_impl_.attributes_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.namespace__.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.namespace__.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ServiceConfig::~ServiceConfig() { + // @@protoc_insertion_point(destructor:viam.app.v1.ServiceConfig) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ServiceConfig::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.namespace__.Destroy(); + _impl_.type_.Destroy(); + if (this != internal_default_instance()) delete _impl_.attributes_; +} + +void ServiceConfig::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ServiceConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ServiceConfig) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.namespace__.ClearToEmpty(); + _impl_.type_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.attributes_ != nullptr) { + delete _impl_.attributes_; + } + _impl_.attributes_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ServiceConfig::_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.app.v1.ServiceConfig.name")); + } else + goto handle_unusual; + continue; + // string namespace = 2 [json_name = "namespace"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_namespace_(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ServiceConfig.namespace")); + } else + goto handle_unusual; + continue; + // string type = 3 [json_name = "type"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ServiceConfig.type")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct attributes = 4 [json_name = "attributes"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_attributes(), 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* ServiceConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ServiceConfig) + 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.app.v1.ServiceConfig.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string namespace = 2 [json_name = "namespace"]; + if (!this->_internal_namespace_().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_namespace_().data(), static_cast(this->_internal_namespace_().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ServiceConfig.namespace"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_namespace_(), target); + } + + // string type = 3 [json_name = "type"]; + if (!this->_internal_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ServiceConfig.type"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_type(), target); + } + + // .google.protobuf.Struct attributes = 4 [json_name = "attributes"]; + if (this->_internal_has_attributes()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::attributes(this), + _Internal::attributes(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.ServiceConfig) + return target; +} + +size_t ServiceConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ServiceConfig) + 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 namespace = 2 [json_name = "namespace"]; + if (!this->_internal_namespace_().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_namespace_()); + } + + // string type = 3 [json_name = "type"]; + if (!this->_internal_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); + } + + // .google.protobuf.Struct attributes = 4 [json_name = "attributes"]; + if (this->_internal_has_attributes()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.attributes_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ServiceConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ServiceConfig::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ServiceConfig::GetClassData() const { return &_class_data_; } + + +void ServiceConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ServiceConfig) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_namespace_().empty()) { + _this->_internal_set_namespace_(from._internal_namespace_()); + } + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } + if (from._internal_has_attributes()) { + _this->_internal_mutable_attributes()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_attributes()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ServiceConfig::CopyFrom(const ServiceConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ServiceConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ServiceConfig::IsInitialized() const { + return true; +} + +void ServiceConfig::InternalSwap(ServiceConfig* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.namespace__, lhs_arena, + &other->_impl_.namespace__, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.type_, lhs_arena, + &other->_impl_.type_, rhs_arena + ); + swap(_impl_.attributes_, other->_impl_.attributes_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ServiceConfig::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[5]); +} + +// =================================================================== + +class NetworkConfig::_Internal { + public: +}; + +NetworkConfig::NetworkConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.NetworkConfig) +} +NetworkConfig::NetworkConfig(const NetworkConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + NetworkConfig* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.fqdn_){} + , decltype(_impl_.bind_address_){} + , decltype(_impl_.tls_cert_file_){} + , decltype(_impl_.tls_key_file_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.fqdn_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fqdn_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_fqdn().empty()) { + _this->_impl_.fqdn_.Set(from._internal_fqdn(), + _this->GetArenaForAllocation()); + } + _impl_.bind_address_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.bind_address_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_bind_address().empty()) { + _this->_impl_.bind_address_.Set(from._internal_bind_address(), + _this->GetArenaForAllocation()); + } + _impl_.tls_cert_file_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.tls_cert_file_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_tls_cert_file().empty()) { + _this->_impl_.tls_cert_file_.Set(from._internal_tls_cert_file(), + _this->GetArenaForAllocation()); + } + _impl_.tls_key_file_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.tls_key_file_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_tls_key_file().empty()) { + _this->_impl_.tls_key_file_.Set(from._internal_tls_key_file(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.NetworkConfig) +} + +inline void NetworkConfig::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.fqdn_){} + , decltype(_impl_.bind_address_){} + , decltype(_impl_.tls_cert_file_){} + , decltype(_impl_.tls_key_file_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.fqdn_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fqdn_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.bind_address_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.bind_address_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.tls_cert_file_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.tls_cert_file_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.tls_key_file_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.tls_key_file_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +NetworkConfig::~NetworkConfig() { + // @@protoc_insertion_point(destructor:viam.app.v1.NetworkConfig) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void NetworkConfig::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.fqdn_.Destroy(); + _impl_.bind_address_.Destroy(); + _impl_.tls_cert_file_.Destroy(); + _impl_.tls_key_file_.Destroy(); +} + +void NetworkConfig::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void NetworkConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.NetworkConfig) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.fqdn_.ClearToEmpty(); + _impl_.bind_address_.ClearToEmpty(); + _impl_.tls_cert_file_.ClearToEmpty(); + _impl_.tls_key_file_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NetworkConfig::_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 fqdn = 1 [json_name = "fqdn"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_fqdn(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NetworkConfig.fqdn")); + } else + goto handle_unusual; + continue; + // string bind_address = 2 [json_name = "bindAddress"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_bind_address(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NetworkConfig.bind_address")); + } else + goto handle_unusual; + continue; + // string tls_cert_file = 3 [json_name = "tlsCertFile"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_tls_cert_file(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NetworkConfig.tls_cert_file")); + } else + goto handle_unusual; + continue; + // string tls_key_file = 4 [json_name = "tlsKeyFile"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_tls_key_file(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NetworkConfig.tls_key_file")); + } 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* NetworkConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.NetworkConfig) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string fqdn = 1 [json_name = "fqdn"]; + if (!this->_internal_fqdn().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_fqdn().data(), static_cast(this->_internal_fqdn().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NetworkConfig.fqdn"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_fqdn(), target); + } + + // string bind_address = 2 [json_name = "bindAddress"]; + if (!this->_internal_bind_address().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_bind_address().data(), static_cast(this->_internal_bind_address().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NetworkConfig.bind_address"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_bind_address(), target); + } + + // string tls_cert_file = 3 [json_name = "tlsCertFile"]; + if (!this->_internal_tls_cert_file().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_tls_cert_file().data(), static_cast(this->_internal_tls_cert_file().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NetworkConfig.tls_cert_file"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_tls_cert_file(), target); + } + + // string tls_key_file = 4 [json_name = "tlsKeyFile"]; + if (!this->_internal_tls_key_file().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_tls_key_file().data(), static_cast(this->_internal_tls_key_file().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NetworkConfig.tls_key_file"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_tls_key_file(), 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.NetworkConfig) + return target; +} + +size_t NetworkConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.NetworkConfig) + 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 fqdn = 1 [json_name = "fqdn"]; + if (!this->_internal_fqdn().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_fqdn()); + } + + // string bind_address = 2 [json_name = "bindAddress"]; + if (!this->_internal_bind_address().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_bind_address()); + } + + // string tls_cert_file = 3 [json_name = "tlsCertFile"]; + if (!this->_internal_tls_cert_file().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_tls_cert_file()); + } + + // string tls_key_file = 4 [json_name = "tlsKeyFile"]; + if (!this->_internal_tls_key_file().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_tls_key_file()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NetworkConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + NetworkConfig::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NetworkConfig::GetClassData() const { return &_class_data_; } + + +void NetworkConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.NetworkConfig) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_fqdn().empty()) { + _this->_internal_set_fqdn(from._internal_fqdn()); + } + if (!from._internal_bind_address().empty()) { + _this->_internal_set_bind_address(from._internal_bind_address()); + } + if (!from._internal_tls_cert_file().empty()) { + _this->_internal_set_tls_cert_file(from._internal_tls_cert_file()); + } + if (!from._internal_tls_key_file().empty()) { + _this->_internal_set_tls_key_file(from._internal_tls_key_file()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void NetworkConfig::CopyFrom(const NetworkConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.NetworkConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NetworkConfig::IsInitialized() const { + return true; +} + +void NetworkConfig::InternalSwap(NetworkConfig* 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( + &_impl_.fqdn_, lhs_arena, + &other->_impl_.fqdn_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.bind_address_, lhs_arena, + &other->_impl_.bind_address_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.tls_cert_file_, lhs_arena, + &other->_impl_.tls_cert_file_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.tls_key_file_, lhs_arena, + &other->_impl_.tls_key_file_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata NetworkConfig::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[6]); +} + +// =================================================================== + +class AuthConfig::_Internal { + public: +}; + +AuthConfig::AuthConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.AuthConfig) +} +AuthConfig::AuthConfig(const AuthConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + AuthConfig* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.handlers_){from._impl_.handlers_} + , decltype(_impl_.tls_auth_entities_){from._impl_.tls_auth_entities_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.AuthConfig) +} + +inline void AuthConfig::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.handlers_){arena} + , decltype(_impl_.tls_auth_entities_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +AuthConfig::~AuthConfig() { + // @@protoc_insertion_point(destructor:viam.app.v1.AuthConfig) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void AuthConfig::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.handlers_.~RepeatedPtrField(); + _impl_.tls_auth_entities_.~RepeatedPtrField(); +} + +void AuthConfig::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void AuthConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.AuthConfig) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.handlers_.Clear(); + _impl_.tls_auth_entities_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AuthConfig::_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) { + // repeated .viam.app.v1.AuthHandlerConfig handlers = 1 [json_name = "handlers"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_handlers(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated string tls_auth_entities = 2 [json_name = "tlsAuthEntities"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_tls_auth_entities(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AuthConfig.tls_auth_entities")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* AuthConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.AuthConfig) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.app.v1.AuthHandlerConfig handlers = 1 [json_name = "handlers"]; + for (unsigned i = 0, + n = static_cast(this->_internal_handlers_size()); i < n; i++) { + const auto& repfield = this->_internal_handlers(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + // repeated string tls_auth_entities = 2 [json_name = "tlsAuthEntities"]; + for (int i = 0, n = this->_internal_tls_auth_entities_size(); i < n; i++) { + const auto& s = this->_internal_tls_auth_entities(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AuthConfig.tls_auth_entities"); + target = stream->WriteString(2, s, 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.AuthConfig) + return target; +} + +size_t AuthConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.AuthConfig) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.app.v1.AuthHandlerConfig handlers = 1 [json_name = "handlers"]; + total_size += 1UL * this->_internal_handlers_size(); + for (const auto& msg : this->_impl_.handlers_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated string tls_auth_entities = 2 [json_name = "tlsAuthEntities"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.tls_auth_entities_.size()); + for (int i = 0, n = _impl_.tls_auth_entities_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.tls_auth_entities_.Get(i)); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AuthConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AuthConfig::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AuthConfig::GetClassData() const { return &_class_data_; } + + +void AuthConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.AuthConfig) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.handlers_.MergeFrom(from._impl_.handlers_); + _this->_impl_.tls_auth_entities_.MergeFrom(from._impl_.tls_auth_entities_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AuthConfig::CopyFrom(const AuthConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.AuthConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AuthConfig::IsInitialized() const { + return true; +} + +void AuthConfig::InternalSwap(AuthConfig* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.handlers_.InternalSwap(&other->_impl_.handlers_); + _impl_.tls_auth_entities_.InternalSwap(&other->_impl_.tls_auth_entities_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AuthConfig::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[7]); +} + +// =================================================================== + +class AuthHandlerConfig::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& config(const AuthHandlerConfig* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +AuthHandlerConfig::_Internal::config(const AuthHandlerConfig* msg) { + return *msg->_impl_.config_; +} +void AuthHandlerConfig::clear_config() { + if (GetArenaForAllocation() == nullptr && _impl_.config_ != nullptr) { + delete _impl_.config_; + } + _impl_.config_ = nullptr; +} +AuthHandlerConfig::AuthHandlerConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.AuthHandlerConfig) +} +AuthHandlerConfig::AuthHandlerConfig(const AuthHandlerConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + AuthHandlerConfig* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.config_){nullptr} + , decltype(_impl_.type_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_config()) { + _this->_impl_.config_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.config_); + } + _this->_impl_.type_ = from._impl_.type_; + // @@protoc_insertion_point(copy_constructor:viam.app.v1.AuthHandlerConfig) +} + +inline void AuthHandlerConfig::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.config_){nullptr} + , decltype(_impl_.type_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +AuthHandlerConfig::~AuthHandlerConfig() { + // @@protoc_insertion_point(destructor:viam.app.v1.AuthHandlerConfig) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void AuthHandlerConfig::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.config_; +} + +void AuthHandlerConfig::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void AuthHandlerConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.AuthHandlerConfig) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.config_ != nullptr) { + delete _impl_.config_; + } + _impl_.config_ = nullptr; + _impl_.type_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AuthHandlerConfig::_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) { + // .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::viam::app::v1::CredentialsType>(val)); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct config = 5 [json_name = "config"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_config(), 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* AuthHandlerConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.AuthHandlerConfig) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; + if (this->_internal_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_type(), target); + } + + // .google.protobuf.Struct config = 5 [json_name = "config"]; + if (this->_internal_has_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::config(this), + _Internal::config(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.AuthHandlerConfig) + return target; +} + +size_t AuthHandlerConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.AuthHandlerConfig) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.protobuf.Struct config = 5 [json_name = "config"]; + if (this->_internal_has_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.config_); + } + + // .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; + if (this->_internal_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AuthHandlerConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AuthHandlerConfig::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AuthHandlerConfig::GetClassData() const { return &_class_data_; } + + +void AuthHandlerConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.AuthHandlerConfig) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_config()) { + _this->_internal_mutable_config()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_config()); + } + if (from._internal_type() != 0) { + _this->_internal_set_type(from._internal_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AuthHandlerConfig::CopyFrom(const AuthHandlerConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.AuthHandlerConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AuthHandlerConfig::IsInitialized() const { + return true; +} + +void AuthHandlerConfig::InternalSwap(AuthHandlerConfig* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AuthHandlerConfig, _impl_.type_) + + sizeof(AuthHandlerConfig::_impl_.type_) + - PROTOBUF_FIELD_OFFSET(AuthHandlerConfig, _impl_.config_)>( + reinterpret_cast(&_impl_.config_), + reinterpret_cast(&other->_impl_.config_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AuthHandlerConfig::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[8]); +} + +// =================================================================== + +class Frame::_Internal { + public: + static const ::viam::app::v1::Translation& translation(const Frame* msg); + static const ::viam::app::v1::Orientation& orientation(const Frame* msg); +}; + +const ::viam::app::v1::Translation& +Frame::_Internal::translation(const Frame* msg) { + return *msg->_impl_.translation_; +} +const ::viam::app::v1::Orientation& +Frame::_Internal::orientation(const Frame* msg) { + return *msg->_impl_.orientation_; +} +Frame::Frame(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.Frame) +} +Frame::Frame(const Frame& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Frame* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.parent_){} + , decltype(_impl_.translation_){nullptr} + , decltype(_impl_.orientation_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.parent_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.parent_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_parent().empty()) { + _this->_impl_.parent_.Set(from._internal_parent(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_translation()) { + _this->_impl_.translation_ = new ::viam::app::v1::Translation(*from._impl_.translation_); + } + if (from._internal_has_orientation()) { + _this->_impl_.orientation_ = new ::viam::app::v1::Orientation(*from._impl_.orientation_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Frame) +} + +inline void Frame::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.parent_){} + , decltype(_impl_.translation_){nullptr} + , decltype(_impl_.orientation_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.parent_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.parent_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Frame::~Frame() { + // @@protoc_insertion_point(destructor:viam.app.v1.Frame) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Frame::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.parent_.Destroy(); + if (this != internal_default_instance()) delete _impl_.translation_; + if (this != internal_default_instance()) delete _impl_.orientation_; +} + +void Frame::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Frame::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.Frame) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.parent_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.translation_ != nullptr) { + delete _impl_.translation_; + } + _impl_.translation_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.orientation_ != nullptr) { + delete _impl_.orientation_; + } + _impl_.orientation_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Frame::_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 parent = 1 [json_name = "parent"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_parent(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Frame.parent")); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Translation translation = 2 [json_name = "translation"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_translation(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Orientation orientation = 3 [json_name = "orientation"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_orientation(), 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* Frame::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Frame) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string parent = 1 [json_name = "parent"]; + if (!this->_internal_parent().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_parent().data(), static_cast(this->_internal_parent().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Frame.parent"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_parent(), target); + } + + // .viam.app.v1.Translation translation = 2 [json_name = "translation"]; + if (this->_internal_has_translation()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::translation(this), + _Internal::translation(this).GetCachedSize(), target, stream); + } + + // .viam.app.v1.Orientation orientation = 3 [json_name = "orientation"]; + if (this->_internal_has_orientation()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::orientation(this), + _Internal::orientation(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.Frame) + return target; +} + +size_t Frame::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Frame) + 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 parent = 1 [json_name = "parent"]; + if (!this->_internal_parent().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_parent()); + } + + // .viam.app.v1.Translation translation = 2 [json_name = "translation"]; + if (this->_internal_has_translation()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.translation_); + } + + // .viam.app.v1.Orientation orientation = 3 [json_name = "orientation"]; + if (this->_internal_has_orientation()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.orientation_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Frame::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Frame::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Frame::GetClassData() const { return &_class_data_; } + + +void Frame::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Frame) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_parent().empty()) { + _this->_internal_set_parent(from._internal_parent()); + } + if (from._internal_has_translation()) { + _this->_internal_mutable_translation()->::viam::app::v1::Translation::MergeFrom( + from._internal_translation()); + } + if (from._internal_has_orientation()) { + _this->_internal_mutable_orientation()->::viam::app::v1::Orientation::MergeFrom( + from._internal_orientation()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Frame::CopyFrom(const Frame& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.Frame) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Frame::IsInitialized() const { + return true; +} + +void Frame::InternalSwap(Frame* 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( + &_impl_.parent_, lhs_arena, + &other->_impl_.parent_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Frame, _impl_.orientation_) + + sizeof(Frame::_impl_.orientation_) + - PROTOBUF_FIELD_OFFSET(Frame, _impl_.translation_)>( + reinterpret_cast(&_impl_.translation_), + reinterpret_cast(&other->_impl_.translation_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Frame::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[9]); +} + +// =================================================================== + +class Translation::_Internal { + public: +}; + +Translation::Translation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.Translation) +} +Translation::Translation(const Translation& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Translation* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.x_){} + , decltype(_impl_.y_){} + , decltype(_impl_.z_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.x_, &from._impl_.x_, + static_cast(reinterpret_cast(&_impl_.z_) - + reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.z_)); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Translation) +} + +inline void Translation::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.x_){0} + , decltype(_impl_.y_){0} + , decltype(_impl_.z_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Translation::~Translation() { + // @@protoc_insertion_point(destructor:viam.app.v1.Translation) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Translation::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Translation::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Translation::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.Translation) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.x_, 0, static_cast( + reinterpret_cast(&_impl_.z_) - + reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.z_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Translation::_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) { + // double x = 1 [json_name = "x"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double y = 2 [json_name = "y"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double z = 3 [json_name = "z"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + _impl_.z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* Translation::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Translation) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // double x = 1 [json_name = "x"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_x = this->_internal_x(); + uint64_t raw_x; + memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); + if (raw_x != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_x(), target); + } + + // double y = 2 [json_name = "y"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_y = this->_internal_y(); + uint64_t raw_y; + memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); + if (raw_y != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_y(), target); + } + + // double z = 3 [json_name = "z"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_z = this->_internal_z(); + uint64_t raw_z; + memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); + if (raw_z != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_z(), 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.Translation) + return target; +} + +size_t Translation::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Translation) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // double x = 1 [json_name = "x"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_x = this->_internal_x(); + uint64_t raw_x; + memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); + if (raw_x != 0) { + total_size += 1 + 8; + } + + // double y = 2 [json_name = "y"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_y = this->_internal_y(); + uint64_t raw_y; + memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); + if (raw_y != 0) { + total_size += 1 + 8; + } + + // double z = 3 [json_name = "z"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_z = this->_internal_z(); + uint64_t raw_z; + memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); + if (raw_z != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Translation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Translation::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Translation::GetClassData() const { return &_class_data_; } + + +void Translation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Translation) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_x = from._internal_x(); + uint64_t raw_x; + memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); + if (raw_x != 0) { + _this->_internal_set_x(from._internal_x()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_y = from._internal_y(); + uint64_t raw_y; + memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); + if (raw_y != 0) { + _this->_internal_set_y(from._internal_y()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_z = from._internal_z(); + uint64_t raw_z; + memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); + if (raw_z != 0) { + _this->_internal_set_z(from._internal_z()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Translation::CopyFrom(const Translation& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.Translation) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Translation::IsInitialized() const { + return true; +} + +void Translation::InternalSwap(Translation* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Translation, _impl_.z_) + + sizeof(Translation::_impl_.z_) + - PROTOBUF_FIELD_OFFSET(Translation, _impl_.x_)>( + reinterpret_cast(&_impl_.x_), + reinterpret_cast(&other->_impl_.x_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Translation::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[10]); +} + +// =================================================================== + +class Orientation_NoOrientation::_Internal { + public: +}; + +Orientation_NoOrientation::Orientation_NoOrientation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.app.v1.Orientation.NoOrientation) +} +Orientation_NoOrientation::Orientation_NoOrientation(const Orientation_NoOrientation& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + Orientation_NoOrientation* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Orientation.NoOrientation) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Orientation_NoOrientation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Orientation_NoOrientation::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata Orientation_NoOrientation::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[11]); +} + +// =================================================================== + +class Orientation_OrientationVectorRadians::_Internal { + public: +}; + +Orientation_OrientationVectorRadians::Orientation_OrientationVectorRadians(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.Orientation.OrientationVectorRadians) +} +Orientation_OrientationVectorRadians::Orientation_OrientationVectorRadians(const Orientation_OrientationVectorRadians& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Orientation_OrientationVectorRadians* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.theta_){} + , decltype(_impl_.x_){} + , decltype(_impl_.y_){} + , decltype(_impl_.z_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.theta_, &from._impl_.theta_, + static_cast(reinterpret_cast(&_impl_.z_) - + reinterpret_cast(&_impl_.theta_)) + sizeof(_impl_.z_)); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Orientation.OrientationVectorRadians) +} + +inline void Orientation_OrientationVectorRadians::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.theta_){0} + , decltype(_impl_.x_){0} + , decltype(_impl_.y_){0} + , decltype(_impl_.z_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Orientation_OrientationVectorRadians::~Orientation_OrientationVectorRadians() { + // @@protoc_insertion_point(destructor:viam.app.v1.Orientation.OrientationVectorRadians) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Orientation_OrientationVectorRadians::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Orientation_OrientationVectorRadians::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Orientation_OrientationVectorRadians::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.Orientation.OrientationVectorRadians) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.theta_, 0, static_cast( + reinterpret_cast(&_impl_.z_) - + reinterpret_cast(&_impl_.theta_)) + sizeof(_impl_.z_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Orientation_OrientationVectorRadians::_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) { + // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + _impl_.theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double x = 2 [json_name = "x"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double y = 3 [json_name = "y"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double z = 4 [json_name = "z"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { + _impl_.z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* Orientation_OrientationVectorRadians::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Orientation.OrientationVectorRadians) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_theta = this->_internal_theta(); + uint64_t raw_theta; + memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); + if (raw_theta != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_theta(), target); + } + + // double x = 2 [json_name = "x"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_x = this->_internal_x(); + uint64_t raw_x; + memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); + if (raw_x != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_x(), target); + } + + // double y = 3 [json_name = "y"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_y = this->_internal_y(); + uint64_t raw_y; + memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); + if (raw_y != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_y(), target); + } + + // double z = 4 [json_name = "z"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_z = this->_internal_z(); + uint64_t raw_z; + memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); + if (raw_z != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_z(), 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.Orientation.OrientationVectorRadians) + return target; +} + +size_t Orientation_OrientationVectorRadians::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Orientation.OrientationVectorRadians) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_theta = this->_internal_theta(); + uint64_t raw_theta; + memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); + if (raw_theta != 0) { + total_size += 1 + 8; + } + + // double x = 2 [json_name = "x"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_x = this->_internal_x(); + uint64_t raw_x; + memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); + if (raw_x != 0) { + total_size += 1 + 8; + } + + // double y = 3 [json_name = "y"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_y = this->_internal_y(); + uint64_t raw_y; + memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); + if (raw_y != 0) { + total_size += 1 + 8; + } + + // double z = 4 [json_name = "z"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_z = this->_internal_z(); + uint64_t raw_z; + memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); + if (raw_z != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Orientation_OrientationVectorRadians::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Orientation_OrientationVectorRadians::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Orientation_OrientationVectorRadians::GetClassData() const { return &_class_data_; } + + +void Orientation_OrientationVectorRadians::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Orientation.OrientationVectorRadians) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_theta = from._internal_theta(); + uint64_t raw_theta; + memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); + if (raw_theta != 0) { + _this->_internal_set_theta(from._internal_theta()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_x = from._internal_x(); + uint64_t raw_x; + memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); + if (raw_x != 0) { + _this->_internal_set_x(from._internal_x()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_y = from._internal_y(); + uint64_t raw_y; + memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); + if (raw_y != 0) { + _this->_internal_set_y(from._internal_y()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_z = from._internal_z(); + uint64_t raw_z; + memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); + if (raw_z != 0) { + _this->_internal_set_z(from._internal_z()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Orientation_OrientationVectorRadians::CopyFrom(const Orientation_OrientationVectorRadians& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.Orientation.OrientationVectorRadians) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Orientation_OrientationVectorRadians::IsInitialized() const { + return true; +} + +void Orientation_OrientationVectorRadians::InternalSwap(Orientation_OrientationVectorRadians* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorRadians, _impl_.z_) + + sizeof(Orientation_OrientationVectorRadians::_impl_.z_) + - PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorRadians, _impl_.theta_)>( + reinterpret_cast(&_impl_.theta_), + reinterpret_cast(&other->_impl_.theta_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Orientation_OrientationVectorRadians::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[12]); +} + +// =================================================================== + +class Orientation_OrientationVectorDegrees::_Internal { + public: +}; + +Orientation_OrientationVectorDegrees::Orientation_OrientationVectorDegrees(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.Orientation.OrientationVectorDegrees) +} +Orientation_OrientationVectorDegrees::Orientation_OrientationVectorDegrees(const Orientation_OrientationVectorDegrees& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Orientation_OrientationVectorDegrees* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.theta_){} + , decltype(_impl_.x_){} + , decltype(_impl_.y_){} + , decltype(_impl_.z_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.theta_, &from._impl_.theta_, + static_cast(reinterpret_cast(&_impl_.z_) - + reinterpret_cast(&_impl_.theta_)) + sizeof(_impl_.z_)); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Orientation.OrientationVectorDegrees) +} + +inline void Orientation_OrientationVectorDegrees::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.theta_){0} + , decltype(_impl_.x_){0} + , decltype(_impl_.y_){0} + , decltype(_impl_.z_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Orientation_OrientationVectorDegrees::~Orientation_OrientationVectorDegrees() { + // @@protoc_insertion_point(destructor:viam.app.v1.Orientation.OrientationVectorDegrees) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Orientation_OrientationVectorDegrees::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Orientation_OrientationVectorDegrees::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Orientation_OrientationVectorDegrees::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.Orientation.OrientationVectorDegrees) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.theta_, 0, static_cast( + reinterpret_cast(&_impl_.z_) - + reinterpret_cast(&_impl_.theta_)) + sizeof(_impl_.z_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Orientation_OrientationVectorDegrees::_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) { + // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + _impl_.theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double x = 2 [json_name = "x"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double y = 3 [json_name = "y"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double z = 4 [json_name = "z"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { + _impl_.z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* Orientation_OrientationVectorDegrees::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Orientation.OrientationVectorDegrees) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_theta = this->_internal_theta(); + uint64_t raw_theta; + memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); + if (raw_theta != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_theta(), target); + } + + // double x = 2 [json_name = "x"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_x = this->_internal_x(); + uint64_t raw_x; + memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); + if (raw_x != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_x(), target); + } + + // double y = 3 [json_name = "y"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_y = this->_internal_y(); + uint64_t raw_y; + memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); + if (raw_y != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_y(), target); + } + + // double z = 4 [json_name = "z"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_z = this->_internal_z(); + uint64_t raw_z; + memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); + if (raw_z != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_z(), 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.Orientation.OrientationVectorDegrees) + return target; +} + +size_t Orientation_OrientationVectorDegrees::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Orientation.OrientationVectorDegrees) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_theta = this->_internal_theta(); + uint64_t raw_theta; + memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); + if (raw_theta != 0) { + total_size += 1 + 8; + } + + // double x = 2 [json_name = "x"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_x = this->_internal_x(); + uint64_t raw_x; + memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); + if (raw_x != 0) { + total_size += 1 + 8; + } + + // double y = 3 [json_name = "y"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_y = this->_internal_y(); + uint64_t raw_y; + memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); + if (raw_y != 0) { + total_size += 1 + 8; + } + + // double z = 4 [json_name = "z"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_z = this->_internal_z(); + uint64_t raw_z; + memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); + if (raw_z != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Orientation_OrientationVectorDegrees::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Orientation_OrientationVectorDegrees::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Orientation_OrientationVectorDegrees::GetClassData() const { return &_class_data_; } + + +void Orientation_OrientationVectorDegrees::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Orientation.OrientationVectorDegrees) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_theta = from._internal_theta(); + uint64_t raw_theta; + memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); + if (raw_theta != 0) { + _this->_internal_set_theta(from._internal_theta()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_x = from._internal_x(); + uint64_t raw_x; + memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); + if (raw_x != 0) { + _this->_internal_set_x(from._internal_x()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_y = from._internal_y(); + uint64_t raw_y; + memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); + if (raw_y != 0) { + _this->_internal_set_y(from._internal_y()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_z = from._internal_z(); + uint64_t raw_z; + memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); + if (raw_z != 0) { + _this->_internal_set_z(from._internal_z()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Orientation_OrientationVectorDegrees::CopyFrom(const Orientation_OrientationVectorDegrees& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.Orientation.OrientationVectorDegrees) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Orientation_OrientationVectorDegrees::IsInitialized() const { + return true; +} + +void Orientation_OrientationVectorDegrees::InternalSwap(Orientation_OrientationVectorDegrees* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorDegrees, _impl_.z_) + + sizeof(Orientation_OrientationVectorDegrees::_impl_.z_) + - PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorDegrees, _impl_.theta_)>( + reinterpret_cast(&_impl_.theta_), + reinterpret_cast(&other->_impl_.theta_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Orientation_OrientationVectorDegrees::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[13]); +} + +// =================================================================== + +class Orientation_EulerAngles::_Internal { + public: +}; + +Orientation_EulerAngles::Orientation_EulerAngles(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.Orientation.EulerAngles) +} +Orientation_EulerAngles::Orientation_EulerAngles(const Orientation_EulerAngles& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Orientation_EulerAngles* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.roll_){} + , decltype(_impl_.pitch_){} + , decltype(_impl_.yaw_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.roll_, &from._impl_.roll_, + static_cast(reinterpret_cast(&_impl_.yaw_) - + reinterpret_cast(&_impl_.roll_)) + sizeof(_impl_.yaw_)); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Orientation.EulerAngles) +} + +inline void Orientation_EulerAngles::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.roll_){0} + , decltype(_impl_.pitch_){0} + , decltype(_impl_.yaw_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Orientation_EulerAngles::~Orientation_EulerAngles() { + // @@protoc_insertion_point(destructor:viam.app.v1.Orientation.EulerAngles) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Orientation_EulerAngles::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Orientation_EulerAngles::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Orientation_EulerAngles::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.Orientation.EulerAngles) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.roll_, 0, static_cast( + reinterpret_cast(&_impl_.yaw_) - + reinterpret_cast(&_impl_.roll_)) + sizeof(_impl_.yaw_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Orientation_EulerAngles::_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) { + // double roll = 1 [json_name = "roll"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + _impl_.roll_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double pitch = 2 [json_name = "pitch"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + _impl_.pitch_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double yaw = 3 [json_name = "yaw"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + _impl_.yaw_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* Orientation_EulerAngles::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Orientation.EulerAngles) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // double roll = 1 [json_name = "roll"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_roll = this->_internal_roll(); + uint64_t raw_roll; + memcpy(&raw_roll, &tmp_roll, sizeof(tmp_roll)); + if (raw_roll != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_roll(), target); + } + + // double pitch = 2 [json_name = "pitch"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_pitch = this->_internal_pitch(); + uint64_t raw_pitch; + memcpy(&raw_pitch, &tmp_pitch, sizeof(tmp_pitch)); + if (raw_pitch != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_pitch(), target); + } + + // double yaw = 3 [json_name = "yaw"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_yaw = this->_internal_yaw(); + uint64_t raw_yaw; + memcpy(&raw_yaw, &tmp_yaw, sizeof(tmp_yaw)); + if (raw_yaw != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_yaw(), 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.Orientation.EulerAngles) + return target; +} + +size_t Orientation_EulerAngles::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Orientation.EulerAngles) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // double roll = 1 [json_name = "roll"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_roll = this->_internal_roll(); + uint64_t raw_roll; + memcpy(&raw_roll, &tmp_roll, sizeof(tmp_roll)); + if (raw_roll != 0) { + total_size += 1 + 8; + } + + // double pitch = 2 [json_name = "pitch"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_pitch = this->_internal_pitch(); + uint64_t raw_pitch; + memcpy(&raw_pitch, &tmp_pitch, sizeof(tmp_pitch)); + if (raw_pitch != 0) { + total_size += 1 + 8; + } + + // double yaw = 3 [json_name = "yaw"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_yaw = this->_internal_yaw(); + uint64_t raw_yaw; + memcpy(&raw_yaw, &tmp_yaw, sizeof(tmp_yaw)); + if (raw_yaw != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Orientation_EulerAngles::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Orientation_EulerAngles::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Orientation_EulerAngles::GetClassData() const { return &_class_data_; } + + +void Orientation_EulerAngles::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Orientation.EulerAngles) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_roll = from._internal_roll(); + uint64_t raw_roll; + memcpy(&raw_roll, &tmp_roll, sizeof(tmp_roll)); + if (raw_roll != 0) { + _this->_internal_set_roll(from._internal_roll()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_pitch = from._internal_pitch(); + uint64_t raw_pitch; + memcpy(&raw_pitch, &tmp_pitch, sizeof(tmp_pitch)); + if (raw_pitch != 0) { + _this->_internal_set_pitch(from._internal_pitch()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_yaw = from._internal_yaw(); + uint64_t raw_yaw; + memcpy(&raw_yaw, &tmp_yaw, sizeof(tmp_yaw)); + if (raw_yaw != 0) { + _this->_internal_set_yaw(from._internal_yaw()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Orientation_EulerAngles::CopyFrom(const Orientation_EulerAngles& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.Orientation.EulerAngles) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Orientation_EulerAngles::IsInitialized() const { + return true; +} + +void Orientation_EulerAngles::InternalSwap(Orientation_EulerAngles* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Orientation_EulerAngles, _impl_.yaw_) + + sizeof(Orientation_EulerAngles::_impl_.yaw_) + - PROTOBUF_FIELD_OFFSET(Orientation_EulerAngles, _impl_.roll_)>( + reinterpret_cast(&_impl_.roll_), + reinterpret_cast(&other->_impl_.roll_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Orientation_EulerAngles::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[14]); +} + +// =================================================================== + +class Orientation_AxisAngles::_Internal { + public: +}; + +Orientation_AxisAngles::Orientation_AxisAngles(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.Orientation.AxisAngles) +} +Orientation_AxisAngles::Orientation_AxisAngles(const Orientation_AxisAngles& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Orientation_AxisAngles* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.theta_){} + , decltype(_impl_.x_){} + , decltype(_impl_.y_){} + , decltype(_impl_.z_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.theta_, &from._impl_.theta_, + static_cast(reinterpret_cast(&_impl_.z_) - + reinterpret_cast(&_impl_.theta_)) + sizeof(_impl_.z_)); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Orientation.AxisAngles) +} + +inline void Orientation_AxisAngles::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.theta_){0} + , decltype(_impl_.x_){0} + , decltype(_impl_.y_){0} + , decltype(_impl_.z_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Orientation_AxisAngles::~Orientation_AxisAngles() { + // @@protoc_insertion_point(destructor:viam.app.v1.Orientation.AxisAngles) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Orientation_AxisAngles::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Orientation_AxisAngles::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Orientation_AxisAngles::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.Orientation.AxisAngles) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.theta_, 0, static_cast( + reinterpret_cast(&_impl_.z_) - + reinterpret_cast(&_impl_.theta_)) + sizeof(_impl_.z_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Orientation_AxisAngles::_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) { + // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + _impl_.theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double x = 2 [json_name = "x"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double y = 3 [json_name = "y"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double z = 4 [json_name = "z"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { + _impl_.z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* Orientation_AxisAngles::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Orientation.AxisAngles) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_theta = this->_internal_theta(); + uint64_t raw_theta; + memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); + if (raw_theta != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_theta(), target); + } + + // double x = 2 [json_name = "x"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_x = this->_internal_x(); + uint64_t raw_x; + memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); + if (raw_x != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_x(), target); + } + + // double y = 3 [json_name = "y"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_y = this->_internal_y(); + uint64_t raw_y; + memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); + if (raw_y != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_y(), target); + } + + // double z = 4 [json_name = "z"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_z = this->_internal_z(); + uint64_t raw_z; + memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); + if (raw_z != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_z(), 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.Orientation.AxisAngles) + return target; +} + +size_t Orientation_AxisAngles::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Orientation.AxisAngles) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_theta = this->_internal_theta(); + uint64_t raw_theta; + memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); + if (raw_theta != 0) { + total_size += 1 + 8; + } + + // double x = 2 [json_name = "x"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_x = this->_internal_x(); + uint64_t raw_x; + memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); + if (raw_x != 0) { + total_size += 1 + 8; + } + + // double y = 3 [json_name = "y"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_y = this->_internal_y(); + uint64_t raw_y; + memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); + if (raw_y != 0) { + total_size += 1 + 8; + } + + // double z = 4 [json_name = "z"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_z = this->_internal_z(); + uint64_t raw_z; + memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); + if (raw_z != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Orientation_AxisAngles::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Orientation_AxisAngles::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Orientation_AxisAngles::GetClassData() const { return &_class_data_; } + + +void Orientation_AxisAngles::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Orientation.AxisAngles) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_theta = from._internal_theta(); + uint64_t raw_theta; + memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); + if (raw_theta != 0) { + _this->_internal_set_theta(from._internal_theta()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_x = from._internal_x(); + uint64_t raw_x; + memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); + if (raw_x != 0) { + _this->_internal_set_x(from._internal_x()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_y = from._internal_y(); + uint64_t raw_y; + memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); + if (raw_y != 0) { + _this->_internal_set_y(from._internal_y()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_z = from._internal_z(); + uint64_t raw_z; + memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); + if (raw_z != 0) { + _this->_internal_set_z(from._internal_z()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Orientation_AxisAngles::CopyFrom(const Orientation_AxisAngles& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.Orientation.AxisAngles) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Orientation_AxisAngles::IsInitialized() const { + return true; +} + +void Orientation_AxisAngles::InternalSwap(Orientation_AxisAngles* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Orientation_AxisAngles, _impl_.z_) + + sizeof(Orientation_AxisAngles::_impl_.z_) + - PROTOBUF_FIELD_OFFSET(Orientation_AxisAngles, _impl_.theta_)>( + reinterpret_cast(&_impl_.theta_), + reinterpret_cast(&other->_impl_.theta_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Orientation_AxisAngles::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[15]); +} + +// =================================================================== + +class Orientation_Quaternion::_Internal { + public: +}; + +Orientation_Quaternion::Orientation_Quaternion(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.Orientation.Quaternion) +} +Orientation_Quaternion::Orientation_Quaternion(const Orientation_Quaternion& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Orientation_Quaternion* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.w_){} + , decltype(_impl_.x_){} + , decltype(_impl_.y_){} + , decltype(_impl_.z_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.w_, &from._impl_.w_, + static_cast(reinterpret_cast(&_impl_.z_) - + reinterpret_cast(&_impl_.w_)) + sizeof(_impl_.z_)); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Orientation.Quaternion) +} + +inline void Orientation_Quaternion::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.w_){0} + , decltype(_impl_.x_){0} + , decltype(_impl_.y_){0} + , decltype(_impl_.z_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Orientation_Quaternion::~Orientation_Quaternion() { + // @@protoc_insertion_point(destructor:viam.app.v1.Orientation.Quaternion) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Orientation_Quaternion::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Orientation_Quaternion::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Orientation_Quaternion::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.Orientation.Quaternion) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.w_, 0, static_cast( + reinterpret_cast(&_impl_.z_) - + reinterpret_cast(&_impl_.w_)) + sizeof(_impl_.z_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Orientation_Quaternion::_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) { + // double w = 1 [json_name = "w"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + _impl_.w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double x = 2 [json_name = "x"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double y = 3 [json_name = "y"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double z = 4 [json_name = "z"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { + _impl_.z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* Orientation_Quaternion::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Orientation.Quaternion) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // double w = 1 [json_name = "w"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_w = this->_internal_w(); + uint64_t raw_w; + memcpy(&raw_w, &tmp_w, sizeof(tmp_w)); + if (raw_w != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_w(), target); + } + + // double x = 2 [json_name = "x"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_x = this->_internal_x(); + uint64_t raw_x; + memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); + if (raw_x != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_x(), target); + } + + // double y = 3 [json_name = "y"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_y = this->_internal_y(); + uint64_t raw_y; + memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); + if (raw_y != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_y(), target); + } + + // double z = 4 [json_name = "z"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_z = this->_internal_z(); + uint64_t raw_z; + memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); + if (raw_z != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_z(), 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.Orientation.Quaternion) + return target; +} + +size_t Orientation_Quaternion::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Orientation.Quaternion) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // double w = 1 [json_name = "w"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_w = this->_internal_w(); + uint64_t raw_w; + memcpy(&raw_w, &tmp_w, sizeof(tmp_w)); + if (raw_w != 0) { + total_size += 1 + 8; + } + + // double x = 2 [json_name = "x"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_x = this->_internal_x(); + uint64_t raw_x; + memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); + if (raw_x != 0) { + total_size += 1 + 8; + } + + // double y = 3 [json_name = "y"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_y = this->_internal_y(); + uint64_t raw_y; + memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); + if (raw_y != 0) { + total_size += 1 + 8; + } + + // double z = 4 [json_name = "z"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_z = this->_internal_z(); + uint64_t raw_z; + memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); + if (raw_z != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Orientation_Quaternion::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Orientation_Quaternion::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Orientation_Quaternion::GetClassData() const { return &_class_data_; } + + +void Orientation_Quaternion::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Orientation.Quaternion) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_w = from._internal_w(); + uint64_t raw_w; + memcpy(&raw_w, &tmp_w, sizeof(tmp_w)); + if (raw_w != 0) { + _this->_internal_set_w(from._internal_w()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_x = from._internal_x(); + uint64_t raw_x; + memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); + if (raw_x != 0) { + _this->_internal_set_x(from._internal_x()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_y = from._internal_y(); + uint64_t raw_y; + memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); + if (raw_y != 0) { + _this->_internal_set_y(from._internal_y()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_z = from._internal_z(); + uint64_t raw_z; + memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); + if (raw_z != 0) { + _this->_internal_set_z(from._internal_z()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Orientation_Quaternion::CopyFrom(const Orientation_Quaternion& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.Orientation.Quaternion) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Orientation_Quaternion::IsInitialized() const { + return true; +} + +void Orientation_Quaternion::InternalSwap(Orientation_Quaternion* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Orientation_Quaternion, _impl_.z_) + + sizeof(Orientation_Quaternion::_impl_.z_) + - PROTOBUF_FIELD_OFFSET(Orientation_Quaternion, _impl_.w_)>( + reinterpret_cast(&_impl_.w_), + reinterpret_cast(&other->_impl_.w_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Orientation_Quaternion::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[16]); +} + +// =================================================================== + +class Orientation::_Internal { + public: + static const ::viam::app::v1::Orientation_NoOrientation& no_orientation(const Orientation* msg); + static const ::viam::app::v1::Orientation_OrientationVectorRadians& vector_radians(const Orientation* msg); + static const ::viam::app::v1::Orientation_OrientationVectorDegrees& vector_degrees(const Orientation* msg); + static const ::viam::app::v1::Orientation_EulerAngles& euler_angles(const Orientation* msg); + static const ::viam::app::v1::Orientation_AxisAngles& axis_angles(const Orientation* msg); + static const ::viam::app::v1::Orientation_Quaternion& quaternion(const Orientation* msg); +}; + +const ::viam::app::v1::Orientation_NoOrientation& +Orientation::_Internal::no_orientation(const Orientation* msg) { + return *msg->_impl_.type_.no_orientation_; +} +const ::viam::app::v1::Orientation_OrientationVectorRadians& +Orientation::_Internal::vector_radians(const Orientation* msg) { + return *msg->_impl_.type_.vector_radians_; +} +const ::viam::app::v1::Orientation_OrientationVectorDegrees& +Orientation::_Internal::vector_degrees(const Orientation* msg) { + return *msg->_impl_.type_.vector_degrees_; +} +const ::viam::app::v1::Orientation_EulerAngles& +Orientation::_Internal::euler_angles(const Orientation* msg) { + return *msg->_impl_.type_.euler_angles_; +} +const ::viam::app::v1::Orientation_AxisAngles& +Orientation::_Internal::axis_angles(const Orientation* msg) { + return *msg->_impl_.type_.axis_angles_; +} +const ::viam::app::v1::Orientation_Quaternion& +Orientation::_Internal::quaternion(const Orientation* msg) { + return *msg->_impl_.type_.quaternion_; +} +void Orientation::set_allocated_no_orientation(::viam::app::v1::Orientation_NoOrientation* no_orientation) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_type(); + if (no_orientation) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(no_orientation); + if (message_arena != submessage_arena) { + no_orientation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, no_orientation, submessage_arena); + } + set_has_no_orientation(); + _impl_.type_.no_orientation_ = no_orientation; + } + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Orientation.no_orientation) +} +void Orientation::set_allocated_vector_radians(::viam::app::v1::Orientation_OrientationVectorRadians* vector_radians) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_type(); + if (vector_radians) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(vector_radians); + if (message_arena != submessage_arena) { + vector_radians = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, vector_radians, submessage_arena); + } + set_has_vector_radians(); + _impl_.type_.vector_radians_ = vector_radians; + } + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Orientation.vector_radians) +} +void Orientation::set_allocated_vector_degrees(::viam::app::v1::Orientation_OrientationVectorDegrees* vector_degrees) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_type(); + if (vector_degrees) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(vector_degrees); + if (message_arena != submessage_arena) { + vector_degrees = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, vector_degrees, submessage_arena); + } + set_has_vector_degrees(); + _impl_.type_.vector_degrees_ = vector_degrees; + } + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Orientation.vector_degrees) +} +void Orientation::set_allocated_euler_angles(::viam::app::v1::Orientation_EulerAngles* euler_angles) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_type(); + if (euler_angles) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(euler_angles); + if (message_arena != submessage_arena) { + euler_angles = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, euler_angles, submessage_arena); + } + set_has_euler_angles(); + _impl_.type_.euler_angles_ = euler_angles; + } + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Orientation.euler_angles) +} +void Orientation::set_allocated_axis_angles(::viam::app::v1::Orientation_AxisAngles* axis_angles) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_type(); + if (axis_angles) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(axis_angles); + if (message_arena != submessage_arena) { + axis_angles = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, axis_angles, submessage_arena); + } + set_has_axis_angles(); + _impl_.type_.axis_angles_ = axis_angles; + } + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Orientation.axis_angles) +} +void Orientation::set_allocated_quaternion(::viam::app::v1::Orientation_Quaternion* quaternion) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_type(); + if (quaternion) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(quaternion); + if (message_arena != submessage_arena) { + quaternion = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, quaternion, submessage_arena); + } + set_has_quaternion(); + _impl_.type_.quaternion_ = quaternion; + } + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Orientation.quaternion) +} +Orientation::Orientation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.Orientation) +} +Orientation::Orientation(const Orientation& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Orientation* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.type_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_type(); + switch (from.type_case()) { + case kNoOrientation: { + _this->_internal_mutable_no_orientation()->::viam::app::v1::Orientation_NoOrientation::MergeFrom( + from._internal_no_orientation()); + break; + } + case kVectorRadians: { + _this->_internal_mutable_vector_radians()->::viam::app::v1::Orientation_OrientationVectorRadians::MergeFrom( + from._internal_vector_radians()); + break; + } + case kVectorDegrees: { + _this->_internal_mutable_vector_degrees()->::viam::app::v1::Orientation_OrientationVectorDegrees::MergeFrom( + from._internal_vector_degrees()); + break; + } + case kEulerAngles: { + _this->_internal_mutable_euler_angles()->::viam::app::v1::Orientation_EulerAngles::MergeFrom( + from._internal_euler_angles()); + break; + } + case kAxisAngles: { + _this->_internal_mutable_axis_angles()->::viam::app::v1::Orientation_AxisAngles::MergeFrom( + from._internal_axis_angles()); + break; + } + case kQuaternion: { + _this->_internal_mutable_quaternion()->::viam::app::v1::Orientation_Quaternion::MergeFrom( + from._internal_quaternion()); + break; + } + case TYPE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Orientation) +} + +inline void Orientation::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.type_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_type(); +} + +Orientation::~Orientation() { + // @@protoc_insertion_point(destructor:viam.app.v1.Orientation) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Orientation::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_type()) { + clear_type(); + } +} + +void Orientation::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Orientation::clear_type() { +// @@protoc_insertion_point(one_of_clear_start:viam.app.v1.Orientation) + switch (type_case()) { + case kNoOrientation: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_.no_orientation_; + } + break; + } + case kVectorRadians: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_.vector_radians_; + } + break; + } + case kVectorDegrees: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_.vector_degrees_; + } + break; + } + case kEulerAngles: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_.euler_angles_; + } + break; + } + case kAxisAngles: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_.axis_angles_; + } + break; + } + case kQuaternion: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_.quaternion_; + } + break; + } + case TYPE_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = TYPE_NOT_SET; +} + + +void Orientation::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.Orientation) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_type(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Orientation::_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) { + // .viam.app.v1.Orientation.NoOrientation no_orientation = 1 [json_name = "noOrientation"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_no_orientation(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Orientation.OrientationVectorRadians vector_radians = 2 [json_name = "vectorRadians"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_vector_radians(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Orientation.OrientationVectorDegrees vector_degrees = 3 [json_name = "vectorDegrees"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_vector_degrees(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Orientation.EulerAngles euler_angles = 4 [json_name = "eulerAngles"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_euler_angles(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Orientation.AxisAngles axis_angles = 5 [json_name = "axisAngles"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_axis_angles(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Orientation.Quaternion quaternion = 6 [json_name = "quaternion"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_quaternion(), 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* Orientation::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Orientation) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.v1.Orientation.NoOrientation no_orientation = 1 [json_name = "noOrientation"]; + if (_internal_has_no_orientation()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::no_orientation(this), + _Internal::no_orientation(this).GetCachedSize(), target, stream); + } + + // .viam.app.v1.Orientation.OrientationVectorRadians vector_radians = 2 [json_name = "vectorRadians"]; + if (_internal_has_vector_radians()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::vector_radians(this), + _Internal::vector_radians(this).GetCachedSize(), target, stream); + } + + // .viam.app.v1.Orientation.OrientationVectorDegrees vector_degrees = 3 [json_name = "vectorDegrees"]; + if (_internal_has_vector_degrees()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::vector_degrees(this), + _Internal::vector_degrees(this).GetCachedSize(), target, stream); + } + + // .viam.app.v1.Orientation.EulerAngles euler_angles = 4 [json_name = "eulerAngles"]; + if (_internal_has_euler_angles()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::euler_angles(this), + _Internal::euler_angles(this).GetCachedSize(), target, stream); + } + + // .viam.app.v1.Orientation.AxisAngles axis_angles = 5 [json_name = "axisAngles"]; + if (_internal_has_axis_angles()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::axis_angles(this), + _Internal::axis_angles(this).GetCachedSize(), target, stream); + } + + // .viam.app.v1.Orientation.Quaternion quaternion = 6 [json_name = "quaternion"]; + if (_internal_has_quaternion()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::quaternion(this), + _Internal::quaternion(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.Orientation) + return target; +} + +size_t Orientation::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Orientation) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (type_case()) { + // .viam.app.v1.Orientation.NoOrientation no_orientation = 1 [json_name = "noOrientation"]; + case kNoOrientation: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.type_.no_orientation_); + break; + } + // .viam.app.v1.Orientation.OrientationVectorRadians vector_radians = 2 [json_name = "vectorRadians"]; + case kVectorRadians: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.type_.vector_radians_); + break; + } + // .viam.app.v1.Orientation.OrientationVectorDegrees vector_degrees = 3 [json_name = "vectorDegrees"]; + case kVectorDegrees: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.type_.vector_degrees_); + break; + } + // .viam.app.v1.Orientation.EulerAngles euler_angles = 4 [json_name = "eulerAngles"]; + case kEulerAngles: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.type_.euler_angles_); + break; + } + // .viam.app.v1.Orientation.AxisAngles axis_angles = 5 [json_name = "axisAngles"]; + case kAxisAngles: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.type_.axis_angles_); + break; + } + // .viam.app.v1.Orientation.Quaternion quaternion = 6 [json_name = "quaternion"]; + case kQuaternion: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.type_.quaternion_); + break; + } + case TYPE_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Orientation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Orientation::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Orientation::GetClassData() const { return &_class_data_; } + + +void Orientation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Orientation) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.type_case()) { + case kNoOrientation: { + _this->_internal_mutable_no_orientation()->::viam::app::v1::Orientation_NoOrientation::MergeFrom( + from._internal_no_orientation()); + break; + } + case kVectorRadians: { + _this->_internal_mutable_vector_radians()->::viam::app::v1::Orientation_OrientationVectorRadians::MergeFrom( + from._internal_vector_radians()); + break; + } + case kVectorDegrees: { + _this->_internal_mutable_vector_degrees()->::viam::app::v1::Orientation_OrientationVectorDegrees::MergeFrom( + from._internal_vector_degrees()); + break; + } + case kEulerAngles: { + _this->_internal_mutable_euler_angles()->::viam::app::v1::Orientation_EulerAngles::MergeFrom( + from._internal_euler_angles()); + break; + } + case kAxisAngles: { + _this->_internal_mutable_axis_angles()->::viam::app::v1::Orientation_AxisAngles::MergeFrom( + from._internal_axis_angles()); + break; + } + case kQuaternion: { + _this->_internal_mutable_quaternion()->::viam::app::v1::Orientation_Quaternion::MergeFrom( + from._internal_quaternion()); + break; + } + case TYPE_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Orientation::CopyFrom(const Orientation& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.Orientation) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Orientation::IsInitialized() const { + return true; +} + +void Orientation::InternalSwap(Orientation* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.type_, other->_impl_.type_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Orientation::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[17]); +} + +// =================================================================== + +class RemoteConfig::_Internal { + public: + static const ::viam::app::v1::Frame& frame(const RemoteConfig* msg); + static const ::viam::app::v1::RemoteAuth& auth(const RemoteConfig* msg); + static const ::PROTOBUF_NAMESPACE_ID::Duration& connection_check_interval(const RemoteConfig* msg); + static const ::PROTOBUF_NAMESPACE_ID::Duration& reconnect_interval(const RemoteConfig* msg); +}; + +const ::viam::app::v1::Frame& +RemoteConfig::_Internal::frame(const RemoteConfig* msg) { + return *msg->_impl_.frame_; +} +const ::viam::app::v1::RemoteAuth& +RemoteConfig::_Internal::auth(const RemoteConfig* msg) { + return *msg->_impl_.auth_; +} +const ::PROTOBUF_NAMESPACE_ID::Duration& +RemoteConfig::_Internal::connection_check_interval(const RemoteConfig* msg) { + return *msg->_impl_.connection_check_interval_; +} +const ::PROTOBUF_NAMESPACE_ID::Duration& +RemoteConfig::_Internal::reconnect_interval(const RemoteConfig* msg) { + return *msg->_impl_.reconnect_interval_; +} +void RemoteConfig::clear_connection_check_interval() { + if (GetArenaForAllocation() == nullptr && _impl_.connection_check_interval_ != nullptr) { + delete _impl_.connection_check_interval_; + } + _impl_.connection_check_interval_ = nullptr; +} +void RemoteConfig::clear_reconnect_interval() { + if (GetArenaForAllocation() == nullptr && _impl_.reconnect_interval_ != nullptr) { + delete _impl_.reconnect_interval_; + } + _impl_.reconnect_interval_ = nullptr; +} +RemoteConfig::RemoteConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.RemoteConfig) +} +RemoteConfig::RemoteConfig(const RemoteConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RemoteConfig* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.service_configs_){from._impl_.service_configs_} + , decltype(_impl_.name_){} + , decltype(_impl_.address_){} + , decltype(_impl_.managed_by_){} + , decltype(_impl_.secret_){} + , decltype(_impl_.frame_){nullptr} + , decltype(_impl_.auth_){nullptr} + , decltype(_impl_.connection_check_interval_){nullptr} + , decltype(_impl_.reconnect_interval_){nullptr} + , decltype(_impl_.insecure_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.address_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.address_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_address().empty()) { + _this->_impl_.address_.Set(from._internal_address(), + _this->GetArenaForAllocation()); + } + _impl_.managed_by_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.managed_by_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_managed_by().empty()) { + _this->_impl_.managed_by_.Set(from._internal_managed_by(), + _this->GetArenaForAllocation()); + } + _impl_.secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_secret().empty()) { + _this->_impl_.secret_.Set(from._internal_secret(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_frame()) { + _this->_impl_.frame_ = new ::viam::app::v1::Frame(*from._impl_.frame_); + } + if (from._internal_has_auth()) { + _this->_impl_.auth_ = new ::viam::app::v1::RemoteAuth(*from._impl_.auth_); + } + if (from._internal_has_connection_check_interval()) { + _this->_impl_.connection_check_interval_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from._impl_.connection_check_interval_); + } + if (from._internal_has_reconnect_interval()) { + _this->_impl_.reconnect_interval_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from._impl_.reconnect_interval_); + } + _this->_impl_.insecure_ = from._impl_.insecure_; + // @@protoc_insertion_point(copy_constructor:viam.app.v1.RemoteConfig) +} + +inline void RemoteConfig::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.service_configs_){arena} + , decltype(_impl_.name_){} + , decltype(_impl_.address_){} + , decltype(_impl_.managed_by_){} + , decltype(_impl_.secret_){} + , decltype(_impl_.frame_){nullptr} + , decltype(_impl_.auth_){nullptr} + , decltype(_impl_.connection_check_interval_){nullptr} + , decltype(_impl_.reconnect_interval_){nullptr} + , decltype(_impl_.insecure_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.address_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.address_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.managed_by_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.managed_by_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +RemoteConfig::~RemoteConfig() { + // @@protoc_insertion_point(destructor:viam.app.v1.RemoteConfig) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RemoteConfig::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.service_configs_.~RepeatedPtrField(); + _impl_.name_.Destroy(); + _impl_.address_.Destroy(); + _impl_.managed_by_.Destroy(); + _impl_.secret_.Destroy(); + if (this != internal_default_instance()) delete _impl_.frame_; + if (this != internal_default_instance()) delete _impl_.auth_; + if (this != internal_default_instance()) delete _impl_.connection_check_interval_; + if (this != internal_default_instance()) delete _impl_.reconnect_interval_; +} + +void RemoteConfig::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RemoteConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.RemoteConfig) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.service_configs_.Clear(); + _impl_.name_.ClearToEmpty(); + _impl_.address_.ClearToEmpty(); + _impl_.managed_by_.ClearToEmpty(); + _impl_.secret_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.frame_ != nullptr) { + delete _impl_.frame_; + } + _impl_.frame_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.auth_ != nullptr) { + delete _impl_.auth_; + } + _impl_.auth_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.connection_check_interval_ != nullptr) { + delete _impl_.connection_check_interval_; + } + _impl_.connection_check_interval_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.reconnect_interval_ != nullptr) { + delete _impl_.reconnect_interval_; + } + _impl_.reconnect_interval_ = nullptr; + _impl_.insecure_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RemoteConfig::_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.app.v1.RemoteConfig.name")); + } else + goto handle_unusual; + continue; + // string address = 2 [json_name = "address"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_address(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RemoteConfig.address")); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Frame frame = 3 [json_name = "frame"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_frame(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.RemoteAuth auth = 4 [json_name = "auth"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_auth(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string managed_by = 5 [json_name = "managedBy"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_managed_by(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RemoteConfig.managed_by")); + } else + goto handle_unusual; + continue; + // bool insecure = 6 [json_name = "insecure"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + _impl_.insecure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Duration connection_check_interval = 7 [json_name = "connectionCheckInterval"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_connection_check_interval(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Duration reconnect_interval = 8 [json_name = "reconnectInterval"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_reconnect_interval(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 9 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_service_configs(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr)); + } else + goto handle_unusual; + continue; + // string secret = 10 [json_name = "secret"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + auto str = _internal_mutable_secret(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RemoteConfig.secret")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* RemoteConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RemoteConfig) + 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.app.v1.RemoteConfig.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string address = 2 [json_name = "address"]; + if (!this->_internal_address().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_address().data(), static_cast(this->_internal_address().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RemoteConfig.address"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_address(), target); + } + + // .viam.app.v1.Frame frame = 3 [json_name = "frame"]; + if (this->_internal_has_frame()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::frame(this), + _Internal::frame(this).GetCachedSize(), target, stream); + } + + // .viam.app.v1.RemoteAuth auth = 4 [json_name = "auth"]; + if (this->_internal_has_auth()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::auth(this), + _Internal::auth(this).GetCachedSize(), target, stream); + } + + // string managed_by = 5 [json_name = "managedBy"]; + if (!this->_internal_managed_by().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_managed_by().data(), static_cast(this->_internal_managed_by().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RemoteConfig.managed_by"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_managed_by(), target); + } + + // bool insecure = 6 [json_name = "insecure"]; + if (this->_internal_insecure() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_insecure(), target); + } + + // .google.protobuf.Duration connection_check_interval = 7 [json_name = "connectionCheckInterval"]; + if (this->_internal_has_connection_check_interval()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::connection_check_interval(this), + _Internal::connection_check_interval(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Duration reconnect_interval = 8 [json_name = "reconnectInterval"]; + if (this->_internal_has_reconnect_interval()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::reconnect_interval(this), + _Internal::reconnect_interval(this).GetCachedSize(), target, stream); + } + + // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 9 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; + for (unsigned i = 0, + n = static_cast(this->_internal_service_configs_size()); i < n; i++) { + const auto& repfield = this->_internal_service_configs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, repfield, repfield.GetCachedSize(), target, stream); + } + + // string secret = 10 [json_name = "secret"]; + if (!this->_internal_secret().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_secret().data(), static_cast(this->_internal_secret().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RemoteConfig.secret"); + target = stream->WriteStringMaybeAliased( + 10, this->_internal_secret(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.RemoteConfig) + return target; +} + +size_t RemoteConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RemoteConfig) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 9 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; + total_size += 1UL * this->_internal_service_configs_size(); + for (const auto& msg : this->_impl_.service_configs_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // string address = 2 [json_name = "address"]; + if (!this->_internal_address().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_address()); + } + + // string managed_by = 5 [json_name = "managedBy"]; + if (!this->_internal_managed_by().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_managed_by()); + } + + // string secret = 10 [json_name = "secret"]; + if (!this->_internal_secret().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_secret()); + } + + // .viam.app.v1.Frame frame = 3 [json_name = "frame"]; + if (this->_internal_has_frame()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.frame_); + } + + // .viam.app.v1.RemoteAuth auth = 4 [json_name = "auth"]; + if (this->_internal_has_auth()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.auth_); + } + + // .google.protobuf.Duration connection_check_interval = 7 [json_name = "connectionCheckInterval"]; + if (this->_internal_has_connection_check_interval()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.connection_check_interval_); + } + + // .google.protobuf.Duration reconnect_interval = 8 [json_name = "reconnectInterval"]; + if (this->_internal_has_reconnect_interval()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.reconnect_interval_); + } + + // bool insecure = 6 [json_name = "insecure"]; + if (this->_internal_insecure() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoteConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RemoteConfig::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoteConfig::GetClassData() const { return &_class_data_; } + + +void RemoteConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RemoteConfig) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.service_configs_.MergeFrom(from._impl_.service_configs_); + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_address().empty()) { + _this->_internal_set_address(from._internal_address()); + } + if (!from._internal_managed_by().empty()) { + _this->_internal_set_managed_by(from._internal_managed_by()); + } + if (!from._internal_secret().empty()) { + _this->_internal_set_secret(from._internal_secret()); + } + if (from._internal_has_frame()) { + _this->_internal_mutable_frame()->::viam::app::v1::Frame::MergeFrom( + from._internal_frame()); + } + if (from._internal_has_auth()) { + _this->_internal_mutable_auth()->::viam::app::v1::RemoteAuth::MergeFrom( + from._internal_auth()); + } + if (from._internal_has_connection_check_interval()) { + _this->_internal_mutable_connection_check_interval()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom( + from._internal_connection_check_interval()); + } + if (from._internal_has_reconnect_interval()) { + _this->_internal_mutable_reconnect_interval()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom( + from._internal_reconnect_interval()); + } + if (from._internal_insecure() != 0) { + _this->_internal_set_insecure(from._internal_insecure()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RemoteConfig::CopyFrom(const RemoteConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.RemoteConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RemoteConfig::IsInitialized() const { + return true; +} + +void RemoteConfig::InternalSwap(RemoteConfig* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.service_configs_.InternalSwap(&other->_impl_.service_configs_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.address_, lhs_arena, + &other->_impl_.address_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.managed_by_, lhs_arena, + &other->_impl_.managed_by_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.secret_, lhs_arena, + &other->_impl_.secret_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.insecure_) + + sizeof(RemoteConfig::_impl_.insecure_) + - PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.frame_)>( + reinterpret_cast(&_impl_.frame_), + reinterpret_cast(&other->_impl_.frame_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RemoteConfig::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[18]); +} + +// =================================================================== + +class RemoteAuth_Credentials::_Internal { + public: +}; + +RemoteAuth_Credentials::RemoteAuth_Credentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.RemoteAuth.Credentials) +} +RemoteAuth_Credentials::RemoteAuth_Credentials(const RemoteAuth_Credentials& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RemoteAuth_Credentials* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.payload_){} + , decltype(_impl_.type_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.payload_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.payload_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_payload().empty()) { + _this->_impl_.payload_.Set(from._internal_payload(), + _this->GetArenaForAllocation()); + } + _this->_impl_.type_ = from._impl_.type_; + // @@protoc_insertion_point(copy_constructor:viam.app.v1.RemoteAuth.Credentials) +} + +inline void RemoteAuth_Credentials::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.payload_){} + , decltype(_impl_.type_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.payload_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.payload_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +RemoteAuth_Credentials::~RemoteAuth_Credentials() { + // @@protoc_insertion_point(destructor:viam.app.v1.RemoteAuth.Credentials) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RemoteAuth_Credentials::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.payload_.Destroy(); +} + +void RemoteAuth_Credentials::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RemoteAuth_Credentials::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.RemoteAuth.Credentials) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.payload_.ClearToEmpty(); + _impl_.type_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RemoteAuth_Credentials::_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) { + // .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::viam::app::v1::CredentialsType>(val)); + } else + goto handle_unusual; + continue; + // string payload = 2 [json_name = "payload"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_payload(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RemoteAuth.Credentials.payload")); + } 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* RemoteAuth_Credentials::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RemoteAuth.Credentials) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; + if (this->_internal_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_type(), target); + } + + // string payload = 2 [json_name = "payload"]; + if (!this->_internal_payload().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_payload().data(), static_cast(this->_internal_payload().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RemoteAuth.Credentials.payload"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_payload(), 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.RemoteAuth.Credentials) + return target; +} + +size_t RemoteAuth_Credentials::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RemoteAuth.Credentials) + 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 payload = 2 [json_name = "payload"]; + if (!this->_internal_payload().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_payload()); + } + + // .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; + if (this->_internal_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoteAuth_Credentials::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RemoteAuth_Credentials::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoteAuth_Credentials::GetClassData() const { return &_class_data_; } + + +void RemoteAuth_Credentials::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RemoteAuth.Credentials) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_payload().empty()) { + _this->_internal_set_payload(from._internal_payload()); + } + if (from._internal_type() != 0) { + _this->_internal_set_type(from._internal_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RemoteAuth_Credentials::CopyFrom(const RemoteAuth_Credentials& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.RemoteAuth.Credentials) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RemoteAuth_Credentials::IsInitialized() const { + return true; +} + +void RemoteAuth_Credentials::InternalSwap(RemoteAuth_Credentials* 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( + &_impl_.payload_, lhs_arena, + &other->_impl_.payload_, rhs_arena + ); + swap(_impl_.type_, other->_impl_.type_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RemoteAuth_Credentials::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[19]); +} + +// =================================================================== + +class RemoteAuth::_Internal { + public: + static const ::viam::app::v1::RemoteAuth_Credentials& credentials(const RemoteAuth* msg); +}; + +const ::viam::app::v1::RemoteAuth_Credentials& +RemoteAuth::_Internal::credentials(const RemoteAuth* msg) { + return *msg->_impl_.credentials_; +} +RemoteAuth::RemoteAuth(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.RemoteAuth) +} +RemoteAuth::RemoteAuth(const RemoteAuth& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RemoteAuth* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.entity_){} + , decltype(_impl_.credentials_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.entity_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.entity_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_entity().empty()) { + _this->_impl_.entity_.Set(from._internal_entity(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_credentials()) { + _this->_impl_.credentials_ = new ::viam::app::v1::RemoteAuth_Credentials(*from._impl_.credentials_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.RemoteAuth) +} + +inline void RemoteAuth::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.entity_){} + , decltype(_impl_.credentials_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.entity_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.entity_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +RemoteAuth::~RemoteAuth() { + // @@protoc_insertion_point(destructor:viam.app.v1.RemoteAuth) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RemoteAuth::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.entity_.Destroy(); + if (this != internal_default_instance()) delete _impl_.credentials_; +} + +void RemoteAuth::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RemoteAuth::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.RemoteAuth) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.entity_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.credentials_ != nullptr) { + delete _impl_.credentials_; + } + _impl_.credentials_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RemoteAuth::_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) { + // .viam.app.v1.RemoteAuth.Credentials credentials = 1 [json_name = "credentials"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_credentials(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string entity = 2 [json_name = "entity"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_entity(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RemoteAuth.entity")); + } 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* RemoteAuth::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RemoteAuth) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.v1.RemoteAuth.Credentials credentials = 1 [json_name = "credentials"]; + if (this->_internal_has_credentials()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::credentials(this), + _Internal::credentials(this).GetCachedSize(), target, stream); + } + + // string entity = 2 [json_name = "entity"]; + if (!this->_internal_entity().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_entity().data(), static_cast(this->_internal_entity().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RemoteAuth.entity"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_entity(), 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.RemoteAuth) + return target; +} + +size_t RemoteAuth::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RemoteAuth) + 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 entity = 2 [json_name = "entity"]; + if (!this->_internal_entity().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_entity()); + } + + // .viam.app.v1.RemoteAuth.Credentials credentials = 1 [json_name = "credentials"]; + if (this->_internal_has_credentials()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.credentials_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoteAuth::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RemoteAuth::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoteAuth::GetClassData() const { return &_class_data_; } + + +void RemoteAuth::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RemoteAuth) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_entity().empty()) { + _this->_internal_set_entity(from._internal_entity()); + } + if (from._internal_has_credentials()) { + _this->_internal_mutable_credentials()->::viam::app::v1::RemoteAuth_Credentials::MergeFrom( + from._internal_credentials()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RemoteAuth::CopyFrom(const RemoteAuth& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.RemoteAuth) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RemoteAuth::IsInitialized() const { + return true; +} + +void RemoteAuth::InternalSwap(RemoteAuth* 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( + &_impl_.entity_, lhs_arena, + &other->_impl_.entity_, rhs_arena + ); + swap(_impl_.credentials_, other->_impl_.credentials_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RemoteAuth::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[20]); +} + +// =================================================================== + +class AgentInfo::_Internal { + public: +}; + +AgentInfo::AgentInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.AgentInfo) +} +AgentInfo::AgentInfo(const AgentInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + AgentInfo* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.ips_){from._impl_.ips_} + , decltype(_impl_.host_){} + , decltype(_impl_.os_){} + , decltype(_impl_.version_){} + , decltype(_impl_.git_revision_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.host_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.host_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_host().empty()) { + _this->_impl_.host_.Set(from._internal_host(), + _this->GetArenaForAllocation()); + } + _impl_.os_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.os_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_os().empty()) { + _this->_impl_.os_.Set(from._internal_os(), + _this->GetArenaForAllocation()); + } + _impl_.version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_version().empty()) { + _this->_impl_.version_.Set(from._internal_version(), + _this->GetArenaForAllocation()); + } + _impl_.git_revision_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.git_revision_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_git_revision().empty()) { + _this->_impl_.git_revision_.Set(from._internal_git_revision(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.AgentInfo) +} + +inline void AgentInfo::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.ips_){arena} + , decltype(_impl_.host_){} + , decltype(_impl_.os_){} + , decltype(_impl_.version_){} + , decltype(_impl_.git_revision_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.host_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.host_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.os_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.os_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.git_revision_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.git_revision_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +AgentInfo::~AgentInfo() { + // @@protoc_insertion_point(destructor:viam.app.v1.AgentInfo) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void AgentInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.ips_.~RepeatedPtrField(); + _impl_.host_.Destroy(); + _impl_.os_.Destroy(); + _impl_.version_.Destroy(); + _impl_.git_revision_.Destroy(); +} + +void AgentInfo::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void AgentInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.AgentInfo) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.ips_.Clear(); + _impl_.host_.ClearToEmpty(); + _impl_.os_.ClearToEmpty(); + _impl_.version_.ClearToEmpty(); + _impl_.git_revision_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AgentInfo::_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 host = 1 [json_name = "host"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_host(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AgentInfo.host")); + } else + goto handle_unusual; + continue; + // string os = 2 [json_name = "os"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_os(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AgentInfo.os")); + } else + goto handle_unusual; + continue; + // repeated string ips = 3 [json_name = "ips"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_ips(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AgentInfo.ips")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // string version = 4 [json_name = "version"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AgentInfo.version")); + } else + goto handle_unusual; + continue; + // string git_revision = 5 [json_name = "gitRevision"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_git_revision(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AgentInfo.git_revision")); + } 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* AgentInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.AgentInfo) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string host = 1 [json_name = "host"]; + if (!this->_internal_host().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_host().data(), static_cast(this->_internal_host().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AgentInfo.host"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_host(), target); + } + + // string os = 2 [json_name = "os"]; + if (!this->_internal_os().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_os().data(), static_cast(this->_internal_os().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AgentInfo.os"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_os(), target); + } + + // repeated string ips = 3 [json_name = "ips"]; + for (int i = 0, n = this->_internal_ips_size(); i < n; i++) { + const auto& s = this->_internal_ips(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AgentInfo.ips"); + target = stream->WriteString(3, s, target); + } + + // string version = 4 [json_name = "version"]; + if (!this->_internal_version().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_version().data(), static_cast(this->_internal_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AgentInfo.version"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_version(), target); + } + + // string git_revision = 5 [json_name = "gitRevision"]; + if (!this->_internal_git_revision().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_git_revision().data(), static_cast(this->_internal_git_revision().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AgentInfo.git_revision"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_git_revision(), 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.AgentInfo) + return target; +} + +size_t AgentInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.AgentInfo) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string ips = 3 [json_name = "ips"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.ips_.size()); + for (int i = 0, n = _impl_.ips_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.ips_.Get(i)); + } + + // string host = 1 [json_name = "host"]; + if (!this->_internal_host().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_host()); + } + + // string os = 2 [json_name = "os"]; + if (!this->_internal_os().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_os()); + } + + // string version = 4 [json_name = "version"]; + if (!this->_internal_version().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_version()); + } + + // string git_revision = 5 [json_name = "gitRevision"]; + if (!this->_internal_git_revision().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_git_revision()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AgentInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AgentInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AgentInfo::GetClassData() const { return &_class_data_; } + + +void AgentInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.AgentInfo) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.ips_.MergeFrom(from._impl_.ips_); + if (!from._internal_host().empty()) { + _this->_internal_set_host(from._internal_host()); + } + if (!from._internal_os().empty()) { + _this->_internal_set_os(from._internal_os()); + } + if (!from._internal_version().empty()) { + _this->_internal_set_version(from._internal_version()); + } + if (!from._internal_git_revision().empty()) { + _this->_internal_set_git_revision(from._internal_git_revision()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AgentInfo::CopyFrom(const AgentInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.AgentInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AgentInfo::IsInitialized() const { + return true; +} + +void AgentInfo::InternalSwap(AgentInfo* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.ips_.InternalSwap(&other->_impl_.ips_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.host_, lhs_arena, + &other->_impl_.host_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.os_, lhs_arena, + &other->_impl_.os_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.version_, lhs_arena, + &other->_impl_.version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.git_revision_, lhs_arena, + &other->_impl_.git_revision_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AgentInfo::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[21]); +} + +// =================================================================== + +class ConfigRequest::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static const ::viam::app::v1::AgentInfo& agent_info(const ConfigRequest* msg); + static void set_has_agent_info(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::viam::app::v1::AgentInfo& +ConfigRequest::_Internal::agent_info(const ConfigRequest* msg) { + return *msg->_impl_.agent_info_; +} +ConfigRequest::ConfigRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.ConfigRequest) +} +ConfigRequest::ConfigRequest(const ConfigRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ConfigRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.id_){} + , decltype(_impl_.agent_info_){nullptr}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_agent_info()) { + _this->_impl_.agent_info_ = new ::viam::app::v1::AgentInfo(*from._impl_.agent_info_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ConfigRequest) +} + +inline void ConfigRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.id_){} + , decltype(_impl_.agent_info_){nullptr} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ConfigRequest::~ConfigRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.ConfigRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ConfigRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); + if (this != internal_default_instance()) delete _impl_.agent_info_; +} + +void ConfigRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ConfigRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ConfigRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(_impl_.agent_info_ != nullptr); + _impl_.agent_info_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ConfigRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ConfigRequest.id")); + } else + goto handle_unusual; + continue; + // optional .viam.app.v1.AgentInfo agent_info = 2 [json_name = "agentInfo"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_agent_info(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + _impl_._has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ConfigRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ConfigRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ConfigRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // optional .viam.app.v1.AgentInfo agent_info = 2 [json_name = "agentInfo"]; + if (_internal_has_agent_info()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::agent_info(this), + _Internal::agent_info(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.ConfigRequest) + return target; +} + +size_t ConfigRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ConfigRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // optional .viam.app.v1.AgentInfo agent_info = 2 [json_name = "agentInfo"]; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.agent_info_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ConfigRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ConfigRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ConfigRequest::GetClassData() const { return &_class_data_; } + + +void ConfigRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ConfigRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + if (from._internal_has_agent_info()) { + _this->_internal_mutable_agent_info()->::viam::app::v1::AgentInfo::MergeFrom( + from._internal_agent_info()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ConfigRequest::CopyFrom(const ConfigRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ConfigRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ConfigRequest::IsInitialized() const { + return true; +} + +void ConfigRequest::InternalSwap(ConfigRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); + swap(_impl_.agent_info_, other->_impl_.agent_info_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ConfigRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[22]); +} + +// =================================================================== + +class ConfigResponse::_Internal { + public: + static const ::viam::app::v1::RobotConfig& config(const ConfigResponse* msg); +}; + +const ::viam::app::v1::RobotConfig& +ConfigResponse::_Internal::config(const ConfigResponse* msg) { + return *msg->_impl_.config_; +} +ConfigResponse::ConfigResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.ConfigResponse) +} +ConfigResponse::ConfigResponse(const ConfigResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ConfigResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.config_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_config()) { + _this->_impl_.config_ = new ::viam::app::v1::RobotConfig(*from._impl_.config_); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ConfigResponse) +} + +inline void ConfigResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.config_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +ConfigResponse::~ConfigResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.ConfigResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ConfigResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.config_; +} + +void ConfigResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ConfigResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ConfigResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.config_ != nullptr) { + delete _impl_.config_; + } + _impl_.config_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ConfigResponse::_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) { + // .viam.app.v1.RobotConfig config = 1 [json_name = "config"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_config(), 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* ConfigResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ConfigResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.v1.RobotConfig config = 1 [json_name = "config"]; + if (this->_internal_has_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::config(this), + _Internal::config(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.ConfigResponse) + return target; +} + +size_t ConfigResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ConfigResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.app.v1.RobotConfig config = 1 [json_name = "config"]; + if (this->_internal_has_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.config_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ConfigResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ConfigResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ConfigResponse::GetClassData() const { return &_class_data_; } + + +void ConfigResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ConfigResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_config()) { + _this->_internal_mutable_config()->::viam::app::v1::RobotConfig::MergeFrom( + from._internal_config()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ConfigResponse::CopyFrom(const ConfigResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ConfigResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ConfigResponse::IsInitialized() const { + return true; +} + +void ConfigResponse::InternalSwap(ConfigResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.config_, other->_impl_.config_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ConfigResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[23]); +} + +// =================================================================== + +class CertificateRequest::_Internal { + public: +}; + +CertificateRequest::CertificateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.CertificateRequest) +} +CertificateRequest::CertificateRequest(const CertificateRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + CertificateRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.CertificateRequest) +} + +inline void CertificateRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +CertificateRequest::~CertificateRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.CertificateRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CertificateRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); +} + +void CertificateRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void CertificateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CertificateRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CertificateRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CertificateRequest.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* CertificateRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CertificateRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CertificateRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_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.CertificateRequest) + return target; +} + +size_t CertificateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CertificateRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CertificateRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + CertificateRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CertificateRequest::GetClassData() const { return &_class_data_; } + + +void CertificateRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CertificateRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CertificateRequest::CopyFrom(const CertificateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.CertificateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CertificateRequest::IsInitialized() const { + return true; +} + +void CertificateRequest::InternalSwap(CertificateRequest* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CertificateRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[24]); +} + +// =================================================================== + +class CertificateResponse::_Internal { + public: +}; + +CertificateResponse::CertificateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.CertificateResponse) +} +CertificateResponse::CertificateResponse(const CertificateResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + CertificateResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.tls_certificate_){} + , decltype(_impl_.tls_private_key_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + _impl_.tls_certificate_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.tls_certificate_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_tls_certificate().empty()) { + _this->_impl_.tls_certificate_.Set(from._internal_tls_certificate(), + _this->GetArenaForAllocation()); + } + _impl_.tls_private_key_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.tls_private_key_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_tls_private_key().empty()) { + _this->_impl_.tls_private_key_.Set(from._internal_tls_private_key(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.CertificateResponse) +} + +inline void CertificateResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.tls_certificate_){} + , decltype(_impl_.tls_private_key_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.tls_certificate_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.tls_certificate_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.tls_private_key_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.tls_private_key_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +CertificateResponse::~CertificateResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.CertificateResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CertificateResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); + _impl_.tls_certificate_.Destroy(); + _impl_.tls_private_key_.Destroy(); +} + +void CertificateResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void CertificateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CertificateResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _impl_.tls_certificate_.ClearToEmpty(); + _impl_.tls_private_key_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CertificateResponse::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CertificateResponse.id")); + } else + goto handle_unusual; + continue; + // string tls_certificate = 2 [json_name = "tlsCertificate"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_tls_certificate(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CertificateResponse.tls_certificate")); + } else + goto handle_unusual; + continue; + // string tls_private_key = 3 [json_name = "tlsPrivateKey"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_tls_private_key(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CertificateResponse.tls_private_key")); + } 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* CertificateResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CertificateResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CertificateResponse.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // string tls_certificate = 2 [json_name = "tlsCertificate"]; + if (!this->_internal_tls_certificate().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_tls_certificate().data(), static_cast(this->_internal_tls_certificate().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CertificateResponse.tls_certificate"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_tls_certificate(), target); + } + + // string tls_private_key = 3 [json_name = "tlsPrivateKey"]; + if (!this->_internal_tls_private_key().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_tls_private_key().data(), static_cast(this->_internal_tls_private_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CertificateResponse.tls_private_key"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_tls_private_key(), 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.CertificateResponse) + return target; +} + +size_t CertificateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CertificateResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // string tls_certificate = 2 [json_name = "tlsCertificate"]; + if (!this->_internal_tls_certificate().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_tls_certificate()); + } + + // string tls_private_key = 3 [json_name = "tlsPrivateKey"]; + if (!this->_internal_tls_private_key().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_tls_private_key()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CertificateResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + CertificateResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CertificateResponse::GetClassData() const { return &_class_data_; } + + +void CertificateResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CertificateResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + if (!from._internal_tls_certificate().empty()) { + _this->_internal_set_tls_certificate(from._internal_tls_certificate()); + } + if (!from._internal_tls_private_key().empty()) { + _this->_internal_set_tls_private_key(from._internal_tls_private_key()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CertificateResponse::CopyFrom(const CertificateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.CertificateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CertificateResponse::IsInitialized() const { + return true; +} + +void CertificateResponse::InternalSwap(CertificateResponse* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.tls_certificate_, lhs_arena, + &other->_impl_.tls_certificate_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.tls_private_key_, lhs_arena, + &other->_impl_.tls_private_key_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CertificateResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[25]); +} + +// =================================================================== + +class LogRequest::_Internal { + public: +}; + +void LogRequest::clear_logs() { + _impl_.logs_.Clear(); +} +LogRequest::LogRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.LogRequest) +} +LogRequest::LogRequest(const LogRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + LogRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.logs_){from._impl_.logs_} + , decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.LogRequest) +} + +inline void LogRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.logs_){arena} + , decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +LogRequest::~LogRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.LogRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void LogRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.logs_.~RepeatedPtrField(); + _impl_.id_.Destroy(); +} + +void LogRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void LogRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.LogRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.logs_.Clear(); + _impl_.id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LogRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LogRequest.id")); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.LogEntry logs = 2 [json_name = "logs"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_logs(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* LogRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.LogRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.LogRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // repeated .viam.app.v1.LogEntry logs = 2 [json_name = "logs"]; + for (unsigned i = 0, + n = static_cast(this->_internal_logs_size()); i < n; i++) { + const auto& repfield = this->_internal_logs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.LogRequest) + return target; +} + +size_t LogRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.LogRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.app.v1.LogEntry logs = 2 [json_name = "logs"]; + total_size += 1UL * this->_internal_logs_size(); + for (const auto& msg : this->_impl_.logs_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LogRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + LogRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogRequest::GetClassData() const { return &_class_data_; } + + +void LogRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LogRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.logs_.MergeFrom(from._impl_.logs_); + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void LogRequest::CopyFrom(const LogRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.LogRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LogRequest::IsInitialized() const { + return true; +} + +void LogRequest::InternalSwap(LogRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.logs_.InternalSwap(&other->_impl_.logs_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata LogRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[26]); +} + +// =================================================================== + +class LogResponse::_Internal { + public: +}; + +LogResponse::LogResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.app.v1.LogResponse) +} +LogResponse::LogResponse(const LogResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + LogResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.LogResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LogResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata LogResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[27]); +} + +// =================================================================== + +class NeedsRestartRequest::_Internal { + public: +}; + +NeedsRestartRequest::NeedsRestartRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.NeedsRestartRequest) +} +NeedsRestartRequest::NeedsRestartRequest(const NeedsRestartRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + NeedsRestartRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.NeedsRestartRequest) +} + +inline void NeedsRestartRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +NeedsRestartRequest::~NeedsRestartRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.NeedsRestartRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void NeedsRestartRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); +} + +void NeedsRestartRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void NeedsRestartRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.NeedsRestartRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NeedsRestartRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NeedsRestartRequest.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* NeedsRestartRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.NeedsRestartRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NeedsRestartRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_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.NeedsRestartRequest) + return target; +} + +size_t NeedsRestartRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.NeedsRestartRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NeedsRestartRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + NeedsRestartRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NeedsRestartRequest::GetClassData() const { return &_class_data_; } + + +void NeedsRestartRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.NeedsRestartRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void NeedsRestartRequest::CopyFrom(const NeedsRestartRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.NeedsRestartRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NeedsRestartRequest::IsInitialized() const { + return true; +} + +void NeedsRestartRequest::InternalSwap(NeedsRestartRequest* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata NeedsRestartRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[28]); +} + +// =================================================================== + +class NeedsRestartResponse::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Duration& restart_check_interval(const NeedsRestartResponse* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Duration& +NeedsRestartResponse::_Internal::restart_check_interval(const NeedsRestartResponse* msg) { + return *msg->_impl_.restart_check_interval_; +} +void NeedsRestartResponse::clear_restart_check_interval() { + if (GetArenaForAllocation() == nullptr && _impl_.restart_check_interval_ != nullptr) { + delete _impl_.restart_check_interval_; + } + _impl_.restart_check_interval_ = nullptr; +} +NeedsRestartResponse::NeedsRestartResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.NeedsRestartResponse) +} +NeedsRestartResponse::NeedsRestartResponse(const NeedsRestartResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + NeedsRestartResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.restart_check_interval_){nullptr} + , decltype(_impl_.must_restart_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_restart_check_interval()) { + _this->_impl_.restart_check_interval_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from._impl_.restart_check_interval_); + } + _this->_impl_.must_restart_ = from._impl_.must_restart_; + // @@protoc_insertion_point(copy_constructor:viam.app.v1.NeedsRestartResponse) +} + +inline void NeedsRestartResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.restart_check_interval_){nullptr} + , decltype(_impl_.must_restart_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +NeedsRestartResponse::~NeedsRestartResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.NeedsRestartResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void NeedsRestartResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); + if (this != internal_default_instance()) delete _impl_.restart_check_interval_; +} + +void NeedsRestartResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void NeedsRestartResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.NeedsRestartResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.restart_check_interval_ != nullptr) { + delete _impl_.restart_check_interval_; + } + _impl_.restart_check_interval_ = nullptr; + _impl_.must_restart_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NeedsRestartResponse::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NeedsRestartResponse.id")); + } else + goto handle_unusual; + continue; + // bool must_restart = 2 [json_name = "mustRestart"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.must_restart_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Duration restart_check_interval = 3 [json_name = "restartCheckInterval"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_restart_check_interval(), 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* NeedsRestartResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.NeedsRestartResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NeedsRestartResponse.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // bool must_restart = 2 [json_name = "mustRestart"]; + if (this->_internal_must_restart() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_must_restart(), target); + } + + // .google.protobuf.Duration restart_check_interval = 3 [json_name = "restartCheckInterval"]; + if (this->_internal_has_restart_check_interval()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::restart_check_interval(this), + _Internal::restart_check_interval(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.NeedsRestartResponse) + return target; +} + +size_t NeedsRestartResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.NeedsRestartResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // .google.protobuf.Duration restart_check_interval = 3 [json_name = "restartCheckInterval"]; + if (this->_internal_has_restart_check_interval()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.restart_check_interval_); + } + + // bool must_restart = 2 [json_name = "mustRestart"]; + if (this->_internal_must_restart() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NeedsRestartResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + NeedsRestartResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NeedsRestartResponse::GetClassData() const { return &_class_data_; } + + +void NeedsRestartResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.NeedsRestartResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + if (from._internal_has_restart_check_interval()) { + _this->_internal_mutable_restart_check_interval()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom( + from._internal_restart_check_interval()); + } + if (from._internal_must_restart() != 0) { + _this->_internal_set_must_restart(from._internal_must_restart()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void NeedsRestartResponse::CopyFrom(const NeedsRestartResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.NeedsRestartResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NeedsRestartResponse::IsInitialized() const { + return true; +} + +void NeedsRestartResponse::InternalSwap(NeedsRestartResponse* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(NeedsRestartResponse, _impl_.must_restart_) + + sizeof(NeedsRestartResponse::_impl_.must_restart_) + - PROTOBUF_FIELD_OFFSET(NeedsRestartResponse, _impl_.restart_check_interval_)>( + reinterpret_cast(&_impl_.restart_check_interval_), + reinterpret_cast(&other->_impl_.restart_check_interval_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata NeedsRestartResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[29]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace app +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::app::v1::RobotConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::RobotConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RobotConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CloudConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::CloudConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CloudConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ComponentConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::ComponentConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ComponentConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ResourceLevelServiceConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::ResourceLevelServiceConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ResourceLevelServiceConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ProcessConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::ProcessConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ProcessConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ServiceConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::ServiceConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ServiceConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::NetworkConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::NetworkConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::NetworkConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::AuthConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::AuthConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::AuthConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::AuthHandlerConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::AuthHandlerConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::AuthHandlerConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Frame* +Arena::CreateMaybeMessage< ::viam::app::v1::Frame >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Frame >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Translation* +Arena::CreateMaybeMessage< ::viam::app::v1::Translation >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Translation >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Orientation_NoOrientation* +Arena::CreateMaybeMessage< ::viam::app::v1::Orientation_NoOrientation >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Orientation_NoOrientation >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Orientation_OrientationVectorRadians* +Arena::CreateMaybeMessage< ::viam::app::v1::Orientation_OrientationVectorRadians >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Orientation_OrientationVectorRadians >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Orientation_OrientationVectorDegrees* +Arena::CreateMaybeMessage< ::viam::app::v1::Orientation_OrientationVectorDegrees >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Orientation_OrientationVectorDegrees >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Orientation_EulerAngles* +Arena::CreateMaybeMessage< ::viam::app::v1::Orientation_EulerAngles >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Orientation_EulerAngles >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Orientation_AxisAngles* +Arena::CreateMaybeMessage< ::viam::app::v1::Orientation_AxisAngles >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Orientation_AxisAngles >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Orientation_Quaternion* +Arena::CreateMaybeMessage< ::viam::app::v1::Orientation_Quaternion >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Orientation_Quaternion >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Orientation* +Arena::CreateMaybeMessage< ::viam::app::v1::Orientation >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Orientation >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RemoteConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::RemoteConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RemoteConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RemoteAuth_Credentials* +Arena::CreateMaybeMessage< ::viam::app::v1::RemoteAuth_Credentials >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RemoteAuth_Credentials >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RemoteAuth* +Arena::CreateMaybeMessage< ::viam::app::v1::RemoteAuth >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RemoteAuth >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::AgentInfo* +Arena::CreateMaybeMessage< ::viam::app::v1::AgentInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::AgentInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ConfigRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::ConfigRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ConfigRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ConfigResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::ConfigResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ConfigResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CertificateRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::CertificateRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CertificateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CertificateResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::CertificateResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CertificateResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::LogRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::LogRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::LogRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::LogResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::LogResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::LogResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::NeedsRestartRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::NeedsRestartRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::NeedsRestartRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::NeedsRestartResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::NeedsRestartResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::NeedsRestartResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/app/v1/robot.pb.h b/src/gen/app/v1/robot.pb.h new file mode 100644 index 000000000..80ff96a41 --- /dev/null +++ b/src/gen/app/v1/robot.pb.h @@ -0,0 +1,11578 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: app/v1/robot.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2frobot_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2frobot_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "app/v1/app.pb.h" +#include +#include +#include "tagger/v1/tagger.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_app_2fv1_2frobot_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_app_2fv1_2frobot_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_app_2fv1_2frobot_2eproto; +namespace viam { +namespace app { +namespace v1 { +class AgentInfo; +struct AgentInfoDefaultTypeInternal; +extern AgentInfoDefaultTypeInternal _AgentInfo_default_instance_; +class AuthConfig; +struct AuthConfigDefaultTypeInternal; +extern AuthConfigDefaultTypeInternal _AuthConfig_default_instance_; +class AuthHandlerConfig; +struct AuthHandlerConfigDefaultTypeInternal; +extern AuthHandlerConfigDefaultTypeInternal _AuthHandlerConfig_default_instance_; +class CertificateRequest; +struct CertificateRequestDefaultTypeInternal; +extern CertificateRequestDefaultTypeInternal _CertificateRequest_default_instance_; +class CertificateResponse; +struct CertificateResponseDefaultTypeInternal; +extern CertificateResponseDefaultTypeInternal _CertificateResponse_default_instance_; +class CloudConfig; +struct CloudConfigDefaultTypeInternal; +extern CloudConfigDefaultTypeInternal _CloudConfig_default_instance_; +class ComponentConfig; +struct ComponentConfigDefaultTypeInternal; +extern ComponentConfigDefaultTypeInternal _ComponentConfig_default_instance_; +class ConfigRequest; +struct ConfigRequestDefaultTypeInternal; +extern ConfigRequestDefaultTypeInternal _ConfigRequest_default_instance_; +class ConfigResponse; +struct ConfigResponseDefaultTypeInternal; +extern ConfigResponseDefaultTypeInternal _ConfigResponse_default_instance_; +class Frame; +struct FrameDefaultTypeInternal; +extern FrameDefaultTypeInternal _Frame_default_instance_; +class LogRequest; +struct LogRequestDefaultTypeInternal; +extern LogRequestDefaultTypeInternal _LogRequest_default_instance_; +class LogResponse; +struct LogResponseDefaultTypeInternal; +extern LogResponseDefaultTypeInternal _LogResponse_default_instance_; +class NeedsRestartRequest; +struct NeedsRestartRequestDefaultTypeInternal; +extern NeedsRestartRequestDefaultTypeInternal _NeedsRestartRequest_default_instance_; +class NeedsRestartResponse; +struct NeedsRestartResponseDefaultTypeInternal; +extern NeedsRestartResponseDefaultTypeInternal _NeedsRestartResponse_default_instance_; +class NetworkConfig; +struct NetworkConfigDefaultTypeInternal; +extern NetworkConfigDefaultTypeInternal _NetworkConfig_default_instance_; +class Orientation; +struct OrientationDefaultTypeInternal; +extern OrientationDefaultTypeInternal _Orientation_default_instance_; +class Orientation_AxisAngles; +struct Orientation_AxisAnglesDefaultTypeInternal; +extern Orientation_AxisAnglesDefaultTypeInternal _Orientation_AxisAngles_default_instance_; +class Orientation_EulerAngles; +struct Orientation_EulerAnglesDefaultTypeInternal; +extern Orientation_EulerAnglesDefaultTypeInternal _Orientation_EulerAngles_default_instance_; +class Orientation_NoOrientation; +struct Orientation_NoOrientationDefaultTypeInternal; +extern Orientation_NoOrientationDefaultTypeInternal _Orientation_NoOrientation_default_instance_; +class Orientation_OrientationVectorDegrees; +struct Orientation_OrientationVectorDegreesDefaultTypeInternal; +extern Orientation_OrientationVectorDegreesDefaultTypeInternal _Orientation_OrientationVectorDegrees_default_instance_; +class Orientation_OrientationVectorRadians; +struct Orientation_OrientationVectorRadiansDefaultTypeInternal; +extern Orientation_OrientationVectorRadiansDefaultTypeInternal _Orientation_OrientationVectorRadians_default_instance_; +class Orientation_Quaternion; +struct Orientation_QuaternionDefaultTypeInternal; +extern Orientation_QuaternionDefaultTypeInternal _Orientation_Quaternion_default_instance_; +class ProcessConfig; +struct ProcessConfigDefaultTypeInternal; +extern ProcessConfigDefaultTypeInternal _ProcessConfig_default_instance_; +class RemoteAuth; +struct RemoteAuthDefaultTypeInternal; +extern RemoteAuthDefaultTypeInternal _RemoteAuth_default_instance_; +class RemoteAuth_Credentials; +struct RemoteAuth_CredentialsDefaultTypeInternal; +extern RemoteAuth_CredentialsDefaultTypeInternal _RemoteAuth_Credentials_default_instance_; +class RemoteConfig; +struct RemoteConfigDefaultTypeInternal; +extern RemoteConfigDefaultTypeInternal _RemoteConfig_default_instance_; +class ResourceLevelServiceConfig; +struct ResourceLevelServiceConfigDefaultTypeInternal; +extern ResourceLevelServiceConfigDefaultTypeInternal _ResourceLevelServiceConfig_default_instance_; +class RobotConfig; +struct RobotConfigDefaultTypeInternal; +extern RobotConfigDefaultTypeInternal _RobotConfig_default_instance_; +class ServiceConfig; +struct ServiceConfigDefaultTypeInternal; +extern ServiceConfigDefaultTypeInternal _ServiceConfig_default_instance_; +class Translation; +struct TranslationDefaultTypeInternal; +extern TranslationDefaultTypeInternal _Translation_default_instance_; +} // namespace v1 +} // namespace app +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::app::v1::AgentInfo* Arena::CreateMaybeMessage<::viam::app::v1::AgentInfo>(Arena*); +template<> ::viam::app::v1::AuthConfig* Arena::CreateMaybeMessage<::viam::app::v1::AuthConfig>(Arena*); +template<> ::viam::app::v1::AuthHandlerConfig* Arena::CreateMaybeMessage<::viam::app::v1::AuthHandlerConfig>(Arena*); +template<> ::viam::app::v1::CertificateRequest* Arena::CreateMaybeMessage<::viam::app::v1::CertificateRequest>(Arena*); +template<> ::viam::app::v1::CertificateResponse* Arena::CreateMaybeMessage<::viam::app::v1::CertificateResponse>(Arena*); +template<> ::viam::app::v1::CloudConfig* Arena::CreateMaybeMessage<::viam::app::v1::CloudConfig>(Arena*); +template<> ::viam::app::v1::ComponentConfig* Arena::CreateMaybeMessage<::viam::app::v1::ComponentConfig>(Arena*); +template<> ::viam::app::v1::ConfigRequest* Arena::CreateMaybeMessage<::viam::app::v1::ConfigRequest>(Arena*); +template<> ::viam::app::v1::ConfigResponse* Arena::CreateMaybeMessage<::viam::app::v1::ConfigResponse>(Arena*); +template<> ::viam::app::v1::Frame* Arena::CreateMaybeMessage<::viam::app::v1::Frame>(Arena*); +template<> ::viam::app::v1::LogRequest* Arena::CreateMaybeMessage<::viam::app::v1::LogRequest>(Arena*); +template<> ::viam::app::v1::LogResponse* Arena::CreateMaybeMessage<::viam::app::v1::LogResponse>(Arena*); +template<> ::viam::app::v1::NeedsRestartRequest* Arena::CreateMaybeMessage<::viam::app::v1::NeedsRestartRequest>(Arena*); +template<> ::viam::app::v1::NeedsRestartResponse* Arena::CreateMaybeMessage<::viam::app::v1::NeedsRestartResponse>(Arena*); +template<> ::viam::app::v1::NetworkConfig* Arena::CreateMaybeMessage<::viam::app::v1::NetworkConfig>(Arena*); +template<> ::viam::app::v1::Orientation* Arena::CreateMaybeMessage<::viam::app::v1::Orientation>(Arena*); +template<> ::viam::app::v1::Orientation_AxisAngles* Arena::CreateMaybeMessage<::viam::app::v1::Orientation_AxisAngles>(Arena*); +template<> ::viam::app::v1::Orientation_EulerAngles* Arena::CreateMaybeMessage<::viam::app::v1::Orientation_EulerAngles>(Arena*); +template<> ::viam::app::v1::Orientation_NoOrientation* Arena::CreateMaybeMessage<::viam::app::v1::Orientation_NoOrientation>(Arena*); +template<> ::viam::app::v1::Orientation_OrientationVectorDegrees* Arena::CreateMaybeMessage<::viam::app::v1::Orientation_OrientationVectorDegrees>(Arena*); +template<> ::viam::app::v1::Orientation_OrientationVectorRadians* Arena::CreateMaybeMessage<::viam::app::v1::Orientation_OrientationVectorRadians>(Arena*); +template<> ::viam::app::v1::Orientation_Quaternion* Arena::CreateMaybeMessage<::viam::app::v1::Orientation_Quaternion>(Arena*); +template<> ::viam::app::v1::ProcessConfig* Arena::CreateMaybeMessage<::viam::app::v1::ProcessConfig>(Arena*); +template<> ::viam::app::v1::RemoteAuth* Arena::CreateMaybeMessage<::viam::app::v1::RemoteAuth>(Arena*); +template<> ::viam::app::v1::RemoteAuth_Credentials* Arena::CreateMaybeMessage<::viam::app::v1::RemoteAuth_Credentials>(Arena*); +template<> ::viam::app::v1::RemoteConfig* Arena::CreateMaybeMessage<::viam::app::v1::RemoteConfig>(Arena*); +template<> ::viam::app::v1::ResourceLevelServiceConfig* Arena::CreateMaybeMessage<::viam::app::v1::ResourceLevelServiceConfig>(Arena*); +template<> ::viam::app::v1::RobotConfig* Arena::CreateMaybeMessage<::viam::app::v1::RobotConfig>(Arena*); +template<> ::viam::app::v1::ServiceConfig* Arena::CreateMaybeMessage<::viam::app::v1::ServiceConfig>(Arena*); +template<> ::viam::app::v1::Translation* Arena::CreateMaybeMessage<::viam::app::v1::Translation>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace app { +namespace v1 { + +enum CredentialsType : int { + CREDENTIALS_TYPE_UNSPECIFIED = 0, + CREDENTIALS_TYPE_INTERNAL = 1, + CREDENTIALS_TYPE_API_KEY = 2, + CREDENTIALS_TYPE_ROBOT_SECRET = 3, + CREDENTIALS_TYPE_ROBOT_LOCATION_SECRET = 4, + CredentialsType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + CredentialsType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool CredentialsType_IsValid(int value); +constexpr CredentialsType CredentialsType_MIN = CREDENTIALS_TYPE_UNSPECIFIED; +constexpr CredentialsType CredentialsType_MAX = CREDENTIALS_TYPE_ROBOT_LOCATION_SECRET; +constexpr int CredentialsType_ARRAYSIZE = CredentialsType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CredentialsType_descriptor(); +template +inline const std::string& CredentialsType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function CredentialsType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + CredentialsType_descriptor(), enum_t_value); +} +inline bool CredentialsType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CredentialsType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + CredentialsType_descriptor(), name, value); +} +// =================================================================== + +class RobotConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RobotConfig) */ { + public: + inline RobotConfig() : RobotConfig(nullptr) {} + ~RobotConfig() override; + explicit PROTOBUF_CONSTEXPR RobotConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RobotConfig(const RobotConfig& from); + RobotConfig(RobotConfig&& from) noexcept + : RobotConfig() { + *this = ::std::move(from); + } + + inline RobotConfig& operator=(const RobotConfig& from) { + CopyFrom(from); + return *this; + } + inline RobotConfig& operator=(RobotConfig&& 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 RobotConfig& default_instance() { + return *internal_default_instance(); + } + static inline const RobotConfig* internal_default_instance() { + return reinterpret_cast( + &_RobotConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(RobotConfig& a, RobotConfig& b) { + a.Swap(&b); + } + inline void Swap(RobotConfig* 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(RobotConfig* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RobotConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RobotConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RobotConfig& from) { + RobotConfig::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RobotConfig* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RobotConfig"; + } + protected: + explicit RobotConfig(::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 { + kRemotesFieldNumber = 2, + kComponentsFieldNumber = 3, + kProcessesFieldNumber = 4, + kServicesFieldNumber = 5, + kCloudFieldNumber = 1, + kNetworkFieldNumber = 6, + kAuthFieldNumber = 7, + kDebugFieldNumber = 8, + }; + // repeated .viam.app.v1.RemoteConfig remotes = 2 [json_name = "remotes"]; + int remotes_size() const; + private: + int _internal_remotes_size() const; + public: + void clear_remotes(); + ::viam::app::v1::RemoteConfig* mutable_remotes(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RemoteConfig >* + mutable_remotes(); + private: + const ::viam::app::v1::RemoteConfig& _internal_remotes(int index) const; + ::viam::app::v1::RemoteConfig* _internal_add_remotes(); + public: + const ::viam::app::v1::RemoteConfig& remotes(int index) const; + ::viam::app::v1::RemoteConfig* add_remotes(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RemoteConfig >& + remotes() const; + + // repeated .viam.app.v1.ComponentConfig components = 3 [json_name = "components"]; + int components_size() const; + private: + int _internal_components_size() const; + public: + void clear_components(); + ::viam::app::v1::ComponentConfig* mutable_components(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ComponentConfig >* + mutable_components(); + private: + const ::viam::app::v1::ComponentConfig& _internal_components(int index) const; + ::viam::app::v1::ComponentConfig* _internal_add_components(); + public: + const ::viam::app::v1::ComponentConfig& components(int index) const; + ::viam::app::v1::ComponentConfig* add_components(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ComponentConfig >& + components() const; + + // repeated .viam.app.v1.ProcessConfig processes = 4 [json_name = "processes"]; + int processes_size() const; + private: + int _internal_processes_size() const; + public: + void clear_processes(); + ::viam::app::v1::ProcessConfig* mutable_processes(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ProcessConfig >* + mutable_processes(); + private: + const ::viam::app::v1::ProcessConfig& _internal_processes(int index) const; + ::viam::app::v1::ProcessConfig* _internal_add_processes(); + public: + const ::viam::app::v1::ProcessConfig& processes(int index) const; + ::viam::app::v1::ProcessConfig* add_processes(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ProcessConfig >& + processes() const; + + // repeated .viam.app.v1.ServiceConfig services = 5 [json_name = "services"]; + int services_size() const; + private: + int _internal_services_size() const; + public: + void clear_services(); + ::viam::app::v1::ServiceConfig* mutable_services(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ServiceConfig >* + mutable_services(); + private: + const ::viam::app::v1::ServiceConfig& _internal_services(int index) const; + ::viam::app::v1::ServiceConfig* _internal_add_services(); + public: + const ::viam::app::v1::ServiceConfig& services(int index) const; + ::viam::app::v1::ServiceConfig* add_services(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ServiceConfig >& + services() const; + + // .viam.app.v1.CloudConfig cloud = 1 [json_name = "cloud"]; + bool has_cloud() const; + private: + bool _internal_has_cloud() const; + public: + void clear_cloud(); + const ::viam::app::v1::CloudConfig& cloud() const; + PROTOBUF_NODISCARD ::viam::app::v1::CloudConfig* release_cloud(); + ::viam::app::v1::CloudConfig* mutable_cloud(); + void set_allocated_cloud(::viam::app::v1::CloudConfig* cloud); + private: + const ::viam::app::v1::CloudConfig& _internal_cloud() const; + ::viam::app::v1::CloudConfig* _internal_mutable_cloud(); + public: + void unsafe_arena_set_allocated_cloud( + ::viam::app::v1::CloudConfig* cloud); + ::viam::app::v1::CloudConfig* unsafe_arena_release_cloud(); + + // optional .viam.app.v1.NetworkConfig network = 6 [json_name = "network"]; + bool has_network() const; + private: + bool _internal_has_network() const; + public: + void clear_network(); + const ::viam::app::v1::NetworkConfig& network() const; + PROTOBUF_NODISCARD ::viam::app::v1::NetworkConfig* release_network(); + ::viam::app::v1::NetworkConfig* mutable_network(); + void set_allocated_network(::viam::app::v1::NetworkConfig* network); + private: + const ::viam::app::v1::NetworkConfig& _internal_network() const; + ::viam::app::v1::NetworkConfig* _internal_mutable_network(); + public: + void unsafe_arena_set_allocated_network( + ::viam::app::v1::NetworkConfig* network); + ::viam::app::v1::NetworkConfig* unsafe_arena_release_network(); + + // optional .viam.app.v1.AuthConfig auth = 7 [json_name = "auth"]; + bool has_auth() const; + private: + bool _internal_has_auth() const; + public: + void clear_auth(); + const ::viam::app::v1::AuthConfig& auth() const; + PROTOBUF_NODISCARD ::viam::app::v1::AuthConfig* release_auth(); + ::viam::app::v1::AuthConfig* mutable_auth(); + void set_allocated_auth(::viam::app::v1::AuthConfig* auth); + private: + const ::viam::app::v1::AuthConfig& _internal_auth() const; + ::viam::app::v1::AuthConfig* _internal_mutable_auth(); + public: + void unsafe_arena_set_allocated_auth( + ::viam::app::v1::AuthConfig* auth); + ::viam::app::v1::AuthConfig* unsafe_arena_release_auth(); + + // optional bool debug = 8 [json_name = "debug"]; + bool has_debug() const; + private: + bool _internal_has_debug() const; + public: + void clear_debug(); + bool debug() const; + void set_debug(bool value); + private: + bool _internal_debug() const; + void _internal_set_debug(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.RobotConfig) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RemoteConfig > remotes_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ComponentConfig > components_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ProcessConfig > processes_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ServiceConfig > services_; + ::viam::app::v1::CloudConfig* cloud_; + ::viam::app::v1::NetworkConfig* network_; + ::viam::app::v1::AuthConfig* auth_; + bool debug_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class CloudConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CloudConfig) */ { + public: + inline CloudConfig() : CloudConfig(nullptr) {} + ~CloudConfig() override; + explicit PROTOBUF_CONSTEXPR CloudConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CloudConfig(const CloudConfig& from); + CloudConfig(CloudConfig&& from) noexcept + : CloudConfig() { + *this = ::std::move(from); + } + + inline CloudConfig& operator=(const CloudConfig& from) { + CopyFrom(from); + return *this; + } + inline CloudConfig& operator=(CloudConfig&& 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 CloudConfig& default_instance() { + return *internal_default_instance(); + } + static inline const CloudConfig* internal_default_instance() { + return reinterpret_cast( + &_CloudConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(CloudConfig& a, CloudConfig& b) { + a.Swap(&b); + } + inline void Swap(CloudConfig* 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(CloudConfig* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CloudConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CloudConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const CloudConfig& from) { + CloudConfig::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CloudConfig* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CloudConfig"; + } + protected: + explicit CloudConfig(::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 { + kIdFieldNumber = 1, + kFqdnFieldNumber = 2, + kLocalFqdnFieldNumber = 3, + kManagedByFieldNumber = 4, + kSignalingAddressFieldNumber = 5, + kLocationSecretFieldNumber = 7, + kSecretFieldNumber = 8, + kSignalingInsecureFieldNumber = 6, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string fqdn = 2 [json_name = "fqdn"]; + void clear_fqdn(); + const std::string& fqdn() const; + template + void set_fqdn(ArgT0&& arg0, ArgT... args); + std::string* mutable_fqdn(); + PROTOBUF_NODISCARD std::string* release_fqdn(); + void set_allocated_fqdn(std::string* fqdn); + private: + const std::string& _internal_fqdn() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fqdn(const std::string& value); + std::string* _internal_mutable_fqdn(); + public: + + // string local_fqdn = 3 [json_name = "localFqdn"]; + void clear_local_fqdn(); + const std::string& local_fqdn() const; + template + void set_local_fqdn(ArgT0&& arg0, ArgT... args); + std::string* mutable_local_fqdn(); + PROTOBUF_NODISCARD std::string* release_local_fqdn(); + void set_allocated_local_fqdn(std::string* local_fqdn); + private: + const std::string& _internal_local_fqdn() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_local_fqdn(const std::string& value); + std::string* _internal_mutable_local_fqdn(); + public: + + // string managed_by = 4 [json_name = "managedBy"]; + void clear_managed_by(); + const std::string& managed_by() const; + template + void set_managed_by(ArgT0&& arg0, ArgT... args); + std::string* mutable_managed_by(); + PROTOBUF_NODISCARD std::string* release_managed_by(); + void set_allocated_managed_by(std::string* managed_by); + private: + const std::string& _internal_managed_by() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_managed_by(const std::string& value); + std::string* _internal_mutable_managed_by(); + public: + + // string signaling_address = 5 [json_name = "signalingAddress"]; + void clear_signaling_address(); + const std::string& signaling_address() const; + template + void set_signaling_address(ArgT0&& arg0, ArgT... args); + std::string* mutable_signaling_address(); + PROTOBUF_NODISCARD std::string* release_signaling_address(); + void set_allocated_signaling_address(std::string* signaling_address); + private: + const std::string& _internal_signaling_address() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_signaling_address(const std::string& value); + std::string* _internal_mutable_signaling_address(); + public: + + // string location_secret = 7 [json_name = "locationSecret"]; + void clear_location_secret(); + const std::string& location_secret() const; + template + void set_location_secret(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_secret(); + PROTOBUF_NODISCARD std::string* release_location_secret(); + void set_allocated_location_secret(std::string* location_secret); + private: + const std::string& _internal_location_secret() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_secret(const std::string& value); + std::string* _internal_mutable_location_secret(); + public: + + // string secret = 8 [json_name = "secret"]; + void clear_secret(); + const std::string& secret() const; + template + void set_secret(ArgT0&& arg0, ArgT... args); + std::string* mutable_secret(); + PROTOBUF_NODISCARD std::string* release_secret(); + void set_allocated_secret(std::string* secret); + private: + const std::string& _internal_secret() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret(const std::string& value); + std::string* _internal_mutable_secret(); + public: + + // bool signaling_insecure = 6 [json_name = "signalingInsecure"]; + void clear_signaling_insecure(); + bool signaling_insecure() const; + void set_signaling_insecure(bool value); + private: + bool _internal_signaling_insecure() const; + void _internal_set_signaling_insecure(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.CloudConfig) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fqdn_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr local_fqdn_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr managed_by_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr signaling_address_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_secret_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr secret_; + bool signaling_insecure_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class ComponentConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ComponentConfig) */ { + public: + inline ComponentConfig() : ComponentConfig(nullptr) {} + ~ComponentConfig() override; + explicit PROTOBUF_CONSTEXPR ComponentConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ComponentConfig(const ComponentConfig& from); + ComponentConfig(ComponentConfig&& from) noexcept + : ComponentConfig() { + *this = ::std::move(from); + } + + inline ComponentConfig& operator=(const ComponentConfig& from) { + CopyFrom(from); + return *this; + } + inline ComponentConfig& operator=(ComponentConfig&& 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 ComponentConfig& default_instance() { + return *internal_default_instance(); + } + static inline const ComponentConfig* internal_default_instance() { + return reinterpret_cast( + &_ComponentConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(ComponentConfig& a, ComponentConfig& b) { + a.Swap(&b); + } + inline void Swap(ComponentConfig* 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(ComponentConfig* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ComponentConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ComponentConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ComponentConfig& from) { + ComponentConfig::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ComponentConfig* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ComponentConfig"; + } + protected: + explicit ComponentConfig(::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 { + kDependsOnFieldNumber = 6, + kServiceConfigsFieldNumber = 7, + kNameFieldNumber = 1, + kNamespaceFieldNumber = 2, + kTypeFieldNumber = 3, + kModelFieldNumber = 4, + kFrameFieldNumber = 5, + kAttributesFieldNumber = 8, + }; + // repeated string depends_on = 6 [json_name = "dependsOn"]; + int depends_on_size() const; + private: + int _internal_depends_on_size() const; + public: + void clear_depends_on(); + const std::string& depends_on(int index) const; + std::string* mutable_depends_on(int index); + void set_depends_on(int index, const std::string& value); + void set_depends_on(int index, std::string&& value); + void set_depends_on(int index, const char* value); + void set_depends_on(int index, const char* value, size_t size); + std::string* add_depends_on(); + void add_depends_on(const std::string& value); + void add_depends_on(std::string&& value); + void add_depends_on(const char* value); + void add_depends_on(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& depends_on() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_depends_on(); + private: + const std::string& _internal_depends_on(int index) const; + std::string* _internal_add_depends_on(); + public: + + // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 7 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; + int service_configs_size() const; + private: + int _internal_service_configs_size() const; + public: + void clear_service_configs(); + ::viam::app::v1::ResourceLevelServiceConfig* mutable_service_configs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >* + mutable_service_configs(); + private: + const ::viam::app::v1::ResourceLevelServiceConfig& _internal_service_configs(int index) const; + ::viam::app::v1::ResourceLevelServiceConfig* _internal_add_service_configs(); + public: + const ::viam::app::v1::ResourceLevelServiceConfig& service_configs(int index) const; + ::viam::app::v1::ResourceLevelServiceConfig* add_service_configs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >& + service_configs() const; + + // 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 namespace = 2 [json_name = "namespace"]; + void clear_namespace_(); + const std::string& namespace_() const; + template + void set_namespace_(ArgT0&& arg0, ArgT... args); + std::string* mutable_namespace_(); + PROTOBUF_NODISCARD std::string* release_namespace_(); + void set_allocated_namespace_(std::string* namespace_); + private: + const std::string& _internal_namespace_() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_namespace_(const std::string& value); + std::string* _internal_mutable_namespace_(); + public: + + // string type = 3 [json_name = "type"]; + void clear_type(); + const std::string& type() const; + template + void set_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_type(); + PROTOBUF_NODISCARD std::string* release_type(); + void set_allocated_type(std::string* type); + private: + const std::string& _internal_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); + std::string* _internal_mutable_type(); + public: + + // string model = 4 [json_name = "model"]; + void clear_model(); + const std::string& model() const; + template + void set_model(ArgT0&& arg0, ArgT... args); + std::string* mutable_model(); + PROTOBUF_NODISCARD std::string* release_model(); + void set_allocated_model(std::string* model); + private: + const std::string& _internal_model() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model(const std::string& value); + std::string* _internal_mutable_model(); + public: + + // .viam.app.v1.Frame frame = 5 [json_name = "frame"]; + bool has_frame() const; + private: + bool _internal_has_frame() const; + public: + void clear_frame(); + const ::viam::app::v1::Frame& frame() const; + PROTOBUF_NODISCARD ::viam::app::v1::Frame* release_frame(); + ::viam::app::v1::Frame* mutable_frame(); + void set_allocated_frame(::viam::app::v1::Frame* frame); + private: + const ::viam::app::v1::Frame& _internal_frame() const; + ::viam::app::v1::Frame* _internal_mutable_frame(); + public: + void unsafe_arena_set_allocated_frame( + ::viam::app::v1::Frame* frame); + ::viam::app::v1::Frame* unsafe_arena_release_frame(); + + // .google.protobuf.Struct attributes = 8 [json_name = "attributes"]; + bool has_attributes() const; + private: + bool _internal_has_attributes() const; + public: + void clear_attributes(); + const ::PROTOBUF_NAMESPACE_ID::Struct& attributes() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_attributes(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_attributes(); + void set_allocated_attributes(::PROTOBUF_NAMESPACE_ID::Struct* attributes); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_attributes() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_attributes(); + public: + void unsafe_arena_set_allocated_attributes( + ::PROTOBUF_NAMESPACE_ID::Struct* attributes); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_attributes(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.ComponentConfig) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField depends_on_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig > service_configs_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr namespace__; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_; + ::viam::app::v1::Frame* frame_; + ::PROTOBUF_NAMESPACE_ID::Struct* attributes_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class ResourceLevelServiceConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ResourceLevelServiceConfig) */ { + public: + inline ResourceLevelServiceConfig() : ResourceLevelServiceConfig(nullptr) {} + ~ResourceLevelServiceConfig() override; + explicit PROTOBUF_CONSTEXPR ResourceLevelServiceConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ResourceLevelServiceConfig(const ResourceLevelServiceConfig& from); + ResourceLevelServiceConfig(ResourceLevelServiceConfig&& from) noexcept + : ResourceLevelServiceConfig() { + *this = ::std::move(from); + } + + inline ResourceLevelServiceConfig& operator=(const ResourceLevelServiceConfig& from) { + CopyFrom(from); + return *this; + } + inline ResourceLevelServiceConfig& operator=(ResourceLevelServiceConfig&& 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 ResourceLevelServiceConfig& default_instance() { + return *internal_default_instance(); + } + static inline const ResourceLevelServiceConfig* internal_default_instance() { + return reinterpret_cast( + &_ResourceLevelServiceConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(ResourceLevelServiceConfig& a, ResourceLevelServiceConfig& b) { + a.Swap(&b); + } + inline void Swap(ResourceLevelServiceConfig* 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(ResourceLevelServiceConfig* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ResourceLevelServiceConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResourceLevelServiceConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ResourceLevelServiceConfig& from) { + ResourceLevelServiceConfig::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ResourceLevelServiceConfig* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ResourceLevelServiceConfig"; + } + protected: + explicit ResourceLevelServiceConfig(::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 { + kTypeFieldNumber = 1, + kAttributesFieldNumber = 2, + }; + // string type = 1 [json_name = "type"]; + void clear_type(); + const std::string& type() const; + template + void set_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_type(); + PROTOBUF_NODISCARD std::string* release_type(); + void set_allocated_type(std::string* type); + private: + const std::string& _internal_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); + std::string* _internal_mutable_type(); + public: + + // .google.protobuf.Struct attributes = 2 [json_name = "attributes"]; + bool has_attributes() const; + private: + bool _internal_has_attributes() const; + public: + void clear_attributes(); + const ::PROTOBUF_NAMESPACE_ID::Struct& attributes() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_attributes(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_attributes(); + void set_allocated_attributes(::PROTOBUF_NAMESPACE_ID::Struct* attributes); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_attributes() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_attributes(); + public: + void unsafe_arena_set_allocated_attributes( + ::PROTOBUF_NAMESPACE_ID::Struct* attributes); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_attributes(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.ResourceLevelServiceConfig) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + ::PROTOBUF_NAMESPACE_ID::Struct* attributes_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class ProcessConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ProcessConfig) */ { + public: + inline ProcessConfig() : ProcessConfig(nullptr) {} + ~ProcessConfig() override; + explicit PROTOBUF_CONSTEXPR ProcessConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ProcessConfig(const ProcessConfig& from); + ProcessConfig(ProcessConfig&& from) noexcept + : ProcessConfig() { + *this = ::std::move(from); + } + + inline ProcessConfig& operator=(const ProcessConfig& from) { + CopyFrom(from); + return *this; + } + inline ProcessConfig& operator=(ProcessConfig&& 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 ProcessConfig& default_instance() { + return *internal_default_instance(); + } + static inline const ProcessConfig* internal_default_instance() { + return reinterpret_cast( + &_ProcessConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(ProcessConfig& a, ProcessConfig& b) { + a.Swap(&b); + } + inline void Swap(ProcessConfig* 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(ProcessConfig* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ProcessConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ProcessConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ProcessConfig& from) { + ProcessConfig::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProcessConfig* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ProcessConfig"; + } + protected: + explicit ProcessConfig(::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 { + kArgsFieldNumber = 3, + kIdFieldNumber = 1, + kNameFieldNumber = 2, + kCwdFieldNumber = 4, + kOneShotFieldNumber = 5, + kLogFieldNumber = 6, + }; + // repeated string args = 3 [json_name = "args"]; + int args_size() const; + private: + int _internal_args_size() const; + public: + void clear_args(); + const std::string& args(int index) const; + std::string* mutable_args(int index); + void set_args(int index, const std::string& value); + void set_args(int index, std::string&& value); + void set_args(int index, const char* value); + void set_args(int index, const char* value, size_t size); + std::string* add_args(); + void add_args(const std::string& value); + void add_args(std::string&& value); + void add_args(const char* value); + void add_args(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& args() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_args(); + private: + const std::string& _internal_args(int index) const; + std::string* _internal_add_args(); + public: + + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string name = 2 [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 cwd = 4 [json_name = "cwd"]; + void clear_cwd(); + const std::string& cwd() const; + template + void set_cwd(ArgT0&& arg0, ArgT... args); + std::string* mutable_cwd(); + PROTOBUF_NODISCARD std::string* release_cwd(); + void set_allocated_cwd(std::string* cwd); + private: + const std::string& _internal_cwd() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_cwd(const std::string& value); + std::string* _internal_mutable_cwd(); + public: + + // bool one_shot = 5 [json_name = "oneShot"]; + void clear_one_shot(); + bool one_shot() const; + void set_one_shot(bool value); + private: + bool _internal_one_shot() const; + void _internal_set_one_shot(bool value); + public: + + // bool log = 6 [json_name = "log"]; + void clear_log(); + bool log() const; + void set_log(bool value); + private: + bool _internal_log() const; + void _internal_set_log(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.ProcessConfig) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField args_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cwd_; + bool one_shot_; + bool log_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class ServiceConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ServiceConfig) */ { + public: + inline ServiceConfig() : ServiceConfig(nullptr) {} + ~ServiceConfig() override; + explicit PROTOBUF_CONSTEXPR ServiceConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ServiceConfig(const ServiceConfig& from); + ServiceConfig(ServiceConfig&& from) noexcept + : ServiceConfig() { + *this = ::std::move(from); + } + + inline ServiceConfig& operator=(const ServiceConfig& from) { + CopyFrom(from); + return *this; + } + inline ServiceConfig& operator=(ServiceConfig&& 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 ServiceConfig& default_instance() { + return *internal_default_instance(); + } + static inline const ServiceConfig* internal_default_instance() { + return reinterpret_cast( + &_ServiceConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(ServiceConfig& a, ServiceConfig& b) { + a.Swap(&b); + } + inline void Swap(ServiceConfig* 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(ServiceConfig* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ServiceConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ServiceConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ServiceConfig& from) { + ServiceConfig::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ServiceConfig* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ServiceConfig"; + } + protected: + explicit ServiceConfig(::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, + kNamespaceFieldNumber = 2, + kTypeFieldNumber = 3, + kAttributesFieldNumber = 4, + }; + // 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 namespace = 2 [json_name = "namespace"]; + void clear_namespace_(); + const std::string& namespace_() const; + template + void set_namespace_(ArgT0&& arg0, ArgT... args); + std::string* mutable_namespace_(); + PROTOBUF_NODISCARD std::string* release_namespace_(); + void set_allocated_namespace_(std::string* namespace_); + private: + const std::string& _internal_namespace_() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_namespace_(const std::string& value); + std::string* _internal_mutable_namespace_(); + public: + + // string type = 3 [json_name = "type"]; + void clear_type(); + const std::string& type() const; + template + void set_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_type(); + PROTOBUF_NODISCARD std::string* release_type(); + void set_allocated_type(std::string* type); + private: + const std::string& _internal_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); + std::string* _internal_mutable_type(); + public: + + // .google.protobuf.Struct attributes = 4 [json_name = "attributes"]; + bool has_attributes() const; + private: + bool _internal_has_attributes() const; + public: + void clear_attributes(); + const ::PROTOBUF_NAMESPACE_ID::Struct& attributes() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_attributes(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_attributes(); + void set_allocated_attributes(::PROTOBUF_NAMESPACE_ID::Struct* attributes); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_attributes() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_attributes(); + public: + void unsafe_arena_set_allocated_attributes( + ::PROTOBUF_NAMESPACE_ID::Struct* attributes); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_attributes(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.ServiceConfig) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr namespace__; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + ::PROTOBUF_NAMESPACE_ID::Struct* attributes_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class NetworkConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.NetworkConfig) */ { + public: + inline NetworkConfig() : NetworkConfig(nullptr) {} + ~NetworkConfig() override; + explicit PROTOBUF_CONSTEXPR NetworkConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + NetworkConfig(const NetworkConfig& from); + NetworkConfig(NetworkConfig&& from) noexcept + : NetworkConfig() { + *this = ::std::move(from); + } + + inline NetworkConfig& operator=(const NetworkConfig& from) { + CopyFrom(from); + return *this; + } + inline NetworkConfig& operator=(NetworkConfig&& 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 NetworkConfig& default_instance() { + return *internal_default_instance(); + } + static inline const NetworkConfig* internal_default_instance() { + return reinterpret_cast( + &_NetworkConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(NetworkConfig& a, NetworkConfig& b) { + a.Swap(&b); + } + inline void Swap(NetworkConfig* 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(NetworkConfig* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + NetworkConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const NetworkConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const NetworkConfig& from) { + NetworkConfig::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NetworkConfig* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.NetworkConfig"; + } + protected: + explicit NetworkConfig(::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 { + kFqdnFieldNumber = 1, + kBindAddressFieldNumber = 2, + kTlsCertFileFieldNumber = 3, + kTlsKeyFileFieldNumber = 4, + }; + // string fqdn = 1 [json_name = "fqdn"]; + void clear_fqdn(); + const std::string& fqdn() const; + template + void set_fqdn(ArgT0&& arg0, ArgT... args); + std::string* mutable_fqdn(); + PROTOBUF_NODISCARD std::string* release_fqdn(); + void set_allocated_fqdn(std::string* fqdn); + private: + const std::string& _internal_fqdn() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fqdn(const std::string& value); + std::string* _internal_mutable_fqdn(); + public: + + // string bind_address = 2 [json_name = "bindAddress"]; + void clear_bind_address(); + const std::string& bind_address() const; + template + void set_bind_address(ArgT0&& arg0, ArgT... args); + std::string* mutable_bind_address(); + PROTOBUF_NODISCARD std::string* release_bind_address(); + void set_allocated_bind_address(std::string* bind_address); + private: + const std::string& _internal_bind_address() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_bind_address(const std::string& value); + std::string* _internal_mutable_bind_address(); + public: + + // string tls_cert_file = 3 [json_name = "tlsCertFile"]; + void clear_tls_cert_file(); + const std::string& tls_cert_file() const; + template + void set_tls_cert_file(ArgT0&& arg0, ArgT... args); + std::string* mutable_tls_cert_file(); + PROTOBUF_NODISCARD std::string* release_tls_cert_file(); + void set_allocated_tls_cert_file(std::string* tls_cert_file); + private: + const std::string& _internal_tls_cert_file() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_tls_cert_file(const std::string& value); + std::string* _internal_mutable_tls_cert_file(); + public: + + // string tls_key_file = 4 [json_name = "tlsKeyFile"]; + void clear_tls_key_file(); + const std::string& tls_key_file() const; + template + void set_tls_key_file(ArgT0&& arg0, ArgT... args); + std::string* mutable_tls_key_file(); + PROTOBUF_NODISCARD std::string* release_tls_key_file(); + void set_allocated_tls_key_file(std::string* tls_key_file); + private: + const std::string& _internal_tls_key_file() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_tls_key_file(const std::string& value); + std::string* _internal_mutable_tls_key_file(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.NetworkConfig) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fqdn_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bind_address_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tls_cert_file_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tls_key_file_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class AuthConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.AuthConfig) */ { + public: + inline AuthConfig() : AuthConfig(nullptr) {} + ~AuthConfig() override; + explicit PROTOBUF_CONSTEXPR AuthConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AuthConfig(const AuthConfig& from); + AuthConfig(AuthConfig&& from) noexcept + : AuthConfig() { + *this = ::std::move(from); + } + + inline AuthConfig& operator=(const AuthConfig& from) { + CopyFrom(from); + return *this; + } + inline AuthConfig& operator=(AuthConfig&& 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 AuthConfig& default_instance() { + return *internal_default_instance(); + } + static inline const AuthConfig* internal_default_instance() { + return reinterpret_cast( + &_AuthConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(AuthConfig& a, AuthConfig& b) { + a.Swap(&b); + } + inline void Swap(AuthConfig* 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(AuthConfig* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AuthConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AuthConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const AuthConfig& from) { + AuthConfig::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AuthConfig* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.AuthConfig"; + } + protected: + explicit AuthConfig(::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 { + kHandlersFieldNumber = 1, + kTlsAuthEntitiesFieldNumber = 2, + }; + // repeated .viam.app.v1.AuthHandlerConfig handlers = 1 [json_name = "handlers"]; + int handlers_size() const; + private: + int _internal_handlers_size() const; + public: + void clear_handlers(); + ::viam::app::v1::AuthHandlerConfig* mutable_handlers(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthHandlerConfig >* + mutable_handlers(); + private: + const ::viam::app::v1::AuthHandlerConfig& _internal_handlers(int index) const; + ::viam::app::v1::AuthHandlerConfig* _internal_add_handlers(); + public: + const ::viam::app::v1::AuthHandlerConfig& handlers(int index) const; + ::viam::app::v1::AuthHandlerConfig* add_handlers(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthHandlerConfig >& + handlers() const; + + // repeated string tls_auth_entities = 2 [json_name = "tlsAuthEntities"]; + int tls_auth_entities_size() const; + private: + int _internal_tls_auth_entities_size() const; + public: + void clear_tls_auth_entities(); + const std::string& tls_auth_entities(int index) const; + std::string* mutable_tls_auth_entities(int index); + void set_tls_auth_entities(int index, const std::string& value); + void set_tls_auth_entities(int index, std::string&& value); + void set_tls_auth_entities(int index, const char* value); + void set_tls_auth_entities(int index, const char* value, size_t size); + std::string* add_tls_auth_entities(); + void add_tls_auth_entities(const std::string& value); + void add_tls_auth_entities(std::string&& value); + void add_tls_auth_entities(const char* value); + void add_tls_auth_entities(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& tls_auth_entities() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_tls_auth_entities(); + private: + const std::string& _internal_tls_auth_entities(int index) const; + std::string* _internal_add_tls_auth_entities(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.AuthConfig) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthHandlerConfig > handlers_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField tls_auth_entities_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class AuthHandlerConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.AuthHandlerConfig) */ { + public: + inline AuthHandlerConfig() : AuthHandlerConfig(nullptr) {} + ~AuthHandlerConfig() override; + explicit PROTOBUF_CONSTEXPR AuthHandlerConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AuthHandlerConfig(const AuthHandlerConfig& from); + AuthHandlerConfig(AuthHandlerConfig&& from) noexcept + : AuthHandlerConfig() { + *this = ::std::move(from); + } + + inline AuthHandlerConfig& operator=(const AuthHandlerConfig& from) { + CopyFrom(from); + return *this; + } + inline AuthHandlerConfig& operator=(AuthHandlerConfig&& 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 AuthHandlerConfig& default_instance() { + return *internal_default_instance(); + } + static inline const AuthHandlerConfig* internal_default_instance() { + return reinterpret_cast( + &_AuthHandlerConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(AuthHandlerConfig& a, AuthHandlerConfig& b) { + a.Swap(&b); + } + inline void Swap(AuthHandlerConfig* 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(AuthHandlerConfig* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AuthHandlerConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AuthHandlerConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const AuthHandlerConfig& from) { + AuthHandlerConfig::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AuthHandlerConfig* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.AuthHandlerConfig"; + } + protected: + explicit AuthHandlerConfig(::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 { + kConfigFieldNumber = 5, + kTypeFieldNumber = 1, + }; + // .google.protobuf.Struct config = 5 [json_name = "config"]; + bool has_config() const; + private: + bool _internal_has_config() const; + public: + void clear_config(); + const ::PROTOBUF_NAMESPACE_ID::Struct& config() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_config(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_config(); + void set_allocated_config(::PROTOBUF_NAMESPACE_ID::Struct* config); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_config() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_config(); + public: + void unsafe_arena_set_allocated_config( + ::PROTOBUF_NAMESPACE_ID::Struct* config); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_config(); + + // .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; + void clear_type(); + ::viam::app::v1::CredentialsType type() const; + void set_type(::viam::app::v1::CredentialsType value); + private: + ::viam::app::v1::CredentialsType _internal_type() const; + void _internal_set_type(::viam::app::v1::CredentialsType value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.AuthHandlerConfig) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::Struct* config_; + int type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class Frame final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Frame) */ { + public: + inline Frame() : Frame(nullptr) {} + ~Frame() override; + explicit PROTOBUF_CONSTEXPR Frame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Frame(const Frame& from); + Frame(Frame&& from) noexcept + : Frame() { + *this = ::std::move(from); + } + + inline Frame& operator=(const Frame& from) { + CopyFrom(from); + return *this; + } + inline Frame& operator=(Frame&& 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 Frame& default_instance() { + return *internal_default_instance(); + } + static inline const Frame* internal_default_instance() { + return reinterpret_cast( + &_Frame_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(Frame& a, Frame& b) { + a.Swap(&b); + } + inline void Swap(Frame* 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(Frame* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Frame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Frame& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Frame& from) { + Frame::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Frame* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Frame"; + } + protected: + explicit Frame(::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 { + kParentFieldNumber = 1, + kTranslationFieldNumber = 2, + kOrientationFieldNumber = 3, + }; + // string parent = 1 [json_name = "parent"]; + void clear_parent(); + const std::string& parent() const; + template + void set_parent(ArgT0&& arg0, ArgT... args); + std::string* mutable_parent(); + PROTOBUF_NODISCARD std::string* release_parent(); + void set_allocated_parent(std::string* parent); + private: + const std::string& _internal_parent() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_parent(const std::string& value); + std::string* _internal_mutable_parent(); + public: + + // .viam.app.v1.Translation translation = 2 [json_name = "translation"]; + bool has_translation() const; + private: + bool _internal_has_translation() const; + public: + void clear_translation(); + const ::viam::app::v1::Translation& translation() const; + PROTOBUF_NODISCARD ::viam::app::v1::Translation* release_translation(); + ::viam::app::v1::Translation* mutable_translation(); + void set_allocated_translation(::viam::app::v1::Translation* translation); + private: + const ::viam::app::v1::Translation& _internal_translation() const; + ::viam::app::v1::Translation* _internal_mutable_translation(); + public: + void unsafe_arena_set_allocated_translation( + ::viam::app::v1::Translation* translation); + ::viam::app::v1::Translation* unsafe_arena_release_translation(); + + // .viam.app.v1.Orientation orientation = 3 [json_name = "orientation"]; + bool has_orientation() const; + private: + bool _internal_has_orientation() const; + public: + void clear_orientation(); + const ::viam::app::v1::Orientation& orientation() const; + PROTOBUF_NODISCARD ::viam::app::v1::Orientation* release_orientation(); + ::viam::app::v1::Orientation* mutable_orientation(); + void set_allocated_orientation(::viam::app::v1::Orientation* orientation); + private: + const ::viam::app::v1::Orientation& _internal_orientation() const; + ::viam::app::v1::Orientation* _internal_mutable_orientation(); + public: + void unsafe_arena_set_allocated_orientation( + ::viam::app::v1::Orientation* orientation); + ::viam::app::v1::Orientation* unsafe_arena_release_orientation(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.Frame) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_; + ::viam::app::v1::Translation* translation_; + ::viam::app::v1::Orientation* orientation_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class Translation final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Translation) */ { + public: + inline Translation() : Translation(nullptr) {} + ~Translation() override; + explicit PROTOBUF_CONSTEXPR Translation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Translation(const Translation& from); + Translation(Translation&& from) noexcept + : Translation() { + *this = ::std::move(from); + } + + inline Translation& operator=(const Translation& from) { + CopyFrom(from); + return *this; + } + inline Translation& operator=(Translation&& 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 Translation& default_instance() { + return *internal_default_instance(); + } + static inline const Translation* internal_default_instance() { + return reinterpret_cast( + &_Translation_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(Translation& a, Translation& b) { + a.Swap(&b); + } + inline void Swap(Translation* 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(Translation* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Translation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Translation& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Translation& from) { + Translation::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Translation* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Translation"; + } + protected: + explicit Translation(::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 { + kXFieldNumber = 1, + kYFieldNumber = 2, + kZFieldNumber = 3, + }; + // double x = 1 [json_name = "x"]; + void clear_x(); + double x() const; + void set_x(double value); + private: + double _internal_x() const; + void _internal_set_x(double value); + public: + + // double y = 2 [json_name = "y"]; + void clear_y(); + double y() const; + void set_y(double value); + private: + double _internal_y() const; + void _internal_set_y(double value); + public: + + // double z = 3 [json_name = "z"]; + void clear_z(); + double z() const; + void set_z(double value); + private: + double _internal_z() const; + void _internal_set_z(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.Translation) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + double x_; + double y_; + double z_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class Orientation_NoOrientation final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.Orientation.NoOrientation) */ { + public: + inline Orientation_NoOrientation() : Orientation_NoOrientation(nullptr) {} + explicit PROTOBUF_CONSTEXPR Orientation_NoOrientation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Orientation_NoOrientation(const Orientation_NoOrientation& from); + Orientation_NoOrientation(Orientation_NoOrientation&& from) noexcept + : Orientation_NoOrientation() { + *this = ::std::move(from); + } + + inline Orientation_NoOrientation& operator=(const Orientation_NoOrientation& from) { + CopyFrom(from); + return *this; + } + inline Orientation_NoOrientation& operator=(Orientation_NoOrientation&& 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 Orientation_NoOrientation& default_instance() { + return *internal_default_instance(); + } + static inline const Orientation_NoOrientation* internal_default_instance() { + return reinterpret_cast( + &_Orientation_NoOrientation_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(Orientation_NoOrientation& a, Orientation_NoOrientation& b) { + a.Swap(&b); + } + inline void Swap(Orientation_NoOrientation* 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(Orientation_NoOrientation* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Orientation_NoOrientation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const Orientation_NoOrientation& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const Orientation_NoOrientation& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Orientation.NoOrientation"; + } + protected: + explicit Orientation_NoOrientation(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.app.v1.Orientation.NoOrientation) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class Orientation_OrientationVectorRadians final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Orientation.OrientationVectorRadians) */ { + public: + inline Orientation_OrientationVectorRadians() : Orientation_OrientationVectorRadians(nullptr) {} + ~Orientation_OrientationVectorRadians() override; + explicit PROTOBUF_CONSTEXPR Orientation_OrientationVectorRadians(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Orientation_OrientationVectorRadians(const Orientation_OrientationVectorRadians& from); + Orientation_OrientationVectorRadians(Orientation_OrientationVectorRadians&& from) noexcept + : Orientation_OrientationVectorRadians() { + *this = ::std::move(from); + } + + inline Orientation_OrientationVectorRadians& operator=(const Orientation_OrientationVectorRadians& from) { + CopyFrom(from); + return *this; + } + inline Orientation_OrientationVectorRadians& operator=(Orientation_OrientationVectorRadians&& 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 Orientation_OrientationVectorRadians& default_instance() { + return *internal_default_instance(); + } + static inline const Orientation_OrientationVectorRadians* internal_default_instance() { + return reinterpret_cast( + &_Orientation_OrientationVectorRadians_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(Orientation_OrientationVectorRadians& a, Orientation_OrientationVectorRadians& b) { + a.Swap(&b); + } + inline void Swap(Orientation_OrientationVectorRadians* 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(Orientation_OrientationVectorRadians* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Orientation_OrientationVectorRadians* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Orientation_OrientationVectorRadians& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Orientation_OrientationVectorRadians& from) { + Orientation_OrientationVectorRadians::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Orientation_OrientationVectorRadians* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Orientation.OrientationVectorRadians"; + } + protected: + explicit Orientation_OrientationVectorRadians(::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 { + kThetaFieldNumber = 1, + kXFieldNumber = 2, + kYFieldNumber = 3, + kZFieldNumber = 4, + }; + // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; + void clear_theta(); + double theta() const; + void set_theta(double value); + private: + double _internal_theta() const; + void _internal_set_theta(double value); + public: + + // double x = 2 [json_name = "x"]; + void clear_x(); + double x() const; + void set_x(double value); + private: + double _internal_x() const; + void _internal_set_x(double value); + public: + + // double y = 3 [json_name = "y"]; + void clear_y(); + double y() const; + void set_y(double value); + private: + double _internal_y() const; + void _internal_set_y(double value); + public: + + // double z = 4 [json_name = "z"]; + void clear_z(); + double z() const; + void set_z(double value); + private: + double _internal_z() const; + void _internal_set_z(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.Orientation.OrientationVectorRadians) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + double theta_; + double x_; + double y_; + double z_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class Orientation_OrientationVectorDegrees final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Orientation.OrientationVectorDegrees) */ { + public: + inline Orientation_OrientationVectorDegrees() : Orientation_OrientationVectorDegrees(nullptr) {} + ~Orientation_OrientationVectorDegrees() override; + explicit PROTOBUF_CONSTEXPR Orientation_OrientationVectorDegrees(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Orientation_OrientationVectorDegrees(const Orientation_OrientationVectorDegrees& from); + Orientation_OrientationVectorDegrees(Orientation_OrientationVectorDegrees&& from) noexcept + : Orientation_OrientationVectorDegrees() { + *this = ::std::move(from); + } + + inline Orientation_OrientationVectorDegrees& operator=(const Orientation_OrientationVectorDegrees& from) { + CopyFrom(from); + return *this; + } + inline Orientation_OrientationVectorDegrees& operator=(Orientation_OrientationVectorDegrees&& 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 Orientation_OrientationVectorDegrees& default_instance() { + return *internal_default_instance(); + } + static inline const Orientation_OrientationVectorDegrees* internal_default_instance() { + return reinterpret_cast( + &_Orientation_OrientationVectorDegrees_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(Orientation_OrientationVectorDegrees& a, Orientation_OrientationVectorDegrees& b) { + a.Swap(&b); + } + inline void Swap(Orientation_OrientationVectorDegrees* 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(Orientation_OrientationVectorDegrees* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Orientation_OrientationVectorDegrees* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Orientation_OrientationVectorDegrees& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Orientation_OrientationVectorDegrees& from) { + Orientation_OrientationVectorDegrees::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Orientation_OrientationVectorDegrees* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Orientation.OrientationVectorDegrees"; + } + protected: + explicit Orientation_OrientationVectorDegrees(::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 { + kThetaFieldNumber = 1, + kXFieldNumber = 2, + kYFieldNumber = 3, + kZFieldNumber = 4, + }; + // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; + void clear_theta(); + double theta() const; + void set_theta(double value); + private: + double _internal_theta() const; + void _internal_set_theta(double value); + public: + + // double x = 2 [json_name = "x"]; + void clear_x(); + double x() const; + void set_x(double value); + private: + double _internal_x() const; + void _internal_set_x(double value); + public: + + // double y = 3 [json_name = "y"]; + void clear_y(); + double y() const; + void set_y(double value); + private: + double _internal_y() const; + void _internal_set_y(double value); + public: + + // double z = 4 [json_name = "z"]; + void clear_z(); + double z() const; + void set_z(double value); + private: + double _internal_z() const; + void _internal_set_z(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.Orientation.OrientationVectorDegrees) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + double theta_; + double x_; + double y_; + double z_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class Orientation_EulerAngles final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Orientation.EulerAngles) */ { + public: + inline Orientation_EulerAngles() : Orientation_EulerAngles(nullptr) {} + ~Orientation_EulerAngles() override; + explicit PROTOBUF_CONSTEXPR Orientation_EulerAngles(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Orientation_EulerAngles(const Orientation_EulerAngles& from); + Orientation_EulerAngles(Orientation_EulerAngles&& from) noexcept + : Orientation_EulerAngles() { + *this = ::std::move(from); + } + + inline Orientation_EulerAngles& operator=(const Orientation_EulerAngles& from) { + CopyFrom(from); + return *this; + } + inline Orientation_EulerAngles& operator=(Orientation_EulerAngles&& 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 Orientation_EulerAngles& default_instance() { + return *internal_default_instance(); + } + static inline const Orientation_EulerAngles* internal_default_instance() { + return reinterpret_cast( + &_Orientation_EulerAngles_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(Orientation_EulerAngles& a, Orientation_EulerAngles& b) { + a.Swap(&b); + } + inline void Swap(Orientation_EulerAngles* 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(Orientation_EulerAngles* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Orientation_EulerAngles* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Orientation_EulerAngles& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Orientation_EulerAngles& from) { + Orientation_EulerAngles::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Orientation_EulerAngles* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Orientation.EulerAngles"; + } + protected: + explicit Orientation_EulerAngles(::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 { + kRollFieldNumber = 1, + kPitchFieldNumber = 2, + kYawFieldNumber = 3, + }; + // double roll = 1 [json_name = "roll"]; + void clear_roll(); + double roll() const; + void set_roll(double value); + private: + double _internal_roll() const; + void _internal_set_roll(double value); + public: + + // double pitch = 2 [json_name = "pitch"]; + void clear_pitch(); + double pitch() const; + void set_pitch(double value); + private: + double _internal_pitch() const; + void _internal_set_pitch(double value); + public: + + // double yaw = 3 [json_name = "yaw"]; + void clear_yaw(); + double yaw() const; + void set_yaw(double value); + private: + double _internal_yaw() const; + void _internal_set_yaw(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.Orientation.EulerAngles) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + double roll_; + double pitch_; + double yaw_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class Orientation_AxisAngles final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Orientation.AxisAngles) */ { + public: + inline Orientation_AxisAngles() : Orientation_AxisAngles(nullptr) {} + ~Orientation_AxisAngles() override; + explicit PROTOBUF_CONSTEXPR Orientation_AxisAngles(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Orientation_AxisAngles(const Orientation_AxisAngles& from); + Orientation_AxisAngles(Orientation_AxisAngles&& from) noexcept + : Orientation_AxisAngles() { + *this = ::std::move(from); + } + + inline Orientation_AxisAngles& operator=(const Orientation_AxisAngles& from) { + CopyFrom(from); + return *this; + } + inline Orientation_AxisAngles& operator=(Orientation_AxisAngles&& 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 Orientation_AxisAngles& default_instance() { + return *internal_default_instance(); + } + static inline const Orientation_AxisAngles* internal_default_instance() { + return reinterpret_cast( + &_Orientation_AxisAngles_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(Orientation_AxisAngles& a, Orientation_AxisAngles& b) { + a.Swap(&b); + } + inline void Swap(Orientation_AxisAngles* 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(Orientation_AxisAngles* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Orientation_AxisAngles* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Orientation_AxisAngles& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Orientation_AxisAngles& from) { + Orientation_AxisAngles::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Orientation_AxisAngles* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Orientation.AxisAngles"; + } + protected: + explicit Orientation_AxisAngles(::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 { + kThetaFieldNumber = 1, + kXFieldNumber = 2, + kYFieldNumber = 3, + kZFieldNumber = 4, + }; + // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; + void clear_theta(); + double theta() const; + void set_theta(double value); + private: + double _internal_theta() const; + void _internal_set_theta(double value); + public: + + // double x = 2 [json_name = "x"]; + void clear_x(); + double x() const; + void set_x(double value); + private: + double _internal_x() const; + void _internal_set_x(double value); + public: + + // double y = 3 [json_name = "y"]; + void clear_y(); + double y() const; + void set_y(double value); + private: + double _internal_y() const; + void _internal_set_y(double value); + public: + + // double z = 4 [json_name = "z"]; + void clear_z(); + double z() const; + void set_z(double value); + private: + double _internal_z() const; + void _internal_set_z(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.Orientation.AxisAngles) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + double theta_; + double x_; + double y_; + double z_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class Orientation_Quaternion final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Orientation.Quaternion) */ { + public: + inline Orientation_Quaternion() : Orientation_Quaternion(nullptr) {} + ~Orientation_Quaternion() override; + explicit PROTOBUF_CONSTEXPR Orientation_Quaternion(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Orientation_Quaternion(const Orientation_Quaternion& from); + Orientation_Quaternion(Orientation_Quaternion&& from) noexcept + : Orientation_Quaternion() { + *this = ::std::move(from); + } + + inline Orientation_Quaternion& operator=(const Orientation_Quaternion& from) { + CopyFrom(from); + return *this; + } + inline Orientation_Quaternion& operator=(Orientation_Quaternion&& 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 Orientation_Quaternion& default_instance() { + return *internal_default_instance(); + } + static inline const Orientation_Quaternion* internal_default_instance() { + return reinterpret_cast( + &_Orientation_Quaternion_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + friend void swap(Orientation_Quaternion& a, Orientation_Quaternion& b) { + a.Swap(&b); + } + inline void Swap(Orientation_Quaternion* 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(Orientation_Quaternion* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Orientation_Quaternion* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Orientation_Quaternion& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Orientation_Quaternion& from) { + Orientation_Quaternion::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Orientation_Quaternion* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Orientation.Quaternion"; + } + protected: + explicit Orientation_Quaternion(::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 { + kWFieldNumber = 1, + kXFieldNumber = 2, + kYFieldNumber = 3, + kZFieldNumber = 4, + }; + // double w = 1 [json_name = "w"]; + void clear_w(); + double w() const; + void set_w(double value); + private: + double _internal_w() const; + void _internal_set_w(double value); + public: + + // double x = 2 [json_name = "x"]; + void clear_x(); + double x() const; + void set_x(double value); + private: + double _internal_x() const; + void _internal_set_x(double value); + public: + + // double y = 3 [json_name = "y"]; + void clear_y(); + double y() const; + void set_y(double value); + private: + double _internal_y() const; + void _internal_set_y(double value); + public: + + // double z = 4 [json_name = "z"]; + void clear_z(); + double z() const; + void set_z(double value); + private: + double _internal_z() const; + void _internal_set_z(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.Orientation.Quaternion) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + double w_; + double x_; + double y_; + double z_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class Orientation final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Orientation) */ { + public: + inline Orientation() : Orientation(nullptr) {} + ~Orientation() override; + explicit PROTOBUF_CONSTEXPR Orientation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Orientation(const Orientation& from); + Orientation(Orientation&& from) noexcept + : Orientation() { + *this = ::std::move(from); + } + + inline Orientation& operator=(const Orientation& from) { + CopyFrom(from); + return *this; + } + inline Orientation& operator=(Orientation&& 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 Orientation& default_instance() { + return *internal_default_instance(); + } + enum TypeCase { + kNoOrientation = 1, + kVectorRadians = 2, + kVectorDegrees = 3, + kEulerAngles = 4, + kAxisAngles = 5, + kQuaternion = 6, + TYPE_NOT_SET = 0, + }; + + static inline const Orientation* internal_default_instance() { + return reinterpret_cast( + &_Orientation_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + friend void swap(Orientation& a, Orientation& b) { + a.Swap(&b); + } + inline void Swap(Orientation* 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(Orientation* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Orientation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Orientation& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Orientation& from) { + Orientation::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Orientation* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Orientation"; + } + protected: + explicit Orientation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef Orientation_NoOrientation NoOrientation; + typedef Orientation_OrientationVectorRadians OrientationVectorRadians; + typedef Orientation_OrientationVectorDegrees OrientationVectorDegrees; + typedef Orientation_EulerAngles EulerAngles; + typedef Orientation_AxisAngles AxisAngles; + typedef Orientation_Quaternion Quaternion; + + // accessors ------------------------------------------------------- + + enum : int { + kNoOrientationFieldNumber = 1, + kVectorRadiansFieldNumber = 2, + kVectorDegreesFieldNumber = 3, + kEulerAnglesFieldNumber = 4, + kAxisAnglesFieldNumber = 5, + kQuaternionFieldNumber = 6, + }; + // .viam.app.v1.Orientation.NoOrientation no_orientation = 1 [json_name = "noOrientation"]; + bool has_no_orientation() const; + private: + bool _internal_has_no_orientation() const; + public: + void clear_no_orientation(); + const ::viam::app::v1::Orientation_NoOrientation& no_orientation() const; + PROTOBUF_NODISCARD ::viam::app::v1::Orientation_NoOrientation* release_no_orientation(); + ::viam::app::v1::Orientation_NoOrientation* mutable_no_orientation(); + void set_allocated_no_orientation(::viam::app::v1::Orientation_NoOrientation* no_orientation); + private: + const ::viam::app::v1::Orientation_NoOrientation& _internal_no_orientation() const; + ::viam::app::v1::Orientation_NoOrientation* _internal_mutable_no_orientation(); + public: + void unsafe_arena_set_allocated_no_orientation( + ::viam::app::v1::Orientation_NoOrientation* no_orientation); + ::viam::app::v1::Orientation_NoOrientation* unsafe_arena_release_no_orientation(); + + // .viam.app.v1.Orientation.OrientationVectorRadians vector_radians = 2 [json_name = "vectorRadians"]; + bool has_vector_radians() const; + private: + bool _internal_has_vector_radians() const; + public: + void clear_vector_radians(); + const ::viam::app::v1::Orientation_OrientationVectorRadians& vector_radians() const; + PROTOBUF_NODISCARD ::viam::app::v1::Orientation_OrientationVectorRadians* release_vector_radians(); + ::viam::app::v1::Orientation_OrientationVectorRadians* mutable_vector_radians(); + void set_allocated_vector_radians(::viam::app::v1::Orientation_OrientationVectorRadians* vector_radians); + private: + const ::viam::app::v1::Orientation_OrientationVectorRadians& _internal_vector_radians() const; + ::viam::app::v1::Orientation_OrientationVectorRadians* _internal_mutable_vector_radians(); + public: + void unsafe_arena_set_allocated_vector_radians( + ::viam::app::v1::Orientation_OrientationVectorRadians* vector_radians); + ::viam::app::v1::Orientation_OrientationVectorRadians* unsafe_arena_release_vector_radians(); + + // .viam.app.v1.Orientation.OrientationVectorDegrees vector_degrees = 3 [json_name = "vectorDegrees"]; + bool has_vector_degrees() const; + private: + bool _internal_has_vector_degrees() const; + public: + void clear_vector_degrees(); + const ::viam::app::v1::Orientation_OrientationVectorDegrees& vector_degrees() const; + PROTOBUF_NODISCARD ::viam::app::v1::Orientation_OrientationVectorDegrees* release_vector_degrees(); + ::viam::app::v1::Orientation_OrientationVectorDegrees* mutable_vector_degrees(); + void set_allocated_vector_degrees(::viam::app::v1::Orientation_OrientationVectorDegrees* vector_degrees); + private: + const ::viam::app::v1::Orientation_OrientationVectorDegrees& _internal_vector_degrees() const; + ::viam::app::v1::Orientation_OrientationVectorDegrees* _internal_mutable_vector_degrees(); + public: + void unsafe_arena_set_allocated_vector_degrees( + ::viam::app::v1::Orientation_OrientationVectorDegrees* vector_degrees); + ::viam::app::v1::Orientation_OrientationVectorDegrees* unsafe_arena_release_vector_degrees(); + + // .viam.app.v1.Orientation.EulerAngles euler_angles = 4 [json_name = "eulerAngles"]; + bool has_euler_angles() const; + private: + bool _internal_has_euler_angles() const; + public: + void clear_euler_angles(); + const ::viam::app::v1::Orientation_EulerAngles& euler_angles() const; + PROTOBUF_NODISCARD ::viam::app::v1::Orientation_EulerAngles* release_euler_angles(); + ::viam::app::v1::Orientation_EulerAngles* mutable_euler_angles(); + void set_allocated_euler_angles(::viam::app::v1::Orientation_EulerAngles* euler_angles); + private: + const ::viam::app::v1::Orientation_EulerAngles& _internal_euler_angles() const; + ::viam::app::v1::Orientation_EulerAngles* _internal_mutable_euler_angles(); + public: + void unsafe_arena_set_allocated_euler_angles( + ::viam::app::v1::Orientation_EulerAngles* euler_angles); + ::viam::app::v1::Orientation_EulerAngles* unsafe_arena_release_euler_angles(); + + // .viam.app.v1.Orientation.AxisAngles axis_angles = 5 [json_name = "axisAngles"]; + bool has_axis_angles() const; + private: + bool _internal_has_axis_angles() const; + public: + void clear_axis_angles(); + const ::viam::app::v1::Orientation_AxisAngles& axis_angles() const; + PROTOBUF_NODISCARD ::viam::app::v1::Orientation_AxisAngles* release_axis_angles(); + ::viam::app::v1::Orientation_AxisAngles* mutable_axis_angles(); + void set_allocated_axis_angles(::viam::app::v1::Orientation_AxisAngles* axis_angles); + private: + const ::viam::app::v1::Orientation_AxisAngles& _internal_axis_angles() const; + ::viam::app::v1::Orientation_AxisAngles* _internal_mutable_axis_angles(); + public: + void unsafe_arena_set_allocated_axis_angles( + ::viam::app::v1::Orientation_AxisAngles* axis_angles); + ::viam::app::v1::Orientation_AxisAngles* unsafe_arena_release_axis_angles(); + + // .viam.app.v1.Orientation.Quaternion quaternion = 6 [json_name = "quaternion"]; + bool has_quaternion() const; + private: + bool _internal_has_quaternion() const; + public: + void clear_quaternion(); + const ::viam::app::v1::Orientation_Quaternion& quaternion() const; + PROTOBUF_NODISCARD ::viam::app::v1::Orientation_Quaternion* release_quaternion(); + ::viam::app::v1::Orientation_Quaternion* mutable_quaternion(); + void set_allocated_quaternion(::viam::app::v1::Orientation_Quaternion* quaternion); + private: + const ::viam::app::v1::Orientation_Quaternion& _internal_quaternion() const; + ::viam::app::v1::Orientation_Quaternion* _internal_mutable_quaternion(); + public: + void unsafe_arena_set_allocated_quaternion( + ::viam::app::v1::Orientation_Quaternion* quaternion); + ::viam::app::v1::Orientation_Quaternion* unsafe_arena_release_quaternion(); + + void clear_type(); + TypeCase type_case() const; + // @@protoc_insertion_point(class_scope:viam.app.v1.Orientation) + private: + class _Internal; + void set_has_no_orientation(); + void set_has_vector_radians(); + void set_has_vector_degrees(); + void set_has_euler_angles(); + void set_has_axis_angles(); + void set_has_quaternion(); + + inline bool has_type() const; + inline void clear_has_type(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + union TypeUnion { + constexpr TypeUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::viam::app::v1::Orientation_NoOrientation* no_orientation_; + ::viam::app::v1::Orientation_OrientationVectorRadians* vector_radians_; + ::viam::app::v1::Orientation_OrientationVectorDegrees* vector_degrees_; + ::viam::app::v1::Orientation_EulerAngles* euler_angles_; + ::viam::app::v1::Orientation_AxisAngles* axis_angles_; + ::viam::app::v1::Orientation_Quaternion* quaternion_; + } type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class RemoteConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RemoteConfig) */ { + public: + inline RemoteConfig() : RemoteConfig(nullptr) {} + ~RemoteConfig() override; + explicit PROTOBUF_CONSTEXPR RemoteConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RemoteConfig(const RemoteConfig& from); + RemoteConfig(RemoteConfig&& from) noexcept + : RemoteConfig() { + *this = ::std::move(from); + } + + inline RemoteConfig& operator=(const RemoteConfig& from) { + CopyFrom(from); + return *this; + } + inline RemoteConfig& operator=(RemoteConfig&& 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 RemoteConfig& default_instance() { + return *internal_default_instance(); + } + static inline const RemoteConfig* internal_default_instance() { + return reinterpret_cast( + &_RemoteConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + friend void swap(RemoteConfig& a, RemoteConfig& b) { + a.Swap(&b); + } + inline void Swap(RemoteConfig* 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(RemoteConfig* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RemoteConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RemoteConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RemoteConfig& from) { + RemoteConfig::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RemoteConfig* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RemoteConfig"; + } + protected: + explicit RemoteConfig(::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 { + kServiceConfigsFieldNumber = 9, + kNameFieldNumber = 1, + kAddressFieldNumber = 2, + kManagedByFieldNumber = 5, + kSecretFieldNumber = 10, + kFrameFieldNumber = 3, + kAuthFieldNumber = 4, + kConnectionCheckIntervalFieldNumber = 7, + kReconnectIntervalFieldNumber = 8, + kInsecureFieldNumber = 6, + }; + // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 9 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; + int service_configs_size() const; + private: + int _internal_service_configs_size() const; + public: + void clear_service_configs(); + ::viam::app::v1::ResourceLevelServiceConfig* mutable_service_configs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >* + mutable_service_configs(); + private: + const ::viam::app::v1::ResourceLevelServiceConfig& _internal_service_configs(int index) const; + ::viam::app::v1::ResourceLevelServiceConfig* _internal_add_service_configs(); + public: + const ::viam::app::v1::ResourceLevelServiceConfig& service_configs(int index) const; + ::viam::app::v1::ResourceLevelServiceConfig* add_service_configs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >& + service_configs() const; + + // 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 address = 2 [json_name = "address"]; + void clear_address(); + const std::string& address() const; + template + void set_address(ArgT0&& arg0, ArgT... args); + std::string* mutable_address(); + PROTOBUF_NODISCARD std::string* release_address(); + void set_allocated_address(std::string* address); + private: + const std::string& _internal_address() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_address(const std::string& value); + std::string* _internal_mutable_address(); + public: + + // string managed_by = 5 [json_name = "managedBy"]; + void clear_managed_by(); + const std::string& managed_by() const; + template + void set_managed_by(ArgT0&& arg0, ArgT... args); + std::string* mutable_managed_by(); + PROTOBUF_NODISCARD std::string* release_managed_by(); + void set_allocated_managed_by(std::string* managed_by); + private: + const std::string& _internal_managed_by() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_managed_by(const std::string& value); + std::string* _internal_mutable_managed_by(); + public: + + // string secret = 10 [json_name = "secret"]; + void clear_secret(); + const std::string& secret() const; + template + void set_secret(ArgT0&& arg0, ArgT... args); + std::string* mutable_secret(); + PROTOBUF_NODISCARD std::string* release_secret(); + void set_allocated_secret(std::string* secret); + private: + const std::string& _internal_secret() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret(const std::string& value); + std::string* _internal_mutable_secret(); + public: + + // .viam.app.v1.Frame frame = 3 [json_name = "frame"]; + bool has_frame() const; + private: + bool _internal_has_frame() const; + public: + void clear_frame(); + const ::viam::app::v1::Frame& frame() const; + PROTOBUF_NODISCARD ::viam::app::v1::Frame* release_frame(); + ::viam::app::v1::Frame* mutable_frame(); + void set_allocated_frame(::viam::app::v1::Frame* frame); + private: + const ::viam::app::v1::Frame& _internal_frame() const; + ::viam::app::v1::Frame* _internal_mutable_frame(); + public: + void unsafe_arena_set_allocated_frame( + ::viam::app::v1::Frame* frame); + ::viam::app::v1::Frame* unsafe_arena_release_frame(); + + // .viam.app.v1.RemoteAuth auth = 4 [json_name = "auth"]; + bool has_auth() const; + private: + bool _internal_has_auth() const; + public: + void clear_auth(); + const ::viam::app::v1::RemoteAuth& auth() const; + PROTOBUF_NODISCARD ::viam::app::v1::RemoteAuth* release_auth(); + ::viam::app::v1::RemoteAuth* mutable_auth(); + void set_allocated_auth(::viam::app::v1::RemoteAuth* auth); + private: + const ::viam::app::v1::RemoteAuth& _internal_auth() const; + ::viam::app::v1::RemoteAuth* _internal_mutable_auth(); + public: + void unsafe_arena_set_allocated_auth( + ::viam::app::v1::RemoteAuth* auth); + ::viam::app::v1::RemoteAuth* unsafe_arena_release_auth(); + + // .google.protobuf.Duration connection_check_interval = 7 [json_name = "connectionCheckInterval"]; + bool has_connection_check_interval() const; + private: + bool _internal_has_connection_check_interval() const; + public: + void clear_connection_check_interval(); + const ::PROTOBUF_NAMESPACE_ID::Duration& connection_check_interval() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_connection_check_interval(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_connection_check_interval(); + void set_allocated_connection_check_interval(::PROTOBUF_NAMESPACE_ID::Duration* connection_check_interval); + private: + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_connection_check_interval() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_connection_check_interval(); + public: + void unsafe_arena_set_allocated_connection_check_interval( + ::PROTOBUF_NAMESPACE_ID::Duration* connection_check_interval); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_connection_check_interval(); + + // .google.protobuf.Duration reconnect_interval = 8 [json_name = "reconnectInterval"]; + bool has_reconnect_interval() const; + private: + bool _internal_has_reconnect_interval() const; + public: + void clear_reconnect_interval(); + const ::PROTOBUF_NAMESPACE_ID::Duration& reconnect_interval() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_reconnect_interval(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_reconnect_interval(); + void set_allocated_reconnect_interval(::PROTOBUF_NAMESPACE_ID::Duration* reconnect_interval); + private: + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_reconnect_interval() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_reconnect_interval(); + public: + void unsafe_arena_set_allocated_reconnect_interval( + ::PROTOBUF_NAMESPACE_ID::Duration* reconnect_interval); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_reconnect_interval(); + + // bool insecure = 6 [json_name = "insecure"]; + void clear_insecure(); + bool insecure() const; + void set_insecure(bool value); + private: + bool _internal_insecure() const; + void _internal_set_insecure(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.RemoteConfig) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig > service_configs_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr address_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr managed_by_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr secret_; + ::viam::app::v1::Frame* frame_; + ::viam::app::v1::RemoteAuth* auth_; + ::PROTOBUF_NAMESPACE_ID::Duration* connection_check_interval_; + ::PROTOBUF_NAMESPACE_ID::Duration* reconnect_interval_; + bool insecure_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class RemoteAuth_Credentials final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RemoteAuth.Credentials) */ { + public: + inline RemoteAuth_Credentials() : RemoteAuth_Credentials(nullptr) {} + ~RemoteAuth_Credentials() override; + explicit PROTOBUF_CONSTEXPR RemoteAuth_Credentials(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RemoteAuth_Credentials(const RemoteAuth_Credentials& from); + RemoteAuth_Credentials(RemoteAuth_Credentials&& from) noexcept + : RemoteAuth_Credentials() { + *this = ::std::move(from); + } + + inline RemoteAuth_Credentials& operator=(const RemoteAuth_Credentials& from) { + CopyFrom(from); + return *this; + } + inline RemoteAuth_Credentials& operator=(RemoteAuth_Credentials&& 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 RemoteAuth_Credentials& default_instance() { + return *internal_default_instance(); + } + static inline const RemoteAuth_Credentials* internal_default_instance() { + return reinterpret_cast( + &_RemoteAuth_Credentials_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + friend void swap(RemoteAuth_Credentials& a, RemoteAuth_Credentials& b) { + a.Swap(&b); + } + inline void Swap(RemoteAuth_Credentials* 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(RemoteAuth_Credentials* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RemoteAuth_Credentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RemoteAuth_Credentials& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RemoteAuth_Credentials& from) { + RemoteAuth_Credentials::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RemoteAuth_Credentials* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RemoteAuth.Credentials"; + } + protected: + explicit RemoteAuth_Credentials(::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 { + kPayloadFieldNumber = 2, + kTypeFieldNumber = 1, + }; + // string payload = 2 [json_name = "payload"]; + void clear_payload(); + const std::string& payload() const; + template + void set_payload(ArgT0&& arg0, ArgT... args); + std::string* mutable_payload(); + PROTOBUF_NODISCARD std::string* release_payload(); + void set_allocated_payload(std::string* payload); + private: + const std::string& _internal_payload() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_payload(const std::string& value); + std::string* _internal_mutable_payload(); + public: + + // .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; + void clear_type(); + ::viam::app::v1::CredentialsType type() const; + void set_type(::viam::app::v1::CredentialsType value); + private: + ::viam::app::v1::CredentialsType _internal_type() const; + void _internal_set_type(::viam::app::v1::CredentialsType value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.RemoteAuth.Credentials) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_; + int type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class RemoteAuth final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RemoteAuth) */ { + public: + inline RemoteAuth() : RemoteAuth(nullptr) {} + ~RemoteAuth() override; + explicit PROTOBUF_CONSTEXPR RemoteAuth(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RemoteAuth(const RemoteAuth& from); + RemoteAuth(RemoteAuth&& from) noexcept + : RemoteAuth() { + *this = ::std::move(from); + } + + inline RemoteAuth& operator=(const RemoteAuth& from) { + CopyFrom(from); + return *this; + } + inline RemoteAuth& operator=(RemoteAuth&& 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 RemoteAuth& default_instance() { + return *internal_default_instance(); + } + static inline const RemoteAuth* internal_default_instance() { + return reinterpret_cast( + &_RemoteAuth_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + friend void swap(RemoteAuth& a, RemoteAuth& b) { + a.Swap(&b); + } + inline void Swap(RemoteAuth* 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(RemoteAuth* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RemoteAuth* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RemoteAuth& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RemoteAuth& from) { + RemoteAuth::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RemoteAuth* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RemoteAuth"; + } + protected: + explicit RemoteAuth(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef RemoteAuth_Credentials Credentials; + + // accessors ------------------------------------------------------- + + enum : int { + kEntityFieldNumber = 2, + kCredentialsFieldNumber = 1, + }; + // string entity = 2 [json_name = "entity"]; + void clear_entity(); + const std::string& entity() const; + template + void set_entity(ArgT0&& arg0, ArgT... args); + std::string* mutable_entity(); + PROTOBUF_NODISCARD std::string* release_entity(); + void set_allocated_entity(std::string* entity); + private: + const std::string& _internal_entity() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_entity(const std::string& value); + std::string* _internal_mutable_entity(); + public: + + // .viam.app.v1.RemoteAuth.Credentials credentials = 1 [json_name = "credentials"]; + bool has_credentials() const; + private: + bool _internal_has_credentials() const; + public: + void clear_credentials(); + const ::viam::app::v1::RemoteAuth_Credentials& credentials() const; + PROTOBUF_NODISCARD ::viam::app::v1::RemoteAuth_Credentials* release_credentials(); + ::viam::app::v1::RemoteAuth_Credentials* mutable_credentials(); + void set_allocated_credentials(::viam::app::v1::RemoteAuth_Credentials* credentials); + private: + const ::viam::app::v1::RemoteAuth_Credentials& _internal_credentials() const; + ::viam::app::v1::RemoteAuth_Credentials* _internal_mutable_credentials(); + public: + void unsafe_arena_set_allocated_credentials( + ::viam::app::v1::RemoteAuth_Credentials* credentials); + ::viam::app::v1::RemoteAuth_Credentials* unsafe_arena_release_credentials(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.RemoteAuth) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr entity_; + ::viam::app::v1::RemoteAuth_Credentials* credentials_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class AgentInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.AgentInfo) */ { + public: + inline AgentInfo() : AgentInfo(nullptr) {} + ~AgentInfo() override; + explicit PROTOBUF_CONSTEXPR AgentInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AgentInfo(const AgentInfo& from); + AgentInfo(AgentInfo&& from) noexcept + : AgentInfo() { + *this = ::std::move(from); + } + + inline AgentInfo& operator=(const AgentInfo& from) { + CopyFrom(from); + return *this; + } + inline AgentInfo& operator=(AgentInfo&& 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 AgentInfo& default_instance() { + return *internal_default_instance(); + } + static inline const AgentInfo* internal_default_instance() { + return reinterpret_cast( + &_AgentInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + friend void swap(AgentInfo& a, AgentInfo& b) { + a.Swap(&b); + } + inline void Swap(AgentInfo* 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(AgentInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AgentInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AgentInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const AgentInfo& from) { + AgentInfo::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AgentInfo* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.AgentInfo"; + } + protected: + explicit AgentInfo(::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 { + kIpsFieldNumber = 3, + kHostFieldNumber = 1, + kOsFieldNumber = 2, + kVersionFieldNumber = 4, + kGitRevisionFieldNumber = 5, + }; + // repeated string ips = 3 [json_name = "ips"]; + int ips_size() const; + private: + int _internal_ips_size() const; + public: + void clear_ips(); + const std::string& ips(int index) const; + std::string* mutable_ips(int index); + void set_ips(int index, const std::string& value); + void set_ips(int index, std::string&& value); + void set_ips(int index, const char* value); + void set_ips(int index, const char* value, size_t size); + std::string* add_ips(); + void add_ips(const std::string& value); + void add_ips(std::string&& value); + void add_ips(const char* value); + void add_ips(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& ips() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_ips(); + private: + const std::string& _internal_ips(int index) const; + std::string* _internal_add_ips(); + public: + + // string host = 1 [json_name = "host"]; + void clear_host(); + const std::string& host() const; + template + void set_host(ArgT0&& arg0, ArgT... args); + std::string* mutable_host(); + PROTOBUF_NODISCARD std::string* release_host(); + void set_allocated_host(std::string* host); + private: + const std::string& _internal_host() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_host(const std::string& value); + std::string* _internal_mutable_host(); + public: + + // string os = 2 [json_name = "os"]; + void clear_os(); + const std::string& os() const; + template + void set_os(ArgT0&& arg0, ArgT... args); + std::string* mutable_os(); + PROTOBUF_NODISCARD std::string* release_os(); + void set_allocated_os(std::string* os); + private: + const std::string& _internal_os() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_os(const std::string& value); + std::string* _internal_mutable_os(); + public: + + // string version = 4 [json_name = "version"]; + void clear_version(); + const std::string& version() const; + template + void set_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_version(); + PROTOBUF_NODISCARD std::string* release_version(); + void set_allocated_version(std::string* version); + private: + const std::string& _internal_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); + std::string* _internal_mutable_version(); + public: + + // string git_revision = 5 [json_name = "gitRevision"]; + void clear_git_revision(); + const std::string& git_revision() const; + template + void set_git_revision(ArgT0&& arg0, ArgT... args); + std::string* mutable_git_revision(); + PROTOBUF_NODISCARD std::string* release_git_revision(); + void set_allocated_git_revision(std::string* git_revision); + private: + const std::string& _internal_git_revision() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_git_revision(const std::string& value); + std::string* _internal_mutable_git_revision(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.AgentInfo) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField ips_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr host_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr os_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr git_revision_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class ConfigRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ConfigRequest) */ { + public: + inline ConfigRequest() : ConfigRequest(nullptr) {} + ~ConfigRequest() override; + explicit PROTOBUF_CONSTEXPR ConfigRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ConfigRequest(const ConfigRequest& from); + ConfigRequest(ConfigRequest&& from) noexcept + : ConfigRequest() { + *this = ::std::move(from); + } + + inline ConfigRequest& operator=(const ConfigRequest& from) { + CopyFrom(from); + return *this; + } + inline ConfigRequest& operator=(ConfigRequest&& 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 ConfigRequest& default_instance() { + return *internal_default_instance(); + } + static inline const ConfigRequest* internal_default_instance() { + return reinterpret_cast( + &_ConfigRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 22; + + friend void swap(ConfigRequest& a, ConfigRequest& b) { + a.Swap(&b); + } + inline void Swap(ConfigRequest* 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(ConfigRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConfigRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ConfigRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ConfigRequest& from) { + ConfigRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ConfigRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ConfigRequest"; + } + protected: + explicit ConfigRequest(::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 { + kIdFieldNumber = 1, + kAgentInfoFieldNumber = 2, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // optional .viam.app.v1.AgentInfo agent_info = 2 [json_name = "agentInfo"]; + bool has_agent_info() const; + private: + bool _internal_has_agent_info() const; + public: + void clear_agent_info(); + const ::viam::app::v1::AgentInfo& agent_info() const; + PROTOBUF_NODISCARD ::viam::app::v1::AgentInfo* release_agent_info(); + ::viam::app::v1::AgentInfo* mutable_agent_info(); + void set_allocated_agent_info(::viam::app::v1::AgentInfo* agent_info); + private: + const ::viam::app::v1::AgentInfo& _internal_agent_info() const; + ::viam::app::v1::AgentInfo* _internal_mutable_agent_info(); + public: + void unsafe_arena_set_allocated_agent_info( + ::viam::app::v1::AgentInfo* agent_info); + ::viam::app::v1::AgentInfo* unsafe_arena_release_agent_info(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.ConfigRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::viam::app::v1::AgentInfo* agent_info_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class ConfigResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ConfigResponse) */ { + public: + inline ConfigResponse() : ConfigResponse(nullptr) {} + ~ConfigResponse() override; + explicit PROTOBUF_CONSTEXPR ConfigResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ConfigResponse(const ConfigResponse& from); + ConfigResponse(ConfigResponse&& from) noexcept + : ConfigResponse() { + *this = ::std::move(from); + } + + inline ConfigResponse& operator=(const ConfigResponse& from) { + CopyFrom(from); + return *this; + } + inline ConfigResponse& operator=(ConfigResponse&& 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 ConfigResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ConfigResponse* internal_default_instance() { + return reinterpret_cast( + &_ConfigResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 23; + + friend void swap(ConfigResponse& a, ConfigResponse& b) { + a.Swap(&b); + } + inline void Swap(ConfigResponse* 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(ConfigResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConfigResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ConfigResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ConfigResponse& from) { + ConfigResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ConfigResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ConfigResponse"; + } + protected: + explicit ConfigResponse(::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 { + kConfigFieldNumber = 1, + }; + // .viam.app.v1.RobotConfig config = 1 [json_name = "config"]; + bool has_config() const; + private: + bool _internal_has_config() const; + public: + void clear_config(); + const ::viam::app::v1::RobotConfig& config() const; + PROTOBUF_NODISCARD ::viam::app::v1::RobotConfig* release_config(); + ::viam::app::v1::RobotConfig* mutable_config(); + void set_allocated_config(::viam::app::v1::RobotConfig* config); + private: + const ::viam::app::v1::RobotConfig& _internal_config() const; + ::viam::app::v1::RobotConfig* _internal_mutable_config(); + public: + void unsafe_arena_set_allocated_config( + ::viam::app::v1::RobotConfig* config); + ::viam::app::v1::RobotConfig* unsafe_arena_release_config(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.ConfigResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::app::v1::RobotConfig* config_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class CertificateRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CertificateRequest) */ { + public: + inline CertificateRequest() : CertificateRequest(nullptr) {} + ~CertificateRequest() override; + explicit PROTOBUF_CONSTEXPR CertificateRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CertificateRequest(const CertificateRequest& from); + CertificateRequest(CertificateRequest&& from) noexcept + : CertificateRequest() { + *this = ::std::move(from); + } + + inline CertificateRequest& operator=(const CertificateRequest& from) { + CopyFrom(from); + return *this; + } + inline CertificateRequest& operator=(CertificateRequest&& 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 CertificateRequest& default_instance() { + return *internal_default_instance(); + } + static inline const CertificateRequest* internal_default_instance() { + return reinterpret_cast( + &_CertificateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 24; + + friend void swap(CertificateRequest& a, CertificateRequest& b) { + a.Swap(&b); + } + inline void Swap(CertificateRequest* 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(CertificateRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CertificateRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CertificateRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const CertificateRequest& from) { + CertificateRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CertificateRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CertificateRequest"; + } + protected: + explicit CertificateRequest(::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 { + kIdFieldNumber = 1, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.CertificateRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class CertificateResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CertificateResponse) */ { + public: + inline CertificateResponse() : CertificateResponse(nullptr) {} + ~CertificateResponse() override; + explicit PROTOBUF_CONSTEXPR CertificateResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CertificateResponse(const CertificateResponse& from); + CertificateResponse(CertificateResponse&& from) noexcept + : CertificateResponse() { + *this = ::std::move(from); + } + + inline CertificateResponse& operator=(const CertificateResponse& from) { + CopyFrom(from); + return *this; + } + inline CertificateResponse& operator=(CertificateResponse&& 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 CertificateResponse& default_instance() { + return *internal_default_instance(); + } + static inline const CertificateResponse* internal_default_instance() { + return reinterpret_cast( + &_CertificateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 25; + + friend void swap(CertificateResponse& a, CertificateResponse& b) { + a.Swap(&b); + } + inline void Swap(CertificateResponse* 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(CertificateResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CertificateResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CertificateResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const CertificateResponse& from) { + CertificateResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CertificateResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CertificateResponse"; + } + protected: + explicit CertificateResponse(::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 { + kIdFieldNumber = 1, + kTlsCertificateFieldNumber = 2, + kTlsPrivateKeyFieldNumber = 3, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string tls_certificate = 2 [json_name = "tlsCertificate"]; + void clear_tls_certificate(); + const std::string& tls_certificate() const; + template + void set_tls_certificate(ArgT0&& arg0, ArgT... args); + std::string* mutable_tls_certificate(); + PROTOBUF_NODISCARD std::string* release_tls_certificate(); + void set_allocated_tls_certificate(std::string* tls_certificate); + private: + const std::string& _internal_tls_certificate() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_tls_certificate(const std::string& value); + std::string* _internal_mutable_tls_certificate(); + public: + + // string tls_private_key = 3 [json_name = "tlsPrivateKey"]; + void clear_tls_private_key(); + const std::string& tls_private_key() const; + template + void set_tls_private_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_tls_private_key(); + PROTOBUF_NODISCARD std::string* release_tls_private_key(); + void set_allocated_tls_private_key(std::string* tls_private_key); + private: + const std::string& _internal_tls_private_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_tls_private_key(const std::string& value); + std::string* _internal_mutable_tls_private_key(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.CertificateResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tls_certificate_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tls_private_key_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class LogRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LogRequest) */ { + public: + inline LogRequest() : LogRequest(nullptr) {} + ~LogRequest() override; + explicit PROTOBUF_CONSTEXPR LogRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + LogRequest(const LogRequest& from); + LogRequest(LogRequest&& from) noexcept + : LogRequest() { + *this = ::std::move(from); + } + + inline LogRequest& operator=(const LogRequest& from) { + CopyFrom(from); + return *this; + } + inline LogRequest& operator=(LogRequest&& 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 LogRequest& default_instance() { + return *internal_default_instance(); + } + static inline const LogRequest* internal_default_instance() { + return reinterpret_cast( + &_LogRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 26; + + friend void swap(LogRequest& a, LogRequest& b) { + a.Swap(&b); + } + inline void Swap(LogRequest* 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(LogRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + LogRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LogRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const LogRequest& from) { + LogRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LogRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.LogRequest"; + } + protected: + explicit LogRequest(::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 { + kLogsFieldNumber = 2, + kIdFieldNumber = 1, + }; + // repeated .viam.app.v1.LogEntry logs = 2 [json_name = "logs"]; + int logs_size() const; + private: + int _internal_logs_size() const; + public: + void clear_logs(); + ::viam::app::v1::LogEntry* mutable_logs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >* + mutable_logs(); + private: + const ::viam::app::v1::LogEntry& _internal_logs(int index) const; + ::viam::app::v1::LogEntry* _internal_add_logs(); + public: + const ::viam::app::v1::LogEntry& logs(int index) const; + ::viam::app::v1::LogEntry* add_logs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >& + logs() const; + + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.LogRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry > logs_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class LogResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.LogResponse) */ { + public: + inline LogResponse() : LogResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR LogResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + LogResponse(const LogResponse& from); + LogResponse(LogResponse&& from) noexcept + : LogResponse() { + *this = ::std::move(from); + } + + inline LogResponse& operator=(const LogResponse& from) { + CopyFrom(from); + return *this; + } + inline LogResponse& operator=(LogResponse&& 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 LogResponse& default_instance() { + return *internal_default_instance(); + } + static inline const LogResponse* internal_default_instance() { + return reinterpret_cast( + &_LogResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 27; + + friend void swap(LogResponse& a, LogResponse& b) { + a.Swap(&b); + } + inline void Swap(LogResponse* 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(LogResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + LogResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const LogResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const LogResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.LogResponse"; + } + protected: + explicit LogResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.app.v1.LogResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class NeedsRestartRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.NeedsRestartRequest) */ { + public: + inline NeedsRestartRequest() : NeedsRestartRequest(nullptr) {} + ~NeedsRestartRequest() override; + explicit PROTOBUF_CONSTEXPR NeedsRestartRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + NeedsRestartRequest(const NeedsRestartRequest& from); + NeedsRestartRequest(NeedsRestartRequest&& from) noexcept + : NeedsRestartRequest() { + *this = ::std::move(from); + } + + inline NeedsRestartRequest& operator=(const NeedsRestartRequest& from) { + CopyFrom(from); + return *this; + } + inline NeedsRestartRequest& operator=(NeedsRestartRequest&& 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 NeedsRestartRequest& default_instance() { + return *internal_default_instance(); + } + static inline const NeedsRestartRequest* internal_default_instance() { + return reinterpret_cast( + &_NeedsRestartRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 28; + + friend void swap(NeedsRestartRequest& a, NeedsRestartRequest& b) { + a.Swap(&b); + } + inline void Swap(NeedsRestartRequest* 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(NeedsRestartRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + NeedsRestartRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const NeedsRestartRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const NeedsRestartRequest& from) { + NeedsRestartRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NeedsRestartRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.NeedsRestartRequest"; + } + protected: + explicit NeedsRestartRequest(::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 { + kIdFieldNumber = 1, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.NeedsRestartRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class NeedsRestartResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.NeedsRestartResponse) */ { + public: + inline NeedsRestartResponse() : NeedsRestartResponse(nullptr) {} + ~NeedsRestartResponse() override; + explicit PROTOBUF_CONSTEXPR NeedsRestartResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + NeedsRestartResponse(const NeedsRestartResponse& from); + NeedsRestartResponse(NeedsRestartResponse&& from) noexcept + : NeedsRestartResponse() { + *this = ::std::move(from); + } + + inline NeedsRestartResponse& operator=(const NeedsRestartResponse& from) { + CopyFrom(from); + return *this; + } + inline NeedsRestartResponse& operator=(NeedsRestartResponse&& 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 NeedsRestartResponse& default_instance() { + return *internal_default_instance(); + } + static inline const NeedsRestartResponse* internal_default_instance() { + return reinterpret_cast( + &_NeedsRestartResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 29; + + friend void swap(NeedsRestartResponse& a, NeedsRestartResponse& b) { + a.Swap(&b); + } + inline void Swap(NeedsRestartResponse* 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(NeedsRestartResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + NeedsRestartResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const NeedsRestartResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const NeedsRestartResponse& from) { + NeedsRestartResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NeedsRestartResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.NeedsRestartResponse"; + } + protected: + explicit NeedsRestartResponse(::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 { + kIdFieldNumber = 1, + kRestartCheckIntervalFieldNumber = 3, + kMustRestartFieldNumber = 2, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // .google.protobuf.Duration restart_check_interval = 3 [json_name = "restartCheckInterval"]; + bool has_restart_check_interval() const; + private: + bool _internal_has_restart_check_interval() const; + public: + void clear_restart_check_interval(); + const ::PROTOBUF_NAMESPACE_ID::Duration& restart_check_interval() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_restart_check_interval(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_restart_check_interval(); + void set_allocated_restart_check_interval(::PROTOBUF_NAMESPACE_ID::Duration* restart_check_interval); + private: + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_restart_check_interval() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_restart_check_interval(); + public: + void unsafe_arena_set_allocated_restart_check_interval( + ::PROTOBUF_NAMESPACE_ID::Duration* restart_check_interval); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_restart_check_interval(); + + // bool must_restart = 2 [json_name = "mustRestart"]; + void clear_must_restart(); + bool must_restart() const; + void set_must_restart(bool value); + private: + bool _internal_must_restart() const; + void _internal_set_must_restart(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.NeedsRestartResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::Duration* restart_check_interval_; + bool must_restart_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// RobotConfig + +// .viam.app.v1.CloudConfig cloud = 1 [json_name = "cloud"]; +inline bool RobotConfig::_internal_has_cloud() const { + return this != internal_default_instance() && _impl_.cloud_ != nullptr; +} +inline bool RobotConfig::has_cloud() const { + return _internal_has_cloud(); +} +inline void RobotConfig::clear_cloud() { + if (GetArenaForAllocation() == nullptr && _impl_.cloud_ != nullptr) { + delete _impl_.cloud_; + } + _impl_.cloud_ = nullptr; +} +inline const ::viam::app::v1::CloudConfig& RobotConfig::_internal_cloud() const { + const ::viam::app::v1::CloudConfig* p = _impl_.cloud_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_CloudConfig_default_instance_); +} +inline const ::viam::app::v1::CloudConfig& RobotConfig::cloud() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.cloud) + return _internal_cloud(); +} +inline void RobotConfig::unsafe_arena_set_allocated_cloud( + ::viam::app::v1::CloudConfig* cloud) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.cloud_); + } + _impl_.cloud_ = cloud; + if (cloud) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotConfig.cloud) +} +inline ::viam::app::v1::CloudConfig* RobotConfig::release_cloud() { + + ::viam::app::v1::CloudConfig* temp = _impl_.cloud_; + _impl_.cloud_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::CloudConfig* RobotConfig::unsafe_arena_release_cloud() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotConfig.cloud) + + ::viam::app::v1::CloudConfig* temp = _impl_.cloud_; + _impl_.cloud_ = nullptr; + return temp; +} +inline ::viam::app::v1::CloudConfig* RobotConfig::_internal_mutable_cloud() { + + if (_impl_.cloud_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::CloudConfig>(GetArenaForAllocation()); + _impl_.cloud_ = p; + } + return _impl_.cloud_; +} +inline ::viam::app::v1::CloudConfig* RobotConfig::mutable_cloud() { + ::viam::app::v1::CloudConfig* _msg = _internal_mutable_cloud(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotConfig.cloud) + return _msg; +} +inline void RobotConfig::set_allocated_cloud(::viam::app::v1::CloudConfig* cloud) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.cloud_; + } + if (cloud) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(cloud); + if (message_arena != submessage_arena) { + cloud = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, cloud, submessage_arena); + } + + } else { + + } + _impl_.cloud_ = cloud; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotConfig.cloud) +} + +// repeated .viam.app.v1.RemoteConfig remotes = 2 [json_name = "remotes"]; +inline int RobotConfig::_internal_remotes_size() const { + return _impl_.remotes_.size(); +} +inline int RobotConfig::remotes_size() const { + return _internal_remotes_size(); +} +inline void RobotConfig::clear_remotes() { + _impl_.remotes_.Clear(); +} +inline ::viam::app::v1::RemoteConfig* RobotConfig::mutable_remotes(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotConfig.remotes) + return _impl_.remotes_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RemoteConfig >* +RobotConfig::mutable_remotes() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.RobotConfig.remotes) + return &_impl_.remotes_; +} +inline const ::viam::app::v1::RemoteConfig& RobotConfig::_internal_remotes(int index) const { + return _impl_.remotes_.Get(index); +} +inline const ::viam::app::v1::RemoteConfig& RobotConfig::remotes(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.remotes) + return _internal_remotes(index); +} +inline ::viam::app::v1::RemoteConfig* RobotConfig::_internal_add_remotes() { + return _impl_.remotes_.Add(); +} +inline ::viam::app::v1::RemoteConfig* RobotConfig::add_remotes() { + ::viam::app::v1::RemoteConfig* _add = _internal_add_remotes(); + // @@protoc_insertion_point(field_add:viam.app.v1.RobotConfig.remotes) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RemoteConfig >& +RobotConfig::remotes() const { + // @@protoc_insertion_point(field_list:viam.app.v1.RobotConfig.remotes) + return _impl_.remotes_; +} + +// repeated .viam.app.v1.ComponentConfig components = 3 [json_name = "components"]; +inline int RobotConfig::_internal_components_size() const { + return _impl_.components_.size(); +} +inline int RobotConfig::components_size() const { + return _internal_components_size(); +} +inline void RobotConfig::clear_components() { + _impl_.components_.Clear(); +} +inline ::viam::app::v1::ComponentConfig* RobotConfig::mutable_components(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotConfig.components) + return _impl_.components_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ComponentConfig >* +RobotConfig::mutable_components() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.RobotConfig.components) + return &_impl_.components_; +} +inline const ::viam::app::v1::ComponentConfig& RobotConfig::_internal_components(int index) const { + return _impl_.components_.Get(index); +} +inline const ::viam::app::v1::ComponentConfig& RobotConfig::components(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.components) + return _internal_components(index); +} +inline ::viam::app::v1::ComponentConfig* RobotConfig::_internal_add_components() { + return _impl_.components_.Add(); +} +inline ::viam::app::v1::ComponentConfig* RobotConfig::add_components() { + ::viam::app::v1::ComponentConfig* _add = _internal_add_components(); + // @@protoc_insertion_point(field_add:viam.app.v1.RobotConfig.components) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ComponentConfig >& +RobotConfig::components() const { + // @@protoc_insertion_point(field_list:viam.app.v1.RobotConfig.components) + return _impl_.components_; +} + +// repeated .viam.app.v1.ProcessConfig processes = 4 [json_name = "processes"]; +inline int RobotConfig::_internal_processes_size() const { + return _impl_.processes_.size(); +} +inline int RobotConfig::processes_size() const { + return _internal_processes_size(); +} +inline void RobotConfig::clear_processes() { + _impl_.processes_.Clear(); +} +inline ::viam::app::v1::ProcessConfig* RobotConfig::mutable_processes(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotConfig.processes) + return _impl_.processes_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ProcessConfig >* +RobotConfig::mutable_processes() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.RobotConfig.processes) + return &_impl_.processes_; +} +inline const ::viam::app::v1::ProcessConfig& RobotConfig::_internal_processes(int index) const { + return _impl_.processes_.Get(index); +} +inline const ::viam::app::v1::ProcessConfig& RobotConfig::processes(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.processes) + return _internal_processes(index); +} +inline ::viam::app::v1::ProcessConfig* RobotConfig::_internal_add_processes() { + return _impl_.processes_.Add(); +} +inline ::viam::app::v1::ProcessConfig* RobotConfig::add_processes() { + ::viam::app::v1::ProcessConfig* _add = _internal_add_processes(); + // @@protoc_insertion_point(field_add:viam.app.v1.RobotConfig.processes) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ProcessConfig >& +RobotConfig::processes() const { + // @@protoc_insertion_point(field_list:viam.app.v1.RobotConfig.processes) + return _impl_.processes_; +} + +// repeated .viam.app.v1.ServiceConfig services = 5 [json_name = "services"]; +inline int RobotConfig::_internal_services_size() const { + return _impl_.services_.size(); +} +inline int RobotConfig::services_size() const { + return _internal_services_size(); +} +inline void RobotConfig::clear_services() { + _impl_.services_.Clear(); +} +inline ::viam::app::v1::ServiceConfig* RobotConfig::mutable_services(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotConfig.services) + return _impl_.services_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ServiceConfig >* +RobotConfig::mutable_services() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.RobotConfig.services) + return &_impl_.services_; +} +inline const ::viam::app::v1::ServiceConfig& RobotConfig::_internal_services(int index) const { + return _impl_.services_.Get(index); +} +inline const ::viam::app::v1::ServiceConfig& RobotConfig::services(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.services) + return _internal_services(index); +} +inline ::viam::app::v1::ServiceConfig* RobotConfig::_internal_add_services() { + return _impl_.services_.Add(); +} +inline ::viam::app::v1::ServiceConfig* RobotConfig::add_services() { + ::viam::app::v1::ServiceConfig* _add = _internal_add_services(); + // @@protoc_insertion_point(field_add:viam.app.v1.RobotConfig.services) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ServiceConfig >& +RobotConfig::services() const { + // @@protoc_insertion_point(field_list:viam.app.v1.RobotConfig.services) + return _impl_.services_; +} + +// optional .viam.app.v1.NetworkConfig network = 6 [json_name = "network"]; +inline bool RobotConfig::_internal_has_network() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.network_ != nullptr); + return value; +} +inline bool RobotConfig::has_network() const { + return _internal_has_network(); +} +inline void RobotConfig::clear_network() { + if (_impl_.network_ != nullptr) _impl_.network_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::viam::app::v1::NetworkConfig& RobotConfig::_internal_network() const { + const ::viam::app::v1::NetworkConfig* p = _impl_.network_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_NetworkConfig_default_instance_); +} +inline const ::viam::app::v1::NetworkConfig& RobotConfig::network() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.network) + return _internal_network(); +} +inline void RobotConfig::unsafe_arena_set_allocated_network( + ::viam::app::v1::NetworkConfig* network) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.network_); + } + _impl_.network_ = network; + if (network) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotConfig.network) +} +inline ::viam::app::v1::NetworkConfig* RobotConfig::release_network() { + _impl_._has_bits_[0] &= ~0x00000001u; + ::viam::app::v1::NetworkConfig* temp = _impl_.network_; + _impl_.network_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::NetworkConfig* RobotConfig::unsafe_arena_release_network() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotConfig.network) + _impl_._has_bits_[0] &= ~0x00000001u; + ::viam::app::v1::NetworkConfig* temp = _impl_.network_; + _impl_.network_ = nullptr; + return temp; +} +inline ::viam::app::v1::NetworkConfig* RobotConfig::_internal_mutable_network() { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.network_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::NetworkConfig>(GetArenaForAllocation()); + _impl_.network_ = p; + } + return _impl_.network_; +} +inline ::viam::app::v1::NetworkConfig* RobotConfig::mutable_network() { + ::viam::app::v1::NetworkConfig* _msg = _internal_mutable_network(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotConfig.network) + return _msg; +} +inline void RobotConfig::set_allocated_network(::viam::app::v1::NetworkConfig* network) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.network_; + } + if (network) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(network); + if (message_arena != submessage_arena) { + network = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, network, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.network_ = network; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotConfig.network) +} + +// optional .viam.app.v1.AuthConfig auth = 7 [json_name = "auth"]; +inline bool RobotConfig::_internal_has_auth() const { + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.auth_ != nullptr); + return value; +} +inline bool RobotConfig::has_auth() const { + return _internal_has_auth(); +} +inline void RobotConfig::clear_auth() { + if (_impl_.auth_ != nullptr) _impl_.auth_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; +} +inline const ::viam::app::v1::AuthConfig& RobotConfig::_internal_auth() const { + const ::viam::app::v1::AuthConfig* p = _impl_.auth_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_AuthConfig_default_instance_); +} +inline const ::viam::app::v1::AuthConfig& RobotConfig::auth() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.auth) + return _internal_auth(); +} +inline void RobotConfig::unsafe_arena_set_allocated_auth( + ::viam::app::v1::AuthConfig* auth) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.auth_); + } + _impl_.auth_ = auth; + if (auth) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotConfig.auth) +} +inline ::viam::app::v1::AuthConfig* RobotConfig::release_auth() { + _impl_._has_bits_[0] &= ~0x00000002u; + ::viam::app::v1::AuthConfig* temp = _impl_.auth_; + _impl_.auth_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::AuthConfig* RobotConfig::unsafe_arena_release_auth() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotConfig.auth) + _impl_._has_bits_[0] &= ~0x00000002u; + ::viam::app::v1::AuthConfig* temp = _impl_.auth_; + _impl_.auth_ = nullptr; + return temp; +} +inline ::viam::app::v1::AuthConfig* RobotConfig::_internal_mutable_auth() { + _impl_._has_bits_[0] |= 0x00000002u; + if (_impl_.auth_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::AuthConfig>(GetArenaForAllocation()); + _impl_.auth_ = p; + } + return _impl_.auth_; +} +inline ::viam::app::v1::AuthConfig* RobotConfig::mutable_auth() { + ::viam::app::v1::AuthConfig* _msg = _internal_mutable_auth(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotConfig.auth) + return _msg; +} +inline void RobotConfig::set_allocated_auth(::viam::app::v1::AuthConfig* auth) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.auth_; + } + if (auth) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(auth); + if (message_arena != submessage_arena) { + auth = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, auth, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + _impl_.auth_ = auth; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotConfig.auth) +} + +// optional bool debug = 8 [json_name = "debug"]; +inline bool RobotConfig::_internal_has_debug() const { + bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool RobotConfig::has_debug() const { + return _internal_has_debug(); +} +inline void RobotConfig::clear_debug() { + _impl_.debug_ = false; + _impl_._has_bits_[0] &= ~0x00000004u; +} +inline bool RobotConfig::_internal_debug() const { + return _impl_.debug_; +} +inline bool RobotConfig::debug() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.debug) + return _internal_debug(); +} +inline void RobotConfig::_internal_set_debug(bool value) { + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.debug_ = value; +} +inline void RobotConfig::set_debug(bool value) { + _internal_set_debug(value); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotConfig.debug) +} + +// ------------------------------------------------------------------- + +// CloudConfig + +// string id = 1 [json_name = "id"]; +inline void CloudConfig::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& CloudConfig::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CloudConfig::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.id) +} +inline std::string* CloudConfig::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CloudConfig.id) + return _s; +} +inline const std::string& CloudConfig::_internal_id() const { + return _impl_.id_.Get(); +} +inline void CloudConfig::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* CloudConfig::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* CloudConfig::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.CloudConfig.id) + return _impl_.id_.Release(); +} +inline void CloudConfig::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CloudConfig.id) +} + +// string fqdn = 2 [json_name = "fqdn"]; +inline void CloudConfig::clear_fqdn() { + _impl_.fqdn_.ClearToEmpty(); +} +inline const std::string& CloudConfig::fqdn() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.fqdn) + return _internal_fqdn(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CloudConfig::set_fqdn(ArgT0&& arg0, ArgT... args) { + + _impl_.fqdn_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.fqdn) +} +inline std::string* CloudConfig::mutable_fqdn() { + std::string* _s = _internal_mutable_fqdn(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CloudConfig.fqdn) + return _s; +} +inline const std::string& CloudConfig::_internal_fqdn() const { + return _impl_.fqdn_.Get(); +} +inline void CloudConfig::_internal_set_fqdn(const std::string& value) { + + _impl_.fqdn_.Set(value, GetArenaForAllocation()); +} +inline std::string* CloudConfig::_internal_mutable_fqdn() { + + return _impl_.fqdn_.Mutable(GetArenaForAllocation()); +} +inline std::string* CloudConfig::release_fqdn() { + // @@protoc_insertion_point(field_release:viam.app.v1.CloudConfig.fqdn) + return _impl_.fqdn_.Release(); +} +inline void CloudConfig::set_allocated_fqdn(std::string* fqdn) { + if (fqdn != nullptr) { + + } else { + + } + _impl_.fqdn_.SetAllocated(fqdn, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.fqdn_.IsDefault()) { + _impl_.fqdn_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CloudConfig.fqdn) +} + +// string local_fqdn = 3 [json_name = "localFqdn"]; +inline void CloudConfig::clear_local_fqdn() { + _impl_.local_fqdn_.ClearToEmpty(); +} +inline const std::string& CloudConfig::local_fqdn() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.local_fqdn) + return _internal_local_fqdn(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CloudConfig::set_local_fqdn(ArgT0&& arg0, ArgT... args) { + + _impl_.local_fqdn_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.local_fqdn) +} +inline std::string* CloudConfig::mutable_local_fqdn() { + std::string* _s = _internal_mutable_local_fqdn(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CloudConfig.local_fqdn) + return _s; +} +inline const std::string& CloudConfig::_internal_local_fqdn() const { + return _impl_.local_fqdn_.Get(); +} +inline void CloudConfig::_internal_set_local_fqdn(const std::string& value) { + + _impl_.local_fqdn_.Set(value, GetArenaForAllocation()); +} +inline std::string* CloudConfig::_internal_mutable_local_fqdn() { + + return _impl_.local_fqdn_.Mutable(GetArenaForAllocation()); +} +inline std::string* CloudConfig::release_local_fqdn() { + // @@protoc_insertion_point(field_release:viam.app.v1.CloudConfig.local_fqdn) + return _impl_.local_fqdn_.Release(); +} +inline void CloudConfig::set_allocated_local_fqdn(std::string* local_fqdn) { + if (local_fqdn != nullptr) { + + } else { + + } + _impl_.local_fqdn_.SetAllocated(local_fqdn, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.local_fqdn_.IsDefault()) { + _impl_.local_fqdn_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CloudConfig.local_fqdn) +} + +// string managed_by = 4 [json_name = "managedBy"]; +inline void CloudConfig::clear_managed_by() { + _impl_.managed_by_.ClearToEmpty(); +} +inline const std::string& CloudConfig::managed_by() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.managed_by) + return _internal_managed_by(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CloudConfig::set_managed_by(ArgT0&& arg0, ArgT... args) { + + _impl_.managed_by_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.managed_by) +} +inline std::string* CloudConfig::mutable_managed_by() { + std::string* _s = _internal_mutable_managed_by(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CloudConfig.managed_by) + return _s; +} +inline const std::string& CloudConfig::_internal_managed_by() const { + return _impl_.managed_by_.Get(); +} +inline void CloudConfig::_internal_set_managed_by(const std::string& value) { + + _impl_.managed_by_.Set(value, GetArenaForAllocation()); +} +inline std::string* CloudConfig::_internal_mutable_managed_by() { + + return _impl_.managed_by_.Mutable(GetArenaForAllocation()); +} +inline std::string* CloudConfig::release_managed_by() { + // @@protoc_insertion_point(field_release:viam.app.v1.CloudConfig.managed_by) + return _impl_.managed_by_.Release(); +} +inline void CloudConfig::set_allocated_managed_by(std::string* managed_by) { + if (managed_by != nullptr) { + + } else { + + } + _impl_.managed_by_.SetAllocated(managed_by, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.managed_by_.IsDefault()) { + _impl_.managed_by_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CloudConfig.managed_by) +} + +// string signaling_address = 5 [json_name = "signalingAddress"]; +inline void CloudConfig::clear_signaling_address() { + _impl_.signaling_address_.ClearToEmpty(); +} +inline const std::string& CloudConfig::signaling_address() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.signaling_address) + return _internal_signaling_address(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CloudConfig::set_signaling_address(ArgT0&& arg0, ArgT... args) { + + _impl_.signaling_address_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.signaling_address) +} +inline std::string* CloudConfig::mutable_signaling_address() { + std::string* _s = _internal_mutable_signaling_address(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CloudConfig.signaling_address) + return _s; +} +inline const std::string& CloudConfig::_internal_signaling_address() const { + return _impl_.signaling_address_.Get(); +} +inline void CloudConfig::_internal_set_signaling_address(const std::string& value) { + + _impl_.signaling_address_.Set(value, GetArenaForAllocation()); +} +inline std::string* CloudConfig::_internal_mutable_signaling_address() { + + return _impl_.signaling_address_.Mutable(GetArenaForAllocation()); +} +inline std::string* CloudConfig::release_signaling_address() { + // @@protoc_insertion_point(field_release:viam.app.v1.CloudConfig.signaling_address) + return _impl_.signaling_address_.Release(); +} +inline void CloudConfig::set_allocated_signaling_address(std::string* signaling_address) { + if (signaling_address != nullptr) { + + } else { + + } + _impl_.signaling_address_.SetAllocated(signaling_address, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.signaling_address_.IsDefault()) { + _impl_.signaling_address_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CloudConfig.signaling_address) +} + +// bool signaling_insecure = 6 [json_name = "signalingInsecure"]; +inline void CloudConfig::clear_signaling_insecure() { + _impl_.signaling_insecure_ = false; +} +inline bool CloudConfig::_internal_signaling_insecure() const { + return _impl_.signaling_insecure_; +} +inline bool CloudConfig::signaling_insecure() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.signaling_insecure) + return _internal_signaling_insecure(); +} +inline void CloudConfig::_internal_set_signaling_insecure(bool value) { + + _impl_.signaling_insecure_ = value; +} +inline void CloudConfig::set_signaling_insecure(bool value) { + _internal_set_signaling_insecure(value); + // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.signaling_insecure) +} + +// string location_secret = 7 [json_name = "locationSecret"]; +inline void CloudConfig::clear_location_secret() { + _impl_.location_secret_.ClearToEmpty(); +} +inline const std::string& CloudConfig::location_secret() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.location_secret) + return _internal_location_secret(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CloudConfig::set_location_secret(ArgT0&& arg0, ArgT... args) { + + _impl_.location_secret_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.location_secret) +} +inline std::string* CloudConfig::mutable_location_secret() { + std::string* _s = _internal_mutable_location_secret(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CloudConfig.location_secret) + return _s; +} +inline const std::string& CloudConfig::_internal_location_secret() const { + return _impl_.location_secret_.Get(); +} +inline void CloudConfig::_internal_set_location_secret(const std::string& value) { + + _impl_.location_secret_.Set(value, GetArenaForAllocation()); +} +inline std::string* CloudConfig::_internal_mutable_location_secret() { + + return _impl_.location_secret_.Mutable(GetArenaForAllocation()); +} +inline std::string* CloudConfig::release_location_secret() { + // @@protoc_insertion_point(field_release:viam.app.v1.CloudConfig.location_secret) + return _impl_.location_secret_.Release(); +} +inline void CloudConfig::set_allocated_location_secret(std::string* location_secret) { + if (location_secret != nullptr) { + + } else { + + } + _impl_.location_secret_.SetAllocated(location_secret, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.location_secret_.IsDefault()) { + _impl_.location_secret_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CloudConfig.location_secret) +} + +// string secret = 8 [json_name = "secret"]; +inline void CloudConfig::clear_secret() { + _impl_.secret_.ClearToEmpty(); +} +inline const std::string& CloudConfig::secret() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.secret) + return _internal_secret(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CloudConfig::set_secret(ArgT0&& arg0, ArgT... args) { + + _impl_.secret_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.secret) +} +inline std::string* CloudConfig::mutable_secret() { + std::string* _s = _internal_mutable_secret(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CloudConfig.secret) + return _s; +} +inline const std::string& CloudConfig::_internal_secret() const { + return _impl_.secret_.Get(); +} +inline void CloudConfig::_internal_set_secret(const std::string& value) { + + _impl_.secret_.Set(value, GetArenaForAllocation()); +} +inline std::string* CloudConfig::_internal_mutable_secret() { + + return _impl_.secret_.Mutable(GetArenaForAllocation()); +} +inline std::string* CloudConfig::release_secret() { + // @@protoc_insertion_point(field_release:viam.app.v1.CloudConfig.secret) + return _impl_.secret_.Release(); +} +inline void CloudConfig::set_allocated_secret(std::string* secret) { + if (secret != nullptr) { + + } else { + + } + _impl_.secret_.SetAllocated(secret, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.secret_.IsDefault()) { + _impl_.secret_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CloudConfig.secret) +} + +// ------------------------------------------------------------------- + +// ComponentConfig + +// string name = 1 [json_name = "name"]; +inline void ComponentConfig::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& ComponentConfig::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ComponentConfig.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ComponentConfig::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ComponentConfig.name) +} +inline std::string* ComponentConfig::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ComponentConfig.name) + return _s; +} +inline const std::string& ComponentConfig::_internal_name() const { + return _impl_.name_.Get(); +} +inline void ComponentConfig::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* ComponentConfig::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* ComponentConfig::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.ComponentConfig.name) + return _impl_.name_.Release(); +} +inline void ComponentConfig::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ComponentConfig.name) +} + +// string namespace = 2 [json_name = "namespace"]; +inline void ComponentConfig::clear_namespace_() { + _impl_.namespace__.ClearToEmpty(); +} +inline const std::string& ComponentConfig::namespace_() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ComponentConfig.namespace) + return _internal_namespace_(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ComponentConfig::set_namespace_(ArgT0&& arg0, ArgT... args) { + + _impl_.namespace__.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ComponentConfig.namespace) +} +inline std::string* ComponentConfig::mutable_namespace_() { + std::string* _s = _internal_mutable_namespace_(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ComponentConfig.namespace) + return _s; +} +inline const std::string& ComponentConfig::_internal_namespace_() const { + return _impl_.namespace__.Get(); +} +inline void ComponentConfig::_internal_set_namespace_(const std::string& value) { + + _impl_.namespace__.Set(value, GetArenaForAllocation()); +} +inline std::string* ComponentConfig::_internal_mutable_namespace_() { + + return _impl_.namespace__.Mutable(GetArenaForAllocation()); +} +inline std::string* ComponentConfig::release_namespace_() { + // @@protoc_insertion_point(field_release:viam.app.v1.ComponentConfig.namespace) + return _impl_.namespace__.Release(); +} +inline void ComponentConfig::set_allocated_namespace_(std::string* namespace_) { + if (namespace_ != nullptr) { + + } else { + + } + _impl_.namespace__.SetAllocated(namespace_, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.namespace__.IsDefault()) { + _impl_.namespace__.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ComponentConfig.namespace) +} + +// string type = 3 [json_name = "type"]; +inline void ComponentConfig::clear_type() { + _impl_.type_.ClearToEmpty(); +} +inline const std::string& ComponentConfig::type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ComponentConfig.type) + return _internal_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ComponentConfig::set_type(ArgT0&& arg0, ArgT... args) { + + _impl_.type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ComponentConfig.type) +} +inline std::string* ComponentConfig::mutable_type() { + std::string* _s = _internal_mutable_type(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ComponentConfig.type) + return _s; +} +inline const std::string& ComponentConfig::_internal_type() const { + return _impl_.type_.Get(); +} +inline void ComponentConfig::_internal_set_type(const std::string& value) { + + _impl_.type_.Set(value, GetArenaForAllocation()); +} +inline std::string* ComponentConfig::_internal_mutable_type() { + + return _impl_.type_.Mutable(GetArenaForAllocation()); +} +inline std::string* ComponentConfig::release_type() { + // @@protoc_insertion_point(field_release:viam.app.v1.ComponentConfig.type) + return _impl_.type_.Release(); +} +inline void ComponentConfig::set_allocated_type(std::string* type) { + if (type != nullptr) { + + } else { + + } + _impl_.type_.SetAllocated(type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.type_.IsDefault()) { + _impl_.type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ComponentConfig.type) +} + +// string model = 4 [json_name = "model"]; +inline void ComponentConfig::clear_model() { + _impl_.model_.ClearToEmpty(); +} +inline const std::string& ComponentConfig::model() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ComponentConfig.model) + return _internal_model(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ComponentConfig::set_model(ArgT0&& arg0, ArgT... args) { + + _impl_.model_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ComponentConfig.model) +} +inline std::string* ComponentConfig::mutable_model() { + std::string* _s = _internal_mutable_model(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ComponentConfig.model) + return _s; +} +inline const std::string& ComponentConfig::_internal_model() const { + return _impl_.model_.Get(); +} +inline void ComponentConfig::_internal_set_model(const std::string& value) { + + _impl_.model_.Set(value, GetArenaForAllocation()); +} +inline std::string* ComponentConfig::_internal_mutable_model() { + + return _impl_.model_.Mutable(GetArenaForAllocation()); +} +inline std::string* ComponentConfig::release_model() { + // @@protoc_insertion_point(field_release:viam.app.v1.ComponentConfig.model) + return _impl_.model_.Release(); +} +inline void ComponentConfig::set_allocated_model(std::string* model) { + if (model != nullptr) { + + } else { + + } + _impl_.model_.SetAllocated(model, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.model_.IsDefault()) { + _impl_.model_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ComponentConfig.model) +} + +// .viam.app.v1.Frame frame = 5 [json_name = "frame"]; +inline bool ComponentConfig::_internal_has_frame() const { + return this != internal_default_instance() && _impl_.frame_ != nullptr; +} +inline bool ComponentConfig::has_frame() const { + return _internal_has_frame(); +} +inline void ComponentConfig::clear_frame() { + if (GetArenaForAllocation() == nullptr && _impl_.frame_ != nullptr) { + delete _impl_.frame_; + } + _impl_.frame_ = nullptr; +} +inline const ::viam::app::v1::Frame& ComponentConfig::_internal_frame() const { + const ::viam::app::v1::Frame* p = _impl_.frame_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Frame_default_instance_); +} +inline const ::viam::app::v1::Frame& ComponentConfig::frame() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ComponentConfig.frame) + return _internal_frame(); +} +inline void ComponentConfig::unsafe_arena_set_allocated_frame( + ::viam::app::v1::Frame* frame) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.frame_); + } + _impl_.frame_ = frame; + if (frame) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ComponentConfig.frame) +} +inline ::viam::app::v1::Frame* ComponentConfig::release_frame() { + + ::viam::app::v1::Frame* temp = _impl_.frame_; + _impl_.frame_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::Frame* ComponentConfig::unsafe_arena_release_frame() { + // @@protoc_insertion_point(field_release:viam.app.v1.ComponentConfig.frame) + + ::viam::app::v1::Frame* temp = _impl_.frame_; + _impl_.frame_ = nullptr; + return temp; +} +inline ::viam::app::v1::Frame* ComponentConfig::_internal_mutable_frame() { + + if (_impl_.frame_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Frame>(GetArenaForAllocation()); + _impl_.frame_ = p; + } + return _impl_.frame_; +} +inline ::viam::app::v1::Frame* ComponentConfig::mutable_frame() { + ::viam::app::v1::Frame* _msg = _internal_mutable_frame(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ComponentConfig.frame) + return _msg; +} +inline void ComponentConfig::set_allocated_frame(::viam::app::v1::Frame* frame) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.frame_; + } + if (frame) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(frame); + if (message_arena != submessage_arena) { + frame = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, frame, submessage_arena); + } + + } else { + + } + _impl_.frame_ = frame; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ComponentConfig.frame) +} + +// repeated string depends_on = 6 [json_name = "dependsOn"]; +inline int ComponentConfig::_internal_depends_on_size() const { + return _impl_.depends_on_.size(); +} +inline int ComponentConfig::depends_on_size() const { + return _internal_depends_on_size(); +} +inline void ComponentConfig::clear_depends_on() { + _impl_.depends_on_.Clear(); +} +inline std::string* ComponentConfig::add_depends_on() { + std::string* _s = _internal_add_depends_on(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.ComponentConfig.depends_on) + return _s; +} +inline const std::string& ComponentConfig::_internal_depends_on(int index) const { + return _impl_.depends_on_.Get(index); +} +inline const std::string& ComponentConfig::depends_on(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ComponentConfig.depends_on) + return _internal_depends_on(index); +} +inline std::string* ComponentConfig::mutable_depends_on(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ComponentConfig.depends_on) + return _impl_.depends_on_.Mutable(index); +} +inline void ComponentConfig::set_depends_on(int index, const std::string& value) { + _impl_.depends_on_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.ComponentConfig.depends_on) +} +inline void ComponentConfig::set_depends_on(int index, std::string&& value) { + _impl_.depends_on_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.ComponentConfig.depends_on) +} +inline void ComponentConfig::set_depends_on(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.depends_on_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.ComponentConfig.depends_on) +} +inline void ComponentConfig::set_depends_on(int index, const char* value, size_t size) { + _impl_.depends_on_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.ComponentConfig.depends_on) +} +inline std::string* ComponentConfig::_internal_add_depends_on() { + return _impl_.depends_on_.Add(); +} +inline void ComponentConfig::add_depends_on(const std::string& value) { + _impl_.depends_on_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.ComponentConfig.depends_on) +} +inline void ComponentConfig::add_depends_on(std::string&& value) { + _impl_.depends_on_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.ComponentConfig.depends_on) +} +inline void ComponentConfig::add_depends_on(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.depends_on_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.ComponentConfig.depends_on) +} +inline void ComponentConfig::add_depends_on(const char* value, size_t size) { + _impl_.depends_on_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.ComponentConfig.depends_on) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +ComponentConfig::depends_on() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ComponentConfig.depends_on) + return _impl_.depends_on_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +ComponentConfig::mutable_depends_on() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ComponentConfig.depends_on) + return &_impl_.depends_on_; +} + +// repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 7 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; +inline int ComponentConfig::_internal_service_configs_size() const { + return _impl_.service_configs_.size(); +} +inline int ComponentConfig::service_configs_size() const { + return _internal_service_configs_size(); +} +inline void ComponentConfig::clear_service_configs() { + _impl_.service_configs_.Clear(); +} +inline ::viam::app::v1::ResourceLevelServiceConfig* ComponentConfig::mutable_service_configs(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ComponentConfig.service_configs) + return _impl_.service_configs_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >* +ComponentConfig::mutable_service_configs() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ComponentConfig.service_configs) + return &_impl_.service_configs_; +} +inline const ::viam::app::v1::ResourceLevelServiceConfig& ComponentConfig::_internal_service_configs(int index) const { + return _impl_.service_configs_.Get(index); +} +inline const ::viam::app::v1::ResourceLevelServiceConfig& ComponentConfig::service_configs(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ComponentConfig.service_configs) + return _internal_service_configs(index); +} +inline ::viam::app::v1::ResourceLevelServiceConfig* ComponentConfig::_internal_add_service_configs() { + return _impl_.service_configs_.Add(); +} +inline ::viam::app::v1::ResourceLevelServiceConfig* ComponentConfig::add_service_configs() { + ::viam::app::v1::ResourceLevelServiceConfig* _add = _internal_add_service_configs(); + // @@protoc_insertion_point(field_add:viam.app.v1.ComponentConfig.service_configs) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >& +ComponentConfig::service_configs() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ComponentConfig.service_configs) + return _impl_.service_configs_; +} + +// .google.protobuf.Struct attributes = 8 [json_name = "attributes"]; +inline bool ComponentConfig::_internal_has_attributes() const { + return this != internal_default_instance() && _impl_.attributes_ != nullptr; +} +inline bool ComponentConfig::has_attributes() const { + return _internal_has_attributes(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ComponentConfig::_internal_attributes() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.attributes_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ComponentConfig::attributes() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ComponentConfig.attributes) + return _internal_attributes(); +} +inline void ComponentConfig::unsafe_arena_set_allocated_attributes( + ::PROTOBUF_NAMESPACE_ID::Struct* attributes) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.attributes_); + } + _impl_.attributes_ = attributes; + if (attributes) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ComponentConfig.attributes) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* ComponentConfig::release_attributes() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.attributes_; + _impl_.attributes_ = 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* ComponentConfig::unsafe_arena_release_attributes() { + // @@protoc_insertion_point(field_release:viam.app.v1.ComponentConfig.attributes) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.attributes_; + _impl_.attributes_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* ComponentConfig::_internal_mutable_attributes() { + + if (_impl_.attributes_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.attributes_ = p; + } + return _impl_.attributes_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* ComponentConfig::mutable_attributes() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_attributes(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ComponentConfig.attributes) + return _msg; +} +inline void ComponentConfig::set_allocated_attributes(::PROTOBUF_NAMESPACE_ID::Struct* attributes) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.attributes_); + } + if (attributes) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(attributes)); + if (message_arena != submessage_arena) { + attributes = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, attributes, submessage_arena); + } + + } else { + + } + _impl_.attributes_ = attributes; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ComponentConfig.attributes) +} + +// ------------------------------------------------------------------- + +// ResourceLevelServiceConfig + +// string type = 1 [json_name = "type"]; +inline void ResourceLevelServiceConfig::clear_type() { + _impl_.type_.ClearToEmpty(); +} +inline const std::string& ResourceLevelServiceConfig::type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ResourceLevelServiceConfig.type) + return _internal_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceLevelServiceConfig::set_type(ArgT0&& arg0, ArgT... args) { + + _impl_.type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ResourceLevelServiceConfig.type) +} +inline std::string* ResourceLevelServiceConfig::mutable_type() { + std::string* _s = _internal_mutable_type(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ResourceLevelServiceConfig.type) + return _s; +} +inline const std::string& ResourceLevelServiceConfig::_internal_type() const { + return _impl_.type_.Get(); +} +inline void ResourceLevelServiceConfig::_internal_set_type(const std::string& value) { + + _impl_.type_.Set(value, GetArenaForAllocation()); +} +inline std::string* ResourceLevelServiceConfig::_internal_mutable_type() { + + return _impl_.type_.Mutable(GetArenaForAllocation()); +} +inline std::string* ResourceLevelServiceConfig::release_type() { + // @@protoc_insertion_point(field_release:viam.app.v1.ResourceLevelServiceConfig.type) + return _impl_.type_.Release(); +} +inline void ResourceLevelServiceConfig::set_allocated_type(std::string* type) { + if (type != nullptr) { + + } else { + + } + _impl_.type_.SetAllocated(type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.type_.IsDefault()) { + _impl_.type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ResourceLevelServiceConfig.type) +} + +// .google.protobuf.Struct attributes = 2 [json_name = "attributes"]; +inline bool ResourceLevelServiceConfig::_internal_has_attributes() const { + return this != internal_default_instance() && _impl_.attributes_ != nullptr; +} +inline bool ResourceLevelServiceConfig::has_attributes() const { + return _internal_has_attributes(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ResourceLevelServiceConfig::_internal_attributes() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.attributes_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ResourceLevelServiceConfig::attributes() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ResourceLevelServiceConfig.attributes) + return _internal_attributes(); +} +inline void ResourceLevelServiceConfig::unsafe_arena_set_allocated_attributes( + ::PROTOBUF_NAMESPACE_ID::Struct* attributes) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.attributes_); + } + _impl_.attributes_ = attributes; + if (attributes) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ResourceLevelServiceConfig.attributes) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResourceLevelServiceConfig::release_attributes() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.attributes_; + _impl_.attributes_ = 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* ResourceLevelServiceConfig::unsafe_arena_release_attributes() { + // @@protoc_insertion_point(field_release:viam.app.v1.ResourceLevelServiceConfig.attributes) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.attributes_; + _impl_.attributes_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResourceLevelServiceConfig::_internal_mutable_attributes() { + + if (_impl_.attributes_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.attributes_ = p; + } + return _impl_.attributes_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResourceLevelServiceConfig::mutable_attributes() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_attributes(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ResourceLevelServiceConfig.attributes) + return _msg; +} +inline void ResourceLevelServiceConfig::set_allocated_attributes(::PROTOBUF_NAMESPACE_ID::Struct* attributes) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.attributes_); + } + if (attributes) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(attributes)); + if (message_arena != submessage_arena) { + attributes = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, attributes, submessage_arena); + } + + } else { + + } + _impl_.attributes_ = attributes; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ResourceLevelServiceConfig.attributes) +} + +// ------------------------------------------------------------------- + +// ProcessConfig + +// string id = 1 [json_name = "id"]; +inline void ProcessConfig::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& ProcessConfig::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ProcessConfig.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ProcessConfig::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ProcessConfig.id) +} +inline std::string* ProcessConfig::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ProcessConfig.id) + return _s; +} +inline const std::string& ProcessConfig::_internal_id() const { + return _impl_.id_.Get(); +} +inline void ProcessConfig::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* ProcessConfig::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* ProcessConfig::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ProcessConfig.id) + return _impl_.id_.Release(); +} +inline void ProcessConfig::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ProcessConfig.id) +} + +// string name = 2 [json_name = "name"]; +inline void ProcessConfig::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& ProcessConfig::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ProcessConfig.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ProcessConfig::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ProcessConfig.name) +} +inline std::string* ProcessConfig::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ProcessConfig.name) + return _s; +} +inline const std::string& ProcessConfig::_internal_name() const { + return _impl_.name_.Get(); +} +inline void ProcessConfig::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* ProcessConfig::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* ProcessConfig::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.ProcessConfig.name) + return _impl_.name_.Release(); +} +inline void ProcessConfig::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ProcessConfig.name) +} + +// repeated string args = 3 [json_name = "args"]; +inline int ProcessConfig::_internal_args_size() const { + return _impl_.args_.size(); +} +inline int ProcessConfig::args_size() const { + return _internal_args_size(); +} +inline void ProcessConfig::clear_args() { + _impl_.args_.Clear(); +} +inline std::string* ProcessConfig::add_args() { + std::string* _s = _internal_add_args(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.ProcessConfig.args) + return _s; +} +inline const std::string& ProcessConfig::_internal_args(int index) const { + return _impl_.args_.Get(index); +} +inline const std::string& ProcessConfig::args(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ProcessConfig.args) + return _internal_args(index); +} +inline std::string* ProcessConfig::mutable_args(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ProcessConfig.args) + return _impl_.args_.Mutable(index); +} +inline void ProcessConfig::set_args(int index, const std::string& value) { + _impl_.args_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.ProcessConfig.args) +} +inline void ProcessConfig::set_args(int index, std::string&& value) { + _impl_.args_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.ProcessConfig.args) +} +inline void ProcessConfig::set_args(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.args_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.ProcessConfig.args) +} +inline void ProcessConfig::set_args(int index, const char* value, size_t size) { + _impl_.args_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.ProcessConfig.args) +} +inline std::string* ProcessConfig::_internal_add_args() { + return _impl_.args_.Add(); +} +inline void ProcessConfig::add_args(const std::string& value) { + _impl_.args_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.ProcessConfig.args) +} +inline void ProcessConfig::add_args(std::string&& value) { + _impl_.args_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.ProcessConfig.args) +} +inline void ProcessConfig::add_args(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.args_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.ProcessConfig.args) +} +inline void ProcessConfig::add_args(const char* value, size_t size) { + _impl_.args_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.ProcessConfig.args) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +ProcessConfig::args() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ProcessConfig.args) + return _impl_.args_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +ProcessConfig::mutable_args() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ProcessConfig.args) + return &_impl_.args_; +} + +// string cwd = 4 [json_name = "cwd"]; +inline void ProcessConfig::clear_cwd() { + _impl_.cwd_.ClearToEmpty(); +} +inline const std::string& ProcessConfig::cwd() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ProcessConfig.cwd) + return _internal_cwd(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ProcessConfig::set_cwd(ArgT0&& arg0, ArgT... args) { + + _impl_.cwd_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ProcessConfig.cwd) +} +inline std::string* ProcessConfig::mutable_cwd() { + std::string* _s = _internal_mutable_cwd(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ProcessConfig.cwd) + return _s; +} +inline const std::string& ProcessConfig::_internal_cwd() const { + return _impl_.cwd_.Get(); +} +inline void ProcessConfig::_internal_set_cwd(const std::string& value) { + + _impl_.cwd_.Set(value, GetArenaForAllocation()); +} +inline std::string* ProcessConfig::_internal_mutable_cwd() { + + return _impl_.cwd_.Mutable(GetArenaForAllocation()); +} +inline std::string* ProcessConfig::release_cwd() { + // @@protoc_insertion_point(field_release:viam.app.v1.ProcessConfig.cwd) + return _impl_.cwd_.Release(); +} +inline void ProcessConfig::set_allocated_cwd(std::string* cwd) { + if (cwd != nullptr) { + + } else { + + } + _impl_.cwd_.SetAllocated(cwd, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.cwd_.IsDefault()) { + _impl_.cwd_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ProcessConfig.cwd) +} + +// bool one_shot = 5 [json_name = "oneShot"]; +inline void ProcessConfig::clear_one_shot() { + _impl_.one_shot_ = false; +} +inline bool ProcessConfig::_internal_one_shot() const { + return _impl_.one_shot_; +} +inline bool ProcessConfig::one_shot() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ProcessConfig.one_shot) + return _internal_one_shot(); +} +inline void ProcessConfig::_internal_set_one_shot(bool value) { + + _impl_.one_shot_ = value; +} +inline void ProcessConfig::set_one_shot(bool value) { + _internal_set_one_shot(value); + // @@protoc_insertion_point(field_set:viam.app.v1.ProcessConfig.one_shot) +} + +// bool log = 6 [json_name = "log"]; +inline void ProcessConfig::clear_log() { + _impl_.log_ = false; +} +inline bool ProcessConfig::_internal_log() const { + return _impl_.log_; +} +inline bool ProcessConfig::log() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ProcessConfig.log) + return _internal_log(); +} +inline void ProcessConfig::_internal_set_log(bool value) { + + _impl_.log_ = value; +} +inline void ProcessConfig::set_log(bool value) { + _internal_set_log(value); + // @@protoc_insertion_point(field_set:viam.app.v1.ProcessConfig.log) +} + +// ------------------------------------------------------------------- + +// ServiceConfig + +// string name = 1 [json_name = "name"]; +inline void ServiceConfig::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& ServiceConfig::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ServiceConfig.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ServiceConfig::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ServiceConfig.name) +} +inline std::string* ServiceConfig::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ServiceConfig.name) + return _s; +} +inline const std::string& ServiceConfig::_internal_name() const { + return _impl_.name_.Get(); +} +inline void ServiceConfig::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* ServiceConfig::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* ServiceConfig::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.ServiceConfig.name) + return _impl_.name_.Release(); +} +inline void ServiceConfig::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ServiceConfig.name) +} + +// string namespace = 2 [json_name = "namespace"]; +inline void ServiceConfig::clear_namespace_() { + _impl_.namespace__.ClearToEmpty(); +} +inline const std::string& ServiceConfig::namespace_() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ServiceConfig.namespace) + return _internal_namespace_(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ServiceConfig::set_namespace_(ArgT0&& arg0, ArgT... args) { + + _impl_.namespace__.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ServiceConfig.namespace) +} +inline std::string* ServiceConfig::mutable_namespace_() { + std::string* _s = _internal_mutable_namespace_(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ServiceConfig.namespace) + return _s; +} +inline const std::string& ServiceConfig::_internal_namespace_() const { + return _impl_.namespace__.Get(); +} +inline void ServiceConfig::_internal_set_namespace_(const std::string& value) { + + _impl_.namespace__.Set(value, GetArenaForAllocation()); +} +inline std::string* ServiceConfig::_internal_mutable_namespace_() { + + return _impl_.namespace__.Mutable(GetArenaForAllocation()); +} +inline std::string* ServiceConfig::release_namespace_() { + // @@protoc_insertion_point(field_release:viam.app.v1.ServiceConfig.namespace) + return _impl_.namespace__.Release(); +} +inline void ServiceConfig::set_allocated_namespace_(std::string* namespace_) { + if (namespace_ != nullptr) { + + } else { + + } + _impl_.namespace__.SetAllocated(namespace_, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.namespace__.IsDefault()) { + _impl_.namespace__.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ServiceConfig.namespace) +} + +// string type = 3 [json_name = "type"]; +inline void ServiceConfig::clear_type() { + _impl_.type_.ClearToEmpty(); +} +inline const std::string& ServiceConfig::type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ServiceConfig.type) + return _internal_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ServiceConfig::set_type(ArgT0&& arg0, ArgT... args) { + + _impl_.type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ServiceConfig.type) +} +inline std::string* ServiceConfig::mutable_type() { + std::string* _s = _internal_mutable_type(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ServiceConfig.type) + return _s; +} +inline const std::string& ServiceConfig::_internal_type() const { + return _impl_.type_.Get(); +} +inline void ServiceConfig::_internal_set_type(const std::string& value) { + + _impl_.type_.Set(value, GetArenaForAllocation()); +} +inline std::string* ServiceConfig::_internal_mutable_type() { + + return _impl_.type_.Mutable(GetArenaForAllocation()); +} +inline std::string* ServiceConfig::release_type() { + // @@protoc_insertion_point(field_release:viam.app.v1.ServiceConfig.type) + return _impl_.type_.Release(); +} +inline void ServiceConfig::set_allocated_type(std::string* type) { + if (type != nullptr) { + + } else { + + } + _impl_.type_.SetAllocated(type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.type_.IsDefault()) { + _impl_.type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ServiceConfig.type) +} + +// .google.protobuf.Struct attributes = 4 [json_name = "attributes"]; +inline bool ServiceConfig::_internal_has_attributes() const { + return this != internal_default_instance() && _impl_.attributes_ != nullptr; +} +inline bool ServiceConfig::has_attributes() const { + return _internal_has_attributes(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ServiceConfig::_internal_attributes() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.attributes_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ServiceConfig::attributes() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ServiceConfig.attributes) + return _internal_attributes(); +} +inline void ServiceConfig::unsafe_arena_set_allocated_attributes( + ::PROTOBUF_NAMESPACE_ID::Struct* attributes) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.attributes_); + } + _impl_.attributes_ = attributes; + if (attributes) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ServiceConfig.attributes) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* ServiceConfig::release_attributes() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.attributes_; + _impl_.attributes_ = 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* ServiceConfig::unsafe_arena_release_attributes() { + // @@protoc_insertion_point(field_release:viam.app.v1.ServiceConfig.attributes) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.attributes_; + _impl_.attributes_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* ServiceConfig::_internal_mutable_attributes() { + + if (_impl_.attributes_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.attributes_ = p; + } + return _impl_.attributes_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* ServiceConfig::mutable_attributes() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_attributes(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ServiceConfig.attributes) + return _msg; +} +inline void ServiceConfig::set_allocated_attributes(::PROTOBUF_NAMESPACE_ID::Struct* attributes) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.attributes_); + } + if (attributes) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(attributes)); + if (message_arena != submessage_arena) { + attributes = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, attributes, submessage_arena); + } + + } else { + + } + _impl_.attributes_ = attributes; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ServiceConfig.attributes) +} + +// ------------------------------------------------------------------- + +// NetworkConfig + +// string fqdn = 1 [json_name = "fqdn"]; +inline void NetworkConfig::clear_fqdn() { + _impl_.fqdn_.ClearToEmpty(); +} +inline const std::string& NetworkConfig::fqdn() const { + // @@protoc_insertion_point(field_get:viam.app.v1.NetworkConfig.fqdn) + return _internal_fqdn(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NetworkConfig::set_fqdn(ArgT0&& arg0, ArgT... args) { + + _impl_.fqdn_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.NetworkConfig.fqdn) +} +inline std::string* NetworkConfig::mutable_fqdn() { + std::string* _s = _internal_mutable_fqdn(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.NetworkConfig.fqdn) + return _s; +} +inline const std::string& NetworkConfig::_internal_fqdn() const { + return _impl_.fqdn_.Get(); +} +inline void NetworkConfig::_internal_set_fqdn(const std::string& value) { + + _impl_.fqdn_.Set(value, GetArenaForAllocation()); +} +inline std::string* NetworkConfig::_internal_mutable_fqdn() { + + return _impl_.fqdn_.Mutable(GetArenaForAllocation()); +} +inline std::string* NetworkConfig::release_fqdn() { + // @@protoc_insertion_point(field_release:viam.app.v1.NetworkConfig.fqdn) + return _impl_.fqdn_.Release(); +} +inline void NetworkConfig::set_allocated_fqdn(std::string* fqdn) { + if (fqdn != nullptr) { + + } else { + + } + _impl_.fqdn_.SetAllocated(fqdn, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.fqdn_.IsDefault()) { + _impl_.fqdn_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NetworkConfig.fqdn) +} + +// string bind_address = 2 [json_name = "bindAddress"]; +inline void NetworkConfig::clear_bind_address() { + _impl_.bind_address_.ClearToEmpty(); +} +inline const std::string& NetworkConfig::bind_address() const { + // @@protoc_insertion_point(field_get:viam.app.v1.NetworkConfig.bind_address) + return _internal_bind_address(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NetworkConfig::set_bind_address(ArgT0&& arg0, ArgT... args) { + + _impl_.bind_address_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.NetworkConfig.bind_address) +} +inline std::string* NetworkConfig::mutable_bind_address() { + std::string* _s = _internal_mutable_bind_address(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.NetworkConfig.bind_address) + return _s; +} +inline const std::string& NetworkConfig::_internal_bind_address() const { + return _impl_.bind_address_.Get(); +} +inline void NetworkConfig::_internal_set_bind_address(const std::string& value) { + + _impl_.bind_address_.Set(value, GetArenaForAllocation()); +} +inline std::string* NetworkConfig::_internal_mutable_bind_address() { + + return _impl_.bind_address_.Mutable(GetArenaForAllocation()); +} +inline std::string* NetworkConfig::release_bind_address() { + // @@protoc_insertion_point(field_release:viam.app.v1.NetworkConfig.bind_address) + return _impl_.bind_address_.Release(); +} +inline void NetworkConfig::set_allocated_bind_address(std::string* bind_address) { + if (bind_address != nullptr) { + + } else { + + } + _impl_.bind_address_.SetAllocated(bind_address, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.bind_address_.IsDefault()) { + _impl_.bind_address_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NetworkConfig.bind_address) +} + +// string tls_cert_file = 3 [json_name = "tlsCertFile"]; +inline void NetworkConfig::clear_tls_cert_file() { + _impl_.tls_cert_file_.ClearToEmpty(); +} +inline const std::string& NetworkConfig::tls_cert_file() const { + // @@protoc_insertion_point(field_get:viam.app.v1.NetworkConfig.tls_cert_file) + return _internal_tls_cert_file(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NetworkConfig::set_tls_cert_file(ArgT0&& arg0, ArgT... args) { + + _impl_.tls_cert_file_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.NetworkConfig.tls_cert_file) +} +inline std::string* NetworkConfig::mutable_tls_cert_file() { + std::string* _s = _internal_mutable_tls_cert_file(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.NetworkConfig.tls_cert_file) + return _s; +} +inline const std::string& NetworkConfig::_internal_tls_cert_file() const { + return _impl_.tls_cert_file_.Get(); +} +inline void NetworkConfig::_internal_set_tls_cert_file(const std::string& value) { + + _impl_.tls_cert_file_.Set(value, GetArenaForAllocation()); +} +inline std::string* NetworkConfig::_internal_mutable_tls_cert_file() { + + return _impl_.tls_cert_file_.Mutable(GetArenaForAllocation()); +} +inline std::string* NetworkConfig::release_tls_cert_file() { + // @@protoc_insertion_point(field_release:viam.app.v1.NetworkConfig.tls_cert_file) + return _impl_.tls_cert_file_.Release(); +} +inline void NetworkConfig::set_allocated_tls_cert_file(std::string* tls_cert_file) { + if (tls_cert_file != nullptr) { + + } else { + + } + _impl_.tls_cert_file_.SetAllocated(tls_cert_file, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.tls_cert_file_.IsDefault()) { + _impl_.tls_cert_file_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NetworkConfig.tls_cert_file) +} + +// string tls_key_file = 4 [json_name = "tlsKeyFile"]; +inline void NetworkConfig::clear_tls_key_file() { + _impl_.tls_key_file_.ClearToEmpty(); +} +inline const std::string& NetworkConfig::tls_key_file() const { + // @@protoc_insertion_point(field_get:viam.app.v1.NetworkConfig.tls_key_file) + return _internal_tls_key_file(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NetworkConfig::set_tls_key_file(ArgT0&& arg0, ArgT... args) { + + _impl_.tls_key_file_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.NetworkConfig.tls_key_file) +} +inline std::string* NetworkConfig::mutable_tls_key_file() { + std::string* _s = _internal_mutable_tls_key_file(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.NetworkConfig.tls_key_file) + return _s; +} +inline const std::string& NetworkConfig::_internal_tls_key_file() const { + return _impl_.tls_key_file_.Get(); +} +inline void NetworkConfig::_internal_set_tls_key_file(const std::string& value) { + + _impl_.tls_key_file_.Set(value, GetArenaForAllocation()); +} +inline std::string* NetworkConfig::_internal_mutable_tls_key_file() { + + return _impl_.tls_key_file_.Mutable(GetArenaForAllocation()); +} +inline std::string* NetworkConfig::release_tls_key_file() { + // @@protoc_insertion_point(field_release:viam.app.v1.NetworkConfig.tls_key_file) + return _impl_.tls_key_file_.Release(); +} +inline void NetworkConfig::set_allocated_tls_key_file(std::string* tls_key_file) { + if (tls_key_file != nullptr) { + + } else { + + } + _impl_.tls_key_file_.SetAllocated(tls_key_file, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.tls_key_file_.IsDefault()) { + _impl_.tls_key_file_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NetworkConfig.tls_key_file) +} + +// ------------------------------------------------------------------- + +// AuthConfig + +// repeated .viam.app.v1.AuthHandlerConfig handlers = 1 [json_name = "handlers"]; +inline int AuthConfig::_internal_handlers_size() const { + return _impl_.handlers_.size(); +} +inline int AuthConfig::handlers_size() const { + return _internal_handlers_size(); +} +inline void AuthConfig::clear_handlers() { + _impl_.handlers_.Clear(); +} +inline ::viam::app::v1::AuthHandlerConfig* AuthConfig::mutable_handlers(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthConfig.handlers) + return _impl_.handlers_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthHandlerConfig >* +AuthConfig::mutable_handlers() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.AuthConfig.handlers) + return &_impl_.handlers_; +} +inline const ::viam::app::v1::AuthHandlerConfig& AuthConfig::_internal_handlers(int index) const { + return _impl_.handlers_.Get(index); +} +inline const ::viam::app::v1::AuthHandlerConfig& AuthConfig::handlers(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.AuthConfig.handlers) + return _internal_handlers(index); +} +inline ::viam::app::v1::AuthHandlerConfig* AuthConfig::_internal_add_handlers() { + return _impl_.handlers_.Add(); +} +inline ::viam::app::v1::AuthHandlerConfig* AuthConfig::add_handlers() { + ::viam::app::v1::AuthHandlerConfig* _add = _internal_add_handlers(); + // @@protoc_insertion_point(field_add:viam.app.v1.AuthConfig.handlers) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthHandlerConfig >& +AuthConfig::handlers() const { + // @@protoc_insertion_point(field_list:viam.app.v1.AuthConfig.handlers) + return _impl_.handlers_; +} + +// repeated string tls_auth_entities = 2 [json_name = "tlsAuthEntities"]; +inline int AuthConfig::_internal_tls_auth_entities_size() const { + return _impl_.tls_auth_entities_.size(); +} +inline int AuthConfig::tls_auth_entities_size() const { + return _internal_tls_auth_entities_size(); +} +inline void AuthConfig::clear_tls_auth_entities() { + _impl_.tls_auth_entities_.Clear(); +} +inline std::string* AuthConfig::add_tls_auth_entities() { + std::string* _s = _internal_add_tls_auth_entities(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.AuthConfig.tls_auth_entities) + return _s; +} +inline const std::string& AuthConfig::_internal_tls_auth_entities(int index) const { + return _impl_.tls_auth_entities_.Get(index); +} +inline const std::string& AuthConfig::tls_auth_entities(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.AuthConfig.tls_auth_entities) + return _internal_tls_auth_entities(index); +} +inline std::string* AuthConfig::mutable_tls_auth_entities(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthConfig.tls_auth_entities) + return _impl_.tls_auth_entities_.Mutable(index); +} +inline void AuthConfig::set_tls_auth_entities(int index, const std::string& value) { + _impl_.tls_auth_entities_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.AuthConfig.tls_auth_entities) +} +inline void AuthConfig::set_tls_auth_entities(int index, std::string&& value) { + _impl_.tls_auth_entities_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.AuthConfig.tls_auth_entities) +} +inline void AuthConfig::set_tls_auth_entities(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.tls_auth_entities_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.AuthConfig.tls_auth_entities) +} +inline void AuthConfig::set_tls_auth_entities(int index, const char* value, size_t size) { + _impl_.tls_auth_entities_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.AuthConfig.tls_auth_entities) +} +inline std::string* AuthConfig::_internal_add_tls_auth_entities() { + return _impl_.tls_auth_entities_.Add(); +} +inline void AuthConfig::add_tls_auth_entities(const std::string& value) { + _impl_.tls_auth_entities_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.AuthConfig.tls_auth_entities) +} +inline void AuthConfig::add_tls_auth_entities(std::string&& value) { + _impl_.tls_auth_entities_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.AuthConfig.tls_auth_entities) +} +inline void AuthConfig::add_tls_auth_entities(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.tls_auth_entities_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.AuthConfig.tls_auth_entities) +} +inline void AuthConfig::add_tls_auth_entities(const char* value, size_t size) { + _impl_.tls_auth_entities_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.AuthConfig.tls_auth_entities) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +AuthConfig::tls_auth_entities() const { + // @@protoc_insertion_point(field_list:viam.app.v1.AuthConfig.tls_auth_entities) + return _impl_.tls_auth_entities_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +AuthConfig::mutable_tls_auth_entities() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.AuthConfig.tls_auth_entities) + return &_impl_.tls_auth_entities_; +} + +// ------------------------------------------------------------------- + +// AuthHandlerConfig + +// .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; +inline void AuthHandlerConfig::clear_type() { + _impl_.type_ = 0; +} +inline ::viam::app::v1::CredentialsType AuthHandlerConfig::_internal_type() const { + return static_cast< ::viam::app::v1::CredentialsType >(_impl_.type_); +} +inline ::viam::app::v1::CredentialsType AuthHandlerConfig::type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.AuthHandlerConfig.type) + return _internal_type(); +} +inline void AuthHandlerConfig::_internal_set_type(::viam::app::v1::CredentialsType value) { + + _impl_.type_ = value; +} +inline void AuthHandlerConfig::set_type(::viam::app::v1::CredentialsType value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:viam.app.v1.AuthHandlerConfig.type) +} + +// .google.protobuf.Struct config = 5 [json_name = "config"]; +inline bool AuthHandlerConfig::_internal_has_config() const { + return this != internal_default_instance() && _impl_.config_ != nullptr; +} +inline bool AuthHandlerConfig::has_config() const { + return _internal_has_config(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& AuthHandlerConfig::_internal_config() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.config_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& AuthHandlerConfig::config() const { + // @@protoc_insertion_point(field_get:viam.app.v1.AuthHandlerConfig.config) + return _internal_config(); +} +inline void AuthHandlerConfig::unsafe_arena_set_allocated_config( + ::PROTOBUF_NAMESPACE_ID::Struct* config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.config_); + } + _impl_.config_ = config; + if (config) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.AuthHandlerConfig.config) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* AuthHandlerConfig::release_config() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.config_; + _impl_.config_ = 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* AuthHandlerConfig::unsafe_arena_release_config() { + // @@protoc_insertion_point(field_release:viam.app.v1.AuthHandlerConfig.config) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.config_; + _impl_.config_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* AuthHandlerConfig::_internal_mutable_config() { + + if (_impl_.config_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.config_ = p; + } + return _impl_.config_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* AuthHandlerConfig::mutable_config() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_config(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthHandlerConfig.config) + return _msg; +} +inline void AuthHandlerConfig::set_allocated_config(::PROTOBUF_NAMESPACE_ID::Struct* config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.config_); + } + if (config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config)); + if (message_arena != submessage_arena) { + config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, config, submessage_arena); + } + + } else { + + } + _impl_.config_ = config; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AuthHandlerConfig.config) +} + +// ------------------------------------------------------------------- + +// Frame + +// string parent = 1 [json_name = "parent"]; +inline void Frame::clear_parent() { + _impl_.parent_.ClearToEmpty(); +} +inline const std::string& Frame::parent() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Frame.parent) + return _internal_parent(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Frame::set_parent(ArgT0&& arg0, ArgT... args) { + + _impl_.parent_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Frame.parent) +} +inline std::string* Frame::mutable_parent() { + std::string* _s = _internal_mutable_parent(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Frame.parent) + return _s; +} +inline const std::string& Frame::_internal_parent() const { + return _impl_.parent_.Get(); +} +inline void Frame::_internal_set_parent(const std::string& value) { + + _impl_.parent_.Set(value, GetArenaForAllocation()); +} +inline std::string* Frame::_internal_mutable_parent() { + + return _impl_.parent_.Mutable(GetArenaForAllocation()); +} +inline std::string* Frame::release_parent() { + // @@protoc_insertion_point(field_release:viam.app.v1.Frame.parent) + return _impl_.parent_.Release(); +} +inline void Frame::set_allocated_parent(std::string* parent) { + if (parent != nullptr) { + + } else { + + } + _impl_.parent_.SetAllocated(parent, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.parent_.IsDefault()) { + _impl_.parent_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Frame.parent) +} + +// .viam.app.v1.Translation translation = 2 [json_name = "translation"]; +inline bool Frame::_internal_has_translation() const { + return this != internal_default_instance() && _impl_.translation_ != nullptr; +} +inline bool Frame::has_translation() const { + return _internal_has_translation(); +} +inline void Frame::clear_translation() { + if (GetArenaForAllocation() == nullptr && _impl_.translation_ != nullptr) { + delete _impl_.translation_; + } + _impl_.translation_ = nullptr; +} +inline const ::viam::app::v1::Translation& Frame::_internal_translation() const { + const ::viam::app::v1::Translation* p = _impl_.translation_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Translation_default_instance_); +} +inline const ::viam::app::v1::Translation& Frame::translation() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Frame.translation) + return _internal_translation(); +} +inline void Frame::unsafe_arena_set_allocated_translation( + ::viam::app::v1::Translation* translation) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.translation_); + } + _impl_.translation_ = translation; + if (translation) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Frame.translation) +} +inline ::viam::app::v1::Translation* Frame::release_translation() { + + ::viam::app::v1::Translation* temp = _impl_.translation_; + _impl_.translation_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::Translation* Frame::unsafe_arena_release_translation() { + // @@protoc_insertion_point(field_release:viam.app.v1.Frame.translation) + + ::viam::app::v1::Translation* temp = _impl_.translation_; + _impl_.translation_ = nullptr; + return temp; +} +inline ::viam::app::v1::Translation* Frame::_internal_mutable_translation() { + + if (_impl_.translation_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Translation>(GetArenaForAllocation()); + _impl_.translation_ = p; + } + return _impl_.translation_; +} +inline ::viam::app::v1::Translation* Frame::mutable_translation() { + ::viam::app::v1::Translation* _msg = _internal_mutable_translation(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Frame.translation) + return _msg; +} +inline void Frame::set_allocated_translation(::viam::app::v1::Translation* translation) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.translation_; + } + if (translation) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(translation); + if (message_arena != submessage_arena) { + translation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, translation, submessage_arena); + } + + } else { + + } + _impl_.translation_ = translation; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Frame.translation) +} + +// .viam.app.v1.Orientation orientation = 3 [json_name = "orientation"]; +inline bool Frame::_internal_has_orientation() const { + return this != internal_default_instance() && _impl_.orientation_ != nullptr; +} +inline bool Frame::has_orientation() const { + return _internal_has_orientation(); +} +inline void Frame::clear_orientation() { + if (GetArenaForAllocation() == nullptr && _impl_.orientation_ != nullptr) { + delete _impl_.orientation_; + } + _impl_.orientation_ = nullptr; +} +inline const ::viam::app::v1::Orientation& Frame::_internal_orientation() const { + const ::viam::app::v1::Orientation* p = _impl_.orientation_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Orientation_default_instance_); +} +inline const ::viam::app::v1::Orientation& Frame::orientation() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Frame.orientation) + return _internal_orientation(); +} +inline void Frame::unsafe_arena_set_allocated_orientation( + ::viam::app::v1::Orientation* orientation) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.orientation_); + } + _impl_.orientation_ = orientation; + if (orientation) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Frame.orientation) +} +inline ::viam::app::v1::Orientation* Frame::release_orientation() { + + ::viam::app::v1::Orientation* temp = _impl_.orientation_; + _impl_.orientation_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::Orientation* Frame::unsafe_arena_release_orientation() { + // @@protoc_insertion_point(field_release:viam.app.v1.Frame.orientation) + + ::viam::app::v1::Orientation* temp = _impl_.orientation_; + _impl_.orientation_ = nullptr; + return temp; +} +inline ::viam::app::v1::Orientation* Frame::_internal_mutable_orientation() { + + if (_impl_.orientation_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Orientation>(GetArenaForAllocation()); + _impl_.orientation_ = p; + } + return _impl_.orientation_; +} +inline ::viam::app::v1::Orientation* Frame::mutable_orientation() { + ::viam::app::v1::Orientation* _msg = _internal_mutable_orientation(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Frame.orientation) + return _msg; +} +inline void Frame::set_allocated_orientation(::viam::app::v1::Orientation* orientation) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.orientation_; + } + if (orientation) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(orientation); + if (message_arena != submessage_arena) { + orientation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, orientation, submessage_arena); + } + + } else { + + } + _impl_.orientation_ = orientation; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Frame.orientation) +} + +// ------------------------------------------------------------------- + +// Translation + +// double x = 1 [json_name = "x"]; +inline void Translation::clear_x() { + _impl_.x_ = 0; +} +inline double Translation::_internal_x() const { + return _impl_.x_; +} +inline double Translation::x() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Translation.x) + return _internal_x(); +} +inline void Translation::_internal_set_x(double value) { + + _impl_.x_ = value; +} +inline void Translation::set_x(double value) { + _internal_set_x(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Translation.x) +} + +// double y = 2 [json_name = "y"]; +inline void Translation::clear_y() { + _impl_.y_ = 0; +} +inline double Translation::_internal_y() const { + return _impl_.y_; +} +inline double Translation::y() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Translation.y) + return _internal_y(); +} +inline void Translation::_internal_set_y(double value) { + + _impl_.y_ = value; +} +inline void Translation::set_y(double value) { + _internal_set_y(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Translation.y) +} + +// double z = 3 [json_name = "z"]; +inline void Translation::clear_z() { + _impl_.z_ = 0; +} +inline double Translation::_internal_z() const { + return _impl_.z_; +} +inline double Translation::z() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Translation.z) + return _internal_z(); +} +inline void Translation::_internal_set_z(double value) { + + _impl_.z_ = value; +} +inline void Translation::set_z(double value) { + _internal_set_z(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Translation.z) +} + +// ------------------------------------------------------------------- + +// Orientation_NoOrientation + +// ------------------------------------------------------------------- + +// Orientation_OrientationVectorRadians + +// double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; +inline void Orientation_OrientationVectorRadians::clear_theta() { + _impl_.theta_ = 0; +} +inline double Orientation_OrientationVectorRadians::_internal_theta() const { + return _impl_.theta_; +} +inline double Orientation_OrientationVectorRadians::theta() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.OrientationVectorRadians.theta) + return _internal_theta(); +} +inline void Orientation_OrientationVectorRadians::_internal_set_theta(double value) { + + _impl_.theta_ = value; +} +inline void Orientation_OrientationVectorRadians::set_theta(double value) { + _internal_set_theta(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.OrientationVectorRadians.theta) +} + +// double x = 2 [json_name = "x"]; +inline void Orientation_OrientationVectorRadians::clear_x() { + _impl_.x_ = 0; +} +inline double Orientation_OrientationVectorRadians::_internal_x() const { + return _impl_.x_; +} +inline double Orientation_OrientationVectorRadians::x() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.OrientationVectorRadians.x) + return _internal_x(); +} +inline void Orientation_OrientationVectorRadians::_internal_set_x(double value) { + + _impl_.x_ = value; +} +inline void Orientation_OrientationVectorRadians::set_x(double value) { + _internal_set_x(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.OrientationVectorRadians.x) +} + +// double y = 3 [json_name = "y"]; +inline void Orientation_OrientationVectorRadians::clear_y() { + _impl_.y_ = 0; +} +inline double Orientation_OrientationVectorRadians::_internal_y() const { + return _impl_.y_; +} +inline double Orientation_OrientationVectorRadians::y() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.OrientationVectorRadians.y) + return _internal_y(); +} +inline void Orientation_OrientationVectorRadians::_internal_set_y(double value) { + + _impl_.y_ = value; +} +inline void Orientation_OrientationVectorRadians::set_y(double value) { + _internal_set_y(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.OrientationVectorRadians.y) +} + +// double z = 4 [json_name = "z"]; +inline void Orientation_OrientationVectorRadians::clear_z() { + _impl_.z_ = 0; +} +inline double Orientation_OrientationVectorRadians::_internal_z() const { + return _impl_.z_; +} +inline double Orientation_OrientationVectorRadians::z() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.OrientationVectorRadians.z) + return _internal_z(); +} +inline void Orientation_OrientationVectorRadians::_internal_set_z(double value) { + + _impl_.z_ = value; +} +inline void Orientation_OrientationVectorRadians::set_z(double value) { + _internal_set_z(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.OrientationVectorRadians.z) +} + +// ------------------------------------------------------------------- + +// Orientation_OrientationVectorDegrees + +// double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; +inline void Orientation_OrientationVectorDegrees::clear_theta() { + _impl_.theta_ = 0; +} +inline double Orientation_OrientationVectorDegrees::_internal_theta() const { + return _impl_.theta_; +} +inline double Orientation_OrientationVectorDegrees::theta() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.OrientationVectorDegrees.theta) + return _internal_theta(); +} +inline void Orientation_OrientationVectorDegrees::_internal_set_theta(double value) { + + _impl_.theta_ = value; +} +inline void Orientation_OrientationVectorDegrees::set_theta(double value) { + _internal_set_theta(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.OrientationVectorDegrees.theta) +} + +// double x = 2 [json_name = "x"]; +inline void Orientation_OrientationVectorDegrees::clear_x() { + _impl_.x_ = 0; +} +inline double Orientation_OrientationVectorDegrees::_internal_x() const { + return _impl_.x_; +} +inline double Orientation_OrientationVectorDegrees::x() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.OrientationVectorDegrees.x) + return _internal_x(); +} +inline void Orientation_OrientationVectorDegrees::_internal_set_x(double value) { + + _impl_.x_ = value; +} +inline void Orientation_OrientationVectorDegrees::set_x(double value) { + _internal_set_x(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.OrientationVectorDegrees.x) +} + +// double y = 3 [json_name = "y"]; +inline void Orientation_OrientationVectorDegrees::clear_y() { + _impl_.y_ = 0; +} +inline double Orientation_OrientationVectorDegrees::_internal_y() const { + return _impl_.y_; +} +inline double Orientation_OrientationVectorDegrees::y() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.OrientationVectorDegrees.y) + return _internal_y(); +} +inline void Orientation_OrientationVectorDegrees::_internal_set_y(double value) { + + _impl_.y_ = value; +} +inline void Orientation_OrientationVectorDegrees::set_y(double value) { + _internal_set_y(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.OrientationVectorDegrees.y) +} + +// double z = 4 [json_name = "z"]; +inline void Orientation_OrientationVectorDegrees::clear_z() { + _impl_.z_ = 0; +} +inline double Orientation_OrientationVectorDegrees::_internal_z() const { + return _impl_.z_; +} +inline double Orientation_OrientationVectorDegrees::z() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.OrientationVectorDegrees.z) + return _internal_z(); +} +inline void Orientation_OrientationVectorDegrees::_internal_set_z(double value) { + + _impl_.z_ = value; +} +inline void Orientation_OrientationVectorDegrees::set_z(double value) { + _internal_set_z(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.OrientationVectorDegrees.z) +} + +// ------------------------------------------------------------------- + +// Orientation_EulerAngles + +// double roll = 1 [json_name = "roll"]; +inline void Orientation_EulerAngles::clear_roll() { + _impl_.roll_ = 0; +} +inline double Orientation_EulerAngles::_internal_roll() const { + return _impl_.roll_; +} +inline double Orientation_EulerAngles::roll() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.EulerAngles.roll) + return _internal_roll(); +} +inline void Orientation_EulerAngles::_internal_set_roll(double value) { + + _impl_.roll_ = value; +} +inline void Orientation_EulerAngles::set_roll(double value) { + _internal_set_roll(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.EulerAngles.roll) +} + +// double pitch = 2 [json_name = "pitch"]; +inline void Orientation_EulerAngles::clear_pitch() { + _impl_.pitch_ = 0; +} +inline double Orientation_EulerAngles::_internal_pitch() const { + return _impl_.pitch_; +} +inline double Orientation_EulerAngles::pitch() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.EulerAngles.pitch) + return _internal_pitch(); +} +inline void Orientation_EulerAngles::_internal_set_pitch(double value) { + + _impl_.pitch_ = value; +} +inline void Orientation_EulerAngles::set_pitch(double value) { + _internal_set_pitch(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.EulerAngles.pitch) +} + +// double yaw = 3 [json_name = "yaw"]; +inline void Orientation_EulerAngles::clear_yaw() { + _impl_.yaw_ = 0; +} +inline double Orientation_EulerAngles::_internal_yaw() const { + return _impl_.yaw_; +} +inline double Orientation_EulerAngles::yaw() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.EulerAngles.yaw) + return _internal_yaw(); +} +inline void Orientation_EulerAngles::_internal_set_yaw(double value) { + + _impl_.yaw_ = value; +} +inline void Orientation_EulerAngles::set_yaw(double value) { + _internal_set_yaw(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.EulerAngles.yaw) +} + +// ------------------------------------------------------------------- + +// Orientation_AxisAngles + +// double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; +inline void Orientation_AxisAngles::clear_theta() { + _impl_.theta_ = 0; +} +inline double Orientation_AxisAngles::_internal_theta() const { + return _impl_.theta_; +} +inline double Orientation_AxisAngles::theta() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.AxisAngles.theta) + return _internal_theta(); +} +inline void Orientation_AxisAngles::_internal_set_theta(double value) { + + _impl_.theta_ = value; +} +inline void Orientation_AxisAngles::set_theta(double value) { + _internal_set_theta(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.AxisAngles.theta) +} + +// double x = 2 [json_name = "x"]; +inline void Orientation_AxisAngles::clear_x() { + _impl_.x_ = 0; +} +inline double Orientation_AxisAngles::_internal_x() const { + return _impl_.x_; +} +inline double Orientation_AxisAngles::x() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.AxisAngles.x) + return _internal_x(); +} +inline void Orientation_AxisAngles::_internal_set_x(double value) { + + _impl_.x_ = value; +} +inline void Orientation_AxisAngles::set_x(double value) { + _internal_set_x(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.AxisAngles.x) +} + +// double y = 3 [json_name = "y"]; +inline void Orientation_AxisAngles::clear_y() { + _impl_.y_ = 0; +} +inline double Orientation_AxisAngles::_internal_y() const { + return _impl_.y_; +} +inline double Orientation_AxisAngles::y() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.AxisAngles.y) + return _internal_y(); +} +inline void Orientation_AxisAngles::_internal_set_y(double value) { + + _impl_.y_ = value; +} +inline void Orientation_AxisAngles::set_y(double value) { + _internal_set_y(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.AxisAngles.y) +} + +// double z = 4 [json_name = "z"]; +inline void Orientation_AxisAngles::clear_z() { + _impl_.z_ = 0; +} +inline double Orientation_AxisAngles::_internal_z() const { + return _impl_.z_; +} +inline double Orientation_AxisAngles::z() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.AxisAngles.z) + return _internal_z(); +} +inline void Orientation_AxisAngles::_internal_set_z(double value) { + + _impl_.z_ = value; +} +inline void Orientation_AxisAngles::set_z(double value) { + _internal_set_z(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.AxisAngles.z) +} + +// ------------------------------------------------------------------- + +// Orientation_Quaternion + +// double w = 1 [json_name = "w"]; +inline void Orientation_Quaternion::clear_w() { + _impl_.w_ = 0; +} +inline double Orientation_Quaternion::_internal_w() const { + return _impl_.w_; +} +inline double Orientation_Quaternion::w() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.Quaternion.w) + return _internal_w(); +} +inline void Orientation_Quaternion::_internal_set_w(double value) { + + _impl_.w_ = value; +} +inline void Orientation_Quaternion::set_w(double value) { + _internal_set_w(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.Quaternion.w) +} + +// double x = 2 [json_name = "x"]; +inline void Orientation_Quaternion::clear_x() { + _impl_.x_ = 0; +} +inline double Orientation_Quaternion::_internal_x() const { + return _impl_.x_; +} +inline double Orientation_Quaternion::x() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.Quaternion.x) + return _internal_x(); +} +inline void Orientation_Quaternion::_internal_set_x(double value) { + + _impl_.x_ = value; +} +inline void Orientation_Quaternion::set_x(double value) { + _internal_set_x(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.Quaternion.x) +} + +// double y = 3 [json_name = "y"]; +inline void Orientation_Quaternion::clear_y() { + _impl_.y_ = 0; +} +inline double Orientation_Quaternion::_internal_y() const { + return _impl_.y_; +} +inline double Orientation_Quaternion::y() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.Quaternion.y) + return _internal_y(); +} +inline void Orientation_Quaternion::_internal_set_y(double value) { + + _impl_.y_ = value; +} +inline void Orientation_Quaternion::set_y(double value) { + _internal_set_y(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.Quaternion.y) +} + +// double z = 4 [json_name = "z"]; +inline void Orientation_Quaternion::clear_z() { + _impl_.z_ = 0; +} +inline double Orientation_Quaternion::_internal_z() const { + return _impl_.z_; +} +inline double Orientation_Quaternion::z() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.Quaternion.z) + return _internal_z(); +} +inline void Orientation_Quaternion::_internal_set_z(double value) { + + _impl_.z_ = value; +} +inline void Orientation_Quaternion::set_z(double value) { + _internal_set_z(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.Quaternion.z) +} + +// ------------------------------------------------------------------- + +// Orientation + +// .viam.app.v1.Orientation.NoOrientation no_orientation = 1 [json_name = "noOrientation"]; +inline bool Orientation::_internal_has_no_orientation() const { + return type_case() == kNoOrientation; +} +inline bool Orientation::has_no_orientation() const { + return _internal_has_no_orientation(); +} +inline void Orientation::set_has_no_orientation() { + _impl_._oneof_case_[0] = kNoOrientation; +} +inline void Orientation::clear_no_orientation() { + if (_internal_has_no_orientation()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_.no_orientation_; + } + clear_has_type(); + } +} +inline ::viam::app::v1::Orientation_NoOrientation* Orientation::release_no_orientation() { + // @@protoc_insertion_point(field_release:viam.app.v1.Orientation.no_orientation) + if (_internal_has_no_orientation()) { + clear_has_type(); + ::viam::app::v1::Orientation_NoOrientation* temp = _impl_.type_.no_orientation_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.type_.no_orientation_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::app::v1::Orientation_NoOrientation& Orientation::_internal_no_orientation() const { + return _internal_has_no_orientation() + ? *_impl_.type_.no_orientation_ + : reinterpret_cast< ::viam::app::v1::Orientation_NoOrientation&>(::viam::app::v1::_Orientation_NoOrientation_default_instance_); +} +inline const ::viam::app::v1::Orientation_NoOrientation& Orientation::no_orientation() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.no_orientation) + return _internal_no_orientation(); +} +inline ::viam::app::v1::Orientation_NoOrientation* Orientation::unsafe_arena_release_no_orientation() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.Orientation.no_orientation) + if (_internal_has_no_orientation()) { + clear_has_type(); + ::viam::app::v1::Orientation_NoOrientation* temp = _impl_.type_.no_orientation_; + _impl_.type_.no_orientation_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Orientation::unsafe_arena_set_allocated_no_orientation(::viam::app::v1::Orientation_NoOrientation* no_orientation) { + clear_type(); + if (no_orientation) { + set_has_no_orientation(); + _impl_.type_.no_orientation_ = no_orientation; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Orientation.no_orientation) +} +inline ::viam::app::v1::Orientation_NoOrientation* Orientation::_internal_mutable_no_orientation() { + if (!_internal_has_no_orientation()) { + clear_type(); + set_has_no_orientation(); + _impl_.type_.no_orientation_ = CreateMaybeMessage< ::viam::app::v1::Orientation_NoOrientation >(GetArenaForAllocation()); + } + return _impl_.type_.no_orientation_; +} +inline ::viam::app::v1::Orientation_NoOrientation* Orientation::mutable_no_orientation() { + ::viam::app::v1::Orientation_NoOrientation* _msg = _internal_mutable_no_orientation(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Orientation.no_orientation) + return _msg; +} + +// .viam.app.v1.Orientation.OrientationVectorRadians vector_radians = 2 [json_name = "vectorRadians"]; +inline bool Orientation::_internal_has_vector_radians() const { + return type_case() == kVectorRadians; +} +inline bool Orientation::has_vector_radians() const { + return _internal_has_vector_radians(); +} +inline void Orientation::set_has_vector_radians() { + _impl_._oneof_case_[0] = kVectorRadians; +} +inline void Orientation::clear_vector_radians() { + if (_internal_has_vector_radians()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_.vector_radians_; + } + clear_has_type(); + } +} +inline ::viam::app::v1::Orientation_OrientationVectorRadians* Orientation::release_vector_radians() { + // @@protoc_insertion_point(field_release:viam.app.v1.Orientation.vector_radians) + if (_internal_has_vector_radians()) { + clear_has_type(); + ::viam::app::v1::Orientation_OrientationVectorRadians* temp = _impl_.type_.vector_radians_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.type_.vector_radians_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::app::v1::Orientation_OrientationVectorRadians& Orientation::_internal_vector_radians() const { + return _internal_has_vector_radians() + ? *_impl_.type_.vector_radians_ + : reinterpret_cast< ::viam::app::v1::Orientation_OrientationVectorRadians&>(::viam::app::v1::_Orientation_OrientationVectorRadians_default_instance_); +} +inline const ::viam::app::v1::Orientation_OrientationVectorRadians& Orientation::vector_radians() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.vector_radians) + return _internal_vector_radians(); +} +inline ::viam::app::v1::Orientation_OrientationVectorRadians* Orientation::unsafe_arena_release_vector_radians() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.Orientation.vector_radians) + if (_internal_has_vector_radians()) { + clear_has_type(); + ::viam::app::v1::Orientation_OrientationVectorRadians* temp = _impl_.type_.vector_radians_; + _impl_.type_.vector_radians_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Orientation::unsafe_arena_set_allocated_vector_radians(::viam::app::v1::Orientation_OrientationVectorRadians* vector_radians) { + clear_type(); + if (vector_radians) { + set_has_vector_radians(); + _impl_.type_.vector_radians_ = vector_radians; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Orientation.vector_radians) +} +inline ::viam::app::v1::Orientation_OrientationVectorRadians* Orientation::_internal_mutable_vector_radians() { + if (!_internal_has_vector_radians()) { + clear_type(); + set_has_vector_radians(); + _impl_.type_.vector_radians_ = CreateMaybeMessage< ::viam::app::v1::Orientation_OrientationVectorRadians >(GetArenaForAllocation()); + } + return _impl_.type_.vector_radians_; +} +inline ::viam::app::v1::Orientation_OrientationVectorRadians* Orientation::mutable_vector_radians() { + ::viam::app::v1::Orientation_OrientationVectorRadians* _msg = _internal_mutable_vector_radians(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Orientation.vector_radians) + return _msg; +} + +// .viam.app.v1.Orientation.OrientationVectorDegrees vector_degrees = 3 [json_name = "vectorDegrees"]; +inline bool Orientation::_internal_has_vector_degrees() const { + return type_case() == kVectorDegrees; +} +inline bool Orientation::has_vector_degrees() const { + return _internal_has_vector_degrees(); +} +inline void Orientation::set_has_vector_degrees() { + _impl_._oneof_case_[0] = kVectorDegrees; +} +inline void Orientation::clear_vector_degrees() { + if (_internal_has_vector_degrees()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_.vector_degrees_; + } + clear_has_type(); + } +} +inline ::viam::app::v1::Orientation_OrientationVectorDegrees* Orientation::release_vector_degrees() { + // @@protoc_insertion_point(field_release:viam.app.v1.Orientation.vector_degrees) + if (_internal_has_vector_degrees()) { + clear_has_type(); + ::viam::app::v1::Orientation_OrientationVectorDegrees* temp = _impl_.type_.vector_degrees_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.type_.vector_degrees_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::app::v1::Orientation_OrientationVectorDegrees& Orientation::_internal_vector_degrees() const { + return _internal_has_vector_degrees() + ? *_impl_.type_.vector_degrees_ + : reinterpret_cast< ::viam::app::v1::Orientation_OrientationVectorDegrees&>(::viam::app::v1::_Orientation_OrientationVectorDegrees_default_instance_); +} +inline const ::viam::app::v1::Orientation_OrientationVectorDegrees& Orientation::vector_degrees() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.vector_degrees) + return _internal_vector_degrees(); +} +inline ::viam::app::v1::Orientation_OrientationVectorDegrees* Orientation::unsafe_arena_release_vector_degrees() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.Orientation.vector_degrees) + if (_internal_has_vector_degrees()) { + clear_has_type(); + ::viam::app::v1::Orientation_OrientationVectorDegrees* temp = _impl_.type_.vector_degrees_; + _impl_.type_.vector_degrees_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Orientation::unsafe_arena_set_allocated_vector_degrees(::viam::app::v1::Orientation_OrientationVectorDegrees* vector_degrees) { + clear_type(); + if (vector_degrees) { + set_has_vector_degrees(); + _impl_.type_.vector_degrees_ = vector_degrees; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Orientation.vector_degrees) +} +inline ::viam::app::v1::Orientation_OrientationVectorDegrees* Orientation::_internal_mutable_vector_degrees() { + if (!_internal_has_vector_degrees()) { + clear_type(); + set_has_vector_degrees(); + _impl_.type_.vector_degrees_ = CreateMaybeMessage< ::viam::app::v1::Orientation_OrientationVectorDegrees >(GetArenaForAllocation()); + } + return _impl_.type_.vector_degrees_; +} +inline ::viam::app::v1::Orientation_OrientationVectorDegrees* Orientation::mutable_vector_degrees() { + ::viam::app::v1::Orientation_OrientationVectorDegrees* _msg = _internal_mutable_vector_degrees(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Orientation.vector_degrees) + return _msg; +} + +// .viam.app.v1.Orientation.EulerAngles euler_angles = 4 [json_name = "eulerAngles"]; +inline bool Orientation::_internal_has_euler_angles() const { + return type_case() == kEulerAngles; +} +inline bool Orientation::has_euler_angles() const { + return _internal_has_euler_angles(); +} +inline void Orientation::set_has_euler_angles() { + _impl_._oneof_case_[0] = kEulerAngles; +} +inline void Orientation::clear_euler_angles() { + if (_internal_has_euler_angles()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_.euler_angles_; + } + clear_has_type(); + } +} +inline ::viam::app::v1::Orientation_EulerAngles* Orientation::release_euler_angles() { + // @@protoc_insertion_point(field_release:viam.app.v1.Orientation.euler_angles) + if (_internal_has_euler_angles()) { + clear_has_type(); + ::viam::app::v1::Orientation_EulerAngles* temp = _impl_.type_.euler_angles_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.type_.euler_angles_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::app::v1::Orientation_EulerAngles& Orientation::_internal_euler_angles() const { + return _internal_has_euler_angles() + ? *_impl_.type_.euler_angles_ + : reinterpret_cast< ::viam::app::v1::Orientation_EulerAngles&>(::viam::app::v1::_Orientation_EulerAngles_default_instance_); +} +inline const ::viam::app::v1::Orientation_EulerAngles& Orientation::euler_angles() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.euler_angles) + return _internal_euler_angles(); +} +inline ::viam::app::v1::Orientation_EulerAngles* Orientation::unsafe_arena_release_euler_angles() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.Orientation.euler_angles) + if (_internal_has_euler_angles()) { + clear_has_type(); + ::viam::app::v1::Orientation_EulerAngles* temp = _impl_.type_.euler_angles_; + _impl_.type_.euler_angles_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Orientation::unsafe_arena_set_allocated_euler_angles(::viam::app::v1::Orientation_EulerAngles* euler_angles) { + clear_type(); + if (euler_angles) { + set_has_euler_angles(); + _impl_.type_.euler_angles_ = euler_angles; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Orientation.euler_angles) +} +inline ::viam::app::v1::Orientation_EulerAngles* Orientation::_internal_mutable_euler_angles() { + if (!_internal_has_euler_angles()) { + clear_type(); + set_has_euler_angles(); + _impl_.type_.euler_angles_ = CreateMaybeMessage< ::viam::app::v1::Orientation_EulerAngles >(GetArenaForAllocation()); + } + return _impl_.type_.euler_angles_; +} +inline ::viam::app::v1::Orientation_EulerAngles* Orientation::mutable_euler_angles() { + ::viam::app::v1::Orientation_EulerAngles* _msg = _internal_mutable_euler_angles(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Orientation.euler_angles) + return _msg; +} + +// .viam.app.v1.Orientation.AxisAngles axis_angles = 5 [json_name = "axisAngles"]; +inline bool Orientation::_internal_has_axis_angles() const { + return type_case() == kAxisAngles; +} +inline bool Orientation::has_axis_angles() const { + return _internal_has_axis_angles(); +} +inline void Orientation::set_has_axis_angles() { + _impl_._oneof_case_[0] = kAxisAngles; +} +inline void Orientation::clear_axis_angles() { + if (_internal_has_axis_angles()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_.axis_angles_; + } + clear_has_type(); + } +} +inline ::viam::app::v1::Orientation_AxisAngles* Orientation::release_axis_angles() { + // @@protoc_insertion_point(field_release:viam.app.v1.Orientation.axis_angles) + if (_internal_has_axis_angles()) { + clear_has_type(); + ::viam::app::v1::Orientation_AxisAngles* temp = _impl_.type_.axis_angles_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.type_.axis_angles_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::app::v1::Orientation_AxisAngles& Orientation::_internal_axis_angles() const { + return _internal_has_axis_angles() + ? *_impl_.type_.axis_angles_ + : reinterpret_cast< ::viam::app::v1::Orientation_AxisAngles&>(::viam::app::v1::_Orientation_AxisAngles_default_instance_); +} +inline const ::viam::app::v1::Orientation_AxisAngles& Orientation::axis_angles() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.axis_angles) + return _internal_axis_angles(); +} +inline ::viam::app::v1::Orientation_AxisAngles* Orientation::unsafe_arena_release_axis_angles() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.Orientation.axis_angles) + if (_internal_has_axis_angles()) { + clear_has_type(); + ::viam::app::v1::Orientation_AxisAngles* temp = _impl_.type_.axis_angles_; + _impl_.type_.axis_angles_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Orientation::unsafe_arena_set_allocated_axis_angles(::viam::app::v1::Orientation_AxisAngles* axis_angles) { + clear_type(); + if (axis_angles) { + set_has_axis_angles(); + _impl_.type_.axis_angles_ = axis_angles; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Orientation.axis_angles) +} +inline ::viam::app::v1::Orientation_AxisAngles* Orientation::_internal_mutable_axis_angles() { + if (!_internal_has_axis_angles()) { + clear_type(); + set_has_axis_angles(); + _impl_.type_.axis_angles_ = CreateMaybeMessage< ::viam::app::v1::Orientation_AxisAngles >(GetArenaForAllocation()); + } + return _impl_.type_.axis_angles_; +} +inline ::viam::app::v1::Orientation_AxisAngles* Orientation::mutable_axis_angles() { + ::viam::app::v1::Orientation_AxisAngles* _msg = _internal_mutable_axis_angles(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Orientation.axis_angles) + return _msg; +} + +// .viam.app.v1.Orientation.Quaternion quaternion = 6 [json_name = "quaternion"]; +inline bool Orientation::_internal_has_quaternion() const { + return type_case() == kQuaternion; +} +inline bool Orientation::has_quaternion() const { + return _internal_has_quaternion(); +} +inline void Orientation::set_has_quaternion() { + _impl_._oneof_case_[0] = kQuaternion; +} +inline void Orientation::clear_quaternion() { + if (_internal_has_quaternion()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_.quaternion_; + } + clear_has_type(); + } +} +inline ::viam::app::v1::Orientation_Quaternion* Orientation::release_quaternion() { + // @@protoc_insertion_point(field_release:viam.app.v1.Orientation.quaternion) + if (_internal_has_quaternion()) { + clear_has_type(); + ::viam::app::v1::Orientation_Quaternion* temp = _impl_.type_.quaternion_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.type_.quaternion_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::app::v1::Orientation_Quaternion& Orientation::_internal_quaternion() const { + return _internal_has_quaternion() + ? *_impl_.type_.quaternion_ + : reinterpret_cast< ::viam::app::v1::Orientation_Quaternion&>(::viam::app::v1::_Orientation_Quaternion_default_instance_); +} +inline const ::viam::app::v1::Orientation_Quaternion& Orientation::quaternion() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.quaternion) + return _internal_quaternion(); +} +inline ::viam::app::v1::Orientation_Quaternion* Orientation::unsafe_arena_release_quaternion() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.Orientation.quaternion) + if (_internal_has_quaternion()) { + clear_has_type(); + ::viam::app::v1::Orientation_Quaternion* temp = _impl_.type_.quaternion_; + _impl_.type_.quaternion_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Orientation::unsafe_arena_set_allocated_quaternion(::viam::app::v1::Orientation_Quaternion* quaternion) { + clear_type(); + if (quaternion) { + set_has_quaternion(); + _impl_.type_.quaternion_ = quaternion; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Orientation.quaternion) +} +inline ::viam::app::v1::Orientation_Quaternion* Orientation::_internal_mutable_quaternion() { + if (!_internal_has_quaternion()) { + clear_type(); + set_has_quaternion(); + _impl_.type_.quaternion_ = CreateMaybeMessage< ::viam::app::v1::Orientation_Quaternion >(GetArenaForAllocation()); + } + return _impl_.type_.quaternion_; +} +inline ::viam::app::v1::Orientation_Quaternion* Orientation::mutable_quaternion() { + ::viam::app::v1::Orientation_Quaternion* _msg = _internal_mutable_quaternion(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Orientation.quaternion) + return _msg; +} + +inline bool Orientation::has_type() const { + return type_case() != TYPE_NOT_SET; +} +inline void Orientation::clear_has_type() { + _impl_._oneof_case_[0] = TYPE_NOT_SET; +} +inline Orientation::TypeCase Orientation::type_case() const { + return Orientation::TypeCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// RemoteConfig + +// string name = 1 [json_name = "name"]; +inline void RemoteConfig::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& RemoteConfig::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RemoteConfig.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RemoteConfig::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RemoteConfig.name) +} +inline std::string* RemoteConfig::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteConfig.name) + return _s; +} +inline const std::string& RemoteConfig::_internal_name() const { + return _impl_.name_.Get(); +} +inline void RemoteConfig::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* RemoteConfig::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* RemoteConfig::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.RemoteConfig.name) + return _impl_.name_.Release(); +} +inline void RemoteConfig::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoteConfig.name) +} + +// string address = 2 [json_name = "address"]; +inline void RemoteConfig::clear_address() { + _impl_.address_.ClearToEmpty(); +} +inline const std::string& RemoteConfig::address() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RemoteConfig.address) + return _internal_address(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RemoteConfig::set_address(ArgT0&& arg0, ArgT... args) { + + _impl_.address_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RemoteConfig.address) +} +inline std::string* RemoteConfig::mutable_address() { + std::string* _s = _internal_mutable_address(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteConfig.address) + return _s; +} +inline const std::string& RemoteConfig::_internal_address() const { + return _impl_.address_.Get(); +} +inline void RemoteConfig::_internal_set_address(const std::string& value) { + + _impl_.address_.Set(value, GetArenaForAllocation()); +} +inline std::string* RemoteConfig::_internal_mutable_address() { + + return _impl_.address_.Mutable(GetArenaForAllocation()); +} +inline std::string* RemoteConfig::release_address() { + // @@protoc_insertion_point(field_release:viam.app.v1.RemoteConfig.address) + return _impl_.address_.Release(); +} +inline void RemoteConfig::set_allocated_address(std::string* address) { + if (address != nullptr) { + + } else { + + } + _impl_.address_.SetAllocated(address, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.address_.IsDefault()) { + _impl_.address_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoteConfig.address) +} + +// .viam.app.v1.Frame frame = 3 [json_name = "frame"]; +inline bool RemoteConfig::_internal_has_frame() const { + return this != internal_default_instance() && _impl_.frame_ != nullptr; +} +inline bool RemoteConfig::has_frame() const { + return _internal_has_frame(); +} +inline void RemoteConfig::clear_frame() { + if (GetArenaForAllocation() == nullptr && _impl_.frame_ != nullptr) { + delete _impl_.frame_; + } + _impl_.frame_ = nullptr; +} +inline const ::viam::app::v1::Frame& RemoteConfig::_internal_frame() const { + const ::viam::app::v1::Frame* p = _impl_.frame_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Frame_default_instance_); +} +inline const ::viam::app::v1::Frame& RemoteConfig::frame() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RemoteConfig.frame) + return _internal_frame(); +} +inline void RemoteConfig::unsafe_arena_set_allocated_frame( + ::viam::app::v1::Frame* frame) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.frame_); + } + _impl_.frame_ = frame; + if (frame) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RemoteConfig.frame) +} +inline ::viam::app::v1::Frame* RemoteConfig::release_frame() { + + ::viam::app::v1::Frame* temp = _impl_.frame_; + _impl_.frame_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::Frame* RemoteConfig::unsafe_arena_release_frame() { + // @@protoc_insertion_point(field_release:viam.app.v1.RemoteConfig.frame) + + ::viam::app::v1::Frame* temp = _impl_.frame_; + _impl_.frame_ = nullptr; + return temp; +} +inline ::viam::app::v1::Frame* RemoteConfig::_internal_mutable_frame() { + + if (_impl_.frame_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Frame>(GetArenaForAllocation()); + _impl_.frame_ = p; + } + return _impl_.frame_; +} +inline ::viam::app::v1::Frame* RemoteConfig::mutable_frame() { + ::viam::app::v1::Frame* _msg = _internal_mutable_frame(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteConfig.frame) + return _msg; +} +inline void RemoteConfig::set_allocated_frame(::viam::app::v1::Frame* frame) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.frame_; + } + if (frame) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(frame); + if (message_arena != submessage_arena) { + frame = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, frame, submessage_arena); + } + + } else { + + } + _impl_.frame_ = frame; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoteConfig.frame) +} + +// .viam.app.v1.RemoteAuth auth = 4 [json_name = "auth"]; +inline bool RemoteConfig::_internal_has_auth() const { + return this != internal_default_instance() && _impl_.auth_ != nullptr; +} +inline bool RemoteConfig::has_auth() const { + return _internal_has_auth(); +} +inline void RemoteConfig::clear_auth() { + if (GetArenaForAllocation() == nullptr && _impl_.auth_ != nullptr) { + delete _impl_.auth_; + } + _impl_.auth_ = nullptr; +} +inline const ::viam::app::v1::RemoteAuth& RemoteConfig::_internal_auth() const { + const ::viam::app::v1::RemoteAuth* p = _impl_.auth_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_RemoteAuth_default_instance_); +} +inline const ::viam::app::v1::RemoteAuth& RemoteConfig::auth() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RemoteConfig.auth) + return _internal_auth(); +} +inline void RemoteConfig::unsafe_arena_set_allocated_auth( + ::viam::app::v1::RemoteAuth* auth) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.auth_); + } + _impl_.auth_ = auth; + if (auth) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RemoteConfig.auth) +} +inline ::viam::app::v1::RemoteAuth* RemoteConfig::release_auth() { + + ::viam::app::v1::RemoteAuth* temp = _impl_.auth_; + _impl_.auth_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::RemoteAuth* RemoteConfig::unsafe_arena_release_auth() { + // @@protoc_insertion_point(field_release:viam.app.v1.RemoteConfig.auth) + + ::viam::app::v1::RemoteAuth* temp = _impl_.auth_; + _impl_.auth_ = nullptr; + return temp; +} +inline ::viam::app::v1::RemoteAuth* RemoteConfig::_internal_mutable_auth() { + + if (_impl_.auth_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::RemoteAuth>(GetArenaForAllocation()); + _impl_.auth_ = p; + } + return _impl_.auth_; +} +inline ::viam::app::v1::RemoteAuth* RemoteConfig::mutable_auth() { + ::viam::app::v1::RemoteAuth* _msg = _internal_mutable_auth(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteConfig.auth) + return _msg; +} +inline void RemoteConfig::set_allocated_auth(::viam::app::v1::RemoteAuth* auth) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.auth_; + } + if (auth) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(auth); + if (message_arena != submessage_arena) { + auth = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, auth, submessage_arena); + } + + } else { + + } + _impl_.auth_ = auth; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoteConfig.auth) +} + +// string managed_by = 5 [json_name = "managedBy"]; +inline void RemoteConfig::clear_managed_by() { + _impl_.managed_by_.ClearToEmpty(); +} +inline const std::string& RemoteConfig::managed_by() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RemoteConfig.managed_by) + return _internal_managed_by(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RemoteConfig::set_managed_by(ArgT0&& arg0, ArgT... args) { + + _impl_.managed_by_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RemoteConfig.managed_by) +} +inline std::string* RemoteConfig::mutable_managed_by() { + std::string* _s = _internal_mutable_managed_by(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteConfig.managed_by) + return _s; +} +inline const std::string& RemoteConfig::_internal_managed_by() const { + return _impl_.managed_by_.Get(); +} +inline void RemoteConfig::_internal_set_managed_by(const std::string& value) { + + _impl_.managed_by_.Set(value, GetArenaForAllocation()); +} +inline std::string* RemoteConfig::_internal_mutable_managed_by() { + + return _impl_.managed_by_.Mutable(GetArenaForAllocation()); +} +inline std::string* RemoteConfig::release_managed_by() { + // @@protoc_insertion_point(field_release:viam.app.v1.RemoteConfig.managed_by) + return _impl_.managed_by_.Release(); +} +inline void RemoteConfig::set_allocated_managed_by(std::string* managed_by) { + if (managed_by != nullptr) { + + } else { + + } + _impl_.managed_by_.SetAllocated(managed_by, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.managed_by_.IsDefault()) { + _impl_.managed_by_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoteConfig.managed_by) +} + +// bool insecure = 6 [json_name = "insecure"]; +inline void RemoteConfig::clear_insecure() { + _impl_.insecure_ = false; +} +inline bool RemoteConfig::_internal_insecure() const { + return _impl_.insecure_; +} +inline bool RemoteConfig::insecure() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RemoteConfig.insecure) + return _internal_insecure(); +} +inline void RemoteConfig::_internal_set_insecure(bool value) { + + _impl_.insecure_ = value; +} +inline void RemoteConfig::set_insecure(bool value) { + _internal_set_insecure(value); + // @@protoc_insertion_point(field_set:viam.app.v1.RemoteConfig.insecure) +} + +// .google.protobuf.Duration connection_check_interval = 7 [json_name = "connectionCheckInterval"]; +inline bool RemoteConfig::_internal_has_connection_check_interval() const { + return this != internal_default_instance() && _impl_.connection_check_interval_ != nullptr; +} +inline bool RemoteConfig::has_connection_check_interval() const { + return _internal_has_connection_check_interval(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& RemoteConfig::_internal_connection_check_interval() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = _impl_.connection_check_interval_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& RemoteConfig::connection_check_interval() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RemoteConfig.connection_check_interval) + return _internal_connection_check_interval(); +} +inline void RemoteConfig::unsafe_arena_set_allocated_connection_check_interval( + ::PROTOBUF_NAMESPACE_ID::Duration* connection_check_interval) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.connection_check_interval_); + } + _impl_.connection_check_interval_ = connection_check_interval; + if (connection_check_interval) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RemoteConfig.connection_check_interval) +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* RemoteConfig::release_connection_check_interval() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.connection_check_interval_; + _impl_.connection_check_interval_ = 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::Duration* RemoteConfig::unsafe_arena_release_connection_check_interval() { + // @@protoc_insertion_point(field_release:viam.app.v1.RemoteConfig.connection_check_interval) + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.connection_check_interval_; + _impl_.connection_check_interval_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* RemoteConfig::_internal_mutable_connection_check_interval() { + + if (_impl_.connection_check_interval_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + _impl_.connection_check_interval_ = p; + } + return _impl_.connection_check_interval_; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* RemoteConfig::mutable_connection_check_interval() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_connection_check_interval(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteConfig.connection_check_interval) + return _msg; +} +inline void RemoteConfig::set_allocated_connection_check_interval(::PROTOBUF_NAMESPACE_ID::Duration* connection_check_interval) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.connection_check_interval_); + } + if (connection_check_interval) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(connection_check_interval)); + if (message_arena != submessage_arena) { + connection_check_interval = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, connection_check_interval, submessage_arena); + } + + } else { + + } + _impl_.connection_check_interval_ = connection_check_interval; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoteConfig.connection_check_interval) +} + +// .google.protobuf.Duration reconnect_interval = 8 [json_name = "reconnectInterval"]; +inline bool RemoteConfig::_internal_has_reconnect_interval() const { + return this != internal_default_instance() && _impl_.reconnect_interval_ != nullptr; +} +inline bool RemoteConfig::has_reconnect_interval() const { + return _internal_has_reconnect_interval(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& RemoteConfig::_internal_reconnect_interval() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = _impl_.reconnect_interval_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& RemoteConfig::reconnect_interval() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RemoteConfig.reconnect_interval) + return _internal_reconnect_interval(); +} +inline void RemoteConfig::unsafe_arena_set_allocated_reconnect_interval( + ::PROTOBUF_NAMESPACE_ID::Duration* reconnect_interval) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.reconnect_interval_); + } + _impl_.reconnect_interval_ = reconnect_interval; + if (reconnect_interval) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RemoteConfig.reconnect_interval) +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* RemoteConfig::release_reconnect_interval() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.reconnect_interval_; + _impl_.reconnect_interval_ = 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::Duration* RemoteConfig::unsafe_arena_release_reconnect_interval() { + // @@protoc_insertion_point(field_release:viam.app.v1.RemoteConfig.reconnect_interval) + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.reconnect_interval_; + _impl_.reconnect_interval_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* RemoteConfig::_internal_mutable_reconnect_interval() { + + if (_impl_.reconnect_interval_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + _impl_.reconnect_interval_ = p; + } + return _impl_.reconnect_interval_; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* RemoteConfig::mutable_reconnect_interval() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_reconnect_interval(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteConfig.reconnect_interval) + return _msg; +} +inline void RemoteConfig::set_allocated_reconnect_interval(::PROTOBUF_NAMESPACE_ID::Duration* reconnect_interval) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.reconnect_interval_); + } + if (reconnect_interval) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(reconnect_interval)); + if (message_arena != submessage_arena) { + reconnect_interval = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, reconnect_interval, submessage_arena); + } + + } else { + + } + _impl_.reconnect_interval_ = reconnect_interval; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoteConfig.reconnect_interval) +} + +// repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 9 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; +inline int RemoteConfig::_internal_service_configs_size() const { + return _impl_.service_configs_.size(); +} +inline int RemoteConfig::service_configs_size() const { + return _internal_service_configs_size(); +} +inline void RemoteConfig::clear_service_configs() { + _impl_.service_configs_.Clear(); +} +inline ::viam::app::v1::ResourceLevelServiceConfig* RemoteConfig::mutable_service_configs(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteConfig.service_configs) + return _impl_.service_configs_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >* +RemoteConfig::mutable_service_configs() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.RemoteConfig.service_configs) + return &_impl_.service_configs_; +} +inline const ::viam::app::v1::ResourceLevelServiceConfig& RemoteConfig::_internal_service_configs(int index) const { + return _impl_.service_configs_.Get(index); +} +inline const ::viam::app::v1::ResourceLevelServiceConfig& RemoteConfig::service_configs(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.RemoteConfig.service_configs) + return _internal_service_configs(index); +} +inline ::viam::app::v1::ResourceLevelServiceConfig* RemoteConfig::_internal_add_service_configs() { + return _impl_.service_configs_.Add(); +} +inline ::viam::app::v1::ResourceLevelServiceConfig* RemoteConfig::add_service_configs() { + ::viam::app::v1::ResourceLevelServiceConfig* _add = _internal_add_service_configs(); + // @@protoc_insertion_point(field_add:viam.app.v1.RemoteConfig.service_configs) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >& +RemoteConfig::service_configs() const { + // @@protoc_insertion_point(field_list:viam.app.v1.RemoteConfig.service_configs) + return _impl_.service_configs_; +} + +// string secret = 10 [json_name = "secret"]; +inline void RemoteConfig::clear_secret() { + _impl_.secret_.ClearToEmpty(); +} +inline const std::string& RemoteConfig::secret() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RemoteConfig.secret) + return _internal_secret(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RemoteConfig::set_secret(ArgT0&& arg0, ArgT... args) { + + _impl_.secret_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RemoteConfig.secret) +} +inline std::string* RemoteConfig::mutable_secret() { + std::string* _s = _internal_mutable_secret(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteConfig.secret) + return _s; +} +inline const std::string& RemoteConfig::_internal_secret() const { + return _impl_.secret_.Get(); +} +inline void RemoteConfig::_internal_set_secret(const std::string& value) { + + _impl_.secret_.Set(value, GetArenaForAllocation()); +} +inline std::string* RemoteConfig::_internal_mutable_secret() { + + return _impl_.secret_.Mutable(GetArenaForAllocation()); +} +inline std::string* RemoteConfig::release_secret() { + // @@protoc_insertion_point(field_release:viam.app.v1.RemoteConfig.secret) + return _impl_.secret_.Release(); +} +inline void RemoteConfig::set_allocated_secret(std::string* secret) { + if (secret != nullptr) { + + } else { + + } + _impl_.secret_.SetAllocated(secret, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.secret_.IsDefault()) { + _impl_.secret_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoteConfig.secret) +} + +// ------------------------------------------------------------------- + +// RemoteAuth_Credentials + +// .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; +inline void RemoteAuth_Credentials::clear_type() { + _impl_.type_ = 0; +} +inline ::viam::app::v1::CredentialsType RemoteAuth_Credentials::_internal_type() const { + return static_cast< ::viam::app::v1::CredentialsType >(_impl_.type_); +} +inline ::viam::app::v1::CredentialsType RemoteAuth_Credentials::type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RemoteAuth.Credentials.type) + return _internal_type(); +} +inline void RemoteAuth_Credentials::_internal_set_type(::viam::app::v1::CredentialsType value) { + + _impl_.type_ = value; +} +inline void RemoteAuth_Credentials::set_type(::viam::app::v1::CredentialsType value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:viam.app.v1.RemoteAuth.Credentials.type) +} + +// string payload = 2 [json_name = "payload"]; +inline void RemoteAuth_Credentials::clear_payload() { + _impl_.payload_.ClearToEmpty(); +} +inline const std::string& RemoteAuth_Credentials::payload() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RemoteAuth.Credentials.payload) + return _internal_payload(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RemoteAuth_Credentials::set_payload(ArgT0&& arg0, ArgT... args) { + + _impl_.payload_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RemoteAuth.Credentials.payload) +} +inline std::string* RemoteAuth_Credentials::mutable_payload() { + std::string* _s = _internal_mutable_payload(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteAuth.Credentials.payload) + return _s; +} +inline const std::string& RemoteAuth_Credentials::_internal_payload() const { + return _impl_.payload_.Get(); +} +inline void RemoteAuth_Credentials::_internal_set_payload(const std::string& value) { + + _impl_.payload_.Set(value, GetArenaForAllocation()); +} +inline std::string* RemoteAuth_Credentials::_internal_mutable_payload() { + + return _impl_.payload_.Mutable(GetArenaForAllocation()); +} +inline std::string* RemoteAuth_Credentials::release_payload() { + // @@protoc_insertion_point(field_release:viam.app.v1.RemoteAuth.Credentials.payload) + return _impl_.payload_.Release(); +} +inline void RemoteAuth_Credentials::set_allocated_payload(std::string* payload) { + if (payload != nullptr) { + + } else { + + } + _impl_.payload_.SetAllocated(payload, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.payload_.IsDefault()) { + _impl_.payload_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoteAuth.Credentials.payload) +} + +// ------------------------------------------------------------------- + +// RemoteAuth + +// .viam.app.v1.RemoteAuth.Credentials credentials = 1 [json_name = "credentials"]; +inline bool RemoteAuth::_internal_has_credentials() const { + return this != internal_default_instance() && _impl_.credentials_ != nullptr; +} +inline bool RemoteAuth::has_credentials() const { + return _internal_has_credentials(); +} +inline void RemoteAuth::clear_credentials() { + if (GetArenaForAllocation() == nullptr && _impl_.credentials_ != nullptr) { + delete _impl_.credentials_; + } + _impl_.credentials_ = nullptr; +} +inline const ::viam::app::v1::RemoteAuth_Credentials& RemoteAuth::_internal_credentials() const { + const ::viam::app::v1::RemoteAuth_Credentials* p = _impl_.credentials_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_RemoteAuth_Credentials_default_instance_); +} +inline const ::viam::app::v1::RemoteAuth_Credentials& RemoteAuth::credentials() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RemoteAuth.credentials) + return _internal_credentials(); +} +inline void RemoteAuth::unsafe_arena_set_allocated_credentials( + ::viam::app::v1::RemoteAuth_Credentials* credentials) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.credentials_); + } + _impl_.credentials_ = credentials; + if (credentials) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RemoteAuth.credentials) +} +inline ::viam::app::v1::RemoteAuth_Credentials* RemoteAuth::release_credentials() { + + ::viam::app::v1::RemoteAuth_Credentials* temp = _impl_.credentials_; + _impl_.credentials_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::RemoteAuth_Credentials* RemoteAuth::unsafe_arena_release_credentials() { + // @@protoc_insertion_point(field_release:viam.app.v1.RemoteAuth.credentials) + + ::viam::app::v1::RemoteAuth_Credentials* temp = _impl_.credentials_; + _impl_.credentials_ = nullptr; + return temp; +} +inline ::viam::app::v1::RemoteAuth_Credentials* RemoteAuth::_internal_mutable_credentials() { + + if (_impl_.credentials_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::RemoteAuth_Credentials>(GetArenaForAllocation()); + _impl_.credentials_ = p; + } + return _impl_.credentials_; +} +inline ::viam::app::v1::RemoteAuth_Credentials* RemoteAuth::mutable_credentials() { + ::viam::app::v1::RemoteAuth_Credentials* _msg = _internal_mutable_credentials(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteAuth.credentials) + return _msg; +} +inline void RemoteAuth::set_allocated_credentials(::viam::app::v1::RemoteAuth_Credentials* credentials) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.credentials_; + } + if (credentials) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(credentials); + if (message_arena != submessage_arena) { + credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, credentials, submessage_arena); + } + + } else { + + } + _impl_.credentials_ = credentials; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoteAuth.credentials) +} + +// string entity = 2 [json_name = "entity"]; +inline void RemoteAuth::clear_entity() { + _impl_.entity_.ClearToEmpty(); +} +inline const std::string& RemoteAuth::entity() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RemoteAuth.entity) + return _internal_entity(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RemoteAuth::set_entity(ArgT0&& arg0, ArgT... args) { + + _impl_.entity_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RemoteAuth.entity) +} +inline std::string* RemoteAuth::mutable_entity() { + std::string* _s = _internal_mutable_entity(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteAuth.entity) + return _s; +} +inline const std::string& RemoteAuth::_internal_entity() const { + return _impl_.entity_.Get(); +} +inline void RemoteAuth::_internal_set_entity(const std::string& value) { + + _impl_.entity_.Set(value, GetArenaForAllocation()); +} +inline std::string* RemoteAuth::_internal_mutable_entity() { + + return _impl_.entity_.Mutable(GetArenaForAllocation()); +} +inline std::string* RemoteAuth::release_entity() { + // @@protoc_insertion_point(field_release:viam.app.v1.RemoteAuth.entity) + return _impl_.entity_.Release(); +} +inline void RemoteAuth::set_allocated_entity(std::string* entity) { + if (entity != nullptr) { + + } else { + + } + _impl_.entity_.SetAllocated(entity, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.entity_.IsDefault()) { + _impl_.entity_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoteAuth.entity) +} + +// ------------------------------------------------------------------- + +// AgentInfo + +// string host = 1 [json_name = "host"]; +inline void AgentInfo::clear_host() { + _impl_.host_.ClearToEmpty(); +} +inline const std::string& AgentInfo::host() const { + // @@protoc_insertion_point(field_get:viam.app.v1.AgentInfo.host) + return _internal_host(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AgentInfo::set_host(ArgT0&& arg0, ArgT... args) { + + _impl_.host_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.AgentInfo.host) +} +inline std::string* AgentInfo::mutable_host() { + std::string* _s = _internal_mutable_host(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.AgentInfo.host) + return _s; +} +inline const std::string& AgentInfo::_internal_host() const { + return _impl_.host_.Get(); +} +inline void AgentInfo::_internal_set_host(const std::string& value) { + + _impl_.host_.Set(value, GetArenaForAllocation()); +} +inline std::string* AgentInfo::_internal_mutable_host() { + + return _impl_.host_.Mutable(GetArenaForAllocation()); +} +inline std::string* AgentInfo::release_host() { + // @@protoc_insertion_point(field_release:viam.app.v1.AgentInfo.host) + return _impl_.host_.Release(); +} +inline void AgentInfo::set_allocated_host(std::string* host) { + if (host != nullptr) { + + } else { + + } + _impl_.host_.SetAllocated(host, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.host_.IsDefault()) { + _impl_.host_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AgentInfo.host) +} + +// string os = 2 [json_name = "os"]; +inline void AgentInfo::clear_os() { + _impl_.os_.ClearToEmpty(); +} +inline const std::string& AgentInfo::os() const { + // @@protoc_insertion_point(field_get:viam.app.v1.AgentInfo.os) + return _internal_os(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AgentInfo::set_os(ArgT0&& arg0, ArgT... args) { + + _impl_.os_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.AgentInfo.os) +} +inline std::string* AgentInfo::mutable_os() { + std::string* _s = _internal_mutable_os(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.AgentInfo.os) + return _s; +} +inline const std::string& AgentInfo::_internal_os() const { + return _impl_.os_.Get(); +} +inline void AgentInfo::_internal_set_os(const std::string& value) { + + _impl_.os_.Set(value, GetArenaForAllocation()); +} +inline std::string* AgentInfo::_internal_mutable_os() { + + return _impl_.os_.Mutable(GetArenaForAllocation()); +} +inline std::string* AgentInfo::release_os() { + // @@protoc_insertion_point(field_release:viam.app.v1.AgentInfo.os) + return _impl_.os_.Release(); +} +inline void AgentInfo::set_allocated_os(std::string* os) { + if (os != nullptr) { + + } else { + + } + _impl_.os_.SetAllocated(os, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.os_.IsDefault()) { + _impl_.os_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AgentInfo.os) +} + +// repeated string ips = 3 [json_name = "ips"]; +inline int AgentInfo::_internal_ips_size() const { + return _impl_.ips_.size(); +} +inline int AgentInfo::ips_size() const { + return _internal_ips_size(); +} +inline void AgentInfo::clear_ips() { + _impl_.ips_.Clear(); +} +inline std::string* AgentInfo::add_ips() { + std::string* _s = _internal_add_ips(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.AgentInfo.ips) + return _s; +} +inline const std::string& AgentInfo::_internal_ips(int index) const { + return _impl_.ips_.Get(index); +} +inline const std::string& AgentInfo::ips(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.AgentInfo.ips) + return _internal_ips(index); +} +inline std::string* AgentInfo::mutable_ips(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.AgentInfo.ips) + return _impl_.ips_.Mutable(index); +} +inline void AgentInfo::set_ips(int index, const std::string& value) { + _impl_.ips_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.AgentInfo.ips) +} +inline void AgentInfo::set_ips(int index, std::string&& value) { + _impl_.ips_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.AgentInfo.ips) +} +inline void AgentInfo::set_ips(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.ips_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.AgentInfo.ips) +} +inline void AgentInfo::set_ips(int index, const char* value, size_t size) { + _impl_.ips_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.AgentInfo.ips) +} +inline std::string* AgentInfo::_internal_add_ips() { + return _impl_.ips_.Add(); +} +inline void AgentInfo::add_ips(const std::string& value) { + _impl_.ips_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.AgentInfo.ips) +} +inline void AgentInfo::add_ips(std::string&& value) { + _impl_.ips_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.AgentInfo.ips) +} +inline void AgentInfo::add_ips(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.ips_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.AgentInfo.ips) +} +inline void AgentInfo::add_ips(const char* value, size_t size) { + _impl_.ips_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.AgentInfo.ips) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +AgentInfo::ips() const { + // @@protoc_insertion_point(field_list:viam.app.v1.AgentInfo.ips) + return _impl_.ips_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +AgentInfo::mutable_ips() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.AgentInfo.ips) + return &_impl_.ips_; +} + +// string version = 4 [json_name = "version"]; +inline void AgentInfo::clear_version() { + _impl_.version_.ClearToEmpty(); +} +inline const std::string& AgentInfo::version() const { + // @@protoc_insertion_point(field_get:viam.app.v1.AgentInfo.version) + return _internal_version(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AgentInfo::set_version(ArgT0&& arg0, ArgT... args) { + + _impl_.version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.AgentInfo.version) +} +inline std::string* AgentInfo::mutable_version() { + std::string* _s = _internal_mutable_version(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.AgentInfo.version) + return _s; +} +inline const std::string& AgentInfo::_internal_version() const { + return _impl_.version_.Get(); +} +inline void AgentInfo::_internal_set_version(const std::string& value) { + + _impl_.version_.Set(value, GetArenaForAllocation()); +} +inline std::string* AgentInfo::_internal_mutable_version() { + + return _impl_.version_.Mutable(GetArenaForAllocation()); +} +inline std::string* AgentInfo::release_version() { + // @@protoc_insertion_point(field_release:viam.app.v1.AgentInfo.version) + return _impl_.version_.Release(); +} +inline void AgentInfo::set_allocated_version(std::string* version) { + if (version != nullptr) { + + } else { + + } + _impl_.version_.SetAllocated(version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.version_.IsDefault()) { + _impl_.version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AgentInfo.version) +} + +// string git_revision = 5 [json_name = "gitRevision"]; +inline void AgentInfo::clear_git_revision() { + _impl_.git_revision_.ClearToEmpty(); +} +inline const std::string& AgentInfo::git_revision() const { + // @@protoc_insertion_point(field_get:viam.app.v1.AgentInfo.git_revision) + return _internal_git_revision(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AgentInfo::set_git_revision(ArgT0&& arg0, ArgT... args) { + + _impl_.git_revision_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.AgentInfo.git_revision) +} +inline std::string* AgentInfo::mutable_git_revision() { + std::string* _s = _internal_mutable_git_revision(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.AgentInfo.git_revision) + return _s; +} +inline const std::string& AgentInfo::_internal_git_revision() const { + return _impl_.git_revision_.Get(); +} +inline void AgentInfo::_internal_set_git_revision(const std::string& value) { + + _impl_.git_revision_.Set(value, GetArenaForAllocation()); +} +inline std::string* AgentInfo::_internal_mutable_git_revision() { + + return _impl_.git_revision_.Mutable(GetArenaForAllocation()); +} +inline std::string* AgentInfo::release_git_revision() { + // @@protoc_insertion_point(field_release:viam.app.v1.AgentInfo.git_revision) + return _impl_.git_revision_.Release(); +} +inline void AgentInfo::set_allocated_git_revision(std::string* git_revision) { + if (git_revision != nullptr) { + + } else { + + } + _impl_.git_revision_.SetAllocated(git_revision, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.git_revision_.IsDefault()) { + _impl_.git_revision_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AgentInfo.git_revision) +} + +// ------------------------------------------------------------------- + +// ConfigRequest + +// string id = 1 [json_name = "id"]; +inline void ConfigRequest::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& ConfigRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ConfigRequest.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ConfigRequest::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ConfigRequest.id) +} +inline std::string* ConfigRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ConfigRequest.id) + return _s; +} +inline const std::string& ConfigRequest::_internal_id() const { + return _impl_.id_.Get(); +} +inline void ConfigRequest::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* ConfigRequest::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* ConfigRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ConfigRequest.id) + return _impl_.id_.Release(); +} +inline void ConfigRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ConfigRequest.id) +} + +// optional .viam.app.v1.AgentInfo agent_info = 2 [json_name = "agentInfo"]; +inline bool ConfigRequest::_internal_has_agent_info() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.agent_info_ != nullptr); + return value; +} +inline bool ConfigRequest::has_agent_info() const { + return _internal_has_agent_info(); +} +inline void ConfigRequest::clear_agent_info() { + if (_impl_.agent_info_ != nullptr) _impl_.agent_info_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::viam::app::v1::AgentInfo& ConfigRequest::_internal_agent_info() const { + const ::viam::app::v1::AgentInfo* p = _impl_.agent_info_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_AgentInfo_default_instance_); +} +inline const ::viam::app::v1::AgentInfo& ConfigRequest::agent_info() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ConfigRequest.agent_info) + return _internal_agent_info(); +} +inline void ConfigRequest::unsafe_arena_set_allocated_agent_info( + ::viam::app::v1::AgentInfo* agent_info) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.agent_info_); + } + _impl_.agent_info_ = agent_info; + if (agent_info) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ConfigRequest.agent_info) +} +inline ::viam::app::v1::AgentInfo* ConfigRequest::release_agent_info() { + _impl_._has_bits_[0] &= ~0x00000001u; + ::viam::app::v1::AgentInfo* temp = _impl_.agent_info_; + _impl_.agent_info_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::AgentInfo* ConfigRequest::unsafe_arena_release_agent_info() { + // @@protoc_insertion_point(field_release:viam.app.v1.ConfigRequest.agent_info) + _impl_._has_bits_[0] &= ~0x00000001u; + ::viam::app::v1::AgentInfo* temp = _impl_.agent_info_; + _impl_.agent_info_ = nullptr; + return temp; +} +inline ::viam::app::v1::AgentInfo* ConfigRequest::_internal_mutable_agent_info() { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.agent_info_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::AgentInfo>(GetArenaForAllocation()); + _impl_.agent_info_ = p; + } + return _impl_.agent_info_; +} +inline ::viam::app::v1::AgentInfo* ConfigRequest::mutable_agent_info() { + ::viam::app::v1::AgentInfo* _msg = _internal_mutable_agent_info(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ConfigRequest.agent_info) + return _msg; +} +inline void ConfigRequest::set_allocated_agent_info(::viam::app::v1::AgentInfo* agent_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.agent_info_; + } + if (agent_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(agent_info); + if (message_arena != submessage_arena) { + agent_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, agent_info, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.agent_info_ = agent_info; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ConfigRequest.agent_info) +} + +// ------------------------------------------------------------------- + +// ConfigResponse + +// .viam.app.v1.RobotConfig config = 1 [json_name = "config"]; +inline bool ConfigResponse::_internal_has_config() const { + return this != internal_default_instance() && _impl_.config_ != nullptr; +} +inline bool ConfigResponse::has_config() const { + return _internal_has_config(); +} +inline void ConfigResponse::clear_config() { + if (GetArenaForAllocation() == nullptr && _impl_.config_ != nullptr) { + delete _impl_.config_; + } + _impl_.config_ = nullptr; +} +inline const ::viam::app::v1::RobotConfig& ConfigResponse::_internal_config() const { + const ::viam::app::v1::RobotConfig* p = _impl_.config_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_RobotConfig_default_instance_); +} +inline const ::viam::app::v1::RobotConfig& ConfigResponse::config() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ConfigResponse.config) + return _internal_config(); +} +inline void ConfigResponse::unsafe_arena_set_allocated_config( + ::viam::app::v1::RobotConfig* config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.config_); + } + _impl_.config_ = config; + if (config) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ConfigResponse.config) +} +inline ::viam::app::v1::RobotConfig* ConfigResponse::release_config() { + + ::viam::app::v1::RobotConfig* temp = _impl_.config_; + _impl_.config_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::RobotConfig* ConfigResponse::unsafe_arena_release_config() { + // @@protoc_insertion_point(field_release:viam.app.v1.ConfigResponse.config) + + ::viam::app::v1::RobotConfig* temp = _impl_.config_; + _impl_.config_ = nullptr; + return temp; +} +inline ::viam::app::v1::RobotConfig* ConfigResponse::_internal_mutable_config() { + + if (_impl_.config_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::RobotConfig>(GetArenaForAllocation()); + _impl_.config_ = p; + } + return _impl_.config_; +} +inline ::viam::app::v1::RobotConfig* ConfigResponse::mutable_config() { + ::viam::app::v1::RobotConfig* _msg = _internal_mutable_config(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ConfigResponse.config) + return _msg; +} +inline void ConfigResponse::set_allocated_config(::viam::app::v1::RobotConfig* config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.config_; + } + if (config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(config); + if (message_arena != submessage_arena) { + config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, config, submessage_arena); + } + + } else { + + } + _impl_.config_ = config; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ConfigResponse.config) +} + +// ------------------------------------------------------------------- + +// CertificateRequest + +// string id = 1 [json_name = "id"]; +inline void CertificateRequest::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& CertificateRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CertificateRequest.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CertificateRequest::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CertificateRequest.id) +} +inline std::string* CertificateRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CertificateRequest.id) + return _s; +} +inline const std::string& CertificateRequest::_internal_id() const { + return _impl_.id_.Get(); +} +inline void CertificateRequest::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* CertificateRequest::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* CertificateRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.CertificateRequest.id) + return _impl_.id_.Release(); +} +inline void CertificateRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CertificateRequest.id) +} + +// ------------------------------------------------------------------- + +// CertificateResponse + +// string id = 1 [json_name = "id"]; +inline void CertificateResponse::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& CertificateResponse::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CertificateResponse.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CertificateResponse::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CertificateResponse.id) +} +inline std::string* CertificateResponse::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CertificateResponse.id) + return _s; +} +inline const std::string& CertificateResponse::_internal_id() const { + return _impl_.id_.Get(); +} +inline void CertificateResponse::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* CertificateResponse::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* CertificateResponse::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.CertificateResponse.id) + return _impl_.id_.Release(); +} +inline void CertificateResponse::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CertificateResponse.id) +} + +// string tls_certificate = 2 [json_name = "tlsCertificate"]; +inline void CertificateResponse::clear_tls_certificate() { + _impl_.tls_certificate_.ClearToEmpty(); +} +inline const std::string& CertificateResponse::tls_certificate() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CertificateResponse.tls_certificate) + return _internal_tls_certificate(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CertificateResponse::set_tls_certificate(ArgT0&& arg0, ArgT... args) { + + _impl_.tls_certificate_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CertificateResponse.tls_certificate) +} +inline std::string* CertificateResponse::mutable_tls_certificate() { + std::string* _s = _internal_mutable_tls_certificate(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CertificateResponse.tls_certificate) + return _s; +} +inline const std::string& CertificateResponse::_internal_tls_certificate() const { + return _impl_.tls_certificate_.Get(); +} +inline void CertificateResponse::_internal_set_tls_certificate(const std::string& value) { + + _impl_.tls_certificate_.Set(value, GetArenaForAllocation()); +} +inline std::string* CertificateResponse::_internal_mutable_tls_certificate() { + + return _impl_.tls_certificate_.Mutable(GetArenaForAllocation()); +} +inline std::string* CertificateResponse::release_tls_certificate() { + // @@protoc_insertion_point(field_release:viam.app.v1.CertificateResponse.tls_certificate) + return _impl_.tls_certificate_.Release(); +} +inline void CertificateResponse::set_allocated_tls_certificate(std::string* tls_certificate) { + if (tls_certificate != nullptr) { + + } else { + + } + _impl_.tls_certificate_.SetAllocated(tls_certificate, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.tls_certificate_.IsDefault()) { + _impl_.tls_certificate_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CertificateResponse.tls_certificate) +} + +// string tls_private_key = 3 [json_name = "tlsPrivateKey"]; +inline void CertificateResponse::clear_tls_private_key() { + _impl_.tls_private_key_.ClearToEmpty(); +} +inline const std::string& CertificateResponse::tls_private_key() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CertificateResponse.tls_private_key) + return _internal_tls_private_key(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CertificateResponse::set_tls_private_key(ArgT0&& arg0, ArgT... args) { + + _impl_.tls_private_key_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CertificateResponse.tls_private_key) +} +inline std::string* CertificateResponse::mutable_tls_private_key() { + std::string* _s = _internal_mutable_tls_private_key(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CertificateResponse.tls_private_key) + return _s; +} +inline const std::string& CertificateResponse::_internal_tls_private_key() const { + return _impl_.tls_private_key_.Get(); +} +inline void CertificateResponse::_internal_set_tls_private_key(const std::string& value) { + + _impl_.tls_private_key_.Set(value, GetArenaForAllocation()); +} +inline std::string* CertificateResponse::_internal_mutable_tls_private_key() { + + return _impl_.tls_private_key_.Mutable(GetArenaForAllocation()); +} +inline std::string* CertificateResponse::release_tls_private_key() { + // @@protoc_insertion_point(field_release:viam.app.v1.CertificateResponse.tls_private_key) + return _impl_.tls_private_key_.Release(); +} +inline void CertificateResponse::set_allocated_tls_private_key(std::string* tls_private_key) { + if (tls_private_key != nullptr) { + + } else { + + } + _impl_.tls_private_key_.SetAllocated(tls_private_key, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.tls_private_key_.IsDefault()) { + _impl_.tls_private_key_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CertificateResponse.tls_private_key) +} + +// ------------------------------------------------------------------- + +// LogRequest + +// string id = 1 [json_name = "id"]; +inline void LogRequest::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& LogRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.LogRequest.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void LogRequest::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.LogRequest.id) +} +inline std::string* LogRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.LogRequest.id) + return _s; +} +inline const std::string& LogRequest::_internal_id() const { + return _impl_.id_.Get(); +} +inline void LogRequest::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* LogRequest::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* LogRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.LogRequest.id) + return _impl_.id_.Release(); +} +inline void LogRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LogRequest.id) +} + +// repeated .viam.app.v1.LogEntry logs = 2 [json_name = "logs"]; +inline int LogRequest::_internal_logs_size() const { + return _impl_.logs_.size(); +} +inline int LogRequest::logs_size() const { + return _internal_logs_size(); +} +inline ::viam::app::v1::LogEntry* LogRequest::mutable_logs(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.LogRequest.logs) + return _impl_.logs_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >* +LogRequest::mutable_logs() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.LogRequest.logs) + return &_impl_.logs_; +} +inline const ::viam::app::v1::LogEntry& LogRequest::_internal_logs(int index) const { + return _impl_.logs_.Get(index); +} +inline const ::viam::app::v1::LogEntry& LogRequest::logs(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.LogRequest.logs) + return _internal_logs(index); +} +inline ::viam::app::v1::LogEntry* LogRequest::_internal_add_logs() { + return _impl_.logs_.Add(); +} +inline ::viam::app::v1::LogEntry* LogRequest::add_logs() { + ::viam::app::v1::LogEntry* _add = _internal_add_logs(); + // @@protoc_insertion_point(field_add:viam.app.v1.LogRequest.logs) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >& +LogRequest::logs() const { + // @@protoc_insertion_point(field_list:viam.app.v1.LogRequest.logs) + return _impl_.logs_; +} + +// ------------------------------------------------------------------- + +// LogResponse + +// ------------------------------------------------------------------- + +// NeedsRestartRequest + +// string id = 1 [json_name = "id"]; +inline void NeedsRestartRequest::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& NeedsRestartRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.NeedsRestartRequest.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NeedsRestartRequest::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.NeedsRestartRequest.id) +} +inline std::string* NeedsRestartRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.NeedsRestartRequest.id) + return _s; +} +inline const std::string& NeedsRestartRequest::_internal_id() const { + return _impl_.id_.Get(); +} +inline void NeedsRestartRequest::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* NeedsRestartRequest::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* NeedsRestartRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.NeedsRestartRequest.id) + return _impl_.id_.Release(); +} +inline void NeedsRestartRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NeedsRestartRequest.id) +} + +// ------------------------------------------------------------------- + +// NeedsRestartResponse + +// string id = 1 [json_name = "id"]; +inline void NeedsRestartResponse::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& NeedsRestartResponse::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.NeedsRestartResponse.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NeedsRestartResponse::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.NeedsRestartResponse.id) +} +inline std::string* NeedsRestartResponse::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.NeedsRestartResponse.id) + return _s; +} +inline const std::string& NeedsRestartResponse::_internal_id() const { + return _impl_.id_.Get(); +} +inline void NeedsRestartResponse::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* NeedsRestartResponse::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* NeedsRestartResponse::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.NeedsRestartResponse.id) + return _impl_.id_.Release(); +} +inline void NeedsRestartResponse::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NeedsRestartResponse.id) +} + +// bool must_restart = 2 [json_name = "mustRestart"]; +inline void NeedsRestartResponse::clear_must_restart() { + _impl_.must_restart_ = false; +} +inline bool NeedsRestartResponse::_internal_must_restart() const { + return _impl_.must_restart_; +} +inline bool NeedsRestartResponse::must_restart() const { + // @@protoc_insertion_point(field_get:viam.app.v1.NeedsRestartResponse.must_restart) + return _internal_must_restart(); +} +inline void NeedsRestartResponse::_internal_set_must_restart(bool value) { + + _impl_.must_restart_ = value; +} +inline void NeedsRestartResponse::set_must_restart(bool value) { + _internal_set_must_restart(value); + // @@protoc_insertion_point(field_set:viam.app.v1.NeedsRestartResponse.must_restart) +} + +// .google.protobuf.Duration restart_check_interval = 3 [json_name = "restartCheckInterval"]; +inline bool NeedsRestartResponse::_internal_has_restart_check_interval() const { + return this != internal_default_instance() && _impl_.restart_check_interval_ != nullptr; +} +inline bool NeedsRestartResponse::has_restart_check_interval() const { + return _internal_has_restart_check_interval(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& NeedsRestartResponse::_internal_restart_check_interval() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = _impl_.restart_check_interval_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& NeedsRestartResponse::restart_check_interval() const { + // @@protoc_insertion_point(field_get:viam.app.v1.NeedsRestartResponse.restart_check_interval) + return _internal_restart_check_interval(); +} +inline void NeedsRestartResponse::unsafe_arena_set_allocated_restart_check_interval( + ::PROTOBUF_NAMESPACE_ID::Duration* restart_check_interval) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.restart_check_interval_); + } + _impl_.restart_check_interval_ = restart_check_interval; + if (restart_check_interval) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.NeedsRestartResponse.restart_check_interval) +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* NeedsRestartResponse::release_restart_check_interval() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.restart_check_interval_; + _impl_.restart_check_interval_ = 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::Duration* NeedsRestartResponse::unsafe_arena_release_restart_check_interval() { + // @@protoc_insertion_point(field_release:viam.app.v1.NeedsRestartResponse.restart_check_interval) + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.restart_check_interval_; + _impl_.restart_check_interval_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* NeedsRestartResponse::_internal_mutable_restart_check_interval() { + + if (_impl_.restart_check_interval_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + _impl_.restart_check_interval_ = p; + } + return _impl_.restart_check_interval_; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* NeedsRestartResponse::mutable_restart_check_interval() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_restart_check_interval(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.NeedsRestartResponse.restart_check_interval) + return _msg; +} +inline void NeedsRestartResponse::set_allocated_restart_check_interval(::PROTOBUF_NAMESPACE_ID::Duration* restart_check_interval) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.restart_check_interval_); + } + if (restart_check_interval) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(restart_check_interval)); + if (message_arena != submessage_arena) { + restart_check_interval = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, restart_check_interval, submessage_arena); + } + + } else { + + } + _impl_.restart_check_interval_ = restart_check_interval; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NeedsRestartResponse.restart_check_interval) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace app +} // namespace viam + +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::viam::app::v1::CredentialsType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::viam::app::v1::CredentialsType>() { + return ::viam::app::v1::CredentialsType_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2frobot_2eproto diff --git a/src/gen/common/v1/common.grpc.pb.cc b/src/gen/common/v1/common.grpc.pb.cc new file mode 100644 index 000000000..11bc67538 --- /dev/null +++ b/src/gen/common/v1/common.grpc.pb.cc @@ -0,0 +1,29 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: common/v1/common.proto + +#include "common/v1/common.pb.h" +#include "common/v1/common.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace common { +namespace v1 { + +} // namespace viam +} // namespace common +} // namespace v1 + diff --git a/src/gen/common/v1/common.grpc.pb.h b/src/gen/common/v1/common.grpc.pb.h new file mode 100644 index 000000000..d44414c85 --- /dev/null +++ b/src/gen/common/v1/common.grpc.pb.h @@ -0,0 +1,39 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: common/v1/common.proto +// Original file comments: +// The following is a list of messages that are used across multiple resource subtypes +#ifndef GRPC_common_2fv1_2fcommon_2eproto__INCLUDED +#define GRPC_common_2fv1_2fcommon_2eproto__INCLUDED + +#include "common/v1/common.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace common { +namespace v1 { + +} // namespace v1 +} // namespace common +} // namespace viam + + +#endif // GRPC_common_2fv1_2fcommon_2eproto__INCLUDED diff --git a/src/gen/common/v1/common.pb.cc b/src/gen/common/v1/common.pb.cc new file mode 100644 index 000000000..b82a1f3c3 --- /dev/null +++ b/src/gen/common/v1/common.pb.cc @@ -0,0 +1,5086 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: common/v1/common.proto + +#include "common/v1/common.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 common { +namespace v1 { +PROTOBUF_CONSTEXPR ResourceName::ResourceName( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.namespace__)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.subtype_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ResourceNameDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResourceNameDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResourceNameDefaultTypeInternal() {} + union { + ResourceName _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceNameDefaultTypeInternal _ResourceName_default_instance_; +PROTOBUF_CONSTEXPR BoardStatus_AnalogsEntry_DoNotUse::BoardStatus_AnalogsEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct BoardStatus_AnalogsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR BoardStatus_AnalogsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~BoardStatus_AnalogsEntry_DoNotUseDefaultTypeInternal() {} + union { + BoardStatus_AnalogsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BoardStatus_AnalogsEntry_DoNotUseDefaultTypeInternal _BoardStatus_AnalogsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR BoardStatus_DigitalInterruptsEntry_DoNotUse::BoardStatus_DigitalInterruptsEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct BoardStatus_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR BoardStatus_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~BoardStatus_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal() {} + union { + BoardStatus_DigitalInterruptsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BoardStatus_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal _BoardStatus_DigitalInterruptsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR BoardStatus::BoardStatus( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.analogs_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.digital_interrupts_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct BoardStatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR BoardStatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~BoardStatusDefaultTypeInternal() {} + union { + BoardStatus _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BoardStatusDefaultTypeInternal _BoardStatus_default_instance_; +PROTOBUF_CONSTEXPR AnalogStatus::AnalogStatus( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.value_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct AnalogStatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR AnalogStatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AnalogStatusDefaultTypeInternal() {} + union { + AnalogStatus _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnalogStatusDefaultTypeInternal _AnalogStatus_default_instance_; +PROTOBUF_CONSTEXPR DigitalInterruptStatus::DigitalInterruptStatus( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.value_)*/int64_t{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DigitalInterruptStatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR DigitalInterruptStatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DigitalInterruptStatusDefaultTypeInternal() {} + union { + DigitalInterruptStatus _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DigitalInterruptStatusDefaultTypeInternal _DigitalInterruptStatus_default_instance_; +PROTOBUF_CONSTEXPR Pose::Pose( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.x_)*/0 + , /*decltype(_impl_.y_)*/0 + , /*decltype(_impl_.z_)*/0 + , /*decltype(_impl_.o_x_)*/0 + , /*decltype(_impl_.o_y_)*/0 + , /*decltype(_impl_.o_z_)*/0 + , /*decltype(_impl_.theta_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct PoseDefaultTypeInternal { + PROTOBUF_CONSTEXPR PoseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PoseDefaultTypeInternal() {} + union { + Pose _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PoseDefaultTypeInternal _Pose_default_instance_; +PROTOBUF_CONSTEXPR Orientation::Orientation( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.o_x_)*/0 + , /*decltype(_impl_.o_y_)*/0 + , /*decltype(_impl_.o_z_)*/0 + , /*decltype(_impl_.theta_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct OrientationDefaultTypeInternal { + PROTOBUF_CONSTEXPR OrientationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OrientationDefaultTypeInternal() {} + union { + Orientation _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrientationDefaultTypeInternal _Orientation_default_instance_; +PROTOBUF_CONSTEXPR PoseInFrame::PoseInFrame( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.reference_frame_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.pose_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct PoseInFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR PoseInFrameDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PoseInFrameDefaultTypeInternal() {} + union { + PoseInFrame _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PoseInFrameDefaultTypeInternal _PoseInFrame_default_instance_; +PROTOBUF_CONSTEXPR Vector3::Vector3( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.x_)*/0 + , /*decltype(_impl_.y_)*/0 + , /*decltype(_impl_.z_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Vector3DefaultTypeInternal { + PROTOBUF_CONSTEXPR Vector3DefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Vector3DefaultTypeInternal() {} + union { + Vector3 _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Vector3DefaultTypeInternal _Vector3_default_instance_; +PROTOBUF_CONSTEXPR Sphere::Sphere( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.radius_mm_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SphereDefaultTypeInternal { + PROTOBUF_CONSTEXPR SphereDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SphereDefaultTypeInternal() {} + union { + Sphere _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SphereDefaultTypeInternal _Sphere_default_instance_; +PROTOBUF_CONSTEXPR RectangularPrism::RectangularPrism( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.dims_mm_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RectangularPrismDefaultTypeInternal { + PROTOBUF_CONSTEXPR RectangularPrismDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RectangularPrismDefaultTypeInternal() {} + union { + RectangularPrism _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RectangularPrismDefaultTypeInternal _RectangularPrism_default_instance_; +PROTOBUF_CONSTEXPR Geometry::Geometry( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.label_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.center_)*/nullptr + , /*decltype(_impl_.geometry_type_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct GeometryDefaultTypeInternal { + PROTOBUF_CONSTEXPR GeometryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GeometryDefaultTypeInternal() {} + union { + Geometry _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GeometryDefaultTypeInternal _Geometry_default_instance_; +PROTOBUF_CONSTEXPR GeometriesInFrame::GeometriesInFrame( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.geometries_)*/{} + , /*decltype(_impl_.reference_frame_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GeometriesInFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR GeometriesInFrameDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GeometriesInFrameDefaultTypeInternal() {} + union { + GeometriesInFrame _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GeometriesInFrameDefaultTypeInternal _GeometriesInFrame_default_instance_; +PROTOBUF_CONSTEXPR PointCloudObject::PointCloudObject( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.point_cloud_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.geometries_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct PointCloudObjectDefaultTypeInternal { + PROTOBUF_CONSTEXPR PointCloudObjectDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PointCloudObjectDefaultTypeInternal() {} + union { + PointCloudObject _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PointCloudObjectDefaultTypeInternal _PointCloudObject_default_instance_; +PROTOBUF_CONSTEXPR GeoPoint::GeoPoint( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.latitude_)*/0 + , /*decltype(_impl_.longitude_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GeoPointDefaultTypeInternal { + PROTOBUF_CONSTEXPR GeoPointDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GeoPointDefaultTypeInternal() {} + union { + GeoPoint _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GeoPointDefaultTypeInternal _GeoPoint_default_instance_; +PROTOBUF_CONSTEXPR Transform::Transform( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.reference_frame_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.pose_in_observer_frame_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct TransformDefaultTypeInternal { + PROTOBUF_CONSTEXPR TransformDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TransformDefaultTypeInternal() {} + union { + Transform _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransformDefaultTypeInternal _Transform_default_instance_; +PROTOBUF_CONSTEXPR WorldState::WorldState( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.obstacles_)*/{} + , /*decltype(_impl_.interaction_spaces_)*/{} + , /*decltype(_impl_.transforms_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct WorldStateDefaultTypeInternal { + PROTOBUF_CONSTEXPR WorldStateDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~WorldStateDefaultTypeInternal() {} + union { + WorldState _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WorldStateDefaultTypeInternal _WorldState_default_instance_; +PROTOBUF_CONSTEXPR ActuatorStatus::ActuatorStatus( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.is_moving_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ActuatorStatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR ActuatorStatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ActuatorStatusDefaultTypeInternal() {} + union { + ActuatorStatus _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ActuatorStatusDefaultTypeInternal _ActuatorStatus_default_instance_; +} // namespace v1 +} // namespace common +} // namespace viam +static ::_pb::Metadata file_level_metadata_common_2fv1_2fcommon_2eproto[19]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_common_2fv1_2fcommon_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_common_2fv1_2fcommon_2eproto = nullptr; + +const uint32_t TableStruct_common_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, _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::ResourceName, _impl_.namespace__), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, _impl_.subtype_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::BoardStatus_AnalogsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::BoardStatus_AnalogsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::BoardStatus_AnalogsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::BoardStatus_AnalogsEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::viam::common::v1::BoardStatus_DigitalInterruptsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::BoardStatus_DigitalInterruptsEntry_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::BoardStatus_DigitalInterruptsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::BoardStatus_DigitalInterruptsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::BoardStatus, _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::BoardStatus, _impl_.analogs_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::BoardStatus, _impl_.digital_interrupts_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::AnalogStatus, _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::AnalogStatus, _impl_.value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::DigitalInterruptStatus, _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::DigitalInterruptStatus, _impl_.value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, _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::Pose, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, _impl_.z_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, _impl_.o_x_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, _impl_.o_y_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, _impl_.o_z_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, _impl_.theta_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Orientation, _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::Orientation, _impl_.o_x_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Orientation, _impl_.o_y_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Orientation, _impl_.o_z_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Orientation, _impl_.theta_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::PoseInFrame, _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::PoseInFrame, _impl_.reference_frame_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::PoseInFrame, _impl_.pose_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Vector3, _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::Vector3, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Vector3, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Vector3, _impl_.z_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Sphere, _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::Sphere, _impl_.radius_mm_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::RectangularPrism, _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::RectangularPrism, _impl_.dims_mm_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Geometry, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Geometry, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Geometry, _impl_.center_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Geometry, _impl_.label_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Geometry, _impl_.geometry_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GeometriesInFrame, _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::GeometriesInFrame, _impl_.reference_frame_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GeometriesInFrame, _impl_.geometries_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::PointCloudObject, _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::PointCloudObject, _impl_.point_cloud_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::PointCloudObject, _impl_.geometries_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GeoPoint, _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::GeoPoint, _impl_.latitude_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GeoPoint, _impl_.longitude_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Transform, _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::Transform, _impl_.reference_frame_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Transform, _impl_.pose_in_observer_frame_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::WorldState, _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::WorldState, _impl_.obstacles_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::WorldState, _impl_.interaction_spaces_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::WorldState, _impl_.transforms_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::ActuatorStatus, _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::ActuatorStatus, _impl_.is_moving_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::common::v1::ResourceName)}, + { 10, 18, -1, sizeof(::viam::common::v1::BoardStatus_AnalogsEntry_DoNotUse)}, + { 20, 28, -1, sizeof(::viam::common::v1::BoardStatus_DigitalInterruptsEntry_DoNotUse)}, + { 30, -1, -1, sizeof(::viam::common::v1::BoardStatus)}, + { 38, -1, -1, sizeof(::viam::common::v1::AnalogStatus)}, + { 45, -1, -1, sizeof(::viam::common::v1::DigitalInterruptStatus)}, + { 52, -1, -1, sizeof(::viam::common::v1::Pose)}, + { 65, -1, -1, sizeof(::viam::common::v1::Orientation)}, + { 75, -1, -1, sizeof(::viam::common::v1::PoseInFrame)}, + { 83, -1, -1, sizeof(::viam::common::v1::Vector3)}, + { 92, -1, -1, sizeof(::viam::common::v1::Sphere)}, + { 99, -1, -1, sizeof(::viam::common::v1::RectangularPrism)}, + { 106, -1, -1, sizeof(::viam::common::v1::Geometry)}, + { 117, -1, -1, sizeof(::viam::common::v1::GeometriesInFrame)}, + { 125, -1, -1, sizeof(::viam::common::v1::PointCloudObject)}, + { 133, -1, -1, sizeof(::viam::common::v1::GeoPoint)}, + { 141, -1, -1, sizeof(::viam::common::v1::Transform)}, + { 149, -1, -1, sizeof(::viam::common::v1::WorldState)}, + { 158, -1, -1, sizeof(::viam::common::v1::ActuatorStatus)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::common::v1::_ResourceName_default_instance_._instance, + &::viam::common::v1::_BoardStatus_AnalogsEntry_DoNotUse_default_instance_._instance, + &::viam::common::v1::_BoardStatus_DigitalInterruptsEntry_DoNotUse_default_instance_._instance, + &::viam::common::v1::_BoardStatus_default_instance_._instance, + &::viam::common::v1::_AnalogStatus_default_instance_._instance, + &::viam::common::v1::_DigitalInterruptStatus_default_instance_._instance, + &::viam::common::v1::_Pose_default_instance_._instance, + &::viam::common::v1::_Orientation_default_instance_._instance, + &::viam::common::v1::_PoseInFrame_default_instance_._instance, + &::viam::common::v1::_Vector3_default_instance_._instance, + &::viam::common::v1::_Sphere_default_instance_._instance, + &::viam::common::v1::_RectangularPrism_default_instance_._instance, + &::viam::common::v1::_Geometry_default_instance_._instance, + &::viam::common::v1::_GeometriesInFrame_default_instance_._instance, + &::viam::common::v1::_PointCloudObject_default_instance_._instance, + &::viam::common::v1::_GeoPoint_default_instance_._instance, + &::viam::common::v1::_Transform_default_instance_._instance, + &::viam::common::v1::_WorldState_default_instance_._instance, + &::viam::common::v1::_ActuatorStatus_default_instance_._instance, +}; + +const char descriptor_table_protodef_common_2fv1_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\026common/v1/common.proto\022\016viam.common.v1" + "\"n\n\014ResourceName\022\034\n\tnamespace\030\001 \001(\tR\tnam" + "espace\022\022\n\004type\030\002 \001(\tR\004type\022\030\n\007subtype\030\003 " + "\001(\tR\007subtype\022\022\n\004name\030\004 \001(\tR\004name\"\374\002\n\013Boa" + "rdStatus\022B\n\007analogs\030\001 \003(\0132(.viam.common." + "v1.BoardStatus.AnalogsEntryR\007analogs\022a\n\022" + "digital_interrupts\030\002 \003(\01322.viam.common.v" + "1.BoardStatus.DigitalInterruptsEntryR\021di" + "gitalInterrupts\032X\n\014AnalogsEntry\022\020\n\003key\030\001" + " \001(\tR\003key\0222\n\005value\030\002 \001(\0132\034.viam.common.v" + "1.AnalogStatusR\005value:\0028\001\032l\n\026DigitalInte" + "rruptsEntry\022\020\n\003key\030\001 \001(\tR\003key\022<\n\005value\030\002" + " \001(\0132&.viam.common.v1.DigitalInterruptSt" + "atusR\005value:\0028\001\"$\n\014AnalogStatus\022\024\n\005value" + "\030\001 \001(\005R\005value\".\n\026DigitalInterruptStatus\022" + "\024\n\005value\030\001 \001(\003R\005value\"y\n\004Pose\022\014\n\001x\030\001 \001(\001" + "R\001x\022\014\n\001y\030\002 \001(\001R\001y\022\014\n\001z\030\003 \001(\001R\001z\022\017\n\003o_x\030\004" + " \001(\001R\002oX\022\017\n\003o_y\030\005 \001(\001R\002oY\022\017\n\003o_z\030\006 \001(\001R\002" + "oZ\022\024\n\005theta\030\007 \001(\001R\005theta\"V\n\013Orientation\022" + "\017\n\003o_x\030\001 \001(\001R\002oX\022\017\n\003o_y\030\002 \001(\001R\002oY\022\017\n\003o_z" + "\030\003 \001(\001R\002oZ\022\024\n\005theta\030\004 \001(\001R\005theta\"`\n\013Pose" + "InFrame\022\'\n\017reference_frame\030\001 \001(\tR\016refere" + "nceFrame\022(\n\004pose\030\002 \001(\0132\024.viam.common.v1." + "PoseR\004pose\"3\n\007Vector3\022\014\n\001x\030\001 \001(\001R\001x\022\014\n\001y" + "\030\002 \001(\001R\001y\022\014\n\001z\030\003 \001(\001R\001z\"%\n\006Sphere\022\033\n\trad" + "ius_mm\030\001 \001(\001R\010radiusMm\"D\n\020RectangularPri" + "sm\0220\n\007dims_mm\030\001 \001(\0132\027.viam.common.v1.Vec" + "tor3R\006dimsMm\"\307\001\n\010Geometry\022,\n\006center\030\001 \001(" + "\0132\024.viam.common.v1.PoseR\006center\0220\n\006spher" + "e\030\002 \001(\0132\026.viam.common.v1.SphereH\000R\006spher" + "e\0224\n\003box\030\003 \001(\0132 .viam.common.v1.Rectangu" + "larPrismH\000R\003box\022\024\n\005label\030\004 \001(\tR\005labelB\017\n" + "\rgeometry_type\"v\n\021GeometriesInFrame\022\'\n\017r" + "eference_frame\030\001 \001(\tR\016referenceFrame\0228\n\n" + "geometries\030\002 \003(\0132\030.viam.common.v1.Geomet" + "ryR\ngeometries\"v\n\020PointCloudObject\022\037\n\013po" + "int_cloud\030\001 \001(\014R\npointCloud\022A\n\ngeometrie" + "s\030\002 \001(\0132!.viam.common.v1.GeometriesInFra" + "meR\ngeometries\"D\n\010GeoPoint\022\032\n\010latitude\030\001" + " \001(\001R\010latitude\022\034\n\tlongitude\030\002 \001(\001R\tlongi" + "tude\"\206\001\n\tTransform\022\'\n\017reference_frame\030\001 " + "\001(\tR\016referenceFrame\022P\n\026pose_in_observer_" + "frame\030\002 \001(\0132\033.viam.common.v1.PoseInFrame" + "R\023poseInObserverFrame\"\332\001\n\nWorldState\022\?\n\t" + "obstacles\030\001 \003(\0132!.viam.common.v1.Geometr" + "iesInFrameR\tobstacles\022P\n\022interaction_spa" + "ces\030\002 \003(\0132!.viam.common.v1.GeometriesInF" + "rameR\021interactionSpaces\0229\n\ntransforms\030\003 " + "\003(\0132\031.viam.common.v1.TransformR\ntransfor" + "ms\"-\n\016ActuatorStatus\022\033\n\tis_moving\030\001 \001(\010R" + "\010isMovingB/\n\022com.viam.common.v1Z\031go.viam" + ".com/api/common/v1b\006proto3" + ; +static ::_pbi::once_flag descriptor_table_common_2fv1_2fcommon_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_common_2fv1_2fcommon_2eproto = { + false, false, 2066, descriptor_table_protodef_common_2fv1_2fcommon_2eproto, + "common/v1/common.proto", + &descriptor_table_common_2fv1_2fcommon_2eproto_once, nullptr, 0, 19, + 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, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_common_2fv1_2fcommon_2eproto_getter() { + return &descriptor_table_common_2fv1_2fcommon_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_common_2fv1_2fcommon_2eproto(&descriptor_table_common_2fv1_2fcommon_2eproto); +namespace viam { +namespace common { +namespace v1 { + +// =================================================================== + +class ResourceName::_Internal { + public: +}; + +ResourceName::ResourceName(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.common.v1.ResourceName) +} +ResourceName::ResourceName(const ResourceName& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ResourceName* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.namespace__){} + , decltype(_impl_.type_){} + , decltype(_impl_.subtype_){} + , decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.namespace__.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.namespace__.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_namespace_().empty()) { + _this->_impl_.namespace__.Set(from._internal_namespace_(), + _this->GetArenaForAllocation()); + } + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_type().empty()) { + _this->_impl_.type_.Set(from._internal_type(), + _this->GetArenaForAllocation()); + } + _impl_.subtype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.subtype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_subtype().empty()) { + _this->_impl_.subtype_.Set(from._internal_subtype(), + _this->GetArenaForAllocation()); + } + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.common.v1.ResourceName) +} + +inline void ResourceName::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.namespace__){} + , decltype(_impl_.type_){} + , decltype(_impl_.subtype_){} + , decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.namespace__.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.namespace__.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.subtype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.subtype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ResourceName::~ResourceName() { + // @@protoc_insertion_point(destructor:viam.common.v1.ResourceName) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ResourceName::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.namespace__.Destroy(); + _impl_.type_.Destroy(); + _impl_.subtype_.Destroy(); + _impl_.name_.Destroy(); +} + +void ResourceName::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ResourceName::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.ResourceName) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.namespace__.ClearToEmpty(); + _impl_.type_.ClearToEmpty(); + _impl_.subtype_.ClearToEmpty(); + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResourceName::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string namespace = 1 [json_name = "namespace"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_namespace_(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.ResourceName.namespace")); + } else + goto handle_unusual; + continue; + // string type = 2 [json_name = "type"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.ResourceName.type")); + } else + goto handle_unusual; + continue; + // string subtype = 3 [json_name = "subtype"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_subtype(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.ResourceName.subtype")); + } else + goto handle_unusual; + continue; + // string name = 4 [json_name = "name"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.ResourceName.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ResourceName::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.ResourceName) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string namespace = 1 [json_name = "namespace"]; + if (!this->_internal_namespace_().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_namespace_().data(), static_cast(this->_internal_namespace_().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.ResourceName.namespace"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_namespace_(), target); + } + + // string type = 2 [json_name = "type"]; + if (!this->_internal_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.ResourceName.type"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_type(), target); + } + + // string subtype = 3 [json_name = "subtype"]; + if (!this->_internal_subtype().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_subtype().data(), static_cast(this->_internal_subtype().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.ResourceName.subtype"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_subtype(), target); + } + + // string name = 4 [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.ResourceName.name"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.common.v1.ResourceName) + return target; +} + +size_t ResourceName::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.ResourceName) + 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 namespace = 1 [json_name = "namespace"]; + if (!this->_internal_namespace_().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_namespace_()); + } + + // string type = 2 [json_name = "type"]; + if (!this->_internal_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); + } + + // string subtype = 3 [json_name = "subtype"]; + if (!this->_internal_subtype().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_subtype()); + } + + // string name = 4 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceName::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ResourceName::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceName::GetClassData() const { return &_class_data_; } + + +void ResourceName::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.ResourceName) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_namespace_().empty()) { + _this->_internal_set_namespace_(from._internal_namespace_()); + } + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } + if (!from._internal_subtype().empty()) { + _this->_internal_set_subtype(from._internal_subtype()); + } + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ResourceName::CopyFrom(const ResourceName& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.ResourceName) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResourceName::IsInitialized() const { + return true; +} + +void ResourceName::InternalSwap(ResourceName* 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( + &_impl_.namespace__, lhs_arena, + &other->_impl_.namespace__, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.type_, lhs_arena, + &other->_impl_.type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.subtype_, lhs_arena, + &other->_impl_.subtype_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ResourceName::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[0]); +} + +// =================================================================== + +BoardStatus_AnalogsEntry_DoNotUse::BoardStatus_AnalogsEntry_DoNotUse() {} +BoardStatus_AnalogsEntry_DoNotUse::BoardStatus_AnalogsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void BoardStatus_AnalogsEntry_DoNotUse::MergeFrom(const BoardStatus_AnalogsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata BoardStatus_AnalogsEntry_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[1]); +} + +// =================================================================== + +BoardStatus_DigitalInterruptsEntry_DoNotUse::BoardStatus_DigitalInterruptsEntry_DoNotUse() {} +BoardStatus_DigitalInterruptsEntry_DoNotUse::BoardStatus_DigitalInterruptsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void BoardStatus_DigitalInterruptsEntry_DoNotUse::MergeFrom(const BoardStatus_DigitalInterruptsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata BoardStatus_DigitalInterruptsEntry_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[2]); +} + +// =================================================================== + +class BoardStatus::_Internal { + public: +}; + +BoardStatus::BoardStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &BoardStatus::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:viam.common.v1.BoardStatus) +} +BoardStatus::BoardStatus(const BoardStatus& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + BoardStatus* const _this = this; (void)_this; + new (&_impl_) Impl_{ + /*decltype(_impl_.analogs_)*/{} + , /*decltype(_impl_.digital_interrupts_)*/{} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.analogs_.MergeFrom(from._impl_.analogs_); + _this->_impl_.digital_interrupts_.MergeFrom(from._impl_.digital_interrupts_); + // @@protoc_insertion_point(copy_constructor:viam.common.v1.BoardStatus) +} + +inline void BoardStatus::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + /*decltype(_impl_.analogs_)*/{::_pbi::ArenaInitialized(), arena} + , /*decltype(_impl_.digital_interrupts_)*/{::_pbi::ArenaInitialized(), arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +BoardStatus::~BoardStatus() { + // @@protoc_insertion_point(destructor:viam.common.v1.BoardStatus) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void BoardStatus::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.analogs_.Destruct(); + _impl_.analogs_.~MapField(); + _impl_.digital_interrupts_.Destruct(); + _impl_.digital_interrupts_.~MapField(); +} + +void BoardStatus::ArenaDtor(void* object) { + BoardStatus* _this = reinterpret_cast< BoardStatus* >(object); + _this->_impl_.analogs_.Destruct(); + _this->_impl_.digital_interrupts_.Destruct(); +} +void BoardStatus::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void BoardStatus::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.BoardStatus) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.analogs_.Clear(); + _impl_.digital_interrupts_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* BoardStatus::_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 analogs = 1 [json_name = "analogs"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.analogs_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // map digital_interrupts = 2 [json_name = "digitalInterrupts"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.digital_interrupts_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* BoardStatus::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.BoardStatus) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // map analogs = 1 [json_name = "analogs"]; + if (!this->_internal_analogs().empty()) { + using MapType = ::_pb::Map; + using WireHelper = BoardStatus_AnalogsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_analogs(); + 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.BoardStatus.AnalogsEntry.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); + } + } + } + + // map digital_interrupts = 2 [json_name = "digitalInterrupts"]; + if (!this->_internal_digital_interrupts().empty()) { + using MapType = ::_pb::Map; + using WireHelper = BoardStatus_DigitalInterruptsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_digital_interrupts(); + 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.BoardStatus.DigitalInterruptsEntry.key"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(2, 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.BoardStatus) + return target; +} + +size_t BoardStatus::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.BoardStatus) + 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 analogs = 1 [json_name = "analogs"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_analogs_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::AnalogStatus >::const_iterator + it = this->_internal_analogs().begin(); + it != this->_internal_analogs().end(); ++it) { + total_size += BoardStatus_AnalogsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // map digital_interrupts = 2 [json_name = "digitalInterrupts"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_digital_interrupts_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::DigitalInterruptStatus >::const_iterator + it = this->_internal_digital_interrupts().begin(); + it != this->_internal_digital_interrupts().end(); ++it) { + total_size += BoardStatus_DigitalInterruptsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BoardStatus::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + BoardStatus::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BoardStatus::GetClassData() const { return &_class_data_; } + + +void BoardStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.BoardStatus) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.analogs_.MergeFrom(from._impl_.analogs_); + _this->_impl_.digital_interrupts_.MergeFrom(from._impl_.digital_interrupts_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void BoardStatus::CopyFrom(const BoardStatus& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.BoardStatus) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BoardStatus::IsInitialized() const { + return true; +} + +void BoardStatus::InternalSwap(BoardStatus* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.analogs_.InternalSwap(&other->_impl_.analogs_); + _impl_.digital_interrupts_.InternalSwap(&other->_impl_.digital_interrupts_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata BoardStatus::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[3]); +} + +// =================================================================== + +class AnalogStatus::_Internal { + public: +}; + +AnalogStatus::AnalogStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.common.v1.AnalogStatus) +} +AnalogStatus::AnalogStatus(const AnalogStatus& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + AnalogStatus* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.value_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.value_ = from._impl_.value_; + // @@protoc_insertion_point(copy_constructor:viam.common.v1.AnalogStatus) +} + +inline void AnalogStatus::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.value_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +AnalogStatus::~AnalogStatus() { + // @@protoc_insertion_point(destructor:viam.common.v1.AnalogStatus) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void AnalogStatus::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void AnalogStatus::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void AnalogStatus::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.AnalogStatus) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.value_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AnalogStatus::_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) { + // int32 value = 1 [json_name = "value"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* AnalogStatus::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.AnalogStatus) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int32 value = 1 [json_name = "value"]; + if (this->_internal_value() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_value(), 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.common.v1.AnalogStatus) + return target; +} + +size_t AnalogStatus::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.AnalogStatus) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int32 value = 1 [json_name = "value"]; + if (this->_internal_value() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_value()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AnalogStatus::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AnalogStatus::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AnalogStatus::GetClassData() const { return &_class_data_; } + + +void AnalogStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.AnalogStatus) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_value() != 0) { + _this->_internal_set_value(from._internal_value()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AnalogStatus::CopyFrom(const AnalogStatus& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.AnalogStatus) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AnalogStatus::IsInitialized() const { + return true; +} + +void AnalogStatus::InternalSwap(AnalogStatus* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.value_, other->_impl_.value_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AnalogStatus::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[4]); +} + +// =================================================================== + +class DigitalInterruptStatus::_Internal { + public: +}; + +DigitalInterruptStatus::DigitalInterruptStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.common.v1.DigitalInterruptStatus) +} +DigitalInterruptStatus::DigitalInterruptStatus(const DigitalInterruptStatus& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DigitalInterruptStatus* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.value_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.value_ = from._impl_.value_; + // @@protoc_insertion_point(copy_constructor:viam.common.v1.DigitalInterruptStatus) +} + +inline void DigitalInterruptStatus::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.value_){int64_t{0}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +DigitalInterruptStatus::~DigitalInterruptStatus() { + // @@protoc_insertion_point(destructor:viam.common.v1.DigitalInterruptStatus) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DigitalInterruptStatus::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void DigitalInterruptStatus::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DigitalInterruptStatus::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.DigitalInterruptStatus) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.value_ = int64_t{0}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DigitalInterruptStatus::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int64 value = 1 [json_name = "value"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* DigitalInterruptStatus::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.DigitalInterruptStatus) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int64 value = 1 [json_name = "value"]; + if (this->_internal_value() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_value(), 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.common.v1.DigitalInterruptStatus) + return target; +} + +size_t DigitalInterruptStatus::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.DigitalInterruptStatus) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 value = 1 [json_name = "value"]; + if (this->_internal_value() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_value()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DigitalInterruptStatus::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DigitalInterruptStatus::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DigitalInterruptStatus::GetClassData() const { return &_class_data_; } + + +void DigitalInterruptStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.DigitalInterruptStatus) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_value() != 0) { + _this->_internal_set_value(from._internal_value()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DigitalInterruptStatus::CopyFrom(const DigitalInterruptStatus& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.DigitalInterruptStatus) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DigitalInterruptStatus::IsInitialized() const { + return true; +} + +void DigitalInterruptStatus::InternalSwap(DigitalInterruptStatus* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.value_, other->_impl_.value_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DigitalInterruptStatus::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[5]); +} + +// =================================================================== + +class Pose::_Internal { + public: +}; + +Pose::Pose(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.common.v1.Pose) +} +Pose::Pose(const Pose& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Pose* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.x_){} + , decltype(_impl_.y_){} + , decltype(_impl_.z_){} + , decltype(_impl_.o_x_){} + , decltype(_impl_.o_y_){} + , decltype(_impl_.o_z_){} + , decltype(_impl_.theta_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.x_, &from._impl_.x_, + static_cast(reinterpret_cast(&_impl_.theta_) - + reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.theta_)); + // @@protoc_insertion_point(copy_constructor:viam.common.v1.Pose) +} + +inline void Pose::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.x_){0} + , decltype(_impl_.y_){0} + , decltype(_impl_.z_){0} + , decltype(_impl_.o_x_){0} + , decltype(_impl_.o_y_){0} + , decltype(_impl_.o_z_){0} + , decltype(_impl_.theta_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Pose::~Pose() { + // @@protoc_insertion_point(destructor:viam.common.v1.Pose) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Pose::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Pose::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Pose::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.Pose) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.x_, 0, static_cast( + reinterpret_cast(&_impl_.theta_) - + reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.theta_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Pose::_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) { + // double x = 1 [json_name = "x"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double y = 2 [json_name = "y"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double z = 3 [json_name = "z"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + _impl_.z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double o_x = 4 [json_name = "oX"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { + _impl_.o_x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double o_y = 5 [json_name = "oY"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 41)) { + _impl_.o_y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double o_z = 6 [json_name = "oZ"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 49)) { + _impl_.o_z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double theta = 7 [json_name = "theta"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 57)) { + _impl_.theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* Pose::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.Pose) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // double x = 1 [json_name = "x"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_x = this->_internal_x(); + uint64_t raw_x; + memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); + if (raw_x != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_x(), target); + } + + // double y = 2 [json_name = "y"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_y = this->_internal_y(); + uint64_t raw_y; + memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); + if (raw_y != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_y(), target); + } + + // double z = 3 [json_name = "z"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_z = this->_internal_z(); + uint64_t raw_z; + memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); + if (raw_z != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_z(), target); + } + + // double o_x = 4 [json_name = "oX"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_o_x = this->_internal_o_x(); + uint64_t raw_o_x; + memcpy(&raw_o_x, &tmp_o_x, sizeof(tmp_o_x)); + if (raw_o_x != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_o_x(), target); + } + + // double o_y = 5 [json_name = "oY"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_o_y = this->_internal_o_y(); + uint64_t raw_o_y; + memcpy(&raw_o_y, &tmp_o_y, sizeof(tmp_o_y)); + if (raw_o_y != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_o_y(), target); + } + + // double o_z = 6 [json_name = "oZ"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_o_z = this->_internal_o_z(); + uint64_t raw_o_z; + memcpy(&raw_o_z, &tmp_o_z, sizeof(tmp_o_z)); + if (raw_o_z != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_o_z(), target); + } + + // double theta = 7 [json_name = "theta"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_theta = this->_internal_theta(); + uint64_t raw_theta; + memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); + if (raw_theta != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(7, this->_internal_theta(), 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.common.v1.Pose) + return target; +} + +size_t Pose::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.Pose) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // double x = 1 [json_name = "x"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_x = this->_internal_x(); + uint64_t raw_x; + memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); + if (raw_x != 0) { + total_size += 1 + 8; + } + + // double y = 2 [json_name = "y"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_y = this->_internal_y(); + uint64_t raw_y; + memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); + if (raw_y != 0) { + total_size += 1 + 8; + } + + // double z = 3 [json_name = "z"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_z = this->_internal_z(); + uint64_t raw_z; + memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); + if (raw_z != 0) { + total_size += 1 + 8; + } + + // double o_x = 4 [json_name = "oX"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_o_x = this->_internal_o_x(); + uint64_t raw_o_x; + memcpy(&raw_o_x, &tmp_o_x, sizeof(tmp_o_x)); + if (raw_o_x != 0) { + total_size += 1 + 8; + } + + // double o_y = 5 [json_name = "oY"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_o_y = this->_internal_o_y(); + uint64_t raw_o_y; + memcpy(&raw_o_y, &tmp_o_y, sizeof(tmp_o_y)); + if (raw_o_y != 0) { + total_size += 1 + 8; + } + + // double o_z = 6 [json_name = "oZ"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_o_z = this->_internal_o_z(); + uint64_t raw_o_z; + memcpy(&raw_o_z, &tmp_o_z, sizeof(tmp_o_z)); + if (raw_o_z != 0) { + total_size += 1 + 8; + } + + // double theta = 7 [json_name = "theta"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_theta = this->_internal_theta(); + uint64_t raw_theta; + memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); + if (raw_theta != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Pose::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Pose::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Pose::GetClassData() const { return &_class_data_; } + + +void Pose::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Pose) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_x = from._internal_x(); + uint64_t raw_x; + memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); + if (raw_x != 0) { + _this->_internal_set_x(from._internal_x()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_y = from._internal_y(); + uint64_t raw_y; + memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); + if (raw_y != 0) { + _this->_internal_set_y(from._internal_y()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_z = from._internal_z(); + uint64_t raw_z; + memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); + if (raw_z != 0) { + _this->_internal_set_z(from._internal_z()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_o_x = from._internal_o_x(); + uint64_t raw_o_x; + memcpy(&raw_o_x, &tmp_o_x, sizeof(tmp_o_x)); + if (raw_o_x != 0) { + _this->_internal_set_o_x(from._internal_o_x()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_o_y = from._internal_o_y(); + uint64_t raw_o_y; + memcpy(&raw_o_y, &tmp_o_y, sizeof(tmp_o_y)); + if (raw_o_y != 0) { + _this->_internal_set_o_y(from._internal_o_y()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_o_z = from._internal_o_z(); + uint64_t raw_o_z; + memcpy(&raw_o_z, &tmp_o_z, sizeof(tmp_o_z)); + if (raw_o_z != 0) { + _this->_internal_set_o_z(from._internal_o_z()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_theta = from._internal_theta(); + uint64_t raw_theta; + memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); + if (raw_theta != 0) { + _this->_internal_set_theta(from._internal_theta()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Pose::CopyFrom(const Pose& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.Pose) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Pose::IsInitialized() const { + return true; +} + +void Pose::InternalSwap(Pose* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Pose, _impl_.theta_) + + sizeof(Pose::_impl_.theta_) + - PROTOBUF_FIELD_OFFSET(Pose, _impl_.x_)>( + reinterpret_cast(&_impl_.x_), + reinterpret_cast(&other->_impl_.x_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Pose::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[6]); +} + +// =================================================================== + +class Orientation::_Internal { + public: +}; + +Orientation::Orientation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.common.v1.Orientation) +} +Orientation::Orientation(const Orientation& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Orientation* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.o_x_){} + , decltype(_impl_.o_y_){} + , decltype(_impl_.o_z_){} + , decltype(_impl_.theta_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.o_x_, &from._impl_.o_x_, + static_cast(reinterpret_cast(&_impl_.theta_) - + reinterpret_cast(&_impl_.o_x_)) + sizeof(_impl_.theta_)); + // @@protoc_insertion_point(copy_constructor:viam.common.v1.Orientation) +} + +inline void Orientation::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.o_x_){0} + , decltype(_impl_.o_y_){0} + , decltype(_impl_.o_z_){0} + , decltype(_impl_.theta_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Orientation::~Orientation() { + // @@protoc_insertion_point(destructor:viam.common.v1.Orientation) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Orientation::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Orientation::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Orientation::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.Orientation) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.o_x_, 0, static_cast( + reinterpret_cast(&_impl_.theta_) - + reinterpret_cast(&_impl_.o_x_)) + sizeof(_impl_.theta_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Orientation::_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) { + // double o_x = 1 [json_name = "oX"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + _impl_.o_x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double o_y = 2 [json_name = "oY"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + _impl_.o_y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double o_z = 3 [json_name = "oZ"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + _impl_.o_z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double theta = 4 [json_name = "theta"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { + _impl_.theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* Orientation::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.Orientation) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // double o_x = 1 [json_name = "oX"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_o_x = this->_internal_o_x(); + uint64_t raw_o_x; + memcpy(&raw_o_x, &tmp_o_x, sizeof(tmp_o_x)); + if (raw_o_x != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_o_x(), target); + } + + // double o_y = 2 [json_name = "oY"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_o_y = this->_internal_o_y(); + uint64_t raw_o_y; + memcpy(&raw_o_y, &tmp_o_y, sizeof(tmp_o_y)); + if (raw_o_y != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_o_y(), target); + } + + // double o_z = 3 [json_name = "oZ"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_o_z = this->_internal_o_z(); + uint64_t raw_o_z; + memcpy(&raw_o_z, &tmp_o_z, sizeof(tmp_o_z)); + if (raw_o_z != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_o_z(), target); + } + + // double theta = 4 [json_name = "theta"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_theta = this->_internal_theta(); + uint64_t raw_theta; + memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); + if (raw_theta != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_theta(), 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.common.v1.Orientation) + return target; +} + +size_t Orientation::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.Orientation) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // double o_x = 1 [json_name = "oX"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_o_x = this->_internal_o_x(); + uint64_t raw_o_x; + memcpy(&raw_o_x, &tmp_o_x, sizeof(tmp_o_x)); + if (raw_o_x != 0) { + total_size += 1 + 8; + } + + // double o_y = 2 [json_name = "oY"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_o_y = this->_internal_o_y(); + uint64_t raw_o_y; + memcpy(&raw_o_y, &tmp_o_y, sizeof(tmp_o_y)); + if (raw_o_y != 0) { + total_size += 1 + 8; + } + + // double o_z = 3 [json_name = "oZ"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_o_z = this->_internal_o_z(); + uint64_t raw_o_z; + memcpy(&raw_o_z, &tmp_o_z, sizeof(tmp_o_z)); + if (raw_o_z != 0) { + total_size += 1 + 8; + } + + // double theta = 4 [json_name = "theta"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_theta = this->_internal_theta(); + uint64_t raw_theta; + memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); + if (raw_theta != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Orientation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Orientation::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Orientation::GetClassData() const { return &_class_data_; } + + +void Orientation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Orientation) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_o_x = from._internal_o_x(); + uint64_t raw_o_x; + memcpy(&raw_o_x, &tmp_o_x, sizeof(tmp_o_x)); + if (raw_o_x != 0) { + _this->_internal_set_o_x(from._internal_o_x()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_o_y = from._internal_o_y(); + uint64_t raw_o_y; + memcpy(&raw_o_y, &tmp_o_y, sizeof(tmp_o_y)); + if (raw_o_y != 0) { + _this->_internal_set_o_y(from._internal_o_y()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_o_z = from._internal_o_z(); + uint64_t raw_o_z; + memcpy(&raw_o_z, &tmp_o_z, sizeof(tmp_o_z)); + if (raw_o_z != 0) { + _this->_internal_set_o_z(from._internal_o_z()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_theta = from._internal_theta(); + uint64_t raw_theta; + memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); + if (raw_theta != 0) { + _this->_internal_set_theta(from._internal_theta()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Orientation::CopyFrom(const Orientation& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.Orientation) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Orientation::IsInitialized() const { + return true; +} + +void Orientation::InternalSwap(Orientation* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Orientation, _impl_.theta_) + + sizeof(Orientation::_impl_.theta_) + - PROTOBUF_FIELD_OFFSET(Orientation, _impl_.o_x_)>( + reinterpret_cast(&_impl_.o_x_), + reinterpret_cast(&other->_impl_.o_x_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Orientation::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[7]); +} + +// =================================================================== + +class PoseInFrame::_Internal { + public: + static const ::viam::common::v1::Pose& pose(const PoseInFrame* msg); +}; + +const ::viam::common::v1::Pose& +PoseInFrame::_Internal::pose(const PoseInFrame* msg) { + return *msg->_impl_.pose_; +} +PoseInFrame::PoseInFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.common.v1.PoseInFrame) +} +PoseInFrame::PoseInFrame(const PoseInFrame& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + PoseInFrame* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.reference_frame_){} + , decltype(_impl_.pose_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.reference_frame_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.reference_frame_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_reference_frame().empty()) { + _this->_impl_.reference_frame_.Set(from._internal_reference_frame(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_pose()) { + _this->_impl_.pose_ = new ::viam::common::v1::Pose(*from._impl_.pose_); + } + // @@protoc_insertion_point(copy_constructor:viam.common.v1.PoseInFrame) +} + +inline void PoseInFrame::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.reference_frame_){} + , decltype(_impl_.pose_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.reference_frame_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.reference_frame_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +PoseInFrame::~PoseInFrame() { + // @@protoc_insertion_point(destructor:viam.common.v1.PoseInFrame) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void PoseInFrame::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.reference_frame_.Destroy(); + if (this != internal_default_instance()) delete _impl_.pose_; +} + +void PoseInFrame::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void PoseInFrame::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.PoseInFrame) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.reference_frame_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.pose_ != nullptr) { + delete _impl_.pose_; + } + _impl_.pose_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PoseInFrame::_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 reference_frame = 1 [json_name = "referenceFrame"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_reference_frame(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.PoseInFrame.reference_frame")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.Pose pose = 2 [json_name = "pose"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_pose(), 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* PoseInFrame::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.PoseInFrame) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string reference_frame = 1 [json_name = "referenceFrame"]; + if (!this->_internal_reference_frame().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_reference_frame().data(), static_cast(this->_internal_reference_frame().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.PoseInFrame.reference_frame"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_reference_frame(), target); + } + + // .viam.common.v1.Pose pose = 2 [json_name = "pose"]; + if (this->_internal_has_pose()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::pose(this), + _Internal::pose(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.PoseInFrame) + return target; +} + +size_t PoseInFrame::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.PoseInFrame) + 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 reference_frame = 1 [json_name = "referenceFrame"]; + if (!this->_internal_reference_frame().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_reference_frame()); + } + + // .viam.common.v1.Pose pose = 2 [json_name = "pose"]; + if (this->_internal_has_pose()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.pose_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PoseInFrame::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + PoseInFrame::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PoseInFrame::GetClassData() const { return &_class_data_; } + + +void PoseInFrame::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.PoseInFrame) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_reference_frame().empty()) { + _this->_internal_set_reference_frame(from._internal_reference_frame()); + } + if (from._internal_has_pose()) { + _this->_internal_mutable_pose()->::viam::common::v1::Pose::MergeFrom( + from._internal_pose()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PoseInFrame::CopyFrom(const PoseInFrame& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.PoseInFrame) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PoseInFrame::IsInitialized() const { + return true; +} + +void PoseInFrame::InternalSwap(PoseInFrame* 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( + &_impl_.reference_frame_, lhs_arena, + &other->_impl_.reference_frame_, rhs_arena + ); + swap(_impl_.pose_, other->_impl_.pose_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PoseInFrame::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[8]); +} + +// =================================================================== + +class Vector3::_Internal { + public: +}; + +Vector3::Vector3(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.common.v1.Vector3) +} +Vector3::Vector3(const Vector3& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Vector3* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.x_){} + , decltype(_impl_.y_){} + , decltype(_impl_.z_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.x_, &from._impl_.x_, + static_cast(reinterpret_cast(&_impl_.z_) - + reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.z_)); + // @@protoc_insertion_point(copy_constructor:viam.common.v1.Vector3) +} + +inline void Vector3::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.x_){0} + , decltype(_impl_.y_){0} + , decltype(_impl_.z_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Vector3::~Vector3() { + // @@protoc_insertion_point(destructor:viam.common.v1.Vector3) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Vector3::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Vector3::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Vector3::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.Vector3) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.x_, 0, static_cast( + reinterpret_cast(&_impl_.z_) - + reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.z_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Vector3::_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) { + // double x = 1 [json_name = "x"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double y = 2 [json_name = "y"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double z = 3 [json_name = "z"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + _impl_.z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* Vector3::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.Vector3) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // double x = 1 [json_name = "x"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_x = this->_internal_x(); + uint64_t raw_x; + memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); + if (raw_x != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_x(), target); + } + + // double y = 2 [json_name = "y"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_y = this->_internal_y(); + uint64_t raw_y; + memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); + if (raw_y != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_y(), target); + } + + // double z = 3 [json_name = "z"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_z = this->_internal_z(); + uint64_t raw_z; + memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); + if (raw_z != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_z(), 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.common.v1.Vector3) + return target; +} + +size_t Vector3::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.Vector3) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // double x = 1 [json_name = "x"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_x = this->_internal_x(); + uint64_t raw_x; + memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); + if (raw_x != 0) { + total_size += 1 + 8; + } + + // double y = 2 [json_name = "y"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_y = this->_internal_y(); + uint64_t raw_y; + memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); + if (raw_y != 0) { + total_size += 1 + 8; + } + + // double z = 3 [json_name = "z"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_z = this->_internal_z(); + uint64_t raw_z; + memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); + if (raw_z != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Vector3::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Vector3::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Vector3::GetClassData() const { return &_class_data_; } + + +void Vector3::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Vector3) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_x = from._internal_x(); + uint64_t raw_x; + memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); + if (raw_x != 0) { + _this->_internal_set_x(from._internal_x()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_y = from._internal_y(); + uint64_t raw_y; + memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); + if (raw_y != 0) { + _this->_internal_set_y(from._internal_y()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_z = from._internal_z(); + uint64_t raw_z; + memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); + if (raw_z != 0) { + _this->_internal_set_z(from._internal_z()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Vector3::CopyFrom(const Vector3& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.Vector3) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Vector3::IsInitialized() const { + return true; +} + +void Vector3::InternalSwap(Vector3* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Vector3, _impl_.z_) + + sizeof(Vector3::_impl_.z_) + - PROTOBUF_FIELD_OFFSET(Vector3, _impl_.x_)>( + reinterpret_cast(&_impl_.x_), + reinterpret_cast(&other->_impl_.x_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Vector3::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[9]); +} + +// =================================================================== + +class Sphere::_Internal { + public: +}; + +Sphere::Sphere(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.common.v1.Sphere) +} +Sphere::Sphere(const Sphere& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Sphere* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.radius_mm_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.radius_mm_ = from._impl_.radius_mm_; + // @@protoc_insertion_point(copy_constructor:viam.common.v1.Sphere) +} + +inline void Sphere::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.radius_mm_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Sphere::~Sphere() { + // @@protoc_insertion_point(destructor:viam.common.v1.Sphere) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Sphere::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Sphere::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Sphere::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.Sphere) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.radius_mm_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Sphere::_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) { + // double radius_mm = 1 [json_name = "radiusMm"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + _impl_.radius_mm_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* Sphere::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.Sphere) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // double radius_mm = 1 [json_name = "radiusMm"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_radius_mm = this->_internal_radius_mm(); + uint64_t raw_radius_mm; + memcpy(&raw_radius_mm, &tmp_radius_mm, sizeof(tmp_radius_mm)); + if (raw_radius_mm != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_radius_mm(), 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.common.v1.Sphere) + return target; +} + +size_t Sphere::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.Sphere) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // double radius_mm = 1 [json_name = "radiusMm"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_radius_mm = this->_internal_radius_mm(); + uint64_t raw_radius_mm; + memcpy(&raw_radius_mm, &tmp_radius_mm, sizeof(tmp_radius_mm)); + if (raw_radius_mm != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Sphere::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Sphere::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Sphere::GetClassData() const { return &_class_data_; } + + +void Sphere::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Sphere) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_radius_mm = from._internal_radius_mm(); + uint64_t raw_radius_mm; + memcpy(&raw_radius_mm, &tmp_radius_mm, sizeof(tmp_radius_mm)); + if (raw_radius_mm != 0) { + _this->_internal_set_radius_mm(from._internal_radius_mm()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Sphere::CopyFrom(const Sphere& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.Sphere) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Sphere::IsInitialized() const { + return true; +} + +void Sphere::InternalSwap(Sphere* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.radius_mm_, other->_impl_.radius_mm_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Sphere::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[10]); +} + +// =================================================================== + +class RectangularPrism::_Internal { + public: + static const ::viam::common::v1::Vector3& dims_mm(const RectangularPrism* msg); +}; + +const ::viam::common::v1::Vector3& +RectangularPrism::_Internal::dims_mm(const RectangularPrism* msg) { + return *msg->_impl_.dims_mm_; +} +RectangularPrism::RectangularPrism(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.common.v1.RectangularPrism) +} +RectangularPrism::RectangularPrism(const RectangularPrism& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RectangularPrism* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.dims_mm_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_dims_mm()) { + _this->_impl_.dims_mm_ = new ::viam::common::v1::Vector3(*from._impl_.dims_mm_); + } + // @@protoc_insertion_point(copy_constructor:viam.common.v1.RectangularPrism) +} + +inline void RectangularPrism::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.dims_mm_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +RectangularPrism::~RectangularPrism() { + // @@protoc_insertion_point(destructor:viam.common.v1.RectangularPrism) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RectangularPrism::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.dims_mm_; +} + +void RectangularPrism::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RectangularPrism::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.RectangularPrism) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.dims_mm_ != nullptr) { + delete _impl_.dims_mm_; + } + _impl_.dims_mm_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RectangularPrism::_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) { + // .viam.common.v1.Vector3 dims_mm = 1 [json_name = "dimsMm"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_dims_mm(), 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* RectangularPrism::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.RectangularPrism) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.common.v1.Vector3 dims_mm = 1 [json_name = "dimsMm"]; + if (this->_internal_has_dims_mm()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::dims_mm(this), + _Internal::dims_mm(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.RectangularPrism) + return target; +} + +size_t RectangularPrism::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.RectangularPrism) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.common.v1.Vector3 dims_mm = 1 [json_name = "dimsMm"]; + if (this->_internal_has_dims_mm()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.dims_mm_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RectangularPrism::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RectangularPrism::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RectangularPrism::GetClassData() const { return &_class_data_; } + + +void RectangularPrism::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.RectangularPrism) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_dims_mm()) { + _this->_internal_mutable_dims_mm()->::viam::common::v1::Vector3::MergeFrom( + from._internal_dims_mm()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RectangularPrism::CopyFrom(const RectangularPrism& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.RectangularPrism) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RectangularPrism::IsInitialized() const { + return true; +} + +void RectangularPrism::InternalSwap(RectangularPrism* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.dims_mm_, other->_impl_.dims_mm_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RectangularPrism::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[11]); +} + +// =================================================================== + +class Geometry::_Internal { + public: + static const ::viam::common::v1::Pose& center(const Geometry* msg); + static const ::viam::common::v1::Sphere& sphere(const Geometry* msg); + static const ::viam::common::v1::RectangularPrism& box(const Geometry* msg); +}; + +const ::viam::common::v1::Pose& +Geometry::_Internal::center(const Geometry* msg) { + return *msg->_impl_.center_; +} +const ::viam::common::v1::Sphere& +Geometry::_Internal::sphere(const Geometry* msg) { + return *msg->_impl_.geometry_type_.sphere_; +} +const ::viam::common::v1::RectangularPrism& +Geometry::_Internal::box(const Geometry* msg) { + return *msg->_impl_.geometry_type_.box_; +} +void Geometry::set_allocated_sphere(::viam::common::v1::Sphere* sphere) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_geometry_type(); + if (sphere) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(sphere); + if (message_arena != submessage_arena) { + sphere = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, sphere, submessage_arena); + } + set_has_sphere(); + _impl_.geometry_type_.sphere_ = sphere; + } + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.Geometry.sphere) +} +void Geometry::set_allocated_box(::viam::common::v1::RectangularPrism* box) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_geometry_type(); + if (box) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(box); + if (message_arena != submessage_arena) { + box = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, box, submessage_arena); + } + set_has_box(); + _impl_.geometry_type_.box_ = box; + } + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.Geometry.box) +} +Geometry::Geometry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.common.v1.Geometry) +} +Geometry::Geometry(const Geometry& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Geometry* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.label_){} + , decltype(_impl_.center_){nullptr} + , decltype(_impl_.geometry_type_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.label_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.label_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_label().empty()) { + _this->_impl_.label_.Set(from._internal_label(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_center()) { + _this->_impl_.center_ = new ::viam::common::v1::Pose(*from._impl_.center_); + } + clear_has_geometry_type(); + switch (from.geometry_type_case()) { + case kSphere: { + _this->_internal_mutable_sphere()->::viam::common::v1::Sphere::MergeFrom( + from._internal_sphere()); + break; + } + case kBox: { + _this->_internal_mutable_box()->::viam::common::v1::RectangularPrism::MergeFrom( + from._internal_box()); + break; + } + case GEOMETRY_TYPE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:viam.common.v1.Geometry) +} + +inline void Geometry::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.label_){} + , decltype(_impl_.center_){nullptr} + , decltype(_impl_.geometry_type_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + _impl_.label_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.label_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + clear_has_geometry_type(); +} + +Geometry::~Geometry() { + // @@protoc_insertion_point(destructor:viam.common.v1.Geometry) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Geometry::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.label_.Destroy(); + if (this != internal_default_instance()) delete _impl_.center_; + if (has_geometry_type()) { + clear_geometry_type(); + } +} + +void Geometry::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Geometry::clear_geometry_type() { +// @@protoc_insertion_point(one_of_clear_start:viam.common.v1.Geometry) + switch (geometry_type_case()) { + case kSphere: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.geometry_type_.sphere_; + } + break; + } + case kBox: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.geometry_type_.box_; + } + break; + } + case GEOMETRY_TYPE_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = GEOMETRY_TYPE_NOT_SET; +} + + +void Geometry::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.Geometry) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.label_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.center_ != nullptr) { + delete _impl_.center_; + } + _impl_.center_ = nullptr; + clear_geometry_type(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Geometry::_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) { + // .viam.common.v1.Pose center = 1 [json_name = "center"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_center(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.common.v1.Sphere sphere = 2 [json_name = "sphere"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_sphere(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.common.v1.RectangularPrism box = 3 [json_name = "box"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_box(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string label = 4 [json_name = "label"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_label(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.Geometry.label")); + } 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* Geometry::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.Geometry) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.common.v1.Pose center = 1 [json_name = "center"]; + if (this->_internal_has_center()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::center(this), + _Internal::center(this).GetCachedSize(), target, stream); + } + + // .viam.common.v1.Sphere sphere = 2 [json_name = "sphere"]; + if (_internal_has_sphere()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::sphere(this), + _Internal::sphere(this).GetCachedSize(), target, stream); + } + + // .viam.common.v1.RectangularPrism box = 3 [json_name = "box"]; + if (_internal_has_box()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::box(this), + _Internal::box(this).GetCachedSize(), target, stream); + } + + // string label = 4 [json_name = "label"]; + if (!this->_internal_label().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_label().data(), static_cast(this->_internal_label().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.Geometry.label"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_label(), 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.common.v1.Geometry) + return target; +} + +size_t Geometry::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.Geometry) + 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 label = 4 [json_name = "label"]; + if (!this->_internal_label().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_label()); + } + + // .viam.common.v1.Pose center = 1 [json_name = "center"]; + if (this->_internal_has_center()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.center_); + } + + switch (geometry_type_case()) { + // .viam.common.v1.Sphere sphere = 2 [json_name = "sphere"]; + case kSphere: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.geometry_type_.sphere_); + break; + } + // .viam.common.v1.RectangularPrism box = 3 [json_name = "box"]; + case kBox: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.geometry_type_.box_); + break; + } + case GEOMETRY_TYPE_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Geometry::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Geometry::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Geometry::GetClassData() const { return &_class_data_; } + + +void Geometry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Geometry) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_label().empty()) { + _this->_internal_set_label(from._internal_label()); + } + if (from._internal_has_center()) { + _this->_internal_mutable_center()->::viam::common::v1::Pose::MergeFrom( + from._internal_center()); + } + switch (from.geometry_type_case()) { + case kSphere: { + _this->_internal_mutable_sphere()->::viam::common::v1::Sphere::MergeFrom( + from._internal_sphere()); + break; + } + case kBox: { + _this->_internal_mutable_box()->::viam::common::v1::RectangularPrism::MergeFrom( + from._internal_box()); + break; + } + case GEOMETRY_TYPE_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Geometry::CopyFrom(const Geometry& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.Geometry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Geometry::IsInitialized() const { + return true; +} + +void Geometry::InternalSwap(Geometry* 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( + &_impl_.label_, lhs_arena, + &other->_impl_.label_, rhs_arena + ); + swap(_impl_.center_, other->_impl_.center_); + swap(_impl_.geometry_type_, other->_impl_.geometry_type_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Geometry::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[12]); +} + +// =================================================================== + +class GeometriesInFrame::_Internal { + public: +}; + +GeometriesInFrame::GeometriesInFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.common.v1.GeometriesInFrame) +} +GeometriesInFrame::GeometriesInFrame(const GeometriesInFrame& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GeometriesInFrame* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.geometries_){from._impl_.geometries_} + , decltype(_impl_.reference_frame_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.reference_frame_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.reference_frame_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_reference_frame().empty()) { + _this->_impl_.reference_frame_.Set(from._internal_reference_frame(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.common.v1.GeometriesInFrame) +} + +inline void GeometriesInFrame::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.geometries_){arena} + , decltype(_impl_.reference_frame_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.reference_frame_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.reference_frame_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GeometriesInFrame::~GeometriesInFrame() { + // @@protoc_insertion_point(destructor:viam.common.v1.GeometriesInFrame) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GeometriesInFrame::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.geometries_.~RepeatedPtrField(); + _impl_.reference_frame_.Destroy(); +} + +void GeometriesInFrame::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GeometriesInFrame::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.GeometriesInFrame) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.geometries_.Clear(); + _impl_.reference_frame_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GeometriesInFrame::_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 reference_frame = 1 [json_name = "referenceFrame"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_reference_frame(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.GeometriesInFrame.reference_frame")); + } else + goto handle_unusual; + continue; + // repeated .viam.common.v1.Geometry geometries = 2 [json_name = "geometries"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_geometries(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* GeometriesInFrame::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.GeometriesInFrame) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string reference_frame = 1 [json_name = "referenceFrame"]; + if (!this->_internal_reference_frame().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_reference_frame().data(), static_cast(this->_internal_reference_frame().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.GeometriesInFrame.reference_frame"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_reference_frame(), target); + } + + // repeated .viam.common.v1.Geometry geometries = 2 [json_name = "geometries"]; + for (unsigned i = 0, + n = static_cast(this->_internal_geometries_size()); i < n; i++) { + const auto& repfield = this->_internal_geometries(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.common.v1.GeometriesInFrame) + return target; +} + +size_t GeometriesInFrame::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.GeometriesInFrame) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.common.v1.Geometry geometries = 2 [json_name = "geometries"]; + total_size += 1UL * this->_internal_geometries_size(); + for (const auto& msg : this->_impl_.geometries_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string reference_frame = 1 [json_name = "referenceFrame"]; + if (!this->_internal_reference_frame().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_reference_frame()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GeometriesInFrame::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GeometriesInFrame::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GeometriesInFrame::GetClassData() const { return &_class_data_; } + + +void GeometriesInFrame::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.GeometriesInFrame) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.geometries_.MergeFrom(from._impl_.geometries_); + if (!from._internal_reference_frame().empty()) { + _this->_internal_set_reference_frame(from._internal_reference_frame()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GeometriesInFrame::CopyFrom(const GeometriesInFrame& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.GeometriesInFrame) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GeometriesInFrame::IsInitialized() const { + return true; +} + +void GeometriesInFrame::InternalSwap(GeometriesInFrame* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.geometries_.InternalSwap(&other->_impl_.geometries_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.reference_frame_, lhs_arena, + &other->_impl_.reference_frame_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GeometriesInFrame::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[13]); +} + +// =================================================================== + +class PointCloudObject::_Internal { + public: + static const ::viam::common::v1::GeometriesInFrame& geometries(const PointCloudObject* msg); +}; + +const ::viam::common::v1::GeometriesInFrame& +PointCloudObject::_Internal::geometries(const PointCloudObject* msg) { + return *msg->_impl_.geometries_; +} +PointCloudObject::PointCloudObject(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.common.v1.PointCloudObject) +} +PointCloudObject::PointCloudObject(const PointCloudObject& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + PointCloudObject* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.point_cloud_){} + , decltype(_impl_.geometries_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.point_cloud_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.point_cloud_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_point_cloud().empty()) { + _this->_impl_.point_cloud_.Set(from._internal_point_cloud(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_geometries()) { + _this->_impl_.geometries_ = new ::viam::common::v1::GeometriesInFrame(*from._impl_.geometries_); + } + // @@protoc_insertion_point(copy_constructor:viam.common.v1.PointCloudObject) +} + +inline void PointCloudObject::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.point_cloud_){} + , decltype(_impl_.geometries_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.point_cloud_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.point_cloud_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +PointCloudObject::~PointCloudObject() { + // @@protoc_insertion_point(destructor:viam.common.v1.PointCloudObject) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void PointCloudObject::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.point_cloud_.Destroy(); + if (this != internal_default_instance()) delete _impl_.geometries_; +} + +void PointCloudObject::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void PointCloudObject::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.PointCloudObject) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.point_cloud_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.geometries_ != nullptr) { + delete _impl_.geometries_; + } + _impl_.geometries_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PointCloudObject::_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 point_cloud = 1 [json_name = "pointCloud"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_point_cloud(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.common.v1.GeometriesInFrame geometries = 2 [json_name = "geometries"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_geometries(), 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* PointCloudObject::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.PointCloudObject) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bytes point_cloud = 1 [json_name = "pointCloud"]; + if (!this->_internal_point_cloud().empty()) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_point_cloud(), target); + } + + // .viam.common.v1.GeometriesInFrame geometries = 2 [json_name = "geometries"]; + if (this->_internal_has_geometries()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::geometries(this), + _Internal::geometries(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.PointCloudObject) + return target; +} + +size_t PointCloudObject::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.PointCloudObject) + 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 point_cloud = 1 [json_name = "pointCloud"]; + if (!this->_internal_point_cloud().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_point_cloud()); + } + + // .viam.common.v1.GeometriesInFrame geometries = 2 [json_name = "geometries"]; + if (this->_internal_has_geometries()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.geometries_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PointCloudObject::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + PointCloudObject::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PointCloudObject::GetClassData() const { return &_class_data_; } + + +void PointCloudObject::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.PointCloudObject) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_point_cloud().empty()) { + _this->_internal_set_point_cloud(from._internal_point_cloud()); + } + if (from._internal_has_geometries()) { + _this->_internal_mutable_geometries()->::viam::common::v1::GeometriesInFrame::MergeFrom( + from._internal_geometries()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PointCloudObject::CopyFrom(const PointCloudObject& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.PointCloudObject) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PointCloudObject::IsInitialized() const { + return true; +} + +void PointCloudObject::InternalSwap(PointCloudObject* 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( + &_impl_.point_cloud_, lhs_arena, + &other->_impl_.point_cloud_, rhs_arena + ); + swap(_impl_.geometries_, other->_impl_.geometries_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PointCloudObject::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[14]); +} + +// =================================================================== + +class GeoPoint::_Internal { + public: +}; + +GeoPoint::GeoPoint(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.common.v1.GeoPoint) +} +GeoPoint::GeoPoint(const GeoPoint& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GeoPoint* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.latitude_){} + , decltype(_impl_.longitude_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.latitude_, &from._impl_.latitude_, + static_cast(reinterpret_cast(&_impl_.longitude_) - + reinterpret_cast(&_impl_.latitude_)) + sizeof(_impl_.longitude_)); + // @@protoc_insertion_point(copy_constructor:viam.common.v1.GeoPoint) +} + +inline void GeoPoint::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.latitude_){0} + , decltype(_impl_.longitude_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GeoPoint::~GeoPoint() { + // @@protoc_insertion_point(destructor:viam.common.v1.GeoPoint) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GeoPoint::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GeoPoint::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GeoPoint::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.GeoPoint) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.latitude_, 0, static_cast( + reinterpret_cast(&_impl_.longitude_) - + reinterpret_cast(&_impl_.latitude_)) + sizeof(_impl_.longitude_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GeoPoint::_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) { + // double latitude = 1 [json_name = "latitude"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + _impl_.latitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double longitude = 2 [json_name = "longitude"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + _impl_.longitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* GeoPoint::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.GeoPoint) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // double latitude = 1 [json_name = "latitude"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_latitude = this->_internal_latitude(); + uint64_t raw_latitude; + memcpy(&raw_latitude, &tmp_latitude, sizeof(tmp_latitude)); + if (raw_latitude != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_latitude(), target); + } + + // double longitude = 2 [json_name = "longitude"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_longitude = this->_internal_longitude(); + uint64_t raw_longitude; + memcpy(&raw_longitude, &tmp_longitude, sizeof(tmp_longitude)); + if (raw_longitude != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_longitude(), 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.common.v1.GeoPoint) + return target; +} + +size_t GeoPoint::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.GeoPoint) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // double latitude = 1 [json_name = "latitude"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_latitude = this->_internal_latitude(); + uint64_t raw_latitude; + memcpy(&raw_latitude, &tmp_latitude, sizeof(tmp_latitude)); + if (raw_latitude != 0) { + total_size += 1 + 8; + } + + // double longitude = 2 [json_name = "longitude"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_longitude = this->_internal_longitude(); + uint64_t raw_longitude; + memcpy(&raw_longitude, &tmp_longitude, sizeof(tmp_longitude)); + if (raw_longitude != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GeoPoint::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GeoPoint::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GeoPoint::GetClassData() const { return &_class_data_; } + + +void GeoPoint::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.GeoPoint) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_latitude = from._internal_latitude(); + uint64_t raw_latitude; + memcpy(&raw_latitude, &tmp_latitude, sizeof(tmp_latitude)); + if (raw_latitude != 0) { + _this->_internal_set_latitude(from._internal_latitude()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_longitude = from._internal_longitude(); + uint64_t raw_longitude; + memcpy(&raw_longitude, &tmp_longitude, sizeof(tmp_longitude)); + if (raw_longitude != 0) { + _this->_internal_set_longitude(from._internal_longitude()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GeoPoint::CopyFrom(const GeoPoint& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.GeoPoint) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GeoPoint::IsInitialized() const { + return true; +} + +void GeoPoint::InternalSwap(GeoPoint* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GeoPoint, _impl_.longitude_) + + sizeof(GeoPoint::_impl_.longitude_) + - PROTOBUF_FIELD_OFFSET(GeoPoint, _impl_.latitude_)>( + reinterpret_cast(&_impl_.latitude_), + reinterpret_cast(&other->_impl_.latitude_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GeoPoint::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[15]); +} + +// =================================================================== + +class Transform::_Internal { + public: + static const ::viam::common::v1::PoseInFrame& pose_in_observer_frame(const Transform* msg); +}; + +const ::viam::common::v1::PoseInFrame& +Transform::_Internal::pose_in_observer_frame(const Transform* msg) { + return *msg->_impl_.pose_in_observer_frame_; +} +Transform::Transform(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.common.v1.Transform) +} +Transform::Transform(const Transform& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Transform* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.reference_frame_){} + , decltype(_impl_.pose_in_observer_frame_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.reference_frame_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.reference_frame_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_reference_frame().empty()) { + _this->_impl_.reference_frame_.Set(from._internal_reference_frame(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_pose_in_observer_frame()) { + _this->_impl_.pose_in_observer_frame_ = new ::viam::common::v1::PoseInFrame(*from._impl_.pose_in_observer_frame_); + } + // @@protoc_insertion_point(copy_constructor:viam.common.v1.Transform) +} + +inline void Transform::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.reference_frame_){} + , decltype(_impl_.pose_in_observer_frame_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.reference_frame_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.reference_frame_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Transform::~Transform() { + // @@protoc_insertion_point(destructor:viam.common.v1.Transform) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Transform::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.reference_frame_.Destroy(); + if (this != internal_default_instance()) delete _impl_.pose_in_observer_frame_; +} + +void Transform::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Transform::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.Transform) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.reference_frame_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.pose_in_observer_frame_ != nullptr) { + delete _impl_.pose_in_observer_frame_; + } + _impl_.pose_in_observer_frame_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Transform::_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 reference_frame = 1 [json_name = "referenceFrame"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_reference_frame(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.Transform.reference_frame")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.PoseInFrame pose_in_observer_frame = 2 [json_name = "poseInObserverFrame"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_pose_in_observer_frame(), 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* Transform::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.Transform) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string reference_frame = 1 [json_name = "referenceFrame"]; + if (!this->_internal_reference_frame().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_reference_frame().data(), static_cast(this->_internal_reference_frame().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.Transform.reference_frame"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_reference_frame(), target); + } + + // .viam.common.v1.PoseInFrame pose_in_observer_frame = 2 [json_name = "poseInObserverFrame"]; + if (this->_internal_has_pose_in_observer_frame()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::pose_in_observer_frame(this), + _Internal::pose_in_observer_frame(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.Transform) + return target; +} + +size_t Transform::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.Transform) + 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 reference_frame = 1 [json_name = "referenceFrame"]; + if (!this->_internal_reference_frame().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_reference_frame()); + } + + // .viam.common.v1.PoseInFrame pose_in_observer_frame = 2 [json_name = "poseInObserverFrame"]; + if (this->_internal_has_pose_in_observer_frame()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.pose_in_observer_frame_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Transform::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Transform::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Transform::GetClassData() const { return &_class_data_; } + + +void Transform::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Transform) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_reference_frame().empty()) { + _this->_internal_set_reference_frame(from._internal_reference_frame()); + } + if (from._internal_has_pose_in_observer_frame()) { + _this->_internal_mutable_pose_in_observer_frame()->::viam::common::v1::PoseInFrame::MergeFrom( + from._internal_pose_in_observer_frame()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Transform::CopyFrom(const Transform& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.Transform) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Transform::IsInitialized() const { + return true; +} + +void Transform::InternalSwap(Transform* 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( + &_impl_.reference_frame_, lhs_arena, + &other->_impl_.reference_frame_, rhs_arena + ); + swap(_impl_.pose_in_observer_frame_, other->_impl_.pose_in_observer_frame_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Transform::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[16]); +} + +// =================================================================== + +class WorldState::_Internal { + public: +}; + +WorldState::WorldState(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.common.v1.WorldState) +} +WorldState::WorldState(const WorldState& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + WorldState* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.obstacles_){from._impl_.obstacles_} + , decltype(_impl_.interaction_spaces_){from._impl_.interaction_spaces_} + , decltype(_impl_.transforms_){from._impl_.transforms_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.common.v1.WorldState) +} + +inline void WorldState::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.obstacles_){arena} + , decltype(_impl_.interaction_spaces_){arena} + , decltype(_impl_.transforms_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +WorldState::~WorldState() { + // @@protoc_insertion_point(destructor:viam.common.v1.WorldState) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void WorldState::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.obstacles_.~RepeatedPtrField(); + _impl_.interaction_spaces_.~RepeatedPtrField(); + _impl_.transforms_.~RepeatedPtrField(); +} + +void WorldState::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void WorldState::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.WorldState) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.obstacles_.Clear(); + _impl_.interaction_spaces_.Clear(); + _impl_.transforms_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* WorldState::_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) { + // repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_obstacles(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.common.v1.GeometriesInFrame interaction_spaces = 2 [json_name = "interactionSpaces"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_interaction_spaces(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_transforms(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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* WorldState::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.WorldState) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"]; + for (unsigned i = 0, + n = static_cast(this->_internal_obstacles_size()); i < n; i++) { + const auto& repfield = this->_internal_obstacles(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + // repeated .viam.common.v1.GeometriesInFrame interaction_spaces = 2 [json_name = "interactionSpaces"]; + for (unsigned i = 0, + n = static_cast(this->_internal_interaction_spaces_size()); i < n; i++) { + const auto& repfield = this->_internal_interaction_spaces(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + // repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"]; + for (unsigned i = 0, + n = static_cast(this->_internal_transforms_size()); i < n; i++) { + const auto& repfield = this->_internal_transforms(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.common.v1.WorldState) + return target; +} + +size_t WorldState::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.WorldState) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"]; + total_size += 1UL * this->_internal_obstacles_size(); + for (const auto& msg : this->_impl_.obstacles_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated .viam.common.v1.GeometriesInFrame interaction_spaces = 2 [json_name = "interactionSpaces"]; + total_size += 1UL * this->_internal_interaction_spaces_size(); + for (const auto& msg : this->_impl_.interaction_spaces_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"]; + total_size += 1UL * this->_internal_transforms_size(); + for (const auto& msg : this->_impl_.transforms_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WorldState::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + WorldState::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WorldState::GetClassData() const { return &_class_data_; } + + +void WorldState::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.WorldState) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.obstacles_.MergeFrom(from._impl_.obstacles_); + _this->_impl_.interaction_spaces_.MergeFrom(from._impl_.interaction_spaces_); + _this->_impl_.transforms_.MergeFrom(from._impl_.transforms_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void WorldState::CopyFrom(const WorldState& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.WorldState) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorldState::IsInitialized() const { + return true; +} + +void WorldState::InternalSwap(WorldState* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.obstacles_.InternalSwap(&other->_impl_.obstacles_); + _impl_.interaction_spaces_.InternalSwap(&other->_impl_.interaction_spaces_); + _impl_.transforms_.InternalSwap(&other->_impl_.transforms_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata WorldState::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[17]); +} + +// =================================================================== + +class ActuatorStatus::_Internal { + public: +}; + +ActuatorStatus::ActuatorStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.common.v1.ActuatorStatus) +} +ActuatorStatus::ActuatorStatus(const ActuatorStatus& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ActuatorStatus* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.is_moving_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.is_moving_ = from._impl_.is_moving_; + // @@protoc_insertion_point(copy_constructor:viam.common.v1.ActuatorStatus) +} + +inline void ActuatorStatus::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.is_moving_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +ActuatorStatus::~ActuatorStatus() { + // @@protoc_insertion_point(destructor:viam.common.v1.ActuatorStatus) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ActuatorStatus::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void ActuatorStatus::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ActuatorStatus::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.ActuatorStatus) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.is_moving_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ActuatorStatus::_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) { + // bool is_moving = 1 [json_name = "isMoving"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ActuatorStatus::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.ActuatorStatus) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bool is_moving = 1 [json_name = "isMoving"]; + if (this->_internal_is_moving() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_is_moving(), 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.common.v1.ActuatorStatus) + return target; +} + +size_t ActuatorStatus::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.ActuatorStatus) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bool is_moving = 1 [json_name = "isMoving"]; + if (this->_internal_is_moving() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ActuatorStatus::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ActuatorStatus::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ActuatorStatus::GetClassData() const { return &_class_data_; } + + +void ActuatorStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.ActuatorStatus) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_is_moving() != 0) { + _this->_internal_set_is_moving(from._internal_is_moving()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ActuatorStatus::CopyFrom(const ActuatorStatus& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.ActuatorStatus) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ActuatorStatus::IsInitialized() const { + return true; +} + +void ActuatorStatus::InternalSwap(ActuatorStatus* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.is_moving_, other->_impl_.is_moving_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ActuatorStatus::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[18]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace common +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::common::v1::ResourceName* +Arena::CreateMaybeMessage< ::viam::common::v1::ResourceName >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::ResourceName >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::BoardStatus_AnalogsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::common::v1::BoardStatus_AnalogsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::BoardStatus_AnalogsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::BoardStatus_DigitalInterruptsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::common::v1::BoardStatus_DigitalInterruptsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::BoardStatus_DigitalInterruptsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::BoardStatus* +Arena::CreateMaybeMessage< ::viam::common::v1::BoardStatus >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::BoardStatus >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::AnalogStatus* +Arena::CreateMaybeMessage< ::viam::common::v1::AnalogStatus >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::AnalogStatus >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::DigitalInterruptStatus* +Arena::CreateMaybeMessage< ::viam::common::v1::DigitalInterruptStatus >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::DigitalInterruptStatus >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::Pose* +Arena::CreateMaybeMessage< ::viam::common::v1::Pose >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::Pose >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::Orientation* +Arena::CreateMaybeMessage< ::viam::common::v1::Orientation >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::Orientation >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::PoseInFrame* +Arena::CreateMaybeMessage< ::viam::common::v1::PoseInFrame >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::PoseInFrame >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::Vector3* +Arena::CreateMaybeMessage< ::viam::common::v1::Vector3 >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::Vector3 >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::Sphere* +Arena::CreateMaybeMessage< ::viam::common::v1::Sphere >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::Sphere >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::RectangularPrism* +Arena::CreateMaybeMessage< ::viam::common::v1::RectangularPrism >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::RectangularPrism >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::Geometry* +Arena::CreateMaybeMessage< ::viam::common::v1::Geometry >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::Geometry >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::GeometriesInFrame* +Arena::CreateMaybeMessage< ::viam::common::v1::GeometriesInFrame >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::GeometriesInFrame >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::PointCloudObject* +Arena::CreateMaybeMessage< ::viam::common::v1::PointCloudObject >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::PointCloudObject >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::GeoPoint* +Arena::CreateMaybeMessage< ::viam::common::v1::GeoPoint >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::GeoPoint >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::Transform* +Arena::CreateMaybeMessage< ::viam::common::v1::Transform >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::Transform >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::WorldState* +Arena::CreateMaybeMessage< ::viam::common::v1::WorldState >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::WorldState >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::ActuatorStatus* +Arena::CreateMaybeMessage< ::viam::common::v1::ActuatorStatus >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::ActuatorStatus >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/common/v1/common.pb.h b/src/gen/common/v1/common.pb.h new file mode 100644 index 000000000..de3fea894 --- /dev/null +++ b/src/gen/common/v1/common.pb.h @@ -0,0 +1,4974 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: common/v1/common.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_common_2fv1_2fcommon_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_common_2fv1_2fcommon_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 // IWYU pragma: export +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_common_2fv1_2fcommon_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_common_2fv1_2fcommon_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_common_2fv1_2fcommon_2eproto; +namespace viam { +namespace common { +namespace v1 { +class ActuatorStatus; +struct ActuatorStatusDefaultTypeInternal; +extern ActuatorStatusDefaultTypeInternal _ActuatorStatus_default_instance_; +class AnalogStatus; +struct AnalogStatusDefaultTypeInternal; +extern AnalogStatusDefaultTypeInternal _AnalogStatus_default_instance_; +class BoardStatus; +struct BoardStatusDefaultTypeInternal; +extern BoardStatusDefaultTypeInternal _BoardStatus_default_instance_; +class BoardStatus_AnalogsEntry_DoNotUse; +struct BoardStatus_AnalogsEntry_DoNotUseDefaultTypeInternal; +extern BoardStatus_AnalogsEntry_DoNotUseDefaultTypeInternal _BoardStatus_AnalogsEntry_DoNotUse_default_instance_; +class BoardStatus_DigitalInterruptsEntry_DoNotUse; +struct BoardStatus_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal; +extern BoardStatus_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal _BoardStatus_DigitalInterruptsEntry_DoNotUse_default_instance_; +class DigitalInterruptStatus; +struct DigitalInterruptStatusDefaultTypeInternal; +extern DigitalInterruptStatusDefaultTypeInternal _DigitalInterruptStatus_default_instance_; +class GeoPoint; +struct GeoPointDefaultTypeInternal; +extern GeoPointDefaultTypeInternal _GeoPoint_default_instance_; +class GeometriesInFrame; +struct GeometriesInFrameDefaultTypeInternal; +extern GeometriesInFrameDefaultTypeInternal _GeometriesInFrame_default_instance_; +class Geometry; +struct GeometryDefaultTypeInternal; +extern GeometryDefaultTypeInternal _Geometry_default_instance_; +class Orientation; +struct OrientationDefaultTypeInternal; +extern OrientationDefaultTypeInternal _Orientation_default_instance_; +class PointCloudObject; +struct PointCloudObjectDefaultTypeInternal; +extern PointCloudObjectDefaultTypeInternal _PointCloudObject_default_instance_; +class Pose; +struct PoseDefaultTypeInternal; +extern PoseDefaultTypeInternal _Pose_default_instance_; +class PoseInFrame; +struct PoseInFrameDefaultTypeInternal; +extern PoseInFrameDefaultTypeInternal _PoseInFrame_default_instance_; +class RectangularPrism; +struct RectangularPrismDefaultTypeInternal; +extern RectangularPrismDefaultTypeInternal _RectangularPrism_default_instance_; +class ResourceName; +struct ResourceNameDefaultTypeInternal; +extern ResourceNameDefaultTypeInternal _ResourceName_default_instance_; +class Sphere; +struct SphereDefaultTypeInternal; +extern SphereDefaultTypeInternal _Sphere_default_instance_; +class Transform; +struct TransformDefaultTypeInternal; +extern TransformDefaultTypeInternal _Transform_default_instance_; +class Vector3; +struct Vector3DefaultTypeInternal; +extern Vector3DefaultTypeInternal _Vector3_default_instance_; +class WorldState; +struct WorldStateDefaultTypeInternal; +extern WorldStateDefaultTypeInternal _WorldState_default_instance_; +} // namespace v1 +} // namespace common +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::common::v1::ActuatorStatus* Arena::CreateMaybeMessage<::viam::common::v1::ActuatorStatus>(Arena*); +template<> ::viam::common::v1::AnalogStatus* Arena::CreateMaybeMessage<::viam::common::v1::AnalogStatus>(Arena*); +template<> ::viam::common::v1::BoardStatus* Arena::CreateMaybeMessage<::viam::common::v1::BoardStatus>(Arena*); +template<> ::viam::common::v1::BoardStatus_AnalogsEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::common::v1::BoardStatus_AnalogsEntry_DoNotUse>(Arena*); +template<> ::viam::common::v1::BoardStatus_DigitalInterruptsEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::common::v1::BoardStatus_DigitalInterruptsEntry_DoNotUse>(Arena*); +template<> ::viam::common::v1::DigitalInterruptStatus* Arena::CreateMaybeMessage<::viam::common::v1::DigitalInterruptStatus>(Arena*); +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::Orientation* Arena::CreateMaybeMessage<::viam::common::v1::Orientation>(Arena*); +template<> ::viam::common::v1::PointCloudObject* Arena::CreateMaybeMessage<::viam::common::v1::PointCloudObject>(Arena*); +template<> ::viam::common::v1::Pose* Arena::CreateMaybeMessage<::viam::common::v1::Pose>(Arena*); +template<> ::viam::common::v1::PoseInFrame* Arena::CreateMaybeMessage<::viam::common::v1::PoseInFrame>(Arena*); +template<> ::viam::common::v1::RectangularPrism* Arena::CreateMaybeMessage<::viam::common::v1::RectangularPrism>(Arena*); +template<> ::viam::common::v1::ResourceName* Arena::CreateMaybeMessage<::viam::common::v1::ResourceName>(Arena*); +template<> ::viam::common::v1::Sphere* Arena::CreateMaybeMessage<::viam::common::v1::Sphere>(Arena*); +template<> ::viam::common::v1::Transform* Arena::CreateMaybeMessage<::viam::common::v1::Transform>(Arena*); +template<> ::viam::common::v1::Vector3* Arena::CreateMaybeMessage<::viam::common::v1::Vector3>(Arena*); +template<> ::viam::common::v1::WorldState* Arena::CreateMaybeMessage<::viam::common::v1::WorldState>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace common { +namespace v1 { + +// =================================================================== + +class ResourceName final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.ResourceName) */ { + public: + inline ResourceName() : ResourceName(nullptr) {} + ~ResourceName() override; + explicit PROTOBUF_CONSTEXPR ResourceName(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ResourceName(const ResourceName& from); + ResourceName(ResourceName&& from) noexcept + : ResourceName() { + *this = ::std::move(from); + } + + inline ResourceName& operator=(const ResourceName& from) { + CopyFrom(from); + return *this; + } + inline ResourceName& operator=(ResourceName&& 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 ResourceName& default_instance() { + return *internal_default_instance(); + } + static inline const ResourceName* internal_default_instance() { + return reinterpret_cast( + &_ResourceName_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(ResourceName& a, ResourceName& b) { + a.Swap(&b); + } + inline void Swap(ResourceName* 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(ResourceName* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ResourceName* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResourceName& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ResourceName& from) { + ResourceName::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ResourceName* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.ResourceName"; + } + protected: + explicit ResourceName(::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 { + kNamespaceFieldNumber = 1, + kTypeFieldNumber = 2, + kSubtypeFieldNumber = 3, + kNameFieldNumber = 4, + }; + // string namespace = 1 [json_name = "namespace"]; + void clear_namespace_(); + const std::string& namespace_() const; + template + void set_namespace_(ArgT0&& arg0, ArgT... args); + std::string* mutable_namespace_(); + PROTOBUF_NODISCARD std::string* release_namespace_(); + void set_allocated_namespace_(std::string* namespace_); + private: + const std::string& _internal_namespace_() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_namespace_(const std::string& value); + std::string* _internal_mutable_namespace_(); + public: + + // string type = 2 [json_name = "type"]; + void clear_type(); + const std::string& type() const; + template + void set_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_type(); + PROTOBUF_NODISCARD std::string* release_type(); + void set_allocated_type(std::string* type); + private: + const std::string& _internal_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); + std::string* _internal_mutable_type(); + public: + + // string subtype = 3 [json_name = "subtype"]; + void clear_subtype(); + const std::string& subtype() const; + template + void set_subtype(ArgT0&& arg0, ArgT... args); + std::string* mutable_subtype(); + PROTOBUF_NODISCARD std::string* release_subtype(); + void set_allocated_subtype(std::string* subtype); + private: + const std::string& _internal_subtype() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_subtype(const std::string& value); + std::string* _internal_mutable_subtype(); + public: + + // string name = 4 [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: + + // @@protoc_insertion_point(class_scope:viam.common.v1.ResourceName) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr namespace__; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subtype_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class BoardStatus_AnalogsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + BoardStatus_AnalogsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR BoardStatus_AnalogsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit BoardStatus_AnalogsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const BoardStatus_AnalogsEntry_DoNotUse& other); + static const BoardStatus_AnalogsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_BoardStatus_AnalogsEntry_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.BoardStatus.AnalogsEntry.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 BoardStatus_DigitalInterruptsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + BoardStatus_DigitalInterruptsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR BoardStatus_DigitalInterruptsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit BoardStatus_DigitalInterruptsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const BoardStatus_DigitalInterruptsEntry_DoNotUse& other); + static const BoardStatus_DigitalInterruptsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_BoardStatus_DigitalInterruptsEntry_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.BoardStatus.DigitalInterruptsEntry.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 BoardStatus final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.BoardStatus) */ { + public: + inline BoardStatus() : BoardStatus(nullptr) {} + ~BoardStatus() override; + explicit PROTOBUF_CONSTEXPR BoardStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + BoardStatus(const BoardStatus& from); + BoardStatus(BoardStatus&& from) noexcept + : BoardStatus() { + *this = ::std::move(from); + } + + inline BoardStatus& operator=(const BoardStatus& from) { + CopyFrom(from); + return *this; + } + inline BoardStatus& operator=(BoardStatus&& 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 BoardStatus& default_instance() { + return *internal_default_instance(); + } + static inline const BoardStatus* internal_default_instance() { + return reinterpret_cast( + &_BoardStatus_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(BoardStatus& a, BoardStatus& b) { + a.Swap(&b); + } + inline void Swap(BoardStatus* 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(BoardStatus* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BoardStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const BoardStatus& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const BoardStatus& from) { + BoardStatus::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BoardStatus* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.BoardStatus"; + } + protected: + explicit BoardStatus(::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 { + kAnalogsFieldNumber = 1, + kDigitalInterruptsFieldNumber = 2, + }; + // map analogs = 1 [json_name = "analogs"]; + int analogs_size() const; + private: + int _internal_analogs_size() const; + public: + void clear_analogs(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::AnalogStatus >& + _internal_analogs() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::AnalogStatus >* + _internal_mutable_analogs(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::AnalogStatus >& + analogs() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::AnalogStatus >* + mutable_analogs(); + + // map digital_interrupts = 2 [json_name = "digitalInterrupts"]; + int digital_interrupts_size() const; + private: + int _internal_digital_interrupts_size() const; + public: + void clear_digital_interrupts(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::DigitalInterruptStatus >& + _internal_digital_interrupts() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::DigitalInterruptStatus >* + _internal_mutable_digital_interrupts(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::DigitalInterruptStatus >& + digital_interrupts() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::DigitalInterruptStatus >* + mutable_digital_interrupts(); + + // @@protoc_insertion_point(class_scope:viam.common.v1.BoardStatus) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + BoardStatus_AnalogsEntry_DoNotUse, + std::string, ::viam::common::v1::AnalogStatus, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> analogs_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + BoardStatus_DigitalInterruptsEntry_DoNotUse, + std::string, ::viam::common::v1::DigitalInterruptStatus, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> digital_interrupts_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class AnalogStatus final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.AnalogStatus) */ { + public: + inline AnalogStatus() : AnalogStatus(nullptr) {} + ~AnalogStatus() override; + explicit PROTOBUF_CONSTEXPR AnalogStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AnalogStatus(const AnalogStatus& from); + AnalogStatus(AnalogStatus&& from) noexcept + : AnalogStatus() { + *this = ::std::move(from); + } + + inline AnalogStatus& operator=(const AnalogStatus& from) { + CopyFrom(from); + return *this; + } + inline AnalogStatus& operator=(AnalogStatus&& 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 AnalogStatus& default_instance() { + return *internal_default_instance(); + } + static inline const AnalogStatus* internal_default_instance() { + return reinterpret_cast( + &_AnalogStatus_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(AnalogStatus& a, AnalogStatus& b) { + a.Swap(&b); + } + inline void Swap(AnalogStatus* 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(AnalogStatus* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AnalogStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AnalogStatus& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const AnalogStatus& from) { + AnalogStatus::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AnalogStatus* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.AnalogStatus"; + } + protected: + explicit AnalogStatus(::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 { + kValueFieldNumber = 1, + }; + // int32 value = 1 [json_name = "value"]; + void clear_value(); + int32_t value() const; + void set_value(int32_t value); + private: + int32_t _internal_value() const; + void _internal_set_value(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.common.v1.AnalogStatus) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + int32_t value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class DigitalInterruptStatus final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.DigitalInterruptStatus) */ { + public: + inline DigitalInterruptStatus() : DigitalInterruptStatus(nullptr) {} + ~DigitalInterruptStatus() override; + explicit PROTOBUF_CONSTEXPR DigitalInterruptStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DigitalInterruptStatus(const DigitalInterruptStatus& from); + DigitalInterruptStatus(DigitalInterruptStatus&& from) noexcept + : DigitalInterruptStatus() { + *this = ::std::move(from); + } + + inline DigitalInterruptStatus& operator=(const DigitalInterruptStatus& from) { + CopyFrom(from); + return *this; + } + inline DigitalInterruptStatus& operator=(DigitalInterruptStatus&& 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 DigitalInterruptStatus& default_instance() { + return *internal_default_instance(); + } + static inline const DigitalInterruptStatus* internal_default_instance() { + return reinterpret_cast( + &_DigitalInterruptStatus_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(DigitalInterruptStatus& a, DigitalInterruptStatus& b) { + a.Swap(&b); + } + inline void Swap(DigitalInterruptStatus* 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(DigitalInterruptStatus* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DigitalInterruptStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DigitalInterruptStatus& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DigitalInterruptStatus& from) { + DigitalInterruptStatus::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DigitalInterruptStatus* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.DigitalInterruptStatus"; + } + protected: + explicit DigitalInterruptStatus(::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 { + kValueFieldNumber = 1, + }; + // int64 value = 1 [json_name = "value"]; + void clear_value(); + int64_t value() const; + void set_value(int64_t value); + private: + int64_t _internal_value() const; + void _internal_set_value(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.common.v1.DigitalInterruptStatus) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + int64_t value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class Pose final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Pose) */ { + public: + inline Pose() : Pose(nullptr) {} + ~Pose() override; + explicit PROTOBUF_CONSTEXPR Pose(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Pose(const Pose& from); + Pose(Pose&& from) noexcept + : Pose() { + *this = ::std::move(from); + } + + inline Pose& operator=(const Pose& from) { + CopyFrom(from); + return *this; + } + inline Pose& operator=(Pose&& 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 Pose& default_instance() { + return *internal_default_instance(); + } + static inline const Pose* internal_default_instance() { + return reinterpret_cast( + &_Pose_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(Pose& a, Pose& b) { + a.Swap(&b); + } + inline void Swap(Pose* 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(Pose* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Pose* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Pose& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Pose& from) { + Pose::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Pose* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.Pose"; + } + protected: + explicit Pose(::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 { + kXFieldNumber = 1, + kYFieldNumber = 2, + kZFieldNumber = 3, + kOXFieldNumber = 4, + kOYFieldNumber = 5, + kOZFieldNumber = 6, + kThetaFieldNumber = 7, + }; + // double x = 1 [json_name = "x"]; + void clear_x(); + double x() const; + void set_x(double value); + private: + double _internal_x() const; + void _internal_set_x(double value); + public: + + // double y = 2 [json_name = "y"]; + void clear_y(); + double y() const; + void set_y(double value); + private: + double _internal_y() const; + void _internal_set_y(double value); + public: + + // double z = 3 [json_name = "z"]; + void clear_z(); + double z() const; + void set_z(double value); + private: + double _internal_z() const; + void _internal_set_z(double value); + public: + + // double o_x = 4 [json_name = "oX"]; + void clear_o_x(); + double o_x() const; + void set_o_x(double value); + private: + double _internal_o_x() const; + void _internal_set_o_x(double value); + public: + + // double o_y = 5 [json_name = "oY"]; + void clear_o_y(); + double o_y() const; + void set_o_y(double value); + private: + double _internal_o_y() const; + void _internal_set_o_y(double value); + public: + + // double o_z = 6 [json_name = "oZ"]; + void clear_o_z(); + double o_z() const; + void set_o_z(double value); + private: + double _internal_o_z() const; + void _internal_set_o_z(double value); + public: + + // double theta = 7 [json_name = "theta"]; + void clear_theta(); + double theta() const; + void set_theta(double value); + private: + double _internal_theta() const; + void _internal_set_theta(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.common.v1.Pose) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + double x_; + double y_; + double z_; + double o_x_; + double o_y_; + double o_z_; + double theta_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class Orientation final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Orientation) */ { + public: + inline Orientation() : Orientation(nullptr) {} + ~Orientation() override; + explicit PROTOBUF_CONSTEXPR Orientation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Orientation(const Orientation& from); + Orientation(Orientation&& from) noexcept + : Orientation() { + *this = ::std::move(from); + } + + inline Orientation& operator=(const Orientation& from) { + CopyFrom(from); + return *this; + } + inline Orientation& operator=(Orientation&& 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 Orientation& default_instance() { + return *internal_default_instance(); + } + static inline const Orientation* internal_default_instance() { + return reinterpret_cast( + &_Orientation_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(Orientation& a, Orientation& b) { + a.Swap(&b); + } + inline void Swap(Orientation* 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(Orientation* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Orientation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Orientation& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Orientation& from) { + Orientation::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Orientation* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.Orientation"; + } + protected: + explicit Orientation(::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 { + kOXFieldNumber = 1, + kOYFieldNumber = 2, + kOZFieldNumber = 3, + kThetaFieldNumber = 4, + }; + // double o_x = 1 [json_name = "oX"]; + void clear_o_x(); + double o_x() const; + void set_o_x(double value); + private: + double _internal_o_x() const; + void _internal_set_o_x(double value); + public: + + // double o_y = 2 [json_name = "oY"]; + void clear_o_y(); + double o_y() const; + void set_o_y(double value); + private: + double _internal_o_y() const; + void _internal_set_o_y(double value); + public: + + // double o_z = 3 [json_name = "oZ"]; + void clear_o_z(); + double o_z() const; + void set_o_z(double value); + private: + double _internal_o_z() const; + void _internal_set_o_z(double value); + public: + + // double theta = 4 [json_name = "theta"]; + void clear_theta(); + double theta() const; + void set_theta(double value); + private: + double _internal_theta() const; + void _internal_set_theta(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.common.v1.Orientation) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + double o_x_; + double o_y_; + double o_z_; + double theta_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class PoseInFrame final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.PoseInFrame) */ { + public: + inline PoseInFrame() : PoseInFrame(nullptr) {} + ~PoseInFrame() override; + explicit PROTOBUF_CONSTEXPR PoseInFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PoseInFrame(const PoseInFrame& from); + PoseInFrame(PoseInFrame&& from) noexcept + : PoseInFrame() { + *this = ::std::move(from); + } + + inline PoseInFrame& operator=(const PoseInFrame& from) { + CopyFrom(from); + return *this; + } + inline PoseInFrame& operator=(PoseInFrame&& 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 PoseInFrame& default_instance() { + return *internal_default_instance(); + } + static inline const PoseInFrame* internal_default_instance() { + return reinterpret_cast( + &_PoseInFrame_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(PoseInFrame& a, PoseInFrame& b) { + a.Swap(&b); + } + inline void Swap(PoseInFrame* 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(PoseInFrame* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PoseInFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PoseInFrame& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const PoseInFrame& from) { + PoseInFrame::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PoseInFrame* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.PoseInFrame"; + } + protected: + explicit PoseInFrame(::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 { + kReferenceFrameFieldNumber = 1, + kPoseFieldNumber = 2, + }; + // string reference_frame = 1 [json_name = "referenceFrame"]; + void clear_reference_frame(); + const std::string& reference_frame() const; + template + void set_reference_frame(ArgT0&& arg0, ArgT... args); + std::string* mutable_reference_frame(); + PROTOBUF_NODISCARD std::string* release_reference_frame(); + void set_allocated_reference_frame(std::string* reference_frame); + private: + const std::string& _internal_reference_frame() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_reference_frame(const std::string& value); + std::string* _internal_mutable_reference_frame(); + public: + + // .viam.common.v1.Pose pose = 2 [json_name = "pose"]; + bool has_pose() const; + private: + bool _internal_has_pose() const; + public: + void clear_pose(); + const ::viam::common::v1::Pose& pose() const; + PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_pose(); + ::viam::common::v1::Pose* mutable_pose(); + void set_allocated_pose(::viam::common::v1::Pose* pose); + private: + const ::viam::common::v1::Pose& _internal_pose() const; + ::viam::common::v1::Pose* _internal_mutable_pose(); + public: + void unsafe_arena_set_allocated_pose( + ::viam::common::v1::Pose* pose); + ::viam::common::v1::Pose* unsafe_arena_release_pose(); + + // @@protoc_insertion_point(class_scope:viam.common.v1.PoseInFrame) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reference_frame_; + ::viam::common::v1::Pose* pose_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class Vector3 final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Vector3) */ { + public: + inline Vector3() : Vector3(nullptr) {} + ~Vector3() override; + explicit PROTOBUF_CONSTEXPR Vector3(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Vector3(const Vector3& from); + Vector3(Vector3&& from) noexcept + : Vector3() { + *this = ::std::move(from); + } + + inline Vector3& operator=(const Vector3& from) { + CopyFrom(from); + return *this; + } + inline Vector3& operator=(Vector3&& 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 Vector3& default_instance() { + return *internal_default_instance(); + } + static inline const Vector3* internal_default_instance() { + return reinterpret_cast( + &_Vector3_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(Vector3& a, Vector3& b) { + a.Swap(&b); + } + inline void Swap(Vector3* 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(Vector3* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Vector3* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Vector3& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Vector3& from) { + Vector3::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Vector3* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.Vector3"; + } + protected: + explicit Vector3(::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 { + kXFieldNumber = 1, + kYFieldNumber = 2, + kZFieldNumber = 3, + }; + // double x = 1 [json_name = "x"]; + void clear_x(); + double x() const; + void set_x(double value); + private: + double _internal_x() const; + void _internal_set_x(double value); + public: + + // double y = 2 [json_name = "y"]; + void clear_y(); + double y() const; + void set_y(double value); + private: + double _internal_y() const; + void _internal_set_y(double value); + public: + + // double z = 3 [json_name = "z"]; + void clear_z(); + double z() const; + void set_z(double value); + private: + double _internal_z() const; + void _internal_set_z(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.common.v1.Vector3) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + double x_; + double y_; + double z_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class Sphere final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Sphere) */ { + public: + inline Sphere() : Sphere(nullptr) {} + ~Sphere() override; + explicit PROTOBUF_CONSTEXPR Sphere(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Sphere(const Sphere& from); + Sphere(Sphere&& from) noexcept + : Sphere() { + *this = ::std::move(from); + } + + inline Sphere& operator=(const Sphere& from) { + CopyFrom(from); + return *this; + } + inline Sphere& operator=(Sphere&& 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 Sphere& default_instance() { + return *internal_default_instance(); + } + static inline const Sphere* internal_default_instance() { + return reinterpret_cast( + &_Sphere_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(Sphere& a, Sphere& b) { + a.Swap(&b); + } + inline void Swap(Sphere* 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(Sphere* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Sphere* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Sphere& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Sphere& from) { + Sphere::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Sphere* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.Sphere"; + } + protected: + explicit Sphere(::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 { + kRadiusMmFieldNumber = 1, + }; + // double radius_mm = 1 [json_name = "radiusMm"]; + void clear_radius_mm(); + double radius_mm() const; + void set_radius_mm(double value); + private: + double _internal_radius_mm() const; + void _internal_set_radius_mm(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.common.v1.Sphere) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + double radius_mm_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class RectangularPrism final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.RectangularPrism) */ { + public: + inline RectangularPrism() : RectangularPrism(nullptr) {} + ~RectangularPrism() override; + explicit PROTOBUF_CONSTEXPR RectangularPrism(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RectangularPrism(const RectangularPrism& from); + RectangularPrism(RectangularPrism&& from) noexcept + : RectangularPrism() { + *this = ::std::move(from); + } + + inline RectangularPrism& operator=(const RectangularPrism& from) { + CopyFrom(from); + return *this; + } + inline RectangularPrism& operator=(RectangularPrism&& 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 RectangularPrism& default_instance() { + return *internal_default_instance(); + } + static inline const RectangularPrism* internal_default_instance() { + return reinterpret_cast( + &_RectangularPrism_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(RectangularPrism& a, RectangularPrism& b) { + a.Swap(&b); + } + inline void Swap(RectangularPrism* 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(RectangularPrism* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RectangularPrism* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RectangularPrism& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RectangularPrism& from) { + RectangularPrism::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RectangularPrism* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.RectangularPrism"; + } + protected: + explicit RectangularPrism(::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 { + kDimsMmFieldNumber = 1, + }; + // .viam.common.v1.Vector3 dims_mm = 1 [json_name = "dimsMm"]; + bool has_dims_mm() const; + private: + bool _internal_has_dims_mm() const; + public: + void clear_dims_mm(); + const ::viam::common::v1::Vector3& dims_mm() const; + PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_dims_mm(); + ::viam::common::v1::Vector3* mutable_dims_mm(); + void set_allocated_dims_mm(::viam::common::v1::Vector3* dims_mm); + private: + const ::viam::common::v1::Vector3& _internal_dims_mm() const; + ::viam::common::v1::Vector3* _internal_mutable_dims_mm(); + public: + void unsafe_arena_set_allocated_dims_mm( + ::viam::common::v1::Vector3* dims_mm); + ::viam::common::v1::Vector3* unsafe_arena_release_dims_mm(); + + // @@protoc_insertion_point(class_scope:viam.common.v1.RectangularPrism) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::common::v1::Vector3* dims_mm_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class Geometry final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Geometry) */ { + public: + inline Geometry() : Geometry(nullptr) {} + ~Geometry() override; + explicit PROTOBUF_CONSTEXPR Geometry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Geometry(const Geometry& from); + Geometry(Geometry&& from) noexcept + : Geometry() { + *this = ::std::move(from); + } + + inline Geometry& operator=(const Geometry& from) { + CopyFrom(from); + return *this; + } + inline Geometry& operator=(Geometry&& 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 Geometry& default_instance() { + return *internal_default_instance(); + } + enum GeometryTypeCase { + kSphere = 2, + kBox = 3, + GEOMETRY_TYPE_NOT_SET = 0, + }; + + static inline const Geometry* internal_default_instance() { + return reinterpret_cast( + &_Geometry_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(Geometry& a, Geometry& b) { + a.Swap(&b); + } + inline void Swap(Geometry* 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(Geometry* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Geometry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Geometry& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Geometry& from) { + Geometry::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Geometry* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.Geometry"; + } + protected: + explicit Geometry(::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 { + kLabelFieldNumber = 4, + kCenterFieldNumber = 1, + kSphereFieldNumber = 2, + kBoxFieldNumber = 3, + }; + // string label = 4 [json_name = "label"]; + void clear_label(); + const std::string& label() const; + template + void set_label(ArgT0&& arg0, ArgT... args); + std::string* mutable_label(); + PROTOBUF_NODISCARD std::string* release_label(); + void set_allocated_label(std::string* label); + private: + const std::string& _internal_label() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_label(const std::string& value); + std::string* _internal_mutable_label(); + public: + + // .viam.common.v1.Pose center = 1 [json_name = "center"]; + bool has_center() const; + private: + bool _internal_has_center() const; + public: + void clear_center(); + const ::viam::common::v1::Pose& center() const; + PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_center(); + ::viam::common::v1::Pose* mutable_center(); + void set_allocated_center(::viam::common::v1::Pose* center); + private: + const ::viam::common::v1::Pose& _internal_center() const; + ::viam::common::v1::Pose* _internal_mutable_center(); + public: + void unsafe_arena_set_allocated_center( + ::viam::common::v1::Pose* center); + ::viam::common::v1::Pose* unsafe_arena_release_center(); + + // .viam.common.v1.Sphere sphere = 2 [json_name = "sphere"]; + bool has_sphere() const; + private: + bool _internal_has_sphere() const; + public: + void clear_sphere(); + const ::viam::common::v1::Sphere& sphere() const; + PROTOBUF_NODISCARD ::viam::common::v1::Sphere* release_sphere(); + ::viam::common::v1::Sphere* mutable_sphere(); + void set_allocated_sphere(::viam::common::v1::Sphere* sphere); + private: + const ::viam::common::v1::Sphere& _internal_sphere() const; + ::viam::common::v1::Sphere* _internal_mutable_sphere(); + public: + void unsafe_arena_set_allocated_sphere( + ::viam::common::v1::Sphere* sphere); + ::viam::common::v1::Sphere* unsafe_arena_release_sphere(); + + // .viam.common.v1.RectangularPrism box = 3 [json_name = "box"]; + bool has_box() const; + private: + bool _internal_has_box() const; + public: + void clear_box(); + const ::viam::common::v1::RectangularPrism& box() const; + PROTOBUF_NODISCARD ::viam::common::v1::RectangularPrism* release_box(); + ::viam::common::v1::RectangularPrism* mutable_box(); + void set_allocated_box(::viam::common::v1::RectangularPrism* box); + private: + const ::viam::common::v1::RectangularPrism& _internal_box() const; + ::viam::common::v1::RectangularPrism* _internal_mutable_box(); + public: + void unsafe_arena_set_allocated_box( + ::viam::common::v1::RectangularPrism* box); + ::viam::common::v1::RectangularPrism* unsafe_arena_release_box(); + + void clear_geometry_type(); + GeometryTypeCase geometry_type_case() const; + // @@protoc_insertion_point(class_scope:viam.common.v1.Geometry) + private: + class _Internal; + void set_has_sphere(); + void set_has_box(); + + inline bool has_geometry_type() const; + inline void clear_has_geometry_type(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr label_; + ::viam::common::v1::Pose* center_; + union GeometryTypeUnion { + constexpr GeometryTypeUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::viam::common::v1::Sphere* sphere_; + ::viam::common::v1::RectangularPrism* box_; + } geometry_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class GeometriesInFrame final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GeometriesInFrame) */ { + public: + inline GeometriesInFrame() : GeometriesInFrame(nullptr) {} + ~GeometriesInFrame() override; + explicit PROTOBUF_CONSTEXPR GeometriesInFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GeometriesInFrame(const GeometriesInFrame& from); + GeometriesInFrame(GeometriesInFrame&& from) noexcept + : GeometriesInFrame() { + *this = ::std::move(from); + } + + inline GeometriesInFrame& operator=(const GeometriesInFrame& from) { + CopyFrom(from); + return *this; + } + inline GeometriesInFrame& operator=(GeometriesInFrame&& 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 GeometriesInFrame& default_instance() { + return *internal_default_instance(); + } + static inline const GeometriesInFrame* internal_default_instance() { + return reinterpret_cast( + &_GeometriesInFrame_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(GeometriesInFrame& a, GeometriesInFrame& b) { + a.Swap(&b); + } + inline void Swap(GeometriesInFrame* 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(GeometriesInFrame* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GeometriesInFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GeometriesInFrame& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GeometriesInFrame& from) { + GeometriesInFrame::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GeometriesInFrame* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.GeometriesInFrame"; + } + protected: + explicit GeometriesInFrame(::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 { + kGeometriesFieldNumber = 2, + kReferenceFrameFieldNumber = 1, + }; + // repeated .viam.common.v1.Geometry geometries = 2 [json_name = "geometries"]; + int geometries_size() const; + private: + int _internal_geometries_size() const; + public: + void clear_geometries(); + ::viam::common::v1::Geometry* mutable_geometries(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >* + mutable_geometries(); + private: + const ::viam::common::v1::Geometry& _internal_geometries(int index) const; + ::viam::common::v1::Geometry* _internal_add_geometries(); + public: + const ::viam::common::v1::Geometry& geometries(int index) const; + ::viam::common::v1::Geometry* add_geometries(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >& + geometries() const; + + // string reference_frame = 1 [json_name = "referenceFrame"]; + void clear_reference_frame(); + const std::string& reference_frame() const; + template + void set_reference_frame(ArgT0&& arg0, ArgT... args); + std::string* mutable_reference_frame(); + PROTOBUF_NODISCARD std::string* release_reference_frame(); + void set_allocated_reference_frame(std::string* reference_frame); + private: + const std::string& _internal_reference_frame() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_reference_frame(const std::string& value); + std::string* _internal_mutable_reference_frame(); + public: + + // @@protoc_insertion_point(class_scope:viam.common.v1.GeometriesInFrame) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry > geometries_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reference_frame_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class PointCloudObject final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.PointCloudObject) */ { + public: + inline PointCloudObject() : PointCloudObject(nullptr) {} + ~PointCloudObject() override; + explicit PROTOBUF_CONSTEXPR PointCloudObject(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PointCloudObject(const PointCloudObject& from); + PointCloudObject(PointCloudObject&& from) noexcept + : PointCloudObject() { + *this = ::std::move(from); + } + + inline PointCloudObject& operator=(const PointCloudObject& from) { + CopyFrom(from); + return *this; + } + inline PointCloudObject& operator=(PointCloudObject&& 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 PointCloudObject& default_instance() { + return *internal_default_instance(); + } + static inline const PointCloudObject* internal_default_instance() { + return reinterpret_cast( + &_PointCloudObject_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(PointCloudObject& a, PointCloudObject& b) { + a.Swap(&b); + } + inline void Swap(PointCloudObject* 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(PointCloudObject* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PointCloudObject* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PointCloudObject& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const PointCloudObject& from) { + PointCloudObject::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PointCloudObject* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.PointCloudObject"; + } + protected: + explicit PointCloudObject(::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 { + kPointCloudFieldNumber = 1, + kGeometriesFieldNumber = 2, + }; + // bytes point_cloud = 1 [json_name = "pointCloud"]; + void clear_point_cloud(); + const std::string& point_cloud() const; + template + void set_point_cloud(ArgT0&& arg0, ArgT... args); + std::string* mutable_point_cloud(); + PROTOBUF_NODISCARD std::string* release_point_cloud(); + void set_allocated_point_cloud(std::string* point_cloud); + private: + const std::string& _internal_point_cloud() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_point_cloud(const std::string& value); + std::string* _internal_mutable_point_cloud(); + public: + + // .viam.common.v1.GeometriesInFrame geometries = 2 [json_name = "geometries"]; + bool has_geometries() const; + private: + bool _internal_has_geometries() const; + public: + void clear_geometries(); + const ::viam::common::v1::GeometriesInFrame& geometries() const; + PROTOBUF_NODISCARD ::viam::common::v1::GeometriesInFrame* release_geometries(); + ::viam::common::v1::GeometriesInFrame* mutable_geometries(); + void set_allocated_geometries(::viam::common::v1::GeometriesInFrame* geometries); + private: + const ::viam::common::v1::GeometriesInFrame& _internal_geometries() const; + ::viam::common::v1::GeometriesInFrame* _internal_mutable_geometries(); + public: + void unsafe_arena_set_allocated_geometries( + ::viam::common::v1::GeometriesInFrame* geometries); + ::viam::common::v1::GeometriesInFrame* unsafe_arena_release_geometries(); + + // @@protoc_insertion_point(class_scope:viam.common.v1.PointCloudObject) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr point_cloud_; + ::viam::common::v1::GeometriesInFrame* geometries_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class GeoPoint final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GeoPoint) */ { + public: + inline GeoPoint() : GeoPoint(nullptr) {} + ~GeoPoint() override; + explicit PROTOBUF_CONSTEXPR GeoPoint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GeoPoint(const GeoPoint& from); + GeoPoint(GeoPoint&& from) noexcept + : GeoPoint() { + *this = ::std::move(from); + } + + inline GeoPoint& operator=(const GeoPoint& from) { + CopyFrom(from); + return *this; + } + inline GeoPoint& operator=(GeoPoint&& 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 GeoPoint& default_instance() { + return *internal_default_instance(); + } + static inline const GeoPoint* internal_default_instance() { + return reinterpret_cast( + &_GeoPoint_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(GeoPoint& a, GeoPoint& b) { + a.Swap(&b); + } + inline void Swap(GeoPoint* 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(GeoPoint* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GeoPoint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GeoPoint& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GeoPoint& from) { + GeoPoint::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GeoPoint* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.GeoPoint"; + } + protected: + explicit GeoPoint(::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 { + kLatitudeFieldNumber = 1, + kLongitudeFieldNumber = 2, + }; + // double latitude = 1 [json_name = "latitude"]; + void clear_latitude(); + double latitude() const; + void set_latitude(double value); + private: + double _internal_latitude() const; + void _internal_set_latitude(double value); + public: + + // double longitude = 2 [json_name = "longitude"]; + void clear_longitude(); + double longitude() const; + void set_longitude(double value); + private: + double _internal_longitude() const; + void _internal_set_longitude(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.common.v1.GeoPoint) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + double latitude_; + double longitude_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class Transform final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Transform) */ { + public: + inline Transform() : Transform(nullptr) {} + ~Transform() override; + explicit PROTOBUF_CONSTEXPR Transform(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Transform(const Transform& from); + Transform(Transform&& from) noexcept + : Transform() { + *this = ::std::move(from); + } + + inline Transform& operator=(const Transform& from) { + CopyFrom(from); + return *this; + } + inline Transform& operator=(Transform&& 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 Transform& default_instance() { + return *internal_default_instance(); + } + static inline const Transform* internal_default_instance() { + return reinterpret_cast( + &_Transform_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + friend void swap(Transform& a, Transform& b) { + a.Swap(&b); + } + inline void Swap(Transform* 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(Transform* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Transform* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Transform& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Transform& from) { + Transform::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Transform* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.Transform"; + } + protected: + explicit Transform(::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 { + kReferenceFrameFieldNumber = 1, + kPoseInObserverFrameFieldNumber = 2, + }; + // string reference_frame = 1 [json_name = "referenceFrame"]; + void clear_reference_frame(); + const std::string& reference_frame() const; + template + void set_reference_frame(ArgT0&& arg0, ArgT... args); + std::string* mutable_reference_frame(); + PROTOBUF_NODISCARD std::string* release_reference_frame(); + void set_allocated_reference_frame(std::string* reference_frame); + private: + const std::string& _internal_reference_frame() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_reference_frame(const std::string& value); + std::string* _internal_mutable_reference_frame(); + public: + + // .viam.common.v1.PoseInFrame pose_in_observer_frame = 2 [json_name = "poseInObserverFrame"]; + bool has_pose_in_observer_frame() const; + private: + bool _internal_has_pose_in_observer_frame() const; + public: + void clear_pose_in_observer_frame(); + const ::viam::common::v1::PoseInFrame& pose_in_observer_frame() const; + PROTOBUF_NODISCARD ::viam::common::v1::PoseInFrame* release_pose_in_observer_frame(); + ::viam::common::v1::PoseInFrame* mutable_pose_in_observer_frame(); + void set_allocated_pose_in_observer_frame(::viam::common::v1::PoseInFrame* pose_in_observer_frame); + private: + const ::viam::common::v1::PoseInFrame& _internal_pose_in_observer_frame() const; + ::viam::common::v1::PoseInFrame* _internal_mutable_pose_in_observer_frame(); + public: + void unsafe_arena_set_allocated_pose_in_observer_frame( + ::viam::common::v1::PoseInFrame* pose_in_observer_frame); + ::viam::common::v1::PoseInFrame* unsafe_arena_release_pose_in_observer_frame(); + + // @@protoc_insertion_point(class_scope:viam.common.v1.Transform) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reference_frame_; + ::viam::common::v1::PoseInFrame* pose_in_observer_frame_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class WorldState final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.WorldState) */ { + public: + inline WorldState() : WorldState(nullptr) {} + ~WorldState() override; + explicit PROTOBUF_CONSTEXPR WorldState(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + WorldState(const WorldState& from); + WorldState(WorldState&& from) noexcept + : WorldState() { + *this = ::std::move(from); + } + + inline WorldState& operator=(const WorldState& from) { + CopyFrom(from); + return *this; + } + inline WorldState& operator=(WorldState&& 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 WorldState& default_instance() { + return *internal_default_instance(); + } + static inline const WorldState* internal_default_instance() { + return reinterpret_cast( + &_WorldState_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + friend void swap(WorldState& a, WorldState& b) { + a.Swap(&b); + } + inline void Swap(WorldState* 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(WorldState* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + WorldState* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const WorldState& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const WorldState& from) { + WorldState::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorldState* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.WorldState"; + } + protected: + explicit WorldState(::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 { + kObstaclesFieldNumber = 1, + kInteractionSpacesFieldNumber = 2, + kTransformsFieldNumber = 3, + }; + // repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"]; + int obstacles_size() const; + private: + int _internal_obstacles_size() const; + public: + void clear_obstacles(); + ::viam::common::v1::GeometriesInFrame* mutable_obstacles(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeometriesInFrame >* + mutable_obstacles(); + private: + const ::viam::common::v1::GeometriesInFrame& _internal_obstacles(int index) const; + ::viam::common::v1::GeometriesInFrame* _internal_add_obstacles(); + public: + const ::viam::common::v1::GeometriesInFrame& obstacles(int index) const; + ::viam::common::v1::GeometriesInFrame* add_obstacles(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeometriesInFrame >& + obstacles() const; + + // repeated .viam.common.v1.GeometriesInFrame interaction_spaces = 2 [json_name = "interactionSpaces"]; + int interaction_spaces_size() const; + private: + int _internal_interaction_spaces_size() const; + public: + void clear_interaction_spaces(); + ::viam::common::v1::GeometriesInFrame* mutable_interaction_spaces(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeometriesInFrame >* + mutable_interaction_spaces(); + private: + const ::viam::common::v1::GeometriesInFrame& _internal_interaction_spaces(int index) const; + ::viam::common::v1::GeometriesInFrame* _internal_add_interaction_spaces(); + public: + const ::viam::common::v1::GeometriesInFrame& interaction_spaces(int index) const; + ::viam::common::v1::GeometriesInFrame* add_interaction_spaces(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeometriesInFrame >& + interaction_spaces() const; + + // repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"]; + int transforms_size() const; + private: + int _internal_transforms_size() const; + public: + void clear_transforms(); + ::viam::common::v1::Transform* mutable_transforms(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >* + mutable_transforms(); + private: + const ::viam::common::v1::Transform& _internal_transforms(int index) const; + ::viam::common::v1::Transform* _internal_add_transforms(); + public: + const ::viam::common::v1::Transform& transforms(int index) const; + ::viam::common::v1::Transform* add_transforms(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >& + transforms() const; + + // @@protoc_insertion_point(class_scope:viam.common.v1.WorldState) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeometriesInFrame > obstacles_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeometriesInFrame > interaction_spaces_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform > transforms_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class ActuatorStatus final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.ActuatorStatus) */ { + public: + inline ActuatorStatus() : ActuatorStatus(nullptr) {} + ~ActuatorStatus() override; + explicit PROTOBUF_CONSTEXPR ActuatorStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ActuatorStatus(const ActuatorStatus& from); + ActuatorStatus(ActuatorStatus&& from) noexcept + : ActuatorStatus() { + *this = ::std::move(from); + } + + inline ActuatorStatus& operator=(const ActuatorStatus& from) { + CopyFrom(from); + return *this; + } + inline ActuatorStatus& operator=(ActuatorStatus&& 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 ActuatorStatus& default_instance() { + return *internal_default_instance(); + } + static inline const ActuatorStatus* internal_default_instance() { + return reinterpret_cast( + &_ActuatorStatus_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + friend void swap(ActuatorStatus& a, ActuatorStatus& b) { + a.Swap(&b); + } + inline void Swap(ActuatorStatus* 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(ActuatorStatus* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ActuatorStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ActuatorStatus& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ActuatorStatus& from) { + ActuatorStatus::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ActuatorStatus* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.ActuatorStatus"; + } + protected: + explicit ActuatorStatus(::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 { + kIsMovingFieldNumber = 1, + }; + // bool is_moving = 1 [json_name = "isMoving"]; + void clear_is_moving(); + bool is_moving() const; + void set_is_moving(bool value); + private: + bool _internal_is_moving() const; + void _internal_set_is_moving(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.common.v1.ActuatorStatus) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + bool is_moving_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ResourceName + +// string namespace = 1 [json_name = "namespace"]; +inline void ResourceName::clear_namespace_() { + _impl_.namespace__.ClearToEmpty(); +} +inline const std::string& ResourceName::namespace_() const { + // @@protoc_insertion_point(field_get:viam.common.v1.ResourceName.namespace) + return _internal_namespace_(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceName::set_namespace_(ArgT0&& arg0, ArgT... args) { + + _impl_.namespace__.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.common.v1.ResourceName.namespace) +} +inline std::string* ResourceName::mutable_namespace_() { + std::string* _s = _internal_mutable_namespace_(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.ResourceName.namespace) + return _s; +} +inline const std::string& ResourceName::_internal_namespace_() const { + return _impl_.namespace__.Get(); +} +inline void ResourceName::_internal_set_namespace_(const std::string& value) { + + _impl_.namespace__.Set(value, GetArenaForAllocation()); +} +inline std::string* ResourceName::_internal_mutable_namespace_() { + + return _impl_.namespace__.Mutable(GetArenaForAllocation()); +} +inline std::string* ResourceName::release_namespace_() { + // @@protoc_insertion_point(field_release:viam.common.v1.ResourceName.namespace) + return _impl_.namespace__.Release(); +} +inline void ResourceName::set_allocated_namespace_(std::string* namespace_) { + if (namespace_ != nullptr) { + + } else { + + } + _impl_.namespace__.SetAllocated(namespace_, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.namespace__.IsDefault()) { + _impl_.namespace__.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.ResourceName.namespace) +} + +// string type = 2 [json_name = "type"]; +inline void ResourceName::clear_type() { + _impl_.type_.ClearToEmpty(); +} +inline const std::string& ResourceName::type() const { + // @@protoc_insertion_point(field_get:viam.common.v1.ResourceName.type) + return _internal_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceName::set_type(ArgT0&& arg0, ArgT... args) { + + _impl_.type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.common.v1.ResourceName.type) +} +inline std::string* ResourceName::mutable_type() { + std::string* _s = _internal_mutable_type(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.ResourceName.type) + return _s; +} +inline const std::string& ResourceName::_internal_type() const { + return _impl_.type_.Get(); +} +inline void ResourceName::_internal_set_type(const std::string& value) { + + _impl_.type_.Set(value, GetArenaForAllocation()); +} +inline std::string* ResourceName::_internal_mutable_type() { + + return _impl_.type_.Mutable(GetArenaForAllocation()); +} +inline std::string* ResourceName::release_type() { + // @@protoc_insertion_point(field_release:viam.common.v1.ResourceName.type) + return _impl_.type_.Release(); +} +inline void ResourceName::set_allocated_type(std::string* type) { + if (type != nullptr) { + + } else { + + } + _impl_.type_.SetAllocated(type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.type_.IsDefault()) { + _impl_.type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.ResourceName.type) +} + +// string subtype = 3 [json_name = "subtype"]; +inline void ResourceName::clear_subtype() { + _impl_.subtype_.ClearToEmpty(); +} +inline const std::string& ResourceName::subtype() const { + // @@protoc_insertion_point(field_get:viam.common.v1.ResourceName.subtype) + return _internal_subtype(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceName::set_subtype(ArgT0&& arg0, ArgT... args) { + + _impl_.subtype_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.common.v1.ResourceName.subtype) +} +inline std::string* ResourceName::mutable_subtype() { + std::string* _s = _internal_mutable_subtype(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.ResourceName.subtype) + return _s; +} +inline const std::string& ResourceName::_internal_subtype() const { + return _impl_.subtype_.Get(); +} +inline void ResourceName::_internal_set_subtype(const std::string& value) { + + _impl_.subtype_.Set(value, GetArenaForAllocation()); +} +inline std::string* ResourceName::_internal_mutable_subtype() { + + return _impl_.subtype_.Mutable(GetArenaForAllocation()); +} +inline std::string* ResourceName::release_subtype() { + // @@protoc_insertion_point(field_release:viam.common.v1.ResourceName.subtype) + return _impl_.subtype_.Release(); +} +inline void ResourceName::set_allocated_subtype(std::string* subtype) { + if (subtype != nullptr) { + + } else { + + } + _impl_.subtype_.SetAllocated(subtype, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.subtype_.IsDefault()) { + _impl_.subtype_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.ResourceName.subtype) +} + +// string name = 4 [json_name = "name"]; +inline void ResourceName::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& ResourceName::name() const { + // @@protoc_insertion_point(field_get:viam.common.v1.ResourceName.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceName::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.common.v1.ResourceName.name) +} +inline std::string* ResourceName::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.ResourceName.name) + return _s; +} +inline const std::string& ResourceName::_internal_name() const { + return _impl_.name_.Get(); +} +inline void ResourceName::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* ResourceName::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* ResourceName::release_name() { + // @@protoc_insertion_point(field_release:viam.common.v1.ResourceName.name) + return _impl_.name_.Release(); +} +inline void ResourceName::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.ResourceName.name) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// BoardStatus + +// map analogs = 1 [json_name = "analogs"]; +inline int BoardStatus::_internal_analogs_size() const { + return _impl_.analogs_.size(); +} +inline int BoardStatus::analogs_size() const { + return _internal_analogs_size(); +} +inline void BoardStatus::clear_analogs() { + _impl_.analogs_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::AnalogStatus >& +BoardStatus::_internal_analogs() const { + return _impl_.analogs_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::AnalogStatus >& +BoardStatus::analogs() const { + // @@protoc_insertion_point(field_map:viam.common.v1.BoardStatus.analogs) + return _internal_analogs(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::AnalogStatus >* +BoardStatus::_internal_mutable_analogs() { + return _impl_.analogs_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::AnalogStatus >* +BoardStatus::mutable_analogs() { + // @@protoc_insertion_point(field_mutable_map:viam.common.v1.BoardStatus.analogs) + return _internal_mutable_analogs(); +} + +// map digital_interrupts = 2 [json_name = "digitalInterrupts"]; +inline int BoardStatus::_internal_digital_interrupts_size() const { + return _impl_.digital_interrupts_.size(); +} +inline int BoardStatus::digital_interrupts_size() const { + return _internal_digital_interrupts_size(); +} +inline void BoardStatus::clear_digital_interrupts() { + _impl_.digital_interrupts_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::DigitalInterruptStatus >& +BoardStatus::_internal_digital_interrupts() const { + return _impl_.digital_interrupts_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::DigitalInterruptStatus >& +BoardStatus::digital_interrupts() const { + // @@protoc_insertion_point(field_map:viam.common.v1.BoardStatus.digital_interrupts) + return _internal_digital_interrupts(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::DigitalInterruptStatus >* +BoardStatus::_internal_mutable_digital_interrupts() { + return _impl_.digital_interrupts_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::DigitalInterruptStatus >* +BoardStatus::mutable_digital_interrupts() { + // @@protoc_insertion_point(field_mutable_map:viam.common.v1.BoardStatus.digital_interrupts) + return _internal_mutable_digital_interrupts(); +} + +// ------------------------------------------------------------------- + +// AnalogStatus + +// int32 value = 1 [json_name = "value"]; +inline void AnalogStatus::clear_value() { + _impl_.value_ = 0; +} +inline int32_t AnalogStatus::_internal_value() const { + return _impl_.value_; +} +inline int32_t AnalogStatus::value() const { + // @@protoc_insertion_point(field_get:viam.common.v1.AnalogStatus.value) + return _internal_value(); +} +inline void AnalogStatus::_internal_set_value(int32_t value) { + + _impl_.value_ = value; +} +inline void AnalogStatus::set_value(int32_t value) { + _internal_set_value(value); + // @@protoc_insertion_point(field_set:viam.common.v1.AnalogStatus.value) +} + +// ------------------------------------------------------------------- + +// DigitalInterruptStatus + +// int64 value = 1 [json_name = "value"]; +inline void DigitalInterruptStatus::clear_value() { + _impl_.value_ = int64_t{0}; +} +inline int64_t DigitalInterruptStatus::_internal_value() const { + return _impl_.value_; +} +inline int64_t DigitalInterruptStatus::value() const { + // @@protoc_insertion_point(field_get:viam.common.v1.DigitalInterruptStatus.value) + return _internal_value(); +} +inline void DigitalInterruptStatus::_internal_set_value(int64_t value) { + + _impl_.value_ = value; +} +inline void DigitalInterruptStatus::set_value(int64_t value) { + _internal_set_value(value); + // @@protoc_insertion_point(field_set:viam.common.v1.DigitalInterruptStatus.value) +} + +// ------------------------------------------------------------------- + +// Pose + +// double x = 1 [json_name = "x"]; +inline void Pose::clear_x() { + _impl_.x_ = 0; +} +inline double Pose::_internal_x() const { + return _impl_.x_; +} +inline double Pose::x() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Pose.x) + return _internal_x(); +} +inline void Pose::_internal_set_x(double value) { + + _impl_.x_ = value; +} +inline void Pose::set_x(double value) { + _internal_set_x(value); + // @@protoc_insertion_point(field_set:viam.common.v1.Pose.x) +} + +// double y = 2 [json_name = "y"]; +inline void Pose::clear_y() { + _impl_.y_ = 0; +} +inline double Pose::_internal_y() const { + return _impl_.y_; +} +inline double Pose::y() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Pose.y) + return _internal_y(); +} +inline void Pose::_internal_set_y(double value) { + + _impl_.y_ = value; +} +inline void Pose::set_y(double value) { + _internal_set_y(value); + // @@protoc_insertion_point(field_set:viam.common.v1.Pose.y) +} + +// double z = 3 [json_name = "z"]; +inline void Pose::clear_z() { + _impl_.z_ = 0; +} +inline double Pose::_internal_z() const { + return _impl_.z_; +} +inline double Pose::z() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Pose.z) + return _internal_z(); +} +inline void Pose::_internal_set_z(double value) { + + _impl_.z_ = value; +} +inline void Pose::set_z(double value) { + _internal_set_z(value); + // @@protoc_insertion_point(field_set:viam.common.v1.Pose.z) +} + +// double o_x = 4 [json_name = "oX"]; +inline void Pose::clear_o_x() { + _impl_.o_x_ = 0; +} +inline double Pose::_internal_o_x() const { + return _impl_.o_x_; +} +inline double Pose::o_x() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Pose.o_x) + return _internal_o_x(); +} +inline void Pose::_internal_set_o_x(double value) { + + _impl_.o_x_ = value; +} +inline void Pose::set_o_x(double value) { + _internal_set_o_x(value); + // @@protoc_insertion_point(field_set:viam.common.v1.Pose.o_x) +} + +// double o_y = 5 [json_name = "oY"]; +inline void Pose::clear_o_y() { + _impl_.o_y_ = 0; +} +inline double Pose::_internal_o_y() const { + return _impl_.o_y_; +} +inline double Pose::o_y() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Pose.o_y) + return _internal_o_y(); +} +inline void Pose::_internal_set_o_y(double value) { + + _impl_.o_y_ = value; +} +inline void Pose::set_o_y(double value) { + _internal_set_o_y(value); + // @@protoc_insertion_point(field_set:viam.common.v1.Pose.o_y) +} + +// double o_z = 6 [json_name = "oZ"]; +inline void Pose::clear_o_z() { + _impl_.o_z_ = 0; +} +inline double Pose::_internal_o_z() const { + return _impl_.o_z_; +} +inline double Pose::o_z() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Pose.o_z) + return _internal_o_z(); +} +inline void Pose::_internal_set_o_z(double value) { + + _impl_.o_z_ = value; +} +inline void Pose::set_o_z(double value) { + _internal_set_o_z(value); + // @@protoc_insertion_point(field_set:viam.common.v1.Pose.o_z) +} + +// double theta = 7 [json_name = "theta"]; +inline void Pose::clear_theta() { + _impl_.theta_ = 0; +} +inline double Pose::_internal_theta() const { + return _impl_.theta_; +} +inline double Pose::theta() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Pose.theta) + return _internal_theta(); +} +inline void Pose::_internal_set_theta(double value) { + + _impl_.theta_ = value; +} +inline void Pose::set_theta(double value) { + _internal_set_theta(value); + // @@protoc_insertion_point(field_set:viam.common.v1.Pose.theta) +} + +// ------------------------------------------------------------------- + +// Orientation + +// double o_x = 1 [json_name = "oX"]; +inline void Orientation::clear_o_x() { + _impl_.o_x_ = 0; +} +inline double Orientation::_internal_o_x() const { + return _impl_.o_x_; +} +inline double Orientation::o_x() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Orientation.o_x) + return _internal_o_x(); +} +inline void Orientation::_internal_set_o_x(double value) { + + _impl_.o_x_ = value; +} +inline void Orientation::set_o_x(double value) { + _internal_set_o_x(value); + // @@protoc_insertion_point(field_set:viam.common.v1.Orientation.o_x) +} + +// double o_y = 2 [json_name = "oY"]; +inline void Orientation::clear_o_y() { + _impl_.o_y_ = 0; +} +inline double Orientation::_internal_o_y() const { + return _impl_.o_y_; +} +inline double Orientation::o_y() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Orientation.o_y) + return _internal_o_y(); +} +inline void Orientation::_internal_set_o_y(double value) { + + _impl_.o_y_ = value; +} +inline void Orientation::set_o_y(double value) { + _internal_set_o_y(value); + // @@protoc_insertion_point(field_set:viam.common.v1.Orientation.o_y) +} + +// double o_z = 3 [json_name = "oZ"]; +inline void Orientation::clear_o_z() { + _impl_.o_z_ = 0; +} +inline double Orientation::_internal_o_z() const { + return _impl_.o_z_; +} +inline double Orientation::o_z() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Orientation.o_z) + return _internal_o_z(); +} +inline void Orientation::_internal_set_o_z(double value) { + + _impl_.o_z_ = value; +} +inline void Orientation::set_o_z(double value) { + _internal_set_o_z(value); + // @@protoc_insertion_point(field_set:viam.common.v1.Orientation.o_z) +} + +// double theta = 4 [json_name = "theta"]; +inline void Orientation::clear_theta() { + _impl_.theta_ = 0; +} +inline double Orientation::_internal_theta() const { + return _impl_.theta_; +} +inline double Orientation::theta() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Orientation.theta) + return _internal_theta(); +} +inline void Orientation::_internal_set_theta(double value) { + + _impl_.theta_ = value; +} +inline void Orientation::set_theta(double value) { + _internal_set_theta(value); + // @@protoc_insertion_point(field_set:viam.common.v1.Orientation.theta) +} + +// ------------------------------------------------------------------- + +// PoseInFrame + +// string reference_frame = 1 [json_name = "referenceFrame"]; +inline void PoseInFrame::clear_reference_frame() { + _impl_.reference_frame_.ClearToEmpty(); +} +inline const std::string& PoseInFrame::reference_frame() const { + // @@protoc_insertion_point(field_get:viam.common.v1.PoseInFrame.reference_frame) + return _internal_reference_frame(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PoseInFrame::set_reference_frame(ArgT0&& arg0, ArgT... args) { + + _impl_.reference_frame_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.common.v1.PoseInFrame.reference_frame) +} +inline std::string* PoseInFrame::mutable_reference_frame() { + std::string* _s = _internal_mutable_reference_frame(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.PoseInFrame.reference_frame) + return _s; +} +inline const std::string& PoseInFrame::_internal_reference_frame() const { + return _impl_.reference_frame_.Get(); +} +inline void PoseInFrame::_internal_set_reference_frame(const std::string& value) { + + _impl_.reference_frame_.Set(value, GetArenaForAllocation()); +} +inline std::string* PoseInFrame::_internal_mutable_reference_frame() { + + return _impl_.reference_frame_.Mutable(GetArenaForAllocation()); +} +inline std::string* PoseInFrame::release_reference_frame() { + // @@protoc_insertion_point(field_release:viam.common.v1.PoseInFrame.reference_frame) + return _impl_.reference_frame_.Release(); +} +inline void PoseInFrame::set_allocated_reference_frame(std::string* reference_frame) { + if (reference_frame != nullptr) { + + } else { + + } + _impl_.reference_frame_.SetAllocated(reference_frame, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.reference_frame_.IsDefault()) { + _impl_.reference_frame_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.PoseInFrame.reference_frame) +} + +// .viam.common.v1.Pose pose = 2 [json_name = "pose"]; +inline bool PoseInFrame::_internal_has_pose() const { + return this != internal_default_instance() && _impl_.pose_ != nullptr; +} +inline bool PoseInFrame::has_pose() const { + return _internal_has_pose(); +} +inline void PoseInFrame::clear_pose() { + if (GetArenaForAllocation() == nullptr && _impl_.pose_ != nullptr) { + delete _impl_.pose_; + } + _impl_.pose_ = nullptr; +} +inline const ::viam::common::v1::Pose& PoseInFrame::_internal_pose() const { + const ::viam::common::v1::Pose* p = _impl_.pose_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Pose_default_instance_); +} +inline const ::viam::common::v1::Pose& PoseInFrame::pose() const { + // @@protoc_insertion_point(field_get:viam.common.v1.PoseInFrame.pose) + return _internal_pose(); +} +inline void PoseInFrame::unsafe_arena_set_allocated_pose( + ::viam::common::v1::Pose* pose) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pose_); + } + _impl_.pose_ = pose; + if (pose) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.PoseInFrame.pose) +} +inline ::viam::common::v1::Pose* PoseInFrame::release_pose() { + + ::viam::common::v1::Pose* temp = _impl_.pose_; + _impl_.pose_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::Pose* PoseInFrame::unsafe_arena_release_pose() { + // @@protoc_insertion_point(field_release:viam.common.v1.PoseInFrame.pose) + + ::viam::common::v1::Pose* temp = _impl_.pose_; + _impl_.pose_ = nullptr; + return temp; +} +inline ::viam::common::v1::Pose* PoseInFrame::_internal_mutable_pose() { + + if (_impl_.pose_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArenaForAllocation()); + _impl_.pose_ = p; + } + return _impl_.pose_; +} +inline ::viam::common::v1::Pose* PoseInFrame::mutable_pose() { + ::viam::common::v1::Pose* _msg = _internal_mutable_pose(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.PoseInFrame.pose) + return _msg; +} +inline void PoseInFrame::set_allocated_pose(::viam::common::v1::Pose* pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.pose_; + } + if (pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(pose); + if (message_arena != submessage_arena) { + pose = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, pose, submessage_arena); + } + + } else { + + } + _impl_.pose_ = pose; + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.PoseInFrame.pose) +} + +// ------------------------------------------------------------------- + +// Vector3 + +// double x = 1 [json_name = "x"]; +inline void Vector3::clear_x() { + _impl_.x_ = 0; +} +inline double Vector3::_internal_x() const { + return _impl_.x_; +} +inline double Vector3::x() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Vector3.x) + return _internal_x(); +} +inline void Vector3::_internal_set_x(double value) { + + _impl_.x_ = value; +} +inline void Vector3::set_x(double value) { + _internal_set_x(value); + // @@protoc_insertion_point(field_set:viam.common.v1.Vector3.x) +} + +// double y = 2 [json_name = "y"]; +inline void Vector3::clear_y() { + _impl_.y_ = 0; +} +inline double Vector3::_internal_y() const { + return _impl_.y_; +} +inline double Vector3::y() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Vector3.y) + return _internal_y(); +} +inline void Vector3::_internal_set_y(double value) { + + _impl_.y_ = value; +} +inline void Vector3::set_y(double value) { + _internal_set_y(value); + // @@protoc_insertion_point(field_set:viam.common.v1.Vector3.y) +} + +// double z = 3 [json_name = "z"]; +inline void Vector3::clear_z() { + _impl_.z_ = 0; +} +inline double Vector3::_internal_z() const { + return _impl_.z_; +} +inline double Vector3::z() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Vector3.z) + return _internal_z(); +} +inline void Vector3::_internal_set_z(double value) { + + _impl_.z_ = value; +} +inline void Vector3::set_z(double value) { + _internal_set_z(value); + // @@protoc_insertion_point(field_set:viam.common.v1.Vector3.z) +} + +// ------------------------------------------------------------------- + +// Sphere + +// double radius_mm = 1 [json_name = "radiusMm"]; +inline void Sphere::clear_radius_mm() { + _impl_.radius_mm_ = 0; +} +inline double Sphere::_internal_radius_mm() const { + return _impl_.radius_mm_; +} +inline double Sphere::radius_mm() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Sphere.radius_mm) + return _internal_radius_mm(); +} +inline void Sphere::_internal_set_radius_mm(double value) { + + _impl_.radius_mm_ = value; +} +inline void Sphere::set_radius_mm(double value) { + _internal_set_radius_mm(value); + // @@protoc_insertion_point(field_set:viam.common.v1.Sphere.radius_mm) +} + +// ------------------------------------------------------------------- + +// RectangularPrism + +// .viam.common.v1.Vector3 dims_mm = 1 [json_name = "dimsMm"]; +inline bool RectangularPrism::_internal_has_dims_mm() const { + return this != internal_default_instance() && _impl_.dims_mm_ != nullptr; +} +inline bool RectangularPrism::has_dims_mm() const { + return _internal_has_dims_mm(); +} +inline void RectangularPrism::clear_dims_mm() { + if (GetArenaForAllocation() == nullptr && _impl_.dims_mm_ != nullptr) { + delete _impl_.dims_mm_; + } + _impl_.dims_mm_ = nullptr; +} +inline const ::viam::common::v1::Vector3& RectangularPrism::_internal_dims_mm() const { + const ::viam::common::v1::Vector3* p = _impl_.dims_mm_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Vector3_default_instance_); +} +inline const ::viam::common::v1::Vector3& RectangularPrism::dims_mm() const { + // @@protoc_insertion_point(field_get:viam.common.v1.RectangularPrism.dims_mm) + return _internal_dims_mm(); +} +inline void RectangularPrism::unsafe_arena_set_allocated_dims_mm( + ::viam::common::v1::Vector3* dims_mm) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.dims_mm_); + } + _impl_.dims_mm_ = dims_mm; + if (dims_mm) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.RectangularPrism.dims_mm) +} +inline ::viam::common::v1::Vector3* RectangularPrism::release_dims_mm() { + + ::viam::common::v1::Vector3* temp = _impl_.dims_mm_; + _impl_.dims_mm_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::Vector3* RectangularPrism::unsafe_arena_release_dims_mm() { + // @@protoc_insertion_point(field_release:viam.common.v1.RectangularPrism.dims_mm) + + ::viam::common::v1::Vector3* temp = _impl_.dims_mm_; + _impl_.dims_mm_ = nullptr; + return temp; +} +inline ::viam::common::v1::Vector3* RectangularPrism::_internal_mutable_dims_mm() { + + if (_impl_.dims_mm_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArenaForAllocation()); + _impl_.dims_mm_ = p; + } + return _impl_.dims_mm_; +} +inline ::viam::common::v1::Vector3* RectangularPrism::mutable_dims_mm() { + ::viam::common::v1::Vector3* _msg = _internal_mutable_dims_mm(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.RectangularPrism.dims_mm) + return _msg; +} +inline void RectangularPrism::set_allocated_dims_mm(::viam::common::v1::Vector3* dims_mm) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.dims_mm_; + } + if (dims_mm) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(dims_mm); + if (message_arena != submessage_arena) { + dims_mm = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, dims_mm, submessage_arena); + } + + } else { + + } + _impl_.dims_mm_ = dims_mm; + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.RectangularPrism.dims_mm) +} + +// ------------------------------------------------------------------- + +// Geometry + +// .viam.common.v1.Pose center = 1 [json_name = "center"]; +inline bool Geometry::_internal_has_center() const { + return this != internal_default_instance() && _impl_.center_ != nullptr; +} +inline bool Geometry::has_center() const { + return _internal_has_center(); +} +inline void Geometry::clear_center() { + if (GetArenaForAllocation() == nullptr && _impl_.center_ != nullptr) { + delete _impl_.center_; + } + _impl_.center_ = nullptr; +} +inline const ::viam::common::v1::Pose& Geometry::_internal_center() const { + const ::viam::common::v1::Pose* p = _impl_.center_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Pose_default_instance_); +} +inline const ::viam::common::v1::Pose& Geometry::center() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Geometry.center) + return _internal_center(); +} +inline void Geometry::unsafe_arena_set_allocated_center( + ::viam::common::v1::Pose* center) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.center_); + } + _impl_.center_ = center; + if (center) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.Geometry.center) +} +inline ::viam::common::v1::Pose* Geometry::release_center() { + + ::viam::common::v1::Pose* temp = _impl_.center_; + _impl_.center_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::Pose* Geometry::unsafe_arena_release_center() { + // @@protoc_insertion_point(field_release:viam.common.v1.Geometry.center) + + ::viam::common::v1::Pose* temp = _impl_.center_; + _impl_.center_ = nullptr; + return temp; +} +inline ::viam::common::v1::Pose* Geometry::_internal_mutable_center() { + + if (_impl_.center_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArenaForAllocation()); + _impl_.center_ = p; + } + return _impl_.center_; +} +inline ::viam::common::v1::Pose* Geometry::mutable_center() { + ::viam::common::v1::Pose* _msg = _internal_mutable_center(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.Geometry.center) + return _msg; +} +inline void Geometry::set_allocated_center(::viam::common::v1::Pose* center) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.center_; + } + if (center) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(center); + if (message_arena != submessage_arena) { + center = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, center, submessage_arena); + } + + } else { + + } + _impl_.center_ = center; + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.Geometry.center) +} + +// .viam.common.v1.Sphere sphere = 2 [json_name = "sphere"]; +inline bool Geometry::_internal_has_sphere() const { + return geometry_type_case() == kSphere; +} +inline bool Geometry::has_sphere() const { + return _internal_has_sphere(); +} +inline void Geometry::set_has_sphere() { + _impl_._oneof_case_[0] = kSphere; +} +inline void Geometry::clear_sphere() { + if (_internal_has_sphere()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.geometry_type_.sphere_; + } + clear_has_geometry_type(); + } +} +inline ::viam::common::v1::Sphere* Geometry::release_sphere() { + // @@protoc_insertion_point(field_release:viam.common.v1.Geometry.sphere) + if (_internal_has_sphere()) { + clear_has_geometry_type(); + ::viam::common::v1::Sphere* temp = _impl_.geometry_type_.sphere_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.geometry_type_.sphere_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::common::v1::Sphere& Geometry::_internal_sphere() const { + return _internal_has_sphere() + ? *_impl_.geometry_type_.sphere_ + : reinterpret_cast< ::viam::common::v1::Sphere&>(::viam::common::v1::_Sphere_default_instance_); +} +inline const ::viam::common::v1::Sphere& Geometry::sphere() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Geometry.sphere) + return _internal_sphere(); +} +inline ::viam::common::v1::Sphere* Geometry::unsafe_arena_release_sphere() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.common.v1.Geometry.sphere) + if (_internal_has_sphere()) { + clear_has_geometry_type(); + ::viam::common::v1::Sphere* temp = _impl_.geometry_type_.sphere_; + _impl_.geometry_type_.sphere_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Geometry::unsafe_arena_set_allocated_sphere(::viam::common::v1::Sphere* sphere) { + clear_geometry_type(); + if (sphere) { + set_has_sphere(); + _impl_.geometry_type_.sphere_ = sphere; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.Geometry.sphere) +} +inline ::viam::common::v1::Sphere* Geometry::_internal_mutable_sphere() { + if (!_internal_has_sphere()) { + clear_geometry_type(); + set_has_sphere(); + _impl_.geometry_type_.sphere_ = CreateMaybeMessage< ::viam::common::v1::Sphere >(GetArenaForAllocation()); + } + return _impl_.geometry_type_.sphere_; +} +inline ::viam::common::v1::Sphere* Geometry::mutable_sphere() { + ::viam::common::v1::Sphere* _msg = _internal_mutable_sphere(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.Geometry.sphere) + return _msg; +} + +// .viam.common.v1.RectangularPrism box = 3 [json_name = "box"]; +inline bool Geometry::_internal_has_box() const { + return geometry_type_case() == kBox; +} +inline bool Geometry::has_box() const { + return _internal_has_box(); +} +inline void Geometry::set_has_box() { + _impl_._oneof_case_[0] = kBox; +} +inline void Geometry::clear_box() { + if (_internal_has_box()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.geometry_type_.box_; + } + clear_has_geometry_type(); + } +} +inline ::viam::common::v1::RectangularPrism* Geometry::release_box() { + // @@protoc_insertion_point(field_release:viam.common.v1.Geometry.box) + if (_internal_has_box()) { + clear_has_geometry_type(); + ::viam::common::v1::RectangularPrism* temp = _impl_.geometry_type_.box_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.geometry_type_.box_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::common::v1::RectangularPrism& Geometry::_internal_box() const { + return _internal_has_box() + ? *_impl_.geometry_type_.box_ + : reinterpret_cast< ::viam::common::v1::RectangularPrism&>(::viam::common::v1::_RectangularPrism_default_instance_); +} +inline const ::viam::common::v1::RectangularPrism& Geometry::box() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Geometry.box) + return _internal_box(); +} +inline ::viam::common::v1::RectangularPrism* Geometry::unsafe_arena_release_box() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.common.v1.Geometry.box) + if (_internal_has_box()) { + clear_has_geometry_type(); + ::viam::common::v1::RectangularPrism* temp = _impl_.geometry_type_.box_; + _impl_.geometry_type_.box_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Geometry::unsafe_arena_set_allocated_box(::viam::common::v1::RectangularPrism* box) { + clear_geometry_type(); + if (box) { + set_has_box(); + _impl_.geometry_type_.box_ = box; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.Geometry.box) +} +inline ::viam::common::v1::RectangularPrism* Geometry::_internal_mutable_box() { + if (!_internal_has_box()) { + clear_geometry_type(); + set_has_box(); + _impl_.geometry_type_.box_ = CreateMaybeMessage< ::viam::common::v1::RectangularPrism >(GetArenaForAllocation()); + } + return _impl_.geometry_type_.box_; +} +inline ::viam::common::v1::RectangularPrism* Geometry::mutable_box() { + ::viam::common::v1::RectangularPrism* _msg = _internal_mutable_box(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.Geometry.box) + return _msg; +} + +// string label = 4 [json_name = "label"]; +inline void Geometry::clear_label() { + _impl_.label_.ClearToEmpty(); +} +inline const std::string& Geometry::label() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Geometry.label) + return _internal_label(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Geometry::set_label(ArgT0&& arg0, ArgT... args) { + + _impl_.label_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.common.v1.Geometry.label) +} +inline std::string* Geometry::mutable_label() { + std::string* _s = _internal_mutable_label(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.Geometry.label) + return _s; +} +inline const std::string& Geometry::_internal_label() const { + return _impl_.label_.Get(); +} +inline void Geometry::_internal_set_label(const std::string& value) { + + _impl_.label_.Set(value, GetArenaForAllocation()); +} +inline std::string* Geometry::_internal_mutable_label() { + + return _impl_.label_.Mutable(GetArenaForAllocation()); +} +inline std::string* Geometry::release_label() { + // @@protoc_insertion_point(field_release:viam.common.v1.Geometry.label) + return _impl_.label_.Release(); +} +inline void Geometry::set_allocated_label(std::string* label) { + if (label != nullptr) { + + } else { + + } + _impl_.label_.SetAllocated(label, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.label_.IsDefault()) { + _impl_.label_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.Geometry.label) +} + +inline bool Geometry::has_geometry_type() const { + return geometry_type_case() != GEOMETRY_TYPE_NOT_SET; +} +inline void Geometry::clear_has_geometry_type() { + _impl_._oneof_case_[0] = GEOMETRY_TYPE_NOT_SET; +} +inline Geometry::GeometryTypeCase Geometry::geometry_type_case() const { + return Geometry::GeometryTypeCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// GeometriesInFrame + +// string reference_frame = 1 [json_name = "referenceFrame"]; +inline void GeometriesInFrame::clear_reference_frame() { + _impl_.reference_frame_.ClearToEmpty(); +} +inline const std::string& GeometriesInFrame::reference_frame() const { + // @@protoc_insertion_point(field_get:viam.common.v1.GeometriesInFrame.reference_frame) + return _internal_reference_frame(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GeometriesInFrame::set_reference_frame(ArgT0&& arg0, ArgT... args) { + + _impl_.reference_frame_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.common.v1.GeometriesInFrame.reference_frame) +} +inline std::string* GeometriesInFrame::mutable_reference_frame() { + std::string* _s = _internal_mutable_reference_frame(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.GeometriesInFrame.reference_frame) + return _s; +} +inline const std::string& GeometriesInFrame::_internal_reference_frame() const { + return _impl_.reference_frame_.Get(); +} +inline void GeometriesInFrame::_internal_set_reference_frame(const std::string& value) { + + _impl_.reference_frame_.Set(value, GetArenaForAllocation()); +} +inline std::string* GeometriesInFrame::_internal_mutable_reference_frame() { + + return _impl_.reference_frame_.Mutable(GetArenaForAllocation()); +} +inline std::string* GeometriesInFrame::release_reference_frame() { + // @@protoc_insertion_point(field_release:viam.common.v1.GeometriesInFrame.reference_frame) + return _impl_.reference_frame_.Release(); +} +inline void GeometriesInFrame::set_allocated_reference_frame(std::string* reference_frame) { + if (reference_frame != nullptr) { + + } else { + + } + _impl_.reference_frame_.SetAllocated(reference_frame, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.reference_frame_.IsDefault()) { + _impl_.reference_frame_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.GeometriesInFrame.reference_frame) +} + +// repeated .viam.common.v1.Geometry geometries = 2 [json_name = "geometries"]; +inline int GeometriesInFrame::_internal_geometries_size() const { + return _impl_.geometries_.size(); +} +inline int GeometriesInFrame::geometries_size() const { + return _internal_geometries_size(); +} +inline void GeometriesInFrame::clear_geometries() { + _impl_.geometries_.Clear(); +} +inline ::viam::common::v1::Geometry* GeometriesInFrame::mutable_geometries(int index) { + // @@protoc_insertion_point(field_mutable:viam.common.v1.GeometriesInFrame.geometries) + return _impl_.geometries_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >* +GeometriesInFrame::mutable_geometries() { + // @@protoc_insertion_point(field_mutable_list:viam.common.v1.GeometriesInFrame.geometries) + return &_impl_.geometries_; +} +inline const ::viam::common::v1::Geometry& GeometriesInFrame::_internal_geometries(int index) const { + return _impl_.geometries_.Get(index); +} +inline const ::viam::common::v1::Geometry& GeometriesInFrame::geometries(int index) const { + // @@protoc_insertion_point(field_get:viam.common.v1.GeometriesInFrame.geometries) + return _internal_geometries(index); +} +inline ::viam::common::v1::Geometry* GeometriesInFrame::_internal_add_geometries() { + return _impl_.geometries_.Add(); +} +inline ::viam::common::v1::Geometry* GeometriesInFrame::add_geometries() { + ::viam::common::v1::Geometry* _add = _internal_add_geometries(); + // @@protoc_insertion_point(field_add:viam.common.v1.GeometriesInFrame.geometries) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >& +GeometriesInFrame::geometries() const { + // @@protoc_insertion_point(field_list:viam.common.v1.GeometriesInFrame.geometries) + return _impl_.geometries_; +} + +// ------------------------------------------------------------------- + +// PointCloudObject + +// bytes point_cloud = 1 [json_name = "pointCloud"]; +inline void PointCloudObject::clear_point_cloud() { + _impl_.point_cloud_.ClearToEmpty(); +} +inline const std::string& PointCloudObject::point_cloud() const { + // @@protoc_insertion_point(field_get:viam.common.v1.PointCloudObject.point_cloud) + return _internal_point_cloud(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PointCloudObject::set_point_cloud(ArgT0&& arg0, ArgT... args) { + + _impl_.point_cloud_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.common.v1.PointCloudObject.point_cloud) +} +inline std::string* PointCloudObject::mutable_point_cloud() { + std::string* _s = _internal_mutable_point_cloud(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.PointCloudObject.point_cloud) + return _s; +} +inline const std::string& PointCloudObject::_internal_point_cloud() const { + return _impl_.point_cloud_.Get(); +} +inline void PointCloudObject::_internal_set_point_cloud(const std::string& value) { + + _impl_.point_cloud_.Set(value, GetArenaForAllocation()); +} +inline std::string* PointCloudObject::_internal_mutable_point_cloud() { + + return _impl_.point_cloud_.Mutable(GetArenaForAllocation()); +} +inline std::string* PointCloudObject::release_point_cloud() { + // @@protoc_insertion_point(field_release:viam.common.v1.PointCloudObject.point_cloud) + return _impl_.point_cloud_.Release(); +} +inline void PointCloudObject::set_allocated_point_cloud(std::string* point_cloud) { + if (point_cloud != nullptr) { + + } else { + + } + _impl_.point_cloud_.SetAllocated(point_cloud, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.point_cloud_.IsDefault()) { + _impl_.point_cloud_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.PointCloudObject.point_cloud) +} + +// .viam.common.v1.GeometriesInFrame geometries = 2 [json_name = "geometries"]; +inline bool PointCloudObject::_internal_has_geometries() const { + return this != internal_default_instance() && _impl_.geometries_ != nullptr; +} +inline bool PointCloudObject::has_geometries() const { + return _internal_has_geometries(); +} +inline void PointCloudObject::clear_geometries() { + if (GetArenaForAllocation() == nullptr && _impl_.geometries_ != nullptr) { + delete _impl_.geometries_; + } + _impl_.geometries_ = nullptr; +} +inline const ::viam::common::v1::GeometriesInFrame& PointCloudObject::_internal_geometries() const { + const ::viam::common::v1::GeometriesInFrame* p = _impl_.geometries_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_GeometriesInFrame_default_instance_); +} +inline const ::viam::common::v1::GeometriesInFrame& PointCloudObject::geometries() const { + // @@protoc_insertion_point(field_get:viam.common.v1.PointCloudObject.geometries) + return _internal_geometries(); +} +inline void PointCloudObject::unsafe_arena_set_allocated_geometries( + ::viam::common::v1::GeometriesInFrame* geometries) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.geometries_); + } + _impl_.geometries_ = geometries; + if (geometries) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.PointCloudObject.geometries) +} +inline ::viam::common::v1::GeometriesInFrame* PointCloudObject::release_geometries() { + + ::viam::common::v1::GeometriesInFrame* temp = _impl_.geometries_; + _impl_.geometries_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::GeometriesInFrame* PointCloudObject::unsafe_arena_release_geometries() { + // @@protoc_insertion_point(field_release:viam.common.v1.PointCloudObject.geometries) + + ::viam::common::v1::GeometriesInFrame* temp = _impl_.geometries_; + _impl_.geometries_ = nullptr; + return temp; +} +inline ::viam::common::v1::GeometriesInFrame* PointCloudObject::_internal_mutable_geometries() { + + if (_impl_.geometries_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::GeometriesInFrame>(GetArenaForAllocation()); + _impl_.geometries_ = p; + } + return _impl_.geometries_; +} +inline ::viam::common::v1::GeometriesInFrame* PointCloudObject::mutable_geometries() { + ::viam::common::v1::GeometriesInFrame* _msg = _internal_mutable_geometries(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.PointCloudObject.geometries) + return _msg; +} +inline void PointCloudObject::set_allocated_geometries(::viam::common::v1::GeometriesInFrame* geometries) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.geometries_; + } + if (geometries) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(geometries); + if (message_arena != submessage_arena) { + geometries = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, geometries, submessage_arena); + } + + } else { + + } + _impl_.geometries_ = geometries; + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.PointCloudObject.geometries) +} + +// ------------------------------------------------------------------- + +// GeoPoint + +// double latitude = 1 [json_name = "latitude"]; +inline void GeoPoint::clear_latitude() { + _impl_.latitude_ = 0; +} +inline double GeoPoint::_internal_latitude() const { + return _impl_.latitude_; +} +inline double GeoPoint::latitude() const { + // @@protoc_insertion_point(field_get:viam.common.v1.GeoPoint.latitude) + return _internal_latitude(); +} +inline void GeoPoint::_internal_set_latitude(double value) { + + _impl_.latitude_ = value; +} +inline void GeoPoint::set_latitude(double value) { + _internal_set_latitude(value); + // @@protoc_insertion_point(field_set:viam.common.v1.GeoPoint.latitude) +} + +// double longitude = 2 [json_name = "longitude"]; +inline void GeoPoint::clear_longitude() { + _impl_.longitude_ = 0; +} +inline double GeoPoint::_internal_longitude() const { + return _impl_.longitude_; +} +inline double GeoPoint::longitude() const { + // @@protoc_insertion_point(field_get:viam.common.v1.GeoPoint.longitude) + return _internal_longitude(); +} +inline void GeoPoint::_internal_set_longitude(double value) { + + _impl_.longitude_ = value; +} +inline void GeoPoint::set_longitude(double value) { + _internal_set_longitude(value); + // @@protoc_insertion_point(field_set:viam.common.v1.GeoPoint.longitude) +} + +// ------------------------------------------------------------------- + +// Transform + +// string reference_frame = 1 [json_name = "referenceFrame"]; +inline void Transform::clear_reference_frame() { + _impl_.reference_frame_.ClearToEmpty(); +} +inline const std::string& Transform::reference_frame() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Transform.reference_frame) + return _internal_reference_frame(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Transform::set_reference_frame(ArgT0&& arg0, ArgT... args) { + + _impl_.reference_frame_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.common.v1.Transform.reference_frame) +} +inline std::string* Transform::mutable_reference_frame() { + std::string* _s = _internal_mutable_reference_frame(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.Transform.reference_frame) + return _s; +} +inline const std::string& Transform::_internal_reference_frame() const { + return _impl_.reference_frame_.Get(); +} +inline void Transform::_internal_set_reference_frame(const std::string& value) { + + _impl_.reference_frame_.Set(value, GetArenaForAllocation()); +} +inline std::string* Transform::_internal_mutable_reference_frame() { + + return _impl_.reference_frame_.Mutable(GetArenaForAllocation()); +} +inline std::string* Transform::release_reference_frame() { + // @@protoc_insertion_point(field_release:viam.common.v1.Transform.reference_frame) + return _impl_.reference_frame_.Release(); +} +inline void Transform::set_allocated_reference_frame(std::string* reference_frame) { + if (reference_frame != nullptr) { + + } else { + + } + _impl_.reference_frame_.SetAllocated(reference_frame, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.reference_frame_.IsDefault()) { + _impl_.reference_frame_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.Transform.reference_frame) +} + +// .viam.common.v1.PoseInFrame pose_in_observer_frame = 2 [json_name = "poseInObserverFrame"]; +inline bool Transform::_internal_has_pose_in_observer_frame() const { + return this != internal_default_instance() && _impl_.pose_in_observer_frame_ != nullptr; +} +inline bool Transform::has_pose_in_observer_frame() const { + return _internal_has_pose_in_observer_frame(); +} +inline void Transform::clear_pose_in_observer_frame() { + if (GetArenaForAllocation() == nullptr && _impl_.pose_in_observer_frame_ != nullptr) { + delete _impl_.pose_in_observer_frame_; + } + _impl_.pose_in_observer_frame_ = nullptr; +} +inline const ::viam::common::v1::PoseInFrame& Transform::_internal_pose_in_observer_frame() const { + const ::viam::common::v1::PoseInFrame* p = _impl_.pose_in_observer_frame_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_PoseInFrame_default_instance_); +} +inline const ::viam::common::v1::PoseInFrame& Transform::pose_in_observer_frame() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Transform.pose_in_observer_frame) + return _internal_pose_in_observer_frame(); +} +inline void Transform::unsafe_arena_set_allocated_pose_in_observer_frame( + ::viam::common::v1::PoseInFrame* pose_in_observer_frame) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pose_in_observer_frame_); + } + _impl_.pose_in_observer_frame_ = pose_in_observer_frame; + if (pose_in_observer_frame) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.Transform.pose_in_observer_frame) +} +inline ::viam::common::v1::PoseInFrame* Transform::release_pose_in_observer_frame() { + + ::viam::common::v1::PoseInFrame* temp = _impl_.pose_in_observer_frame_; + _impl_.pose_in_observer_frame_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::PoseInFrame* Transform::unsafe_arena_release_pose_in_observer_frame() { + // @@protoc_insertion_point(field_release:viam.common.v1.Transform.pose_in_observer_frame) + + ::viam::common::v1::PoseInFrame* temp = _impl_.pose_in_observer_frame_; + _impl_.pose_in_observer_frame_ = nullptr; + return temp; +} +inline ::viam::common::v1::PoseInFrame* Transform::_internal_mutable_pose_in_observer_frame() { + + if (_impl_.pose_in_observer_frame_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::PoseInFrame>(GetArenaForAllocation()); + _impl_.pose_in_observer_frame_ = p; + } + return _impl_.pose_in_observer_frame_; +} +inline ::viam::common::v1::PoseInFrame* Transform::mutable_pose_in_observer_frame() { + ::viam::common::v1::PoseInFrame* _msg = _internal_mutable_pose_in_observer_frame(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.Transform.pose_in_observer_frame) + return _msg; +} +inline void Transform::set_allocated_pose_in_observer_frame(::viam::common::v1::PoseInFrame* pose_in_observer_frame) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.pose_in_observer_frame_; + } + if (pose_in_observer_frame) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(pose_in_observer_frame); + if (message_arena != submessage_arena) { + pose_in_observer_frame = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, pose_in_observer_frame, submessage_arena); + } + + } else { + + } + _impl_.pose_in_observer_frame_ = pose_in_observer_frame; + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.Transform.pose_in_observer_frame) +} + +// ------------------------------------------------------------------- + +// WorldState + +// repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"]; +inline int WorldState::_internal_obstacles_size() const { + return _impl_.obstacles_.size(); +} +inline int WorldState::obstacles_size() const { + return _internal_obstacles_size(); +} +inline void WorldState::clear_obstacles() { + _impl_.obstacles_.Clear(); +} +inline ::viam::common::v1::GeometriesInFrame* WorldState::mutable_obstacles(int index) { + // @@protoc_insertion_point(field_mutable:viam.common.v1.WorldState.obstacles) + return _impl_.obstacles_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeometriesInFrame >* +WorldState::mutable_obstacles() { + // @@protoc_insertion_point(field_mutable_list:viam.common.v1.WorldState.obstacles) + return &_impl_.obstacles_; +} +inline const ::viam::common::v1::GeometriesInFrame& WorldState::_internal_obstacles(int index) const { + return _impl_.obstacles_.Get(index); +} +inline const ::viam::common::v1::GeometriesInFrame& WorldState::obstacles(int index) const { + // @@protoc_insertion_point(field_get:viam.common.v1.WorldState.obstacles) + return _internal_obstacles(index); +} +inline ::viam::common::v1::GeometriesInFrame* WorldState::_internal_add_obstacles() { + return _impl_.obstacles_.Add(); +} +inline ::viam::common::v1::GeometriesInFrame* WorldState::add_obstacles() { + ::viam::common::v1::GeometriesInFrame* _add = _internal_add_obstacles(); + // @@protoc_insertion_point(field_add:viam.common.v1.WorldState.obstacles) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeometriesInFrame >& +WorldState::obstacles() const { + // @@protoc_insertion_point(field_list:viam.common.v1.WorldState.obstacles) + return _impl_.obstacles_; +} + +// repeated .viam.common.v1.GeometriesInFrame interaction_spaces = 2 [json_name = "interactionSpaces"]; +inline int WorldState::_internal_interaction_spaces_size() const { + return _impl_.interaction_spaces_.size(); +} +inline int WorldState::interaction_spaces_size() const { + return _internal_interaction_spaces_size(); +} +inline void WorldState::clear_interaction_spaces() { + _impl_.interaction_spaces_.Clear(); +} +inline ::viam::common::v1::GeometriesInFrame* WorldState::mutable_interaction_spaces(int index) { + // @@protoc_insertion_point(field_mutable:viam.common.v1.WorldState.interaction_spaces) + return _impl_.interaction_spaces_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeometriesInFrame >* +WorldState::mutable_interaction_spaces() { + // @@protoc_insertion_point(field_mutable_list:viam.common.v1.WorldState.interaction_spaces) + return &_impl_.interaction_spaces_; +} +inline const ::viam::common::v1::GeometriesInFrame& WorldState::_internal_interaction_spaces(int index) const { + return _impl_.interaction_spaces_.Get(index); +} +inline const ::viam::common::v1::GeometriesInFrame& WorldState::interaction_spaces(int index) const { + // @@protoc_insertion_point(field_get:viam.common.v1.WorldState.interaction_spaces) + return _internal_interaction_spaces(index); +} +inline ::viam::common::v1::GeometriesInFrame* WorldState::_internal_add_interaction_spaces() { + return _impl_.interaction_spaces_.Add(); +} +inline ::viam::common::v1::GeometriesInFrame* WorldState::add_interaction_spaces() { + ::viam::common::v1::GeometriesInFrame* _add = _internal_add_interaction_spaces(); + // @@protoc_insertion_point(field_add:viam.common.v1.WorldState.interaction_spaces) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeometriesInFrame >& +WorldState::interaction_spaces() const { + // @@protoc_insertion_point(field_list:viam.common.v1.WorldState.interaction_spaces) + return _impl_.interaction_spaces_; +} + +// repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"]; +inline int WorldState::_internal_transforms_size() const { + return _impl_.transforms_.size(); +} +inline int WorldState::transforms_size() const { + return _internal_transforms_size(); +} +inline void WorldState::clear_transforms() { + _impl_.transforms_.Clear(); +} +inline ::viam::common::v1::Transform* WorldState::mutable_transforms(int index) { + // @@protoc_insertion_point(field_mutable:viam.common.v1.WorldState.transforms) + return _impl_.transforms_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >* +WorldState::mutable_transforms() { + // @@protoc_insertion_point(field_mutable_list:viam.common.v1.WorldState.transforms) + return &_impl_.transforms_; +} +inline const ::viam::common::v1::Transform& WorldState::_internal_transforms(int index) const { + return _impl_.transforms_.Get(index); +} +inline const ::viam::common::v1::Transform& WorldState::transforms(int index) const { + // @@protoc_insertion_point(field_get:viam.common.v1.WorldState.transforms) + return _internal_transforms(index); +} +inline ::viam::common::v1::Transform* WorldState::_internal_add_transforms() { + return _impl_.transforms_.Add(); +} +inline ::viam::common::v1::Transform* WorldState::add_transforms() { + ::viam::common::v1::Transform* _add = _internal_add_transforms(); + // @@protoc_insertion_point(field_add:viam.common.v1.WorldState.transforms) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >& +WorldState::transforms() const { + // @@protoc_insertion_point(field_list:viam.common.v1.WorldState.transforms) + return _impl_.transforms_; +} + +// ------------------------------------------------------------------- + +// ActuatorStatus + +// bool is_moving = 1 [json_name = "isMoving"]; +inline void ActuatorStatus::clear_is_moving() { + _impl_.is_moving_ = false; +} +inline bool ActuatorStatus::_internal_is_moving() const { + return _impl_.is_moving_; +} +inline bool ActuatorStatus::is_moving() const { + // @@protoc_insertion_point(field_get:viam.common.v1.ActuatorStatus.is_moving) + return _internal_is_moving(); +} +inline void ActuatorStatus::_internal_set_is_moving(bool value) { + + _impl_.is_moving_ = value; +} +inline void ActuatorStatus::set_is_moving(bool value) { + _internal_set_is_moving(value); + // @@protoc_insertion_point(field_set:viam.common.v1.ActuatorStatus.is_moving) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace common +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_common_2fv1_2fcommon_2eproto diff --git a/src/gen/component/arm/v1/arm.grpc.pb.cc b/src/gen/component/arm/v1/arm.grpc.pb.cc new file mode 100644 index 000000000..3784c9192 --- /dev/null +++ b/src/gen/component/arm/v1/arm.grpc.pb.cc @@ -0,0 +1,260 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/arm/v1/arm.proto + +#include "component/arm/v1/arm.pb.h" +#include "component/arm/v1/arm.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace component { +namespace arm { +namespace v1 { + +static const char* ArmService_method_names[] = { + "/viam.component.arm.v1.ArmService/GetEndPosition", + "/viam.component.arm.v1.ArmService/MoveToPosition", + "/viam.component.arm.v1.ArmService/GetJointPositions", + "/viam.component.arm.v1.ArmService/MoveToJointPositions", + "/viam.component.arm.v1.ArmService/Stop", +}; + +std::unique_ptr< ArmService::Stub> ArmService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< ArmService::Stub> stub(new ArmService::Stub(channel, options)); + return stub; +} + +ArmService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_GetEndPosition_(ArmService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_MoveToPosition_(ArmService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetJointPositions_(ArmService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_MoveToJointPositions_(ArmService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Stop_(ArmService_method_names[4], 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) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::arm::v1::GetEndPositionRequest, ::viam::component::arm::v1::GetEndPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetEndPosition_, context, request, response); +} + +void ArmService::Stub::async::GetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest* request, ::viam::component::arm::v1::GetEndPositionResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::arm::v1::GetEndPositionRequest, ::viam::component::arm::v1::GetEndPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetEndPosition_, context, request, response, std::move(f)); +} + +void ArmService::Stub::async::GetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest* request, ::viam::component::arm::v1::GetEndPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetEndPosition_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetEndPositionResponse>* ArmService::Stub::PrepareAsyncGetEndPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::arm::v1::GetEndPositionResponse, ::viam::component::arm::v1::GetEndPositionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetEndPosition_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetEndPositionResponse>* ArmService::Stub::AsyncGetEndPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetEndPositionRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status ArmService::Stub::MoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest& request, ::viam::component::arm::v1::MoveToPositionResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::arm::v1::MoveToPositionRequest, ::viam::component::arm::v1::MoveToPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MoveToPosition_, context, request, response); +} + +void ArmService::Stub::async::MoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest* request, ::viam::component::arm::v1::MoveToPositionResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::arm::v1::MoveToPositionRequest, ::viam::component::arm::v1::MoveToPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveToPosition_, context, request, response, std::move(f)); +} + +void ArmService::Stub::async::MoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest* request, ::viam::component::arm::v1::MoveToPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveToPosition_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToPositionResponse>* ArmService::Stub::PrepareAsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::arm::v1::MoveToPositionResponse, ::viam::component::arm::v1::MoveToPositionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MoveToPosition_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToPositionResponse>* ArmService::Stub::AsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncMoveToPositionRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status ArmService::Stub::GetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest& request, ::viam::component::arm::v1::GetJointPositionsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::arm::v1::GetJointPositionsRequest, ::viam::component::arm::v1::GetJointPositionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetJointPositions_, context, request, response); +} + +void ArmService::Stub::async::GetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::arm::v1::GetJointPositionsRequest, ::viam::component::arm::v1::GetJointPositionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetJointPositions_, context, request, response, std::move(f)); +} + +void ArmService::Stub::async::GetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetJointPositions_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetJointPositionsResponse>* ArmService::Stub::PrepareAsyncGetJointPositionsRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::arm::v1::GetJointPositionsResponse, ::viam::component::arm::v1::GetJointPositionsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetJointPositions_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetJointPositionsResponse>* ArmService::Stub::AsyncGetJointPositionsRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetJointPositionsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status ArmService::Stub::MoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest& request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::arm::v1::MoveToJointPositionsRequest, ::viam::component::arm::v1::MoveToJointPositionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MoveToJointPositions_, context, request, response); +} + +void ArmService::Stub::async::MoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::arm::v1::MoveToJointPositionsRequest, ::viam::component::arm::v1::MoveToJointPositionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveToJointPositions_, context, request, response, std::move(f)); +} + +void ArmService::Stub::async::MoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveToJointPositions_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToJointPositionsResponse>* ArmService::Stub::PrepareAsyncMoveToJointPositionsRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::arm::v1::MoveToJointPositionsResponse, ::viam::component::arm::v1::MoveToJointPositionsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MoveToJointPositions_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToJointPositionsResponse>* ArmService::Stub::AsyncMoveToJointPositionsRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncMoveToJointPositionsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status ArmService::Stub::Stop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest& request, ::viam::component::arm::v1::StopResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::arm::v1::StopRequest, ::viam::component::arm::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Stop_, context, request, response); +} + +void ArmService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest* request, ::viam::component::arm::v1::StopResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::arm::v1::StopRequest, ::viam::component::arm::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); +} + +void ArmService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest* request, ::viam::component::arm::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::StopResponse>* ArmService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::arm::v1::StopResponse, ::viam::component::arm::v1::StopRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Stop_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::StopResponse>* ArmService::Stub::AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncStopRaw(context, request, cq); + result->StartCall(); + return result; +} + +ArmService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + ArmService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::component::arm::v1::GetEndPositionRequest, ::viam::component::arm::v1::GetEndPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ArmService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::arm::v1::GetEndPositionRequest* req, + ::viam::component::arm::v1::GetEndPositionResponse* resp) { + return service->GetEndPosition(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ArmService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::component::arm::v1::MoveToPositionRequest, ::viam::component::arm::v1::MoveToPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ArmService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::arm::v1::MoveToPositionRequest* req, + ::viam::component::arm::v1::MoveToPositionResponse* resp) { + return service->MoveToPosition(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ArmService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::component::arm::v1::GetJointPositionsRequest, ::viam::component::arm::v1::GetJointPositionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ArmService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::arm::v1::GetJointPositionsRequest* req, + ::viam::component::arm::v1::GetJointPositionsResponse* resp) { + return service->GetJointPositions(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ArmService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::component::arm::v1::MoveToJointPositionsRequest, ::viam::component::arm::v1::MoveToJointPositionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ArmService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::arm::v1::MoveToJointPositionsRequest* req, + ::viam::component::arm::v1::MoveToJointPositionsResponse* resp) { + return service->MoveToJointPositions(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ArmService_method_names[4], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::component::arm::v1::StopRequest, ::viam::component::arm::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ArmService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::arm::v1::StopRequest* req, + ::viam::component::arm::v1::StopResponse* resp) { + return service->Stop(ctx, req, resp); + }, this))); +} + +ArmService::Service::~Service() { +} + +::grpc::Status ArmService::Service::GetEndPosition(::grpc::ServerContext* context, const ::viam::component::arm::v1::GetEndPositionRequest* request, ::viam::component::arm::v1::GetEndPositionResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ArmService::Service::MoveToPosition(::grpc::ServerContext* context, const ::viam::component::arm::v1::MoveToPositionRequest* request, ::viam::component::arm::v1::MoveToPositionResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ArmService::Service::GetJointPositions(::grpc::ServerContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest* request, ::viam::component::arm::v1::GetJointPositionsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ArmService::Service::MoveToJointPositions(::grpc::ServerContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ArmService::Service::Stop(::grpc::ServerContext* context, const ::viam::component::arm::v1::StopRequest* request, ::viam::component::arm::v1::StopResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace component +} // namespace arm +} // namespace v1 + diff --git a/src/gen/component/arm/v1/arm.grpc.pb.h b/src/gen/component/arm/v1/arm.grpc.pb.h new file mode 100644 index 000000000..04439e468 --- /dev/null +++ b/src/gen/component/arm/v1/arm.grpc.pb.h @@ -0,0 +1,896 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/arm/v1/arm.proto +#ifndef GRPC_component_2farm_2fv1_2farm_2eproto__INCLUDED +#define GRPC_component_2farm_2fv1_2farm_2eproto__INCLUDED + +#include "component/arm/v1/arm.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace component { +namespace arm { +namespace v1 { + +// An ArmService services all arms associated with a robot +class ArmService final { + public: + static constexpr char const* service_full_name() { + return "viam.component.arm.v1.ArmService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // GetEndPosition gets the current position the end of the robot's arm expressed as X,Y,Z,ox,oy,oz,theta + virtual ::grpc::Status GetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::viam::component::arm::v1::GetEndPositionResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::GetEndPositionResponse>> AsyncGetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::GetEndPositionResponse>>(AsyncGetEndPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::GetEndPositionResponse>> PrepareAsyncGetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::GetEndPositionResponse>>(PrepareAsyncGetEndPositionRaw(context, request, cq)); + } + // MoveToPosition moves the mount point of the robot's end effector to the requested position. + // This will block until done or a new operation cancels this one + virtual ::grpc::Status MoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest& request, ::viam::component::arm::v1::MoveToPositionResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::MoveToPositionResponse>> AsyncMoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::MoveToPositionResponse>>(AsyncMoveToPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::MoveToPositionResponse>> PrepareAsyncMoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::MoveToPositionResponse>>(PrepareAsyncMoveToPositionRaw(context, request, cq)); + } + // GetJointPositions lists the joint positions (in degrees) of every joint on a robot + virtual ::grpc::Status GetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest& request, ::viam::component::arm::v1::GetJointPositionsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::GetJointPositionsResponse>> AsyncGetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::GetJointPositionsResponse>>(AsyncGetJointPositionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::GetJointPositionsResponse>> PrepareAsyncGetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::GetJointPositionsResponse>>(PrepareAsyncGetJointPositionsRaw(context, request, cq)); + } + // MoveToJointPositions moves every joint on a robot's arm to specified angles which are expressed in degrees + // This will block until done or a new operation cancels this one + virtual ::grpc::Status MoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest& request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::MoveToJointPositionsResponse>> AsyncMoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::MoveToJointPositionsResponse>>(AsyncMoveToJointPositionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::MoveToJointPositionsResponse>> PrepareAsyncMoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::MoveToJointPositionsResponse>>(PrepareAsyncMoveToJointPositionsRaw(context, request, cq)); + } + // Stop stops a robot's arm + virtual ::grpc::Status Stop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest& request, ::viam::component::arm::v1::StopResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::StopResponse>> AsyncStop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::StopResponse>>(AsyncStopRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::StopResponse>> PrepareAsyncStop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::StopResponse>>(PrepareAsyncStopRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // GetEndPosition gets the current position the end of the robot's arm expressed as X,Y,Z,ox,oy,oz,theta + virtual void GetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest* request, ::viam::component::arm::v1::GetEndPositionResponse* response, std::function) = 0; + virtual void GetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest* request, ::viam::component::arm::v1::GetEndPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // MoveToPosition moves the mount point of the robot's end effector to the requested position. + // This will block until done or a new operation cancels this one + virtual void MoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest* request, ::viam::component::arm::v1::MoveToPositionResponse* response, std::function) = 0; + virtual void MoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest* request, ::viam::component::arm::v1::MoveToPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GetJointPositions lists the joint positions (in degrees) of every joint on a robot + virtual void GetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, std::function) = 0; + virtual void GetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // MoveToJointPositions moves every joint on a robot's arm to specified angles which are expressed in degrees + // This will block until done or a new operation cancels this one + virtual void MoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, std::function) = 0; + virtual void MoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Stop stops a robot's arm + virtual void Stop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest* request, ::viam::component::arm::v1::StopResponse* response, std::function) = 0; + virtual void Stop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest* request, ::viam::component::arm::v1::StopResponse* 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::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::GetEndPositionResponse>* AsyncGetEndPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::GetEndPositionResponse>* PrepareAsyncGetEndPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::MoveToPositionResponse>* AsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::MoveToPositionResponse>* PrepareAsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::GetJointPositionsResponse>* AsyncGetJointPositionsRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::GetJointPositionsResponse>* PrepareAsyncGetJointPositionsRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::MoveToJointPositionsResponse>* AsyncMoveToJointPositionsRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::MoveToJointPositionsResponse>* PrepareAsyncMoveToJointPositionsRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::StopResponse>* AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::StopResponse>* PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest& 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()); + ::grpc::Status GetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::viam::component::arm::v1::GetEndPositionResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetEndPositionResponse>> AsyncGetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetEndPositionResponse>>(AsyncGetEndPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetEndPositionResponse>> PrepareAsyncGetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetEndPositionResponse>>(PrepareAsyncGetEndPositionRaw(context, request, cq)); + } + ::grpc::Status MoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest& request, ::viam::component::arm::v1::MoveToPositionResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToPositionResponse>> AsyncMoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToPositionResponse>>(AsyncMoveToPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToPositionResponse>> PrepareAsyncMoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToPositionResponse>>(PrepareAsyncMoveToPositionRaw(context, request, cq)); + } + ::grpc::Status GetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest& request, ::viam::component::arm::v1::GetJointPositionsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetJointPositionsResponse>> AsyncGetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetJointPositionsResponse>>(AsyncGetJointPositionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetJointPositionsResponse>> PrepareAsyncGetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetJointPositionsResponse>>(PrepareAsyncGetJointPositionsRaw(context, request, cq)); + } + ::grpc::Status MoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest& request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToJointPositionsResponse>> AsyncMoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToJointPositionsResponse>>(AsyncMoveToJointPositionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToJointPositionsResponse>> PrepareAsyncMoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToJointPositionsResponse>>(PrepareAsyncMoveToJointPositionsRaw(context, request, cq)); + } + ::grpc::Status Stop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest& request, ::viam::component::arm::v1::StopResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::StopResponse>> AsyncStop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::StopResponse>>(AsyncStopRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::StopResponse>> PrepareAsyncStop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::StopResponse>>(PrepareAsyncStopRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void GetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest* request, ::viam::component::arm::v1::GetEndPositionResponse* response, std::function) override; + void GetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest* request, ::viam::component::arm::v1::GetEndPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void MoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest* request, ::viam::component::arm::v1::MoveToPositionResponse* response, std::function) override; + void MoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest* request, ::viam::component::arm::v1::MoveToPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, std::function) override; + void GetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void MoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, std::function) override; + void MoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void Stop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest* request, ::viam::component::arm::v1::StopResponse* response, std::function) override; + void Stop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest* request, ::viam::component::arm::v1::StopResponse* 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::ClientAsyncResponseReader< ::viam::component::arm::v1::GetEndPositionResponse>* AsyncGetEndPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetEndPositionResponse>* PrepareAsyncGetEndPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToPositionResponse>* AsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToPositionResponse>* PrepareAsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetJointPositionsResponse>* AsyncGetJointPositionsRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetJointPositionsResponse>* PrepareAsyncGetJointPositionsRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToJointPositionsResponse>* AsyncMoveToJointPositionsRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToJointPositionsResponse>* PrepareAsyncMoveToJointPositionsRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::StopResponse>* AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::StopResponse>* PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_GetEndPosition_; + const ::grpc::internal::RpcMethod rpcmethod_MoveToPosition_; + const ::grpc::internal::RpcMethod rpcmethod_GetJointPositions_; + const ::grpc::internal::RpcMethod rpcmethod_MoveToJointPositions_; + const ::grpc::internal::RpcMethod rpcmethod_Stop_; + }; + 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(); + // GetEndPosition gets the current position the end of the robot's arm expressed as X,Y,Z,ox,oy,oz,theta + virtual ::grpc::Status GetEndPosition(::grpc::ServerContext* context, const ::viam::component::arm::v1::GetEndPositionRequest* request, ::viam::component::arm::v1::GetEndPositionResponse* response); + // MoveToPosition moves the mount point of the robot's end effector to the requested position. + // This will block until done or a new operation cancels this one + virtual ::grpc::Status MoveToPosition(::grpc::ServerContext* context, const ::viam::component::arm::v1::MoveToPositionRequest* request, ::viam::component::arm::v1::MoveToPositionResponse* response); + // GetJointPositions lists the joint positions (in degrees) of every joint on a robot + virtual ::grpc::Status GetJointPositions(::grpc::ServerContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest* request, ::viam::component::arm::v1::GetJointPositionsResponse* response); + // MoveToJointPositions moves every joint on a robot's arm to specified angles which are expressed in degrees + // This will block until done or a new operation cancels this one + virtual ::grpc::Status MoveToJointPositions(::grpc::ServerContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response); + // Stop stops a robot's arm + virtual ::grpc::Status Stop(::grpc::ServerContext* context, const ::viam::component::arm::v1::StopRequest* request, ::viam::component::arm::v1::StopResponse* response); + }; + template + class WithAsyncMethod_GetEndPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetEndPosition() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_GetEndPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetEndPosition(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::GetEndPositionRequest* /*request*/, ::viam::component::arm::v1::GetEndPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetEndPosition(::grpc::ServerContext* context, ::viam::component::arm::v1::GetEndPositionRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::arm::v1::GetEndPositionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_MoveToPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_MoveToPosition() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_MoveToPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveToPosition(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::MoveToPositionRequest* /*request*/, ::viam::component::arm::v1::MoveToPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestMoveToPosition(::grpc::ServerContext* context, ::viam::component::arm::v1::MoveToPositionRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::arm::v1::MoveToPositionResponse>* 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 WithAsyncMethod_GetJointPositions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetJointPositions() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_GetJointPositions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetJointPositions(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::GetJointPositionsRequest* /*request*/, ::viam::component::arm::v1::GetJointPositionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetJointPositions(::grpc::ServerContext* context, ::viam::component::arm::v1::GetJointPositionsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::arm::v1::GetJointPositionsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_MoveToJointPositions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_MoveToJointPositions() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_MoveToJointPositions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveToJointPositions(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::MoveToJointPositionsRequest* /*request*/, ::viam::component::arm::v1::MoveToJointPositionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestMoveToJointPositions(::grpc::ServerContext* context, ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::arm::v1::MoveToJointPositionsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Stop() { + ::grpc::Service::MarkMethodAsync(4); + } + ~WithAsyncMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::StopRequest* /*request*/, ::viam::component::arm::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestStop(::grpc::ServerContext* context, ::viam::component::arm::v1::StopRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::arm::v1::StopResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetEndPosition > > > > AsyncService; + template + class WithCallbackMethod_GetEndPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetEndPosition() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::GetEndPositionRequest, ::viam::component::arm::v1::GetEndPositionResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::arm::v1::GetEndPositionRequest* request, ::viam::component::arm::v1::GetEndPositionResponse* response) { return this->GetEndPosition(context, request, response); }));} + void SetMessageAllocatorFor_GetEndPosition( + ::grpc::MessageAllocator< ::viam::component::arm::v1::GetEndPositionRequest, ::viam::component::arm::v1::GetEndPositionResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::GetEndPositionRequest, ::viam::component::arm::v1::GetEndPositionResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetEndPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetEndPosition(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::GetEndPositionRequest* /*request*/, ::viam::component::arm::v1::GetEndPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetEndPosition( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::GetEndPositionRequest* /*request*/, ::viam::component::arm::v1::GetEndPositionResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_MoveToPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_MoveToPosition() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::MoveToPositionRequest, ::viam::component::arm::v1::MoveToPositionResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::arm::v1::MoveToPositionRequest* request, ::viam::component::arm::v1::MoveToPositionResponse* response) { return this->MoveToPosition(context, request, response); }));} + void SetMessageAllocatorFor_MoveToPosition( + ::grpc::MessageAllocator< ::viam::component::arm::v1::MoveToPositionRequest, ::viam::component::arm::v1::MoveToPositionResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::MoveToPositionRequest, ::viam::component::arm::v1::MoveToPositionResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_MoveToPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveToPosition(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::MoveToPositionRequest* /*request*/, ::viam::component::arm::v1::MoveToPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* MoveToPosition( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::MoveToPositionRequest* /*request*/, ::viam::component::arm::v1::MoveToPositionResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetJointPositions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetJointPositions() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::GetJointPositionsRequest, ::viam::component::arm::v1::GetJointPositionsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest* request, ::viam::component::arm::v1::GetJointPositionsResponse* response) { return this->GetJointPositions(context, request, response); }));} + void SetMessageAllocatorFor_GetJointPositions( + ::grpc::MessageAllocator< ::viam::component::arm::v1::GetJointPositionsRequest, ::viam::component::arm::v1::GetJointPositionsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::GetJointPositionsRequest, ::viam::component::arm::v1::GetJointPositionsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetJointPositions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetJointPositions(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::GetJointPositionsRequest* /*request*/, ::viam::component::arm::v1::GetJointPositionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetJointPositions( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::GetJointPositionsRequest* /*request*/, ::viam::component::arm::v1::GetJointPositionsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_MoveToJointPositions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_MoveToJointPositions() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::MoveToJointPositionsRequest, ::viam::component::arm::v1::MoveToJointPositionsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response) { return this->MoveToJointPositions(context, request, response); }));} + void SetMessageAllocatorFor_MoveToJointPositions( + ::grpc::MessageAllocator< ::viam::component::arm::v1::MoveToJointPositionsRequest, ::viam::component::arm::v1::MoveToJointPositionsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::MoveToJointPositionsRequest, ::viam::component::arm::v1::MoveToJointPositionsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_MoveToJointPositions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveToJointPositions(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::MoveToJointPositionsRequest* /*request*/, ::viam::component::arm::v1::MoveToJointPositionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* MoveToJointPositions( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::MoveToJointPositionsRequest* /*request*/, ::viam::component::arm::v1::MoveToJointPositionsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Stop() { + ::grpc::Service::MarkMethodCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::StopRequest, ::viam::component::arm::v1::StopResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::arm::v1::StopRequest* request, ::viam::component::arm::v1::StopResponse* response) { return this->Stop(context, request, response); }));} + void SetMessageAllocatorFor_Stop( + ::grpc::MessageAllocator< ::viam::component::arm::v1::StopRequest, ::viam::component::arm::v1::StopResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::StopRequest, ::viam::component::arm::v1::StopResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::StopRequest* /*request*/, ::viam::component::arm::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Stop( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::StopRequest* /*request*/, ::viam::component::arm::v1::StopResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetEndPosition > > > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_GetEndPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetEndPosition() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_GetEndPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetEndPosition(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::GetEndPositionRequest* /*request*/, ::viam::component::arm::v1::GetEndPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_MoveToPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_MoveToPosition() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_MoveToPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveToPosition(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::MoveToPositionRequest* /*request*/, ::viam::component::arm::v1::MoveToPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetJointPositions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetJointPositions() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_GetJointPositions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetJointPositions(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::GetJointPositionsRequest* /*request*/, ::viam::component::arm::v1::GetJointPositionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_MoveToJointPositions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_MoveToJointPositions() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_MoveToJointPositions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveToJointPositions(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::MoveToJointPositionsRequest* /*request*/, ::viam::component::arm::v1::MoveToJointPositionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Stop() { + ::grpc::Service::MarkMethodGeneric(4); + } + ~WithGenericMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::StopRequest* /*request*/, ::viam::component::arm::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_GetEndPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetEndPosition() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_GetEndPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetEndPosition(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::GetEndPositionRequest* /*request*/, ::viam::component::arm::v1::GetEndPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetEndPosition(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_MoveToPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_MoveToPosition() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_MoveToPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveToPosition(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::MoveToPositionRequest* /*request*/, ::viam::component::arm::v1::MoveToPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestMoveToPosition(::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 WithRawMethod_GetJointPositions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetJointPositions() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_GetJointPositions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetJointPositions(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::GetJointPositionsRequest* /*request*/, ::viam::component::arm::v1::GetJointPositionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetJointPositions(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_MoveToJointPositions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_MoveToJointPositions() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_MoveToJointPositions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveToJointPositions(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::MoveToJointPositionsRequest* /*request*/, ::viam::component::arm::v1::MoveToJointPositionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestMoveToJointPositions(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Stop() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::StopRequest* /*request*/, ::viam::component::arm::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestStop(::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(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_GetEndPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetEndPosition() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetEndPosition(context, request, response); })); + } + ~WithRawCallbackMethod_GetEndPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetEndPosition(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::GetEndPositionRequest* /*request*/, ::viam::component::arm::v1::GetEndPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetEndPosition( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_MoveToPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_MoveToPosition() { + ::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->MoveToPosition(context, request, response); })); + } + ~WithRawCallbackMethod_MoveToPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveToPosition(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::MoveToPositionRequest* /*request*/, ::viam::component::arm::v1::MoveToPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* MoveToPosition( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetJointPositions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetJointPositions() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetJointPositions(context, request, response); })); + } + ~WithRawCallbackMethod_GetJointPositions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetJointPositions(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::GetJointPositionsRequest* /*request*/, ::viam::component::arm::v1::GetJointPositionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetJointPositions( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_MoveToJointPositions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_MoveToJointPositions() { + ::grpc::Service::MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MoveToJointPositions(context, request, response); })); + } + ~WithRawCallbackMethod_MoveToJointPositions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveToJointPositions(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::MoveToJointPositionsRequest* /*request*/, ::viam::component::arm::v1::MoveToJointPositionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* MoveToJointPositions( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Stop() { + ::grpc::Service::MarkMethodRawCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Stop(context, request, response); })); + } + ~WithRawCallbackMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::StopRequest* /*request*/, ::viam::component::arm::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Stop( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_GetEndPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetEndPosition() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::arm::v1::GetEndPositionRequest, ::viam::component::arm::v1::GetEndPositionResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::arm::v1::GetEndPositionRequest, ::viam::component::arm::v1::GetEndPositionResponse>* streamer) { + return this->StreamedGetEndPosition(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetEndPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetEndPosition(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::GetEndPositionRequest* /*request*/, ::viam::component::arm::v1::GetEndPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetEndPosition(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::arm::v1::GetEndPositionRequest,::viam::component::arm::v1::GetEndPositionResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_MoveToPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_MoveToPosition() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::arm::v1::MoveToPositionRequest, ::viam::component::arm::v1::MoveToPositionResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::arm::v1::MoveToPositionRequest, ::viam::component::arm::v1::MoveToPositionResponse>* streamer) { + return this->StreamedMoveToPosition(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_MoveToPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status MoveToPosition(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::MoveToPositionRequest* /*request*/, ::viam::component::arm::v1::MoveToPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedMoveToPosition(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::arm::v1::MoveToPositionRequest,::viam::component::arm::v1::MoveToPositionResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetJointPositions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetJointPositions() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::arm::v1::GetJointPositionsRequest, ::viam::component::arm::v1::GetJointPositionsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::arm::v1::GetJointPositionsRequest, ::viam::component::arm::v1::GetJointPositionsResponse>* streamer) { + return this->StreamedGetJointPositions(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetJointPositions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetJointPositions(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::GetJointPositionsRequest* /*request*/, ::viam::component::arm::v1::GetJointPositionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetJointPositions(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::arm::v1::GetJointPositionsRequest,::viam::component::arm::v1::GetJointPositionsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_MoveToJointPositions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_MoveToJointPositions() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::arm::v1::MoveToJointPositionsRequest, ::viam::component::arm::v1::MoveToJointPositionsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::arm::v1::MoveToJointPositionsRequest, ::viam::component::arm::v1::MoveToJointPositionsResponse>* streamer) { + return this->StreamedMoveToJointPositions(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_MoveToJointPositions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status MoveToJointPositions(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::MoveToJointPositionsRequest* /*request*/, ::viam::component::arm::v1::MoveToJointPositionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedMoveToJointPositions(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::arm::v1::MoveToJointPositionsRequest,::viam::component::arm::v1::MoveToJointPositionsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Stop() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::arm::v1::StopRequest, ::viam::component::arm::v1::StopResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::arm::v1::StopRequest, ::viam::component::arm::v1::StopResponse>* streamer) { + return this->StreamedStop(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::arm::v1::StopRequest* /*request*/, ::viam::component::arm::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedStop(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::arm::v1::StopRequest,::viam::component::arm::v1::StopResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetEndPosition > > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_GetEndPosition > > > > StreamedService; +}; + +} // namespace v1 +} // namespace arm +} // namespace component +} // namespace viam + + +#endif // GRPC_component_2farm_2fv1_2farm_2eproto__INCLUDED diff --git a/src/gen/component/arm/v1/arm.pb.cc b/src/gen/component/arm/v1/arm.pb.cc new file mode 100644 index 000000000..3a0033800 --- /dev/null +++ b/src/gen/component/arm/v1/arm.pb.cc @@ -0,0 +1,2838 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/arm/v1/arm.proto + +#include "component/arm/v1/arm.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 component { +namespace arm { +namespace v1 { +PROTOBUF_CONSTEXPR GetEndPositionRequest::GetEndPositionRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetEndPositionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetEndPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetEndPositionRequestDefaultTypeInternal() {} + union { + GetEndPositionRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetEndPositionRequestDefaultTypeInternal _GetEndPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR GetEndPositionResponse::GetEndPositionResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.pose_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetEndPositionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetEndPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetEndPositionResponseDefaultTypeInternal() {} + union { + GetEndPositionResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetEndPositionResponseDefaultTypeInternal _GetEndPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR JointPositions::JointPositions( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.values_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct JointPositionsDefaultTypeInternal { + PROTOBUF_CONSTEXPR JointPositionsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~JointPositionsDefaultTypeInternal() {} + union { + JointPositions _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JointPositionsDefaultTypeInternal _JointPositions_default_instance_; +PROTOBUF_CONSTEXPR GetJointPositionsRequest::GetJointPositionsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetJointPositionsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetJointPositionsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetJointPositionsRequestDefaultTypeInternal() {} + union { + GetJointPositionsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetJointPositionsRequestDefaultTypeInternal _GetJointPositionsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetJointPositionsResponse::GetJointPositionsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.positions_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetJointPositionsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetJointPositionsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetJointPositionsResponseDefaultTypeInternal() {} + union { + GetJointPositionsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetJointPositionsResponseDefaultTypeInternal _GetJointPositionsResponse_default_instance_; +PROTOBUF_CONSTEXPR MoveToPositionRequest::MoveToPositionRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.to_)*/nullptr + , /*decltype(_impl_.world_state_)*/nullptr + , /*decltype(_impl_.extra_)*/nullptr} {} +struct MoveToPositionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveToPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveToPositionRequestDefaultTypeInternal() {} + union { + MoveToPositionRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveToPositionRequestDefaultTypeInternal _MoveToPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR MoveToPositionResponse::MoveToPositionResponse( + ::_pbi::ConstantInitialized) {} +struct MoveToPositionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveToPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveToPositionResponseDefaultTypeInternal() {} + union { + MoveToPositionResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveToPositionResponseDefaultTypeInternal _MoveToPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR MoveToJointPositionsRequest::MoveToJointPositionsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.positions_)*/nullptr + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct MoveToJointPositionsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveToJointPositionsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveToJointPositionsRequestDefaultTypeInternal() {} + union { + MoveToJointPositionsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveToJointPositionsRequestDefaultTypeInternal _MoveToJointPositionsRequest_default_instance_; +PROTOBUF_CONSTEXPR MoveToJointPositionsResponse::MoveToJointPositionsResponse( + ::_pbi::ConstantInitialized) {} +struct MoveToJointPositionsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveToJointPositionsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveToJointPositionsResponseDefaultTypeInternal() {} + union { + MoveToJointPositionsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveToJointPositionsResponseDefaultTypeInternal _MoveToJointPositionsResponse_default_instance_; +PROTOBUF_CONSTEXPR StopRequest::StopRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StopRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopRequestDefaultTypeInternal() {} + union { + StopRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopRequestDefaultTypeInternal _StopRequest_default_instance_; +PROTOBUF_CONSTEXPR StopResponse::StopResponse( + ::_pbi::ConstantInitialized) {} +struct StopResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopResponseDefaultTypeInternal() {} + union { + StopResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopResponseDefaultTypeInternal _StopResponse_default_instance_; +PROTOBUF_CONSTEXPR Status::Status( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.end_position_)*/nullptr + , /*decltype(_impl_.joint_positions_)*/nullptr + , /*decltype(_impl_.is_moving_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StatusDefaultTypeInternal() {} + union { + Status _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; +} // namespace v1 +} // namespace arm +} // namespace component +} // namespace viam +static ::_pb::Metadata file_level_metadata_component_2farm_2fv1_2farm_2eproto[12]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2farm_2fv1_2farm_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2farm_2fv1_2farm_2eproto = nullptr; + +const uint32_t TableStruct_component_2farm_2fv1_2farm_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetEndPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetEndPositionRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetEndPositionRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetEndPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetEndPositionResponse, _impl_.pose_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::JointPositions, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::JointPositions, _impl_.values_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetJointPositionsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetJointPositionsRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetJointPositionsRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetJointPositionsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetJointPositionsResponse, _impl_.positions_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToPositionRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToPositionRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToPositionRequest, _impl_.to_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToPositionRequest, _impl_.world_state_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToPositionRequest, _impl_.extra_), + ~0u, + ~0u, + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToJointPositionsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToJointPositionsRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToJointPositionsRequest, _impl_.positions_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToJointPositionsRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToJointPositionsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::StopRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::StopRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::StopRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::StopResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::Status, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::Status, _impl_.end_position_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::Status, _impl_.joint_positions_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::Status, _impl_.is_moving_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::arm::v1::GetEndPositionRequest)}, + { 8, -1, -1, sizeof(::viam::component::arm::v1::GetEndPositionResponse)}, + { 15, -1, -1, sizeof(::viam::component::arm::v1::JointPositions)}, + { 22, -1, -1, sizeof(::viam::component::arm::v1::GetJointPositionsRequest)}, + { 30, -1, -1, sizeof(::viam::component::arm::v1::GetJointPositionsResponse)}, + { 37, 47, -1, sizeof(::viam::component::arm::v1::MoveToPositionRequest)}, + { 51, -1, -1, sizeof(::viam::component::arm::v1::MoveToPositionResponse)}, + { 57, -1, -1, sizeof(::viam::component::arm::v1::MoveToJointPositionsRequest)}, + { 66, -1, -1, sizeof(::viam::component::arm::v1::MoveToJointPositionsResponse)}, + { 72, -1, -1, sizeof(::viam::component::arm::v1::StopRequest)}, + { 80, -1, -1, sizeof(::viam::component::arm::v1::StopResponse)}, + { 86, -1, -1, sizeof(::viam::component::arm::v1::Status)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::component::arm::v1::_GetEndPositionRequest_default_instance_._instance, + &::viam::component::arm::v1::_GetEndPositionResponse_default_instance_._instance, + &::viam::component::arm::v1::_JointPositions_default_instance_._instance, + &::viam::component::arm::v1::_GetJointPositionsRequest_default_instance_._instance, + &::viam::component::arm::v1::_GetJointPositionsResponse_default_instance_._instance, + &::viam::component::arm::v1::_MoveToPositionRequest_default_instance_._instance, + &::viam::component::arm::v1::_MoveToPositionResponse_default_instance_._instance, + &::viam::component::arm::v1::_MoveToJointPositionsRequest_default_instance_._instance, + &::viam::component::arm::v1::_MoveToJointPositionsResponse_default_instance_._instance, + &::viam::component::arm::v1::_StopRequest_default_instance_._instance, + &::viam::component::arm::v1::_StopResponse_default_instance_._instance, + &::viam::component::arm::v1::_Status_default_instance_._instance, +}; + +const char descriptor_table_protodef_component_2farm_2fv1_2farm_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\032component/arm/v1/arm.proto\022\025viam.compo" + "nent.arm.v1\032\026common/v1/common.proto\032\034goo" + "gle/api/annotations.proto\032\034google/protob" + "uf/struct.proto\"Z\n\025GetEndPositionRequest" + "\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.go" + "ogle.protobuf.StructR\005extra\"B\n\026GetEndPos" + "itionResponse\022(\n\004pose\030\001 \001(\0132\024.viam.commo" + "n.v1.PoseR\004pose\"(\n\016JointPositions\022\026\n\006val" + "ues\030\001 \003(\001R\006values\"]\n\030GetJointPositionsRe" + "quest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\013" + "2\027.google.protobuf.StructR\005extra\"`\n\031GetJ" + "ointPositionsResponse\022C\n\tpositions\030\001 \001(\013" + "2%.viam.component.arm.v1.JointPositionsR" + "\tpositions\"\322\001\n\025MoveToPositionRequest\022\022\n\004" + "name\030\001 \001(\tR\004name\022$\n\002to\030\002 \001(\0132\024.viam.comm" + "on.v1.PoseR\002to\022@\n\013world_state\030\003 \001(\0132\032.vi" + "am.common.v1.WorldStateH\000R\nworldState\210\001\001" + "\022-\n\005extra\030c \001(\0132\027.google.protobuf.Struct" + "R\005extraB\016\n\014_world_state\"\030\n\026MoveToPositio" + "nResponse\"\245\001\n\033MoveToJointPositionsReques" + "t\022\022\n\004name\030\001 \001(\tR\004name\022C\n\tpositions\030\002 \001(\013" + "2%.viam.component.arm.v1.JointPositionsR" + "\tpositions\022-\n\005extra\030c \001(\0132\027.google.proto" + "buf.StructR\005extra\"\036\n\034MoveToJointPosition" + "sResponse\"P\n\013StopRequest\022\022\n\004name\030\001 \001(\tR\004" + "name\022-\n\005extra\030c \001(\0132\027.google.protobuf.St" + "ructR\005extra\"\016\n\014StopResponse\"\256\001\n\006Status\0227" + "\n\014end_position\030\001 \001(\0132\024.viam.common.v1.Po" + "seR\013endPosition\022N\n\017joint_positions\030\002 \001(\013" + "2%.viam.component.arm.v1.JointPositionsR" + "\016jointPositions\022\033\n\tis_moving\030\003 \001(\010R\010isMo" + "ving2\306\006\n\nArmService\022\241\001\n\016GetEndPosition\022," + ".viam.component.arm.v1.GetEndPositionReq" + "uest\032-.viam.component.arm.v1.GetEndPosit" + "ionResponse\"2\202\323\344\223\002,\022*/viam/api/v1/compon" + "ent/arm/{name}/position\022\241\001\n\016MoveToPositi" + "on\022,.viam.component.arm.v1.MoveToPositio" + "nRequest\032-.viam.component.arm.v1.MoveToP" + "ositionResponse\"2\202\323\344\223\002,\032*/viam/api/v1/co" + "mponent/arm/{name}/position\022\261\001\n\021GetJoint" + "Positions\022/.viam.component.arm.v1.GetJoi" + "ntPositionsRequest\0320.viam.component.arm." + "v1.GetJointPositionsResponse\"9\202\323\344\223\0023\0221/v" + "iam/api/v1/component/arm/{name}/joint_po" + "sitions\022\272\001\n\024MoveToJointPositions\0222.viam." + "component.arm.v1.MoveToJointPositionsReq" + "uest\0323.viam.component.arm.v1.MoveToJoint" + "PositionsResponse\"9\202\323\344\223\0023\0321/viam/api/v1/" + "component/arm/{name}/joint_positions\022\177\n\004" + "Stop\022\".viam.component.arm.v1.StopRequest" + "\032#.viam.component.arm.v1.StopResponse\".\202" + "\323\344\223\002(\"&/viam/api/v1/component/arm/{name}" + "/stopB=\n\031com.viam.component.arm.v1Z go.v" + "iam.com/api/component/arm/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2farm_2fv1_2farm_2eproto_deps[3] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, +}; +static ::_pbi::once_flag descriptor_table_component_2farm_2fv1_2farm_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_component_2farm_2fv1_2farm_2eproto = { + false, false, 2156, 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, 12, + schemas, file_default_instances, TableStruct_component_2farm_2fv1_2farm_2eproto::offsets, + file_level_metadata_component_2farm_2fv1_2farm_2eproto, file_level_enum_descriptors_component_2farm_2fv1_2farm_2eproto, + file_level_service_descriptors_component_2farm_2fv1_2farm_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2farm_2fv1_2farm_2eproto_getter() { + return &descriptor_table_component_2farm_2fv1_2farm_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2farm_2fv1_2farm_2eproto(&descriptor_table_component_2farm_2fv1_2farm_2eproto); +namespace viam { +namespace component { +namespace arm { +namespace v1 { + +// =================================================================== + +class GetEndPositionRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetEndPositionRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetEndPositionRequest::_Internal::extra(const GetEndPositionRequest* msg) { + return *msg->_impl_.extra_; +} +void GetEndPositionRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +GetEndPositionRequest::GetEndPositionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.arm.v1.GetEndPositionRequest) +} +GetEndPositionRequest::GetEndPositionRequest(const GetEndPositionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetEndPositionRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.GetEndPositionRequest) +} + +inline void GetEndPositionRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetEndPositionRequest::~GetEndPositionRequest() { + // @@protoc_insertion_point(destructor:viam.component.arm.v1.GetEndPositionRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetEndPositionRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void GetEndPositionRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetEndPositionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.GetEndPositionRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetEndPositionRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.arm.v1.GetEndPositionRequest.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* GetEndPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.GetEndPositionRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.arm.v1.GetEndPositionRequest.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.component.arm.v1.GetEndPositionRequest) + return target; +} + +size_t GetEndPositionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.GetEndPositionRequest) + 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( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetEndPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetEndPositionRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetEndPositionRequest::GetClassData() const { return &_class_data_; } + + +void GetEndPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.GetEndPositionRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetEndPositionRequest::CopyFrom(const GetEndPositionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.arm.v1.GetEndPositionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetEndPositionRequest::IsInitialized() const { + return true; +} + +void GetEndPositionRequest::InternalSwap(GetEndPositionRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.extra_, other->_impl_.extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetEndPositionRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, + file_level_metadata_component_2farm_2fv1_2farm_2eproto[0]); +} + +// =================================================================== + +class GetEndPositionResponse::_Internal { + public: + static const ::viam::common::v1::Pose& pose(const GetEndPositionResponse* msg); +}; + +const ::viam::common::v1::Pose& +GetEndPositionResponse::_Internal::pose(const GetEndPositionResponse* msg) { + return *msg->_impl_.pose_; +} +void GetEndPositionResponse::clear_pose() { + if (GetArenaForAllocation() == nullptr && _impl_.pose_ != nullptr) { + delete _impl_.pose_; + } + _impl_.pose_ = nullptr; +} +GetEndPositionResponse::GetEndPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.arm.v1.GetEndPositionResponse) +} +GetEndPositionResponse::GetEndPositionResponse(const GetEndPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetEndPositionResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.pose_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_pose()) { + _this->_impl_.pose_ = new ::viam::common::v1::Pose(*from._impl_.pose_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.GetEndPositionResponse) +} + +inline void GetEndPositionResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.pose_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetEndPositionResponse::~GetEndPositionResponse() { + // @@protoc_insertion_point(destructor:viam.component.arm.v1.GetEndPositionResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetEndPositionResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.pose_; +} + +void GetEndPositionResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetEndPositionResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.GetEndPositionResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.pose_ != nullptr) { + delete _impl_.pose_; + } + _impl_.pose_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetEndPositionResponse::_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) { + // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_pose(), 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* GetEndPositionResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.GetEndPositionResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; + if (this->_internal_has_pose()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::pose(this), + _Internal::pose(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.arm.v1.GetEndPositionResponse) + return target; +} + +size_t GetEndPositionResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.GetEndPositionResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; + if (this->_internal_has_pose()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.pose_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetEndPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetEndPositionResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetEndPositionResponse::GetClassData() const { return &_class_data_; } + + +void GetEndPositionResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.GetEndPositionResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_pose()) { + _this->_internal_mutable_pose()->::viam::common::v1::Pose::MergeFrom( + from._internal_pose()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetEndPositionResponse::CopyFrom(const GetEndPositionResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.arm.v1.GetEndPositionResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetEndPositionResponse::IsInitialized() const { + return true; +} + +void GetEndPositionResponse::InternalSwap(GetEndPositionResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.pose_, other->_impl_.pose_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetEndPositionResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, + file_level_metadata_component_2farm_2fv1_2farm_2eproto[1]); +} + +// =================================================================== + +class JointPositions::_Internal { + public: +}; + +JointPositions::JointPositions(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.arm.v1.JointPositions) +} +JointPositions::JointPositions(const JointPositions& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + JointPositions* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.values_){from._impl_.values_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.JointPositions) +} + +inline void JointPositions::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.values_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +JointPositions::~JointPositions() { + // @@protoc_insertion_point(destructor:viam.component.arm.v1.JointPositions) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void JointPositions::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.values_.~RepeatedField(); +} + +void JointPositions::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void JointPositions::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.JointPositions) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.values_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* JointPositions::_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) { + // repeated double values = 1 [json_name = "values"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_values(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 9) { + _internal_add_values(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } 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* JointPositions::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.JointPositions) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated double values = 1 [json_name = "values"]; + if (this->_internal_values_size() > 0) { + target = stream->WriteFixedPacked(1, _internal_values(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.arm.v1.JointPositions) + return target; +} + +size_t JointPositions::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.JointPositions) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated double values = 1 [json_name = "values"]; + { + unsigned int count = static_cast(this->_internal_values_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData JointPositions::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + JointPositions::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*JointPositions::GetClassData() const { return &_class_data_; } + + +void JointPositions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.JointPositions) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.values_.MergeFrom(from._impl_.values_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void JointPositions::CopyFrom(const JointPositions& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.arm.v1.JointPositions) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool JointPositions::IsInitialized() const { + return true; +} + +void JointPositions::InternalSwap(JointPositions* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.values_.InternalSwap(&other->_impl_.values_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata JointPositions::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, + file_level_metadata_component_2farm_2fv1_2farm_2eproto[2]); +} + +// =================================================================== + +class GetJointPositionsRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetJointPositionsRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetJointPositionsRequest::_Internal::extra(const GetJointPositionsRequest* msg) { + return *msg->_impl_.extra_; +} +void GetJointPositionsRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +GetJointPositionsRequest::GetJointPositionsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.arm.v1.GetJointPositionsRequest) +} +GetJointPositionsRequest::GetJointPositionsRequest(const GetJointPositionsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetJointPositionsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.GetJointPositionsRequest) +} + +inline void GetJointPositionsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetJointPositionsRequest::~GetJointPositionsRequest() { + // @@protoc_insertion_point(destructor:viam.component.arm.v1.GetJointPositionsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetJointPositionsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void GetJointPositionsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetJointPositionsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.GetJointPositionsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetJointPositionsRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.arm.v1.GetJointPositionsRequest.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* GetJointPositionsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.GetJointPositionsRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.arm.v1.GetJointPositionsRequest.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.component.arm.v1.GetJointPositionsRequest) + return target; +} + +size_t GetJointPositionsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.GetJointPositionsRequest) + 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( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetJointPositionsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetJointPositionsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetJointPositionsRequest::GetClassData() const { return &_class_data_; } + + +void GetJointPositionsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.GetJointPositionsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetJointPositionsRequest::CopyFrom(const GetJointPositionsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.arm.v1.GetJointPositionsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetJointPositionsRequest::IsInitialized() const { + return true; +} + +void GetJointPositionsRequest::InternalSwap(GetJointPositionsRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.extra_, other->_impl_.extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetJointPositionsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, + file_level_metadata_component_2farm_2fv1_2farm_2eproto[3]); +} + +// =================================================================== + +class GetJointPositionsResponse::_Internal { + public: + static const ::viam::component::arm::v1::JointPositions& positions(const GetJointPositionsResponse* msg); +}; + +const ::viam::component::arm::v1::JointPositions& +GetJointPositionsResponse::_Internal::positions(const GetJointPositionsResponse* msg) { + return *msg->_impl_.positions_; +} +GetJointPositionsResponse::GetJointPositionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.arm.v1.GetJointPositionsResponse) +} +GetJointPositionsResponse::GetJointPositionsResponse(const GetJointPositionsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetJointPositionsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.positions_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_positions()) { + _this->_impl_.positions_ = new ::viam::component::arm::v1::JointPositions(*from._impl_.positions_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.GetJointPositionsResponse) +} + +inline void GetJointPositionsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.positions_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetJointPositionsResponse::~GetJointPositionsResponse() { + // @@protoc_insertion_point(destructor:viam.component.arm.v1.GetJointPositionsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetJointPositionsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.positions_; +} + +void GetJointPositionsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetJointPositionsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.GetJointPositionsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.positions_ != nullptr) { + delete _impl_.positions_; + } + _impl_.positions_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetJointPositionsResponse::_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) { + // .viam.component.arm.v1.JointPositions positions = 1 [json_name = "positions"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_positions(), 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* GetJointPositionsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.GetJointPositionsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.component.arm.v1.JointPositions positions = 1 [json_name = "positions"]; + if (this->_internal_has_positions()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::positions(this), + _Internal::positions(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.arm.v1.GetJointPositionsResponse) + return target; +} + +size_t GetJointPositionsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.GetJointPositionsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.component.arm.v1.JointPositions positions = 1 [json_name = "positions"]; + if (this->_internal_has_positions()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.positions_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetJointPositionsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetJointPositionsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetJointPositionsResponse::GetClassData() const { return &_class_data_; } + + +void GetJointPositionsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.GetJointPositionsResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_positions()) { + _this->_internal_mutable_positions()->::viam::component::arm::v1::JointPositions::MergeFrom( + from._internal_positions()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetJointPositionsResponse::CopyFrom(const GetJointPositionsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.arm.v1.GetJointPositionsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetJointPositionsResponse::IsInitialized() const { + return true; +} + +void GetJointPositionsResponse::InternalSwap(GetJointPositionsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.positions_, other->_impl_.positions_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetJointPositionsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, + file_level_metadata_component_2farm_2fv1_2farm_2eproto[4]); +} + +// =================================================================== + +class MoveToPositionRequest::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static const ::viam::common::v1::Pose& to(const MoveToPositionRequest* msg); + static const ::viam::common::v1::WorldState& world_state(const MoveToPositionRequest* msg); + static void set_has_world_state(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const MoveToPositionRequest* msg); +}; + +const ::viam::common::v1::Pose& +MoveToPositionRequest::_Internal::to(const MoveToPositionRequest* msg) { + return *msg->_impl_.to_; +} +const ::viam::common::v1::WorldState& +MoveToPositionRequest::_Internal::world_state(const MoveToPositionRequest* msg) { + return *msg->_impl_.world_state_; +} +const ::PROTOBUF_NAMESPACE_ID::Struct& +MoveToPositionRequest::_Internal::extra(const MoveToPositionRequest* msg) { + return *msg->_impl_.extra_; +} +void MoveToPositionRequest::clear_to() { + if (GetArenaForAllocation() == nullptr && _impl_.to_ != nullptr) { + delete _impl_.to_; + } + _impl_.to_ = nullptr; +} +void MoveToPositionRequest::clear_world_state() { + if (_impl_.world_state_ != nullptr) _impl_.world_state_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +void MoveToPositionRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +MoveToPositionRequest::MoveToPositionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.arm.v1.MoveToPositionRequest) +} +MoveToPositionRequest::MoveToPositionRequest(const MoveToPositionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + MoveToPositionRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.name_){} + , decltype(_impl_.to_){nullptr} + , decltype(_impl_.world_state_){nullptr} + , decltype(_impl_.extra_){nullptr}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_to()) { + _this->_impl_.to_ = new ::viam::common::v1::Pose(*from._impl_.to_); + } + if (from._internal_has_world_state()) { + _this->_impl_.world_state_ = new ::viam::common::v1::WorldState(*from._impl_.world_state_); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.MoveToPositionRequest) +} + +inline void MoveToPositionRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.name_){} + , decltype(_impl_.to_){nullptr} + , decltype(_impl_.world_state_){nullptr} + , decltype(_impl_.extra_){nullptr} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +MoveToPositionRequest::~MoveToPositionRequest() { + // @@protoc_insertion_point(destructor:viam.component.arm.v1.MoveToPositionRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void MoveToPositionRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.to_; + if (this != internal_default_instance()) delete _impl_.world_state_; + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void MoveToPositionRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void MoveToPositionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.MoveToPositionRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.to_ != nullptr) { + delete _impl_.to_; + } + _impl_.to_ = nullptr; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(_impl_.world_state_ != nullptr); + _impl_.world_state_->Clear(); + } + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveToPositionRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.arm.v1.MoveToPositionRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.Pose to = 2 [json_name = "to"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_to(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional .viam.common.v1.WorldState world_state = 3 [json_name = "worldState"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_world_state(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + case 99: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_extra(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + _impl_._has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* MoveToPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.MoveToPositionRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.arm.v1.MoveToPositionRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .viam.common.v1.Pose to = 2 [json_name = "to"]; + if (this->_internal_has_to()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::to(this), + _Internal::to(this).GetCachedSize(), target, stream); + } + + // optional .viam.common.v1.WorldState world_state = 3 [json_name = "worldState"]; + if (_internal_has_world_state()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::world_state(this), + _Internal::world_state(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(99, _Internal::extra(this), + _Internal::extra(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.arm.v1.MoveToPositionRequest) + return target; +} + +size_t MoveToPositionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.MoveToPositionRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // .viam.common.v1.Pose to = 2 [json_name = "to"]; + if (this->_internal_has_to()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.to_); + } + + // optional .viam.common.v1.WorldState world_state = 3 [json_name = "worldState"]; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.world_state_); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveToPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MoveToPositionRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveToPositionRequest::GetClassData() const { return &_class_data_; } + + +void MoveToPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.MoveToPositionRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_to()) { + _this->_internal_mutable_to()->::viam::common::v1::Pose::MergeFrom( + from._internal_to()); + } + if (from._internal_has_world_state()) { + _this->_internal_mutable_world_state()->::viam::common::v1::WorldState::MergeFrom( + from._internal_world_state()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MoveToPositionRequest::CopyFrom(const MoveToPositionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.arm.v1.MoveToPositionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoveToPositionRequest::IsInitialized() const { + return true; +} + +void MoveToPositionRequest::InternalSwap(MoveToPositionRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_.extra_) + + sizeof(MoveToPositionRequest::_impl_.extra_) + - PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_.to_)>( + reinterpret_cast(&_impl_.to_), + reinterpret_cast(&other->_impl_.to_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MoveToPositionRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, + file_level_metadata_component_2farm_2fv1_2farm_2eproto[5]); +} + +// =================================================================== + +class MoveToPositionResponse::_Internal { + public: +}; + +MoveToPositionResponse::MoveToPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.arm.v1.MoveToPositionResponse) +} +MoveToPositionResponse::MoveToPositionResponse(const MoveToPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + MoveToPositionResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.MoveToPositionResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveToPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveToPositionResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata MoveToPositionResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, + file_level_metadata_component_2farm_2fv1_2farm_2eproto[6]); +} + +// =================================================================== + +class MoveToJointPositionsRequest::_Internal { + public: + static const ::viam::component::arm::v1::JointPositions& positions(const MoveToJointPositionsRequest* msg); + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const MoveToJointPositionsRequest* msg); +}; + +const ::viam::component::arm::v1::JointPositions& +MoveToJointPositionsRequest::_Internal::positions(const MoveToJointPositionsRequest* msg) { + return *msg->_impl_.positions_; +} +const ::PROTOBUF_NAMESPACE_ID::Struct& +MoveToJointPositionsRequest::_Internal::extra(const MoveToJointPositionsRequest* msg) { + return *msg->_impl_.extra_; +} +void MoveToJointPositionsRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +MoveToJointPositionsRequest::MoveToJointPositionsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.arm.v1.MoveToJointPositionsRequest) +} +MoveToJointPositionsRequest::MoveToJointPositionsRequest(const MoveToJointPositionsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + MoveToJointPositionsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.positions_){nullptr} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_positions()) { + _this->_impl_.positions_ = new ::viam::component::arm::v1::JointPositions(*from._impl_.positions_); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.MoveToJointPositionsRequest) +} + +inline void MoveToJointPositionsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.positions_){nullptr} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +MoveToJointPositionsRequest::~MoveToJointPositionsRequest() { + // @@protoc_insertion_point(destructor:viam.component.arm.v1.MoveToJointPositionsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void MoveToJointPositionsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.positions_; + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void MoveToJointPositionsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void MoveToJointPositionsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.MoveToJointPositionsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.positions_ != nullptr) { + delete _impl_.positions_; + } + _impl_.positions_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveToJointPositionsRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.arm.v1.MoveToJointPositionsRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_positions(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + case 99: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_extra(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* MoveToJointPositionsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.MoveToJointPositionsRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.arm.v1.MoveToJointPositionsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; + if (this->_internal_has_positions()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::positions(this), + _Internal::positions(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(99, _Internal::extra(this), + _Internal::extra(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.arm.v1.MoveToJointPositionsRequest) + return target; +} + +size_t MoveToJointPositionsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.MoveToJointPositionsRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; + if (this->_internal_has_positions()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.positions_); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveToJointPositionsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MoveToJointPositionsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveToJointPositionsRequest::GetClassData() const { return &_class_data_; } + + +void MoveToJointPositionsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.MoveToJointPositionsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_positions()) { + _this->_internal_mutable_positions()->::viam::component::arm::v1::JointPositions::MergeFrom( + from._internal_positions()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MoveToJointPositionsRequest::CopyFrom(const MoveToJointPositionsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.arm.v1.MoveToJointPositionsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoveToJointPositionsRequest::IsInitialized() const { + return true; +} + +void MoveToJointPositionsRequest::InternalSwap(MoveToJointPositionsRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MoveToJointPositionsRequest, _impl_.extra_) + + sizeof(MoveToJointPositionsRequest::_impl_.extra_) + - PROTOBUF_FIELD_OFFSET(MoveToJointPositionsRequest, _impl_.positions_)>( + reinterpret_cast(&_impl_.positions_), + reinterpret_cast(&other->_impl_.positions_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MoveToJointPositionsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, + file_level_metadata_component_2farm_2fv1_2farm_2eproto[7]); +} + +// =================================================================== + +class MoveToJointPositionsResponse::_Internal { + public: +}; + +MoveToJointPositionsResponse::MoveToJointPositionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.arm.v1.MoveToJointPositionsResponse) +} +MoveToJointPositionsResponse::MoveToJointPositionsResponse(const MoveToJointPositionsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + MoveToJointPositionsResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.MoveToJointPositionsResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveToJointPositionsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveToJointPositionsResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata MoveToJointPositionsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, + file_level_metadata_component_2farm_2fv1_2farm_2eproto[8]); +} + +// =================================================================== + +class StopRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const StopRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +StopRequest::_Internal::extra(const StopRequest* msg) { + return *msg->_impl_.extra_; +} +void StopRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +StopRequest::StopRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.arm.v1.StopRequest) +} +StopRequest::StopRequest(const StopRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + StopRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.StopRequest) +} + +inline void StopRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +StopRequest::~StopRequest() { + // @@protoc_insertion_point(destructor:viam.component.arm.v1.StopRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void StopRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void StopRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void StopRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.StopRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StopRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.arm.v1.StopRequest.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* StopRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.StopRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.arm.v1.StopRequest.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.component.arm.v1.StopRequest) + return target; +} + +size_t StopRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.StopRequest) + 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( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + StopRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopRequest::GetClassData() const { return &_class_data_; } + + +void StopRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.StopRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void StopRequest::CopyFrom(const StopRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.arm.v1.StopRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StopRequest::IsInitialized() const { + return true; +} + +void StopRequest::InternalSwap(StopRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.extra_, other->_impl_.extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StopRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, + file_level_metadata_component_2farm_2fv1_2farm_2eproto[9]); +} + +// =================================================================== + +class StopResponse::_Internal { + public: +}; + +StopResponse::StopResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.arm.v1.StopResponse) +} +StopResponse::StopResponse(const StopResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + StopResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.StopResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata StopResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, + file_level_metadata_component_2farm_2fv1_2farm_2eproto[10]); +} + +// =================================================================== + +class Status::_Internal { + public: + static const ::viam::common::v1::Pose& end_position(const Status* msg); + static const ::viam::component::arm::v1::JointPositions& joint_positions(const Status* msg); +}; + +const ::viam::common::v1::Pose& +Status::_Internal::end_position(const Status* msg) { + return *msg->_impl_.end_position_; +} +const ::viam::component::arm::v1::JointPositions& +Status::_Internal::joint_positions(const Status* msg) { + return *msg->_impl_.joint_positions_; +} +void Status::clear_end_position() { + if (GetArenaForAllocation() == nullptr && _impl_.end_position_ != nullptr) { + delete _impl_.end_position_; + } + _impl_.end_position_ = nullptr; +} +Status::Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.arm.v1.Status) +} +Status::Status(const Status& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Status* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.end_position_){nullptr} + , decltype(_impl_.joint_positions_){nullptr} + , decltype(_impl_.is_moving_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_end_position()) { + _this->_impl_.end_position_ = new ::viam::common::v1::Pose(*from._impl_.end_position_); + } + if (from._internal_has_joint_positions()) { + _this->_impl_.joint_positions_ = new ::viam::component::arm::v1::JointPositions(*from._impl_.joint_positions_); + } + _this->_impl_.is_moving_ = from._impl_.is_moving_; + // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.Status) +} + +inline void Status::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.end_position_){nullptr} + , decltype(_impl_.joint_positions_){nullptr} + , decltype(_impl_.is_moving_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Status::~Status() { + // @@protoc_insertion_point(destructor:viam.component.arm.v1.Status) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Status::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.end_position_; + if (this != internal_default_instance()) delete _impl_.joint_positions_; +} + +void Status::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Status::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.Status) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.end_position_ != nullptr) { + delete _impl_.end_position_; + } + _impl_.end_position_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.joint_positions_ != nullptr) { + delete _impl_.joint_positions_; + } + _impl_.joint_positions_ = nullptr; + _impl_.is_moving_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Status::_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) { + // .viam.common.v1.Pose end_position = 1 [json_name = "endPosition"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_end_position(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.component.arm.v1.JointPositions joint_positions = 2 [json_name = "jointPositions"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_joint_positions(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool is_moving = 3 [json_name = "isMoving"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* Status::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.Status) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.common.v1.Pose end_position = 1 [json_name = "endPosition"]; + if (this->_internal_has_end_position()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::end_position(this), + _Internal::end_position(this).GetCachedSize(), target, stream); + } + + // .viam.component.arm.v1.JointPositions joint_positions = 2 [json_name = "jointPositions"]; + if (this->_internal_has_joint_positions()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::joint_positions(this), + _Internal::joint_positions(this).GetCachedSize(), target, stream); + } + + // bool is_moving = 3 [json_name = "isMoving"]; + if (this->_internal_is_moving() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_is_moving(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.arm.v1.Status) + return target; +} + +size_t Status::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.Status) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.common.v1.Pose end_position = 1 [json_name = "endPosition"]; + if (this->_internal_has_end_position()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.end_position_); + } + + // .viam.component.arm.v1.JointPositions joint_positions = 2 [json_name = "jointPositions"]; + if (this->_internal_has_joint_positions()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.joint_positions_); + } + + // bool is_moving = 3 [json_name = "isMoving"]; + if (this->_internal_is_moving() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Status::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Status::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Status::GetClassData() const { return &_class_data_; } + + +void Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.Status) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_end_position()) { + _this->_internal_mutable_end_position()->::viam::common::v1::Pose::MergeFrom( + from._internal_end_position()); + } + if (from._internal_has_joint_positions()) { + _this->_internal_mutable_joint_positions()->::viam::component::arm::v1::JointPositions::MergeFrom( + from._internal_joint_positions()); + } + if (from._internal_is_moving() != 0) { + _this->_internal_set_is_moving(from._internal_is_moving()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Status::CopyFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.arm.v1.Status) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Status::IsInitialized() const { + return true; +} + +void Status::InternalSwap(Status* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Status, _impl_.is_moving_) + + sizeof(Status::_impl_.is_moving_) + - PROTOBUF_FIELD_OFFSET(Status, _impl_.end_position_)>( + reinterpret_cast(&_impl_.end_position_), + reinterpret_cast(&other->_impl_.end_position_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, + file_level_metadata_component_2farm_2fv1_2farm_2eproto[11]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace arm +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::GetEndPositionRequest* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::GetEndPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::GetEndPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::GetEndPositionResponse* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::GetEndPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::GetEndPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::JointPositions* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::JointPositions >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::JointPositions >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::GetJointPositionsRequest* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::GetJointPositionsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::GetJointPositionsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::GetJointPositionsResponse* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::GetJointPositionsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::GetJointPositionsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::MoveToPositionRequest* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::MoveToPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::MoveToPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::MoveToPositionResponse* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::MoveToPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::MoveToPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::MoveToJointPositionsRequest* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::MoveToJointPositionsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::MoveToJointPositionsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::MoveToJointPositionsResponse* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::MoveToJointPositionsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::MoveToJointPositionsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::StopRequest* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::StopRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::StopRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::StopResponse* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::StopResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::StopResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::Status* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::Status >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::Status >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/component/arm/v1/arm.pb.h b/src/gen/component/arm/v1/arm.pb.h new file mode 100644 index 000000000..bc9e0105d --- /dev/null +++ b/src/gen/component/arm/v1/arm.pb.h @@ -0,0 +1,3502 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/arm/v1/arm.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2farm_2fv1_2farm_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2farm_2fv1_2farm_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "common/v1/common.pb.h" +#include "google/api/annotations.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_component_2farm_2fv1_2farm_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_component_2farm_2fv1_2farm_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2farm_2fv1_2farm_2eproto; +namespace viam { +namespace component { +namespace arm { +namespace v1 { +class GetEndPositionRequest; +struct GetEndPositionRequestDefaultTypeInternal; +extern GetEndPositionRequestDefaultTypeInternal _GetEndPositionRequest_default_instance_; +class GetEndPositionResponse; +struct GetEndPositionResponseDefaultTypeInternal; +extern GetEndPositionResponseDefaultTypeInternal _GetEndPositionResponse_default_instance_; +class GetJointPositionsRequest; +struct GetJointPositionsRequestDefaultTypeInternal; +extern GetJointPositionsRequestDefaultTypeInternal _GetJointPositionsRequest_default_instance_; +class GetJointPositionsResponse; +struct GetJointPositionsResponseDefaultTypeInternal; +extern GetJointPositionsResponseDefaultTypeInternal _GetJointPositionsResponse_default_instance_; +class JointPositions; +struct JointPositionsDefaultTypeInternal; +extern JointPositionsDefaultTypeInternal _JointPositions_default_instance_; +class MoveToJointPositionsRequest; +struct MoveToJointPositionsRequestDefaultTypeInternal; +extern MoveToJointPositionsRequestDefaultTypeInternal _MoveToJointPositionsRequest_default_instance_; +class MoveToJointPositionsResponse; +struct MoveToJointPositionsResponseDefaultTypeInternal; +extern MoveToJointPositionsResponseDefaultTypeInternal _MoveToJointPositionsResponse_default_instance_; +class MoveToPositionRequest; +struct MoveToPositionRequestDefaultTypeInternal; +extern MoveToPositionRequestDefaultTypeInternal _MoveToPositionRequest_default_instance_; +class MoveToPositionResponse; +struct MoveToPositionResponseDefaultTypeInternal; +extern MoveToPositionResponseDefaultTypeInternal _MoveToPositionResponse_default_instance_; +class Status; +struct StatusDefaultTypeInternal; +extern StatusDefaultTypeInternal _Status_default_instance_; +class StopRequest; +struct StopRequestDefaultTypeInternal; +extern StopRequestDefaultTypeInternal _StopRequest_default_instance_; +class StopResponse; +struct StopResponseDefaultTypeInternal; +extern StopResponseDefaultTypeInternal _StopResponse_default_instance_; +} // namespace v1 +} // namespace arm +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::arm::v1::GetEndPositionRequest* Arena::CreateMaybeMessage<::viam::component::arm::v1::GetEndPositionRequest>(Arena*); +template<> ::viam::component::arm::v1::GetEndPositionResponse* Arena::CreateMaybeMessage<::viam::component::arm::v1::GetEndPositionResponse>(Arena*); +template<> ::viam::component::arm::v1::GetJointPositionsRequest* Arena::CreateMaybeMessage<::viam::component::arm::v1::GetJointPositionsRequest>(Arena*); +template<> ::viam::component::arm::v1::GetJointPositionsResponse* Arena::CreateMaybeMessage<::viam::component::arm::v1::GetJointPositionsResponse>(Arena*); +template<> ::viam::component::arm::v1::JointPositions* Arena::CreateMaybeMessage<::viam::component::arm::v1::JointPositions>(Arena*); +template<> ::viam::component::arm::v1::MoveToJointPositionsRequest* Arena::CreateMaybeMessage<::viam::component::arm::v1::MoveToJointPositionsRequest>(Arena*); +template<> ::viam::component::arm::v1::MoveToJointPositionsResponse* Arena::CreateMaybeMessage<::viam::component::arm::v1::MoveToJointPositionsResponse>(Arena*); +template<> ::viam::component::arm::v1::MoveToPositionRequest* Arena::CreateMaybeMessage<::viam::component::arm::v1::MoveToPositionRequest>(Arena*); +template<> ::viam::component::arm::v1::MoveToPositionResponse* Arena::CreateMaybeMessage<::viam::component::arm::v1::MoveToPositionResponse>(Arena*); +template<> ::viam::component::arm::v1::Status* Arena::CreateMaybeMessage<::viam::component::arm::v1::Status>(Arena*); +template<> ::viam::component::arm::v1::StopRequest* Arena::CreateMaybeMessage<::viam::component::arm::v1::StopRequest>(Arena*); +template<> ::viam::component::arm::v1::StopResponse* Arena::CreateMaybeMessage<::viam::component::arm::v1::StopResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace component { +namespace arm { +namespace v1 { + +// =================================================================== + +class GetEndPositionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.GetEndPositionRequest) */ { + public: + inline GetEndPositionRequest() : GetEndPositionRequest(nullptr) {} + ~GetEndPositionRequest() override; + explicit PROTOBUF_CONSTEXPR GetEndPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetEndPositionRequest(const GetEndPositionRequest& from); + GetEndPositionRequest(GetEndPositionRequest&& from) noexcept + : GetEndPositionRequest() { + *this = ::std::move(from); + } + + inline GetEndPositionRequest& operator=(const GetEndPositionRequest& from) { + CopyFrom(from); + return *this; + } + inline GetEndPositionRequest& operator=(GetEndPositionRequest&& 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 GetEndPositionRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetEndPositionRequest* internal_default_instance() { + return reinterpret_cast( + &_GetEndPositionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(GetEndPositionRequest& a, GetEndPositionRequest& b) { + a.Swap(&b); + } + inline void Swap(GetEndPositionRequest* 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(GetEndPositionRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetEndPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetEndPositionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetEndPositionRequest& from) { + GetEndPositionRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetEndPositionRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.GetEndPositionRequest"; + } + protected: + explicit GetEndPositionRequest(::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.component.arm.v1.GetEndPositionRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; +}; +// ------------------------------------------------------------------- + +class GetEndPositionResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.GetEndPositionResponse) */ { + public: + inline GetEndPositionResponse() : GetEndPositionResponse(nullptr) {} + ~GetEndPositionResponse() override; + explicit PROTOBUF_CONSTEXPR GetEndPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetEndPositionResponse(const GetEndPositionResponse& from); + GetEndPositionResponse(GetEndPositionResponse&& from) noexcept + : GetEndPositionResponse() { + *this = ::std::move(from); + } + + inline GetEndPositionResponse& operator=(const GetEndPositionResponse& from) { + CopyFrom(from); + return *this; + } + inline GetEndPositionResponse& operator=(GetEndPositionResponse&& 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 GetEndPositionResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetEndPositionResponse* internal_default_instance() { + return reinterpret_cast( + &_GetEndPositionResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(GetEndPositionResponse& a, GetEndPositionResponse& b) { + a.Swap(&b); + } + inline void Swap(GetEndPositionResponse* 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(GetEndPositionResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetEndPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetEndPositionResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetEndPositionResponse& from) { + GetEndPositionResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetEndPositionResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.GetEndPositionResponse"; + } + protected: + explicit GetEndPositionResponse(::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 { + kPoseFieldNumber = 1, + }; + // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; + bool has_pose() const; + private: + bool _internal_has_pose() const; + public: + void clear_pose(); + const ::viam::common::v1::Pose& pose() const; + PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_pose(); + ::viam::common::v1::Pose* mutable_pose(); + void set_allocated_pose(::viam::common::v1::Pose* pose); + private: + const ::viam::common::v1::Pose& _internal_pose() const; + ::viam::common::v1::Pose* _internal_mutable_pose(); + public: + void unsafe_arena_set_allocated_pose( + ::viam::common::v1::Pose* pose); + ::viam::common::v1::Pose* unsafe_arena_release_pose(); + + // @@protoc_insertion_point(class_scope:viam.component.arm.v1.GetEndPositionResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::common::v1::Pose* pose_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; +}; +// ------------------------------------------------------------------- + +class JointPositions final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.JointPositions) */ { + public: + inline JointPositions() : JointPositions(nullptr) {} + ~JointPositions() override; + explicit PROTOBUF_CONSTEXPR JointPositions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + JointPositions(const JointPositions& from); + JointPositions(JointPositions&& from) noexcept + : JointPositions() { + *this = ::std::move(from); + } + + inline JointPositions& operator=(const JointPositions& from) { + CopyFrom(from); + return *this; + } + inline JointPositions& operator=(JointPositions&& 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 JointPositions& default_instance() { + return *internal_default_instance(); + } + static inline const JointPositions* internal_default_instance() { + return reinterpret_cast( + &_JointPositions_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(JointPositions& a, JointPositions& b) { + a.Swap(&b); + } + inline void Swap(JointPositions* 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(JointPositions* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + JointPositions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const JointPositions& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const JointPositions& from) { + JointPositions::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(JointPositions* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.JointPositions"; + } + protected: + explicit JointPositions(::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 { + kValuesFieldNumber = 1, + }; + // repeated double values = 1 [json_name = "values"]; + int values_size() const; + private: + int _internal_values_size() const; + public: + void clear_values(); + private: + double _internal_values(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + _internal_values() const; + void _internal_add_values(double value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + _internal_mutable_values(); + public: + double values(int index) const; + void set_values(int index, double value); + void add_values(double value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + values() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + mutable_values(); + + // @@protoc_insertion_point(class_scope:viam.component.arm.v1.JointPositions) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > values_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; +}; +// ------------------------------------------------------------------- + +class GetJointPositionsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.GetJointPositionsRequest) */ { + public: + inline GetJointPositionsRequest() : GetJointPositionsRequest(nullptr) {} + ~GetJointPositionsRequest() override; + explicit PROTOBUF_CONSTEXPR GetJointPositionsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetJointPositionsRequest(const GetJointPositionsRequest& from); + GetJointPositionsRequest(GetJointPositionsRequest&& from) noexcept + : GetJointPositionsRequest() { + *this = ::std::move(from); + } + + inline GetJointPositionsRequest& operator=(const GetJointPositionsRequest& from) { + CopyFrom(from); + return *this; + } + inline GetJointPositionsRequest& operator=(GetJointPositionsRequest&& 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 GetJointPositionsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetJointPositionsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetJointPositionsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(GetJointPositionsRequest& a, GetJointPositionsRequest& b) { + a.Swap(&b); + } + inline void Swap(GetJointPositionsRequest* 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(GetJointPositionsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetJointPositionsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetJointPositionsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetJointPositionsRequest& from) { + GetJointPositionsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetJointPositionsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.GetJointPositionsRequest"; + } + protected: + explicit GetJointPositionsRequest(::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.component.arm.v1.GetJointPositionsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; +}; +// ------------------------------------------------------------------- + +class GetJointPositionsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.GetJointPositionsResponse) */ { + public: + inline GetJointPositionsResponse() : GetJointPositionsResponse(nullptr) {} + ~GetJointPositionsResponse() override; + explicit PROTOBUF_CONSTEXPR GetJointPositionsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetJointPositionsResponse(const GetJointPositionsResponse& from); + GetJointPositionsResponse(GetJointPositionsResponse&& from) noexcept + : GetJointPositionsResponse() { + *this = ::std::move(from); + } + + inline GetJointPositionsResponse& operator=(const GetJointPositionsResponse& from) { + CopyFrom(from); + return *this; + } + inline GetJointPositionsResponse& operator=(GetJointPositionsResponse&& 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 GetJointPositionsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetJointPositionsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetJointPositionsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(GetJointPositionsResponse& a, GetJointPositionsResponse& b) { + a.Swap(&b); + } + inline void Swap(GetJointPositionsResponse* 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(GetJointPositionsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetJointPositionsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetJointPositionsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetJointPositionsResponse& from) { + GetJointPositionsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetJointPositionsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.GetJointPositionsResponse"; + } + protected: + explicit GetJointPositionsResponse(::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 { + kPositionsFieldNumber = 1, + }; + // .viam.component.arm.v1.JointPositions positions = 1 [json_name = "positions"]; + bool has_positions() const; + private: + bool _internal_has_positions() const; + public: + void clear_positions(); + const ::viam::component::arm::v1::JointPositions& positions() const; + PROTOBUF_NODISCARD ::viam::component::arm::v1::JointPositions* release_positions(); + ::viam::component::arm::v1::JointPositions* mutable_positions(); + void set_allocated_positions(::viam::component::arm::v1::JointPositions* positions); + private: + const ::viam::component::arm::v1::JointPositions& _internal_positions() const; + ::viam::component::arm::v1::JointPositions* _internal_mutable_positions(); + public: + void unsafe_arena_set_allocated_positions( + ::viam::component::arm::v1::JointPositions* positions); + ::viam::component::arm::v1::JointPositions* unsafe_arena_release_positions(); + + // @@protoc_insertion_point(class_scope:viam.component.arm.v1.GetJointPositionsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::component::arm::v1::JointPositions* positions_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; +}; +// ------------------------------------------------------------------- + +class MoveToPositionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.MoveToPositionRequest) */ { + public: + inline MoveToPositionRequest() : MoveToPositionRequest(nullptr) {} + ~MoveToPositionRequest() override; + explicit PROTOBUF_CONSTEXPR MoveToPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MoveToPositionRequest(const MoveToPositionRequest& from); + MoveToPositionRequest(MoveToPositionRequest&& from) noexcept + : MoveToPositionRequest() { + *this = ::std::move(from); + } + + inline MoveToPositionRequest& operator=(const MoveToPositionRequest& from) { + CopyFrom(from); + return *this; + } + inline MoveToPositionRequest& operator=(MoveToPositionRequest&& 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 MoveToPositionRequest& default_instance() { + return *internal_default_instance(); + } + static inline const MoveToPositionRequest* internal_default_instance() { + return reinterpret_cast( + &_MoveToPositionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(MoveToPositionRequest& a, MoveToPositionRequest& b) { + a.Swap(&b); + } + inline void Swap(MoveToPositionRequest* 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(MoveToPositionRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MoveToPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveToPositionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MoveToPositionRequest& from) { + MoveToPositionRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoveToPositionRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.MoveToPositionRequest"; + } + protected: + explicit MoveToPositionRequest(::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, + kToFieldNumber = 2, + kWorldStateFieldNumber = 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: + + // .viam.common.v1.Pose to = 2 [json_name = "to"]; + bool has_to() const; + private: + bool _internal_has_to() const; + public: + void clear_to(); + const ::viam::common::v1::Pose& to() const; + PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_to(); + ::viam::common::v1::Pose* mutable_to(); + void set_allocated_to(::viam::common::v1::Pose* to); + private: + const ::viam::common::v1::Pose& _internal_to() const; + ::viam::common::v1::Pose* _internal_mutable_to(); + public: + void unsafe_arena_set_allocated_to( + ::viam::common::v1::Pose* to); + ::viam::common::v1::Pose* unsafe_arena_release_to(); + + // optional .viam.common.v1.WorldState world_state = 3 [json_name = "worldState"]; + bool has_world_state() const; + private: + bool _internal_has_world_state() const; + public: + void clear_world_state(); + const ::viam::common::v1::WorldState& world_state() const; + PROTOBUF_NODISCARD ::viam::common::v1::WorldState* release_world_state(); + ::viam::common::v1::WorldState* mutable_world_state(); + void set_allocated_world_state(::viam::common::v1::WorldState* world_state); + private: + const ::viam::common::v1::WorldState& _internal_world_state() const; + ::viam::common::v1::WorldState* _internal_mutable_world_state(); + public: + void unsafe_arena_set_allocated_world_state( + ::viam::common::v1::WorldState* world_state); + ::viam::common::v1::WorldState* unsafe_arena_release_world_state(); + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; + public: + void clear_extra(); + const ::PROTOBUF_NAMESPACE_ID::Struct& extra() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_extra(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_extra(); + void set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); + public: + void unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); + + // @@protoc_insertion_point(class_scope:viam.component.arm.v1.MoveToPositionRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::viam::common::v1::Pose* to_; + ::viam::common::v1::WorldState* world_state_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; +}; +// ------------------------------------------------------------------- + +class MoveToPositionResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.MoveToPositionResponse) */ { + public: + inline MoveToPositionResponse() : MoveToPositionResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR MoveToPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MoveToPositionResponse(const MoveToPositionResponse& from); + MoveToPositionResponse(MoveToPositionResponse&& from) noexcept + : MoveToPositionResponse() { + *this = ::std::move(from); + } + + inline MoveToPositionResponse& operator=(const MoveToPositionResponse& from) { + CopyFrom(from); + return *this; + } + inline MoveToPositionResponse& operator=(MoveToPositionResponse&& 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 MoveToPositionResponse& default_instance() { + return *internal_default_instance(); + } + static inline const MoveToPositionResponse* internal_default_instance() { + return reinterpret_cast( + &_MoveToPositionResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(MoveToPositionResponse& a, MoveToPositionResponse& b) { + a.Swap(&b); + } + inline void Swap(MoveToPositionResponse* 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(MoveToPositionResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MoveToPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const MoveToPositionResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const MoveToPositionResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.MoveToPositionResponse"; + } + protected: + explicit MoveToPositionResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.arm.v1.MoveToPositionResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; +}; +// ------------------------------------------------------------------- + +class MoveToJointPositionsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.MoveToJointPositionsRequest) */ { + public: + inline MoveToJointPositionsRequest() : MoveToJointPositionsRequest(nullptr) {} + ~MoveToJointPositionsRequest() override; + explicit PROTOBUF_CONSTEXPR MoveToJointPositionsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MoveToJointPositionsRequest(const MoveToJointPositionsRequest& from); + MoveToJointPositionsRequest(MoveToJointPositionsRequest&& from) noexcept + : MoveToJointPositionsRequest() { + *this = ::std::move(from); + } + + inline MoveToJointPositionsRequest& operator=(const MoveToJointPositionsRequest& from) { + CopyFrom(from); + return *this; + } + inline MoveToJointPositionsRequest& operator=(MoveToJointPositionsRequest&& 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 MoveToJointPositionsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const MoveToJointPositionsRequest* internal_default_instance() { + return reinterpret_cast( + &_MoveToJointPositionsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(MoveToJointPositionsRequest& a, MoveToJointPositionsRequest& b) { + a.Swap(&b); + } + inline void Swap(MoveToJointPositionsRequest* 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(MoveToJointPositionsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MoveToJointPositionsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveToJointPositionsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MoveToJointPositionsRequest& from) { + MoveToJointPositionsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoveToJointPositionsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.MoveToJointPositionsRequest"; + } + protected: + explicit MoveToJointPositionsRequest(::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, + kPositionsFieldNumber = 2, + 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: + + // .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; + bool has_positions() const; + private: + bool _internal_has_positions() const; + public: + void clear_positions(); + const ::viam::component::arm::v1::JointPositions& positions() const; + PROTOBUF_NODISCARD ::viam::component::arm::v1::JointPositions* release_positions(); + ::viam::component::arm::v1::JointPositions* mutable_positions(); + void set_allocated_positions(::viam::component::arm::v1::JointPositions* positions); + private: + const ::viam::component::arm::v1::JointPositions& _internal_positions() const; + ::viam::component::arm::v1::JointPositions* _internal_mutable_positions(); + public: + void unsafe_arena_set_allocated_positions( + ::viam::component::arm::v1::JointPositions* positions); + ::viam::component::arm::v1::JointPositions* unsafe_arena_release_positions(); + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; + public: + void clear_extra(); + const ::PROTOBUF_NAMESPACE_ID::Struct& extra() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_extra(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_extra(); + void set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); + public: + void unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); + + // @@protoc_insertion_point(class_scope:viam.component.arm.v1.MoveToJointPositionsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::viam::component::arm::v1::JointPositions* positions_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; +}; +// ------------------------------------------------------------------- + +class MoveToJointPositionsResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.MoveToJointPositionsResponse) */ { + public: + inline MoveToJointPositionsResponse() : MoveToJointPositionsResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR MoveToJointPositionsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MoveToJointPositionsResponse(const MoveToJointPositionsResponse& from); + MoveToJointPositionsResponse(MoveToJointPositionsResponse&& from) noexcept + : MoveToJointPositionsResponse() { + *this = ::std::move(from); + } + + inline MoveToJointPositionsResponse& operator=(const MoveToJointPositionsResponse& from) { + CopyFrom(from); + return *this; + } + inline MoveToJointPositionsResponse& operator=(MoveToJointPositionsResponse&& 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 MoveToJointPositionsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const MoveToJointPositionsResponse* internal_default_instance() { + return reinterpret_cast( + &_MoveToJointPositionsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(MoveToJointPositionsResponse& a, MoveToJointPositionsResponse& b) { + a.Swap(&b); + } + inline void Swap(MoveToJointPositionsResponse* 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(MoveToJointPositionsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MoveToJointPositionsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const MoveToJointPositionsResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const MoveToJointPositionsResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.MoveToJointPositionsResponse"; + } + protected: + explicit MoveToJointPositionsResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.arm.v1.MoveToJointPositionsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; +}; +// ------------------------------------------------------------------- + +class StopRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.StopRequest) */ { + public: + inline StopRequest() : StopRequest(nullptr) {} + ~StopRequest() override; + explicit PROTOBUF_CONSTEXPR StopRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StopRequest(const StopRequest& from); + StopRequest(StopRequest&& from) noexcept + : StopRequest() { + *this = ::std::move(from); + } + + inline StopRequest& operator=(const StopRequest& from) { + CopyFrom(from); + return *this; + } + inline StopRequest& operator=(StopRequest&& 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 StopRequest& default_instance() { + return *internal_default_instance(); + } + static inline const StopRequest* internal_default_instance() { + return reinterpret_cast( + &_StopRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(StopRequest& a, StopRequest& b) { + a.Swap(&b); + } + inline void Swap(StopRequest* 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(StopRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StopRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StopRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const StopRequest& from) { + StopRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StopRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.StopRequest"; + } + protected: + explicit StopRequest(::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.component.arm.v1.StopRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; +}; +// ------------------------------------------------------------------- + +class StopResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.StopResponse) */ { + public: + inline StopResponse() : StopResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR StopResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StopResponse(const StopResponse& from); + StopResponse(StopResponse&& from) noexcept + : StopResponse() { + *this = ::std::move(from); + } + + inline StopResponse& operator=(const StopResponse& from) { + CopyFrom(from); + return *this; + } + inline StopResponse& operator=(StopResponse&& 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 StopResponse& default_instance() { + return *internal_default_instance(); + } + static inline const StopResponse* internal_default_instance() { + return reinterpret_cast( + &_StopResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(StopResponse& a, StopResponse& b) { + a.Swap(&b); + } + inline void Swap(StopResponse* 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(StopResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StopResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.StopResponse"; + } + protected: + explicit StopResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.arm.v1.StopResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; +}; +// ------------------------------------------------------------------- + +class Status final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.Status) */ { + public: + inline Status() : Status(nullptr) {} + ~Status() override; + explicit PROTOBUF_CONSTEXPR Status(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Status(const Status& from); + Status(Status&& from) noexcept + : Status() { + *this = ::std::move(from); + } + + inline Status& operator=(const Status& from) { + CopyFrom(from); + return *this; + } + inline Status& operator=(Status&& 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 Status& default_instance() { + return *internal_default_instance(); + } + static inline const Status* internal_default_instance() { + return reinterpret_cast( + &_Status_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(Status& a, Status& b) { + a.Swap(&b); + } + inline void Swap(Status* 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(Status* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Status& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Status& from) { + Status::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Status* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.Status"; + } + protected: + explicit Status(::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 { + kEndPositionFieldNumber = 1, + kJointPositionsFieldNumber = 2, + kIsMovingFieldNumber = 3, + }; + // .viam.common.v1.Pose end_position = 1 [json_name = "endPosition"]; + bool has_end_position() const; + private: + bool _internal_has_end_position() const; + public: + void clear_end_position(); + const ::viam::common::v1::Pose& end_position() const; + PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_end_position(); + ::viam::common::v1::Pose* mutable_end_position(); + void set_allocated_end_position(::viam::common::v1::Pose* end_position); + private: + const ::viam::common::v1::Pose& _internal_end_position() const; + ::viam::common::v1::Pose* _internal_mutable_end_position(); + public: + void unsafe_arena_set_allocated_end_position( + ::viam::common::v1::Pose* end_position); + ::viam::common::v1::Pose* unsafe_arena_release_end_position(); + + // .viam.component.arm.v1.JointPositions joint_positions = 2 [json_name = "jointPositions"]; + bool has_joint_positions() const; + private: + bool _internal_has_joint_positions() const; + public: + void clear_joint_positions(); + const ::viam::component::arm::v1::JointPositions& joint_positions() const; + PROTOBUF_NODISCARD ::viam::component::arm::v1::JointPositions* release_joint_positions(); + ::viam::component::arm::v1::JointPositions* mutable_joint_positions(); + void set_allocated_joint_positions(::viam::component::arm::v1::JointPositions* joint_positions); + private: + const ::viam::component::arm::v1::JointPositions& _internal_joint_positions() const; + ::viam::component::arm::v1::JointPositions* _internal_mutable_joint_positions(); + public: + void unsafe_arena_set_allocated_joint_positions( + ::viam::component::arm::v1::JointPositions* joint_positions); + ::viam::component::arm::v1::JointPositions* unsafe_arena_release_joint_positions(); + + // bool is_moving = 3 [json_name = "isMoving"]; + void clear_is_moving(); + bool is_moving() const; + void set_is_moving(bool value); + private: + bool _internal_is_moving() const; + void _internal_set_is_moving(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.arm.v1.Status) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::common::v1::Pose* end_position_; + ::viam::component::arm::v1::JointPositions* joint_positions_; + bool is_moving_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// GetEndPositionRequest + +// string name = 1 [json_name = "name"]; +inline void GetEndPositionRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetEndPositionRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.arm.v1.GetEndPositionRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetEndPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.arm.v1.GetEndPositionRequest.name) +} +inline std::string* GetEndPositionRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.GetEndPositionRequest.name) + return _s; +} +inline const std::string& GetEndPositionRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetEndPositionRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetEndPositionRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetEndPositionRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.arm.v1.GetEndPositionRequest.name) + return _impl_.name_.Release(); +} +inline void GetEndPositionRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.GetEndPositionRequest.name) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetEndPositionRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool GetEndPositionRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetEndPositionRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetEndPositionRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.arm.v1.GetEndPositionRequest.extra) + return _internal_extra(); +} +inline void GetEndPositionRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.GetEndPositionRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetEndPositionRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* GetEndPositionRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.arm.v1.GetEndPositionRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetEndPositionRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetEndPositionRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.GetEndPositionRequest.extra) + return _msg; +} +inline void GetEndPositionRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.GetEndPositionRequest.extra) +} + +// ------------------------------------------------------------------- + +// GetEndPositionResponse + +// .viam.common.v1.Pose pose = 1 [json_name = "pose"]; +inline bool GetEndPositionResponse::_internal_has_pose() const { + return this != internal_default_instance() && _impl_.pose_ != nullptr; +} +inline bool GetEndPositionResponse::has_pose() const { + return _internal_has_pose(); +} +inline const ::viam::common::v1::Pose& GetEndPositionResponse::_internal_pose() const { + const ::viam::common::v1::Pose* p = _impl_.pose_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Pose_default_instance_); +} +inline const ::viam::common::v1::Pose& GetEndPositionResponse::pose() const { + // @@protoc_insertion_point(field_get:viam.component.arm.v1.GetEndPositionResponse.pose) + return _internal_pose(); +} +inline void GetEndPositionResponse::unsafe_arena_set_allocated_pose( + ::viam::common::v1::Pose* pose) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pose_); + } + _impl_.pose_ = pose; + if (pose) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.GetEndPositionResponse.pose) +} +inline ::viam::common::v1::Pose* GetEndPositionResponse::release_pose() { + + ::viam::common::v1::Pose* temp = _impl_.pose_; + _impl_.pose_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::Pose* GetEndPositionResponse::unsafe_arena_release_pose() { + // @@protoc_insertion_point(field_release:viam.component.arm.v1.GetEndPositionResponse.pose) + + ::viam::common::v1::Pose* temp = _impl_.pose_; + _impl_.pose_ = nullptr; + return temp; +} +inline ::viam::common::v1::Pose* GetEndPositionResponse::_internal_mutable_pose() { + + if (_impl_.pose_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArenaForAllocation()); + _impl_.pose_ = p; + } + return _impl_.pose_; +} +inline ::viam::common::v1::Pose* GetEndPositionResponse::mutable_pose() { + ::viam::common::v1::Pose* _msg = _internal_mutable_pose(); + // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.GetEndPositionResponse.pose) + return _msg; +} +inline void GetEndPositionResponse::set_allocated_pose(::viam::common::v1::Pose* pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pose_); + } + if (pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose)); + if (message_arena != submessage_arena) { + pose = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, pose, submessage_arena); + } + + } else { + + } + _impl_.pose_ = pose; + // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.GetEndPositionResponse.pose) +} + +// ------------------------------------------------------------------- + +// JointPositions + +// repeated double values = 1 [json_name = "values"]; +inline int JointPositions::_internal_values_size() const { + return _impl_.values_.size(); +} +inline int JointPositions::values_size() const { + return _internal_values_size(); +} +inline void JointPositions::clear_values() { + _impl_.values_.Clear(); +} +inline double JointPositions::_internal_values(int index) const { + return _impl_.values_.Get(index); +} +inline double JointPositions::values(int index) const { + // @@protoc_insertion_point(field_get:viam.component.arm.v1.JointPositions.values) + return _internal_values(index); +} +inline void JointPositions::set_values(int index, double value) { + _impl_.values_.Set(index, value); + // @@protoc_insertion_point(field_set:viam.component.arm.v1.JointPositions.values) +} +inline void JointPositions::_internal_add_values(double value) { + _impl_.values_.Add(value); +} +inline void JointPositions::add_values(double value) { + _internal_add_values(value); + // @@protoc_insertion_point(field_add:viam.component.arm.v1.JointPositions.values) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +JointPositions::_internal_values() const { + return _impl_.values_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +JointPositions::values() const { + // @@protoc_insertion_point(field_list:viam.component.arm.v1.JointPositions.values) + return _internal_values(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +JointPositions::_internal_mutable_values() { + return &_impl_.values_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +JointPositions::mutable_values() { + // @@protoc_insertion_point(field_mutable_list:viam.component.arm.v1.JointPositions.values) + return _internal_mutable_values(); +} + +// ------------------------------------------------------------------- + +// GetJointPositionsRequest + +// string name = 1 [json_name = "name"]; +inline void GetJointPositionsRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetJointPositionsRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.arm.v1.GetJointPositionsRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetJointPositionsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.arm.v1.GetJointPositionsRequest.name) +} +inline std::string* GetJointPositionsRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.GetJointPositionsRequest.name) + return _s; +} +inline const std::string& GetJointPositionsRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetJointPositionsRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetJointPositionsRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetJointPositionsRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.arm.v1.GetJointPositionsRequest.name) + return _impl_.name_.Release(); +} +inline void GetJointPositionsRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.GetJointPositionsRequest.name) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetJointPositionsRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool GetJointPositionsRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetJointPositionsRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetJointPositionsRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.arm.v1.GetJointPositionsRequest.extra) + return _internal_extra(); +} +inline void GetJointPositionsRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.GetJointPositionsRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetJointPositionsRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* GetJointPositionsRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.arm.v1.GetJointPositionsRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetJointPositionsRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetJointPositionsRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.GetJointPositionsRequest.extra) + return _msg; +} +inline void GetJointPositionsRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.GetJointPositionsRequest.extra) +} + +// ------------------------------------------------------------------- + +// GetJointPositionsResponse + +// .viam.component.arm.v1.JointPositions positions = 1 [json_name = "positions"]; +inline bool GetJointPositionsResponse::_internal_has_positions() const { + return this != internal_default_instance() && _impl_.positions_ != nullptr; +} +inline bool GetJointPositionsResponse::has_positions() const { + return _internal_has_positions(); +} +inline void GetJointPositionsResponse::clear_positions() { + if (GetArenaForAllocation() == nullptr && _impl_.positions_ != nullptr) { + delete _impl_.positions_; + } + _impl_.positions_ = nullptr; +} +inline const ::viam::component::arm::v1::JointPositions& GetJointPositionsResponse::_internal_positions() const { + const ::viam::component::arm::v1::JointPositions* p = _impl_.positions_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::component::arm::v1::_JointPositions_default_instance_); +} +inline const ::viam::component::arm::v1::JointPositions& GetJointPositionsResponse::positions() const { + // @@protoc_insertion_point(field_get:viam.component.arm.v1.GetJointPositionsResponse.positions) + return _internal_positions(); +} +inline void GetJointPositionsResponse::unsafe_arena_set_allocated_positions( + ::viam::component::arm::v1::JointPositions* positions) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.positions_); + } + _impl_.positions_ = positions; + if (positions) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.GetJointPositionsResponse.positions) +} +inline ::viam::component::arm::v1::JointPositions* GetJointPositionsResponse::release_positions() { + + ::viam::component::arm::v1::JointPositions* temp = _impl_.positions_; + _impl_.positions_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::component::arm::v1::JointPositions* GetJointPositionsResponse::unsafe_arena_release_positions() { + // @@protoc_insertion_point(field_release:viam.component.arm.v1.GetJointPositionsResponse.positions) + + ::viam::component::arm::v1::JointPositions* temp = _impl_.positions_; + _impl_.positions_ = nullptr; + return temp; +} +inline ::viam::component::arm::v1::JointPositions* GetJointPositionsResponse::_internal_mutable_positions() { + + if (_impl_.positions_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::component::arm::v1::JointPositions>(GetArenaForAllocation()); + _impl_.positions_ = p; + } + return _impl_.positions_; +} +inline ::viam::component::arm::v1::JointPositions* GetJointPositionsResponse::mutable_positions() { + ::viam::component::arm::v1::JointPositions* _msg = _internal_mutable_positions(); + // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.GetJointPositionsResponse.positions) + return _msg; +} +inline void GetJointPositionsResponse::set_allocated_positions(::viam::component::arm::v1::JointPositions* positions) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.positions_; + } + if (positions) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(positions); + if (message_arena != submessage_arena) { + positions = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, positions, submessage_arena); + } + + } else { + + } + _impl_.positions_ = positions; + // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.GetJointPositionsResponse.positions) +} + +// ------------------------------------------------------------------- + +// MoveToPositionRequest + +// string name = 1 [json_name = "name"]; +inline void MoveToPositionRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& MoveToPositionRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.arm.v1.MoveToPositionRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void MoveToPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.arm.v1.MoveToPositionRequest.name) +} +inline std::string* MoveToPositionRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.MoveToPositionRequest.name) + return _s; +} +inline const std::string& MoveToPositionRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void MoveToPositionRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* MoveToPositionRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* MoveToPositionRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.arm.v1.MoveToPositionRequest.name) + return _impl_.name_.Release(); +} +inline void MoveToPositionRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.MoveToPositionRequest.name) +} + +// .viam.common.v1.Pose to = 2 [json_name = "to"]; +inline bool MoveToPositionRequest::_internal_has_to() const { + return this != internal_default_instance() && _impl_.to_ != nullptr; +} +inline bool MoveToPositionRequest::has_to() const { + return _internal_has_to(); +} +inline const ::viam::common::v1::Pose& MoveToPositionRequest::_internal_to() const { + const ::viam::common::v1::Pose* p = _impl_.to_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Pose_default_instance_); +} +inline const ::viam::common::v1::Pose& MoveToPositionRequest::to() const { + // @@protoc_insertion_point(field_get:viam.component.arm.v1.MoveToPositionRequest.to) + return _internal_to(); +} +inline void MoveToPositionRequest::unsafe_arena_set_allocated_to( + ::viam::common::v1::Pose* to) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.to_); + } + _impl_.to_ = to; + if (to) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.MoveToPositionRequest.to) +} +inline ::viam::common::v1::Pose* MoveToPositionRequest::release_to() { + + ::viam::common::v1::Pose* temp = _impl_.to_; + _impl_.to_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::Pose* MoveToPositionRequest::unsafe_arena_release_to() { + // @@protoc_insertion_point(field_release:viam.component.arm.v1.MoveToPositionRequest.to) + + ::viam::common::v1::Pose* temp = _impl_.to_; + _impl_.to_ = nullptr; + return temp; +} +inline ::viam::common::v1::Pose* MoveToPositionRequest::_internal_mutable_to() { + + if (_impl_.to_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArenaForAllocation()); + _impl_.to_ = p; + } + return _impl_.to_; +} +inline ::viam::common::v1::Pose* MoveToPositionRequest::mutable_to() { + ::viam::common::v1::Pose* _msg = _internal_mutable_to(); + // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.MoveToPositionRequest.to) + return _msg; +} +inline void MoveToPositionRequest::set_allocated_to(::viam::common::v1::Pose* to) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.to_); + } + if (to) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(to)); + if (message_arena != submessage_arena) { + to = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, to, submessage_arena); + } + + } else { + + } + _impl_.to_ = to; + // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.MoveToPositionRequest.to) +} + +// optional .viam.common.v1.WorldState world_state = 3 [json_name = "worldState"]; +inline bool MoveToPositionRequest::_internal_has_world_state() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.world_state_ != nullptr); + return value; +} +inline bool MoveToPositionRequest::has_world_state() const { + return _internal_has_world_state(); +} +inline const ::viam::common::v1::WorldState& MoveToPositionRequest::_internal_world_state() const { + const ::viam::common::v1::WorldState* p = _impl_.world_state_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_WorldState_default_instance_); +} +inline const ::viam::common::v1::WorldState& MoveToPositionRequest::world_state() const { + // @@protoc_insertion_point(field_get:viam.component.arm.v1.MoveToPositionRequest.world_state) + return _internal_world_state(); +} +inline void MoveToPositionRequest::unsafe_arena_set_allocated_world_state( + ::viam::common::v1::WorldState* world_state) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.world_state_); + } + _impl_.world_state_ = world_state; + if (world_state) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.MoveToPositionRequest.world_state) +} +inline ::viam::common::v1::WorldState* MoveToPositionRequest::release_world_state() { + _impl_._has_bits_[0] &= ~0x00000001u; + ::viam::common::v1::WorldState* temp = _impl_.world_state_; + _impl_.world_state_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::WorldState* MoveToPositionRequest::unsafe_arena_release_world_state() { + // @@protoc_insertion_point(field_release:viam.component.arm.v1.MoveToPositionRequest.world_state) + _impl_._has_bits_[0] &= ~0x00000001u; + ::viam::common::v1::WorldState* temp = _impl_.world_state_; + _impl_.world_state_ = nullptr; + return temp; +} +inline ::viam::common::v1::WorldState* MoveToPositionRequest::_internal_mutable_world_state() { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.world_state_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::WorldState>(GetArenaForAllocation()); + _impl_.world_state_ = p; + } + return _impl_.world_state_; +} +inline ::viam::common::v1::WorldState* MoveToPositionRequest::mutable_world_state() { + ::viam::common::v1::WorldState* _msg = _internal_mutable_world_state(); + // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.MoveToPositionRequest.world_state) + return _msg; +} +inline void MoveToPositionRequest::set_allocated_world_state(::viam::common::v1::WorldState* world_state) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.world_state_); + } + if (world_state) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_state)); + if (message_arena != submessage_arena) { + world_state = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, world_state, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.world_state_ = world_state; + // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.MoveToPositionRequest.world_state) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool MoveToPositionRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool MoveToPositionRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveToPositionRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveToPositionRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.arm.v1.MoveToPositionRequest.extra) + return _internal_extra(); +} +inline void MoveToPositionRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.MoveToPositionRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveToPositionRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* MoveToPositionRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.arm.v1.MoveToPositionRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveToPositionRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveToPositionRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.MoveToPositionRequest.extra) + return _msg; +} +inline void MoveToPositionRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.MoveToPositionRequest.extra) +} + +// ------------------------------------------------------------------- + +// MoveToPositionResponse + +// ------------------------------------------------------------------- + +// MoveToJointPositionsRequest + +// string name = 1 [json_name = "name"]; +inline void MoveToJointPositionsRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& MoveToJointPositionsRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.arm.v1.MoveToJointPositionsRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void MoveToJointPositionsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.arm.v1.MoveToJointPositionsRequest.name) +} +inline std::string* MoveToJointPositionsRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.MoveToJointPositionsRequest.name) + return _s; +} +inline const std::string& MoveToJointPositionsRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void MoveToJointPositionsRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* MoveToJointPositionsRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* MoveToJointPositionsRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.arm.v1.MoveToJointPositionsRequest.name) + return _impl_.name_.Release(); +} +inline void MoveToJointPositionsRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.MoveToJointPositionsRequest.name) +} + +// .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; +inline bool MoveToJointPositionsRequest::_internal_has_positions() const { + return this != internal_default_instance() && _impl_.positions_ != nullptr; +} +inline bool MoveToJointPositionsRequest::has_positions() const { + return _internal_has_positions(); +} +inline void MoveToJointPositionsRequest::clear_positions() { + if (GetArenaForAllocation() == nullptr && _impl_.positions_ != nullptr) { + delete _impl_.positions_; + } + _impl_.positions_ = nullptr; +} +inline const ::viam::component::arm::v1::JointPositions& MoveToJointPositionsRequest::_internal_positions() const { + const ::viam::component::arm::v1::JointPositions* p = _impl_.positions_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::component::arm::v1::_JointPositions_default_instance_); +} +inline const ::viam::component::arm::v1::JointPositions& MoveToJointPositionsRequest::positions() const { + // @@protoc_insertion_point(field_get:viam.component.arm.v1.MoveToJointPositionsRequest.positions) + return _internal_positions(); +} +inline void MoveToJointPositionsRequest::unsafe_arena_set_allocated_positions( + ::viam::component::arm::v1::JointPositions* positions) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.positions_); + } + _impl_.positions_ = positions; + if (positions) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.MoveToJointPositionsRequest.positions) +} +inline ::viam::component::arm::v1::JointPositions* MoveToJointPositionsRequest::release_positions() { + + ::viam::component::arm::v1::JointPositions* temp = _impl_.positions_; + _impl_.positions_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::component::arm::v1::JointPositions* MoveToJointPositionsRequest::unsafe_arena_release_positions() { + // @@protoc_insertion_point(field_release:viam.component.arm.v1.MoveToJointPositionsRequest.positions) + + ::viam::component::arm::v1::JointPositions* temp = _impl_.positions_; + _impl_.positions_ = nullptr; + return temp; +} +inline ::viam::component::arm::v1::JointPositions* MoveToJointPositionsRequest::_internal_mutable_positions() { + + if (_impl_.positions_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::component::arm::v1::JointPositions>(GetArenaForAllocation()); + _impl_.positions_ = p; + } + return _impl_.positions_; +} +inline ::viam::component::arm::v1::JointPositions* MoveToJointPositionsRequest::mutable_positions() { + ::viam::component::arm::v1::JointPositions* _msg = _internal_mutable_positions(); + // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.MoveToJointPositionsRequest.positions) + return _msg; +} +inline void MoveToJointPositionsRequest::set_allocated_positions(::viam::component::arm::v1::JointPositions* positions) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.positions_; + } + if (positions) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(positions); + if (message_arena != submessage_arena) { + positions = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, positions, submessage_arena); + } + + } else { + + } + _impl_.positions_ = positions; + // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.MoveToJointPositionsRequest.positions) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool MoveToJointPositionsRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool MoveToJointPositionsRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveToJointPositionsRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveToJointPositionsRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.arm.v1.MoveToJointPositionsRequest.extra) + return _internal_extra(); +} +inline void MoveToJointPositionsRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.MoveToJointPositionsRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveToJointPositionsRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* MoveToJointPositionsRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.arm.v1.MoveToJointPositionsRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveToJointPositionsRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveToJointPositionsRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.MoveToJointPositionsRequest.extra) + return _msg; +} +inline void MoveToJointPositionsRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.MoveToJointPositionsRequest.extra) +} + +// ------------------------------------------------------------------- + +// MoveToJointPositionsResponse + +// ------------------------------------------------------------------- + +// StopRequest + +// string name = 1 [json_name = "name"]; +inline void StopRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& StopRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.arm.v1.StopRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void StopRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.arm.v1.StopRequest.name) +} +inline std::string* StopRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.StopRequest.name) + return _s; +} +inline const std::string& StopRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void StopRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* StopRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* StopRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.arm.v1.StopRequest.name) + return _impl_.name_.Release(); +} +inline void StopRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.StopRequest.name) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool StopRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool StopRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.arm.v1.StopRequest.extra) + return _internal_extra(); +} +inline void StopRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.StopRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* StopRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.arm.v1.StopRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.StopRequest.extra) + return _msg; +} +inline void StopRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.StopRequest.extra) +} + +// ------------------------------------------------------------------- + +// StopResponse + +// ------------------------------------------------------------------- + +// Status + +// .viam.common.v1.Pose end_position = 1 [json_name = "endPosition"]; +inline bool Status::_internal_has_end_position() const { + return this != internal_default_instance() && _impl_.end_position_ != nullptr; +} +inline bool Status::has_end_position() const { + return _internal_has_end_position(); +} +inline const ::viam::common::v1::Pose& Status::_internal_end_position() const { + const ::viam::common::v1::Pose* p = _impl_.end_position_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Pose_default_instance_); +} +inline const ::viam::common::v1::Pose& Status::end_position() const { + // @@protoc_insertion_point(field_get:viam.component.arm.v1.Status.end_position) + return _internal_end_position(); +} +inline void Status::unsafe_arena_set_allocated_end_position( + ::viam::common::v1::Pose* end_position) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.end_position_); + } + _impl_.end_position_ = end_position; + if (end_position) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.Status.end_position) +} +inline ::viam::common::v1::Pose* Status::release_end_position() { + + ::viam::common::v1::Pose* temp = _impl_.end_position_; + _impl_.end_position_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::Pose* Status::unsafe_arena_release_end_position() { + // @@protoc_insertion_point(field_release:viam.component.arm.v1.Status.end_position) + + ::viam::common::v1::Pose* temp = _impl_.end_position_; + _impl_.end_position_ = nullptr; + return temp; +} +inline ::viam::common::v1::Pose* Status::_internal_mutable_end_position() { + + if (_impl_.end_position_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArenaForAllocation()); + _impl_.end_position_ = p; + } + return _impl_.end_position_; +} +inline ::viam::common::v1::Pose* Status::mutable_end_position() { + ::viam::common::v1::Pose* _msg = _internal_mutable_end_position(); + // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.Status.end_position) + return _msg; +} +inline void Status::set_allocated_end_position(::viam::common::v1::Pose* end_position) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.end_position_); + } + if (end_position) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(end_position)); + if (message_arena != submessage_arena) { + end_position = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, end_position, submessage_arena); + } + + } else { + + } + _impl_.end_position_ = end_position; + // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.Status.end_position) +} + +// .viam.component.arm.v1.JointPositions joint_positions = 2 [json_name = "jointPositions"]; +inline bool Status::_internal_has_joint_positions() const { + return this != internal_default_instance() && _impl_.joint_positions_ != nullptr; +} +inline bool Status::has_joint_positions() const { + return _internal_has_joint_positions(); +} +inline void Status::clear_joint_positions() { + if (GetArenaForAllocation() == nullptr && _impl_.joint_positions_ != nullptr) { + delete _impl_.joint_positions_; + } + _impl_.joint_positions_ = nullptr; +} +inline const ::viam::component::arm::v1::JointPositions& Status::_internal_joint_positions() const { + const ::viam::component::arm::v1::JointPositions* p = _impl_.joint_positions_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::component::arm::v1::_JointPositions_default_instance_); +} +inline const ::viam::component::arm::v1::JointPositions& Status::joint_positions() const { + // @@protoc_insertion_point(field_get:viam.component.arm.v1.Status.joint_positions) + return _internal_joint_positions(); +} +inline void Status::unsafe_arena_set_allocated_joint_positions( + ::viam::component::arm::v1::JointPositions* joint_positions) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.joint_positions_); + } + _impl_.joint_positions_ = joint_positions; + if (joint_positions) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.Status.joint_positions) +} +inline ::viam::component::arm::v1::JointPositions* Status::release_joint_positions() { + + ::viam::component::arm::v1::JointPositions* temp = _impl_.joint_positions_; + _impl_.joint_positions_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::component::arm::v1::JointPositions* Status::unsafe_arena_release_joint_positions() { + // @@protoc_insertion_point(field_release:viam.component.arm.v1.Status.joint_positions) + + ::viam::component::arm::v1::JointPositions* temp = _impl_.joint_positions_; + _impl_.joint_positions_ = nullptr; + return temp; +} +inline ::viam::component::arm::v1::JointPositions* Status::_internal_mutable_joint_positions() { + + if (_impl_.joint_positions_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::component::arm::v1::JointPositions>(GetArenaForAllocation()); + _impl_.joint_positions_ = p; + } + return _impl_.joint_positions_; +} +inline ::viam::component::arm::v1::JointPositions* Status::mutable_joint_positions() { + ::viam::component::arm::v1::JointPositions* _msg = _internal_mutable_joint_positions(); + // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.Status.joint_positions) + return _msg; +} +inline void Status::set_allocated_joint_positions(::viam::component::arm::v1::JointPositions* joint_positions) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.joint_positions_; + } + if (joint_positions) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(joint_positions); + if (message_arena != submessage_arena) { + joint_positions = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, joint_positions, submessage_arena); + } + + } else { + + } + _impl_.joint_positions_ = joint_positions; + // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.Status.joint_positions) +} + +// bool is_moving = 3 [json_name = "isMoving"]; +inline void Status::clear_is_moving() { + _impl_.is_moving_ = false; +} +inline bool Status::_internal_is_moving() const { + return _impl_.is_moving_; +} +inline bool Status::is_moving() const { + // @@protoc_insertion_point(field_get:viam.component.arm.v1.Status.is_moving) + return _internal_is_moving(); +} +inline void Status::_internal_set_is_moving(bool value) { + + _impl_.is_moving_ = value; +} +inline void Status::set_is_moving(bool value) { + _internal_set_is_moving(value); + // @@protoc_insertion_point(field_set:viam.component.arm.v1.Status.is_moving) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace arm +} // namespace component +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2farm_2fv1_2farm_2eproto diff --git a/src/gen/component/audioinput/v1/audioinput.grpc.pb.cc b/src/gen/component/audioinput/v1/audioinput.grpc.pb.cc new file mode 100644 index 000000000..a7bb73812 --- /dev/null +++ b/src/gen/component/audioinput/v1/audioinput.grpc.pb.cc @@ -0,0 +1,169 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/audioinput/v1/audioinput.proto + +#include "component/audioinput/v1/audioinput.pb.h" +#include "component/audioinput/v1/audioinput.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace component { +namespace audioinput { +namespace v1 { + +static const char* AudioInputService_method_names[] = { + "/viam.component.audioinput.v1.AudioInputService/Chunks", + "/viam.component.audioinput.v1.AudioInputService/Properties", + "/viam.component.audioinput.v1.AudioInputService/Record", +}; + +std::unique_ptr< AudioInputService::Stub> AudioInputService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< AudioInputService::Stub> stub(new AudioInputService::Stub(channel, options)); + return stub; +} + +AudioInputService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_Chunks_(AudioInputService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_Properties_(AudioInputService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Record_(AudioInputService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::ClientReader< ::viam::component::audioinput::v1::ChunksResponse>* AudioInputService::Stub::ChunksRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request) { + return ::grpc::internal::ClientReaderFactory< ::viam::component::audioinput::v1::ChunksResponse>::Create(channel_.get(), rpcmethod_Chunks_, context, request); +} + +void AudioInputService::Stub::async::Chunks(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest* request, ::grpc::ClientReadReactor< ::viam::component::audioinput::v1::ChunksResponse>* reactor) { + ::grpc::internal::ClientCallbackReaderFactory< ::viam::component::audioinput::v1::ChunksResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_Chunks_, context, request, reactor); +} + +::grpc::ClientAsyncReader< ::viam::component::audioinput::v1::ChunksResponse>* AudioInputService::Stub::AsyncChunksRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc::internal::ClientAsyncReaderFactory< ::viam::component::audioinput::v1::ChunksResponse>::Create(channel_.get(), cq, rpcmethod_Chunks_, context, request, true, tag); +} + +::grpc::ClientAsyncReader< ::viam::component::audioinput::v1::ChunksResponse>* AudioInputService::Stub::PrepareAsyncChunksRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncReaderFactory< ::viam::component::audioinput::v1::ChunksResponse>::Create(channel_.get(), cq, rpcmethod_Chunks_, context, request, false, nullptr); +} + +::grpc::Status AudioInputService::Stub::Properties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest& request, ::viam::component::audioinput::v1::PropertiesResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::audioinput::v1::PropertiesRequest, ::viam::component::audioinput::v1::PropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Properties_, context, request, response); +} + +void AudioInputService::Stub::async::Properties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest* request, ::viam::component::audioinput::v1::PropertiesResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::audioinput::v1::PropertiesRequest, ::viam::component::audioinput::v1::PropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Properties_, context, request, response, std::move(f)); +} + +void AudioInputService::Stub::async::Properties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest* request, ::viam::component::audioinput::v1::PropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Properties_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::audioinput::v1::PropertiesResponse>* AudioInputService::Stub::PrepareAsyncPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::audioinput::v1::PropertiesResponse, ::viam::component::audioinput::v1::PropertiesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Properties_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::audioinput::v1::PropertiesResponse>* AudioInputService::Stub::AsyncPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncPropertiesRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AudioInputService::Stub::Record(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest& request, ::google::api::HttpBody* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::audioinput::v1::RecordRequest, ::google::api::HttpBody, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Record_, context, request, response); +} + +void AudioInputService::Stub::async::Record(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest* request, ::google::api::HttpBody* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::audioinput::v1::RecordRequest, ::google::api::HttpBody, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Record_, context, request, response, std::move(f)); +} + +void AudioInputService::Stub::async::Record(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest* request, ::google::api::HttpBody* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Record_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>* AudioInputService::Stub::PrepareAsyncRecordRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::google::api::HttpBody, ::viam::component::audioinput::v1::RecordRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Record_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>* AudioInputService::Stub::AsyncRecordRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncRecordRaw(context, request, cq); + result->StartCall(); + return result; +} + +AudioInputService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + AudioInputService_method_names[0], + ::grpc::internal::RpcMethod::SERVER_STREAMING, + new ::grpc::internal::ServerStreamingHandler< AudioInputService::Service, ::viam::component::audioinput::v1::ChunksRequest, ::viam::component::audioinput::v1::ChunksResponse>( + [](AudioInputService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::audioinput::v1::ChunksRequest* req, + ::grpc::ServerWriter<::viam::component::audioinput::v1::ChunksResponse>* writer) { + return service->Chunks(ctx, req, writer); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AudioInputService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AudioInputService::Service, ::viam::component::audioinput::v1::PropertiesRequest, ::viam::component::audioinput::v1::PropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AudioInputService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::audioinput::v1::PropertiesRequest* req, + ::viam::component::audioinput::v1::PropertiesResponse* resp) { + return service->Properties(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AudioInputService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AudioInputService::Service, ::viam::component::audioinput::v1::RecordRequest, ::google::api::HttpBody, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AudioInputService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::audioinput::v1::RecordRequest* req, + ::google::api::HttpBody* resp) { + return service->Record(ctx, req, resp); + }, this))); +} + +AudioInputService::Service::~Service() { +} + +::grpc::Status AudioInputService::Service::Chunks(::grpc::ServerContext* context, const ::viam::component::audioinput::v1::ChunksRequest* request, ::grpc::ServerWriter< ::viam::component::audioinput::v1::ChunksResponse>* writer) { + (void) context; + (void) request; + (void) writer; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AudioInputService::Service::Properties(::grpc::ServerContext* context, const ::viam::component::audioinput::v1::PropertiesRequest* request, ::viam::component::audioinput::v1::PropertiesResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AudioInputService::Service::Record(::grpc::ServerContext* context, const ::viam::component::audioinput::v1::RecordRequest* request, ::google::api::HttpBody* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace component +} // namespace audioinput +} // namespace v1 + diff --git a/src/gen/component/audioinput/v1/audioinput.grpc.pb.h b/src/gen/component/audioinput/v1/audioinput.grpc.pb.h new file mode 100644 index 000000000..968e35a5a --- /dev/null +++ b/src/gen/component/audioinput/v1/audioinput.grpc.pb.h @@ -0,0 +1,575 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/audioinput/v1/audioinput.proto +#ifndef GRPC_component_2faudioinput_2fv1_2faudioinput_2eproto__INCLUDED +#define GRPC_component_2faudioinput_2fv1_2faudioinput_2eproto__INCLUDED + +#include "component/audioinput/v1/audioinput.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace component { +namespace audioinput { +namespace v1 { + +// An AudioInputService services all audio inputs associated with a robot +class AudioInputService final { + public: + static constexpr char const* service_full_name() { + return "viam.component.audioinput.v1.AudioInputService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // Chunks returns audio chunks forever from an audio input of the underlying robot. + std::unique_ptr< ::grpc::ClientReaderInterface< ::viam::component::audioinput::v1::ChunksResponse>> Chunks(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request) { + return std::unique_ptr< ::grpc::ClientReaderInterface< ::viam::component::audioinput::v1::ChunksResponse>>(ChunksRaw(context, request)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::component::audioinput::v1::ChunksResponse>> AsyncChunks(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::component::audioinput::v1::ChunksResponse>>(AsyncChunksRaw(context, request, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::component::audioinput::v1::ChunksResponse>> PrepareAsyncChunks(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::component::audioinput::v1::ChunksResponse>>(PrepareAsyncChunksRaw(context, request, cq)); + } + // Properties returns properties of an audio input of the underlying robot. + virtual ::grpc::Status Properties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest& request, ::viam::component::audioinput::v1::PropertiesResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::audioinput::v1::PropertiesResponse>> AsyncProperties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::audioinput::v1::PropertiesResponse>>(AsyncPropertiesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::audioinput::v1::PropertiesResponse>> PrepareAsyncProperties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::audioinput::v1::PropertiesResponse>>(PrepareAsyncPropertiesRaw(context, request, cq)); + } + // Record records audio from an audio input of the underlying robot + // to an HTTP response. A specific MIME type cannot be requested and may not necessarily + // be the same one returned each time. + virtual ::grpc::Status Record(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest& request, ::google::api::HttpBody* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::api::HttpBody>> AsyncRecord(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::api::HttpBody>>(AsyncRecordRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::api::HttpBody>> PrepareAsyncRecord(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::api::HttpBody>>(PrepareAsyncRecordRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // Chunks returns audio chunks forever from an audio input of the underlying robot. + virtual void Chunks(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest* request, ::grpc::ClientReadReactor< ::viam::component::audioinput::v1::ChunksResponse>* reactor) = 0; + // Properties returns properties of an audio input of the underlying robot. + virtual void Properties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest* request, ::viam::component::audioinput::v1::PropertiesResponse* response, std::function) = 0; + virtual void Properties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest* request, ::viam::component::audioinput::v1::PropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Record records audio from an audio input of the underlying robot + // to an HTTP response. A specific MIME type cannot be requested and may not necessarily + // be the same one returned each time. + virtual void Record(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest* request, ::google::api::HttpBody* response, std::function) = 0; + virtual void Record(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest* request, ::google::api::HttpBody* 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::component::audioinput::v1::ChunksResponse>* ChunksRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::viam::component::audioinput::v1::ChunksResponse>* AsyncChunksRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::viam::component::audioinput::v1::ChunksResponse>* PrepareAsyncChunksRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::audioinput::v1::PropertiesResponse>* AsyncPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::audioinput::v1::PropertiesResponse>* PrepareAsyncPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::api::HttpBody>* AsyncRecordRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::api::HttpBody>* PrepareAsyncRecordRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest& 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::component::audioinput::v1::ChunksResponse>> Chunks(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request) { + return std::unique_ptr< ::grpc::ClientReader< ::viam::component::audioinput::v1::ChunksResponse>>(ChunksRaw(context, request)); + } + std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::component::audioinput::v1::ChunksResponse>> AsyncChunks(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::component::audioinput::v1::ChunksResponse>>(AsyncChunksRaw(context, request, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::component::audioinput::v1::ChunksResponse>> PrepareAsyncChunks(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::component::audioinput::v1::ChunksResponse>>(PrepareAsyncChunksRaw(context, request, cq)); + } + ::grpc::Status Properties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest& request, ::viam::component::audioinput::v1::PropertiesResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::audioinput::v1::PropertiesResponse>> AsyncProperties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::audioinput::v1::PropertiesResponse>>(AsyncPropertiesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::audioinput::v1::PropertiesResponse>> PrepareAsyncProperties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::audioinput::v1::PropertiesResponse>>(PrepareAsyncPropertiesRaw(context, request, cq)); + } + ::grpc::Status Record(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest& request, ::google::api::HttpBody* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>> AsyncRecord(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>>(AsyncRecordRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>> PrepareAsyncRecord(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>>(PrepareAsyncRecordRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void Chunks(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest* request, ::grpc::ClientReadReactor< ::viam::component::audioinput::v1::ChunksResponse>* reactor) override; + void Properties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest* request, ::viam::component::audioinput::v1::PropertiesResponse* response, std::function) override; + void Properties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest* request, ::viam::component::audioinput::v1::PropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void Record(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest* request, ::google::api::HttpBody* response, std::function) override; + void Record(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest* request, ::google::api::HttpBody* 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::component::audioinput::v1::ChunksResponse>* ChunksRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request) override; + ::grpc::ClientAsyncReader< ::viam::component::audioinput::v1::ChunksResponse>* AsyncChunksRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReader< ::viam::component::audioinput::v1::ChunksResponse>* PrepareAsyncChunksRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::audioinput::v1::PropertiesResponse>* AsyncPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::audioinput::v1::PropertiesResponse>* PrepareAsyncPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>* AsyncRecordRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>* PrepareAsyncRecordRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_Chunks_; + const ::grpc::internal::RpcMethod rpcmethod_Properties_; + const ::grpc::internal::RpcMethod rpcmethod_Record_; + }; + 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(); + // Chunks returns audio chunks forever from an audio input of the underlying robot. + virtual ::grpc::Status Chunks(::grpc::ServerContext* context, const ::viam::component::audioinput::v1::ChunksRequest* request, ::grpc::ServerWriter< ::viam::component::audioinput::v1::ChunksResponse>* writer); + // Properties returns properties of an audio input of the underlying robot. + virtual ::grpc::Status Properties(::grpc::ServerContext* context, const ::viam::component::audioinput::v1::PropertiesRequest* request, ::viam::component::audioinput::v1::PropertiesResponse* response); + // Record records audio from an audio input of the underlying robot + // to an HTTP response. A specific MIME type cannot be requested and may not necessarily + // be the same one returned each time. + virtual ::grpc::Status Record(::grpc::ServerContext* context, const ::viam::component::audioinput::v1::RecordRequest* request, ::google::api::HttpBody* response); + }; + template + class WithAsyncMethod_Chunks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Chunks() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_Chunks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Chunks(::grpc::ServerContext* /*context*/, const ::viam::component::audioinput::v1::ChunksRequest* /*request*/, ::grpc::ServerWriter< ::viam::component::audioinput::v1::ChunksResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestChunks(::grpc::ServerContext* context, ::viam::component::audioinput::v1::ChunksRequest* request, ::grpc::ServerAsyncWriter< ::viam::component::audioinput::v1::ChunksResponse>* 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_Properties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Properties() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_Properties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Properties(::grpc::ServerContext* /*context*/, const ::viam::component::audioinput::v1::PropertiesRequest* /*request*/, ::viam::component::audioinput::v1::PropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestProperties(::grpc::ServerContext* context, ::viam::component::audioinput::v1::PropertiesRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::audioinput::v1::PropertiesResponse>* 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 WithAsyncMethod_Record : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Record() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_Record() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Record(::grpc::ServerContext* /*context*/, const ::viam::component::audioinput::v1::RecordRequest* /*request*/, ::google::api::HttpBody* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRecord(::grpc::ServerContext* context, ::viam::component::audioinput::v1::RecordRequest* request, ::grpc::ServerAsyncResponseWriter< ::google::api::HttpBody>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_Chunks > > AsyncService; + template + class WithCallbackMethod_Chunks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Chunks() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackServerStreamingHandler< ::viam::component::audioinput::v1::ChunksRequest, ::viam::component::audioinput::v1::ChunksResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::audioinput::v1::ChunksRequest* request) { return this->Chunks(context, request); })); + } + ~WithCallbackMethod_Chunks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Chunks(::grpc::ServerContext* /*context*/, const ::viam::component::audioinput::v1::ChunksRequest* /*request*/, ::grpc::ServerWriter< ::viam::component::audioinput::v1::ChunksResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerWriteReactor< ::viam::component::audioinput::v1::ChunksResponse>* Chunks( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::audioinput::v1::ChunksRequest* /*request*/) { return nullptr; } + }; + template + class WithCallbackMethod_Properties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Properties() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::audioinput::v1::PropertiesRequest, ::viam::component::audioinput::v1::PropertiesResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::audioinput::v1::PropertiesRequest* request, ::viam::component::audioinput::v1::PropertiesResponse* response) { return this->Properties(context, request, response); }));} + void SetMessageAllocatorFor_Properties( + ::grpc::MessageAllocator< ::viam::component::audioinput::v1::PropertiesRequest, ::viam::component::audioinput::v1::PropertiesResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::audioinput::v1::PropertiesRequest, ::viam::component::audioinput::v1::PropertiesResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Properties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Properties(::grpc::ServerContext* /*context*/, const ::viam::component::audioinput::v1::PropertiesRequest* /*request*/, ::viam::component::audioinput::v1::PropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Properties( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::audioinput::v1::PropertiesRequest* /*request*/, ::viam::component::audioinput::v1::PropertiesResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_Record : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Record() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::audioinput::v1::RecordRequest, ::google::api::HttpBody>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::audioinput::v1::RecordRequest* request, ::google::api::HttpBody* response) { return this->Record(context, request, response); }));} + void SetMessageAllocatorFor_Record( + ::grpc::MessageAllocator< ::viam::component::audioinput::v1::RecordRequest, ::google::api::HttpBody>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::audioinput::v1::RecordRequest, ::google::api::HttpBody>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Record() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Record(::grpc::ServerContext* /*context*/, const ::viam::component::audioinput::v1::RecordRequest* /*request*/, ::google::api::HttpBody* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Record( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::audioinput::v1::RecordRequest* /*request*/, ::google::api::HttpBody* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_Chunks > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_Chunks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Chunks() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_Chunks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Chunks(::grpc::ServerContext* /*context*/, const ::viam::component::audioinput::v1::ChunksRequest* /*request*/, ::grpc::ServerWriter< ::viam::component::audioinput::v1::ChunksResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_Properties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Properties() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_Properties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Properties(::grpc::ServerContext* /*context*/, const ::viam::component::audioinput::v1::PropertiesRequest* /*request*/, ::viam::component::audioinput::v1::PropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_Record : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Record() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_Record() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Record(::grpc::ServerContext* /*context*/, const ::viam::component::audioinput::v1::RecordRequest* /*request*/, ::google::api::HttpBody* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_Chunks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Chunks() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_Chunks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Chunks(::grpc::ServerContext* /*context*/, const ::viam::component::audioinput::v1::ChunksRequest* /*request*/, ::grpc::ServerWriter< ::viam::component::audioinput::v1::ChunksResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestChunks(::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_Properties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Properties() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_Properties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Properties(::grpc::ServerContext* /*context*/, const ::viam::component::audioinput::v1::PropertiesRequest* /*request*/, ::viam::component::audioinput::v1::PropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestProperties(::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 WithRawMethod_Record : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Record() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_Record() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Record(::grpc::ServerContext* /*context*/, const ::viam::component::audioinput::v1::RecordRequest* /*request*/, ::google::api::HttpBody* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRecord(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_Chunks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Chunks() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->Chunks(context, request); })); + } + ~WithRawCallbackMethod_Chunks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Chunks(::grpc::ServerContext* /*context*/, const ::viam::component::audioinput::v1::ChunksRequest* /*request*/, ::grpc::ServerWriter< ::viam::component::audioinput::v1::ChunksResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* Chunks( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_Properties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Properties() { + ::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->Properties(context, request, response); })); + } + ~WithRawCallbackMethod_Properties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Properties(::grpc::ServerContext* /*context*/, const ::viam::component::audioinput::v1::PropertiesRequest* /*request*/, ::viam::component::audioinput::v1::PropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Properties( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_Record : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Record() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Record(context, request, response); })); + } + ~WithRawCallbackMethod_Record() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Record(::grpc::ServerContext* /*context*/, const ::viam::component::audioinput::v1::RecordRequest* /*request*/, ::google::api::HttpBody* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Record( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_Properties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Properties() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::audioinput::v1::PropertiesRequest, ::viam::component::audioinput::v1::PropertiesResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::audioinput::v1::PropertiesRequest, ::viam::component::audioinput::v1::PropertiesResponse>* streamer) { + return this->StreamedProperties(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Properties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Properties(::grpc::ServerContext* /*context*/, const ::viam::component::audioinput::v1::PropertiesRequest* /*request*/, ::viam::component::audioinput::v1::PropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedProperties(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::audioinput::v1::PropertiesRequest,::viam::component::audioinput::v1::PropertiesResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_Record : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Record() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::audioinput::v1::RecordRequest, ::google::api::HttpBody>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::audioinput::v1::RecordRequest, ::google::api::HttpBody>* streamer) { + return this->StreamedRecord(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Record() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Record(::grpc::ServerContext* /*context*/, const ::viam::component::audioinput::v1::RecordRequest* /*request*/, ::google::api::HttpBody* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedRecord(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::audioinput::v1::RecordRequest,::google::api::HttpBody>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_Properties > StreamedUnaryService; + template + class WithSplitStreamingMethod_Chunks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithSplitStreamingMethod_Chunks() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::SplitServerStreamingHandler< + ::viam::component::audioinput::v1::ChunksRequest, ::viam::component::audioinput::v1::ChunksResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerSplitStreamer< + ::viam::component::audioinput::v1::ChunksRequest, ::viam::component::audioinput::v1::ChunksResponse>* streamer) { + return this->StreamedChunks(context, + streamer); + })); + } + ~WithSplitStreamingMethod_Chunks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Chunks(::grpc::ServerContext* /*context*/, const ::viam::component::audioinput::v1::ChunksRequest* /*request*/, ::grpc::ServerWriter< ::viam::component::audioinput::v1::ChunksResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with split streamed + virtual ::grpc::Status StreamedChunks(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::viam::component::audioinput::v1::ChunksRequest,::viam::component::audioinput::v1::ChunksResponse>* server_split_streamer) = 0; + }; + typedef WithSplitStreamingMethod_Chunks SplitStreamedService; + typedef WithSplitStreamingMethod_Chunks > > StreamedService; +}; + +} // namespace v1 +} // namespace audioinput +} // namespace component +} // namespace viam + + +#endif // GRPC_component_2faudioinput_2fv1_2faudioinput_2eproto__INCLUDED diff --git a/src/gen/component/audioinput/v1/audioinput.pb.cc b/src/gen/component/audioinput/v1/audioinput.pb.cc new file mode 100644 index 000000000..de67ed99e --- /dev/null +++ b/src/gen/component/audioinput/v1/audioinput.pb.cc @@ -0,0 +1,2153 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/audioinput/v1/audioinput.proto + +#include "component/audioinput/v1/audioinput.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 component { +namespace audioinput { +namespace v1 { +PROTOBUF_CONSTEXPR RecordRequest::RecordRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.duration_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RecordRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RecordRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RecordRequestDefaultTypeInternal() {} + union { + RecordRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RecordRequestDefaultTypeInternal _RecordRequest_default_instance_; +PROTOBUF_CONSTEXPR AudioChunkInfo::AudioChunkInfo( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.sample_format_)*/0 + , /*decltype(_impl_.channels_)*/0u + , /*decltype(_impl_.sampling_rate_)*/int64_t{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct AudioChunkInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR AudioChunkInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AudioChunkInfoDefaultTypeInternal() {} + union { + AudioChunkInfo _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AudioChunkInfoDefaultTypeInternal _AudioChunkInfo_default_instance_; +PROTOBUF_CONSTEXPR AudioChunk::AudioChunk( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.data_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.length_)*/0u + , /*decltype(_impl_._cached_size_)*/{}} {} +struct AudioChunkDefaultTypeInternal { + PROTOBUF_CONSTEXPR AudioChunkDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AudioChunkDefaultTypeInternal() {} + union { + AudioChunk _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AudioChunkDefaultTypeInternal _AudioChunk_default_instance_; +PROTOBUF_CONSTEXPR ChunksRequest::ChunksRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.sample_format_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ChunksRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChunksRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ChunksRequestDefaultTypeInternal() {} + union { + ChunksRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChunksRequestDefaultTypeInternal _ChunksRequest_default_instance_; +PROTOBUF_CONSTEXPR ChunksResponse::ChunksResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.type_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct ChunksResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChunksResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ChunksResponseDefaultTypeInternal() {} + union { + ChunksResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChunksResponseDefaultTypeInternal _ChunksResponse_default_instance_; +PROTOBUF_CONSTEXPR PropertiesRequest::PropertiesRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct PropertiesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR PropertiesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PropertiesRequestDefaultTypeInternal() {} + union { + PropertiesRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PropertiesRequestDefaultTypeInternal _PropertiesRequest_default_instance_; +PROTOBUF_CONSTEXPR PropertiesResponse::PropertiesResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.latency_)*/nullptr + , /*decltype(_impl_.channel_count_)*/0u + , /*decltype(_impl_.sample_rate_)*/0u + , /*decltype(_impl_.sample_size_)*/0u + , /*decltype(_impl_.is_big_endian_)*/false + , /*decltype(_impl_.is_float_)*/false + , /*decltype(_impl_.is_interleaved_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct PropertiesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR PropertiesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PropertiesResponseDefaultTypeInternal() {} + union { + PropertiesResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PropertiesResponseDefaultTypeInternal _PropertiesResponse_default_instance_; +} // namespace v1 +} // namespace audioinput +} // namespace component +} // namespace viam +static ::_pb::Metadata file_level_metadata_component_2faudioinput_2fv1_2faudioinput_2eproto[7]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_component_2faudioinput_2fv1_2faudioinput_2eproto[1]; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2faudioinput_2fv1_2faudioinput_2eproto = nullptr; + +const uint32_t TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::RecordRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::RecordRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::RecordRequest, _impl_.duration_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::AudioChunkInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::AudioChunkInfo, _impl_.sample_format_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::AudioChunkInfo, _impl_.channels_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::AudioChunkInfo, _impl_.sampling_rate_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::AudioChunk, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::AudioChunk, _impl_.data_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::AudioChunk, _impl_.length_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::ChunksRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::ChunksRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::ChunksRequest, _impl_.sample_format_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::ChunksResponse, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::ChunksResponse, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::ChunksResponse, _impl_.type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, _impl_.channel_count_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, _impl_.latency_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, _impl_.sample_rate_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, _impl_.sample_size_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, _impl_.is_big_endian_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, _impl_.is_float_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, _impl_.is_interleaved_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::audioinput::v1::RecordRequest)}, + { 8, -1, -1, sizeof(::viam::component::audioinput::v1::AudioChunkInfo)}, + { 17, -1, -1, sizeof(::viam::component::audioinput::v1::AudioChunk)}, + { 25, -1, -1, sizeof(::viam::component::audioinput::v1::ChunksRequest)}, + { 33, -1, -1, sizeof(::viam::component::audioinput::v1::ChunksResponse)}, + { 42, -1, -1, sizeof(::viam::component::audioinput::v1::PropertiesRequest)}, + { 49, -1, -1, sizeof(::viam::component::audioinput::v1::PropertiesResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::component::audioinput::v1::_RecordRequest_default_instance_._instance, + &::viam::component::audioinput::v1::_AudioChunkInfo_default_instance_._instance, + &::viam::component::audioinput::v1::_AudioChunk_default_instance_._instance, + &::viam::component::audioinput::v1::_ChunksRequest_default_instance_._instance, + &::viam::component::audioinput::v1::_ChunksResponse_default_instance_._instance, + &::viam::component::audioinput::v1::_PropertiesRequest_default_instance_._instance, + &::viam::component::audioinput::v1::_PropertiesResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_component_2faudioinput_2fv1_2faudioinput_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n(component/audioinput/v1/audioinput.pro" + "to\022\034viam.component.audioinput.v1\032\034google" + "/api/annotations.proto\032\031google/api/httpb" + "ody.proto\032\036google/protobuf/duration.prot" + "o\"Z\n\rRecordRequest\022\022\n\004name\030\001 \001(\tR\004name\0225" + "\n\010duration\030\002 \001(\0132\031.google.protobuf.Durat" + "ionR\010duration\"\242\001\n\016AudioChunkInfo\022O\n\rsamp" + "le_format\030\001 \001(\0162*.viam.component.audioin" + "put.v1.SampleFormatR\014sampleFormat\022\032\n\010cha" + "nnels\030\002 \001(\rR\010channels\022#\n\rsampling_rate\030\003" + " \001(\003R\014samplingRate\"8\n\nAudioChunk\022\022\n\004data" + "\030\001 \001(\014R\004data\022\026\n\006length\030\002 \001(\rR\006length\"t\n\r" + "ChunksRequest\022\022\n\004name\030\001 \001(\tR\004name\022O\n\rsam" + "ple_format\030\002 \001(\0162*.viam.component.audioi" + "nput.v1.SampleFormatR\014sampleFormat\"\236\001\n\016C" + "hunksResponse\022B\n\004info\030\001 \001(\0132,.viam.compo" + "nent.audioinput.v1.AudioChunkInfoH\000R\004inf" + "o\022@\n\005chunk\030\002 \001(\0132(.viam.component.audioi" + "nput.v1.AudioChunkH\000R\005chunkB\006\n\004type\"\'\n\021P" + "ropertiesRequest\022\022\n\004name\030\001 \001(\tR\004name\"\226\002\n" + "\022PropertiesResponse\022#\n\rchannel_count\030\001 \001" + "(\rR\014channelCount\0223\n\007latency\030\002 \001(\0132\031.goog" + "le.protobuf.DurationR\007latency\022\037\n\013sample_" + "rate\030\003 \001(\rR\nsampleRate\022\037\n\013sample_size\030\004 " + "\001(\rR\nsampleSize\022\"\n\ris_big_endian\030\005 \001(\010R\013" + "isBigEndian\022\031\n\010is_float\030\006 \001(\010R\007isFloat\022%" + "\n\016is_interleaved\030\007 \001(\010R\risInterleaved*y\n" + "\014SampleFormat\022\035\n\031SAMPLE_FORMAT_UNSPECIFI" + "ED\020\000\022#\n\037SAMPLE_FORMAT_INT16_INTERLEAVED\020" + "\001\022%\n!SAMPLE_FORMAT_FLOAT32_INTERLEAVED\020\002" + "2\260\003\n\021AudioInputService\022e\n\006Chunks\022+.viam." + "component.audioinput.v1.ChunksRequest\032,." + "viam.component.audioinput.v1.ChunksRespo" + "nse0\001\022\254\001\n\nProperties\022/.viam.component.au" + "dioinput.v1.PropertiesRequest\0320.viam.com" + "ponent.audioinput.v1.PropertiesResponse\"" + ";\202\323\344\223\0025\0223/viam/api/v1/component/audioinp" + "ut/{name}/properties\022\204\001\n\006Record\022+.viam.c" + "omponent.audioinput.v1.RecordRequest\032\024.g" + "oogle.api.HttpBody\"7\202\323\344\223\0021\022//viam/api/v1" + "/component/audioinput/{name}/recordBK\n c" + "om.viam.component.audioinput.v1Z\'go.viam" + ".com/api/component/audioinput/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_deps[3] = { + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fapi_2fhttpbody_2eproto, + &::descriptor_table_google_2fprotobuf_2fduration_2eproto, +}; +static ::_pbi::once_flag descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto = { + false, false, 1720, descriptor_table_protodef_component_2faudioinput_2fv1_2faudioinput_2eproto, + "component/audioinput/v1/audioinput.proto", + &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_once, descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_deps, 3, 7, + schemas, file_default_instances, TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto::offsets, + file_level_metadata_component_2faudioinput_2fv1_2faudioinput_2eproto, file_level_enum_descriptors_component_2faudioinput_2fv1_2faudioinput_2eproto, + file_level_service_descriptors_component_2faudioinput_2fv1_2faudioinput_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_getter() { + return &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2faudioinput_2fv1_2faudioinput_2eproto(&descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto); +namespace viam { +namespace component { +namespace audioinput { +namespace v1 { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SampleFormat_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto); + return file_level_enum_descriptors_component_2faudioinput_2fv1_2faudioinput_2eproto[0]; +} +bool SampleFormat_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + + +// =================================================================== + +class RecordRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Duration& duration(const RecordRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Duration& +RecordRequest::_Internal::duration(const RecordRequest* msg) { + return *msg->_impl_.duration_; +} +void RecordRequest::clear_duration() { + if (GetArenaForAllocation() == nullptr && _impl_.duration_ != nullptr) { + delete _impl_.duration_; + } + _impl_.duration_ = nullptr; +} +RecordRequest::RecordRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.audioinput.v1.RecordRequest) +} +RecordRequest::RecordRequest(const RecordRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RecordRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.duration_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_duration()) { + _this->_impl_.duration_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from._impl_.duration_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.audioinput.v1.RecordRequest) +} + +inline void RecordRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.duration_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +RecordRequest::~RecordRequest() { + // @@protoc_insertion_point(destructor:viam.component.audioinput.v1.RecordRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RecordRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.duration_; +} + +void RecordRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RecordRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.audioinput.v1.RecordRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.duration_ != nullptr) { + delete _impl_.duration_; + } + _impl_.duration_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RecordRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.audioinput.v1.RecordRequest.name")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Duration duration = 2 [json_name = "duration"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_duration(), 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* RecordRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.audioinput.v1.RecordRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.audioinput.v1.RecordRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .google.protobuf.Duration duration = 2 [json_name = "duration"]; + if (this->_internal_has_duration()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::duration(this), + _Internal::duration(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.audioinput.v1.RecordRequest) + return target; +} + +size_t RecordRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.audioinput.v1.RecordRequest) + 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.Duration duration = 2 [json_name = "duration"]; + if (this->_internal_has_duration()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.duration_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RecordRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RecordRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RecordRequest::GetClassData() const { return &_class_data_; } + + +void RecordRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.audioinput.v1.RecordRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_duration()) { + _this->_internal_mutable_duration()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom( + from._internal_duration()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RecordRequest::CopyFrom(const RecordRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.audioinput.v1.RecordRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RecordRequest::IsInitialized() const { + return true; +} + +void RecordRequest::InternalSwap(RecordRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.duration_, other->_impl_.duration_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RecordRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_getter, &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_once, + file_level_metadata_component_2faudioinput_2fv1_2faudioinput_2eproto[0]); +} + +// =================================================================== + +class AudioChunkInfo::_Internal { + public: +}; + +AudioChunkInfo::AudioChunkInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.audioinput.v1.AudioChunkInfo) +} +AudioChunkInfo::AudioChunkInfo(const AudioChunkInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + AudioChunkInfo* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.sample_format_){} + , decltype(_impl_.channels_){} + , decltype(_impl_.sampling_rate_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.sample_format_, &from._impl_.sample_format_, + static_cast(reinterpret_cast(&_impl_.sampling_rate_) - + reinterpret_cast(&_impl_.sample_format_)) + sizeof(_impl_.sampling_rate_)); + // @@protoc_insertion_point(copy_constructor:viam.component.audioinput.v1.AudioChunkInfo) +} + +inline void AudioChunkInfo::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.sample_format_){0} + , decltype(_impl_.channels_){0u} + , decltype(_impl_.sampling_rate_){int64_t{0}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +AudioChunkInfo::~AudioChunkInfo() { + // @@protoc_insertion_point(destructor:viam.component.audioinput.v1.AudioChunkInfo) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void AudioChunkInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void AudioChunkInfo::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void AudioChunkInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.audioinput.v1.AudioChunkInfo) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.sample_format_, 0, static_cast( + reinterpret_cast(&_impl_.sampling_rate_) - + reinterpret_cast(&_impl_.sample_format_)) + sizeof(_impl_.sampling_rate_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AudioChunkInfo::_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) { + // .viam.component.audioinput.v1.SampleFormat sample_format = 1 [json_name = "sampleFormat"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_sample_format(static_cast<::viam::component::audioinput::v1::SampleFormat>(val)); + } else + goto handle_unusual; + continue; + // uint32 channels = 2 [json_name = "channels"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.channels_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 sampling_rate = 3 [json_name = "samplingRate"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.sampling_rate_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* AudioChunkInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.audioinput.v1.AudioChunkInfo) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.component.audioinput.v1.SampleFormat sample_format = 1 [json_name = "sampleFormat"]; + if (this->_internal_sample_format() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_sample_format(), target); + } + + // uint32 channels = 2 [json_name = "channels"]; + if (this->_internal_channels() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_channels(), target); + } + + // int64 sampling_rate = 3 [json_name = "samplingRate"]; + if (this->_internal_sampling_rate() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_sampling_rate(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.audioinput.v1.AudioChunkInfo) + return target; +} + +size_t AudioChunkInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.audioinput.v1.AudioChunkInfo) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.component.audioinput.v1.SampleFormat sample_format = 1 [json_name = "sampleFormat"]; + if (this->_internal_sample_format() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_sample_format()); + } + + // uint32 channels = 2 [json_name = "channels"]; + if (this->_internal_channels() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_channels()); + } + + // int64 sampling_rate = 3 [json_name = "samplingRate"]; + if (this->_internal_sampling_rate() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_sampling_rate()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AudioChunkInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AudioChunkInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AudioChunkInfo::GetClassData() const { return &_class_data_; } + + +void AudioChunkInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.audioinput.v1.AudioChunkInfo) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_sample_format() != 0) { + _this->_internal_set_sample_format(from._internal_sample_format()); + } + if (from._internal_channels() != 0) { + _this->_internal_set_channels(from._internal_channels()); + } + if (from._internal_sampling_rate() != 0) { + _this->_internal_set_sampling_rate(from._internal_sampling_rate()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AudioChunkInfo::CopyFrom(const AudioChunkInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.audioinput.v1.AudioChunkInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AudioChunkInfo::IsInitialized() const { + return true; +} + +void AudioChunkInfo::InternalSwap(AudioChunkInfo* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AudioChunkInfo, _impl_.sampling_rate_) + + sizeof(AudioChunkInfo::_impl_.sampling_rate_) + - PROTOBUF_FIELD_OFFSET(AudioChunkInfo, _impl_.sample_format_)>( + reinterpret_cast(&_impl_.sample_format_), + reinterpret_cast(&other->_impl_.sample_format_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AudioChunkInfo::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_getter, &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_once, + file_level_metadata_component_2faudioinput_2fv1_2faudioinput_2eproto[1]); +} + +// =================================================================== + +class AudioChunk::_Internal { + public: +}; + +AudioChunk::AudioChunk(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.audioinput.v1.AudioChunk) +} +AudioChunk::AudioChunk(const AudioChunk& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + AudioChunk* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.data_){} + , decltype(_impl_.length_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_data().empty()) { + _this->_impl_.data_.Set(from._internal_data(), + _this->GetArenaForAllocation()); + } + _this->_impl_.length_ = from._impl_.length_; + // @@protoc_insertion_point(copy_constructor:viam.component.audioinput.v1.AudioChunk) +} + +inline void AudioChunk::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.data_){} + , decltype(_impl_.length_){0u} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +AudioChunk::~AudioChunk() { + // @@protoc_insertion_point(destructor:viam.component.audioinput.v1.AudioChunk) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void AudioChunk::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.data_.Destroy(); +} + +void AudioChunk::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void AudioChunk::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.audioinput.v1.AudioChunk) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.data_.ClearToEmpty(); + _impl_.length_ = 0u; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AudioChunk::_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 data = 1 [json_name = "data"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_data(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint32 length = 2 [json_name = "length"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.length_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* AudioChunk::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.audioinput.v1.AudioChunk) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bytes data = 1 [json_name = "data"]; + if (!this->_internal_data().empty()) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_data(), target); + } + + // uint32 length = 2 [json_name = "length"]; + if (this->_internal_length() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_length(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.audioinput.v1.AudioChunk) + return target; +} + +size_t AudioChunk::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.audioinput.v1.AudioChunk) + 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 data = 1 [json_name = "data"]; + if (!this->_internal_data().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_data()); + } + + // uint32 length = 2 [json_name = "length"]; + if (this->_internal_length() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_length()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AudioChunk::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AudioChunk::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AudioChunk::GetClassData() const { return &_class_data_; } + + +void AudioChunk::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.audioinput.v1.AudioChunk) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_data().empty()) { + _this->_internal_set_data(from._internal_data()); + } + if (from._internal_length() != 0) { + _this->_internal_set_length(from._internal_length()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AudioChunk::CopyFrom(const AudioChunk& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.audioinput.v1.AudioChunk) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AudioChunk::IsInitialized() const { + return true; +} + +void AudioChunk::InternalSwap(AudioChunk* 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( + &_impl_.data_, lhs_arena, + &other->_impl_.data_, rhs_arena + ); + swap(_impl_.length_, other->_impl_.length_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AudioChunk::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_getter, &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_once, + file_level_metadata_component_2faudioinput_2fv1_2faudioinput_2eproto[2]); +} + +// =================================================================== + +class ChunksRequest::_Internal { + public: +}; + +ChunksRequest::ChunksRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.audioinput.v1.ChunksRequest) +} +ChunksRequest::ChunksRequest(const ChunksRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ChunksRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.sample_format_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _this->_impl_.sample_format_ = from._impl_.sample_format_; + // @@protoc_insertion_point(copy_constructor:viam.component.audioinput.v1.ChunksRequest) +} + +inline void ChunksRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.sample_format_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ChunksRequest::~ChunksRequest() { + // @@protoc_insertion_point(destructor:viam.component.audioinput.v1.ChunksRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ChunksRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void ChunksRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ChunksRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.audioinput.v1.ChunksRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.sample_format_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ChunksRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.audioinput.v1.ChunksRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.component.audioinput.v1.SampleFormat sample_format = 2 [json_name = "sampleFormat"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_sample_format(static_cast<::viam::component::audioinput::v1::SampleFormat>(val)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ChunksRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.audioinput.v1.ChunksRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.audioinput.v1.ChunksRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .viam.component.audioinput.v1.SampleFormat sample_format = 2 [json_name = "sampleFormat"]; + if (this->_internal_sample_format() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_sample_format(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.audioinput.v1.ChunksRequest) + return target; +} + +size_t ChunksRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.audioinput.v1.ChunksRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // .viam.component.audioinput.v1.SampleFormat sample_format = 2 [json_name = "sampleFormat"]; + if (this->_internal_sample_format() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_sample_format()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChunksRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ChunksRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChunksRequest::GetClassData() const { return &_class_data_; } + + +void ChunksRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.audioinput.v1.ChunksRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_sample_format() != 0) { + _this->_internal_set_sample_format(from._internal_sample_format()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ChunksRequest::CopyFrom(const ChunksRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.audioinput.v1.ChunksRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ChunksRequest::IsInitialized() const { + return true; +} + +void ChunksRequest::InternalSwap(ChunksRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.sample_format_, other->_impl_.sample_format_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ChunksRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_getter, &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_once, + file_level_metadata_component_2faudioinput_2fv1_2faudioinput_2eproto[3]); +} + +// =================================================================== + +class ChunksResponse::_Internal { + public: + static const ::viam::component::audioinput::v1::AudioChunkInfo& info(const ChunksResponse* msg); + static const ::viam::component::audioinput::v1::AudioChunk& chunk(const ChunksResponse* msg); +}; + +const ::viam::component::audioinput::v1::AudioChunkInfo& +ChunksResponse::_Internal::info(const ChunksResponse* msg) { + return *msg->_impl_.type_.info_; +} +const ::viam::component::audioinput::v1::AudioChunk& +ChunksResponse::_Internal::chunk(const ChunksResponse* msg) { + return *msg->_impl_.type_.chunk_; +} +void ChunksResponse::set_allocated_info(::viam::component::audioinput::v1::AudioChunkInfo* info) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_type(); + if (info) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(info); + if (message_arena != submessage_arena) { + info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, info, submessage_arena); + } + set_has_info(); + _impl_.type_.info_ = info; + } + // @@protoc_insertion_point(field_set_allocated:viam.component.audioinput.v1.ChunksResponse.info) +} +void ChunksResponse::set_allocated_chunk(::viam::component::audioinput::v1::AudioChunk* chunk) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_type(); + if (chunk) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(chunk); + if (message_arena != submessage_arena) { + chunk = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, chunk, submessage_arena); + } + set_has_chunk(); + _impl_.type_.chunk_ = chunk; + } + // @@protoc_insertion_point(field_set_allocated:viam.component.audioinput.v1.ChunksResponse.chunk) +} +ChunksResponse::ChunksResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.audioinput.v1.ChunksResponse) +} +ChunksResponse::ChunksResponse(const ChunksResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ChunksResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.type_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_type(); + switch (from.type_case()) { + case kInfo: { + _this->_internal_mutable_info()->::viam::component::audioinput::v1::AudioChunkInfo::MergeFrom( + from._internal_info()); + break; + } + case kChunk: { + _this->_internal_mutable_chunk()->::viam::component::audioinput::v1::AudioChunk::MergeFrom( + from._internal_chunk()); + break; + } + case TYPE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:viam.component.audioinput.v1.ChunksResponse) +} + +inline void ChunksResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.type_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_type(); +} + +ChunksResponse::~ChunksResponse() { + // @@protoc_insertion_point(destructor:viam.component.audioinput.v1.ChunksResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ChunksResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_type()) { + clear_type(); + } +} + +void ChunksResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ChunksResponse::clear_type() { +// @@protoc_insertion_point(one_of_clear_start:viam.component.audioinput.v1.ChunksResponse) + switch (type_case()) { + case kInfo: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_.info_; + } + break; + } + case kChunk: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_.chunk_; + } + break; + } + case TYPE_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = TYPE_NOT_SET; +} + + +void ChunksResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.audioinput.v1.ChunksResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_type(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ChunksResponse::_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) { + // .viam.component.audioinput.v1.AudioChunkInfo info = 1 [json_name = "info"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_info(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.component.audioinput.v1.AudioChunk chunk = 2 [json_name = "chunk"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_chunk(), 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* ChunksResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.audioinput.v1.ChunksResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.component.audioinput.v1.AudioChunkInfo info = 1 [json_name = "info"]; + if (_internal_has_info()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::info(this), + _Internal::info(this).GetCachedSize(), target, stream); + } + + // .viam.component.audioinput.v1.AudioChunk chunk = 2 [json_name = "chunk"]; + if (_internal_has_chunk()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::chunk(this), + _Internal::chunk(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.audioinput.v1.ChunksResponse) + return target; +} + +size_t ChunksResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.audioinput.v1.ChunksResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (type_case()) { + // .viam.component.audioinput.v1.AudioChunkInfo info = 1 [json_name = "info"]; + case kInfo: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.type_.info_); + break; + } + // .viam.component.audioinput.v1.AudioChunk chunk = 2 [json_name = "chunk"]; + case kChunk: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.type_.chunk_); + break; + } + case TYPE_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChunksResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ChunksResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChunksResponse::GetClassData() const { return &_class_data_; } + + +void ChunksResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.audioinput.v1.ChunksResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.type_case()) { + case kInfo: { + _this->_internal_mutable_info()->::viam::component::audioinput::v1::AudioChunkInfo::MergeFrom( + from._internal_info()); + break; + } + case kChunk: { + _this->_internal_mutable_chunk()->::viam::component::audioinput::v1::AudioChunk::MergeFrom( + from._internal_chunk()); + break; + } + case TYPE_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ChunksResponse::CopyFrom(const ChunksResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.audioinput.v1.ChunksResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ChunksResponse::IsInitialized() const { + return true; +} + +void ChunksResponse::InternalSwap(ChunksResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.type_, other->_impl_.type_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ChunksResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_getter, &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_once, + file_level_metadata_component_2faudioinput_2fv1_2faudioinput_2eproto[4]); +} + +// =================================================================== + +class PropertiesRequest::_Internal { + public: +}; + +PropertiesRequest::PropertiesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.audioinput.v1.PropertiesRequest) +} +PropertiesRequest::PropertiesRequest(const PropertiesRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + PropertiesRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.audioinput.v1.PropertiesRequest) +} + +inline void PropertiesRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +PropertiesRequest::~PropertiesRequest() { + // @@protoc_insertion_point(destructor:viam.component.audioinput.v1.PropertiesRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void PropertiesRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void PropertiesRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void PropertiesRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.audioinput.v1.PropertiesRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PropertiesRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.audioinput.v1.PropertiesRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* PropertiesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.audioinput.v1.PropertiesRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.audioinput.v1.PropertiesRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.audioinput.v1.PropertiesRequest) + return target; +} + +size_t PropertiesRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.audioinput.v1.PropertiesRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PropertiesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + PropertiesRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PropertiesRequest::GetClassData() const { return &_class_data_; } + + +void PropertiesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.audioinput.v1.PropertiesRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PropertiesRequest::CopyFrom(const PropertiesRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.audioinput.v1.PropertiesRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PropertiesRequest::IsInitialized() const { + return true; +} + +void PropertiesRequest::InternalSwap(PropertiesRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PropertiesRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_getter, &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_once, + file_level_metadata_component_2faudioinput_2fv1_2faudioinput_2eproto[5]); +} + +// =================================================================== + +class PropertiesResponse::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Duration& latency(const PropertiesResponse* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Duration& +PropertiesResponse::_Internal::latency(const PropertiesResponse* msg) { + return *msg->_impl_.latency_; +} +void PropertiesResponse::clear_latency() { + if (GetArenaForAllocation() == nullptr && _impl_.latency_ != nullptr) { + delete _impl_.latency_; + } + _impl_.latency_ = nullptr; +} +PropertiesResponse::PropertiesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.audioinput.v1.PropertiesResponse) +} +PropertiesResponse::PropertiesResponse(const PropertiesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + PropertiesResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.latency_){nullptr} + , decltype(_impl_.channel_count_){} + , decltype(_impl_.sample_rate_){} + , decltype(_impl_.sample_size_){} + , decltype(_impl_.is_big_endian_){} + , decltype(_impl_.is_float_){} + , decltype(_impl_.is_interleaved_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_latency()) { + _this->_impl_.latency_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from._impl_.latency_); + } + ::memcpy(&_impl_.channel_count_, &from._impl_.channel_count_, + static_cast(reinterpret_cast(&_impl_.is_interleaved_) - + reinterpret_cast(&_impl_.channel_count_)) + sizeof(_impl_.is_interleaved_)); + // @@protoc_insertion_point(copy_constructor:viam.component.audioinput.v1.PropertiesResponse) +} + +inline void PropertiesResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.latency_){nullptr} + , decltype(_impl_.channel_count_){0u} + , decltype(_impl_.sample_rate_){0u} + , decltype(_impl_.sample_size_){0u} + , decltype(_impl_.is_big_endian_){false} + , decltype(_impl_.is_float_){false} + , decltype(_impl_.is_interleaved_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +PropertiesResponse::~PropertiesResponse() { + // @@protoc_insertion_point(destructor:viam.component.audioinput.v1.PropertiesResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void PropertiesResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.latency_; +} + +void PropertiesResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void PropertiesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.audioinput.v1.PropertiesResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.latency_ != nullptr) { + delete _impl_.latency_; + } + _impl_.latency_ = nullptr; + ::memset(&_impl_.channel_count_, 0, static_cast( + reinterpret_cast(&_impl_.is_interleaved_) - + reinterpret_cast(&_impl_.channel_count_)) + sizeof(_impl_.is_interleaved_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PropertiesResponse::_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) { + // uint32 channel_count = 1 [json_name = "channelCount"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.channel_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Duration latency = 2 [json_name = "latency"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_latency(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint32 sample_rate = 3 [json_name = "sampleRate"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.sample_rate_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint32 sample_size = 4 [json_name = "sampleSize"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.sample_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool is_big_endian = 5 [json_name = "isBigEndian"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + _impl_.is_big_endian_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool is_float = 6 [json_name = "isFloat"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + _impl_.is_float_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool is_interleaved = 7 [json_name = "isInterleaved"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { + _impl_.is_interleaved_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* PropertiesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.audioinput.v1.PropertiesResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 channel_count = 1 [json_name = "channelCount"]; + if (this->_internal_channel_count() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_channel_count(), target); + } + + // .google.protobuf.Duration latency = 2 [json_name = "latency"]; + if (this->_internal_has_latency()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::latency(this), + _Internal::latency(this).GetCachedSize(), target, stream); + } + + // uint32 sample_rate = 3 [json_name = "sampleRate"]; + if (this->_internal_sample_rate() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_sample_rate(), target); + } + + // uint32 sample_size = 4 [json_name = "sampleSize"]; + if (this->_internal_sample_size() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_sample_size(), target); + } + + // bool is_big_endian = 5 [json_name = "isBigEndian"]; + if (this->_internal_is_big_endian() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_is_big_endian(), target); + } + + // bool is_float = 6 [json_name = "isFloat"]; + if (this->_internal_is_float() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_is_float(), target); + } + + // bool is_interleaved = 7 [json_name = "isInterleaved"]; + if (this->_internal_is_interleaved() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(7, this->_internal_is_interleaved(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.audioinput.v1.PropertiesResponse) + return target; +} + +size_t PropertiesResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.audioinput.v1.PropertiesResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.protobuf.Duration latency = 2 [json_name = "latency"]; + if (this->_internal_has_latency()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.latency_); + } + + // uint32 channel_count = 1 [json_name = "channelCount"]; + if (this->_internal_channel_count() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_channel_count()); + } + + // uint32 sample_rate = 3 [json_name = "sampleRate"]; + if (this->_internal_sample_rate() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_sample_rate()); + } + + // uint32 sample_size = 4 [json_name = "sampleSize"]; + if (this->_internal_sample_size() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_sample_size()); + } + + // bool is_big_endian = 5 [json_name = "isBigEndian"]; + if (this->_internal_is_big_endian() != 0) { + total_size += 1 + 1; + } + + // bool is_float = 6 [json_name = "isFloat"]; + if (this->_internal_is_float() != 0) { + total_size += 1 + 1; + } + + // bool is_interleaved = 7 [json_name = "isInterleaved"]; + if (this->_internal_is_interleaved() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PropertiesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + PropertiesResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PropertiesResponse::GetClassData() const { return &_class_data_; } + + +void PropertiesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.audioinput.v1.PropertiesResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_latency()) { + _this->_internal_mutable_latency()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom( + from._internal_latency()); + } + if (from._internal_channel_count() != 0) { + _this->_internal_set_channel_count(from._internal_channel_count()); + } + if (from._internal_sample_rate() != 0) { + _this->_internal_set_sample_rate(from._internal_sample_rate()); + } + if (from._internal_sample_size() != 0) { + _this->_internal_set_sample_size(from._internal_sample_size()); + } + if (from._internal_is_big_endian() != 0) { + _this->_internal_set_is_big_endian(from._internal_is_big_endian()); + } + if (from._internal_is_float() != 0) { + _this->_internal_set_is_float(from._internal_is_float()); + } + if (from._internal_is_interleaved() != 0) { + _this->_internal_set_is_interleaved(from._internal_is_interleaved()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PropertiesResponse::CopyFrom(const PropertiesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.audioinput.v1.PropertiesResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PropertiesResponse::IsInitialized() const { + return true; +} + +void PropertiesResponse::InternalSwap(PropertiesResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PropertiesResponse, _impl_.is_interleaved_) + + sizeof(PropertiesResponse::_impl_.is_interleaved_) + - PROTOBUF_FIELD_OFFSET(PropertiesResponse, _impl_.latency_)>( + reinterpret_cast(&_impl_.latency_), + reinterpret_cast(&other->_impl_.latency_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PropertiesResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_getter, &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_once, + file_level_metadata_component_2faudioinput_2fv1_2faudioinput_2eproto[6]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace audioinput +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::audioinput::v1::RecordRequest* +Arena::CreateMaybeMessage< ::viam::component::audioinput::v1::RecordRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::audioinput::v1::RecordRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::audioinput::v1::AudioChunkInfo* +Arena::CreateMaybeMessage< ::viam::component::audioinput::v1::AudioChunkInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::audioinput::v1::AudioChunkInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::audioinput::v1::AudioChunk* +Arena::CreateMaybeMessage< ::viam::component::audioinput::v1::AudioChunk >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::audioinput::v1::AudioChunk >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::audioinput::v1::ChunksRequest* +Arena::CreateMaybeMessage< ::viam::component::audioinput::v1::ChunksRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::audioinput::v1::ChunksRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::audioinput::v1::ChunksResponse* +Arena::CreateMaybeMessage< ::viam::component::audioinput::v1::ChunksResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::audioinput::v1::ChunksResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::audioinput::v1::PropertiesRequest* +Arena::CreateMaybeMessage< ::viam::component::audioinput::v1::PropertiesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::audioinput::v1::PropertiesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::audioinput::v1::PropertiesResponse* +Arena::CreateMaybeMessage< ::viam::component::audioinput::v1::PropertiesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::audioinput::v1::PropertiesResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/component/audioinput/v1/audioinput.pb.h b/src/gen/component/audioinput/v1/audioinput.pb.h new file mode 100644 index 000000000..5905045bd --- /dev/null +++ b/src/gen/component/audioinput/v1/audioinput.pb.h @@ -0,0 +1,2181 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/audioinput/v1/audioinput.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2faudioinput_2fv1_2faudioinput_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2faudioinput_2fv1_2faudioinput_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "google/api/annotations.pb.h" +#include "google/api/httpbody.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_component_2faudioinput_2fv1_2faudioinput_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto; +namespace viam { +namespace component { +namespace audioinput { +namespace v1 { +class AudioChunk; +struct AudioChunkDefaultTypeInternal; +extern AudioChunkDefaultTypeInternal _AudioChunk_default_instance_; +class AudioChunkInfo; +struct AudioChunkInfoDefaultTypeInternal; +extern AudioChunkInfoDefaultTypeInternal _AudioChunkInfo_default_instance_; +class ChunksRequest; +struct ChunksRequestDefaultTypeInternal; +extern ChunksRequestDefaultTypeInternal _ChunksRequest_default_instance_; +class ChunksResponse; +struct ChunksResponseDefaultTypeInternal; +extern ChunksResponseDefaultTypeInternal _ChunksResponse_default_instance_; +class PropertiesRequest; +struct PropertiesRequestDefaultTypeInternal; +extern PropertiesRequestDefaultTypeInternal _PropertiesRequest_default_instance_; +class PropertiesResponse; +struct PropertiesResponseDefaultTypeInternal; +extern PropertiesResponseDefaultTypeInternal _PropertiesResponse_default_instance_; +class RecordRequest; +struct RecordRequestDefaultTypeInternal; +extern RecordRequestDefaultTypeInternal _RecordRequest_default_instance_; +} // namespace v1 +} // namespace audioinput +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::audioinput::v1::AudioChunk* Arena::CreateMaybeMessage<::viam::component::audioinput::v1::AudioChunk>(Arena*); +template<> ::viam::component::audioinput::v1::AudioChunkInfo* Arena::CreateMaybeMessage<::viam::component::audioinput::v1::AudioChunkInfo>(Arena*); +template<> ::viam::component::audioinput::v1::ChunksRequest* Arena::CreateMaybeMessage<::viam::component::audioinput::v1::ChunksRequest>(Arena*); +template<> ::viam::component::audioinput::v1::ChunksResponse* Arena::CreateMaybeMessage<::viam::component::audioinput::v1::ChunksResponse>(Arena*); +template<> ::viam::component::audioinput::v1::PropertiesRequest* Arena::CreateMaybeMessage<::viam::component::audioinput::v1::PropertiesRequest>(Arena*); +template<> ::viam::component::audioinput::v1::PropertiesResponse* Arena::CreateMaybeMessage<::viam::component::audioinput::v1::PropertiesResponse>(Arena*); +template<> ::viam::component::audioinput::v1::RecordRequest* Arena::CreateMaybeMessage<::viam::component::audioinput::v1::RecordRequest>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace component { +namespace audioinput { +namespace v1 { + +enum SampleFormat : int { + SAMPLE_FORMAT_UNSPECIFIED = 0, + SAMPLE_FORMAT_INT16_INTERLEAVED = 1, + SAMPLE_FORMAT_FLOAT32_INTERLEAVED = 2, + SampleFormat_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + SampleFormat_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool SampleFormat_IsValid(int value); +constexpr SampleFormat SampleFormat_MIN = SAMPLE_FORMAT_UNSPECIFIED; +constexpr SampleFormat SampleFormat_MAX = SAMPLE_FORMAT_FLOAT32_INTERLEAVED; +constexpr int SampleFormat_ARRAYSIZE = SampleFormat_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SampleFormat_descriptor(); +template +inline const std::string& SampleFormat_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function SampleFormat_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + SampleFormat_descriptor(), enum_t_value); +} +inline bool SampleFormat_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SampleFormat* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + SampleFormat_descriptor(), name, value); +} +// =================================================================== + +class RecordRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.audioinput.v1.RecordRequest) */ { + public: + inline RecordRequest() : RecordRequest(nullptr) {} + ~RecordRequest() override; + explicit PROTOBUF_CONSTEXPR RecordRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RecordRequest(const RecordRequest& from); + RecordRequest(RecordRequest&& from) noexcept + : RecordRequest() { + *this = ::std::move(from); + } + + inline RecordRequest& operator=(const RecordRequest& from) { + CopyFrom(from); + return *this; + } + inline RecordRequest& operator=(RecordRequest&& 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 RecordRequest& default_instance() { + return *internal_default_instance(); + } + static inline const RecordRequest* internal_default_instance() { + return reinterpret_cast( + &_RecordRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(RecordRequest& a, RecordRequest& b) { + a.Swap(&b); + } + inline void Swap(RecordRequest* 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(RecordRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RecordRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RecordRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RecordRequest& from) { + RecordRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RecordRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.audioinput.v1.RecordRequest"; + } + protected: + explicit RecordRequest(::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, + kDurationFieldNumber = 2, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // .google.protobuf.Duration duration = 2 [json_name = "duration"]; + bool has_duration() const; + private: + bool _internal_has_duration() const; + public: + void clear_duration(); + const ::PROTOBUF_NAMESPACE_ID::Duration& duration() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_duration(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_duration(); + void set_allocated_duration(::PROTOBUF_NAMESPACE_ID::Duration* duration); + private: + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_duration() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_duration(); + public: + void unsafe_arena_set_allocated_duration( + ::PROTOBUF_NAMESPACE_ID::Duration* duration); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_duration(); + + // @@protoc_insertion_point(class_scope:viam.component.audioinput.v1.RecordRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Duration* duration_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto; +}; +// ------------------------------------------------------------------- + +class AudioChunkInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.audioinput.v1.AudioChunkInfo) */ { + public: + inline AudioChunkInfo() : AudioChunkInfo(nullptr) {} + ~AudioChunkInfo() override; + explicit PROTOBUF_CONSTEXPR AudioChunkInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AudioChunkInfo(const AudioChunkInfo& from); + AudioChunkInfo(AudioChunkInfo&& from) noexcept + : AudioChunkInfo() { + *this = ::std::move(from); + } + + inline AudioChunkInfo& operator=(const AudioChunkInfo& from) { + CopyFrom(from); + return *this; + } + inline AudioChunkInfo& operator=(AudioChunkInfo&& 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 AudioChunkInfo& default_instance() { + return *internal_default_instance(); + } + static inline const AudioChunkInfo* internal_default_instance() { + return reinterpret_cast( + &_AudioChunkInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(AudioChunkInfo& a, AudioChunkInfo& b) { + a.Swap(&b); + } + inline void Swap(AudioChunkInfo* 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(AudioChunkInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AudioChunkInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AudioChunkInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const AudioChunkInfo& from) { + AudioChunkInfo::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AudioChunkInfo* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.audioinput.v1.AudioChunkInfo"; + } + protected: + explicit AudioChunkInfo(::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 { + kSampleFormatFieldNumber = 1, + kChannelsFieldNumber = 2, + kSamplingRateFieldNumber = 3, + }; + // .viam.component.audioinput.v1.SampleFormat sample_format = 1 [json_name = "sampleFormat"]; + void clear_sample_format(); + ::viam::component::audioinput::v1::SampleFormat sample_format() const; + void set_sample_format(::viam::component::audioinput::v1::SampleFormat value); + private: + ::viam::component::audioinput::v1::SampleFormat _internal_sample_format() const; + void _internal_set_sample_format(::viam::component::audioinput::v1::SampleFormat value); + public: + + // uint32 channels = 2 [json_name = "channels"]; + void clear_channels(); + uint32_t channels() const; + void set_channels(uint32_t value); + private: + uint32_t _internal_channels() const; + void _internal_set_channels(uint32_t value); + public: + + // int64 sampling_rate = 3 [json_name = "samplingRate"]; + void clear_sampling_rate(); + int64_t sampling_rate() const; + void set_sampling_rate(int64_t value); + private: + int64_t _internal_sampling_rate() const; + void _internal_set_sampling_rate(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.audioinput.v1.AudioChunkInfo) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + int sample_format_; + uint32_t channels_; + int64_t sampling_rate_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto; +}; +// ------------------------------------------------------------------- + +class AudioChunk final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.audioinput.v1.AudioChunk) */ { + public: + inline AudioChunk() : AudioChunk(nullptr) {} + ~AudioChunk() override; + explicit PROTOBUF_CONSTEXPR AudioChunk(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AudioChunk(const AudioChunk& from); + AudioChunk(AudioChunk&& from) noexcept + : AudioChunk() { + *this = ::std::move(from); + } + + inline AudioChunk& operator=(const AudioChunk& from) { + CopyFrom(from); + return *this; + } + inline AudioChunk& operator=(AudioChunk&& 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 AudioChunk& default_instance() { + return *internal_default_instance(); + } + static inline const AudioChunk* internal_default_instance() { + return reinterpret_cast( + &_AudioChunk_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(AudioChunk& a, AudioChunk& b) { + a.Swap(&b); + } + inline void Swap(AudioChunk* 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(AudioChunk* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AudioChunk* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AudioChunk& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const AudioChunk& from) { + AudioChunk::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AudioChunk* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.audioinput.v1.AudioChunk"; + } + protected: + explicit AudioChunk(::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 { + kDataFieldNumber = 1, + kLengthFieldNumber = 2, + }; + // bytes data = 1 [json_name = "data"]; + void clear_data(); + const std::string& data() const; + template + void set_data(ArgT0&& arg0, ArgT... args); + std::string* mutable_data(); + PROTOBUF_NODISCARD std::string* release_data(); + void set_allocated_data(std::string* data); + private: + const std::string& _internal_data() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value); + std::string* _internal_mutable_data(); + public: + + // uint32 length = 2 [json_name = "length"]; + void clear_length(); + uint32_t length() const; + void set_length(uint32_t value); + private: + uint32_t _internal_length() const; + void _internal_set_length(uint32_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.audioinput.v1.AudioChunk) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_; + uint32_t length_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto; +}; +// ------------------------------------------------------------------- + +class ChunksRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.audioinput.v1.ChunksRequest) */ { + public: + inline ChunksRequest() : ChunksRequest(nullptr) {} + ~ChunksRequest() override; + explicit PROTOBUF_CONSTEXPR ChunksRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ChunksRequest(const ChunksRequest& from); + ChunksRequest(ChunksRequest&& from) noexcept + : ChunksRequest() { + *this = ::std::move(from); + } + + inline ChunksRequest& operator=(const ChunksRequest& from) { + CopyFrom(from); + return *this; + } + inline ChunksRequest& operator=(ChunksRequest&& 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 ChunksRequest& default_instance() { + return *internal_default_instance(); + } + static inline const ChunksRequest* internal_default_instance() { + return reinterpret_cast( + &_ChunksRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(ChunksRequest& a, ChunksRequest& b) { + a.Swap(&b); + } + inline void Swap(ChunksRequest* 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(ChunksRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ChunksRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ChunksRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ChunksRequest& from) { + ChunksRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ChunksRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.audioinput.v1.ChunksRequest"; + } + protected: + explicit ChunksRequest(::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, + kSampleFormatFieldNumber = 2, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // .viam.component.audioinput.v1.SampleFormat sample_format = 2 [json_name = "sampleFormat"]; + void clear_sample_format(); + ::viam::component::audioinput::v1::SampleFormat sample_format() const; + void set_sample_format(::viam::component::audioinput::v1::SampleFormat value); + private: + ::viam::component::audioinput::v1::SampleFormat _internal_sample_format() const; + void _internal_set_sample_format(::viam::component::audioinput::v1::SampleFormat value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.audioinput.v1.ChunksRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + int sample_format_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto; +}; +// ------------------------------------------------------------------- + +class ChunksResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.audioinput.v1.ChunksResponse) */ { + public: + inline ChunksResponse() : ChunksResponse(nullptr) {} + ~ChunksResponse() override; + explicit PROTOBUF_CONSTEXPR ChunksResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ChunksResponse(const ChunksResponse& from); + ChunksResponse(ChunksResponse&& from) noexcept + : ChunksResponse() { + *this = ::std::move(from); + } + + inline ChunksResponse& operator=(const ChunksResponse& from) { + CopyFrom(from); + return *this; + } + inline ChunksResponse& operator=(ChunksResponse&& 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 ChunksResponse& default_instance() { + return *internal_default_instance(); + } + enum TypeCase { + kInfo = 1, + kChunk = 2, + TYPE_NOT_SET = 0, + }; + + static inline const ChunksResponse* internal_default_instance() { + return reinterpret_cast( + &_ChunksResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(ChunksResponse& a, ChunksResponse& b) { + a.Swap(&b); + } + inline void Swap(ChunksResponse* 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(ChunksResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ChunksResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ChunksResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ChunksResponse& from) { + ChunksResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ChunksResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.audioinput.v1.ChunksResponse"; + } + protected: + explicit ChunksResponse(::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 { + kInfoFieldNumber = 1, + kChunkFieldNumber = 2, + }; + // .viam.component.audioinput.v1.AudioChunkInfo info = 1 [json_name = "info"]; + bool has_info() const; + private: + bool _internal_has_info() const; + public: + void clear_info(); + const ::viam::component::audioinput::v1::AudioChunkInfo& info() const; + PROTOBUF_NODISCARD ::viam::component::audioinput::v1::AudioChunkInfo* release_info(); + ::viam::component::audioinput::v1::AudioChunkInfo* mutable_info(); + void set_allocated_info(::viam::component::audioinput::v1::AudioChunkInfo* info); + private: + const ::viam::component::audioinput::v1::AudioChunkInfo& _internal_info() const; + ::viam::component::audioinput::v1::AudioChunkInfo* _internal_mutable_info(); + public: + void unsafe_arena_set_allocated_info( + ::viam::component::audioinput::v1::AudioChunkInfo* info); + ::viam::component::audioinput::v1::AudioChunkInfo* unsafe_arena_release_info(); + + // .viam.component.audioinput.v1.AudioChunk chunk = 2 [json_name = "chunk"]; + bool has_chunk() const; + private: + bool _internal_has_chunk() const; + public: + void clear_chunk(); + const ::viam::component::audioinput::v1::AudioChunk& chunk() const; + PROTOBUF_NODISCARD ::viam::component::audioinput::v1::AudioChunk* release_chunk(); + ::viam::component::audioinput::v1::AudioChunk* mutable_chunk(); + void set_allocated_chunk(::viam::component::audioinput::v1::AudioChunk* chunk); + private: + const ::viam::component::audioinput::v1::AudioChunk& _internal_chunk() const; + ::viam::component::audioinput::v1::AudioChunk* _internal_mutable_chunk(); + public: + void unsafe_arena_set_allocated_chunk( + ::viam::component::audioinput::v1::AudioChunk* chunk); + ::viam::component::audioinput::v1::AudioChunk* unsafe_arena_release_chunk(); + + void clear_type(); + TypeCase type_case() const; + // @@protoc_insertion_point(class_scope:viam.component.audioinput.v1.ChunksResponse) + private: + class _Internal; + void set_has_info(); + void set_has_chunk(); + + inline bool has_type() const; + inline void clear_has_type(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + union TypeUnion { + constexpr TypeUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::viam::component::audioinput::v1::AudioChunkInfo* info_; + ::viam::component::audioinput::v1::AudioChunk* chunk_; + } type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto; +}; +// ------------------------------------------------------------------- + +class PropertiesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.audioinput.v1.PropertiesRequest) */ { + public: + inline PropertiesRequest() : PropertiesRequest(nullptr) {} + ~PropertiesRequest() override; + explicit PROTOBUF_CONSTEXPR PropertiesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PropertiesRequest(const PropertiesRequest& from); + PropertiesRequest(PropertiesRequest&& from) noexcept + : PropertiesRequest() { + *this = ::std::move(from); + } + + inline PropertiesRequest& operator=(const PropertiesRequest& from) { + CopyFrom(from); + return *this; + } + inline PropertiesRequest& operator=(PropertiesRequest&& 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 PropertiesRequest& default_instance() { + return *internal_default_instance(); + } + static inline const PropertiesRequest* internal_default_instance() { + return reinterpret_cast( + &_PropertiesRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(PropertiesRequest& a, PropertiesRequest& b) { + a.Swap(&b); + } + inline void Swap(PropertiesRequest* 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(PropertiesRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PropertiesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PropertiesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const PropertiesRequest& from) { + PropertiesRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PropertiesRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.audioinput.v1.PropertiesRequest"; + } + protected: + explicit PropertiesRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.component.audioinput.v1.PropertiesRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto; +}; +// ------------------------------------------------------------------- + +class PropertiesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.audioinput.v1.PropertiesResponse) */ { + public: + inline PropertiesResponse() : PropertiesResponse(nullptr) {} + ~PropertiesResponse() override; + explicit PROTOBUF_CONSTEXPR PropertiesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PropertiesResponse(const PropertiesResponse& from); + PropertiesResponse(PropertiesResponse&& from) noexcept + : PropertiesResponse() { + *this = ::std::move(from); + } + + inline PropertiesResponse& operator=(const PropertiesResponse& from) { + CopyFrom(from); + return *this; + } + inline PropertiesResponse& operator=(PropertiesResponse&& 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 PropertiesResponse& default_instance() { + return *internal_default_instance(); + } + static inline const PropertiesResponse* internal_default_instance() { + return reinterpret_cast( + &_PropertiesResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(PropertiesResponse& a, PropertiesResponse& b) { + a.Swap(&b); + } + inline void Swap(PropertiesResponse* 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(PropertiesResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PropertiesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PropertiesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const PropertiesResponse& from) { + PropertiesResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PropertiesResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.audioinput.v1.PropertiesResponse"; + } + protected: + explicit PropertiesResponse(::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 { + kLatencyFieldNumber = 2, + kChannelCountFieldNumber = 1, + kSampleRateFieldNumber = 3, + kSampleSizeFieldNumber = 4, + kIsBigEndianFieldNumber = 5, + kIsFloatFieldNumber = 6, + kIsInterleavedFieldNumber = 7, + }; + // .google.protobuf.Duration latency = 2 [json_name = "latency"]; + bool has_latency() const; + private: + bool _internal_has_latency() const; + public: + void clear_latency(); + const ::PROTOBUF_NAMESPACE_ID::Duration& latency() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_latency(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_latency(); + void set_allocated_latency(::PROTOBUF_NAMESPACE_ID::Duration* latency); + private: + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_latency() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_latency(); + public: + void unsafe_arena_set_allocated_latency( + ::PROTOBUF_NAMESPACE_ID::Duration* latency); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_latency(); + + // uint32 channel_count = 1 [json_name = "channelCount"]; + void clear_channel_count(); + uint32_t channel_count() const; + void set_channel_count(uint32_t value); + private: + uint32_t _internal_channel_count() const; + void _internal_set_channel_count(uint32_t value); + public: + + // uint32 sample_rate = 3 [json_name = "sampleRate"]; + void clear_sample_rate(); + uint32_t sample_rate() const; + void set_sample_rate(uint32_t value); + private: + uint32_t _internal_sample_rate() const; + void _internal_set_sample_rate(uint32_t value); + public: + + // uint32 sample_size = 4 [json_name = "sampleSize"]; + void clear_sample_size(); + uint32_t sample_size() const; + void set_sample_size(uint32_t value); + private: + uint32_t _internal_sample_size() const; + void _internal_set_sample_size(uint32_t value); + public: + + // bool is_big_endian = 5 [json_name = "isBigEndian"]; + void clear_is_big_endian(); + bool is_big_endian() const; + void set_is_big_endian(bool value); + private: + bool _internal_is_big_endian() const; + void _internal_set_is_big_endian(bool value); + public: + + // bool is_float = 6 [json_name = "isFloat"]; + void clear_is_float(); + bool is_float() const; + void set_is_float(bool value); + private: + bool _internal_is_float() const; + void _internal_set_is_float(bool value); + public: + + // bool is_interleaved = 7 [json_name = "isInterleaved"]; + void clear_is_interleaved(); + bool is_interleaved() const; + void set_is_interleaved(bool value); + private: + bool _internal_is_interleaved() const; + void _internal_set_is_interleaved(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.audioinput.v1.PropertiesResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::Duration* latency_; + uint32_t channel_count_; + uint32_t sample_rate_; + uint32_t sample_size_; + bool is_big_endian_; + bool is_float_; + bool is_interleaved_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// RecordRequest + +// string name = 1 [json_name = "name"]; +inline void RecordRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& RecordRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.RecordRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RecordRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.RecordRequest.name) +} +inline std::string* RecordRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.audioinput.v1.RecordRequest.name) + return _s; +} +inline const std::string& RecordRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void RecordRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* RecordRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* RecordRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.audioinput.v1.RecordRequest.name) + return _impl_.name_.Release(); +} +inline void RecordRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.audioinput.v1.RecordRequest.name) +} + +// .google.protobuf.Duration duration = 2 [json_name = "duration"]; +inline bool RecordRequest::_internal_has_duration() const { + return this != internal_default_instance() && _impl_.duration_ != nullptr; +} +inline bool RecordRequest::has_duration() const { + return _internal_has_duration(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& RecordRequest::_internal_duration() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = _impl_.duration_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& RecordRequest::duration() const { + // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.RecordRequest.duration) + return _internal_duration(); +} +inline void RecordRequest::unsafe_arena_set_allocated_duration( + ::PROTOBUF_NAMESPACE_ID::Duration* duration) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.duration_); + } + _impl_.duration_ = duration; + if (duration) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.audioinput.v1.RecordRequest.duration) +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* RecordRequest::release_duration() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.duration_; + _impl_.duration_ = 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::Duration* RecordRequest::unsafe_arena_release_duration() { + // @@protoc_insertion_point(field_release:viam.component.audioinput.v1.RecordRequest.duration) + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.duration_; + _impl_.duration_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* RecordRequest::_internal_mutable_duration() { + + if (_impl_.duration_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + _impl_.duration_ = p; + } + return _impl_.duration_; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* RecordRequest::mutable_duration() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_duration(); + // @@protoc_insertion_point(field_mutable:viam.component.audioinput.v1.RecordRequest.duration) + return _msg; +} +inline void RecordRequest::set_allocated_duration(::PROTOBUF_NAMESPACE_ID::Duration* duration) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.duration_); + } + if (duration) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(duration)); + if (message_arena != submessage_arena) { + duration = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, duration, submessage_arena); + } + + } else { + + } + _impl_.duration_ = duration; + // @@protoc_insertion_point(field_set_allocated:viam.component.audioinput.v1.RecordRequest.duration) +} + +// ------------------------------------------------------------------- + +// AudioChunkInfo + +// .viam.component.audioinput.v1.SampleFormat sample_format = 1 [json_name = "sampleFormat"]; +inline void AudioChunkInfo::clear_sample_format() { + _impl_.sample_format_ = 0; +} +inline ::viam::component::audioinput::v1::SampleFormat AudioChunkInfo::_internal_sample_format() const { + return static_cast< ::viam::component::audioinput::v1::SampleFormat >(_impl_.sample_format_); +} +inline ::viam::component::audioinput::v1::SampleFormat AudioChunkInfo::sample_format() const { + // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.AudioChunkInfo.sample_format) + return _internal_sample_format(); +} +inline void AudioChunkInfo::_internal_set_sample_format(::viam::component::audioinput::v1::SampleFormat value) { + + _impl_.sample_format_ = value; +} +inline void AudioChunkInfo::set_sample_format(::viam::component::audioinput::v1::SampleFormat value) { + _internal_set_sample_format(value); + // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.AudioChunkInfo.sample_format) +} + +// uint32 channels = 2 [json_name = "channels"]; +inline void AudioChunkInfo::clear_channels() { + _impl_.channels_ = 0u; +} +inline uint32_t AudioChunkInfo::_internal_channels() const { + return _impl_.channels_; +} +inline uint32_t AudioChunkInfo::channels() const { + // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.AudioChunkInfo.channels) + return _internal_channels(); +} +inline void AudioChunkInfo::_internal_set_channels(uint32_t value) { + + _impl_.channels_ = value; +} +inline void AudioChunkInfo::set_channels(uint32_t value) { + _internal_set_channels(value); + // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.AudioChunkInfo.channels) +} + +// int64 sampling_rate = 3 [json_name = "samplingRate"]; +inline void AudioChunkInfo::clear_sampling_rate() { + _impl_.sampling_rate_ = int64_t{0}; +} +inline int64_t AudioChunkInfo::_internal_sampling_rate() const { + return _impl_.sampling_rate_; +} +inline int64_t AudioChunkInfo::sampling_rate() const { + // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.AudioChunkInfo.sampling_rate) + return _internal_sampling_rate(); +} +inline void AudioChunkInfo::_internal_set_sampling_rate(int64_t value) { + + _impl_.sampling_rate_ = value; +} +inline void AudioChunkInfo::set_sampling_rate(int64_t value) { + _internal_set_sampling_rate(value); + // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.AudioChunkInfo.sampling_rate) +} + +// ------------------------------------------------------------------- + +// AudioChunk + +// bytes data = 1 [json_name = "data"]; +inline void AudioChunk::clear_data() { + _impl_.data_.ClearToEmpty(); +} +inline const std::string& AudioChunk::data() const { + // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.AudioChunk.data) + return _internal_data(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AudioChunk::set_data(ArgT0&& arg0, ArgT... args) { + + _impl_.data_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.AudioChunk.data) +} +inline std::string* AudioChunk::mutable_data() { + std::string* _s = _internal_mutable_data(); + // @@protoc_insertion_point(field_mutable:viam.component.audioinput.v1.AudioChunk.data) + return _s; +} +inline const std::string& AudioChunk::_internal_data() const { + return _impl_.data_.Get(); +} +inline void AudioChunk::_internal_set_data(const std::string& value) { + + _impl_.data_.Set(value, GetArenaForAllocation()); +} +inline std::string* AudioChunk::_internal_mutable_data() { + + return _impl_.data_.Mutable(GetArenaForAllocation()); +} +inline std::string* AudioChunk::release_data() { + // @@protoc_insertion_point(field_release:viam.component.audioinput.v1.AudioChunk.data) + return _impl_.data_.Release(); +} +inline void AudioChunk::set_allocated_data(std::string* data) { + if (data != nullptr) { + + } else { + + } + _impl_.data_.SetAllocated(data, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.data_.IsDefault()) { + _impl_.data_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.audioinput.v1.AudioChunk.data) +} + +// uint32 length = 2 [json_name = "length"]; +inline void AudioChunk::clear_length() { + _impl_.length_ = 0u; +} +inline uint32_t AudioChunk::_internal_length() const { + return _impl_.length_; +} +inline uint32_t AudioChunk::length() const { + // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.AudioChunk.length) + return _internal_length(); +} +inline void AudioChunk::_internal_set_length(uint32_t value) { + + _impl_.length_ = value; +} +inline void AudioChunk::set_length(uint32_t value) { + _internal_set_length(value); + // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.AudioChunk.length) +} + +// ------------------------------------------------------------------- + +// ChunksRequest + +// string name = 1 [json_name = "name"]; +inline void ChunksRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& ChunksRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.ChunksRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ChunksRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.ChunksRequest.name) +} +inline std::string* ChunksRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.audioinput.v1.ChunksRequest.name) + return _s; +} +inline const std::string& ChunksRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void ChunksRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* ChunksRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* ChunksRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.audioinput.v1.ChunksRequest.name) + return _impl_.name_.Release(); +} +inline void ChunksRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.audioinput.v1.ChunksRequest.name) +} + +// .viam.component.audioinput.v1.SampleFormat sample_format = 2 [json_name = "sampleFormat"]; +inline void ChunksRequest::clear_sample_format() { + _impl_.sample_format_ = 0; +} +inline ::viam::component::audioinput::v1::SampleFormat ChunksRequest::_internal_sample_format() const { + return static_cast< ::viam::component::audioinput::v1::SampleFormat >(_impl_.sample_format_); +} +inline ::viam::component::audioinput::v1::SampleFormat ChunksRequest::sample_format() const { + // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.ChunksRequest.sample_format) + return _internal_sample_format(); +} +inline void ChunksRequest::_internal_set_sample_format(::viam::component::audioinput::v1::SampleFormat value) { + + _impl_.sample_format_ = value; +} +inline void ChunksRequest::set_sample_format(::viam::component::audioinput::v1::SampleFormat value) { + _internal_set_sample_format(value); + // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.ChunksRequest.sample_format) +} + +// ------------------------------------------------------------------- + +// ChunksResponse + +// .viam.component.audioinput.v1.AudioChunkInfo info = 1 [json_name = "info"]; +inline bool ChunksResponse::_internal_has_info() const { + return type_case() == kInfo; +} +inline bool ChunksResponse::has_info() const { + return _internal_has_info(); +} +inline void ChunksResponse::set_has_info() { + _impl_._oneof_case_[0] = kInfo; +} +inline void ChunksResponse::clear_info() { + if (_internal_has_info()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_.info_; + } + clear_has_type(); + } +} +inline ::viam::component::audioinput::v1::AudioChunkInfo* ChunksResponse::release_info() { + // @@protoc_insertion_point(field_release:viam.component.audioinput.v1.ChunksResponse.info) + if (_internal_has_info()) { + clear_has_type(); + ::viam::component::audioinput::v1::AudioChunkInfo* temp = _impl_.type_.info_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.type_.info_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::component::audioinput::v1::AudioChunkInfo& ChunksResponse::_internal_info() const { + return _internal_has_info() + ? *_impl_.type_.info_ + : reinterpret_cast< ::viam::component::audioinput::v1::AudioChunkInfo&>(::viam::component::audioinput::v1::_AudioChunkInfo_default_instance_); +} +inline const ::viam::component::audioinput::v1::AudioChunkInfo& ChunksResponse::info() const { + // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.ChunksResponse.info) + return _internal_info(); +} +inline ::viam::component::audioinput::v1::AudioChunkInfo* ChunksResponse::unsafe_arena_release_info() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.component.audioinput.v1.ChunksResponse.info) + if (_internal_has_info()) { + clear_has_type(); + ::viam::component::audioinput::v1::AudioChunkInfo* temp = _impl_.type_.info_; + _impl_.type_.info_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ChunksResponse::unsafe_arena_set_allocated_info(::viam::component::audioinput::v1::AudioChunkInfo* info) { + clear_type(); + if (info) { + set_has_info(); + _impl_.type_.info_ = info; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.audioinput.v1.ChunksResponse.info) +} +inline ::viam::component::audioinput::v1::AudioChunkInfo* ChunksResponse::_internal_mutable_info() { + if (!_internal_has_info()) { + clear_type(); + set_has_info(); + _impl_.type_.info_ = CreateMaybeMessage< ::viam::component::audioinput::v1::AudioChunkInfo >(GetArenaForAllocation()); + } + return _impl_.type_.info_; +} +inline ::viam::component::audioinput::v1::AudioChunkInfo* ChunksResponse::mutable_info() { + ::viam::component::audioinput::v1::AudioChunkInfo* _msg = _internal_mutable_info(); + // @@protoc_insertion_point(field_mutable:viam.component.audioinput.v1.ChunksResponse.info) + return _msg; +} + +// .viam.component.audioinput.v1.AudioChunk chunk = 2 [json_name = "chunk"]; +inline bool ChunksResponse::_internal_has_chunk() const { + return type_case() == kChunk; +} +inline bool ChunksResponse::has_chunk() const { + return _internal_has_chunk(); +} +inline void ChunksResponse::set_has_chunk() { + _impl_._oneof_case_[0] = kChunk; +} +inline void ChunksResponse::clear_chunk() { + if (_internal_has_chunk()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_.chunk_; + } + clear_has_type(); + } +} +inline ::viam::component::audioinput::v1::AudioChunk* ChunksResponse::release_chunk() { + // @@protoc_insertion_point(field_release:viam.component.audioinput.v1.ChunksResponse.chunk) + if (_internal_has_chunk()) { + clear_has_type(); + ::viam::component::audioinput::v1::AudioChunk* temp = _impl_.type_.chunk_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.type_.chunk_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::component::audioinput::v1::AudioChunk& ChunksResponse::_internal_chunk() const { + return _internal_has_chunk() + ? *_impl_.type_.chunk_ + : reinterpret_cast< ::viam::component::audioinput::v1::AudioChunk&>(::viam::component::audioinput::v1::_AudioChunk_default_instance_); +} +inline const ::viam::component::audioinput::v1::AudioChunk& ChunksResponse::chunk() const { + // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.ChunksResponse.chunk) + return _internal_chunk(); +} +inline ::viam::component::audioinput::v1::AudioChunk* ChunksResponse::unsafe_arena_release_chunk() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.component.audioinput.v1.ChunksResponse.chunk) + if (_internal_has_chunk()) { + clear_has_type(); + ::viam::component::audioinput::v1::AudioChunk* temp = _impl_.type_.chunk_; + _impl_.type_.chunk_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ChunksResponse::unsafe_arena_set_allocated_chunk(::viam::component::audioinput::v1::AudioChunk* chunk) { + clear_type(); + if (chunk) { + set_has_chunk(); + _impl_.type_.chunk_ = chunk; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.audioinput.v1.ChunksResponse.chunk) +} +inline ::viam::component::audioinput::v1::AudioChunk* ChunksResponse::_internal_mutable_chunk() { + if (!_internal_has_chunk()) { + clear_type(); + set_has_chunk(); + _impl_.type_.chunk_ = CreateMaybeMessage< ::viam::component::audioinput::v1::AudioChunk >(GetArenaForAllocation()); + } + return _impl_.type_.chunk_; +} +inline ::viam::component::audioinput::v1::AudioChunk* ChunksResponse::mutable_chunk() { + ::viam::component::audioinput::v1::AudioChunk* _msg = _internal_mutable_chunk(); + // @@protoc_insertion_point(field_mutable:viam.component.audioinput.v1.ChunksResponse.chunk) + return _msg; +} + +inline bool ChunksResponse::has_type() const { + return type_case() != TYPE_NOT_SET; +} +inline void ChunksResponse::clear_has_type() { + _impl_._oneof_case_[0] = TYPE_NOT_SET; +} +inline ChunksResponse::TypeCase ChunksResponse::type_case() const { + return ChunksResponse::TypeCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// PropertiesRequest + +// string name = 1 [json_name = "name"]; +inline void PropertiesRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& PropertiesRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.PropertiesRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PropertiesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.PropertiesRequest.name) +} +inline std::string* PropertiesRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.audioinput.v1.PropertiesRequest.name) + return _s; +} +inline const std::string& PropertiesRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void PropertiesRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* PropertiesRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* PropertiesRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.audioinput.v1.PropertiesRequest.name) + return _impl_.name_.Release(); +} +inline void PropertiesRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.audioinput.v1.PropertiesRequest.name) +} + +// ------------------------------------------------------------------- + +// PropertiesResponse + +// uint32 channel_count = 1 [json_name = "channelCount"]; +inline void PropertiesResponse::clear_channel_count() { + _impl_.channel_count_ = 0u; +} +inline uint32_t PropertiesResponse::_internal_channel_count() const { + return _impl_.channel_count_; +} +inline uint32_t PropertiesResponse::channel_count() const { + // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.PropertiesResponse.channel_count) + return _internal_channel_count(); +} +inline void PropertiesResponse::_internal_set_channel_count(uint32_t value) { + + _impl_.channel_count_ = value; +} +inline void PropertiesResponse::set_channel_count(uint32_t value) { + _internal_set_channel_count(value); + // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.PropertiesResponse.channel_count) +} + +// .google.protobuf.Duration latency = 2 [json_name = "latency"]; +inline bool PropertiesResponse::_internal_has_latency() const { + return this != internal_default_instance() && _impl_.latency_ != nullptr; +} +inline bool PropertiesResponse::has_latency() const { + return _internal_has_latency(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& PropertiesResponse::_internal_latency() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = _impl_.latency_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& PropertiesResponse::latency() const { + // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.PropertiesResponse.latency) + return _internal_latency(); +} +inline void PropertiesResponse::unsafe_arena_set_allocated_latency( + ::PROTOBUF_NAMESPACE_ID::Duration* latency) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.latency_); + } + _impl_.latency_ = latency; + if (latency) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.audioinput.v1.PropertiesResponse.latency) +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* PropertiesResponse::release_latency() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.latency_; + _impl_.latency_ = 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::Duration* PropertiesResponse::unsafe_arena_release_latency() { + // @@protoc_insertion_point(field_release:viam.component.audioinput.v1.PropertiesResponse.latency) + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.latency_; + _impl_.latency_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* PropertiesResponse::_internal_mutable_latency() { + + if (_impl_.latency_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + _impl_.latency_ = p; + } + return _impl_.latency_; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* PropertiesResponse::mutable_latency() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_latency(); + // @@protoc_insertion_point(field_mutable:viam.component.audioinput.v1.PropertiesResponse.latency) + return _msg; +} +inline void PropertiesResponse::set_allocated_latency(::PROTOBUF_NAMESPACE_ID::Duration* latency) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.latency_); + } + if (latency) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(latency)); + if (message_arena != submessage_arena) { + latency = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, latency, submessage_arena); + } + + } else { + + } + _impl_.latency_ = latency; + // @@protoc_insertion_point(field_set_allocated:viam.component.audioinput.v1.PropertiesResponse.latency) +} + +// uint32 sample_rate = 3 [json_name = "sampleRate"]; +inline void PropertiesResponse::clear_sample_rate() { + _impl_.sample_rate_ = 0u; +} +inline uint32_t PropertiesResponse::_internal_sample_rate() const { + return _impl_.sample_rate_; +} +inline uint32_t PropertiesResponse::sample_rate() const { + // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.PropertiesResponse.sample_rate) + return _internal_sample_rate(); +} +inline void PropertiesResponse::_internal_set_sample_rate(uint32_t value) { + + _impl_.sample_rate_ = value; +} +inline void PropertiesResponse::set_sample_rate(uint32_t value) { + _internal_set_sample_rate(value); + // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.PropertiesResponse.sample_rate) +} + +// uint32 sample_size = 4 [json_name = "sampleSize"]; +inline void PropertiesResponse::clear_sample_size() { + _impl_.sample_size_ = 0u; +} +inline uint32_t PropertiesResponse::_internal_sample_size() const { + return _impl_.sample_size_; +} +inline uint32_t PropertiesResponse::sample_size() const { + // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.PropertiesResponse.sample_size) + return _internal_sample_size(); +} +inline void PropertiesResponse::_internal_set_sample_size(uint32_t value) { + + _impl_.sample_size_ = value; +} +inline void PropertiesResponse::set_sample_size(uint32_t value) { + _internal_set_sample_size(value); + // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.PropertiesResponse.sample_size) +} + +// bool is_big_endian = 5 [json_name = "isBigEndian"]; +inline void PropertiesResponse::clear_is_big_endian() { + _impl_.is_big_endian_ = false; +} +inline bool PropertiesResponse::_internal_is_big_endian() const { + return _impl_.is_big_endian_; +} +inline bool PropertiesResponse::is_big_endian() const { + // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.PropertiesResponse.is_big_endian) + return _internal_is_big_endian(); +} +inline void PropertiesResponse::_internal_set_is_big_endian(bool value) { + + _impl_.is_big_endian_ = value; +} +inline void PropertiesResponse::set_is_big_endian(bool value) { + _internal_set_is_big_endian(value); + // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.PropertiesResponse.is_big_endian) +} + +// bool is_float = 6 [json_name = "isFloat"]; +inline void PropertiesResponse::clear_is_float() { + _impl_.is_float_ = false; +} +inline bool PropertiesResponse::_internal_is_float() const { + return _impl_.is_float_; +} +inline bool PropertiesResponse::is_float() const { + // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.PropertiesResponse.is_float) + return _internal_is_float(); +} +inline void PropertiesResponse::_internal_set_is_float(bool value) { + + _impl_.is_float_ = value; +} +inline void PropertiesResponse::set_is_float(bool value) { + _internal_set_is_float(value); + // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.PropertiesResponse.is_float) +} + +// bool is_interleaved = 7 [json_name = "isInterleaved"]; +inline void PropertiesResponse::clear_is_interleaved() { + _impl_.is_interleaved_ = false; +} +inline bool PropertiesResponse::_internal_is_interleaved() const { + return _impl_.is_interleaved_; +} +inline bool PropertiesResponse::is_interleaved() const { + // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.PropertiesResponse.is_interleaved) + return _internal_is_interleaved(); +} +inline void PropertiesResponse::_internal_set_is_interleaved(bool value) { + + _impl_.is_interleaved_ = value; +} +inline void PropertiesResponse::set_is_interleaved(bool value) { + _internal_set_is_interleaved(value); + // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.PropertiesResponse.is_interleaved) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace audioinput +} // namespace component +} // namespace viam + +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::viam::component::audioinput::v1::SampleFormat> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::viam::component::audioinput::v1::SampleFormat>() { + return ::viam::component::audioinput::v1::SampleFormat_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2faudioinput_2fv1_2faudioinput_2eproto diff --git a/src/gen/component/base/v1/base.grpc.pb.cc b/src/gen/component/base/v1/base.grpc.pb.cc new file mode 100644 index 000000000..a01ca5386 --- /dev/null +++ b/src/gen/component/base/v1/base.grpc.pb.cc @@ -0,0 +1,260 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/base/v1/base.proto + +#include "component/base/v1/base.pb.h" +#include "component/base/v1/base.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace component { +namespace base { +namespace v1 { + +static const char* BaseService_method_names[] = { + "/viam.component.base.v1.BaseService/MoveStraight", + "/viam.component.base.v1.BaseService/Spin", + "/viam.component.base.v1.BaseService/SetPower", + "/viam.component.base.v1.BaseService/SetVelocity", + "/viam.component.base.v1.BaseService/Stop", +}; + +std::unique_ptr< BaseService::Stub> BaseService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< BaseService::Stub> stub(new BaseService::Stub(channel, options)); + return stub; +} + +BaseService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_MoveStraight_(BaseService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Spin_(BaseService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SetPower_(BaseService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SetVelocity_(BaseService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Stop_(BaseService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status BaseService::Stub::MoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::viam::component::base::v1::MoveStraightResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::base::v1::MoveStraightRequest, ::viam::component::base::v1::MoveStraightResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MoveStraight_, context, request, response); +} + +void BaseService::Stub::async::MoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest* request, ::viam::component::base::v1::MoveStraightResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::base::v1::MoveStraightRequest, ::viam::component::base::v1::MoveStraightResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveStraight_, context, request, response, std::move(f)); +} + +void BaseService::Stub::async::MoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest* request, ::viam::component::base::v1::MoveStraightResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveStraight_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::MoveStraightResponse>* BaseService::Stub::PrepareAsyncMoveStraightRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::base::v1::MoveStraightResponse, ::viam::component::base::v1::MoveStraightRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MoveStraight_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::MoveStraightResponse>* BaseService::Stub::AsyncMoveStraightRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncMoveStraightRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status BaseService::Stub::Spin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest& request, ::viam::component::base::v1::SpinResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::base::v1::SpinRequest, ::viam::component::base::v1::SpinResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Spin_, context, request, response); +} + +void BaseService::Stub::async::Spin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest* request, ::viam::component::base::v1::SpinResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::base::v1::SpinRequest, ::viam::component::base::v1::SpinResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Spin_, context, request, response, std::move(f)); +} + +void BaseService::Stub::async::Spin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest* request, ::viam::component::base::v1::SpinResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Spin_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SpinResponse>* BaseService::Stub::PrepareAsyncSpinRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::base::v1::SpinResponse, ::viam::component::base::v1::SpinRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Spin_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SpinResponse>* BaseService::Stub::AsyncSpinRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncSpinRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status BaseService::Stub::SetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest& request, ::viam::component::base::v1::SetPowerResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::base::v1::SetPowerRequest, ::viam::component::base::v1::SetPowerResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetPower_, context, request, response); +} + +void BaseService::Stub::async::SetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest* request, ::viam::component::base::v1::SetPowerResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::base::v1::SetPowerRequest, ::viam::component::base::v1::SetPowerResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPower_, context, request, response, std::move(f)); +} + +void BaseService::Stub::async::SetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest* request, ::viam::component::base::v1::SetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPower_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetPowerResponse>* BaseService::Stub::PrepareAsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::base::v1::SetPowerResponse, ::viam::component::base::v1::SetPowerRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetPower_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetPowerResponse>* BaseService::Stub::AsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncSetPowerRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status BaseService::Stub::SetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest& request, ::viam::component::base::v1::SetVelocityResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::base::v1::SetVelocityRequest, ::viam::component::base::v1::SetVelocityResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetVelocity_, context, request, response); +} + +void BaseService::Stub::async::SetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest* request, ::viam::component::base::v1::SetVelocityResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::base::v1::SetVelocityRequest, ::viam::component::base::v1::SetVelocityResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetVelocity_, context, request, response, std::move(f)); +} + +void BaseService::Stub::async::SetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest* request, ::viam::component::base::v1::SetVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetVelocity_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetVelocityResponse>* BaseService::Stub::PrepareAsyncSetVelocityRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::base::v1::SetVelocityResponse, ::viam::component::base::v1::SetVelocityRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetVelocity_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetVelocityResponse>* BaseService::Stub::AsyncSetVelocityRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncSetVelocityRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status BaseService::Stub::Stop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest& request, ::viam::component::base::v1::StopResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::base::v1::StopRequest, ::viam::component::base::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Stop_, context, request, response); +} + +void BaseService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest* request, ::viam::component::base::v1::StopResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::base::v1::StopRequest, ::viam::component::base::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); +} + +void BaseService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest* request, ::viam::component::base::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::StopResponse>* BaseService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::base::v1::StopResponse, ::viam::component::base::v1::StopRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Stop_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::StopResponse>* BaseService::Stub::AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncStopRaw(context, request, cq); + result->StartCall(); + return result; +} + +BaseService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + BaseService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::component::base::v1::MoveStraightRequest, ::viam::component::base::v1::MoveStraightResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](BaseService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::base::v1::MoveStraightRequest* req, + ::viam::component::base::v1::MoveStraightResponse* resp) { + return service->MoveStraight(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + BaseService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::component::base::v1::SpinRequest, ::viam::component::base::v1::SpinResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](BaseService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::base::v1::SpinRequest* req, + ::viam::component::base::v1::SpinResponse* resp) { + return service->Spin(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + BaseService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::component::base::v1::SetPowerRequest, ::viam::component::base::v1::SetPowerResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](BaseService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::base::v1::SetPowerRequest* req, + ::viam::component::base::v1::SetPowerResponse* resp) { + return service->SetPower(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + BaseService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::component::base::v1::SetVelocityRequest, ::viam::component::base::v1::SetVelocityResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](BaseService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::base::v1::SetVelocityRequest* req, + ::viam::component::base::v1::SetVelocityResponse* resp) { + return service->SetVelocity(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + BaseService_method_names[4], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::component::base::v1::StopRequest, ::viam::component::base::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](BaseService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::base::v1::StopRequest* req, + ::viam::component::base::v1::StopResponse* resp) { + return service->Stop(ctx, req, resp); + }, this))); +} + +BaseService::Service::~Service() { +} + +::grpc::Status BaseService::Service::MoveStraight(::grpc::ServerContext* context, const ::viam::component::base::v1::MoveStraightRequest* request, ::viam::component::base::v1::MoveStraightResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status BaseService::Service::Spin(::grpc::ServerContext* context, const ::viam::component::base::v1::SpinRequest* request, ::viam::component::base::v1::SpinResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status BaseService::Service::SetPower(::grpc::ServerContext* context, const ::viam::component::base::v1::SetPowerRequest* request, ::viam::component::base::v1::SetPowerResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status BaseService::Service::SetVelocity(::grpc::ServerContext* context, const ::viam::component::base::v1::SetVelocityRequest* request, ::viam::component::base::v1::SetVelocityResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status BaseService::Service::Stop(::grpc::ServerContext* context, const ::viam::component::base::v1::StopRequest* request, ::viam::component::base::v1::StopResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace component +} // namespace base +} // namespace v1 + diff --git a/src/gen/component/base/v1/base.grpc.pb.h b/src/gen/component/base/v1/base.grpc.pb.h new file mode 100644 index 000000000..e8c316b68 --- /dev/null +++ b/src/gen/component/base/v1/base.grpc.pb.h @@ -0,0 +1,904 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/base/v1/base.proto +#ifndef GRPC_component_2fbase_2fv1_2fbase_2eproto__INCLUDED +#define GRPC_component_2fbase_2fv1_2fbase_2eproto__INCLUDED + +#include "component/base/v1/base.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace component { +namespace base { +namespace v1 { + +class BaseService final { + public: + static constexpr char const* service_full_name() { + return "viam.component.base.v1.BaseService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // MoveStraight moves a robot's base in a straight line by a given distance, expressed in millimeters + // and a given speed, expressed in millimeters per second + // This method blocks until completed or cancelled + virtual ::grpc::Status MoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::viam::component::base::v1::MoveStraightResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::MoveStraightResponse>> AsyncMoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::MoveStraightResponse>>(AsyncMoveStraightRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::MoveStraightResponse>> PrepareAsyncMoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::MoveStraightResponse>>(PrepareAsyncMoveStraightRaw(context, request, cq)); + } + // Spin spins a robot's base by an given angle, expressed in degrees, and a given + // angular speed, expressed in degrees per second + // This method blocks until completed or cancelled + virtual ::grpc::Status Spin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest& request, ::viam::component::base::v1::SpinResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::SpinResponse>> AsyncSpin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::SpinResponse>>(AsyncSpinRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::SpinResponse>> PrepareAsyncSpin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::SpinResponse>>(PrepareAsyncSpinRaw(context, request, cq)); + } + // SetPower sets the linear and angular power of a base + // -1 -> 1 in terms of power for each direction + virtual ::grpc::Status SetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest& request, ::viam::component::base::v1::SetPowerResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::SetPowerResponse>> AsyncSetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::SetPowerResponse>>(AsyncSetPowerRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::SetPowerResponse>> PrepareAsyncSetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::SetPowerResponse>>(PrepareAsyncSetPowerRaw(context, request, cq)); + } + // SetVelocity sets the linear and angular velocity of a base + virtual ::grpc::Status SetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest& request, ::viam::component::base::v1::SetVelocityResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::SetVelocityResponse>> AsyncSetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::SetVelocityResponse>>(AsyncSetVelocityRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::SetVelocityResponse>> PrepareAsyncSetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::SetVelocityResponse>>(PrepareAsyncSetVelocityRaw(context, request, cq)); + } + // Stop stops a robot's base + virtual ::grpc::Status Stop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest& request, ::viam::component::base::v1::StopResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::StopResponse>> AsyncStop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::StopResponse>>(AsyncStopRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::StopResponse>> PrepareAsyncStop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::StopResponse>>(PrepareAsyncStopRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // MoveStraight moves a robot's base in a straight line by a given distance, expressed in millimeters + // and a given speed, expressed in millimeters per second + // This method blocks until completed or cancelled + virtual void MoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest* request, ::viam::component::base::v1::MoveStraightResponse* response, std::function) = 0; + virtual void MoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest* request, ::viam::component::base::v1::MoveStraightResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Spin spins a robot's base by an given angle, expressed in degrees, and a given + // angular speed, expressed in degrees per second + // This method blocks until completed or cancelled + virtual void Spin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest* request, ::viam::component::base::v1::SpinResponse* response, std::function) = 0; + virtual void Spin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest* request, ::viam::component::base::v1::SpinResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // SetPower sets the linear and angular power of a base + // -1 -> 1 in terms of power for each direction + virtual void SetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest* request, ::viam::component::base::v1::SetPowerResponse* response, std::function) = 0; + virtual void SetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest* request, ::viam::component::base::v1::SetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // SetVelocity sets the linear and angular velocity of a base + virtual void SetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest* request, ::viam::component::base::v1::SetVelocityResponse* response, std::function) = 0; + virtual void SetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest* request, ::viam::component::base::v1::SetVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Stop stops a robot's base + virtual void Stop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest* request, ::viam::component::base::v1::StopResponse* response, std::function) = 0; + virtual void Stop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest* request, ::viam::component::base::v1::StopResponse* 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::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::MoveStraightResponse>* AsyncMoveStraightRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::MoveStraightResponse>* PrepareAsyncMoveStraightRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::SpinResponse>* AsyncSpinRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::SpinResponse>* PrepareAsyncSpinRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::SetPowerResponse>* AsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::SetPowerResponse>* PrepareAsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::SetVelocityResponse>* AsyncSetVelocityRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::SetVelocityResponse>* PrepareAsyncSetVelocityRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::StopResponse>* AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::StopResponse>* PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest& 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()); + ::grpc::Status MoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::viam::component::base::v1::MoveStraightResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::MoveStraightResponse>> AsyncMoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::MoveStraightResponse>>(AsyncMoveStraightRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::MoveStraightResponse>> PrepareAsyncMoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::MoveStraightResponse>>(PrepareAsyncMoveStraightRaw(context, request, cq)); + } + ::grpc::Status Spin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest& request, ::viam::component::base::v1::SpinResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SpinResponse>> AsyncSpin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SpinResponse>>(AsyncSpinRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SpinResponse>> PrepareAsyncSpin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SpinResponse>>(PrepareAsyncSpinRaw(context, request, cq)); + } + ::grpc::Status SetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest& request, ::viam::component::base::v1::SetPowerResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetPowerResponse>> AsyncSetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetPowerResponse>>(AsyncSetPowerRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetPowerResponse>> PrepareAsyncSetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetPowerResponse>>(PrepareAsyncSetPowerRaw(context, request, cq)); + } + ::grpc::Status SetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest& request, ::viam::component::base::v1::SetVelocityResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetVelocityResponse>> AsyncSetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetVelocityResponse>>(AsyncSetVelocityRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetVelocityResponse>> PrepareAsyncSetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetVelocityResponse>>(PrepareAsyncSetVelocityRaw(context, request, cq)); + } + ::grpc::Status Stop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest& request, ::viam::component::base::v1::StopResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::StopResponse>> AsyncStop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::StopResponse>>(AsyncStopRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::StopResponse>> PrepareAsyncStop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::StopResponse>>(PrepareAsyncStopRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void MoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest* request, ::viam::component::base::v1::MoveStraightResponse* response, std::function) override; + void MoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest* request, ::viam::component::base::v1::MoveStraightResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void Spin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest* request, ::viam::component::base::v1::SpinResponse* response, std::function) override; + void Spin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest* request, ::viam::component::base::v1::SpinResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void SetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest* request, ::viam::component::base::v1::SetPowerResponse* response, std::function) override; + void SetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest* request, ::viam::component::base::v1::SetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void SetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest* request, ::viam::component::base::v1::SetVelocityResponse* response, std::function) override; + void SetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest* request, ::viam::component::base::v1::SetVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void Stop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest* request, ::viam::component::base::v1::StopResponse* response, std::function) override; + void Stop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest* request, ::viam::component::base::v1::StopResponse* 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::ClientAsyncResponseReader< ::viam::component::base::v1::MoveStraightResponse>* AsyncMoveStraightRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::MoveStraightResponse>* PrepareAsyncMoveStraightRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SpinResponse>* AsyncSpinRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SpinResponse>* PrepareAsyncSpinRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetPowerResponse>* AsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetPowerResponse>* PrepareAsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetVelocityResponse>* AsyncSetVelocityRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetVelocityResponse>* PrepareAsyncSetVelocityRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::StopResponse>* AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::StopResponse>* PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_MoveStraight_; + const ::grpc::internal::RpcMethod rpcmethod_Spin_; + const ::grpc::internal::RpcMethod rpcmethod_SetPower_; + const ::grpc::internal::RpcMethod rpcmethod_SetVelocity_; + const ::grpc::internal::RpcMethod rpcmethod_Stop_; + }; + 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(); + // MoveStraight moves a robot's base in a straight line by a given distance, expressed in millimeters + // and a given speed, expressed in millimeters per second + // This method blocks until completed or cancelled + virtual ::grpc::Status MoveStraight(::grpc::ServerContext* context, const ::viam::component::base::v1::MoveStraightRequest* request, ::viam::component::base::v1::MoveStraightResponse* response); + // Spin spins a robot's base by an given angle, expressed in degrees, and a given + // angular speed, expressed in degrees per second + // This method blocks until completed or cancelled + virtual ::grpc::Status Spin(::grpc::ServerContext* context, const ::viam::component::base::v1::SpinRequest* request, ::viam::component::base::v1::SpinResponse* response); + // SetPower sets the linear and angular power of a base + // -1 -> 1 in terms of power for each direction + virtual ::grpc::Status SetPower(::grpc::ServerContext* context, const ::viam::component::base::v1::SetPowerRequest* request, ::viam::component::base::v1::SetPowerResponse* response); + // SetVelocity sets the linear and angular velocity of a base + virtual ::grpc::Status SetVelocity(::grpc::ServerContext* context, const ::viam::component::base::v1::SetVelocityRequest* request, ::viam::component::base::v1::SetVelocityResponse* response); + // Stop stops a robot's base + virtual ::grpc::Status Stop(::grpc::ServerContext* context, const ::viam::component::base::v1::StopRequest* request, ::viam::component::base::v1::StopResponse* response); + }; + template + class WithAsyncMethod_MoveStraight : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_MoveStraight() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_MoveStraight() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveStraight(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::MoveStraightRequest* /*request*/, ::viam::component::base::v1::MoveStraightResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestMoveStraight(::grpc::ServerContext* context, ::viam::component::base::v1::MoveStraightRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::base::v1::MoveStraightResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_Spin : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Spin() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_Spin() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Spin(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::SpinRequest* /*request*/, ::viam::component::base::v1::SpinResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSpin(::grpc::ServerContext* context, ::viam::component::base::v1::SpinRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::base::v1::SpinResponse>* 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 WithAsyncMethod_SetPower : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_SetPower() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_SetPower() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPower(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::SetPowerRequest* /*request*/, ::viam::component::base::v1::SetPowerResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetPower(::grpc::ServerContext* context, ::viam::component::base::v1::SetPowerRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::base::v1::SetPowerResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_SetVelocity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_SetVelocity() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_SetVelocity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetVelocity(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::SetVelocityRequest* /*request*/, ::viam::component::base::v1::SetVelocityResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetVelocity(::grpc::ServerContext* context, ::viam::component::base::v1::SetVelocityRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::base::v1::SetVelocityResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Stop() { + ::grpc::Service::MarkMethodAsync(4); + } + ~WithAsyncMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::StopRequest* /*request*/, ::viam::component::base::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestStop(::grpc::ServerContext* context, ::viam::component::base::v1::StopRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::base::v1::StopResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_MoveStraight > > > > AsyncService; + template + class WithCallbackMethod_MoveStraight : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_MoveStraight() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::MoveStraightRequest, ::viam::component::base::v1::MoveStraightResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::base::v1::MoveStraightRequest* request, ::viam::component::base::v1::MoveStraightResponse* response) { return this->MoveStraight(context, request, response); }));} + void SetMessageAllocatorFor_MoveStraight( + ::grpc::MessageAllocator< ::viam::component::base::v1::MoveStraightRequest, ::viam::component::base::v1::MoveStraightResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::MoveStraightRequest, ::viam::component::base::v1::MoveStraightResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_MoveStraight() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveStraight(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::MoveStraightRequest* /*request*/, ::viam::component::base::v1::MoveStraightResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* MoveStraight( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::base::v1::MoveStraightRequest* /*request*/, ::viam::component::base::v1::MoveStraightResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_Spin : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Spin() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::SpinRequest, ::viam::component::base::v1::SpinResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::base::v1::SpinRequest* request, ::viam::component::base::v1::SpinResponse* response) { return this->Spin(context, request, response); }));} + void SetMessageAllocatorFor_Spin( + ::grpc::MessageAllocator< ::viam::component::base::v1::SpinRequest, ::viam::component::base::v1::SpinResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::SpinRequest, ::viam::component::base::v1::SpinResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Spin() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Spin(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::SpinRequest* /*request*/, ::viam::component::base::v1::SpinResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Spin( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::base::v1::SpinRequest* /*request*/, ::viam::component::base::v1::SpinResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_SetPower : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_SetPower() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::SetPowerRequest, ::viam::component::base::v1::SetPowerResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::base::v1::SetPowerRequest* request, ::viam::component::base::v1::SetPowerResponse* response) { return this->SetPower(context, request, response); }));} + void SetMessageAllocatorFor_SetPower( + ::grpc::MessageAllocator< ::viam::component::base::v1::SetPowerRequest, ::viam::component::base::v1::SetPowerResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::SetPowerRequest, ::viam::component::base::v1::SetPowerResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_SetPower() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPower(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::SetPowerRequest* /*request*/, ::viam::component::base::v1::SetPowerResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SetPower( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::base::v1::SetPowerRequest* /*request*/, ::viam::component::base::v1::SetPowerResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_SetVelocity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_SetVelocity() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::SetVelocityRequest, ::viam::component::base::v1::SetVelocityResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::base::v1::SetVelocityRequest* request, ::viam::component::base::v1::SetVelocityResponse* response) { return this->SetVelocity(context, request, response); }));} + void SetMessageAllocatorFor_SetVelocity( + ::grpc::MessageAllocator< ::viam::component::base::v1::SetVelocityRequest, ::viam::component::base::v1::SetVelocityResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::SetVelocityRequest, ::viam::component::base::v1::SetVelocityResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_SetVelocity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetVelocity(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::SetVelocityRequest* /*request*/, ::viam::component::base::v1::SetVelocityResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SetVelocity( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::base::v1::SetVelocityRequest* /*request*/, ::viam::component::base::v1::SetVelocityResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Stop() { + ::grpc::Service::MarkMethodCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::StopRequest, ::viam::component::base::v1::StopResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::base::v1::StopRequest* request, ::viam::component::base::v1::StopResponse* response) { return this->Stop(context, request, response); }));} + void SetMessageAllocatorFor_Stop( + ::grpc::MessageAllocator< ::viam::component::base::v1::StopRequest, ::viam::component::base::v1::StopResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::StopRequest, ::viam::component::base::v1::StopResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::StopRequest* /*request*/, ::viam::component::base::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Stop( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::base::v1::StopRequest* /*request*/, ::viam::component::base::v1::StopResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_MoveStraight > > > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_MoveStraight : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_MoveStraight() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_MoveStraight() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveStraight(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::MoveStraightRequest* /*request*/, ::viam::component::base::v1::MoveStraightResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_Spin : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Spin() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_Spin() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Spin(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::SpinRequest* /*request*/, ::viam::component::base::v1::SpinResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_SetPower : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_SetPower() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_SetPower() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPower(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::SetPowerRequest* /*request*/, ::viam::component::base::v1::SetPowerResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_SetVelocity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_SetVelocity() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_SetVelocity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetVelocity(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::SetVelocityRequest* /*request*/, ::viam::component::base::v1::SetVelocityResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Stop() { + ::grpc::Service::MarkMethodGeneric(4); + } + ~WithGenericMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::StopRequest* /*request*/, ::viam::component::base::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_MoveStraight : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_MoveStraight() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_MoveStraight() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveStraight(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::MoveStraightRequest* /*request*/, ::viam::component::base::v1::MoveStraightResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestMoveStraight(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_Spin : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Spin() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_Spin() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Spin(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::SpinRequest* /*request*/, ::viam::component::base::v1::SpinResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSpin(::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 WithRawMethod_SetPower : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_SetPower() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_SetPower() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPower(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::SetPowerRequest* /*request*/, ::viam::component::base::v1::SetPowerResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetPower(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_SetVelocity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_SetVelocity() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_SetVelocity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetVelocity(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::SetVelocityRequest* /*request*/, ::viam::component::base::v1::SetVelocityResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetVelocity(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Stop() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::StopRequest* /*request*/, ::viam::component::base::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestStop(::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(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_MoveStraight : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_MoveStraight() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MoveStraight(context, request, response); })); + } + ~WithRawCallbackMethod_MoveStraight() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveStraight(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::MoveStraightRequest* /*request*/, ::viam::component::base::v1::MoveStraightResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* MoveStraight( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_Spin : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Spin() { + ::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->Spin(context, request, response); })); + } + ~WithRawCallbackMethod_Spin() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Spin(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::SpinRequest* /*request*/, ::viam::component::base::v1::SpinResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Spin( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_SetPower : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_SetPower() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetPower(context, request, response); })); + } + ~WithRawCallbackMethod_SetPower() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPower(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::SetPowerRequest* /*request*/, ::viam::component::base::v1::SetPowerResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SetPower( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_SetVelocity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_SetVelocity() { + ::grpc::Service::MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetVelocity(context, request, response); })); + } + ~WithRawCallbackMethod_SetVelocity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetVelocity(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::SetVelocityRequest* /*request*/, ::viam::component::base::v1::SetVelocityResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SetVelocity( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Stop() { + ::grpc::Service::MarkMethodRawCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Stop(context, request, response); })); + } + ~WithRawCallbackMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::StopRequest* /*request*/, ::viam::component::base::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Stop( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_MoveStraight : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_MoveStraight() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::base::v1::MoveStraightRequest, ::viam::component::base::v1::MoveStraightResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::base::v1::MoveStraightRequest, ::viam::component::base::v1::MoveStraightResponse>* streamer) { + return this->StreamedMoveStraight(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_MoveStraight() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status MoveStraight(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::MoveStraightRequest* /*request*/, ::viam::component::base::v1::MoveStraightResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedMoveStraight(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::base::v1::MoveStraightRequest,::viam::component::base::v1::MoveStraightResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_Spin : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Spin() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::base::v1::SpinRequest, ::viam::component::base::v1::SpinResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::base::v1::SpinRequest, ::viam::component::base::v1::SpinResponse>* streamer) { + return this->StreamedSpin(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Spin() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Spin(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::SpinRequest* /*request*/, ::viam::component::base::v1::SpinResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedSpin(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::base::v1::SpinRequest,::viam::component::base::v1::SpinResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_SetPower : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_SetPower() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::base::v1::SetPowerRequest, ::viam::component::base::v1::SetPowerResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::base::v1::SetPowerRequest, ::viam::component::base::v1::SetPowerResponse>* streamer) { + return this->StreamedSetPower(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_SetPower() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status SetPower(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::SetPowerRequest* /*request*/, ::viam::component::base::v1::SetPowerResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedSetPower(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::base::v1::SetPowerRequest,::viam::component::base::v1::SetPowerResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_SetVelocity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_SetVelocity() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::base::v1::SetVelocityRequest, ::viam::component::base::v1::SetVelocityResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::base::v1::SetVelocityRequest, ::viam::component::base::v1::SetVelocityResponse>* streamer) { + return this->StreamedSetVelocity(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_SetVelocity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status SetVelocity(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::SetVelocityRequest* /*request*/, ::viam::component::base::v1::SetVelocityResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedSetVelocity(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::base::v1::SetVelocityRequest,::viam::component::base::v1::SetVelocityResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Stop() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::base::v1::StopRequest, ::viam::component::base::v1::StopResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::base::v1::StopRequest, ::viam::component::base::v1::StopResponse>* streamer) { + return this->StreamedStop(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::base::v1::StopRequest* /*request*/, ::viam::component::base::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedStop(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::base::v1::StopRequest,::viam::component::base::v1::StopResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_MoveStraight > > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_MoveStraight > > > > StreamedService; +}; + +} // namespace v1 +} // namespace base +} // namespace component +} // namespace viam + + +#endif // GRPC_component_2fbase_2fv1_2fbase_2eproto__INCLUDED diff --git a/src/gen/component/base/v1/base.pb.cc b/src/gen/component/base/v1/base.pb.cc new file mode 100644 index 000000000..9db269834 --- /dev/null +++ b/src/gen/component/base/v1/base.pb.cc @@ -0,0 +1,2203 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/base/v1/base.proto + +#include "component/base/v1/base.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 component { +namespace base { +namespace v1 { +PROTOBUF_CONSTEXPR MoveStraightRequest::MoveStraightRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_.distance_mm_)*/int64_t{0} + , /*decltype(_impl_.mm_per_sec_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct MoveStraightRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveStraightRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveStraightRequestDefaultTypeInternal() {} + union { + MoveStraightRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveStraightRequestDefaultTypeInternal _MoveStraightRequest_default_instance_; +PROTOBUF_CONSTEXPR MoveStraightResponse::MoveStraightResponse( + ::_pbi::ConstantInitialized) {} +struct MoveStraightResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveStraightResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveStraightResponseDefaultTypeInternal() {} + union { + MoveStraightResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveStraightResponseDefaultTypeInternal _MoveStraightResponse_default_instance_; +PROTOBUF_CONSTEXPR SpinRequest::SpinRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_.angle_deg_)*/0 + , /*decltype(_impl_.degs_per_sec_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SpinRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SpinRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SpinRequestDefaultTypeInternal() {} + union { + SpinRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SpinRequestDefaultTypeInternal _SpinRequest_default_instance_; +PROTOBUF_CONSTEXPR SpinResponse::SpinResponse( + ::_pbi::ConstantInitialized) {} +struct SpinResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SpinResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SpinResponseDefaultTypeInternal() {} + union { + SpinResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SpinResponseDefaultTypeInternal _SpinResponse_default_instance_; +PROTOBUF_CONSTEXPR StopRequest::StopRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StopRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopRequestDefaultTypeInternal() {} + union { + StopRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopRequestDefaultTypeInternal _StopRequest_default_instance_; +PROTOBUF_CONSTEXPR StopResponse::StopResponse( + ::_pbi::ConstantInitialized) {} +struct StopResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopResponseDefaultTypeInternal() {} + union { + StopResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopResponseDefaultTypeInternal _StopResponse_default_instance_; +PROTOBUF_CONSTEXPR SetPowerRequest::SetPowerRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.linear_)*/nullptr + , /*decltype(_impl_.angular_)*/nullptr + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SetPowerRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetPowerRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetPowerRequestDefaultTypeInternal() {} + union { + SetPowerRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPowerRequestDefaultTypeInternal _SetPowerRequest_default_instance_; +PROTOBUF_CONSTEXPR SetPowerResponse::SetPowerResponse( + ::_pbi::ConstantInitialized) {} +struct SetPowerResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetPowerResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetPowerResponseDefaultTypeInternal() {} + union { + SetPowerResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPowerResponseDefaultTypeInternal _SetPowerResponse_default_instance_; +PROTOBUF_CONSTEXPR SetVelocityRequest::SetVelocityRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.linear_)*/nullptr + , /*decltype(_impl_.angular_)*/nullptr + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SetVelocityRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetVelocityRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetVelocityRequestDefaultTypeInternal() {} + union { + SetVelocityRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetVelocityRequestDefaultTypeInternal _SetVelocityRequest_default_instance_; +PROTOBUF_CONSTEXPR SetVelocityResponse::SetVelocityResponse( + ::_pbi::ConstantInitialized) {} +struct SetVelocityResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetVelocityResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetVelocityResponseDefaultTypeInternal() {} + union { + SetVelocityResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetVelocityResponseDefaultTypeInternal _SetVelocityResponse_default_instance_; +} // namespace v1 +} // namespace base +} // namespace component +} // namespace viam +static ::_pb::Metadata file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[10]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fbase_2fv1_2fbase_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fbase_2fv1_2fbase_2eproto = nullptr; + +const uint32_t TableStruct_component_2fbase_2fv1_2fbase_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::MoveStraightRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::MoveStraightRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::MoveStraightRequest, _impl_.distance_mm_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::MoveStraightRequest, _impl_.mm_per_sec_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::MoveStraightRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::MoveStraightResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SpinRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SpinRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SpinRequest, _impl_.angle_deg_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SpinRequest, _impl_.degs_per_sec_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SpinRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SpinResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::StopRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::StopRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::StopRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::StopResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetPowerRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetPowerRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetPowerRequest, _impl_.linear_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetPowerRequest, _impl_.angular_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetPowerRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetPowerResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetVelocityRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetVelocityRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetVelocityRequest, _impl_.linear_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetVelocityRequest, _impl_.angular_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetVelocityRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetVelocityResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::base::v1::MoveStraightRequest)}, + { 10, -1, -1, sizeof(::viam::component::base::v1::MoveStraightResponse)}, + { 16, -1, -1, sizeof(::viam::component::base::v1::SpinRequest)}, + { 26, -1, -1, sizeof(::viam::component::base::v1::SpinResponse)}, + { 32, -1, -1, sizeof(::viam::component::base::v1::StopRequest)}, + { 40, -1, -1, sizeof(::viam::component::base::v1::StopResponse)}, + { 46, -1, -1, sizeof(::viam::component::base::v1::SetPowerRequest)}, + { 56, -1, -1, sizeof(::viam::component::base::v1::SetPowerResponse)}, + { 62, -1, -1, sizeof(::viam::component::base::v1::SetVelocityRequest)}, + { 72, -1, -1, sizeof(::viam::component::base::v1::SetVelocityResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::component::base::v1::_MoveStraightRequest_default_instance_._instance, + &::viam::component::base::v1::_MoveStraightResponse_default_instance_._instance, + &::viam::component::base::v1::_SpinRequest_default_instance_._instance, + &::viam::component::base::v1::_SpinResponse_default_instance_._instance, + &::viam::component::base::v1::_StopRequest_default_instance_._instance, + &::viam::component::base::v1::_StopResponse_default_instance_._instance, + &::viam::component::base::v1::_SetPowerRequest_default_instance_._instance, + &::viam::component::base::v1::_SetPowerResponse_default_instance_._instance, + &::viam::component::base::v1::_SetVelocityRequest_default_instance_._instance, + &::viam::component::base::v1::_SetVelocityResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_component_2fbase_2fv1_2fbase_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\034component/base/v1/base.proto\022\026viam.com" + "ponent.base.v1\032\026common/v1/common.proto\032\034" + "google/api/annotations.proto\032\034google/pro" + "tobuf/struct.proto\"\227\001\n\023MoveStraightReque" + "st\022\022\n\004name\030\001 \001(\tR\004name\022\037\n\013distance_mm\030\002 " + "\001(\003R\ndistanceMm\022\034\n\nmm_per_sec\030\003 \001(\001R\010mmP" + "erSec\022-\n\005extra\030c \001(\0132\027.google.protobuf.S" + "tructR\005extra\"\026\n\024MoveStraightResponse\"\217\001\n" + "\013SpinRequest\022\022\n\004name\030\001 \001(\tR\004name\022\033\n\tangl" + "e_deg\030\002 \001(\001R\010angleDeg\022 \n\014degs_per_sec\030\003 " + "\001(\001R\ndegsPerSec\022-\n\005extra\030c \001(\0132\027.google." + "protobuf.StructR\005extra\"\016\n\014SpinResponse\"P" + "\n\013StopRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005ext" + "ra\030c \001(\0132\027.google.protobuf.StructR\005extra" + "\"\016\n\014StopResponse\"\270\001\n\017SetPowerRequest\022\022\n\004" + "name\030\001 \001(\tR\004name\022/\n\006linear\030\002 \001(\0132\027.viam." + "common.v1.Vector3R\006linear\0221\n\007angular\030\003 \001" + "(\0132\027.viam.common.v1.Vector3R\007angular\022-\n\005" + "extra\030c \001(\0132\027.google.protobuf.StructR\005ex" + "tra\"\022\n\020SetPowerResponse\"\273\001\n\022SetVelocityR" + "equest\022\022\n\004name\030\001 \001(\tR\004name\022/\n\006linear\030\002 \001" + "(\0132\027.viam.common.v1.Vector3R\006linear\0221\n\007a" + "ngular\030\003 \001(\0132\027.viam.common.v1.Vector3R\007a" + "ngular\022-\n\005extra\030c \001(\0132\027.google.protobuf." + "StructR\005extra\"\025\n\023SetVelocityResponse2\365\005\n" + "\013BaseService\022\243\001\n\014MoveStraight\022+.viam.com" + "ponent.base.v1.MoveStraightRequest\032,.via" + "m.component.base.v1.MoveStraightResponse" + "\"8\202\323\344\223\0022\"0/viam/api/v1/component/base/{n" + "ame}/move_straight\022\202\001\n\004Spin\022#.viam.compo" + "nent.base.v1.SpinRequest\032$.viam.componen" + "t.base.v1.SpinResponse\"/\202\323\344\223\002)\"\'/viam/ap" + "i/v1/component/base/{name}/spin\022\223\001\n\010SetP" + "ower\022\'.viam.component.base.v1.SetPowerRe" + "quest\032(.viam.component.base.v1.SetPowerR" + "esponse\"4\202\323\344\223\002.\",/viam/api/v1/component/" + "base/{name}/set_power\022\237\001\n\013SetVelocity\022*." + "viam.component.base.v1.SetVelocityReques" + "t\032+.viam.component.base.v1.SetVelocityRe" + "sponse\"7\202\323\344\223\0021\"//viam/api/v1/component/b" + "ase/{name}/set_velocity\022\202\001\n\004Stop\022#.viam." + "component.base.v1.StopRequest\032$.viam.com" + "ponent.base.v1.StopResponse\"/\202\323\344\223\002)\"\'/vi" + "am/api/v1/component/base/{name}/stopB\?\n\032" + "com.viam.component.base.v1Z!go.viam.com/" + "api/component/base/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fbase_2fv1_2fbase_2eproto_deps[3] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, +}; +static ::_pbi::once_flag descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_component_2fbase_2fv1_2fbase_2eproto = { + false, false, 1829, descriptor_table_protodef_component_2fbase_2fv1_2fbase_2eproto, + "component/base/v1/base.proto", + &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, descriptor_table_component_2fbase_2fv1_2fbase_2eproto_deps, 3, 10, + schemas, file_default_instances, TableStruct_component_2fbase_2fv1_2fbase_2eproto::offsets, + file_level_metadata_component_2fbase_2fv1_2fbase_2eproto, file_level_enum_descriptors_component_2fbase_2fv1_2fbase_2eproto, + file_level_service_descriptors_component_2fbase_2fv1_2fbase_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter() { + return &descriptor_table_component_2fbase_2fv1_2fbase_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fbase_2fv1_2fbase_2eproto(&descriptor_table_component_2fbase_2fv1_2fbase_2eproto); +namespace viam { +namespace component { +namespace base { +namespace v1 { + +// =================================================================== + +class MoveStraightRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const MoveStraightRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +MoveStraightRequest::_Internal::extra(const MoveStraightRequest* msg) { + return *msg->_impl_.extra_; +} +void MoveStraightRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +MoveStraightRequest::MoveStraightRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.base.v1.MoveStraightRequest) +} +MoveStraightRequest::MoveStraightRequest(const MoveStraightRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + MoveStraightRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , decltype(_impl_.distance_mm_){} + , decltype(_impl_.mm_per_sec_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + ::memcpy(&_impl_.distance_mm_, &from._impl_.distance_mm_, + static_cast(reinterpret_cast(&_impl_.mm_per_sec_) - + reinterpret_cast(&_impl_.distance_mm_)) + sizeof(_impl_.mm_per_sec_)); + // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.MoveStraightRequest) +} + +inline void MoveStraightRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , decltype(_impl_.distance_mm_){int64_t{0}} + , decltype(_impl_.mm_per_sec_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +MoveStraightRequest::~MoveStraightRequest() { + // @@protoc_insertion_point(destructor:viam.component.base.v1.MoveStraightRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void MoveStraightRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void MoveStraightRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void MoveStraightRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.base.v1.MoveStraightRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + ::memset(&_impl_.distance_mm_, 0, static_cast( + reinterpret_cast(&_impl_.mm_per_sec_) - + reinterpret_cast(&_impl_.distance_mm_)) + sizeof(_impl_.mm_per_sec_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveStraightRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.base.v1.MoveStraightRequest.name")); + } else + goto handle_unusual; + continue; + // int64 distance_mm = 2 [json_name = "distanceMm"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.distance_mm_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double mm_per_sec = 3 [json_name = "mmPerSec"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + _impl_.mm_per_sec_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* MoveStraightRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.base.v1.MoveStraightRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.base.v1.MoveStraightRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // int64 distance_mm = 2 [json_name = "distanceMm"]; + if (this->_internal_distance_mm() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_distance_mm(), target); + } + + // double mm_per_sec = 3 [json_name = "mmPerSec"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_mm_per_sec = this->_internal_mm_per_sec(); + uint64_t raw_mm_per_sec; + memcpy(&raw_mm_per_sec, &tmp_mm_per_sec, sizeof(tmp_mm_per_sec)); + if (raw_mm_per_sec != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_mm_per_sec(), target); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(99, _Internal::extra(this), + _Internal::extra(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.base.v1.MoveStraightRequest) + return target; +} + +size_t MoveStraightRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.base.v1.MoveStraightRequest) + 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( + *_impl_.extra_); + } + + // int64 distance_mm = 2 [json_name = "distanceMm"]; + if (this->_internal_distance_mm() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_distance_mm()); + } + + // double mm_per_sec = 3 [json_name = "mmPerSec"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_mm_per_sec = this->_internal_mm_per_sec(); + uint64_t raw_mm_per_sec; + memcpy(&raw_mm_per_sec, &tmp_mm_per_sec, sizeof(tmp_mm_per_sec)); + if (raw_mm_per_sec != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveStraightRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MoveStraightRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveStraightRequest::GetClassData() const { return &_class_data_; } + + +void MoveStraightRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.MoveStraightRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + if (from._internal_distance_mm() != 0) { + _this->_internal_set_distance_mm(from._internal_distance_mm()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_mm_per_sec = from._internal_mm_per_sec(); + uint64_t raw_mm_per_sec; + memcpy(&raw_mm_per_sec, &tmp_mm_per_sec, sizeof(tmp_mm_per_sec)); + if (raw_mm_per_sec != 0) { + _this->_internal_set_mm_per_sec(from._internal_mm_per_sec()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MoveStraightRequest::CopyFrom(const MoveStraightRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.base.v1.MoveStraightRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoveStraightRequest::IsInitialized() const { + return true; +} + +void MoveStraightRequest::InternalSwap(MoveStraightRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MoveStraightRequest, _impl_.mm_per_sec_) + + sizeof(MoveStraightRequest::_impl_.mm_per_sec_) + - PROTOBUF_FIELD_OFFSET(MoveStraightRequest, _impl_.extra_)>( + reinterpret_cast(&_impl_.extra_), + reinterpret_cast(&other->_impl_.extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MoveStraightRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, + file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[0]); +} + +// =================================================================== + +class MoveStraightResponse::_Internal { + public: +}; + +MoveStraightResponse::MoveStraightResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.base.v1.MoveStraightResponse) +} +MoveStraightResponse::MoveStraightResponse(const MoveStraightResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + MoveStraightResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.MoveStraightResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveStraightResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveStraightResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata MoveStraightResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, + file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[1]); +} + +// =================================================================== + +class SpinRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const SpinRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +SpinRequest::_Internal::extra(const SpinRequest* msg) { + return *msg->_impl_.extra_; +} +void SpinRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +SpinRequest::SpinRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.base.v1.SpinRequest) +} +SpinRequest::SpinRequest(const SpinRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + SpinRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , decltype(_impl_.angle_deg_){} + , decltype(_impl_.degs_per_sec_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + ::memcpy(&_impl_.angle_deg_, &from._impl_.angle_deg_, + static_cast(reinterpret_cast(&_impl_.degs_per_sec_) - + reinterpret_cast(&_impl_.angle_deg_)) + sizeof(_impl_.degs_per_sec_)); + // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.SpinRequest) +} + +inline void SpinRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , decltype(_impl_.angle_deg_){0} + , decltype(_impl_.degs_per_sec_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +SpinRequest::~SpinRequest() { + // @@protoc_insertion_point(destructor:viam.component.base.v1.SpinRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SpinRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void SpinRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SpinRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.base.v1.SpinRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + ::memset(&_impl_.angle_deg_, 0, static_cast( + reinterpret_cast(&_impl_.degs_per_sec_) - + reinterpret_cast(&_impl_.angle_deg_)) + sizeof(_impl_.degs_per_sec_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SpinRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.base.v1.SpinRequest.name")); + } else + goto handle_unusual; + continue; + // double angle_deg = 2 [json_name = "angleDeg"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + _impl_.angle_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double degs_per_sec = 3 [json_name = "degsPerSec"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + _impl_.degs_per_sec_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* SpinRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.base.v1.SpinRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.base.v1.SpinRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // double angle_deg = 2 [json_name = "angleDeg"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_angle_deg = this->_internal_angle_deg(); + uint64_t raw_angle_deg; + memcpy(&raw_angle_deg, &tmp_angle_deg, sizeof(tmp_angle_deg)); + if (raw_angle_deg != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_angle_deg(), target); + } + + // double degs_per_sec = 3 [json_name = "degsPerSec"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_degs_per_sec = this->_internal_degs_per_sec(); + uint64_t raw_degs_per_sec; + memcpy(&raw_degs_per_sec, &tmp_degs_per_sec, sizeof(tmp_degs_per_sec)); + if (raw_degs_per_sec != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_degs_per_sec(), target); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(99, _Internal::extra(this), + _Internal::extra(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.base.v1.SpinRequest) + return target; +} + +size_t SpinRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.base.v1.SpinRequest) + 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( + *_impl_.extra_); + } + + // double angle_deg = 2 [json_name = "angleDeg"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_angle_deg = this->_internal_angle_deg(); + uint64_t raw_angle_deg; + memcpy(&raw_angle_deg, &tmp_angle_deg, sizeof(tmp_angle_deg)); + if (raw_angle_deg != 0) { + total_size += 1 + 8; + } + + // double degs_per_sec = 3 [json_name = "degsPerSec"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_degs_per_sec = this->_internal_degs_per_sec(); + uint64_t raw_degs_per_sec; + memcpy(&raw_degs_per_sec, &tmp_degs_per_sec, sizeof(tmp_degs_per_sec)); + if (raw_degs_per_sec != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SpinRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SpinRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SpinRequest::GetClassData() const { return &_class_data_; } + + +void SpinRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.SpinRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_angle_deg = from._internal_angle_deg(); + uint64_t raw_angle_deg; + memcpy(&raw_angle_deg, &tmp_angle_deg, sizeof(tmp_angle_deg)); + if (raw_angle_deg != 0) { + _this->_internal_set_angle_deg(from._internal_angle_deg()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_degs_per_sec = from._internal_degs_per_sec(); + uint64_t raw_degs_per_sec; + memcpy(&raw_degs_per_sec, &tmp_degs_per_sec, sizeof(tmp_degs_per_sec)); + if (raw_degs_per_sec != 0) { + _this->_internal_set_degs_per_sec(from._internal_degs_per_sec()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SpinRequest::CopyFrom(const SpinRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.base.v1.SpinRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SpinRequest::IsInitialized() const { + return true; +} + +void SpinRequest::InternalSwap(SpinRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SpinRequest, _impl_.degs_per_sec_) + + sizeof(SpinRequest::_impl_.degs_per_sec_) + - PROTOBUF_FIELD_OFFSET(SpinRequest, _impl_.extra_)>( + reinterpret_cast(&_impl_.extra_), + reinterpret_cast(&other->_impl_.extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SpinRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, + file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[2]); +} + +// =================================================================== + +class SpinResponse::_Internal { + public: +}; + +SpinResponse::SpinResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.base.v1.SpinResponse) +} +SpinResponse::SpinResponse(const SpinResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SpinResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.SpinResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SpinResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SpinResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata SpinResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, + file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[3]); +} + +// =================================================================== + +class StopRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const StopRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +StopRequest::_Internal::extra(const StopRequest* msg) { + return *msg->_impl_.extra_; +} +void StopRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +StopRequest::StopRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.base.v1.StopRequest) +} +StopRequest::StopRequest(const StopRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + StopRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.StopRequest) +} + +inline void StopRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +StopRequest::~StopRequest() { + // @@protoc_insertion_point(destructor:viam.component.base.v1.StopRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void StopRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void StopRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void StopRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.base.v1.StopRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StopRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.base.v1.StopRequest.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* StopRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.base.v1.StopRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.base.v1.StopRequest.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.component.base.v1.StopRequest) + return target; +} + +size_t StopRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.base.v1.StopRequest) + 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( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + StopRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopRequest::GetClassData() const { return &_class_data_; } + + +void StopRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.StopRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void StopRequest::CopyFrom(const StopRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.base.v1.StopRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StopRequest::IsInitialized() const { + return true; +} + +void StopRequest::InternalSwap(StopRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.extra_, other->_impl_.extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StopRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, + file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[4]); +} + +// =================================================================== + +class StopResponse::_Internal { + public: +}; + +StopResponse::StopResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.base.v1.StopResponse) +} +StopResponse::StopResponse(const StopResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + StopResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.StopResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata StopResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, + file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[5]); +} + +// =================================================================== + +class SetPowerRequest::_Internal { + public: + static const ::viam::common::v1::Vector3& linear(const SetPowerRequest* msg); + static const ::viam::common::v1::Vector3& angular(const SetPowerRequest* msg); + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const SetPowerRequest* msg); +}; + +const ::viam::common::v1::Vector3& +SetPowerRequest::_Internal::linear(const SetPowerRequest* msg) { + return *msg->_impl_.linear_; +} +const ::viam::common::v1::Vector3& +SetPowerRequest::_Internal::angular(const SetPowerRequest* msg) { + return *msg->_impl_.angular_; +} +const ::PROTOBUF_NAMESPACE_ID::Struct& +SetPowerRequest::_Internal::extra(const SetPowerRequest* msg) { + return *msg->_impl_.extra_; +} +void SetPowerRequest::clear_linear() { + if (GetArenaForAllocation() == nullptr && _impl_.linear_ != nullptr) { + delete _impl_.linear_; + } + _impl_.linear_ = nullptr; +} +void SetPowerRequest::clear_angular() { + if (GetArenaForAllocation() == nullptr && _impl_.angular_ != nullptr) { + delete _impl_.angular_; + } + _impl_.angular_ = nullptr; +} +void SetPowerRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +SetPowerRequest::SetPowerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.base.v1.SetPowerRequest) +} +SetPowerRequest::SetPowerRequest(const SetPowerRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + SetPowerRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.linear_){nullptr} + , decltype(_impl_.angular_){nullptr} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_linear()) { + _this->_impl_.linear_ = new ::viam::common::v1::Vector3(*from._impl_.linear_); + } + if (from._internal_has_angular()) { + _this->_impl_.angular_ = new ::viam::common::v1::Vector3(*from._impl_.angular_); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.SetPowerRequest) +} + +inline void SetPowerRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.linear_){nullptr} + , decltype(_impl_.angular_){nullptr} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +SetPowerRequest::~SetPowerRequest() { + // @@protoc_insertion_point(destructor:viam.component.base.v1.SetPowerRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SetPowerRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.linear_; + if (this != internal_default_instance()) delete _impl_.angular_; + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void SetPowerRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SetPowerRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.base.v1.SetPowerRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.linear_ != nullptr) { + delete _impl_.linear_; + } + _impl_.linear_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.angular_ != nullptr) { + delete _impl_.angular_; + } + _impl_.angular_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SetPowerRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.base.v1.SetPowerRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_linear(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_angular(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + case 99: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_extra(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* SetPowerRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.base.v1.SetPowerRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.base.v1.SetPowerRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; + if (this->_internal_has_linear()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::linear(this), + _Internal::linear(this).GetCachedSize(), target, stream); + } + + // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; + if (this->_internal_has_angular()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::angular(this), + _Internal::angular(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(99, _Internal::extra(this), + _Internal::extra(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.base.v1.SetPowerRequest) + return target; +} + +size_t SetPowerRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.base.v1.SetPowerRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; + if (this->_internal_has_linear()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.linear_); + } + + // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; + if (this->_internal_has_angular()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.angular_); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetPowerRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SetPowerRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPowerRequest::GetClassData() const { return &_class_data_; } + + +void SetPowerRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.SetPowerRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_linear()) { + _this->_internal_mutable_linear()->::viam::common::v1::Vector3::MergeFrom( + from._internal_linear()); + } + if (from._internal_has_angular()) { + _this->_internal_mutable_angular()->::viam::common::v1::Vector3::MergeFrom( + from._internal_angular()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SetPowerRequest::CopyFrom(const SetPowerRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.base.v1.SetPowerRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetPowerRequest::IsInitialized() const { + return true; +} + +void SetPowerRequest::InternalSwap(SetPowerRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_.extra_) + + sizeof(SetPowerRequest::_impl_.extra_) + - PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_.linear_)>( + reinterpret_cast(&_impl_.linear_), + reinterpret_cast(&other->_impl_.linear_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetPowerRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, + file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[6]); +} + +// =================================================================== + +class SetPowerResponse::_Internal { + public: +}; + +SetPowerResponse::SetPowerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.base.v1.SetPowerResponse) +} +SetPowerResponse::SetPowerResponse(const SetPowerResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SetPowerResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.SetPowerResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetPowerResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPowerResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata SetPowerResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, + file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[7]); +} + +// =================================================================== + +class SetVelocityRequest::_Internal { + public: + static const ::viam::common::v1::Vector3& linear(const SetVelocityRequest* msg); + static const ::viam::common::v1::Vector3& angular(const SetVelocityRequest* msg); + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const SetVelocityRequest* msg); +}; + +const ::viam::common::v1::Vector3& +SetVelocityRequest::_Internal::linear(const SetVelocityRequest* msg) { + return *msg->_impl_.linear_; +} +const ::viam::common::v1::Vector3& +SetVelocityRequest::_Internal::angular(const SetVelocityRequest* msg) { + return *msg->_impl_.angular_; +} +const ::PROTOBUF_NAMESPACE_ID::Struct& +SetVelocityRequest::_Internal::extra(const SetVelocityRequest* msg) { + return *msg->_impl_.extra_; +} +void SetVelocityRequest::clear_linear() { + if (GetArenaForAllocation() == nullptr && _impl_.linear_ != nullptr) { + delete _impl_.linear_; + } + _impl_.linear_ = nullptr; +} +void SetVelocityRequest::clear_angular() { + if (GetArenaForAllocation() == nullptr && _impl_.angular_ != nullptr) { + delete _impl_.angular_; + } + _impl_.angular_ = nullptr; +} +void SetVelocityRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +SetVelocityRequest::SetVelocityRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.base.v1.SetVelocityRequest) +} +SetVelocityRequest::SetVelocityRequest(const SetVelocityRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + SetVelocityRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.linear_){nullptr} + , decltype(_impl_.angular_){nullptr} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_linear()) { + _this->_impl_.linear_ = new ::viam::common::v1::Vector3(*from._impl_.linear_); + } + if (from._internal_has_angular()) { + _this->_impl_.angular_ = new ::viam::common::v1::Vector3(*from._impl_.angular_); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.SetVelocityRequest) +} + +inline void SetVelocityRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.linear_){nullptr} + , decltype(_impl_.angular_){nullptr} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +SetVelocityRequest::~SetVelocityRequest() { + // @@protoc_insertion_point(destructor:viam.component.base.v1.SetVelocityRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SetVelocityRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.linear_; + if (this != internal_default_instance()) delete _impl_.angular_; + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void SetVelocityRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SetVelocityRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.base.v1.SetVelocityRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.linear_ != nullptr) { + delete _impl_.linear_; + } + _impl_.linear_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.angular_ != nullptr) { + delete _impl_.angular_; + } + _impl_.angular_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SetVelocityRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.base.v1.SetVelocityRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_linear(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_angular(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + case 99: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_extra(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* SetVelocityRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.base.v1.SetVelocityRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.base.v1.SetVelocityRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; + if (this->_internal_has_linear()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::linear(this), + _Internal::linear(this).GetCachedSize(), target, stream); + } + + // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; + if (this->_internal_has_angular()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::angular(this), + _Internal::angular(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(99, _Internal::extra(this), + _Internal::extra(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.base.v1.SetVelocityRequest) + return target; +} + +size_t SetVelocityRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.base.v1.SetVelocityRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; + if (this->_internal_has_linear()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.linear_); + } + + // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; + if (this->_internal_has_angular()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.angular_); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetVelocityRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SetVelocityRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetVelocityRequest::GetClassData() const { return &_class_data_; } + + +void SetVelocityRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.SetVelocityRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_linear()) { + _this->_internal_mutable_linear()->::viam::common::v1::Vector3::MergeFrom( + from._internal_linear()); + } + if (from._internal_has_angular()) { + _this->_internal_mutable_angular()->::viam::common::v1::Vector3::MergeFrom( + from._internal_angular()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SetVelocityRequest::CopyFrom(const SetVelocityRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.base.v1.SetVelocityRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetVelocityRequest::IsInitialized() const { + return true; +} + +void SetVelocityRequest::InternalSwap(SetVelocityRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SetVelocityRequest, _impl_.extra_) + + sizeof(SetVelocityRequest::_impl_.extra_) + - PROTOBUF_FIELD_OFFSET(SetVelocityRequest, _impl_.linear_)>( + reinterpret_cast(&_impl_.linear_), + reinterpret_cast(&other->_impl_.linear_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetVelocityRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, + file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[8]); +} + +// =================================================================== + +class SetVelocityResponse::_Internal { + public: +}; + +SetVelocityResponse::SetVelocityResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.base.v1.SetVelocityResponse) +} +SetVelocityResponse::SetVelocityResponse(const SetVelocityResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SetVelocityResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.SetVelocityResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetVelocityResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetVelocityResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata SetVelocityResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, + file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[9]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace base +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::MoveStraightRequest* +Arena::CreateMaybeMessage< ::viam::component::base::v1::MoveStraightRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::MoveStraightRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::MoveStraightResponse* +Arena::CreateMaybeMessage< ::viam::component::base::v1::MoveStraightResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::MoveStraightResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::SpinRequest* +Arena::CreateMaybeMessage< ::viam::component::base::v1::SpinRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::SpinRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::SpinResponse* +Arena::CreateMaybeMessage< ::viam::component::base::v1::SpinResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::SpinResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::StopRequest* +Arena::CreateMaybeMessage< ::viam::component::base::v1::StopRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::StopRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::StopResponse* +Arena::CreateMaybeMessage< ::viam::component::base::v1::StopResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::StopResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::SetPowerRequest* +Arena::CreateMaybeMessage< ::viam::component::base::v1::SetPowerRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::SetPowerRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::SetPowerResponse* +Arena::CreateMaybeMessage< ::viam::component::base::v1::SetPowerResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::SetPowerResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::SetVelocityRequest* +Arena::CreateMaybeMessage< ::viam::component::base::v1::SetVelocityRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::SetVelocityRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::SetVelocityResponse* +Arena::CreateMaybeMessage< ::viam::component::base::v1::SetVelocityResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::SetVelocityResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/component/base/v1/base.pb.h b/src/gen/component/base/v1/base.pb.h new file mode 100644 index 000000000..b1b86c3df --- /dev/null +++ b/src/gen/component/base/v1/base.pb.h @@ -0,0 +1,2859 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/base/v1/base.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fbase_2fv1_2fbase_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fbase_2fv1_2fbase_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "common/v1/common.pb.h" +#include "google/api/annotations.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_component_2fbase_2fv1_2fbase_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_component_2fbase_2fv1_2fbase_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fbase_2fv1_2fbase_2eproto; +namespace viam { +namespace component { +namespace base { +namespace v1 { +class MoveStraightRequest; +struct MoveStraightRequestDefaultTypeInternal; +extern MoveStraightRequestDefaultTypeInternal _MoveStraightRequest_default_instance_; +class MoveStraightResponse; +struct MoveStraightResponseDefaultTypeInternal; +extern MoveStraightResponseDefaultTypeInternal _MoveStraightResponse_default_instance_; +class SetPowerRequest; +struct SetPowerRequestDefaultTypeInternal; +extern SetPowerRequestDefaultTypeInternal _SetPowerRequest_default_instance_; +class SetPowerResponse; +struct SetPowerResponseDefaultTypeInternal; +extern SetPowerResponseDefaultTypeInternal _SetPowerResponse_default_instance_; +class SetVelocityRequest; +struct SetVelocityRequestDefaultTypeInternal; +extern SetVelocityRequestDefaultTypeInternal _SetVelocityRequest_default_instance_; +class SetVelocityResponse; +struct SetVelocityResponseDefaultTypeInternal; +extern SetVelocityResponseDefaultTypeInternal _SetVelocityResponse_default_instance_; +class SpinRequest; +struct SpinRequestDefaultTypeInternal; +extern SpinRequestDefaultTypeInternal _SpinRequest_default_instance_; +class SpinResponse; +struct SpinResponseDefaultTypeInternal; +extern SpinResponseDefaultTypeInternal _SpinResponse_default_instance_; +class StopRequest; +struct StopRequestDefaultTypeInternal; +extern StopRequestDefaultTypeInternal _StopRequest_default_instance_; +class StopResponse; +struct StopResponseDefaultTypeInternal; +extern StopResponseDefaultTypeInternal _StopResponse_default_instance_; +} // namespace v1 +} // namespace base +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::base::v1::MoveStraightRequest* Arena::CreateMaybeMessage<::viam::component::base::v1::MoveStraightRequest>(Arena*); +template<> ::viam::component::base::v1::MoveStraightResponse* Arena::CreateMaybeMessage<::viam::component::base::v1::MoveStraightResponse>(Arena*); +template<> ::viam::component::base::v1::SetPowerRequest* Arena::CreateMaybeMessage<::viam::component::base::v1::SetPowerRequest>(Arena*); +template<> ::viam::component::base::v1::SetPowerResponse* Arena::CreateMaybeMessage<::viam::component::base::v1::SetPowerResponse>(Arena*); +template<> ::viam::component::base::v1::SetVelocityRequest* Arena::CreateMaybeMessage<::viam::component::base::v1::SetVelocityRequest>(Arena*); +template<> ::viam::component::base::v1::SetVelocityResponse* Arena::CreateMaybeMessage<::viam::component::base::v1::SetVelocityResponse>(Arena*); +template<> ::viam::component::base::v1::SpinRequest* Arena::CreateMaybeMessage<::viam::component::base::v1::SpinRequest>(Arena*); +template<> ::viam::component::base::v1::SpinResponse* Arena::CreateMaybeMessage<::viam::component::base::v1::SpinResponse>(Arena*); +template<> ::viam::component::base::v1::StopRequest* Arena::CreateMaybeMessage<::viam::component::base::v1::StopRequest>(Arena*); +template<> ::viam::component::base::v1::StopResponse* Arena::CreateMaybeMessage<::viam::component::base::v1::StopResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace component { +namespace base { +namespace v1 { + +// =================================================================== + +class MoveStraightRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.MoveStraightRequest) */ { + public: + inline MoveStraightRequest() : MoveStraightRequest(nullptr) {} + ~MoveStraightRequest() override; + explicit PROTOBUF_CONSTEXPR MoveStraightRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MoveStraightRequest(const MoveStraightRequest& from); + MoveStraightRequest(MoveStraightRequest&& from) noexcept + : MoveStraightRequest() { + *this = ::std::move(from); + } + + inline MoveStraightRequest& operator=(const MoveStraightRequest& from) { + CopyFrom(from); + return *this; + } + inline MoveStraightRequest& operator=(MoveStraightRequest&& 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 MoveStraightRequest& default_instance() { + return *internal_default_instance(); + } + static inline const MoveStraightRequest* internal_default_instance() { + return reinterpret_cast( + &_MoveStraightRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(MoveStraightRequest& a, MoveStraightRequest& b) { + a.Swap(&b); + } + inline void Swap(MoveStraightRequest* 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(MoveStraightRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MoveStraightRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveStraightRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MoveStraightRequest& from) { + MoveStraightRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoveStraightRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.MoveStraightRequest"; + } + protected: + explicit MoveStraightRequest(::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, + kDistanceMmFieldNumber = 2, + kMmPerSecFieldNumber = 3, + }; + // 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(); + + // int64 distance_mm = 2 [json_name = "distanceMm"]; + void clear_distance_mm(); + int64_t distance_mm() const; + void set_distance_mm(int64_t value); + private: + int64_t _internal_distance_mm() const; + void _internal_set_distance_mm(int64_t value); + public: + + // double mm_per_sec = 3 [json_name = "mmPerSec"]; + void clear_mm_per_sec(); + double mm_per_sec() const; + void set_mm_per_sec(double value); + private: + double _internal_mm_per_sec() const; + void _internal_set_mm_per_sec(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.base.v1.MoveStraightRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + int64_t distance_mm_; + double mm_per_sec_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; +}; +// ------------------------------------------------------------------- + +class MoveStraightResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.base.v1.MoveStraightResponse) */ { + public: + inline MoveStraightResponse() : MoveStraightResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR MoveStraightResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MoveStraightResponse(const MoveStraightResponse& from); + MoveStraightResponse(MoveStraightResponse&& from) noexcept + : MoveStraightResponse() { + *this = ::std::move(from); + } + + inline MoveStraightResponse& operator=(const MoveStraightResponse& from) { + CopyFrom(from); + return *this; + } + inline MoveStraightResponse& operator=(MoveStraightResponse&& 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 MoveStraightResponse& default_instance() { + return *internal_default_instance(); + } + static inline const MoveStraightResponse* internal_default_instance() { + return reinterpret_cast( + &_MoveStraightResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(MoveStraightResponse& a, MoveStraightResponse& b) { + a.Swap(&b); + } + inline void Swap(MoveStraightResponse* 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(MoveStraightResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MoveStraightResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const MoveStraightResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const MoveStraightResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.MoveStraightResponse"; + } + protected: + explicit MoveStraightResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.base.v1.MoveStraightResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; +}; +// ------------------------------------------------------------------- + +class SpinRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.SpinRequest) */ { + public: + inline SpinRequest() : SpinRequest(nullptr) {} + ~SpinRequest() override; + explicit PROTOBUF_CONSTEXPR SpinRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SpinRequest(const SpinRequest& from); + SpinRequest(SpinRequest&& from) noexcept + : SpinRequest() { + *this = ::std::move(from); + } + + inline SpinRequest& operator=(const SpinRequest& from) { + CopyFrom(from); + return *this; + } + inline SpinRequest& operator=(SpinRequest&& 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 SpinRequest& default_instance() { + return *internal_default_instance(); + } + static inline const SpinRequest* internal_default_instance() { + return reinterpret_cast( + &_SpinRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(SpinRequest& a, SpinRequest& b) { + a.Swap(&b); + } + inline void Swap(SpinRequest* 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(SpinRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SpinRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SpinRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SpinRequest& from) { + SpinRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SpinRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.SpinRequest"; + } + protected: + explicit SpinRequest(::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, + kAngleDegFieldNumber = 2, + kDegsPerSecFieldNumber = 3, + }; + // 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(); + + // double angle_deg = 2 [json_name = "angleDeg"]; + void clear_angle_deg(); + double angle_deg() const; + void set_angle_deg(double value); + private: + double _internal_angle_deg() const; + void _internal_set_angle_deg(double value); + public: + + // double degs_per_sec = 3 [json_name = "degsPerSec"]; + void clear_degs_per_sec(); + double degs_per_sec() const; + void set_degs_per_sec(double value); + private: + double _internal_degs_per_sec() const; + void _internal_set_degs_per_sec(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.base.v1.SpinRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + double angle_deg_; + double degs_per_sec_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; +}; +// ------------------------------------------------------------------- + +class SpinResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.base.v1.SpinResponse) */ { + public: + inline SpinResponse() : SpinResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SpinResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SpinResponse(const SpinResponse& from); + SpinResponse(SpinResponse&& from) noexcept + : SpinResponse() { + *this = ::std::move(from); + } + + inline SpinResponse& operator=(const SpinResponse& from) { + CopyFrom(from); + return *this; + } + inline SpinResponse& operator=(SpinResponse&& 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 SpinResponse& default_instance() { + return *internal_default_instance(); + } + static inline const SpinResponse* internal_default_instance() { + return reinterpret_cast( + &_SpinResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(SpinResponse& a, SpinResponse& b) { + a.Swap(&b); + } + inline void Swap(SpinResponse* 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(SpinResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SpinResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SpinResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SpinResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.SpinResponse"; + } + protected: + explicit SpinResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.base.v1.SpinResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; +}; +// ------------------------------------------------------------------- + +class StopRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.StopRequest) */ { + public: + inline StopRequest() : StopRequest(nullptr) {} + ~StopRequest() override; + explicit PROTOBUF_CONSTEXPR StopRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StopRequest(const StopRequest& from); + StopRequest(StopRequest&& from) noexcept + : StopRequest() { + *this = ::std::move(from); + } + + inline StopRequest& operator=(const StopRequest& from) { + CopyFrom(from); + return *this; + } + inline StopRequest& operator=(StopRequest&& 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 StopRequest& default_instance() { + return *internal_default_instance(); + } + static inline const StopRequest* internal_default_instance() { + return reinterpret_cast( + &_StopRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(StopRequest& a, StopRequest& b) { + a.Swap(&b); + } + inline void Swap(StopRequest* 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(StopRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StopRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StopRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const StopRequest& from) { + StopRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StopRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.StopRequest"; + } + protected: + explicit StopRequest(::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.component.base.v1.StopRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; +}; +// ------------------------------------------------------------------- + +class StopResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.base.v1.StopResponse) */ { + public: + inline StopResponse() : StopResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR StopResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StopResponse(const StopResponse& from); + StopResponse(StopResponse&& from) noexcept + : StopResponse() { + *this = ::std::move(from); + } + + inline StopResponse& operator=(const StopResponse& from) { + CopyFrom(from); + return *this; + } + inline StopResponse& operator=(StopResponse&& 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 StopResponse& default_instance() { + return *internal_default_instance(); + } + static inline const StopResponse* internal_default_instance() { + return reinterpret_cast( + &_StopResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(StopResponse& a, StopResponse& b) { + a.Swap(&b); + } + inline void Swap(StopResponse* 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(StopResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StopResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.StopResponse"; + } + protected: + explicit StopResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.base.v1.StopResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; +}; +// ------------------------------------------------------------------- + +class SetPowerRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.SetPowerRequest) */ { + public: + inline SetPowerRequest() : SetPowerRequest(nullptr) {} + ~SetPowerRequest() override; + explicit PROTOBUF_CONSTEXPR SetPowerRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SetPowerRequest(const SetPowerRequest& from); + SetPowerRequest(SetPowerRequest&& from) noexcept + : SetPowerRequest() { + *this = ::std::move(from); + } + + inline SetPowerRequest& operator=(const SetPowerRequest& from) { + CopyFrom(from); + return *this; + } + inline SetPowerRequest& operator=(SetPowerRequest&& 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 SetPowerRequest& default_instance() { + return *internal_default_instance(); + } + static inline const SetPowerRequest* internal_default_instance() { + return reinterpret_cast( + &_SetPowerRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(SetPowerRequest& a, SetPowerRequest& b) { + a.Swap(&b); + } + inline void Swap(SetPowerRequest* 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(SetPowerRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetPowerRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SetPowerRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SetPowerRequest& from) { + SetPowerRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SetPowerRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.SetPowerRequest"; + } + protected: + explicit SetPowerRequest(::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, + kLinearFieldNumber = 2, + kAngularFieldNumber = 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: + + // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; + bool has_linear() const; + private: + bool _internal_has_linear() const; + public: + void clear_linear(); + const ::viam::common::v1::Vector3& linear() const; + PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_linear(); + ::viam::common::v1::Vector3* mutable_linear(); + void set_allocated_linear(::viam::common::v1::Vector3* linear); + private: + const ::viam::common::v1::Vector3& _internal_linear() const; + ::viam::common::v1::Vector3* _internal_mutable_linear(); + public: + void unsafe_arena_set_allocated_linear( + ::viam::common::v1::Vector3* linear); + ::viam::common::v1::Vector3* unsafe_arena_release_linear(); + + // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; + bool has_angular() const; + private: + bool _internal_has_angular() const; + public: + void clear_angular(); + const ::viam::common::v1::Vector3& angular() const; + PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_angular(); + ::viam::common::v1::Vector3* mutable_angular(); + void set_allocated_angular(::viam::common::v1::Vector3* angular); + private: + const ::viam::common::v1::Vector3& _internal_angular() const; + ::viam::common::v1::Vector3* _internal_mutable_angular(); + public: + void unsafe_arena_set_allocated_angular( + ::viam::common::v1::Vector3* angular); + ::viam::common::v1::Vector3* unsafe_arena_release_angular(); + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; + public: + void clear_extra(); + const ::PROTOBUF_NAMESPACE_ID::Struct& extra() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_extra(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_extra(); + void set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); + public: + void unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); + + // @@protoc_insertion_point(class_scope:viam.component.base.v1.SetPowerRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::viam::common::v1::Vector3* linear_; + ::viam::common::v1::Vector3* angular_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; +}; +// ------------------------------------------------------------------- + +class SetPowerResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.base.v1.SetPowerResponse) */ { + public: + inline SetPowerResponse() : SetPowerResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SetPowerResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SetPowerResponse(const SetPowerResponse& from); + SetPowerResponse(SetPowerResponse&& from) noexcept + : SetPowerResponse() { + *this = ::std::move(from); + } + + inline SetPowerResponse& operator=(const SetPowerResponse& from) { + CopyFrom(from); + return *this; + } + inline SetPowerResponse& operator=(SetPowerResponse&& 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 SetPowerResponse& default_instance() { + return *internal_default_instance(); + } + static inline const SetPowerResponse* internal_default_instance() { + return reinterpret_cast( + &_SetPowerResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(SetPowerResponse& a, SetPowerResponse& b) { + a.Swap(&b); + } + inline void Swap(SetPowerResponse* 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(SetPowerResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetPowerResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SetPowerResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SetPowerResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.SetPowerResponse"; + } + protected: + explicit SetPowerResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.base.v1.SetPowerResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; +}; +// ------------------------------------------------------------------- + +class SetVelocityRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.SetVelocityRequest) */ { + public: + inline SetVelocityRequest() : SetVelocityRequest(nullptr) {} + ~SetVelocityRequest() override; + explicit PROTOBUF_CONSTEXPR SetVelocityRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SetVelocityRequest(const SetVelocityRequest& from); + SetVelocityRequest(SetVelocityRequest&& from) noexcept + : SetVelocityRequest() { + *this = ::std::move(from); + } + + inline SetVelocityRequest& operator=(const SetVelocityRequest& from) { + CopyFrom(from); + return *this; + } + inline SetVelocityRequest& operator=(SetVelocityRequest&& 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 SetVelocityRequest& default_instance() { + return *internal_default_instance(); + } + static inline const SetVelocityRequest* internal_default_instance() { + return reinterpret_cast( + &_SetVelocityRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(SetVelocityRequest& a, SetVelocityRequest& b) { + a.Swap(&b); + } + inline void Swap(SetVelocityRequest* 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(SetVelocityRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetVelocityRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SetVelocityRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SetVelocityRequest& from) { + SetVelocityRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SetVelocityRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.SetVelocityRequest"; + } + protected: + explicit SetVelocityRequest(::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, + kLinearFieldNumber = 2, + kAngularFieldNumber = 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: + + // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; + bool has_linear() const; + private: + bool _internal_has_linear() const; + public: + void clear_linear(); + const ::viam::common::v1::Vector3& linear() const; + PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_linear(); + ::viam::common::v1::Vector3* mutable_linear(); + void set_allocated_linear(::viam::common::v1::Vector3* linear); + private: + const ::viam::common::v1::Vector3& _internal_linear() const; + ::viam::common::v1::Vector3* _internal_mutable_linear(); + public: + void unsafe_arena_set_allocated_linear( + ::viam::common::v1::Vector3* linear); + ::viam::common::v1::Vector3* unsafe_arena_release_linear(); + + // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; + bool has_angular() const; + private: + bool _internal_has_angular() const; + public: + void clear_angular(); + const ::viam::common::v1::Vector3& angular() const; + PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_angular(); + ::viam::common::v1::Vector3* mutable_angular(); + void set_allocated_angular(::viam::common::v1::Vector3* angular); + private: + const ::viam::common::v1::Vector3& _internal_angular() const; + ::viam::common::v1::Vector3* _internal_mutable_angular(); + public: + void unsafe_arena_set_allocated_angular( + ::viam::common::v1::Vector3* angular); + ::viam::common::v1::Vector3* unsafe_arena_release_angular(); + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; + public: + void clear_extra(); + const ::PROTOBUF_NAMESPACE_ID::Struct& extra() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_extra(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_extra(); + void set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); + public: + void unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); + + // @@protoc_insertion_point(class_scope:viam.component.base.v1.SetVelocityRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::viam::common::v1::Vector3* linear_; + ::viam::common::v1::Vector3* angular_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; +}; +// ------------------------------------------------------------------- + +class SetVelocityResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.base.v1.SetVelocityResponse) */ { + public: + inline SetVelocityResponse() : SetVelocityResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SetVelocityResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SetVelocityResponse(const SetVelocityResponse& from); + SetVelocityResponse(SetVelocityResponse&& from) noexcept + : SetVelocityResponse() { + *this = ::std::move(from); + } + + inline SetVelocityResponse& operator=(const SetVelocityResponse& from) { + CopyFrom(from); + return *this; + } + inline SetVelocityResponse& operator=(SetVelocityResponse&& 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 SetVelocityResponse& default_instance() { + return *internal_default_instance(); + } + static inline const SetVelocityResponse* internal_default_instance() { + return reinterpret_cast( + &_SetVelocityResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(SetVelocityResponse& a, SetVelocityResponse& b) { + a.Swap(&b); + } + inline void Swap(SetVelocityResponse* 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(SetVelocityResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetVelocityResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SetVelocityResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SetVelocityResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.SetVelocityResponse"; + } + protected: + explicit SetVelocityResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.base.v1.SetVelocityResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// MoveStraightRequest + +// string name = 1 [json_name = "name"]; +inline void MoveStraightRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& MoveStraightRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.base.v1.MoveStraightRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void MoveStraightRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.base.v1.MoveStraightRequest.name) +} +inline std::string* MoveStraightRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.base.v1.MoveStraightRequest.name) + return _s; +} +inline const std::string& MoveStraightRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void MoveStraightRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* MoveStraightRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* MoveStraightRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.base.v1.MoveStraightRequest.name) + return _impl_.name_.Release(); +} +inline void MoveStraightRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.MoveStraightRequest.name) +} + +// int64 distance_mm = 2 [json_name = "distanceMm"]; +inline void MoveStraightRequest::clear_distance_mm() { + _impl_.distance_mm_ = int64_t{0}; +} +inline int64_t MoveStraightRequest::_internal_distance_mm() const { + return _impl_.distance_mm_; +} +inline int64_t MoveStraightRequest::distance_mm() const { + // @@protoc_insertion_point(field_get:viam.component.base.v1.MoveStraightRequest.distance_mm) + return _internal_distance_mm(); +} +inline void MoveStraightRequest::_internal_set_distance_mm(int64_t value) { + + _impl_.distance_mm_ = value; +} +inline void MoveStraightRequest::set_distance_mm(int64_t value) { + _internal_set_distance_mm(value); + // @@protoc_insertion_point(field_set:viam.component.base.v1.MoveStraightRequest.distance_mm) +} + +// double mm_per_sec = 3 [json_name = "mmPerSec"]; +inline void MoveStraightRequest::clear_mm_per_sec() { + _impl_.mm_per_sec_ = 0; +} +inline double MoveStraightRequest::_internal_mm_per_sec() const { + return _impl_.mm_per_sec_; +} +inline double MoveStraightRequest::mm_per_sec() const { + // @@protoc_insertion_point(field_get:viam.component.base.v1.MoveStraightRequest.mm_per_sec) + return _internal_mm_per_sec(); +} +inline void MoveStraightRequest::_internal_set_mm_per_sec(double value) { + + _impl_.mm_per_sec_ = value; +} +inline void MoveStraightRequest::set_mm_per_sec(double value) { + _internal_set_mm_per_sec(value); + // @@protoc_insertion_point(field_set:viam.component.base.v1.MoveStraightRequest.mm_per_sec) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool MoveStraightRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool MoveStraightRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveStraightRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveStraightRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.base.v1.MoveStraightRequest.extra) + return _internal_extra(); +} +inline void MoveStraightRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.base.v1.MoveStraightRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveStraightRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* MoveStraightRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.base.v1.MoveStraightRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveStraightRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveStraightRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.base.v1.MoveStraightRequest.extra) + return _msg; +} +inline void MoveStraightRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.MoveStraightRequest.extra) +} + +// ------------------------------------------------------------------- + +// MoveStraightResponse + +// ------------------------------------------------------------------- + +// SpinRequest + +// string name = 1 [json_name = "name"]; +inline void SpinRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& SpinRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.base.v1.SpinRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SpinRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.base.v1.SpinRequest.name) +} +inline std::string* SpinRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.base.v1.SpinRequest.name) + return _s; +} +inline const std::string& SpinRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void SpinRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* SpinRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* SpinRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.base.v1.SpinRequest.name) + return _impl_.name_.Release(); +} +inline void SpinRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.SpinRequest.name) +} + +// double angle_deg = 2 [json_name = "angleDeg"]; +inline void SpinRequest::clear_angle_deg() { + _impl_.angle_deg_ = 0; +} +inline double SpinRequest::_internal_angle_deg() const { + return _impl_.angle_deg_; +} +inline double SpinRequest::angle_deg() const { + // @@protoc_insertion_point(field_get:viam.component.base.v1.SpinRequest.angle_deg) + return _internal_angle_deg(); +} +inline void SpinRequest::_internal_set_angle_deg(double value) { + + _impl_.angle_deg_ = value; +} +inline void SpinRequest::set_angle_deg(double value) { + _internal_set_angle_deg(value); + // @@protoc_insertion_point(field_set:viam.component.base.v1.SpinRequest.angle_deg) +} + +// double degs_per_sec = 3 [json_name = "degsPerSec"]; +inline void SpinRequest::clear_degs_per_sec() { + _impl_.degs_per_sec_ = 0; +} +inline double SpinRequest::_internal_degs_per_sec() const { + return _impl_.degs_per_sec_; +} +inline double SpinRequest::degs_per_sec() const { + // @@protoc_insertion_point(field_get:viam.component.base.v1.SpinRequest.degs_per_sec) + return _internal_degs_per_sec(); +} +inline void SpinRequest::_internal_set_degs_per_sec(double value) { + + _impl_.degs_per_sec_ = value; +} +inline void SpinRequest::set_degs_per_sec(double value) { + _internal_set_degs_per_sec(value); + // @@protoc_insertion_point(field_set:viam.component.base.v1.SpinRequest.degs_per_sec) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool SpinRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool SpinRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SpinRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SpinRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.base.v1.SpinRequest.extra) + return _internal_extra(); +} +inline void SpinRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.base.v1.SpinRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SpinRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* SpinRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.base.v1.SpinRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SpinRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SpinRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.base.v1.SpinRequest.extra) + return _msg; +} +inline void SpinRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.SpinRequest.extra) +} + +// ------------------------------------------------------------------- + +// SpinResponse + +// ------------------------------------------------------------------- + +// StopRequest + +// string name = 1 [json_name = "name"]; +inline void StopRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& StopRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.base.v1.StopRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void StopRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.base.v1.StopRequest.name) +} +inline std::string* StopRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.base.v1.StopRequest.name) + return _s; +} +inline const std::string& StopRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void StopRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* StopRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* StopRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.base.v1.StopRequest.name) + return _impl_.name_.Release(); +} +inline void StopRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.StopRequest.name) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool StopRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool StopRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.base.v1.StopRequest.extra) + return _internal_extra(); +} +inline void StopRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.base.v1.StopRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* StopRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.base.v1.StopRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.base.v1.StopRequest.extra) + return _msg; +} +inline void StopRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.StopRequest.extra) +} + +// ------------------------------------------------------------------- + +// StopResponse + +// ------------------------------------------------------------------- + +// SetPowerRequest + +// string name = 1 [json_name = "name"]; +inline void SetPowerRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& SetPowerRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.base.v1.SetPowerRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SetPowerRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.base.v1.SetPowerRequest.name) +} +inline std::string* SetPowerRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.base.v1.SetPowerRequest.name) + return _s; +} +inline const std::string& SetPowerRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void SetPowerRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* SetPowerRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* SetPowerRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.base.v1.SetPowerRequest.name) + return _impl_.name_.Release(); +} +inline void SetPowerRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.SetPowerRequest.name) +} + +// .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; +inline bool SetPowerRequest::_internal_has_linear() const { + return this != internal_default_instance() && _impl_.linear_ != nullptr; +} +inline bool SetPowerRequest::has_linear() const { + return _internal_has_linear(); +} +inline const ::viam::common::v1::Vector3& SetPowerRequest::_internal_linear() const { + const ::viam::common::v1::Vector3* p = _impl_.linear_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Vector3_default_instance_); +} +inline const ::viam::common::v1::Vector3& SetPowerRequest::linear() const { + // @@protoc_insertion_point(field_get:viam.component.base.v1.SetPowerRequest.linear) + return _internal_linear(); +} +inline void SetPowerRequest::unsafe_arena_set_allocated_linear( + ::viam::common::v1::Vector3* linear) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.linear_); + } + _impl_.linear_ = linear; + if (linear) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.base.v1.SetPowerRequest.linear) +} +inline ::viam::common::v1::Vector3* SetPowerRequest::release_linear() { + + ::viam::common::v1::Vector3* temp = _impl_.linear_; + _impl_.linear_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::Vector3* SetPowerRequest::unsafe_arena_release_linear() { + // @@protoc_insertion_point(field_release:viam.component.base.v1.SetPowerRequest.linear) + + ::viam::common::v1::Vector3* temp = _impl_.linear_; + _impl_.linear_ = nullptr; + return temp; +} +inline ::viam::common::v1::Vector3* SetPowerRequest::_internal_mutable_linear() { + + if (_impl_.linear_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArenaForAllocation()); + _impl_.linear_ = p; + } + return _impl_.linear_; +} +inline ::viam::common::v1::Vector3* SetPowerRequest::mutable_linear() { + ::viam::common::v1::Vector3* _msg = _internal_mutable_linear(); + // @@protoc_insertion_point(field_mutable:viam.component.base.v1.SetPowerRequest.linear) + return _msg; +} +inline void SetPowerRequest::set_allocated_linear(::viam::common::v1::Vector3* linear) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.linear_); + } + if (linear) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(linear)); + if (message_arena != submessage_arena) { + linear = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, linear, submessage_arena); + } + + } else { + + } + _impl_.linear_ = linear; + // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.SetPowerRequest.linear) +} + +// .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; +inline bool SetPowerRequest::_internal_has_angular() const { + return this != internal_default_instance() && _impl_.angular_ != nullptr; +} +inline bool SetPowerRequest::has_angular() const { + return _internal_has_angular(); +} +inline const ::viam::common::v1::Vector3& SetPowerRequest::_internal_angular() const { + const ::viam::common::v1::Vector3* p = _impl_.angular_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Vector3_default_instance_); +} +inline const ::viam::common::v1::Vector3& SetPowerRequest::angular() const { + // @@protoc_insertion_point(field_get:viam.component.base.v1.SetPowerRequest.angular) + return _internal_angular(); +} +inline void SetPowerRequest::unsafe_arena_set_allocated_angular( + ::viam::common::v1::Vector3* angular) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.angular_); + } + _impl_.angular_ = angular; + if (angular) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.base.v1.SetPowerRequest.angular) +} +inline ::viam::common::v1::Vector3* SetPowerRequest::release_angular() { + + ::viam::common::v1::Vector3* temp = _impl_.angular_; + _impl_.angular_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::Vector3* SetPowerRequest::unsafe_arena_release_angular() { + // @@protoc_insertion_point(field_release:viam.component.base.v1.SetPowerRequest.angular) + + ::viam::common::v1::Vector3* temp = _impl_.angular_; + _impl_.angular_ = nullptr; + return temp; +} +inline ::viam::common::v1::Vector3* SetPowerRequest::_internal_mutable_angular() { + + if (_impl_.angular_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArenaForAllocation()); + _impl_.angular_ = p; + } + return _impl_.angular_; +} +inline ::viam::common::v1::Vector3* SetPowerRequest::mutable_angular() { + ::viam::common::v1::Vector3* _msg = _internal_mutable_angular(); + // @@protoc_insertion_point(field_mutable:viam.component.base.v1.SetPowerRequest.angular) + return _msg; +} +inline void SetPowerRequest::set_allocated_angular(::viam::common::v1::Vector3* angular) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.angular_); + } + if (angular) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(angular)); + if (message_arena != submessage_arena) { + angular = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, angular, submessage_arena); + } + + } else { + + } + _impl_.angular_ = angular; + // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.SetPowerRequest.angular) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool SetPowerRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool SetPowerRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetPowerRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetPowerRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.base.v1.SetPowerRequest.extra) + return _internal_extra(); +} +inline void SetPowerRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.base.v1.SetPowerRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPowerRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* SetPowerRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.base.v1.SetPowerRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPowerRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPowerRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.base.v1.SetPowerRequest.extra) + return _msg; +} +inline void SetPowerRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.SetPowerRequest.extra) +} + +// ------------------------------------------------------------------- + +// SetPowerResponse + +// ------------------------------------------------------------------- + +// SetVelocityRequest + +// string name = 1 [json_name = "name"]; +inline void SetVelocityRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& SetVelocityRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.base.v1.SetVelocityRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SetVelocityRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.base.v1.SetVelocityRequest.name) +} +inline std::string* SetVelocityRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.base.v1.SetVelocityRequest.name) + return _s; +} +inline const std::string& SetVelocityRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void SetVelocityRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* SetVelocityRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* SetVelocityRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.base.v1.SetVelocityRequest.name) + return _impl_.name_.Release(); +} +inline void SetVelocityRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.SetVelocityRequest.name) +} + +// .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; +inline bool SetVelocityRequest::_internal_has_linear() const { + return this != internal_default_instance() && _impl_.linear_ != nullptr; +} +inline bool SetVelocityRequest::has_linear() const { + return _internal_has_linear(); +} +inline const ::viam::common::v1::Vector3& SetVelocityRequest::_internal_linear() const { + const ::viam::common::v1::Vector3* p = _impl_.linear_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Vector3_default_instance_); +} +inline const ::viam::common::v1::Vector3& SetVelocityRequest::linear() const { + // @@protoc_insertion_point(field_get:viam.component.base.v1.SetVelocityRequest.linear) + return _internal_linear(); +} +inline void SetVelocityRequest::unsafe_arena_set_allocated_linear( + ::viam::common::v1::Vector3* linear) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.linear_); + } + _impl_.linear_ = linear; + if (linear) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.base.v1.SetVelocityRequest.linear) +} +inline ::viam::common::v1::Vector3* SetVelocityRequest::release_linear() { + + ::viam::common::v1::Vector3* temp = _impl_.linear_; + _impl_.linear_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::Vector3* SetVelocityRequest::unsafe_arena_release_linear() { + // @@protoc_insertion_point(field_release:viam.component.base.v1.SetVelocityRequest.linear) + + ::viam::common::v1::Vector3* temp = _impl_.linear_; + _impl_.linear_ = nullptr; + return temp; +} +inline ::viam::common::v1::Vector3* SetVelocityRequest::_internal_mutable_linear() { + + if (_impl_.linear_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArenaForAllocation()); + _impl_.linear_ = p; + } + return _impl_.linear_; +} +inline ::viam::common::v1::Vector3* SetVelocityRequest::mutable_linear() { + ::viam::common::v1::Vector3* _msg = _internal_mutable_linear(); + // @@protoc_insertion_point(field_mutable:viam.component.base.v1.SetVelocityRequest.linear) + return _msg; +} +inline void SetVelocityRequest::set_allocated_linear(::viam::common::v1::Vector3* linear) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.linear_); + } + if (linear) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(linear)); + if (message_arena != submessage_arena) { + linear = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, linear, submessage_arena); + } + + } else { + + } + _impl_.linear_ = linear; + // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.SetVelocityRequest.linear) +} + +// .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; +inline bool SetVelocityRequest::_internal_has_angular() const { + return this != internal_default_instance() && _impl_.angular_ != nullptr; +} +inline bool SetVelocityRequest::has_angular() const { + return _internal_has_angular(); +} +inline const ::viam::common::v1::Vector3& SetVelocityRequest::_internal_angular() const { + const ::viam::common::v1::Vector3* p = _impl_.angular_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Vector3_default_instance_); +} +inline const ::viam::common::v1::Vector3& SetVelocityRequest::angular() const { + // @@protoc_insertion_point(field_get:viam.component.base.v1.SetVelocityRequest.angular) + return _internal_angular(); +} +inline void SetVelocityRequest::unsafe_arena_set_allocated_angular( + ::viam::common::v1::Vector3* angular) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.angular_); + } + _impl_.angular_ = angular; + if (angular) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.base.v1.SetVelocityRequest.angular) +} +inline ::viam::common::v1::Vector3* SetVelocityRequest::release_angular() { + + ::viam::common::v1::Vector3* temp = _impl_.angular_; + _impl_.angular_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::Vector3* SetVelocityRequest::unsafe_arena_release_angular() { + // @@protoc_insertion_point(field_release:viam.component.base.v1.SetVelocityRequest.angular) + + ::viam::common::v1::Vector3* temp = _impl_.angular_; + _impl_.angular_ = nullptr; + return temp; +} +inline ::viam::common::v1::Vector3* SetVelocityRequest::_internal_mutable_angular() { + + if (_impl_.angular_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArenaForAllocation()); + _impl_.angular_ = p; + } + return _impl_.angular_; +} +inline ::viam::common::v1::Vector3* SetVelocityRequest::mutable_angular() { + ::viam::common::v1::Vector3* _msg = _internal_mutable_angular(); + // @@protoc_insertion_point(field_mutable:viam.component.base.v1.SetVelocityRequest.angular) + return _msg; +} +inline void SetVelocityRequest::set_allocated_angular(::viam::common::v1::Vector3* angular) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.angular_); + } + if (angular) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(angular)); + if (message_arena != submessage_arena) { + angular = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, angular, submessage_arena); + } + + } else { + + } + _impl_.angular_ = angular; + // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.SetVelocityRequest.angular) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool SetVelocityRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool SetVelocityRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetVelocityRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetVelocityRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.base.v1.SetVelocityRequest.extra) + return _internal_extra(); +} +inline void SetVelocityRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.base.v1.SetVelocityRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetVelocityRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* SetVelocityRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.base.v1.SetVelocityRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetVelocityRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetVelocityRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.base.v1.SetVelocityRequest.extra) + return _msg; +} +inline void SetVelocityRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.SetVelocityRequest.extra) +} + +// ------------------------------------------------------------------- + +// SetVelocityResponse + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace base +} // namespace component +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fbase_2fv1_2fbase_2eproto diff --git a/src/gen/component/board/v1/board.grpc.pb.cc b/src/gen/component/board/v1/board.grpc.pb.cc new file mode 100644 index 000000000..020c75d68 --- /dev/null +++ b/src/gen/component/board/v1/board.grpc.pb.cc @@ -0,0 +1,428 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/board/v1/board.proto + +#include "component/board/v1/board.pb.h" +#include "component/board/v1/board.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace component { +namespace board { +namespace v1 { + +static const char* BoardService_method_names[] = { + "/viam.component.board.v1.BoardService/Status", + "/viam.component.board.v1.BoardService/SetGPIO", + "/viam.component.board.v1.BoardService/GetGPIO", + "/viam.component.board.v1.BoardService/PWM", + "/viam.component.board.v1.BoardService/SetPWM", + "/viam.component.board.v1.BoardService/PWMFrequency", + "/viam.component.board.v1.BoardService/SetPWMFrequency", + "/viam.component.board.v1.BoardService/ReadAnalogReader", + "/viam.component.board.v1.BoardService/GetDigitalInterruptValue", +}; + +std::unique_ptr< BoardService::Stub> BoardService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< BoardService::Stub> stub(new BoardService::Stub(channel, options)); + return stub; +} + +BoardService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_Status_(BoardService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SetGPIO_(BoardService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetGPIO_(BoardService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PWM_(BoardService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SetPWM_(BoardService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PWMFrequency_(BoardService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SetPWMFrequency_(BoardService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ReadAnalogReader_(BoardService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetDigitalInterruptValue_(BoardService_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status BoardService::Stub::Status(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::viam::component::board::v1::StatusResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::StatusRequest, ::viam::component::board::v1::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Status_, context, request, response); +} + +void BoardService::Stub::async::Status(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest* request, ::viam::component::board::v1::StatusResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::board::v1::StatusRequest, ::viam::component::board::v1::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Status_, context, request, response, std::move(f)); +} + +void BoardService::Stub::async::Status(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest* request, ::viam::component::board::v1::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Status_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::StatusResponse>* BoardService::Stub::PrepareAsyncStatusRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::board::v1::StatusResponse, ::viam::component::board::v1::StatusRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Status_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::StatusResponse>* BoardService::Stub::AsyncStatusRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncStatusRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status BoardService::Stub::SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::viam::component::board::v1::SetGPIOResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetGPIO_, context, request, response); +} + +void BoardService::Stub::async::SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetGPIO_, context, request, response, std::move(f)); +} + +void BoardService::Stub::async::SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetGPIO_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetGPIOResponse>* BoardService::Stub::PrepareAsyncSetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::board::v1::SetGPIOResponse, ::viam::component::board::v1::SetGPIORequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetGPIO_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetGPIOResponse>* BoardService::Stub::AsyncSetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncSetGPIORaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status BoardService::Stub::GetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest& request, ::viam::component::board::v1::GetGPIOResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetGPIO_, context, request, response); +} + +void BoardService::Stub::async::GetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGPIO_, context, request, response, std::move(f)); +} + +void BoardService::Stub::async::GetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGPIO_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetGPIOResponse>* BoardService::Stub::PrepareAsyncGetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::board::v1::GetGPIOResponse, ::viam::component::board::v1::GetGPIORequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetGPIO_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetGPIOResponse>* BoardService::Stub::AsyncGetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetGPIORaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status BoardService::Stub::PWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest& request, ::viam::component::board::v1::PWMResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PWM_, context, request, response); +} + +void BoardService::Stub::async::PWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PWM_, context, request, response, std::move(f)); +} + +void BoardService::Stub::async::PWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PWM_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMResponse>* BoardService::Stub::PrepareAsyncPWMRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::board::v1::PWMResponse, ::viam::component::board::v1::PWMRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PWM_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMResponse>* BoardService::Stub::AsyncPWMRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncPWMRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status BoardService::Stub::SetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest& request, ::viam::component::board::v1::SetPWMResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetPWM_, context, request, response); +} + +void BoardService::Stub::async::SetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPWM_, context, request, response, std::move(f)); +} + +void BoardService::Stub::async::SetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPWM_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMResponse>* BoardService::Stub::PrepareAsyncSetPWMRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::board::v1::SetPWMResponse, ::viam::component::board::v1::SetPWMRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetPWM_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMResponse>* BoardService::Stub::AsyncSetPWMRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncSetPWMRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status BoardService::Stub::PWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest& request, ::viam::component::board::v1::PWMFrequencyResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PWMFrequency_, context, request, response); +} + +void BoardService::Stub::async::PWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PWMFrequency_, context, request, response, std::move(f)); +} + +void BoardService::Stub::async::PWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PWMFrequency_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMFrequencyResponse>* BoardService::Stub::PrepareAsyncPWMFrequencyRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::board::v1::PWMFrequencyResponse, ::viam::component::board::v1::PWMFrequencyRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PWMFrequency_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMFrequencyResponse>* BoardService::Stub::AsyncPWMFrequencyRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncPWMFrequencyRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status BoardService::Stub::SetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest& request, ::viam::component::board::v1::SetPWMFrequencyResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetPWMFrequency_, context, request, response); +} + +void BoardService::Stub::async::SetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPWMFrequency_, context, request, response, std::move(f)); +} + +void BoardService::Stub::async::SetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPWMFrequency_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMFrequencyResponse>* BoardService::Stub::PrepareAsyncSetPWMFrequencyRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::board::v1::SetPWMFrequencyResponse, ::viam::component::board::v1::SetPWMFrequencyRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetPWMFrequency_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMFrequencyResponse>* BoardService::Stub::AsyncSetPWMFrequencyRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncSetPWMFrequencyRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status BoardService::Stub::ReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest& request, ::viam::component::board::v1::ReadAnalogReaderResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ReadAnalogReader_, context, request, response); +} + +void BoardService::Stub::async::ReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ReadAnalogReader_, context, request, response, std::move(f)); +} + +void BoardService::Stub::async::ReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ReadAnalogReader_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::ReadAnalogReaderResponse>* BoardService::Stub::PrepareAsyncReadAnalogReaderRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::board::v1::ReadAnalogReaderResponse, ::viam::component::board::v1::ReadAnalogReaderRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ReadAnalogReader_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::ReadAnalogReaderResponse>* BoardService::Stub::AsyncReadAnalogReaderRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncReadAnalogReaderRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status BoardService::Stub::GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetDigitalInterruptValue_, context, request, response); +} + +void BoardService::Stub::async::GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetDigitalInterruptValue_, context, request, response, std::move(f)); +} + +void BoardService::Stub::async::GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetDigitalInterruptValue_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetDigitalInterruptValueResponse>* BoardService::Stub::PrepareAsyncGetDigitalInterruptValueRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::board::v1::GetDigitalInterruptValueResponse, ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetDigitalInterruptValue_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetDigitalInterruptValueResponse>* BoardService::Stub::AsyncGetDigitalInterruptValueRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetDigitalInterruptValueRaw(context, request, cq); + result->StartCall(); + return result; +} + +BoardService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + BoardService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::StatusRequest, ::viam::component::board::v1::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](BoardService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::board::v1::StatusRequest* req, + ::viam::component::board::v1::StatusResponse* resp) { + return service->Status(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + BoardService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](BoardService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::board::v1::SetGPIORequest* req, + ::viam::component::board::v1::SetGPIOResponse* resp) { + return service->SetGPIO(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + BoardService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](BoardService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::board::v1::GetGPIORequest* req, + ::viam::component::board::v1::GetGPIOResponse* resp) { + return service->GetGPIO(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + BoardService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](BoardService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::board::v1::PWMRequest* req, + ::viam::component::board::v1::PWMResponse* resp) { + return service->PWM(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + BoardService_method_names[4], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](BoardService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::board::v1::SetPWMRequest* req, + ::viam::component::board::v1::SetPWMResponse* resp) { + return service->SetPWM(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + BoardService_method_names[5], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](BoardService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::board::v1::PWMFrequencyRequest* req, + ::viam::component::board::v1::PWMFrequencyResponse* resp) { + return service->PWMFrequency(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + BoardService_method_names[6], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](BoardService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::board::v1::SetPWMFrequencyRequest* req, + ::viam::component::board::v1::SetPWMFrequencyResponse* resp) { + return service->SetPWMFrequency(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + BoardService_method_names[7], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](BoardService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::board::v1::ReadAnalogReaderRequest* req, + ::viam::component::board::v1::ReadAnalogReaderResponse* resp) { + return service->ReadAnalogReader(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + BoardService_method_names[8], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](BoardService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::board::v1::GetDigitalInterruptValueRequest* req, + ::viam::component::board::v1::GetDigitalInterruptValueResponse* resp) { + return service->GetDigitalInterruptValue(ctx, req, resp); + }, this))); +} + +BoardService::Service::~Service() { +} + +::grpc::Status BoardService::Service::Status(::grpc::ServerContext* context, const ::viam::component::board::v1::StatusRequest* request, ::viam::component::board::v1::StatusResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status BoardService::Service::SetGPIO(::grpc::ServerContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status BoardService::Service::GetGPIO(::grpc::ServerContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status BoardService::Service::PWM(::grpc::ServerContext* context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status BoardService::Service::SetPWM(::grpc::ServerContext* context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status BoardService::Service::PWMFrequency(::grpc::ServerContext* context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status BoardService::Service::SetPWMFrequency(::grpc::ServerContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status BoardService::Service::ReadAnalogReader(::grpc::ServerContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status BoardService::Service::GetDigitalInterruptValue(::grpc::ServerContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace component +} // namespace board +} // namespace v1 + diff --git a/src/gen/component/board/v1/board.grpc.pb.h b/src/gen/component/board/v1/board.grpc.pb.h new file mode 100644 index 000000000..71a06d606 --- /dev/null +++ b/src/gen/component/board/v1/board.grpc.pb.h @@ -0,0 +1,1536 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/board/v1/board.proto +#ifndef GRPC_component_2fboard_2fv1_2fboard_2eproto__INCLUDED +#define GRPC_component_2fboard_2fv1_2fboard_2eproto__INCLUDED + +#include "component/board/v1/board.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace component { +namespace board { +namespace v1 { + +// BoardService services all Boards associated with a robot +class BoardService final { + public: + static constexpr char const* service_full_name() { + return "viam.component.board.v1.BoardService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status Status(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::viam::component::board::v1::StatusResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::StatusResponse>> AsyncStatus(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::StatusResponse>>(AsyncStatusRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::StatusResponse>> PrepareAsyncStatus(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::StatusResponse>>(PrepareAsyncStatusRaw(context, request, cq)); + } + virtual ::grpc::Status SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::viam::component::board::v1::SetGPIOResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetGPIOResponse>> AsyncSetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetGPIOResponse>>(AsyncSetGPIORaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetGPIOResponse>> PrepareAsyncSetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetGPIOResponse>>(PrepareAsyncSetGPIORaw(context, request, cq)); + } + // GetGPIO gets the high/low state of the given pin of a board of the underlying robot. + virtual ::grpc::Status GetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest& request, ::viam::component::board::v1::GetGPIOResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::GetGPIOResponse>> AsyncGetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::GetGPIOResponse>>(AsyncGetGPIORaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::GetGPIOResponse>> PrepareAsyncGetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::GetGPIOResponse>>(PrepareAsyncGetGPIORaw(context, request, cq)); + } + // PWM gets the duty cycle of the given pin of a board of the underlying robot. + virtual ::grpc::Status PWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest& request, ::viam::component::board::v1::PWMResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::PWMResponse>> AsyncPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::PWMResponse>>(AsyncPWMRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::PWMResponse>> PrepareAsyncPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::PWMResponse>>(PrepareAsyncPWMRaw(context, request, cq)); + } + // SetPWM sets the given pin of a board of the underlying robot to the given duty cycle. + virtual ::grpc::Status SetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest& request, ::viam::component::board::v1::SetPWMResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetPWMResponse>> AsyncSetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetPWMResponse>>(AsyncSetPWMRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetPWMResponse>> PrepareAsyncSetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetPWMResponse>>(PrepareAsyncSetPWMRaw(context, request, cq)); + } + // PWMFrequency gets the PWM frequency of the given pin of a board of the underlying robot. + virtual ::grpc::Status PWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest& request, ::viam::component::board::v1::PWMFrequencyResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::PWMFrequencyResponse>> AsyncPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::PWMFrequencyResponse>>(AsyncPWMFrequencyRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::PWMFrequencyResponse>> PrepareAsyncPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::PWMFrequencyResponse>>(PrepareAsyncPWMFrequencyRaw(context, request, cq)); + } + // SetPWMFrequency sets the given pin of a board of the underlying robot to the given PWM frequency. 0 will use the board's default PWM frequency. + virtual ::grpc::Status SetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest& request, ::viam::component::board::v1::SetPWMFrequencyResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetPWMFrequencyResponse>> AsyncSetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetPWMFrequencyResponse>>(AsyncSetPWMFrequencyRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetPWMFrequencyResponse>> PrepareAsyncSetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetPWMFrequencyResponse>>(PrepareAsyncSetPWMFrequencyRaw(context, request, cq)); + } + // Analog Reader + // + // ReadAnalogReader reads off the current value of an analog reader of a board of the underlying robot. + virtual ::grpc::Status ReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest& request, ::viam::component::board::v1::ReadAnalogReaderResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::ReadAnalogReaderResponse>> AsyncReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::ReadAnalogReaderResponse>>(AsyncReadAnalogReaderRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::ReadAnalogReaderResponse>> PrepareAsyncReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::ReadAnalogReaderResponse>>(PrepareAsyncReadAnalogReaderRaw(context, request, cq)); + } + // Digital Interrupt + // + // GetDigitalInterruptValue returns the current value of the interrupt which is based on the type of interrupt. + virtual ::grpc::Status GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::GetDigitalInterruptValueResponse>> AsyncGetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::GetDigitalInterruptValueResponse>>(AsyncGetDigitalInterruptValueRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::GetDigitalInterruptValueResponse>> PrepareAsyncGetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::GetDigitalInterruptValueResponse>>(PrepareAsyncGetDigitalInterruptValueRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void Status(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest* request, ::viam::component::board::v1::StatusResponse* response, std::function) = 0; + virtual void Status(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest* request, ::viam::component::board::v1::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response, std::function) = 0; + virtual void SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GetGPIO gets the high/low state of the given pin of a board of the underlying robot. + virtual void GetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response, std::function) = 0; + virtual void GetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // PWM gets the duty cycle of the given pin of a board of the underlying robot. + virtual void PWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response, std::function) = 0; + virtual void PWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // SetPWM sets the given pin of a board of the underlying robot to the given duty cycle. + virtual void SetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response, std::function) = 0; + virtual void SetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // PWMFrequency gets the PWM frequency of the given pin of a board of the underlying robot. + virtual void PWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response, std::function) = 0; + virtual void PWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // SetPWMFrequency sets the given pin of a board of the underlying robot to the given PWM frequency. 0 will use the board's default PWM frequency. + virtual void SetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, std::function) = 0; + virtual void SetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Analog Reader + // + // ReadAnalogReader reads off the current value of an analog reader of a board of the underlying robot. + virtual void ReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, std::function) = 0; + virtual void ReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Digital Interrupt + // + // GetDigitalInterruptValue returns the current value of the interrupt which is based on the type of interrupt. + virtual void GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, std::function) = 0; + virtual void GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + }; + typedef class async_interface experimental_async_interface; + virtual class async_interface* async() { return nullptr; } + class async_interface* experimental_async() { return async(); } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::StatusResponse>* AsyncStatusRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::StatusResponse>* PrepareAsyncStatusRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetGPIOResponse>* AsyncSetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetGPIOResponse>* PrepareAsyncSetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::GetGPIOResponse>* AsyncGetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::GetGPIOResponse>* PrepareAsyncGetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::PWMResponse>* AsyncPWMRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::PWMResponse>* PrepareAsyncPWMRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetPWMResponse>* AsyncSetPWMRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetPWMResponse>* PrepareAsyncSetPWMRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::PWMFrequencyResponse>* AsyncPWMFrequencyRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::PWMFrequencyResponse>* PrepareAsyncPWMFrequencyRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetPWMFrequencyResponse>* AsyncSetPWMFrequencyRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetPWMFrequencyResponse>* PrepareAsyncSetPWMFrequencyRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::ReadAnalogReaderResponse>* AsyncReadAnalogReaderRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::ReadAnalogReaderResponse>* PrepareAsyncReadAnalogReaderRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::GetDigitalInterruptValueResponse>* AsyncGetDigitalInterruptValueRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::GetDigitalInterruptValueResponse>* PrepareAsyncGetDigitalInterruptValueRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + ::grpc::Status Status(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::viam::component::board::v1::StatusResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::StatusResponse>> AsyncStatus(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::StatusResponse>>(AsyncStatusRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::StatusResponse>> PrepareAsyncStatus(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::StatusResponse>>(PrepareAsyncStatusRaw(context, request, cq)); + } + ::grpc::Status SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::viam::component::board::v1::SetGPIOResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetGPIOResponse>> AsyncSetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetGPIOResponse>>(AsyncSetGPIORaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetGPIOResponse>> PrepareAsyncSetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetGPIOResponse>>(PrepareAsyncSetGPIORaw(context, request, cq)); + } + ::grpc::Status GetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest& request, ::viam::component::board::v1::GetGPIOResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetGPIOResponse>> AsyncGetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetGPIOResponse>>(AsyncGetGPIORaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetGPIOResponse>> PrepareAsyncGetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetGPIOResponse>>(PrepareAsyncGetGPIORaw(context, request, cq)); + } + ::grpc::Status PWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest& request, ::viam::component::board::v1::PWMResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMResponse>> AsyncPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMResponse>>(AsyncPWMRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMResponse>> PrepareAsyncPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMResponse>>(PrepareAsyncPWMRaw(context, request, cq)); + } + ::grpc::Status SetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest& request, ::viam::component::board::v1::SetPWMResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMResponse>> AsyncSetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMResponse>>(AsyncSetPWMRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMResponse>> PrepareAsyncSetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMResponse>>(PrepareAsyncSetPWMRaw(context, request, cq)); + } + ::grpc::Status PWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest& request, ::viam::component::board::v1::PWMFrequencyResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMFrequencyResponse>> AsyncPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMFrequencyResponse>>(AsyncPWMFrequencyRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMFrequencyResponse>> PrepareAsyncPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMFrequencyResponse>>(PrepareAsyncPWMFrequencyRaw(context, request, cq)); + } + ::grpc::Status SetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest& request, ::viam::component::board::v1::SetPWMFrequencyResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMFrequencyResponse>> AsyncSetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMFrequencyResponse>>(AsyncSetPWMFrequencyRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMFrequencyResponse>> PrepareAsyncSetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMFrequencyResponse>>(PrepareAsyncSetPWMFrequencyRaw(context, request, cq)); + } + ::grpc::Status ReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest& request, ::viam::component::board::v1::ReadAnalogReaderResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::ReadAnalogReaderResponse>> AsyncReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::ReadAnalogReaderResponse>>(AsyncReadAnalogReaderRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::ReadAnalogReaderResponse>> PrepareAsyncReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::ReadAnalogReaderResponse>>(PrepareAsyncReadAnalogReaderRaw(context, request, cq)); + } + ::grpc::Status GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetDigitalInterruptValueResponse>> AsyncGetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetDigitalInterruptValueResponse>>(AsyncGetDigitalInterruptValueRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetDigitalInterruptValueResponse>> PrepareAsyncGetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetDigitalInterruptValueResponse>>(PrepareAsyncGetDigitalInterruptValueRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void Status(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest* request, ::viam::component::board::v1::StatusResponse* response, std::function) override; + void Status(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest* request, ::viam::component::board::v1::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response, std::function) override; + void SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response, std::function) override; + void GetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void PWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response, std::function) override; + void PWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void SetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response, std::function) override; + void SetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void PWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response, std::function) override; + void PWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void SetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, std::function) override; + void SetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void ReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, std::function) override; + void ReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, std::function) override; + void GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + 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::ClientAsyncResponseReader< ::viam::component::board::v1::StatusResponse>* AsyncStatusRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::StatusResponse>* PrepareAsyncStatusRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetGPIOResponse>* AsyncSetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetGPIOResponse>* PrepareAsyncSetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetGPIOResponse>* AsyncGetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetGPIOResponse>* PrepareAsyncGetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMResponse>* AsyncPWMRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMResponse>* PrepareAsyncPWMRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMResponse>* AsyncSetPWMRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMResponse>* PrepareAsyncSetPWMRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMFrequencyResponse>* AsyncPWMFrequencyRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMFrequencyResponse>* PrepareAsyncPWMFrequencyRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMFrequencyResponse>* AsyncSetPWMFrequencyRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMFrequencyResponse>* PrepareAsyncSetPWMFrequencyRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::ReadAnalogReaderResponse>* AsyncReadAnalogReaderRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::ReadAnalogReaderResponse>* PrepareAsyncReadAnalogReaderRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetDigitalInterruptValueResponse>* AsyncGetDigitalInterruptValueRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetDigitalInterruptValueResponse>* PrepareAsyncGetDigitalInterruptValueRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_Status_; + const ::grpc::internal::RpcMethod rpcmethod_SetGPIO_; + const ::grpc::internal::RpcMethod rpcmethod_GetGPIO_; + const ::grpc::internal::RpcMethod rpcmethod_PWM_; + const ::grpc::internal::RpcMethod rpcmethod_SetPWM_; + const ::grpc::internal::RpcMethod rpcmethod_PWMFrequency_; + const ::grpc::internal::RpcMethod rpcmethod_SetPWMFrequency_; + const ::grpc::internal::RpcMethod rpcmethod_ReadAnalogReader_; + const ::grpc::internal::RpcMethod rpcmethod_GetDigitalInterruptValue_; + }; + 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(); + virtual ::grpc::Status Status(::grpc::ServerContext* context, const ::viam::component::board::v1::StatusRequest* request, ::viam::component::board::v1::StatusResponse* response); + virtual ::grpc::Status SetGPIO(::grpc::ServerContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response); + // GetGPIO gets the high/low state of the given pin of a board of the underlying robot. + virtual ::grpc::Status GetGPIO(::grpc::ServerContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response); + // PWM gets the duty cycle of the given pin of a board of the underlying robot. + virtual ::grpc::Status PWM(::grpc::ServerContext* context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response); + // SetPWM sets the given pin of a board of the underlying robot to the given duty cycle. + virtual ::grpc::Status SetPWM(::grpc::ServerContext* context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response); + // PWMFrequency gets the PWM frequency of the given pin of a board of the underlying robot. + virtual ::grpc::Status PWMFrequency(::grpc::ServerContext* context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response); + // SetPWMFrequency sets the given pin of a board of the underlying robot to the given PWM frequency. 0 will use the board's default PWM frequency. + virtual ::grpc::Status SetPWMFrequency(::grpc::ServerContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response); + // Analog Reader + // + // ReadAnalogReader reads off the current value of an analog reader of a board of the underlying robot. + virtual ::grpc::Status ReadAnalogReader(::grpc::ServerContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response); + // Digital Interrupt + // + // GetDigitalInterruptValue returns the current value of the interrupt which is based on the type of interrupt. + virtual ::grpc::Status GetDigitalInterruptValue(::grpc::ServerContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response); + }; + template + class WithAsyncMethod_Status : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Status() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_Status() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Status(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::StatusRequest* /*request*/, ::viam::component::board::v1::StatusResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestStatus(::grpc::ServerContext* context, ::viam::component::board::v1::StatusRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::board::v1::StatusResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_SetGPIO : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_SetGPIO() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_SetGPIO() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetGPIO(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::SetGPIORequest* /*request*/, ::viam::component::board::v1::SetGPIOResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetGPIO(::grpc::ServerContext* context, ::viam::component::board::v1::SetGPIORequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::board::v1::SetGPIOResponse>* 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 WithAsyncMethod_GetGPIO : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetGPIO() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_GetGPIO() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetGPIO(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::GetGPIORequest* /*request*/, ::viam::component::board::v1::GetGPIOResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetGPIO(::grpc::ServerContext* context, ::viam::component::board::v1::GetGPIORequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::board::v1::GetGPIOResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_PWM : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_PWM() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_PWM() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PWM(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::PWMRequest* /*request*/, ::viam::component::board::v1::PWMResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPWM(::grpc::ServerContext* context, ::viam::component::board::v1::PWMRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::board::v1::PWMResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_SetPWM : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_SetPWM() { + ::grpc::Service::MarkMethodAsync(4); + } + ~WithAsyncMethod_SetPWM() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPWM(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::SetPWMRequest* /*request*/, ::viam::component::board::v1::SetPWMResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetPWM(::grpc::ServerContext* context, ::viam::component::board::v1::SetPWMRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::board::v1::SetPWMResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_PWMFrequency : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_PWMFrequency() { + ::grpc::Service::MarkMethodAsync(5); + } + ~WithAsyncMethod_PWMFrequency() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PWMFrequency(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::PWMFrequencyRequest* /*request*/, ::viam::component::board::v1::PWMFrequencyResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPWMFrequency(::grpc::ServerContext* context, ::viam::component::board::v1::PWMFrequencyRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::board::v1::PWMFrequencyResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_SetPWMFrequency : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_SetPWMFrequency() { + ::grpc::Service::MarkMethodAsync(6); + } + ~WithAsyncMethod_SetPWMFrequency() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPWMFrequency(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::SetPWMFrequencyRequest* /*request*/, ::viam::component::board::v1::SetPWMFrequencyResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetPWMFrequency(::grpc::ServerContext* context, ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::board::v1::SetPWMFrequencyResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ReadAnalogReader : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ReadAnalogReader() { + ::grpc::Service::MarkMethodAsync(7); + } + ~WithAsyncMethod_ReadAnalogReader() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReadAnalogReader(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::ReadAnalogReaderRequest* /*request*/, ::viam::component::board::v1::ReadAnalogReaderResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestReadAnalogReader(::grpc::ServerContext* context, ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::board::v1::ReadAnalogReaderResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetDigitalInterruptValue : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetDigitalInterruptValue() { + ::grpc::Service::MarkMethodAsync(8); + } + ~WithAsyncMethod_GetDigitalInterruptValue() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDigitalInterruptValue(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* /*request*/, ::viam::component::board::v1::GetDigitalInterruptValueResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetDigitalInterruptValue(::grpc::ServerContext* context, ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::board::v1::GetDigitalInterruptValueResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_Status > > > > > > > > AsyncService; + template + class WithCallbackMethod_Status : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Status() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::StatusRequest, ::viam::component::board::v1::StatusResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::StatusRequest* request, ::viam::component::board::v1::StatusResponse* response) { return this->Status(context, request, response); }));} + void SetMessageAllocatorFor_Status( + ::grpc::MessageAllocator< ::viam::component::board::v1::StatusRequest, ::viam::component::board::v1::StatusResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::StatusRequest, ::viam::component::board::v1::StatusResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Status() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Status(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::StatusRequest* /*request*/, ::viam::component::board::v1::StatusResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Status( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::StatusRequest* /*request*/, ::viam::component::board::v1::StatusResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_SetGPIO : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_SetGPIO() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response) { return this->SetGPIO(context, request, response); }));} + void SetMessageAllocatorFor_SetGPIO( + ::grpc::MessageAllocator< ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_SetGPIO() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetGPIO(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::SetGPIORequest* /*request*/, ::viam::component::board::v1::SetGPIOResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SetGPIO( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::SetGPIORequest* /*request*/, ::viam::component::board::v1::SetGPIOResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetGPIO : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetGPIO() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response) { return this->GetGPIO(context, request, response); }));} + void SetMessageAllocatorFor_GetGPIO( + ::grpc::MessageAllocator< ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetGPIO() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetGPIO(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::GetGPIORequest* /*request*/, ::viam::component::board::v1::GetGPIOResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetGPIO( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::GetGPIORequest* /*request*/, ::viam::component::board::v1::GetGPIOResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_PWM : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_PWM() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response) { return this->PWM(context, request, response); }));} + void SetMessageAllocatorFor_PWM( + ::grpc::MessageAllocator< ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_PWM() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PWM(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::PWMRequest* /*request*/, ::viam::component::board::v1::PWMResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* PWM( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::PWMRequest* /*request*/, ::viam::component::board::v1::PWMResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_SetPWM : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_SetPWM() { + ::grpc::Service::MarkMethodCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response) { return this->SetPWM(context, request, response); }));} + void SetMessageAllocatorFor_SetPWM( + ::grpc::MessageAllocator< ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_SetPWM() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPWM(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::SetPWMRequest* /*request*/, ::viam::component::board::v1::SetPWMResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SetPWM( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::SetPWMRequest* /*request*/, ::viam::component::board::v1::SetPWMResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_PWMFrequency : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_PWMFrequency() { + ::grpc::Service::MarkMethodCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response) { return this->PWMFrequency(context, request, response); }));} + void SetMessageAllocatorFor_PWMFrequency( + ::grpc::MessageAllocator< ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_PWMFrequency() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PWMFrequency(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::PWMFrequencyRequest* /*request*/, ::viam::component::board::v1::PWMFrequencyResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* PWMFrequency( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::PWMFrequencyRequest* /*request*/, ::viam::component::board::v1::PWMFrequencyResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_SetPWMFrequency : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_SetPWMFrequency() { + ::grpc::Service::MarkMethodCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response) { return this->SetPWMFrequency(context, request, response); }));} + void SetMessageAllocatorFor_SetPWMFrequency( + ::grpc::MessageAllocator< ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_SetPWMFrequency() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPWMFrequency(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::SetPWMFrequencyRequest* /*request*/, ::viam::component::board::v1::SetPWMFrequencyResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SetPWMFrequency( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::SetPWMFrequencyRequest* /*request*/, ::viam::component::board::v1::SetPWMFrequencyResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_ReadAnalogReader : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_ReadAnalogReader() { + ::grpc::Service::MarkMethodCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response) { return this->ReadAnalogReader(context, request, response); }));} + void SetMessageAllocatorFor_ReadAnalogReader( + ::grpc::MessageAllocator< ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_ReadAnalogReader() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReadAnalogReader(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::ReadAnalogReaderRequest* /*request*/, ::viam::component::board::v1::ReadAnalogReaderResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ReadAnalogReader( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::ReadAnalogReaderRequest* /*request*/, ::viam::component::board::v1::ReadAnalogReaderResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetDigitalInterruptValue : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetDigitalInterruptValue() { + ::grpc::Service::MarkMethodCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response) { return this->GetDigitalInterruptValue(context, request, response); }));} + void SetMessageAllocatorFor_GetDigitalInterruptValue( + ::grpc::MessageAllocator< ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetDigitalInterruptValue() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDigitalInterruptValue(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* /*request*/, ::viam::component::board::v1::GetDigitalInterruptValueResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetDigitalInterruptValue( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* /*request*/, ::viam::component::board::v1::GetDigitalInterruptValueResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_Status > > > > > > > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_Status : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Status() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_Status() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Status(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::StatusRequest* /*request*/, ::viam::component::board::v1::StatusResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_SetGPIO : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_SetGPIO() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_SetGPIO() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetGPIO(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::SetGPIORequest* /*request*/, ::viam::component::board::v1::SetGPIOResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetGPIO : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetGPIO() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_GetGPIO() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetGPIO(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::GetGPIORequest* /*request*/, ::viam::component::board::v1::GetGPIOResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_PWM : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_PWM() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_PWM() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PWM(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::PWMRequest* /*request*/, ::viam::component::board::v1::PWMResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_SetPWM : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_SetPWM() { + ::grpc::Service::MarkMethodGeneric(4); + } + ~WithGenericMethod_SetPWM() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPWM(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::SetPWMRequest* /*request*/, ::viam::component::board::v1::SetPWMResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_PWMFrequency : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_PWMFrequency() { + ::grpc::Service::MarkMethodGeneric(5); + } + ~WithGenericMethod_PWMFrequency() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PWMFrequency(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::PWMFrequencyRequest* /*request*/, ::viam::component::board::v1::PWMFrequencyResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_SetPWMFrequency : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_SetPWMFrequency() { + ::grpc::Service::MarkMethodGeneric(6); + } + ~WithGenericMethod_SetPWMFrequency() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPWMFrequency(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::SetPWMFrequencyRequest* /*request*/, ::viam::component::board::v1::SetPWMFrequencyResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ReadAnalogReader : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ReadAnalogReader() { + ::grpc::Service::MarkMethodGeneric(7); + } + ~WithGenericMethod_ReadAnalogReader() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReadAnalogReader(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::ReadAnalogReaderRequest* /*request*/, ::viam::component::board::v1::ReadAnalogReaderResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetDigitalInterruptValue : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetDigitalInterruptValue() { + ::grpc::Service::MarkMethodGeneric(8); + } + ~WithGenericMethod_GetDigitalInterruptValue() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDigitalInterruptValue(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* /*request*/, ::viam::component::board::v1::GetDigitalInterruptValueResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_Status : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Status() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_Status() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Status(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::StatusRequest* /*request*/, ::viam::component::board::v1::StatusResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestStatus(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_SetGPIO : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_SetGPIO() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_SetGPIO() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetGPIO(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::SetGPIORequest* /*request*/, ::viam::component::board::v1::SetGPIOResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetGPIO(::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 WithRawMethod_GetGPIO : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetGPIO() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_GetGPIO() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetGPIO(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::GetGPIORequest* /*request*/, ::viam::component::board::v1::GetGPIOResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetGPIO(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_PWM : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_PWM() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_PWM() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PWM(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::PWMRequest* /*request*/, ::viam::component::board::v1::PWMResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPWM(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_SetPWM : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_SetPWM() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_SetPWM() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPWM(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::SetPWMRequest* /*request*/, ::viam::component::board::v1::SetPWMResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetPWM(::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(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_PWMFrequency : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_PWMFrequency() { + ::grpc::Service::MarkMethodRaw(5); + } + ~WithRawMethod_PWMFrequency() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PWMFrequency(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::PWMFrequencyRequest* /*request*/, ::viam::component::board::v1::PWMFrequencyResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPWMFrequency(::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(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_SetPWMFrequency : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_SetPWMFrequency() { + ::grpc::Service::MarkMethodRaw(6); + } + ~WithRawMethod_SetPWMFrequency() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPWMFrequency(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::SetPWMFrequencyRequest* /*request*/, ::viam::component::board::v1::SetPWMFrequencyResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetPWMFrequency(::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(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ReadAnalogReader : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ReadAnalogReader() { + ::grpc::Service::MarkMethodRaw(7); + } + ~WithRawMethod_ReadAnalogReader() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReadAnalogReader(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::ReadAnalogReaderRequest* /*request*/, ::viam::component::board::v1::ReadAnalogReaderResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestReadAnalogReader(::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(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetDigitalInterruptValue : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetDigitalInterruptValue() { + ::grpc::Service::MarkMethodRaw(8); + } + ~WithRawMethod_GetDigitalInterruptValue() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDigitalInterruptValue(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* /*request*/, ::viam::component::board::v1::GetDigitalInterruptValueResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetDigitalInterruptValue(::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(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_Status : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Status() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Status(context, request, response); })); + } + ~WithRawCallbackMethod_Status() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Status(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::StatusRequest* /*request*/, ::viam::component::board::v1::StatusResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Status( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_SetGPIO : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_SetGPIO() { + ::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->SetGPIO(context, request, response); })); + } + ~WithRawCallbackMethod_SetGPIO() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetGPIO(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::SetGPIORequest* /*request*/, ::viam::component::board::v1::SetGPIOResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SetGPIO( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetGPIO : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetGPIO() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGPIO(context, request, response); })); + } + ~WithRawCallbackMethod_GetGPIO() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetGPIO(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::GetGPIORequest* /*request*/, ::viam::component::board::v1::GetGPIOResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetGPIO( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_PWM : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_PWM() { + ::grpc::Service::MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PWM(context, request, response); })); + } + ~WithRawCallbackMethod_PWM() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PWM(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::PWMRequest* /*request*/, ::viam::component::board::v1::PWMResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* PWM( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_SetPWM : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_SetPWM() { + ::grpc::Service::MarkMethodRawCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetPWM(context, request, response); })); + } + ~WithRawCallbackMethod_SetPWM() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPWM(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::SetPWMRequest* /*request*/, ::viam::component::board::v1::SetPWMResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SetPWM( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_PWMFrequency : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_PWMFrequency() { + ::grpc::Service::MarkMethodRawCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PWMFrequency(context, request, response); })); + } + ~WithRawCallbackMethod_PWMFrequency() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PWMFrequency(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::PWMFrequencyRequest* /*request*/, ::viam::component::board::v1::PWMFrequencyResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* PWMFrequency( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_SetPWMFrequency : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_SetPWMFrequency() { + ::grpc::Service::MarkMethodRawCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetPWMFrequency(context, request, response); })); + } + ~WithRawCallbackMethod_SetPWMFrequency() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPWMFrequency(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::SetPWMFrequencyRequest* /*request*/, ::viam::component::board::v1::SetPWMFrequencyResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SetPWMFrequency( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_ReadAnalogReader : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_ReadAnalogReader() { + ::grpc::Service::MarkMethodRawCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ReadAnalogReader(context, request, response); })); + } + ~WithRawCallbackMethod_ReadAnalogReader() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReadAnalogReader(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::ReadAnalogReaderRequest* /*request*/, ::viam::component::board::v1::ReadAnalogReaderResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ReadAnalogReader( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetDigitalInterruptValue : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetDigitalInterruptValue() { + ::grpc::Service::MarkMethodRawCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetDigitalInterruptValue(context, request, response); })); + } + ~WithRawCallbackMethod_GetDigitalInterruptValue() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDigitalInterruptValue(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* /*request*/, ::viam::component::board::v1::GetDigitalInterruptValueResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetDigitalInterruptValue( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_Status : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Status() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::board::v1::StatusRequest, ::viam::component::board::v1::StatusResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::board::v1::StatusRequest, ::viam::component::board::v1::StatusResponse>* streamer) { + return this->StreamedStatus(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Status() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Status(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::StatusRequest* /*request*/, ::viam::component::board::v1::StatusResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedStatus(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::board::v1::StatusRequest,::viam::component::board::v1::StatusResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_SetGPIO : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_SetGPIO() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse>* streamer) { + return this->StreamedSetGPIO(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_SetGPIO() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status SetGPIO(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::SetGPIORequest* /*request*/, ::viam::component::board::v1::SetGPIOResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedSetGPIO(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::board::v1::SetGPIORequest,::viam::component::board::v1::SetGPIOResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetGPIO : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetGPIO() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse>* streamer) { + return this->StreamedGetGPIO(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetGPIO() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetGPIO(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::GetGPIORequest* /*request*/, ::viam::component::board::v1::GetGPIOResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetGPIO(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::board::v1::GetGPIORequest,::viam::component::board::v1::GetGPIOResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_PWM : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_PWM() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse>* streamer) { + return this->StreamedPWM(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_PWM() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status PWM(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::PWMRequest* /*request*/, ::viam::component::board::v1::PWMResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedPWM(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::board::v1::PWMRequest,::viam::component::board::v1::PWMResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_SetPWM : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_SetPWM() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse>* streamer) { + return this->StreamedSetPWM(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_SetPWM() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status SetPWM(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::SetPWMRequest* /*request*/, ::viam::component::board::v1::SetPWMResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedSetPWM(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::board::v1::SetPWMRequest,::viam::component::board::v1::SetPWMResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_PWMFrequency : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_PWMFrequency() { + ::grpc::Service::MarkMethodStreamed(5, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse>* streamer) { + return this->StreamedPWMFrequency(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_PWMFrequency() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status PWMFrequency(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::PWMFrequencyRequest* /*request*/, ::viam::component::board::v1::PWMFrequencyResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedPWMFrequency(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::board::v1::PWMFrequencyRequest,::viam::component::board::v1::PWMFrequencyResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_SetPWMFrequency : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_SetPWMFrequency() { + ::grpc::Service::MarkMethodStreamed(6, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse>* streamer) { + return this->StreamedSetPWMFrequency(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_SetPWMFrequency() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status SetPWMFrequency(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::SetPWMFrequencyRequest* /*request*/, ::viam::component::board::v1::SetPWMFrequencyResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedSetPWMFrequency(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::board::v1::SetPWMFrequencyRequest,::viam::component::board::v1::SetPWMFrequencyResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ReadAnalogReader : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ReadAnalogReader() { + ::grpc::Service::MarkMethodStreamed(7, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse>* streamer) { + return this->StreamedReadAnalogReader(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ReadAnalogReader() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ReadAnalogReader(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::ReadAnalogReaderRequest* /*request*/, ::viam::component::board::v1::ReadAnalogReaderResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedReadAnalogReader(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::board::v1::ReadAnalogReaderRequest,::viam::component::board::v1::ReadAnalogReaderResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetDigitalInterruptValue : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetDigitalInterruptValue() { + ::grpc::Service::MarkMethodStreamed(8, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse>* streamer) { + return this->StreamedGetDigitalInterruptValue(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetDigitalInterruptValue() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetDigitalInterruptValue(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* /*request*/, ::viam::component::board::v1::GetDigitalInterruptValueResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetDigitalInterruptValue(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::board::v1::GetDigitalInterruptValueRequest,::viam::component::board::v1::GetDigitalInterruptValueResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_Status > > > > > > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_Status > > > > > > > > StreamedService; +}; + +} // namespace v1 +} // namespace board +} // namespace component +} // namespace viam + + +#endif // GRPC_component_2fboard_2fv1_2fboard_2eproto__INCLUDED diff --git a/src/gen/component/board/v1/board.pb.cc b/src/gen/component/board/v1/board.pb.cc new file mode 100644 index 000000000..4314bc66c --- /dev/null +++ b/src/gen/component/board/v1/board.pb.cc @@ -0,0 +1,4645 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/board/v1/board.proto + +#include "component/board/v1/board.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 component { +namespace board { +namespace v1 { +PROTOBUF_CONSTEXPR StatusRequest::StatusRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StatusRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StatusRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StatusRequestDefaultTypeInternal() {} + union { + StatusRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusRequestDefaultTypeInternal _StatusRequest_default_instance_; +PROTOBUF_CONSTEXPR StatusResponse::StatusResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.status_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StatusResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StatusResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StatusResponseDefaultTypeInternal() {} + union { + StatusResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusResponseDefaultTypeInternal _StatusResponse_default_instance_; +PROTOBUF_CONSTEXPR SetGPIORequest::SetGPIORequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.pin_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_.high_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SetGPIORequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetGPIORequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetGPIORequestDefaultTypeInternal() {} + union { + SetGPIORequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetGPIORequestDefaultTypeInternal _SetGPIORequest_default_instance_; +PROTOBUF_CONSTEXPR SetGPIOResponse::SetGPIOResponse( + ::_pbi::ConstantInitialized) {} +struct SetGPIOResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetGPIOResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetGPIOResponseDefaultTypeInternal() {} + union { + SetGPIOResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetGPIOResponseDefaultTypeInternal _SetGPIOResponse_default_instance_; +PROTOBUF_CONSTEXPR GetGPIORequest::GetGPIORequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.pin_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetGPIORequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetGPIORequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetGPIORequestDefaultTypeInternal() {} + union { + GetGPIORequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetGPIORequestDefaultTypeInternal _GetGPIORequest_default_instance_; +PROTOBUF_CONSTEXPR GetGPIOResponse::GetGPIOResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.high_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetGPIOResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetGPIOResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetGPIOResponseDefaultTypeInternal() {} + union { + GetGPIOResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetGPIOResponseDefaultTypeInternal _GetGPIOResponse_default_instance_; +PROTOBUF_CONSTEXPR PWMRequest::PWMRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.pin_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct PWMRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR PWMRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PWMRequestDefaultTypeInternal() {} + union { + PWMRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PWMRequestDefaultTypeInternal _PWMRequest_default_instance_; +PROTOBUF_CONSTEXPR PWMResponse::PWMResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.duty_cycle_pct_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct PWMResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR PWMResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PWMResponseDefaultTypeInternal() {} + union { + PWMResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PWMResponseDefaultTypeInternal _PWMResponse_default_instance_; +PROTOBUF_CONSTEXPR SetPWMRequest::SetPWMRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.pin_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_.duty_cycle_pct_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SetPWMRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetPWMRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetPWMRequestDefaultTypeInternal() {} + union { + SetPWMRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPWMRequestDefaultTypeInternal _SetPWMRequest_default_instance_; +PROTOBUF_CONSTEXPR SetPWMResponse::SetPWMResponse( + ::_pbi::ConstantInitialized) {} +struct SetPWMResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetPWMResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetPWMResponseDefaultTypeInternal() {} + union { + SetPWMResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPWMResponseDefaultTypeInternal _SetPWMResponse_default_instance_; +PROTOBUF_CONSTEXPR PWMFrequencyRequest::PWMFrequencyRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.pin_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct PWMFrequencyRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR PWMFrequencyRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PWMFrequencyRequestDefaultTypeInternal() {} + union { + PWMFrequencyRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PWMFrequencyRequestDefaultTypeInternal _PWMFrequencyRequest_default_instance_; +PROTOBUF_CONSTEXPR PWMFrequencyResponse::PWMFrequencyResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.frequency_hz_)*/uint64_t{0u} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct PWMFrequencyResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR PWMFrequencyResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PWMFrequencyResponseDefaultTypeInternal() {} + union { + PWMFrequencyResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PWMFrequencyResponseDefaultTypeInternal _PWMFrequencyResponse_default_instance_; +PROTOBUF_CONSTEXPR SetPWMFrequencyRequest::SetPWMFrequencyRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.pin_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_.frequency_hz_)*/uint64_t{0u} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SetPWMFrequencyRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetPWMFrequencyRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetPWMFrequencyRequestDefaultTypeInternal() {} + union { + SetPWMFrequencyRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPWMFrequencyRequestDefaultTypeInternal _SetPWMFrequencyRequest_default_instance_; +PROTOBUF_CONSTEXPR SetPWMFrequencyResponse::SetPWMFrequencyResponse( + ::_pbi::ConstantInitialized) {} +struct SetPWMFrequencyResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetPWMFrequencyResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetPWMFrequencyResponseDefaultTypeInternal() {} + union { + SetPWMFrequencyResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPWMFrequencyResponseDefaultTypeInternal _SetPWMFrequencyResponse_default_instance_; +PROTOBUF_CONSTEXPR ReadAnalogReaderRequest::ReadAnalogReaderRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.board_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.analog_reader_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ReadAnalogReaderRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ReadAnalogReaderRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ReadAnalogReaderRequestDefaultTypeInternal() {} + union { + ReadAnalogReaderRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReadAnalogReaderRequestDefaultTypeInternal _ReadAnalogReaderRequest_default_instance_; +PROTOBUF_CONSTEXPR ReadAnalogReaderResponse::ReadAnalogReaderResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.value_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ReadAnalogReaderResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ReadAnalogReaderResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ReadAnalogReaderResponseDefaultTypeInternal() {} + union { + ReadAnalogReaderResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReadAnalogReaderResponseDefaultTypeInternal _ReadAnalogReaderResponse_default_instance_; +PROTOBUF_CONSTEXPR GetDigitalInterruptValueRequest::GetDigitalInterruptValueRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.board_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.digital_interrupt_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetDigitalInterruptValueRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetDigitalInterruptValueRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetDigitalInterruptValueRequestDefaultTypeInternal() {} + union { + GetDigitalInterruptValueRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDigitalInterruptValueRequestDefaultTypeInternal _GetDigitalInterruptValueRequest_default_instance_; +PROTOBUF_CONSTEXPR GetDigitalInterruptValueResponse::GetDigitalInterruptValueResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.value_)*/int64_t{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetDigitalInterruptValueResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetDigitalInterruptValueResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetDigitalInterruptValueResponseDefaultTypeInternal() {} + union { + GetDigitalInterruptValueResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDigitalInterruptValueResponseDefaultTypeInternal _GetDigitalInterruptValueResponse_default_instance_; +} // namespace v1 +} // namespace board +} // namespace component +} // namespace viam +static ::_pb::Metadata file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[18]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fboard_2fv1_2fboard_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fboard_2fv1_2fboard_2eproto = nullptr; + +const uint32_t TableStruct_component_2fboard_2fv1_2fboard_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StatusRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StatusRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StatusRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StatusResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StatusResponse, _impl_.status_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetGPIORequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetGPIORequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetGPIORequest, _impl_.pin_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetGPIORequest, _impl_.high_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetGPIORequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetGPIOResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetGPIORequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetGPIORequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetGPIORequest, _impl_.pin_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetGPIORequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetGPIOResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetGPIOResponse, _impl_.high_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMRequest, _impl_.pin_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMResponse, _impl_.duty_cycle_pct_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMRequest, _impl_.pin_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMRequest, _impl_.duty_cycle_pct_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMFrequencyRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMFrequencyRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMFrequencyRequest, _impl_.pin_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMFrequencyRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMFrequencyResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMFrequencyResponse, _impl_.frequency_hz_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMFrequencyRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMFrequencyRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMFrequencyRequest, _impl_.pin_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMFrequencyRequest, _impl_.frequency_hz_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMFrequencyRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMFrequencyResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderRequest, _impl_.board_name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderRequest, _impl_.analog_reader_name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderResponse, _impl_.value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetDigitalInterruptValueRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetDigitalInterruptValueRequest, _impl_.board_name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetDigitalInterruptValueRequest, _impl_.digital_interrupt_name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetDigitalInterruptValueRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetDigitalInterruptValueResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetDigitalInterruptValueResponse, _impl_.value_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::board::v1::StatusRequest)}, + { 8, -1, -1, sizeof(::viam::component::board::v1::StatusResponse)}, + { 15, -1, -1, sizeof(::viam::component::board::v1::SetGPIORequest)}, + { 25, -1, -1, sizeof(::viam::component::board::v1::SetGPIOResponse)}, + { 31, -1, -1, sizeof(::viam::component::board::v1::GetGPIORequest)}, + { 40, -1, -1, sizeof(::viam::component::board::v1::GetGPIOResponse)}, + { 47, -1, -1, sizeof(::viam::component::board::v1::PWMRequest)}, + { 56, -1, -1, sizeof(::viam::component::board::v1::PWMResponse)}, + { 63, -1, -1, sizeof(::viam::component::board::v1::SetPWMRequest)}, + { 73, -1, -1, sizeof(::viam::component::board::v1::SetPWMResponse)}, + { 79, -1, -1, sizeof(::viam::component::board::v1::PWMFrequencyRequest)}, + { 88, -1, -1, sizeof(::viam::component::board::v1::PWMFrequencyResponse)}, + { 95, -1, -1, sizeof(::viam::component::board::v1::SetPWMFrequencyRequest)}, + { 105, -1, -1, sizeof(::viam::component::board::v1::SetPWMFrequencyResponse)}, + { 111, -1, -1, sizeof(::viam::component::board::v1::ReadAnalogReaderRequest)}, + { 120, -1, -1, sizeof(::viam::component::board::v1::ReadAnalogReaderResponse)}, + { 127, -1, -1, sizeof(::viam::component::board::v1::GetDigitalInterruptValueRequest)}, + { 136, -1, -1, sizeof(::viam::component::board::v1::GetDigitalInterruptValueResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::component::board::v1::_StatusRequest_default_instance_._instance, + &::viam::component::board::v1::_StatusResponse_default_instance_._instance, + &::viam::component::board::v1::_SetGPIORequest_default_instance_._instance, + &::viam::component::board::v1::_SetGPIOResponse_default_instance_._instance, + &::viam::component::board::v1::_GetGPIORequest_default_instance_._instance, + &::viam::component::board::v1::_GetGPIOResponse_default_instance_._instance, + &::viam::component::board::v1::_PWMRequest_default_instance_._instance, + &::viam::component::board::v1::_PWMResponse_default_instance_._instance, + &::viam::component::board::v1::_SetPWMRequest_default_instance_._instance, + &::viam::component::board::v1::_SetPWMResponse_default_instance_._instance, + &::viam::component::board::v1::_PWMFrequencyRequest_default_instance_._instance, + &::viam::component::board::v1::_PWMFrequencyResponse_default_instance_._instance, + &::viam::component::board::v1::_SetPWMFrequencyRequest_default_instance_._instance, + &::viam::component::board::v1::_SetPWMFrequencyResponse_default_instance_._instance, + &::viam::component::board::v1::_ReadAnalogReaderRequest_default_instance_._instance, + &::viam::component::board::v1::_ReadAnalogReaderResponse_default_instance_._instance, + &::viam::component::board::v1::_GetDigitalInterruptValueRequest_default_instance_._instance, + &::viam::component::board::v1::_GetDigitalInterruptValueResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_component_2fboard_2fv1_2fboard_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\036component/board/v1/board.proto\022\027viam.c" + "omponent.board.v1\032\026common/v1/common.prot" + "o\032\034google/api/annotations.proto\032\034google/" + "protobuf/struct.proto\"R\n\rStatusRequest\022\022" + "\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.goog" + "le.protobuf.StructR\005extra\"E\n\016StatusRespo" + "nse\0223\n\006status\030\001 \001(\0132\033.viam.common.v1.Boa" + "rdStatusR\006status\"y\n\016SetGPIORequest\022\022\n\004na" + "me\030\001 \001(\tR\004name\022\020\n\003pin\030\002 \001(\tR\003pin\022\022\n\004high" + "\030\003 \001(\010R\004high\022-\n\005extra\030c \001(\0132\027.google.pro" + "tobuf.StructR\005extra\"\021\n\017SetGPIOResponse\"e" + "\n\016GetGPIORequest\022\022\n\004name\030\001 \001(\tR\004name\022\020\n\003" + "pin\030\002 \001(\tR\003pin\022-\n\005extra\030c \001(\0132\027.google.p" + "rotobuf.StructR\005extra\"%\n\017GetGPIOResponse" + "\022\022\n\004high\030\001 \001(\010R\004high\"a\n\nPWMRequest\022\022\n\004na" + "me\030\001 \001(\tR\004name\022\020\n\003pin\030\002 \001(\tR\003pin\022-\n\005extr" + "a\030c \001(\0132\027.google.protobuf.StructR\005extra\"" + "3\n\013PWMResponse\022$\n\016duty_cycle_pct\030\001 \001(\001R\014" + "dutyCyclePct\"\212\001\n\rSetPWMRequest\022\022\n\004name\030\001" + " \001(\tR\004name\022\020\n\003pin\030\002 \001(\tR\003pin\022$\n\016duty_cyc" + "le_pct\030\003 \001(\001R\014dutyCyclePct\022-\n\005extra\030c \001(" + "\0132\027.google.protobuf.StructR\005extra\"\020\n\016Set" + "PWMResponse\"j\n\023PWMFrequencyRequest\022\022\n\004na" + "me\030\001 \001(\tR\004name\022\020\n\003pin\030\002 \001(\tR\003pin\022-\n\005extr" + "a\030c \001(\0132\027.google.protobuf.StructR\005extra\"" + "9\n\024PWMFrequencyResponse\022!\n\014frequency_hz\030" + "\001 \001(\004R\013frequencyHz\"\220\001\n\026SetPWMFrequencyRe" + "quest\022\022\n\004name\030\001 \001(\tR\004name\022\020\n\003pin\030\002 \001(\tR\003" + "pin\022!\n\014frequency_hz\030\003 \001(\004R\013frequencyHz\022-" + "\n\005extra\030c \001(\0132\027.google.protobuf.StructR\005" + "extra\"\031\n\027SetPWMFrequencyResponse\"\225\001\n\027Rea" + "dAnalogReaderRequest\022\035\n\nboard_name\030\001 \001(\t" + "R\tboardName\022,\n\022analog_reader_name\030\002 \001(\tR" + "\020analogReaderName\022-\n\005extra\030c \001(\0132\027.googl" + "e.protobuf.StructR\005extra\"0\n\030ReadAnalogRe" + "aderResponse\022\024\n\005value\030\001 \001(\005R\005value\"\245\001\n\037G" + "etDigitalInterruptValueRequest\022\035\n\nboard_" + "name\030\001 \001(\tR\tboardName\0224\n\026digital_interru" + "pt_name\030\002 \001(\tR\024digitalInterruptName\022-\n\005e" + "xtra\030c \001(\0132\027.google.protobuf.StructR\005ext" + "ra\"8\n GetDigitalInterruptValueResponse\022\024" + "\n\005value\030\001 \001(\003R\005value2\355\013\n\014BoardService\022\215\001" + "\n\006Status\022&.viam.component.board.v1.Statu" + "sRequest\032\'.viam.component.board.v1.Statu" + "sResponse\"2\202\323\344\223\002,\022*/viam/api/v1/componen" + "t/board/{name}/status\022\216\001\n\007SetGPIO\022\'.viam" + ".component.board.v1.SetGPIORequest\032(.via" + "m.component.board.v1.SetGPIOResponse\"0\202\323" + "\344\223\002*\032(/viam/api/v1/component/board/{name" + "}/gpio\022\216\001\n\007GetGPIO\022\'.viam.component.boar" + "d.v1.GetGPIORequest\032(.viam.component.boa" + "rd.v1.GetGPIOResponse\"0\202\323\344\223\002*\022(/viam/api" + "/v1/component/board/{name}/gpio\022\201\001\n\003PWM\022" + "#.viam.component.board.v1.PWMRequest\032$.v" + "iam.component.board.v1.PWMResponse\"/\202\323\344\223" + "\002)\022\'/viam/api/v1/component/board/{name}/" + "pwm\022\212\001\n\006SetPWM\022&.viam.component.board.v1" + ".SetPWMRequest\032\'.viam.component.board.v1" + ".SetPWMResponse\"/\202\323\344\223\002)\032\'/viam/api/v1/co" + "mponent/board/{name}/pwm\022\241\001\n\014PWMFrequenc" + "y\022,.viam.component.board.v1.PWMFrequency" + "Request\032-.viam.component.board.v1.PWMFre" + "quencyResponse\"4\202\323\344\223\002.\022,/viam/api/v1/com" + "ponent/board/{name}/pwm_freq\022\252\001\n\017SetPWMF" + "requency\022/.viam.component.board.v1.SetPW" + "MFrequencyRequest\0320.viam.component.board" + ".v1.SetPWMFrequencyResponse\"4\202\323\344\223\002.\032,/vi" + "am/api/v1/component/board/{name}/pwm_fre" + "q\022\322\001\n\020ReadAnalogReader\0220.viam.component." + "board.v1.ReadAnalogReaderRequest\0321.viam." + "component.board.v1.ReadAnalogReaderRespo" + "nse\"Y\202\323\344\223\002S\022Q/viam/api/v1/component/boar" + "d/{board_name}/analog_reader/{analog_rea" + "der_name}/read\022\363\001\n\030GetDigitalInterruptVa" + "lue\0228.viam.component.board.v1.GetDigital" + "InterruptValueRequest\0329.viam.component.b" + "oard.v1.GetDigitalInterruptValueResponse" + "\"b\202\323\344\223\002\\\022Z/viam/api/v1/component/board/{" + "board_name}/digital_interrupt/{digital_i" + "nterrupt_name}/valueBA\n\033com.viam.compone" + "nt.board.v1Z\"go.viam.com/api/component/b" + "oard/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fboard_2fv1_2fboard_2eproto_deps[3] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, +}; +static ::_pbi::once_flag descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_component_2fboard_2fv1_2fboard_2eproto = { + false, false, 3255, descriptor_table_protodef_component_2fboard_2fv1_2fboard_2eproto, + "component/board/v1/board.proto", + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, descriptor_table_component_2fboard_2fv1_2fboard_2eproto_deps, 3, 18, + schemas, file_default_instances, TableStruct_component_2fboard_2fv1_2fboard_2eproto::offsets, + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto, file_level_enum_descriptors_component_2fboard_2fv1_2fboard_2eproto, + file_level_service_descriptors_component_2fboard_2fv1_2fboard_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter() { + return &descriptor_table_component_2fboard_2fv1_2fboard_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fboard_2fv1_2fboard_2eproto(&descriptor_table_component_2fboard_2fv1_2fboard_2eproto); +namespace viam { +namespace component { +namespace board { +namespace v1 { + +// =================================================================== + +class StatusRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const StatusRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +StatusRequest::_Internal::extra(const StatusRequest* msg) { + return *msg->_impl_.extra_; +} +void StatusRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +StatusRequest::StatusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.StatusRequest) +} +StatusRequest::StatusRequest(const StatusRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + StatusRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.StatusRequest) +} + +inline void StatusRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +StatusRequest::~StatusRequest() { + // @@protoc_insertion_point(destructor:viam.component.board.v1.StatusRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void StatusRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void StatusRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void StatusRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.board.v1.StatusRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StatusRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.StatusRequest.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* StatusRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.StatusRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.StatusRequest.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.component.board.v1.StatusRequest) + return target; +} + +size_t StatusRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.StatusRequest) + 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( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StatusRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + StatusRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StatusRequest::GetClassData() const { return &_class_data_; } + + +void StatusRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.StatusRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void StatusRequest::CopyFrom(const StatusRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.board.v1.StatusRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StatusRequest::IsInitialized() const { + return true; +} + +void StatusRequest::InternalSwap(StatusRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.extra_, other->_impl_.extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StatusRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[0]); +} + +// =================================================================== + +class StatusResponse::_Internal { + public: + static const ::viam::common::v1::BoardStatus& status(const StatusResponse* msg); +}; + +const ::viam::common::v1::BoardStatus& +StatusResponse::_Internal::status(const StatusResponse* msg) { + return *msg->_impl_.status_; +} +void StatusResponse::clear_status() { + if (GetArenaForAllocation() == nullptr && _impl_.status_ != nullptr) { + delete _impl_.status_; + } + _impl_.status_ = nullptr; +} +StatusResponse::StatusResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.StatusResponse) +} +StatusResponse::StatusResponse(const StatusResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + StatusResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.status_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_status()) { + _this->_impl_.status_ = new ::viam::common::v1::BoardStatus(*from._impl_.status_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.StatusResponse) +} + +inline void StatusResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.status_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +StatusResponse::~StatusResponse() { + // @@protoc_insertion_point(destructor:viam.component.board.v1.StatusResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void StatusResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.status_; +} + +void StatusResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void StatusResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.board.v1.StatusResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.status_ != nullptr) { + delete _impl_.status_; + } + _impl_.status_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StatusResponse::_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) { + // .viam.common.v1.BoardStatus status = 1 [json_name = "status"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_status(), 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* StatusResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.StatusResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.common.v1.BoardStatus status = 1 [json_name = "status"]; + if (this->_internal_has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::status(this), + _Internal::status(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.board.v1.StatusResponse) + return target; +} + +size_t StatusResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.StatusResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.common.v1.BoardStatus status = 1 [json_name = "status"]; + if (this->_internal_has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.status_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StatusResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + StatusResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StatusResponse::GetClassData() const { return &_class_data_; } + + +void StatusResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.StatusResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_status()) { + _this->_internal_mutable_status()->::viam::common::v1::BoardStatus::MergeFrom( + from._internal_status()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void StatusResponse::CopyFrom(const StatusResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.board.v1.StatusResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StatusResponse::IsInitialized() const { + return true; +} + +void StatusResponse::InternalSwap(StatusResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.status_, other->_impl_.status_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StatusResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[1]); +} + +// =================================================================== + +class SetGPIORequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const SetGPIORequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +SetGPIORequest::_Internal::extra(const SetGPIORequest* msg) { + return *msg->_impl_.extra_; +} +void SetGPIORequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +SetGPIORequest::SetGPIORequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.SetGPIORequest) +} +SetGPIORequest::SetGPIORequest(const SetGPIORequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + SetGPIORequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.pin_){} + , decltype(_impl_.extra_){nullptr} + , decltype(_impl_.high_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.pin_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pin_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_pin().empty()) { + _this->_impl_.pin_.Set(from._internal_pin(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + _this->_impl_.high_ = from._impl_.high_; + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.SetGPIORequest) +} + +inline void SetGPIORequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.pin_){} + , decltype(_impl_.extra_){nullptr} + , decltype(_impl_.high_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pin_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pin_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +SetGPIORequest::~SetGPIORequest() { + // @@protoc_insertion_point(destructor:viam.component.board.v1.SetGPIORequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SetGPIORequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.pin_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void SetGPIORequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SetGPIORequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.board.v1.SetGPIORequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.pin_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _impl_.high_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SetGPIORequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.SetGPIORequest.name")); + } else + goto handle_unusual; + continue; + // string pin = 2 [json_name = "pin"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_pin(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.SetGPIORequest.pin")); + } else + goto handle_unusual; + continue; + // bool high = 3 [json_name = "high"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.high_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + case 99: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_extra(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* SetGPIORequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.SetGPIORequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.SetGPIORequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string pin = 2 [json_name = "pin"]; + if (!this->_internal_pin().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_pin().data(), static_cast(this->_internal_pin().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.SetGPIORequest.pin"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_pin(), target); + } + + // bool high = 3 [json_name = "high"]; + if (this->_internal_high() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_high(), target); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(99, _Internal::extra(this), + _Internal::extra(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.board.v1.SetGPIORequest) + return target; +} + +size_t SetGPIORequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.SetGPIORequest) + 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 pin = 2 [json_name = "pin"]; + if (!this->_internal_pin().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_pin()); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.extra_); + } + + // bool high = 3 [json_name = "high"]; + if (this->_internal_high() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetGPIORequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SetGPIORequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetGPIORequest::GetClassData() const { return &_class_data_; } + + +void SetGPIORequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.SetGPIORequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_pin().empty()) { + _this->_internal_set_pin(from._internal_pin()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + if (from._internal_high() != 0) { + _this->_internal_set_high(from._internal_high()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SetGPIORequest::CopyFrom(const SetGPIORequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.board.v1.SetGPIORequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetGPIORequest::IsInitialized() const { + return true; +} + +void SetGPIORequest::InternalSwap(SetGPIORequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.pin_, lhs_arena, + &other->_impl_.pin_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SetGPIORequest, _impl_.high_) + + sizeof(SetGPIORequest::_impl_.high_) + - PROTOBUF_FIELD_OFFSET(SetGPIORequest, _impl_.extra_)>( + reinterpret_cast(&_impl_.extra_), + reinterpret_cast(&other->_impl_.extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetGPIORequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[2]); +} + +// =================================================================== + +class SetGPIOResponse::_Internal { + public: +}; + +SetGPIOResponse::SetGPIOResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.SetGPIOResponse) +} +SetGPIOResponse::SetGPIOResponse(const SetGPIOResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SetGPIOResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.SetGPIOResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetGPIOResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetGPIOResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata SetGPIOResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[3]); +} + +// =================================================================== + +class GetGPIORequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetGPIORequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetGPIORequest::_Internal::extra(const GetGPIORequest* msg) { + return *msg->_impl_.extra_; +} +void GetGPIORequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +GetGPIORequest::GetGPIORequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.GetGPIORequest) +} +GetGPIORequest::GetGPIORequest(const GetGPIORequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetGPIORequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.pin_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.pin_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pin_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_pin().empty()) { + _this->_impl_.pin_.Set(from._internal_pin(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.GetGPIORequest) +} + +inline void GetGPIORequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.pin_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pin_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pin_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetGPIORequest::~GetGPIORequest() { + // @@protoc_insertion_point(destructor:viam.component.board.v1.GetGPIORequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetGPIORequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.pin_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void GetGPIORequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetGPIORequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.board.v1.GetGPIORequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.pin_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetGPIORequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.GetGPIORequest.name")); + } else + goto handle_unusual; + continue; + // string pin = 2 [json_name = "pin"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_pin(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.GetGPIORequest.pin")); + } 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* GetGPIORequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.GetGPIORequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.GetGPIORequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string pin = 2 [json_name = "pin"]; + if (!this->_internal_pin().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_pin().data(), static_cast(this->_internal_pin().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.GetGPIORequest.pin"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_pin(), target); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(99, _Internal::extra(this), + _Internal::extra(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.board.v1.GetGPIORequest) + return target; +} + +size_t GetGPIORequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.GetGPIORequest) + 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 pin = 2 [json_name = "pin"]; + if (!this->_internal_pin().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_pin()); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetGPIORequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetGPIORequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetGPIORequest::GetClassData() const { return &_class_data_; } + + +void GetGPIORequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.GetGPIORequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_pin().empty()) { + _this->_internal_set_pin(from._internal_pin()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetGPIORequest::CopyFrom(const GetGPIORequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.board.v1.GetGPIORequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetGPIORequest::IsInitialized() const { + return true; +} + +void GetGPIORequest::InternalSwap(GetGPIORequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.pin_, lhs_arena, + &other->_impl_.pin_, rhs_arena + ); + swap(_impl_.extra_, other->_impl_.extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetGPIORequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[4]); +} + +// =================================================================== + +class GetGPIOResponse::_Internal { + public: +}; + +GetGPIOResponse::GetGPIOResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.GetGPIOResponse) +} +GetGPIOResponse::GetGPIOResponse(const GetGPIOResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetGPIOResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.high_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.high_ = from._impl_.high_; + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.GetGPIOResponse) +} + +inline void GetGPIOResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.high_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetGPIOResponse::~GetGPIOResponse() { + // @@protoc_insertion_point(destructor:viam.component.board.v1.GetGPIOResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetGPIOResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetGPIOResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetGPIOResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.board.v1.GetGPIOResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.high_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetGPIOResponse::_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) { + // bool high = 1 [json_name = "high"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.high_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetGPIOResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.GetGPIOResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bool high = 1 [json_name = "high"]; + if (this->_internal_high() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_high(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.board.v1.GetGPIOResponse) + return target; +} + +size_t GetGPIOResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.GetGPIOResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bool high = 1 [json_name = "high"]; + if (this->_internal_high() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetGPIOResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetGPIOResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetGPIOResponse::GetClassData() const { return &_class_data_; } + + +void GetGPIOResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.GetGPIOResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_high() != 0) { + _this->_internal_set_high(from._internal_high()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetGPIOResponse::CopyFrom(const GetGPIOResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.board.v1.GetGPIOResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetGPIOResponse::IsInitialized() const { + return true; +} + +void GetGPIOResponse::InternalSwap(GetGPIOResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.high_, other->_impl_.high_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetGPIOResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[5]); +} + +// =================================================================== + +class PWMRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const PWMRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +PWMRequest::_Internal::extra(const PWMRequest* msg) { + return *msg->_impl_.extra_; +} +void PWMRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +PWMRequest::PWMRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.PWMRequest) +} +PWMRequest::PWMRequest(const PWMRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + PWMRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.pin_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.pin_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pin_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_pin().empty()) { + _this->_impl_.pin_.Set(from._internal_pin(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.PWMRequest) +} + +inline void PWMRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.pin_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pin_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pin_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +PWMRequest::~PWMRequest() { + // @@protoc_insertion_point(destructor:viam.component.board.v1.PWMRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void PWMRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.pin_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void PWMRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void PWMRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.board.v1.PWMRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.pin_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PWMRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.PWMRequest.name")); + } else + goto handle_unusual; + continue; + // string pin = 2 [json_name = "pin"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_pin(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.PWMRequest.pin")); + } 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* PWMRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.PWMRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.PWMRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string pin = 2 [json_name = "pin"]; + if (!this->_internal_pin().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_pin().data(), static_cast(this->_internal_pin().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.PWMRequest.pin"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_pin(), target); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(99, _Internal::extra(this), + _Internal::extra(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.board.v1.PWMRequest) + return target; +} + +size_t PWMRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.PWMRequest) + 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 pin = 2 [json_name = "pin"]; + if (!this->_internal_pin().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_pin()); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PWMRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + PWMRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PWMRequest::GetClassData() const { return &_class_data_; } + + +void PWMRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.PWMRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_pin().empty()) { + _this->_internal_set_pin(from._internal_pin()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PWMRequest::CopyFrom(const PWMRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.board.v1.PWMRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PWMRequest::IsInitialized() const { + return true; +} + +void PWMRequest::InternalSwap(PWMRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.pin_, lhs_arena, + &other->_impl_.pin_, rhs_arena + ); + swap(_impl_.extra_, other->_impl_.extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PWMRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[6]); +} + +// =================================================================== + +class PWMResponse::_Internal { + public: +}; + +PWMResponse::PWMResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.PWMResponse) +} +PWMResponse::PWMResponse(const PWMResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + PWMResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.duty_cycle_pct_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.duty_cycle_pct_ = from._impl_.duty_cycle_pct_; + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.PWMResponse) +} + +inline void PWMResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.duty_cycle_pct_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +PWMResponse::~PWMResponse() { + // @@protoc_insertion_point(destructor:viam.component.board.v1.PWMResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void PWMResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void PWMResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void PWMResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.board.v1.PWMResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.duty_cycle_pct_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PWMResponse::_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) { + // double duty_cycle_pct = 1 [json_name = "dutyCyclePct"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + _impl_.duty_cycle_pct_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* PWMResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.PWMResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // double duty_cycle_pct = 1 [json_name = "dutyCyclePct"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_duty_cycle_pct = this->_internal_duty_cycle_pct(); + uint64_t raw_duty_cycle_pct; + memcpy(&raw_duty_cycle_pct, &tmp_duty_cycle_pct, sizeof(tmp_duty_cycle_pct)); + if (raw_duty_cycle_pct != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_duty_cycle_pct(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.board.v1.PWMResponse) + return target; +} + +size_t PWMResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.PWMResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // double duty_cycle_pct = 1 [json_name = "dutyCyclePct"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_duty_cycle_pct = this->_internal_duty_cycle_pct(); + uint64_t raw_duty_cycle_pct; + memcpy(&raw_duty_cycle_pct, &tmp_duty_cycle_pct, sizeof(tmp_duty_cycle_pct)); + if (raw_duty_cycle_pct != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PWMResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + PWMResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PWMResponse::GetClassData() const { return &_class_data_; } + + +void PWMResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.PWMResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_duty_cycle_pct = from._internal_duty_cycle_pct(); + uint64_t raw_duty_cycle_pct; + memcpy(&raw_duty_cycle_pct, &tmp_duty_cycle_pct, sizeof(tmp_duty_cycle_pct)); + if (raw_duty_cycle_pct != 0) { + _this->_internal_set_duty_cycle_pct(from._internal_duty_cycle_pct()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PWMResponse::CopyFrom(const PWMResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.board.v1.PWMResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PWMResponse::IsInitialized() const { + return true; +} + +void PWMResponse::InternalSwap(PWMResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.duty_cycle_pct_, other->_impl_.duty_cycle_pct_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PWMResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[7]); +} + +// =================================================================== + +class SetPWMRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const SetPWMRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +SetPWMRequest::_Internal::extra(const SetPWMRequest* msg) { + return *msg->_impl_.extra_; +} +void SetPWMRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +SetPWMRequest::SetPWMRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.SetPWMRequest) +} +SetPWMRequest::SetPWMRequest(const SetPWMRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + SetPWMRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.pin_){} + , decltype(_impl_.extra_){nullptr} + , decltype(_impl_.duty_cycle_pct_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.pin_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pin_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_pin().empty()) { + _this->_impl_.pin_.Set(from._internal_pin(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + _this->_impl_.duty_cycle_pct_ = from._impl_.duty_cycle_pct_; + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.SetPWMRequest) +} + +inline void SetPWMRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.pin_){} + , decltype(_impl_.extra_){nullptr} + , decltype(_impl_.duty_cycle_pct_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pin_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pin_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +SetPWMRequest::~SetPWMRequest() { + // @@protoc_insertion_point(destructor:viam.component.board.v1.SetPWMRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SetPWMRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.pin_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void SetPWMRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SetPWMRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.board.v1.SetPWMRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.pin_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _impl_.duty_cycle_pct_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SetPWMRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.SetPWMRequest.name")); + } else + goto handle_unusual; + continue; + // string pin = 2 [json_name = "pin"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_pin(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.SetPWMRequest.pin")); + } else + goto handle_unusual; + continue; + // double duty_cycle_pct = 3 [json_name = "dutyCyclePct"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + _impl_.duty_cycle_pct_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* SetPWMRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.SetPWMRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.SetPWMRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string pin = 2 [json_name = "pin"]; + if (!this->_internal_pin().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_pin().data(), static_cast(this->_internal_pin().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.SetPWMRequest.pin"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_pin(), target); + } + + // double duty_cycle_pct = 3 [json_name = "dutyCyclePct"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_duty_cycle_pct = this->_internal_duty_cycle_pct(); + uint64_t raw_duty_cycle_pct; + memcpy(&raw_duty_cycle_pct, &tmp_duty_cycle_pct, sizeof(tmp_duty_cycle_pct)); + if (raw_duty_cycle_pct != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_duty_cycle_pct(), target); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(99, _Internal::extra(this), + _Internal::extra(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.board.v1.SetPWMRequest) + return target; +} + +size_t SetPWMRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.SetPWMRequest) + 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 pin = 2 [json_name = "pin"]; + if (!this->_internal_pin().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_pin()); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.extra_); + } + + // double duty_cycle_pct = 3 [json_name = "dutyCyclePct"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_duty_cycle_pct = this->_internal_duty_cycle_pct(); + uint64_t raw_duty_cycle_pct; + memcpy(&raw_duty_cycle_pct, &tmp_duty_cycle_pct, sizeof(tmp_duty_cycle_pct)); + if (raw_duty_cycle_pct != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetPWMRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SetPWMRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPWMRequest::GetClassData() const { return &_class_data_; } + + +void SetPWMRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.SetPWMRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_pin().empty()) { + _this->_internal_set_pin(from._internal_pin()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_duty_cycle_pct = from._internal_duty_cycle_pct(); + uint64_t raw_duty_cycle_pct; + memcpy(&raw_duty_cycle_pct, &tmp_duty_cycle_pct, sizeof(tmp_duty_cycle_pct)); + if (raw_duty_cycle_pct != 0) { + _this->_internal_set_duty_cycle_pct(from._internal_duty_cycle_pct()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SetPWMRequest::CopyFrom(const SetPWMRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.board.v1.SetPWMRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetPWMRequest::IsInitialized() const { + return true; +} + +void SetPWMRequest::InternalSwap(SetPWMRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.pin_, lhs_arena, + &other->_impl_.pin_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SetPWMRequest, _impl_.duty_cycle_pct_) + + sizeof(SetPWMRequest::_impl_.duty_cycle_pct_) + - PROTOBUF_FIELD_OFFSET(SetPWMRequest, _impl_.extra_)>( + reinterpret_cast(&_impl_.extra_), + reinterpret_cast(&other->_impl_.extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetPWMRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[8]); +} + +// =================================================================== + +class SetPWMResponse::_Internal { + public: +}; + +SetPWMResponse::SetPWMResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.SetPWMResponse) +} +SetPWMResponse::SetPWMResponse(const SetPWMResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SetPWMResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.SetPWMResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetPWMResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPWMResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata SetPWMResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[9]); +} + +// =================================================================== + +class PWMFrequencyRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const PWMFrequencyRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +PWMFrequencyRequest::_Internal::extra(const PWMFrequencyRequest* msg) { + return *msg->_impl_.extra_; +} +void PWMFrequencyRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +PWMFrequencyRequest::PWMFrequencyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.PWMFrequencyRequest) +} +PWMFrequencyRequest::PWMFrequencyRequest(const PWMFrequencyRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + PWMFrequencyRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.pin_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.pin_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pin_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_pin().empty()) { + _this->_impl_.pin_.Set(from._internal_pin(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.PWMFrequencyRequest) +} + +inline void PWMFrequencyRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.pin_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pin_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pin_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +PWMFrequencyRequest::~PWMFrequencyRequest() { + // @@protoc_insertion_point(destructor:viam.component.board.v1.PWMFrequencyRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void PWMFrequencyRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.pin_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void PWMFrequencyRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void PWMFrequencyRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.board.v1.PWMFrequencyRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.pin_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PWMFrequencyRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.PWMFrequencyRequest.name")); + } else + goto handle_unusual; + continue; + // string pin = 2 [json_name = "pin"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_pin(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.PWMFrequencyRequest.pin")); + } 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* PWMFrequencyRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.PWMFrequencyRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.PWMFrequencyRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string pin = 2 [json_name = "pin"]; + if (!this->_internal_pin().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_pin().data(), static_cast(this->_internal_pin().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.PWMFrequencyRequest.pin"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_pin(), target); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(99, _Internal::extra(this), + _Internal::extra(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.board.v1.PWMFrequencyRequest) + return target; +} + +size_t PWMFrequencyRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.PWMFrequencyRequest) + 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 pin = 2 [json_name = "pin"]; + if (!this->_internal_pin().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_pin()); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PWMFrequencyRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + PWMFrequencyRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PWMFrequencyRequest::GetClassData() const { return &_class_data_; } + + +void PWMFrequencyRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.PWMFrequencyRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_pin().empty()) { + _this->_internal_set_pin(from._internal_pin()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PWMFrequencyRequest::CopyFrom(const PWMFrequencyRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.board.v1.PWMFrequencyRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PWMFrequencyRequest::IsInitialized() const { + return true; +} + +void PWMFrequencyRequest::InternalSwap(PWMFrequencyRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.pin_, lhs_arena, + &other->_impl_.pin_, rhs_arena + ); + swap(_impl_.extra_, other->_impl_.extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PWMFrequencyRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[10]); +} + +// =================================================================== + +class PWMFrequencyResponse::_Internal { + public: +}; + +PWMFrequencyResponse::PWMFrequencyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.PWMFrequencyResponse) +} +PWMFrequencyResponse::PWMFrequencyResponse(const PWMFrequencyResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + PWMFrequencyResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.frequency_hz_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.frequency_hz_ = from._impl_.frequency_hz_; + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.PWMFrequencyResponse) +} + +inline void PWMFrequencyResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.frequency_hz_){uint64_t{0u}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +PWMFrequencyResponse::~PWMFrequencyResponse() { + // @@protoc_insertion_point(destructor:viam.component.board.v1.PWMFrequencyResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void PWMFrequencyResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void PWMFrequencyResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void PWMFrequencyResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.board.v1.PWMFrequencyResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.frequency_hz_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PWMFrequencyResponse::_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) { + // uint64 frequency_hz = 1 [json_name = "frequencyHz"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.frequency_hz_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* PWMFrequencyResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.PWMFrequencyResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 frequency_hz = 1 [json_name = "frequencyHz"]; + if (this->_internal_frequency_hz() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_frequency_hz(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.board.v1.PWMFrequencyResponse) + return target; +} + +size_t PWMFrequencyResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.PWMFrequencyResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint64 frequency_hz = 1 [json_name = "frequencyHz"]; + if (this->_internal_frequency_hz() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_frequency_hz()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PWMFrequencyResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + PWMFrequencyResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PWMFrequencyResponse::GetClassData() const { return &_class_data_; } + + +void PWMFrequencyResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.PWMFrequencyResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_frequency_hz() != 0) { + _this->_internal_set_frequency_hz(from._internal_frequency_hz()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PWMFrequencyResponse::CopyFrom(const PWMFrequencyResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.board.v1.PWMFrequencyResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PWMFrequencyResponse::IsInitialized() const { + return true; +} + +void PWMFrequencyResponse::InternalSwap(PWMFrequencyResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.frequency_hz_, other->_impl_.frequency_hz_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PWMFrequencyResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[11]); +} + +// =================================================================== + +class SetPWMFrequencyRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const SetPWMFrequencyRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +SetPWMFrequencyRequest::_Internal::extra(const SetPWMFrequencyRequest* msg) { + return *msg->_impl_.extra_; +} +void SetPWMFrequencyRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +SetPWMFrequencyRequest::SetPWMFrequencyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.SetPWMFrequencyRequest) +} +SetPWMFrequencyRequest::SetPWMFrequencyRequest(const SetPWMFrequencyRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + SetPWMFrequencyRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.pin_){} + , decltype(_impl_.extra_){nullptr} + , decltype(_impl_.frequency_hz_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.pin_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pin_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_pin().empty()) { + _this->_impl_.pin_.Set(from._internal_pin(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + _this->_impl_.frequency_hz_ = from._impl_.frequency_hz_; + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.SetPWMFrequencyRequest) +} + +inline void SetPWMFrequencyRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.pin_){} + , decltype(_impl_.extra_){nullptr} + , decltype(_impl_.frequency_hz_){uint64_t{0u}} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pin_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pin_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +SetPWMFrequencyRequest::~SetPWMFrequencyRequest() { + // @@protoc_insertion_point(destructor:viam.component.board.v1.SetPWMFrequencyRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SetPWMFrequencyRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.pin_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void SetPWMFrequencyRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SetPWMFrequencyRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.board.v1.SetPWMFrequencyRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.pin_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _impl_.frequency_hz_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SetPWMFrequencyRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.SetPWMFrequencyRequest.name")); + } else + goto handle_unusual; + continue; + // string pin = 2 [json_name = "pin"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_pin(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.SetPWMFrequencyRequest.pin")); + } else + goto handle_unusual; + continue; + // uint64 frequency_hz = 3 [json_name = "frequencyHz"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.frequency_hz_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + case 99: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_extra(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* SetPWMFrequencyRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.SetPWMFrequencyRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.SetPWMFrequencyRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string pin = 2 [json_name = "pin"]; + if (!this->_internal_pin().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_pin().data(), static_cast(this->_internal_pin().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.SetPWMFrequencyRequest.pin"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_pin(), target); + } + + // uint64 frequency_hz = 3 [json_name = "frequencyHz"]; + if (this->_internal_frequency_hz() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_frequency_hz(), target); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(99, _Internal::extra(this), + _Internal::extra(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.board.v1.SetPWMFrequencyRequest) + return target; +} + +size_t SetPWMFrequencyRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.SetPWMFrequencyRequest) + 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 pin = 2 [json_name = "pin"]; + if (!this->_internal_pin().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_pin()); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.extra_); + } + + // uint64 frequency_hz = 3 [json_name = "frequencyHz"]; + if (this->_internal_frequency_hz() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_frequency_hz()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetPWMFrequencyRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SetPWMFrequencyRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPWMFrequencyRequest::GetClassData() const { return &_class_data_; } + + +void SetPWMFrequencyRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.SetPWMFrequencyRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_pin().empty()) { + _this->_internal_set_pin(from._internal_pin()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + if (from._internal_frequency_hz() != 0) { + _this->_internal_set_frequency_hz(from._internal_frequency_hz()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SetPWMFrequencyRequest::CopyFrom(const SetPWMFrequencyRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.board.v1.SetPWMFrequencyRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetPWMFrequencyRequest::IsInitialized() const { + return true; +} + +void SetPWMFrequencyRequest::InternalSwap(SetPWMFrequencyRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.pin_, lhs_arena, + &other->_impl_.pin_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SetPWMFrequencyRequest, _impl_.frequency_hz_) + + sizeof(SetPWMFrequencyRequest::_impl_.frequency_hz_) + - PROTOBUF_FIELD_OFFSET(SetPWMFrequencyRequest, _impl_.extra_)>( + reinterpret_cast(&_impl_.extra_), + reinterpret_cast(&other->_impl_.extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetPWMFrequencyRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[12]); +} + +// =================================================================== + +class SetPWMFrequencyResponse::_Internal { + public: +}; + +SetPWMFrequencyResponse::SetPWMFrequencyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.SetPWMFrequencyResponse) +} +SetPWMFrequencyResponse::SetPWMFrequencyResponse(const SetPWMFrequencyResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SetPWMFrequencyResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.SetPWMFrequencyResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetPWMFrequencyResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPWMFrequencyResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata SetPWMFrequencyResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[13]); +} + +// =================================================================== + +class ReadAnalogReaderRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const ReadAnalogReaderRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +ReadAnalogReaderRequest::_Internal::extra(const ReadAnalogReaderRequest* msg) { + return *msg->_impl_.extra_; +} +void ReadAnalogReaderRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +ReadAnalogReaderRequest::ReadAnalogReaderRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.ReadAnalogReaderRequest) +} +ReadAnalogReaderRequest::ReadAnalogReaderRequest(const ReadAnalogReaderRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ReadAnalogReaderRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.board_name_){} + , decltype(_impl_.analog_reader_name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.board_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.board_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_board_name().empty()) { + _this->_impl_.board_name_.Set(from._internal_board_name(), + _this->GetArenaForAllocation()); + } + _impl_.analog_reader_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.analog_reader_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_analog_reader_name().empty()) { + _this->_impl_.analog_reader_name_.Set(from._internal_analog_reader_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.ReadAnalogReaderRequest) +} + +inline void ReadAnalogReaderRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.board_name_){} + , decltype(_impl_.analog_reader_name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.board_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.board_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.analog_reader_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.analog_reader_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ReadAnalogReaderRequest::~ReadAnalogReaderRequest() { + // @@protoc_insertion_point(destructor:viam.component.board.v1.ReadAnalogReaderRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ReadAnalogReaderRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.board_name_.Destroy(); + _impl_.analog_reader_name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void ReadAnalogReaderRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ReadAnalogReaderRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.board.v1.ReadAnalogReaderRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.board_name_.ClearToEmpty(); + _impl_.analog_reader_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ReadAnalogReaderRequest::_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 board_name = 1 [json_name = "boardName"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_board_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.ReadAnalogReaderRequest.board_name")); + } else + goto handle_unusual; + continue; + // string analog_reader_name = 2 [json_name = "analogReaderName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_analog_reader_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.ReadAnalogReaderRequest.analog_reader_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* ReadAnalogReaderRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.ReadAnalogReaderRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string board_name = 1 [json_name = "boardName"]; + if (!this->_internal_board_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_board_name().data(), static_cast(this->_internal_board_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.ReadAnalogReaderRequest.board_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_board_name(), target); + } + + // string analog_reader_name = 2 [json_name = "analogReaderName"]; + if (!this->_internal_analog_reader_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_analog_reader_name().data(), static_cast(this->_internal_analog_reader_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.ReadAnalogReaderRequest.analog_reader_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_analog_reader_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.component.board.v1.ReadAnalogReaderRequest) + return target; +} + +size_t ReadAnalogReaderRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.ReadAnalogReaderRequest) + 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 board_name = 1 [json_name = "boardName"]; + if (!this->_internal_board_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_board_name()); + } + + // string analog_reader_name = 2 [json_name = "analogReaderName"]; + if (!this->_internal_analog_reader_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_analog_reader_name()); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ReadAnalogReaderRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ReadAnalogReaderRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ReadAnalogReaderRequest::GetClassData() const { return &_class_data_; } + + +void ReadAnalogReaderRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.ReadAnalogReaderRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_board_name().empty()) { + _this->_internal_set_board_name(from._internal_board_name()); + } + if (!from._internal_analog_reader_name().empty()) { + _this->_internal_set_analog_reader_name(from._internal_analog_reader_name()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ReadAnalogReaderRequest::CopyFrom(const ReadAnalogReaderRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.board.v1.ReadAnalogReaderRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReadAnalogReaderRequest::IsInitialized() const { + return true; +} + +void ReadAnalogReaderRequest::InternalSwap(ReadAnalogReaderRequest* 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( + &_impl_.board_name_, lhs_arena, + &other->_impl_.board_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.analog_reader_name_, lhs_arena, + &other->_impl_.analog_reader_name_, rhs_arena + ); + swap(_impl_.extra_, other->_impl_.extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ReadAnalogReaderRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[14]); +} + +// =================================================================== + +class ReadAnalogReaderResponse::_Internal { + public: +}; + +ReadAnalogReaderResponse::ReadAnalogReaderResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.ReadAnalogReaderResponse) +} +ReadAnalogReaderResponse::ReadAnalogReaderResponse(const ReadAnalogReaderResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ReadAnalogReaderResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.value_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.value_ = from._impl_.value_; + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.ReadAnalogReaderResponse) +} + +inline void ReadAnalogReaderResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.value_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +ReadAnalogReaderResponse::~ReadAnalogReaderResponse() { + // @@protoc_insertion_point(destructor:viam.component.board.v1.ReadAnalogReaderResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ReadAnalogReaderResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void ReadAnalogReaderResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ReadAnalogReaderResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.board.v1.ReadAnalogReaderResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.value_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ReadAnalogReaderResponse::_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) { + // int32 value = 1 [json_name = "value"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* ReadAnalogReaderResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.ReadAnalogReaderResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int32 value = 1 [json_name = "value"]; + if (this->_internal_value() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_value(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.board.v1.ReadAnalogReaderResponse) + return target; +} + +size_t ReadAnalogReaderResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.ReadAnalogReaderResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int32 value = 1 [json_name = "value"]; + if (this->_internal_value() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_value()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ReadAnalogReaderResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ReadAnalogReaderResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ReadAnalogReaderResponse::GetClassData() const { return &_class_data_; } + + +void ReadAnalogReaderResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.ReadAnalogReaderResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_value() != 0) { + _this->_internal_set_value(from._internal_value()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ReadAnalogReaderResponse::CopyFrom(const ReadAnalogReaderResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.board.v1.ReadAnalogReaderResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReadAnalogReaderResponse::IsInitialized() const { + return true; +} + +void ReadAnalogReaderResponse::InternalSwap(ReadAnalogReaderResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.value_, other->_impl_.value_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ReadAnalogReaderResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[15]); +} + +// =================================================================== + +class GetDigitalInterruptValueRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetDigitalInterruptValueRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetDigitalInterruptValueRequest::_Internal::extra(const GetDigitalInterruptValueRequest* msg) { + return *msg->_impl_.extra_; +} +void GetDigitalInterruptValueRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +GetDigitalInterruptValueRequest::GetDigitalInterruptValueRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.GetDigitalInterruptValueRequest) +} +GetDigitalInterruptValueRequest::GetDigitalInterruptValueRequest(const GetDigitalInterruptValueRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetDigitalInterruptValueRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.board_name_){} + , decltype(_impl_.digital_interrupt_name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.board_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.board_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_board_name().empty()) { + _this->_impl_.board_name_.Set(from._internal_board_name(), + _this->GetArenaForAllocation()); + } + _impl_.digital_interrupt_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.digital_interrupt_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_digital_interrupt_name().empty()) { + _this->_impl_.digital_interrupt_name_.Set(from._internal_digital_interrupt_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.GetDigitalInterruptValueRequest) +} + +inline void GetDigitalInterruptValueRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.board_name_){} + , decltype(_impl_.digital_interrupt_name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.board_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.board_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.digital_interrupt_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.digital_interrupt_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetDigitalInterruptValueRequest::~GetDigitalInterruptValueRequest() { + // @@protoc_insertion_point(destructor:viam.component.board.v1.GetDigitalInterruptValueRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetDigitalInterruptValueRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.board_name_.Destroy(); + _impl_.digital_interrupt_name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void GetDigitalInterruptValueRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetDigitalInterruptValueRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.board.v1.GetDigitalInterruptValueRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.board_name_.ClearToEmpty(); + _impl_.digital_interrupt_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetDigitalInterruptValueRequest::_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 board_name = 1 [json_name = "boardName"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_board_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.GetDigitalInterruptValueRequest.board_name")); + } else + goto handle_unusual; + continue; + // string digital_interrupt_name = 2 [json_name = "digitalInterruptName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_digital_interrupt_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.GetDigitalInterruptValueRequest.digital_interrupt_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* GetDigitalInterruptValueRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.GetDigitalInterruptValueRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string board_name = 1 [json_name = "boardName"]; + if (!this->_internal_board_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_board_name().data(), static_cast(this->_internal_board_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.GetDigitalInterruptValueRequest.board_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_board_name(), target); + } + + // string digital_interrupt_name = 2 [json_name = "digitalInterruptName"]; + if (!this->_internal_digital_interrupt_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_digital_interrupt_name().data(), static_cast(this->_internal_digital_interrupt_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.GetDigitalInterruptValueRequest.digital_interrupt_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_digital_interrupt_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.component.board.v1.GetDigitalInterruptValueRequest) + return target; +} + +size_t GetDigitalInterruptValueRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.GetDigitalInterruptValueRequest) + 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 board_name = 1 [json_name = "boardName"]; + if (!this->_internal_board_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_board_name()); + } + + // string digital_interrupt_name = 2 [json_name = "digitalInterruptName"]; + if (!this->_internal_digital_interrupt_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_digital_interrupt_name()); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetDigitalInterruptValueRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetDigitalInterruptValueRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetDigitalInterruptValueRequest::GetClassData() const { return &_class_data_; } + + +void GetDigitalInterruptValueRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.GetDigitalInterruptValueRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_board_name().empty()) { + _this->_internal_set_board_name(from._internal_board_name()); + } + if (!from._internal_digital_interrupt_name().empty()) { + _this->_internal_set_digital_interrupt_name(from._internal_digital_interrupt_name()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetDigitalInterruptValueRequest::CopyFrom(const GetDigitalInterruptValueRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.board.v1.GetDigitalInterruptValueRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetDigitalInterruptValueRequest::IsInitialized() const { + return true; +} + +void GetDigitalInterruptValueRequest::InternalSwap(GetDigitalInterruptValueRequest* 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( + &_impl_.board_name_, lhs_arena, + &other->_impl_.board_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.digital_interrupt_name_, lhs_arena, + &other->_impl_.digital_interrupt_name_, rhs_arena + ); + swap(_impl_.extra_, other->_impl_.extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetDigitalInterruptValueRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[16]); +} + +// =================================================================== + +class GetDigitalInterruptValueResponse::_Internal { + public: +}; + +GetDigitalInterruptValueResponse::GetDigitalInterruptValueResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.GetDigitalInterruptValueResponse) +} +GetDigitalInterruptValueResponse::GetDigitalInterruptValueResponse(const GetDigitalInterruptValueResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetDigitalInterruptValueResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.value_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.value_ = from._impl_.value_; + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.GetDigitalInterruptValueResponse) +} + +inline void GetDigitalInterruptValueResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.value_){int64_t{0}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetDigitalInterruptValueResponse::~GetDigitalInterruptValueResponse() { + // @@protoc_insertion_point(destructor:viam.component.board.v1.GetDigitalInterruptValueResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetDigitalInterruptValueResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetDigitalInterruptValueResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetDigitalInterruptValueResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.board.v1.GetDigitalInterruptValueResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.value_ = int64_t{0}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetDigitalInterruptValueResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int64 value = 1 [json_name = "value"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetDigitalInterruptValueResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.GetDigitalInterruptValueResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int64 value = 1 [json_name = "value"]; + if (this->_internal_value() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_value(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.board.v1.GetDigitalInterruptValueResponse) + return target; +} + +size_t GetDigitalInterruptValueResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.GetDigitalInterruptValueResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 value = 1 [json_name = "value"]; + if (this->_internal_value() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_value()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetDigitalInterruptValueResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetDigitalInterruptValueResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetDigitalInterruptValueResponse::GetClassData() const { return &_class_data_; } + + +void GetDigitalInterruptValueResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.GetDigitalInterruptValueResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_value() != 0) { + _this->_internal_set_value(from._internal_value()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetDigitalInterruptValueResponse::CopyFrom(const GetDigitalInterruptValueResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.board.v1.GetDigitalInterruptValueResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetDigitalInterruptValueResponse::IsInitialized() const { + return true; +} + +void GetDigitalInterruptValueResponse::InternalSwap(GetDigitalInterruptValueResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.value_, other->_impl_.value_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetDigitalInterruptValueResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[17]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace board +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::StatusRequest* +Arena::CreateMaybeMessage< ::viam::component::board::v1::StatusRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::StatusRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::StatusResponse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::StatusResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::StatusResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::SetGPIORequest* +Arena::CreateMaybeMessage< ::viam::component::board::v1::SetGPIORequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::SetGPIORequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::SetGPIOResponse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::SetGPIOResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::SetGPIOResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::GetGPIORequest* +Arena::CreateMaybeMessage< ::viam::component::board::v1::GetGPIORequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::GetGPIORequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::GetGPIOResponse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::GetGPIOResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::GetGPIOResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::PWMRequest* +Arena::CreateMaybeMessage< ::viam::component::board::v1::PWMRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::PWMRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::PWMResponse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::PWMResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::PWMResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::SetPWMRequest* +Arena::CreateMaybeMessage< ::viam::component::board::v1::SetPWMRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::SetPWMRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::SetPWMResponse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::SetPWMResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::SetPWMResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::PWMFrequencyRequest* +Arena::CreateMaybeMessage< ::viam::component::board::v1::PWMFrequencyRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::PWMFrequencyRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::PWMFrequencyResponse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::PWMFrequencyResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::PWMFrequencyResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::SetPWMFrequencyRequest* +Arena::CreateMaybeMessage< ::viam::component::board::v1::SetPWMFrequencyRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::SetPWMFrequencyRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::SetPWMFrequencyResponse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::SetPWMFrequencyResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::SetPWMFrequencyResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::ReadAnalogReaderRequest* +Arena::CreateMaybeMessage< ::viam::component::board::v1::ReadAnalogReaderRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::ReadAnalogReaderRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::ReadAnalogReaderResponse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::ReadAnalogReaderResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::ReadAnalogReaderResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::GetDigitalInterruptValueRequest* +Arena::CreateMaybeMessage< ::viam::component::board::v1::GetDigitalInterruptValueRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::GetDigitalInterruptValueRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::GetDigitalInterruptValueResponse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::GetDigitalInterruptValueResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::GetDigitalInterruptValueResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/component/board/v1/board.pb.h b/src/gen/component/board/v1/board.pb.h new file mode 100644 index 000000000..10b15da88 --- /dev/null +++ b/src/gen/component/board/v1/board.pb.h @@ -0,0 +1,5094 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/board/v1/board.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fboard_2fv1_2fboard_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fboard_2fv1_2fboard_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "common/v1/common.pb.h" +#include "google/api/annotations.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_component_2fboard_2fv1_2fboard_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_component_2fboard_2fv1_2fboard_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fboard_2fv1_2fboard_2eproto; +namespace viam { +namespace component { +namespace board { +namespace v1 { +class GetDigitalInterruptValueRequest; +struct GetDigitalInterruptValueRequestDefaultTypeInternal; +extern GetDigitalInterruptValueRequestDefaultTypeInternal _GetDigitalInterruptValueRequest_default_instance_; +class GetDigitalInterruptValueResponse; +struct GetDigitalInterruptValueResponseDefaultTypeInternal; +extern GetDigitalInterruptValueResponseDefaultTypeInternal _GetDigitalInterruptValueResponse_default_instance_; +class GetGPIORequest; +struct GetGPIORequestDefaultTypeInternal; +extern GetGPIORequestDefaultTypeInternal _GetGPIORequest_default_instance_; +class GetGPIOResponse; +struct GetGPIOResponseDefaultTypeInternal; +extern GetGPIOResponseDefaultTypeInternal _GetGPIOResponse_default_instance_; +class PWMFrequencyRequest; +struct PWMFrequencyRequestDefaultTypeInternal; +extern PWMFrequencyRequestDefaultTypeInternal _PWMFrequencyRequest_default_instance_; +class PWMFrequencyResponse; +struct PWMFrequencyResponseDefaultTypeInternal; +extern PWMFrequencyResponseDefaultTypeInternal _PWMFrequencyResponse_default_instance_; +class PWMRequest; +struct PWMRequestDefaultTypeInternal; +extern PWMRequestDefaultTypeInternal _PWMRequest_default_instance_; +class PWMResponse; +struct PWMResponseDefaultTypeInternal; +extern PWMResponseDefaultTypeInternal _PWMResponse_default_instance_; +class ReadAnalogReaderRequest; +struct ReadAnalogReaderRequestDefaultTypeInternal; +extern ReadAnalogReaderRequestDefaultTypeInternal _ReadAnalogReaderRequest_default_instance_; +class ReadAnalogReaderResponse; +struct ReadAnalogReaderResponseDefaultTypeInternal; +extern ReadAnalogReaderResponseDefaultTypeInternal _ReadAnalogReaderResponse_default_instance_; +class SetGPIORequest; +struct SetGPIORequestDefaultTypeInternal; +extern SetGPIORequestDefaultTypeInternal _SetGPIORequest_default_instance_; +class SetGPIOResponse; +struct SetGPIOResponseDefaultTypeInternal; +extern SetGPIOResponseDefaultTypeInternal _SetGPIOResponse_default_instance_; +class SetPWMFrequencyRequest; +struct SetPWMFrequencyRequestDefaultTypeInternal; +extern SetPWMFrequencyRequestDefaultTypeInternal _SetPWMFrequencyRequest_default_instance_; +class SetPWMFrequencyResponse; +struct SetPWMFrequencyResponseDefaultTypeInternal; +extern SetPWMFrequencyResponseDefaultTypeInternal _SetPWMFrequencyResponse_default_instance_; +class SetPWMRequest; +struct SetPWMRequestDefaultTypeInternal; +extern SetPWMRequestDefaultTypeInternal _SetPWMRequest_default_instance_; +class SetPWMResponse; +struct SetPWMResponseDefaultTypeInternal; +extern SetPWMResponseDefaultTypeInternal _SetPWMResponse_default_instance_; +class StatusRequest; +struct StatusRequestDefaultTypeInternal; +extern StatusRequestDefaultTypeInternal _StatusRequest_default_instance_; +class StatusResponse; +struct StatusResponseDefaultTypeInternal; +extern StatusResponseDefaultTypeInternal _StatusResponse_default_instance_; +} // namespace v1 +} // namespace board +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::board::v1::GetDigitalInterruptValueRequest* Arena::CreateMaybeMessage<::viam::component::board::v1::GetDigitalInterruptValueRequest>(Arena*); +template<> ::viam::component::board::v1::GetDigitalInterruptValueResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::GetDigitalInterruptValueResponse>(Arena*); +template<> ::viam::component::board::v1::GetGPIORequest* Arena::CreateMaybeMessage<::viam::component::board::v1::GetGPIORequest>(Arena*); +template<> ::viam::component::board::v1::GetGPIOResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::GetGPIOResponse>(Arena*); +template<> ::viam::component::board::v1::PWMFrequencyRequest* Arena::CreateMaybeMessage<::viam::component::board::v1::PWMFrequencyRequest>(Arena*); +template<> ::viam::component::board::v1::PWMFrequencyResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::PWMFrequencyResponse>(Arena*); +template<> ::viam::component::board::v1::PWMRequest* Arena::CreateMaybeMessage<::viam::component::board::v1::PWMRequest>(Arena*); +template<> ::viam::component::board::v1::PWMResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::PWMResponse>(Arena*); +template<> ::viam::component::board::v1::ReadAnalogReaderRequest* Arena::CreateMaybeMessage<::viam::component::board::v1::ReadAnalogReaderRequest>(Arena*); +template<> ::viam::component::board::v1::ReadAnalogReaderResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::ReadAnalogReaderResponse>(Arena*); +template<> ::viam::component::board::v1::SetGPIORequest* Arena::CreateMaybeMessage<::viam::component::board::v1::SetGPIORequest>(Arena*); +template<> ::viam::component::board::v1::SetGPIOResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::SetGPIOResponse>(Arena*); +template<> ::viam::component::board::v1::SetPWMFrequencyRequest* Arena::CreateMaybeMessage<::viam::component::board::v1::SetPWMFrequencyRequest>(Arena*); +template<> ::viam::component::board::v1::SetPWMFrequencyResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::SetPWMFrequencyResponse>(Arena*); +template<> ::viam::component::board::v1::SetPWMRequest* Arena::CreateMaybeMessage<::viam::component::board::v1::SetPWMRequest>(Arena*); +template<> ::viam::component::board::v1::SetPWMResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::SetPWMResponse>(Arena*); +template<> ::viam::component::board::v1::StatusRequest* Arena::CreateMaybeMessage<::viam::component::board::v1::StatusRequest>(Arena*); +template<> ::viam::component::board::v1::StatusResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::StatusResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace component { +namespace board { +namespace v1 { + +// =================================================================== + +class StatusRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.StatusRequest) */ { + public: + inline StatusRequest() : StatusRequest(nullptr) {} + ~StatusRequest() override; + explicit PROTOBUF_CONSTEXPR StatusRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StatusRequest(const StatusRequest& from); + StatusRequest(StatusRequest&& from) noexcept + : StatusRequest() { + *this = ::std::move(from); + } + + inline StatusRequest& operator=(const StatusRequest& from) { + CopyFrom(from); + return *this; + } + inline StatusRequest& operator=(StatusRequest&& 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 StatusRequest& default_instance() { + return *internal_default_instance(); + } + static inline const StatusRequest* internal_default_instance() { + return reinterpret_cast( + &_StatusRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(StatusRequest& a, StatusRequest& b) { + a.Swap(&b); + } + inline void Swap(StatusRequest* 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(StatusRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StatusRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StatusRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const StatusRequest& from) { + StatusRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StatusRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.StatusRequest"; + } + protected: + explicit StatusRequest(::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.component.board.v1.StatusRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; +// ------------------------------------------------------------------- + +class StatusResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.StatusResponse) */ { + public: + inline StatusResponse() : StatusResponse(nullptr) {} + ~StatusResponse() override; + explicit PROTOBUF_CONSTEXPR StatusResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StatusResponse(const StatusResponse& from); + StatusResponse(StatusResponse&& from) noexcept + : StatusResponse() { + *this = ::std::move(from); + } + + inline StatusResponse& operator=(const StatusResponse& from) { + CopyFrom(from); + return *this; + } + inline StatusResponse& operator=(StatusResponse&& 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 StatusResponse& default_instance() { + return *internal_default_instance(); + } + static inline const StatusResponse* internal_default_instance() { + return reinterpret_cast( + &_StatusResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(StatusResponse& a, StatusResponse& b) { + a.Swap(&b); + } + inline void Swap(StatusResponse* 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(StatusResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StatusResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StatusResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const StatusResponse& from) { + StatusResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StatusResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.StatusResponse"; + } + protected: + explicit StatusResponse(::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 { + kStatusFieldNumber = 1, + }; + // .viam.common.v1.BoardStatus status = 1 [json_name = "status"]; + bool has_status() const; + private: + bool _internal_has_status() const; + public: + void clear_status(); + const ::viam::common::v1::BoardStatus& status() const; + PROTOBUF_NODISCARD ::viam::common::v1::BoardStatus* release_status(); + ::viam::common::v1::BoardStatus* mutable_status(); + void set_allocated_status(::viam::common::v1::BoardStatus* status); + private: + const ::viam::common::v1::BoardStatus& _internal_status() const; + ::viam::common::v1::BoardStatus* _internal_mutable_status(); + public: + void unsafe_arena_set_allocated_status( + ::viam::common::v1::BoardStatus* status); + ::viam::common::v1::BoardStatus* unsafe_arena_release_status(); + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.StatusResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::common::v1::BoardStatus* status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; +// ------------------------------------------------------------------- + +class SetGPIORequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetGPIORequest) */ { + public: + inline SetGPIORequest() : SetGPIORequest(nullptr) {} + ~SetGPIORequest() override; + explicit PROTOBUF_CONSTEXPR SetGPIORequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SetGPIORequest(const SetGPIORequest& from); + SetGPIORequest(SetGPIORequest&& from) noexcept + : SetGPIORequest() { + *this = ::std::move(from); + } + + inline SetGPIORequest& operator=(const SetGPIORequest& from) { + CopyFrom(from); + return *this; + } + inline SetGPIORequest& operator=(SetGPIORequest&& 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 SetGPIORequest& default_instance() { + return *internal_default_instance(); + } + static inline const SetGPIORequest* internal_default_instance() { + return reinterpret_cast( + &_SetGPIORequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(SetGPIORequest& a, SetGPIORequest& b) { + a.Swap(&b); + } + inline void Swap(SetGPIORequest* 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(SetGPIORequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetGPIORequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SetGPIORequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SetGPIORequest& from) { + SetGPIORequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SetGPIORequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.SetGPIORequest"; + } + protected: + explicit SetGPIORequest(::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, + kPinFieldNumber = 2, + kExtraFieldNumber = 99, + kHighFieldNumber = 3, + }; + // 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 pin = 2 [json_name = "pin"]; + void clear_pin(); + const std::string& pin() const; + template + void set_pin(ArgT0&& arg0, ArgT... args); + std::string* mutable_pin(); + PROTOBUF_NODISCARD std::string* release_pin(); + void set_allocated_pin(std::string* pin); + private: + const std::string& _internal_pin() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin(const std::string& value); + std::string* _internal_mutable_pin(); + 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(); + + // bool high = 3 [json_name = "high"]; + void clear_high(); + bool high() const; + void set_high(bool value); + private: + bool _internal_high() const; + void _internal_set_high(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetGPIORequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pin_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + bool high_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; +// ------------------------------------------------------------------- + +class SetGPIOResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetGPIOResponse) */ { + public: + inline SetGPIOResponse() : SetGPIOResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SetGPIOResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SetGPIOResponse(const SetGPIOResponse& from); + SetGPIOResponse(SetGPIOResponse&& from) noexcept + : SetGPIOResponse() { + *this = ::std::move(from); + } + + inline SetGPIOResponse& operator=(const SetGPIOResponse& from) { + CopyFrom(from); + return *this; + } + inline SetGPIOResponse& operator=(SetGPIOResponse&& 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 SetGPIOResponse& default_instance() { + return *internal_default_instance(); + } + static inline const SetGPIOResponse* internal_default_instance() { + return reinterpret_cast( + &_SetGPIOResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(SetGPIOResponse& a, SetGPIOResponse& b) { + a.Swap(&b); + } + inline void Swap(SetGPIOResponse* 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(SetGPIOResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetGPIOResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SetGPIOResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SetGPIOResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.SetGPIOResponse"; + } + protected: + explicit SetGPIOResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetGPIOResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; +// ------------------------------------------------------------------- + +class GetGPIORequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.GetGPIORequest) */ { + public: + inline GetGPIORequest() : GetGPIORequest(nullptr) {} + ~GetGPIORequest() override; + explicit PROTOBUF_CONSTEXPR GetGPIORequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetGPIORequest(const GetGPIORequest& from); + GetGPIORequest(GetGPIORequest&& from) noexcept + : GetGPIORequest() { + *this = ::std::move(from); + } + + inline GetGPIORequest& operator=(const GetGPIORequest& from) { + CopyFrom(from); + return *this; + } + inline GetGPIORequest& operator=(GetGPIORequest&& 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 GetGPIORequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetGPIORequest* internal_default_instance() { + return reinterpret_cast( + &_GetGPIORequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(GetGPIORequest& a, GetGPIORequest& b) { + a.Swap(&b); + } + inline void Swap(GetGPIORequest* 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(GetGPIORequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetGPIORequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetGPIORequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetGPIORequest& from) { + GetGPIORequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetGPIORequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.GetGPIORequest"; + } + protected: + explicit GetGPIORequest(::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, + kPinFieldNumber = 2, + 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 pin = 2 [json_name = "pin"]; + void clear_pin(); + const std::string& pin() const; + template + void set_pin(ArgT0&& arg0, ArgT... args); + std::string* mutable_pin(); + PROTOBUF_NODISCARD std::string* release_pin(); + void set_allocated_pin(std::string* pin); + private: + const std::string& _internal_pin() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin(const std::string& value); + std::string* _internal_mutable_pin(); + public: + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; + public: + void clear_extra(); + const ::PROTOBUF_NAMESPACE_ID::Struct& extra() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_extra(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_extra(); + void set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); + public: + void unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.GetGPIORequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pin_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; +// ------------------------------------------------------------------- + +class GetGPIOResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.GetGPIOResponse) */ { + public: + inline GetGPIOResponse() : GetGPIOResponse(nullptr) {} + ~GetGPIOResponse() override; + explicit PROTOBUF_CONSTEXPR GetGPIOResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetGPIOResponse(const GetGPIOResponse& from); + GetGPIOResponse(GetGPIOResponse&& from) noexcept + : GetGPIOResponse() { + *this = ::std::move(from); + } + + inline GetGPIOResponse& operator=(const GetGPIOResponse& from) { + CopyFrom(from); + return *this; + } + inline GetGPIOResponse& operator=(GetGPIOResponse&& 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 GetGPIOResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetGPIOResponse* internal_default_instance() { + return reinterpret_cast( + &_GetGPIOResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(GetGPIOResponse& a, GetGPIOResponse& b) { + a.Swap(&b); + } + inline void Swap(GetGPIOResponse* 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(GetGPIOResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetGPIOResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetGPIOResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetGPIOResponse& from) { + GetGPIOResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetGPIOResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.GetGPIOResponse"; + } + protected: + explicit GetGPIOResponse(::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 { + kHighFieldNumber = 1, + }; + // bool high = 1 [json_name = "high"]; + void clear_high(); + bool high() const; + void set_high(bool value); + private: + bool _internal_high() const; + void _internal_set_high(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.GetGPIOResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + bool high_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; +// ------------------------------------------------------------------- + +class PWMRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.PWMRequest) */ { + public: + inline PWMRequest() : PWMRequest(nullptr) {} + ~PWMRequest() override; + explicit PROTOBUF_CONSTEXPR PWMRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PWMRequest(const PWMRequest& from); + PWMRequest(PWMRequest&& from) noexcept + : PWMRequest() { + *this = ::std::move(from); + } + + inline PWMRequest& operator=(const PWMRequest& from) { + CopyFrom(from); + return *this; + } + inline PWMRequest& operator=(PWMRequest&& 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 PWMRequest& default_instance() { + return *internal_default_instance(); + } + static inline const PWMRequest* internal_default_instance() { + return reinterpret_cast( + &_PWMRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(PWMRequest& a, PWMRequest& b) { + a.Swap(&b); + } + inline void Swap(PWMRequest* 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(PWMRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PWMRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PWMRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const PWMRequest& from) { + PWMRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PWMRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.PWMRequest"; + } + protected: + explicit PWMRequest(::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, + kPinFieldNumber = 2, + 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 pin = 2 [json_name = "pin"]; + void clear_pin(); + const std::string& pin() const; + template + void set_pin(ArgT0&& arg0, ArgT... args); + std::string* mutable_pin(); + PROTOBUF_NODISCARD std::string* release_pin(); + void set_allocated_pin(std::string* pin); + private: + const std::string& _internal_pin() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin(const std::string& value); + std::string* _internal_mutable_pin(); + public: + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; + public: + void clear_extra(); + const ::PROTOBUF_NAMESPACE_ID::Struct& extra() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_extra(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_extra(); + void set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); + public: + void unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.PWMRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pin_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; +// ------------------------------------------------------------------- + +class PWMResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.PWMResponse) */ { + public: + inline PWMResponse() : PWMResponse(nullptr) {} + ~PWMResponse() override; + explicit PROTOBUF_CONSTEXPR PWMResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PWMResponse(const PWMResponse& from); + PWMResponse(PWMResponse&& from) noexcept + : PWMResponse() { + *this = ::std::move(from); + } + + inline PWMResponse& operator=(const PWMResponse& from) { + CopyFrom(from); + return *this; + } + inline PWMResponse& operator=(PWMResponse&& 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 PWMResponse& default_instance() { + return *internal_default_instance(); + } + static inline const PWMResponse* internal_default_instance() { + return reinterpret_cast( + &_PWMResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(PWMResponse& a, PWMResponse& b) { + a.Swap(&b); + } + inline void Swap(PWMResponse* 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(PWMResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PWMResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PWMResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const PWMResponse& from) { + PWMResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PWMResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.PWMResponse"; + } + protected: + explicit PWMResponse(::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 { + kDutyCyclePctFieldNumber = 1, + }; + // double duty_cycle_pct = 1 [json_name = "dutyCyclePct"]; + void clear_duty_cycle_pct(); + double duty_cycle_pct() const; + void set_duty_cycle_pct(double value); + private: + double _internal_duty_cycle_pct() const; + void _internal_set_duty_cycle_pct(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.PWMResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + double duty_cycle_pct_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; +// ------------------------------------------------------------------- + +class SetPWMRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetPWMRequest) */ { + public: + inline SetPWMRequest() : SetPWMRequest(nullptr) {} + ~SetPWMRequest() override; + explicit PROTOBUF_CONSTEXPR SetPWMRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SetPWMRequest(const SetPWMRequest& from); + SetPWMRequest(SetPWMRequest&& from) noexcept + : SetPWMRequest() { + *this = ::std::move(from); + } + + inline SetPWMRequest& operator=(const SetPWMRequest& from) { + CopyFrom(from); + return *this; + } + inline SetPWMRequest& operator=(SetPWMRequest&& 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 SetPWMRequest& default_instance() { + return *internal_default_instance(); + } + static inline const SetPWMRequest* internal_default_instance() { + return reinterpret_cast( + &_SetPWMRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(SetPWMRequest& a, SetPWMRequest& b) { + a.Swap(&b); + } + inline void Swap(SetPWMRequest* 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(SetPWMRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetPWMRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SetPWMRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SetPWMRequest& from) { + SetPWMRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SetPWMRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.SetPWMRequest"; + } + protected: + explicit SetPWMRequest(::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, + kPinFieldNumber = 2, + kExtraFieldNumber = 99, + kDutyCyclePctFieldNumber = 3, + }; + // 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 pin = 2 [json_name = "pin"]; + void clear_pin(); + const std::string& pin() const; + template + void set_pin(ArgT0&& arg0, ArgT... args); + std::string* mutable_pin(); + PROTOBUF_NODISCARD std::string* release_pin(); + void set_allocated_pin(std::string* pin); + private: + const std::string& _internal_pin() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin(const std::string& value); + std::string* _internal_mutable_pin(); + 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(); + + // double duty_cycle_pct = 3 [json_name = "dutyCyclePct"]; + void clear_duty_cycle_pct(); + double duty_cycle_pct() const; + void set_duty_cycle_pct(double value); + private: + double _internal_duty_cycle_pct() const; + void _internal_set_duty_cycle_pct(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetPWMRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pin_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + double duty_cycle_pct_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; +// ------------------------------------------------------------------- + +class SetPWMResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetPWMResponse) */ { + public: + inline SetPWMResponse() : SetPWMResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SetPWMResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SetPWMResponse(const SetPWMResponse& from); + SetPWMResponse(SetPWMResponse&& from) noexcept + : SetPWMResponse() { + *this = ::std::move(from); + } + + inline SetPWMResponse& operator=(const SetPWMResponse& from) { + CopyFrom(from); + return *this; + } + inline SetPWMResponse& operator=(SetPWMResponse&& 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 SetPWMResponse& default_instance() { + return *internal_default_instance(); + } + static inline const SetPWMResponse* internal_default_instance() { + return reinterpret_cast( + &_SetPWMResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(SetPWMResponse& a, SetPWMResponse& b) { + a.Swap(&b); + } + inline void Swap(SetPWMResponse* 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(SetPWMResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetPWMResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SetPWMResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SetPWMResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.SetPWMResponse"; + } + protected: + explicit SetPWMResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetPWMResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; +// ------------------------------------------------------------------- + +class PWMFrequencyRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.PWMFrequencyRequest) */ { + public: + inline PWMFrequencyRequest() : PWMFrequencyRequest(nullptr) {} + ~PWMFrequencyRequest() override; + explicit PROTOBUF_CONSTEXPR PWMFrequencyRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PWMFrequencyRequest(const PWMFrequencyRequest& from); + PWMFrequencyRequest(PWMFrequencyRequest&& from) noexcept + : PWMFrequencyRequest() { + *this = ::std::move(from); + } + + inline PWMFrequencyRequest& operator=(const PWMFrequencyRequest& from) { + CopyFrom(from); + return *this; + } + inline PWMFrequencyRequest& operator=(PWMFrequencyRequest&& 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 PWMFrequencyRequest& default_instance() { + return *internal_default_instance(); + } + static inline const PWMFrequencyRequest* internal_default_instance() { + return reinterpret_cast( + &_PWMFrequencyRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(PWMFrequencyRequest& a, PWMFrequencyRequest& b) { + a.Swap(&b); + } + inline void Swap(PWMFrequencyRequest* 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(PWMFrequencyRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PWMFrequencyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PWMFrequencyRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const PWMFrequencyRequest& from) { + PWMFrequencyRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PWMFrequencyRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.PWMFrequencyRequest"; + } + protected: + explicit PWMFrequencyRequest(::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, + kPinFieldNumber = 2, + 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 pin = 2 [json_name = "pin"]; + void clear_pin(); + const std::string& pin() const; + template + void set_pin(ArgT0&& arg0, ArgT... args); + std::string* mutable_pin(); + PROTOBUF_NODISCARD std::string* release_pin(); + void set_allocated_pin(std::string* pin); + private: + const std::string& _internal_pin() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin(const std::string& value); + std::string* _internal_mutable_pin(); + public: + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; + public: + void clear_extra(); + const ::PROTOBUF_NAMESPACE_ID::Struct& extra() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_extra(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_extra(); + void set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); + public: + void unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.PWMFrequencyRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pin_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; +// ------------------------------------------------------------------- + +class PWMFrequencyResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.PWMFrequencyResponse) */ { + public: + inline PWMFrequencyResponse() : PWMFrequencyResponse(nullptr) {} + ~PWMFrequencyResponse() override; + explicit PROTOBUF_CONSTEXPR PWMFrequencyResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PWMFrequencyResponse(const PWMFrequencyResponse& from); + PWMFrequencyResponse(PWMFrequencyResponse&& from) noexcept + : PWMFrequencyResponse() { + *this = ::std::move(from); + } + + inline PWMFrequencyResponse& operator=(const PWMFrequencyResponse& from) { + CopyFrom(from); + return *this; + } + inline PWMFrequencyResponse& operator=(PWMFrequencyResponse&& 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 PWMFrequencyResponse& default_instance() { + return *internal_default_instance(); + } + static inline const PWMFrequencyResponse* internal_default_instance() { + return reinterpret_cast( + &_PWMFrequencyResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(PWMFrequencyResponse& a, PWMFrequencyResponse& b) { + a.Swap(&b); + } + inline void Swap(PWMFrequencyResponse* 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(PWMFrequencyResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PWMFrequencyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PWMFrequencyResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const PWMFrequencyResponse& from) { + PWMFrequencyResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PWMFrequencyResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.PWMFrequencyResponse"; + } + protected: + explicit PWMFrequencyResponse(::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 { + kFrequencyHzFieldNumber = 1, + }; + // uint64 frequency_hz = 1 [json_name = "frequencyHz"]; + void clear_frequency_hz(); + uint64_t frequency_hz() const; + void set_frequency_hz(uint64_t value); + private: + uint64_t _internal_frequency_hz() const; + void _internal_set_frequency_hz(uint64_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.PWMFrequencyResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + uint64_t frequency_hz_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; +// ------------------------------------------------------------------- + +class SetPWMFrequencyRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetPWMFrequencyRequest) */ { + public: + inline SetPWMFrequencyRequest() : SetPWMFrequencyRequest(nullptr) {} + ~SetPWMFrequencyRequest() override; + explicit PROTOBUF_CONSTEXPR SetPWMFrequencyRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SetPWMFrequencyRequest(const SetPWMFrequencyRequest& from); + SetPWMFrequencyRequest(SetPWMFrequencyRequest&& from) noexcept + : SetPWMFrequencyRequest() { + *this = ::std::move(from); + } + + inline SetPWMFrequencyRequest& operator=(const SetPWMFrequencyRequest& from) { + CopyFrom(from); + return *this; + } + inline SetPWMFrequencyRequest& operator=(SetPWMFrequencyRequest&& 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 SetPWMFrequencyRequest& default_instance() { + return *internal_default_instance(); + } + static inline const SetPWMFrequencyRequest* internal_default_instance() { + return reinterpret_cast( + &_SetPWMFrequencyRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(SetPWMFrequencyRequest& a, SetPWMFrequencyRequest& b) { + a.Swap(&b); + } + inline void Swap(SetPWMFrequencyRequest* 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(SetPWMFrequencyRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetPWMFrequencyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SetPWMFrequencyRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SetPWMFrequencyRequest& from) { + SetPWMFrequencyRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SetPWMFrequencyRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.SetPWMFrequencyRequest"; + } + protected: + explicit SetPWMFrequencyRequest(::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, + kPinFieldNumber = 2, + kExtraFieldNumber = 99, + kFrequencyHzFieldNumber = 3, + }; + // 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 pin = 2 [json_name = "pin"]; + void clear_pin(); + const std::string& pin() const; + template + void set_pin(ArgT0&& arg0, ArgT... args); + std::string* mutable_pin(); + PROTOBUF_NODISCARD std::string* release_pin(); + void set_allocated_pin(std::string* pin); + private: + const std::string& _internal_pin() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin(const std::string& value); + std::string* _internal_mutable_pin(); + 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(); + + // uint64 frequency_hz = 3 [json_name = "frequencyHz"]; + void clear_frequency_hz(); + uint64_t frequency_hz() const; + void set_frequency_hz(uint64_t value); + private: + uint64_t _internal_frequency_hz() const; + void _internal_set_frequency_hz(uint64_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetPWMFrequencyRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pin_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + uint64_t frequency_hz_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; +// ------------------------------------------------------------------- + +class SetPWMFrequencyResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetPWMFrequencyResponse) */ { + public: + inline SetPWMFrequencyResponse() : SetPWMFrequencyResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SetPWMFrequencyResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SetPWMFrequencyResponse(const SetPWMFrequencyResponse& from); + SetPWMFrequencyResponse(SetPWMFrequencyResponse&& from) noexcept + : SetPWMFrequencyResponse() { + *this = ::std::move(from); + } + + inline SetPWMFrequencyResponse& operator=(const SetPWMFrequencyResponse& from) { + CopyFrom(from); + return *this; + } + inline SetPWMFrequencyResponse& operator=(SetPWMFrequencyResponse&& 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 SetPWMFrequencyResponse& default_instance() { + return *internal_default_instance(); + } + static inline const SetPWMFrequencyResponse* internal_default_instance() { + return reinterpret_cast( + &_SetPWMFrequencyResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(SetPWMFrequencyResponse& a, SetPWMFrequencyResponse& b) { + a.Swap(&b); + } + inline void Swap(SetPWMFrequencyResponse* 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(SetPWMFrequencyResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetPWMFrequencyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SetPWMFrequencyResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SetPWMFrequencyResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.SetPWMFrequencyResponse"; + } + protected: + explicit SetPWMFrequencyResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetPWMFrequencyResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; +// ------------------------------------------------------------------- + +class ReadAnalogReaderRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.ReadAnalogReaderRequest) */ { + public: + inline ReadAnalogReaderRequest() : ReadAnalogReaderRequest(nullptr) {} + ~ReadAnalogReaderRequest() override; + explicit PROTOBUF_CONSTEXPR ReadAnalogReaderRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ReadAnalogReaderRequest(const ReadAnalogReaderRequest& from); + ReadAnalogReaderRequest(ReadAnalogReaderRequest&& from) noexcept + : ReadAnalogReaderRequest() { + *this = ::std::move(from); + } + + inline ReadAnalogReaderRequest& operator=(const ReadAnalogReaderRequest& from) { + CopyFrom(from); + return *this; + } + inline ReadAnalogReaderRequest& operator=(ReadAnalogReaderRequest&& 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 ReadAnalogReaderRequest& default_instance() { + return *internal_default_instance(); + } + static inline const ReadAnalogReaderRequest* internal_default_instance() { + return reinterpret_cast( + &_ReadAnalogReaderRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(ReadAnalogReaderRequest& a, ReadAnalogReaderRequest& b) { + a.Swap(&b); + } + inline void Swap(ReadAnalogReaderRequest* 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(ReadAnalogReaderRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ReadAnalogReaderRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ReadAnalogReaderRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ReadAnalogReaderRequest& from) { + ReadAnalogReaderRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ReadAnalogReaderRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.ReadAnalogReaderRequest"; + } + protected: + explicit ReadAnalogReaderRequest(::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 { + kBoardNameFieldNumber = 1, + kAnalogReaderNameFieldNumber = 2, + kExtraFieldNumber = 99, + }; + // string board_name = 1 [json_name = "boardName"]; + void clear_board_name(); + const std::string& board_name() const; + template + void set_board_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_board_name(); + PROTOBUF_NODISCARD std::string* release_board_name(); + void set_allocated_board_name(std::string* board_name); + private: + const std::string& _internal_board_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_board_name(const std::string& value); + std::string* _internal_mutable_board_name(); + public: + + // string analog_reader_name = 2 [json_name = "analogReaderName"]; + void clear_analog_reader_name(); + const std::string& analog_reader_name() const; + template + void set_analog_reader_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_analog_reader_name(); + PROTOBUF_NODISCARD std::string* release_analog_reader_name(); + void set_allocated_analog_reader_name(std::string* analog_reader_name); + private: + const std::string& _internal_analog_reader_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_analog_reader_name(const std::string& value); + std::string* _internal_mutable_analog_reader_name(); + public: + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; + public: + void clear_extra(); + const ::PROTOBUF_NAMESPACE_ID::Struct& extra() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_extra(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_extra(); + void set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); + public: + void unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.ReadAnalogReaderRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr board_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr analog_reader_name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; +// ------------------------------------------------------------------- + +class ReadAnalogReaderResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.ReadAnalogReaderResponse) */ { + public: + inline ReadAnalogReaderResponse() : ReadAnalogReaderResponse(nullptr) {} + ~ReadAnalogReaderResponse() override; + explicit PROTOBUF_CONSTEXPR ReadAnalogReaderResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ReadAnalogReaderResponse(const ReadAnalogReaderResponse& from); + ReadAnalogReaderResponse(ReadAnalogReaderResponse&& from) noexcept + : ReadAnalogReaderResponse() { + *this = ::std::move(from); + } + + inline ReadAnalogReaderResponse& operator=(const ReadAnalogReaderResponse& from) { + CopyFrom(from); + return *this; + } + inline ReadAnalogReaderResponse& operator=(ReadAnalogReaderResponse&& 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 ReadAnalogReaderResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ReadAnalogReaderResponse* internal_default_instance() { + return reinterpret_cast( + &_ReadAnalogReaderResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(ReadAnalogReaderResponse& a, ReadAnalogReaderResponse& b) { + a.Swap(&b); + } + inline void Swap(ReadAnalogReaderResponse* 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(ReadAnalogReaderResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ReadAnalogReaderResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ReadAnalogReaderResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ReadAnalogReaderResponse& from) { + ReadAnalogReaderResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ReadAnalogReaderResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.ReadAnalogReaderResponse"; + } + protected: + explicit ReadAnalogReaderResponse(::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 { + kValueFieldNumber = 1, + }; + // int32 value = 1 [json_name = "value"]; + void clear_value(); + int32_t value() const; + void set_value(int32_t value); + private: + int32_t _internal_value() const; + void _internal_set_value(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.ReadAnalogReaderResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + int32_t value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; +// ------------------------------------------------------------------- + +class GetDigitalInterruptValueRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.GetDigitalInterruptValueRequest) */ { + public: + inline GetDigitalInterruptValueRequest() : GetDigitalInterruptValueRequest(nullptr) {} + ~GetDigitalInterruptValueRequest() override; + explicit PROTOBUF_CONSTEXPR GetDigitalInterruptValueRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetDigitalInterruptValueRequest(const GetDigitalInterruptValueRequest& from); + GetDigitalInterruptValueRequest(GetDigitalInterruptValueRequest&& from) noexcept + : GetDigitalInterruptValueRequest() { + *this = ::std::move(from); + } + + inline GetDigitalInterruptValueRequest& operator=(const GetDigitalInterruptValueRequest& from) { + CopyFrom(from); + return *this; + } + inline GetDigitalInterruptValueRequest& operator=(GetDigitalInterruptValueRequest&& 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 GetDigitalInterruptValueRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetDigitalInterruptValueRequest* internal_default_instance() { + return reinterpret_cast( + &_GetDigitalInterruptValueRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + friend void swap(GetDigitalInterruptValueRequest& a, GetDigitalInterruptValueRequest& b) { + a.Swap(&b); + } + inline void Swap(GetDigitalInterruptValueRequest* 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(GetDigitalInterruptValueRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetDigitalInterruptValueRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetDigitalInterruptValueRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetDigitalInterruptValueRequest& from) { + GetDigitalInterruptValueRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetDigitalInterruptValueRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.GetDigitalInterruptValueRequest"; + } + protected: + explicit GetDigitalInterruptValueRequest(::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 { + kBoardNameFieldNumber = 1, + kDigitalInterruptNameFieldNumber = 2, + kExtraFieldNumber = 99, + }; + // string board_name = 1 [json_name = "boardName"]; + void clear_board_name(); + const std::string& board_name() const; + template + void set_board_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_board_name(); + PROTOBUF_NODISCARD std::string* release_board_name(); + void set_allocated_board_name(std::string* board_name); + private: + const std::string& _internal_board_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_board_name(const std::string& value); + std::string* _internal_mutable_board_name(); + public: + + // string digital_interrupt_name = 2 [json_name = "digitalInterruptName"]; + void clear_digital_interrupt_name(); + const std::string& digital_interrupt_name() const; + template + void set_digital_interrupt_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_digital_interrupt_name(); + PROTOBUF_NODISCARD std::string* release_digital_interrupt_name(); + void set_allocated_digital_interrupt_name(std::string* digital_interrupt_name); + private: + const std::string& _internal_digital_interrupt_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_digital_interrupt_name(const std::string& value); + std::string* _internal_mutable_digital_interrupt_name(); + public: + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; + public: + void clear_extra(); + const ::PROTOBUF_NAMESPACE_ID::Struct& extra() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_extra(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_extra(); + void set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); + public: + void unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.GetDigitalInterruptValueRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr board_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr digital_interrupt_name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; +// ------------------------------------------------------------------- + +class GetDigitalInterruptValueResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.GetDigitalInterruptValueResponse) */ { + public: + inline GetDigitalInterruptValueResponse() : GetDigitalInterruptValueResponse(nullptr) {} + ~GetDigitalInterruptValueResponse() override; + explicit PROTOBUF_CONSTEXPR GetDigitalInterruptValueResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetDigitalInterruptValueResponse(const GetDigitalInterruptValueResponse& from); + GetDigitalInterruptValueResponse(GetDigitalInterruptValueResponse&& from) noexcept + : GetDigitalInterruptValueResponse() { + *this = ::std::move(from); + } + + inline GetDigitalInterruptValueResponse& operator=(const GetDigitalInterruptValueResponse& from) { + CopyFrom(from); + return *this; + } + inline GetDigitalInterruptValueResponse& operator=(GetDigitalInterruptValueResponse&& 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 GetDigitalInterruptValueResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetDigitalInterruptValueResponse* internal_default_instance() { + return reinterpret_cast( + &_GetDigitalInterruptValueResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + friend void swap(GetDigitalInterruptValueResponse& a, GetDigitalInterruptValueResponse& b) { + a.Swap(&b); + } + inline void Swap(GetDigitalInterruptValueResponse* 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(GetDigitalInterruptValueResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetDigitalInterruptValueResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetDigitalInterruptValueResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetDigitalInterruptValueResponse& from) { + GetDigitalInterruptValueResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetDigitalInterruptValueResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.GetDigitalInterruptValueResponse"; + } + protected: + explicit GetDigitalInterruptValueResponse(::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 { + kValueFieldNumber = 1, + }; + // int64 value = 1 [json_name = "value"]; + void clear_value(); + int64_t value() const; + void set_value(int64_t value); + private: + int64_t _internal_value() const; + void _internal_set_value(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.GetDigitalInterruptValueResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + int64_t value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StatusRequest + +// string name = 1 [json_name = "name"]; +inline void StatusRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& StatusRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.StatusRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void StatusRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.board.v1.StatusRequest.name) +} +inline std::string* StatusRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.StatusRequest.name) + return _s; +} +inline const std::string& StatusRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void StatusRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* StatusRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* StatusRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.StatusRequest.name) + return _impl_.name_.Release(); +} +inline void StatusRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.StatusRequest.name) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool StatusRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool StatusRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StatusRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StatusRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.StatusRequest.extra) + return _internal_extra(); +} +inline void StatusRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.StatusRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* StatusRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* StatusRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.StatusRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* StatusRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* StatusRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.StatusRequest.extra) + return _msg; +} +inline void StatusRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.StatusRequest.extra) +} + +// ------------------------------------------------------------------- + +// StatusResponse + +// .viam.common.v1.BoardStatus status = 1 [json_name = "status"]; +inline bool StatusResponse::_internal_has_status() const { + return this != internal_default_instance() && _impl_.status_ != nullptr; +} +inline bool StatusResponse::has_status() const { + return _internal_has_status(); +} +inline const ::viam::common::v1::BoardStatus& StatusResponse::_internal_status() const { + const ::viam::common::v1::BoardStatus* p = _impl_.status_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_BoardStatus_default_instance_); +} +inline const ::viam::common::v1::BoardStatus& StatusResponse::status() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.StatusResponse.status) + return _internal_status(); +} +inline void StatusResponse::unsafe_arena_set_allocated_status( + ::viam::common::v1::BoardStatus* status) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.status_); + } + _impl_.status_ = status; + if (status) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.StatusResponse.status) +} +inline ::viam::common::v1::BoardStatus* StatusResponse::release_status() { + + ::viam::common::v1::BoardStatus* temp = _impl_.status_; + _impl_.status_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::BoardStatus* StatusResponse::unsafe_arena_release_status() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.StatusResponse.status) + + ::viam::common::v1::BoardStatus* temp = _impl_.status_; + _impl_.status_ = nullptr; + return temp; +} +inline ::viam::common::v1::BoardStatus* StatusResponse::_internal_mutable_status() { + + if (_impl_.status_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::BoardStatus>(GetArenaForAllocation()); + _impl_.status_ = p; + } + return _impl_.status_; +} +inline ::viam::common::v1::BoardStatus* StatusResponse::mutable_status() { + ::viam::common::v1::BoardStatus* _msg = _internal_mutable_status(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.StatusResponse.status) + return _msg; +} +inline void StatusResponse::set_allocated_status(::viam::common::v1::BoardStatus* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.status_); + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status)); + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + _impl_.status_ = status; + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.StatusResponse.status) +} + +// ------------------------------------------------------------------- + +// SetGPIORequest + +// string name = 1 [json_name = "name"]; +inline void SetGPIORequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& SetGPIORequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.SetGPIORequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SetGPIORequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.board.v1.SetGPIORequest.name) +} +inline std::string* SetGPIORequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.SetGPIORequest.name) + return _s; +} +inline const std::string& SetGPIORequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void SetGPIORequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* SetGPIORequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* SetGPIORequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.SetGPIORequest.name) + return _impl_.name_.Release(); +} +inline void SetGPIORequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.SetGPIORequest.name) +} + +// string pin = 2 [json_name = "pin"]; +inline void SetGPIORequest::clear_pin() { + _impl_.pin_.ClearToEmpty(); +} +inline const std::string& SetGPIORequest::pin() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.SetGPIORequest.pin) + return _internal_pin(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SetGPIORequest::set_pin(ArgT0&& arg0, ArgT... args) { + + _impl_.pin_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.board.v1.SetGPIORequest.pin) +} +inline std::string* SetGPIORequest::mutable_pin() { + std::string* _s = _internal_mutable_pin(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.SetGPIORequest.pin) + return _s; +} +inline const std::string& SetGPIORequest::_internal_pin() const { + return _impl_.pin_.Get(); +} +inline void SetGPIORequest::_internal_set_pin(const std::string& value) { + + _impl_.pin_.Set(value, GetArenaForAllocation()); +} +inline std::string* SetGPIORequest::_internal_mutable_pin() { + + return _impl_.pin_.Mutable(GetArenaForAllocation()); +} +inline std::string* SetGPIORequest::release_pin() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.SetGPIORequest.pin) + return _impl_.pin_.Release(); +} +inline void SetGPIORequest::set_allocated_pin(std::string* pin) { + if (pin != nullptr) { + + } else { + + } + _impl_.pin_.SetAllocated(pin, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.pin_.IsDefault()) { + _impl_.pin_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.SetGPIORequest.pin) +} + +// bool high = 3 [json_name = "high"]; +inline void SetGPIORequest::clear_high() { + _impl_.high_ = false; +} +inline bool SetGPIORequest::_internal_high() const { + return _impl_.high_; +} +inline bool SetGPIORequest::high() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.SetGPIORequest.high) + return _internal_high(); +} +inline void SetGPIORequest::_internal_set_high(bool value) { + + _impl_.high_ = value; +} +inline void SetGPIORequest::set_high(bool value) { + _internal_set_high(value); + // @@protoc_insertion_point(field_set:viam.component.board.v1.SetGPIORequest.high) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool SetGPIORequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool SetGPIORequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetGPIORequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetGPIORequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.SetGPIORequest.extra) + return _internal_extra(); +} +inline void SetGPIORequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.SetGPIORequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetGPIORequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* SetGPIORequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.SetGPIORequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetGPIORequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetGPIORequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.SetGPIORequest.extra) + return _msg; +} +inline void SetGPIORequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.SetGPIORequest.extra) +} + +// ------------------------------------------------------------------- + +// SetGPIOResponse + +// ------------------------------------------------------------------- + +// GetGPIORequest + +// string name = 1 [json_name = "name"]; +inline void GetGPIORequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetGPIORequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.GetGPIORequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetGPIORequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.board.v1.GetGPIORequest.name) +} +inline std::string* GetGPIORequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.GetGPIORequest.name) + return _s; +} +inline const std::string& GetGPIORequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetGPIORequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetGPIORequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetGPIORequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.GetGPIORequest.name) + return _impl_.name_.Release(); +} +inline void GetGPIORequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.GetGPIORequest.name) +} + +// string pin = 2 [json_name = "pin"]; +inline void GetGPIORequest::clear_pin() { + _impl_.pin_.ClearToEmpty(); +} +inline const std::string& GetGPIORequest::pin() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.GetGPIORequest.pin) + return _internal_pin(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetGPIORequest::set_pin(ArgT0&& arg0, ArgT... args) { + + _impl_.pin_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.board.v1.GetGPIORequest.pin) +} +inline std::string* GetGPIORequest::mutable_pin() { + std::string* _s = _internal_mutable_pin(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.GetGPIORequest.pin) + return _s; +} +inline const std::string& GetGPIORequest::_internal_pin() const { + return _impl_.pin_.Get(); +} +inline void GetGPIORequest::_internal_set_pin(const std::string& value) { + + _impl_.pin_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetGPIORequest::_internal_mutable_pin() { + + return _impl_.pin_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetGPIORequest::release_pin() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.GetGPIORequest.pin) + return _impl_.pin_.Release(); +} +inline void GetGPIORequest::set_allocated_pin(std::string* pin) { + if (pin != nullptr) { + + } else { + + } + _impl_.pin_.SetAllocated(pin, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.pin_.IsDefault()) { + _impl_.pin_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.GetGPIORequest.pin) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetGPIORequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool GetGPIORequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetGPIORequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetGPIORequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.GetGPIORequest.extra) + return _internal_extra(); +} +inline void GetGPIORequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.GetGPIORequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetGPIORequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* GetGPIORequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.GetGPIORequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetGPIORequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetGPIORequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.GetGPIORequest.extra) + return _msg; +} +inline void GetGPIORequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.GetGPIORequest.extra) +} + +// ------------------------------------------------------------------- + +// GetGPIOResponse + +// bool high = 1 [json_name = "high"]; +inline void GetGPIOResponse::clear_high() { + _impl_.high_ = false; +} +inline bool GetGPIOResponse::_internal_high() const { + return _impl_.high_; +} +inline bool GetGPIOResponse::high() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.GetGPIOResponse.high) + return _internal_high(); +} +inline void GetGPIOResponse::_internal_set_high(bool value) { + + _impl_.high_ = value; +} +inline void GetGPIOResponse::set_high(bool value) { + _internal_set_high(value); + // @@protoc_insertion_point(field_set:viam.component.board.v1.GetGPIOResponse.high) +} + +// ------------------------------------------------------------------- + +// PWMRequest + +// string name = 1 [json_name = "name"]; +inline void PWMRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& PWMRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.PWMRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PWMRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.board.v1.PWMRequest.name) +} +inline std::string* PWMRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.PWMRequest.name) + return _s; +} +inline const std::string& PWMRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void PWMRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* PWMRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* PWMRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.PWMRequest.name) + return _impl_.name_.Release(); +} +inline void PWMRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.PWMRequest.name) +} + +// string pin = 2 [json_name = "pin"]; +inline void PWMRequest::clear_pin() { + _impl_.pin_.ClearToEmpty(); +} +inline const std::string& PWMRequest::pin() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.PWMRequest.pin) + return _internal_pin(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PWMRequest::set_pin(ArgT0&& arg0, ArgT... args) { + + _impl_.pin_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.board.v1.PWMRequest.pin) +} +inline std::string* PWMRequest::mutable_pin() { + std::string* _s = _internal_mutable_pin(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.PWMRequest.pin) + return _s; +} +inline const std::string& PWMRequest::_internal_pin() const { + return _impl_.pin_.Get(); +} +inline void PWMRequest::_internal_set_pin(const std::string& value) { + + _impl_.pin_.Set(value, GetArenaForAllocation()); +} +inline std::string* PWMRequest::_internal_mutable_pin() { + + return _impl_.pin_.Mutable(GetArenaForAllocation()); +} +inline std::string* PWMRequest::release_pin() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.PWMRequest.pin) + return _impl_.pin_.Release(); +} +inline void PWMRequest::set_allocated_pin(std::string* pin) { + if (pin != nullptr) { + + } else { + + } + _impl_.pin_.SetAllocated(pin, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.pin_.IsDefault()) { + _impl_.pin_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.PWMRequest.pin) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool PWMRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool PWMRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& PWMRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& PWMRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.PWMRequest.extra) + return _internal_extra(); +} +inline void PWMRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.PWMRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* PWMRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* PWMRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.PWMRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* PWMRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* PWMRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.PWMRequest.extra) + return _msg; +} +inline void PWMRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.PWMRequest.extra) +} + +// ------------------------------------------------------------------- + +// PWMResponse + +// double duty_cycle_pct = 1 [json_name = "dutyCyclePct"]; +inline void PWMResponse::clear_duty_cycle_pct() { + _impl_.duty_cycle_pct_ = 0; +} +inline double PWMResponse::_internal_duty_cycle_pct() const { + return _impl_.duty_cycle_pct_; +} +inline double PWMResponse::duty_cycle_pct() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.PWMResponse.duty_cycle_pct) + return _internal_duty_cycle_pct(); +} +inline void PWMResponse::_internal_set_duty_cycle_pct(double value) { + + _impl_.duty_cycle_pct_ = value; +} +inline void PWMResponse::set_duty_cycle_pct(double value) { + _internal_set_duty_cycle_pct(value); + // @@protoc_insertion_point(field_set:viam.component.board.v1.PWMResponse.duty_cycle_pct) +} + +// ------------------------------------------------------------------- + +// SetPWMRequest + +// string name = 1 [json_name = "name"]; +inline void SetPWMRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& SetPWMRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.SetPWMRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SetPWMRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.board.v1.SetPWMRequest.name) +} +inline std::string* SetPWMRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.SetPWMRequest.name) + return _s; +} +inline const std::string& SetPWMRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void SetPWMRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* SetPWMRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* SetPWMRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.SetPWMRequest.name) + return _impl_.name_.Release(); +} +inline void SetPWMRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.SetPWMRequest.name) +} + +// string pin = 2 [json_name = "pin"]; +inline void SetPWMRequest::clear_pin() { + _impl_.pin_.ClearToEmpty(); +} +inline const std::string& SetPWMRequest::pin() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.SetPWMRequest.pin) + return _internal_pin(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SetPWMRequest::set_pin(ArgT0&& arg0, ArgT... args) { + + _impl_.pin_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.board.v1.SetPWMRequest.pin) +} +inline std::string* SetPWMRequest::mutable_pin() { + std::string* _s = _internal_mutable_pin(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.SetPWMRequest.pin) + return _s; +} +inline const std::string& SetPWMRequest::_internal_pin() const { + return _impl_.pin_.Get(); +} +inline void SetPWMRequest::_internal_set_pin(const std::string& value) { + + _impl_.pin_.Set(value, GetArenaForAllocation()); +} +inline std::string* SetPWMRequest::_internal_mutable_pin() { + + return _impl_.pin_.Mutable(GetArenaForAllocation()); +} +inline std::string* SetPWMRequest::release_pin() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.SetPWMRequest.pin) + return _impl_.pin_.Release(); +} +inline void SetPWMRequest::set_allocated_pin(std::string* pin) { + if (pin != nullptr) { + + } else { + + } + _impl_.pin_.SetAllocated(pin, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.pin_.IsDefault()) { + _impl_.pin_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.SetPWMRequest.pin) +} + +// double duty_cycle_pct = 3 [json_name = "dutyCyclePct"]; +inline void SetPWMRequest::clear_duty_cycle_pct() { + _impl_.duty_cycle_pct_ = 0; +} +inline double SetPWMRequest::_internal_duty_cycle_pct() const { + return _impl_.duty_cycle_pct_; +} +inline double SetPWMRequest::duty_cycle_pct() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.SetPWMRequest.duty_cycle_pct) + return _internal_duty_cycle_pct(); +} +inline void SetPWMRequest::_internal_set_duty_cycle_pct(double value) { + + _impl_.duty_cycle_pct_ = value; +} +inline void SetPWMRequest::set_duty_cycle_pct(double value) { + _internal_set_duty_cycle_pct(value); + // @@protoc_insertion_point(field_set:viam.component.board.v1.SetPWMRequest.duty_cycle_pct) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool SetPWMRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool SetPWMRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetPWMRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetPWMRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.SetPWMRequest.extra) + return _internal_extra(); +} +inline void SetPWMRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.SetPWMRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPWMRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* SetPWMRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.SetPWMRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPWMRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPWMRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.SetPWMRequest.extra) + return _msg; +} +inline void SetPWMRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.SetPWMRequest.extra) +} + +// ------------------------------------------------------------------- + +// SetPWMResponse + +// ------------------------------------------------------------------- + +// PWMFrequencyRequest + +// string name = 1 [json_name = "name"]; +inline void PWMFrequencyRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& PWMFrequencyRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.PWMFrequencyRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PWMFrequencyRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.board.v1.PWMFrequencyRequest.name) +} +inline std::string* PWMFrequencyRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.PWMFrequencyRequest.name) + return _s; +} +inline const std::string& PWMFrequencyRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void PWMFrequencyRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* PWMFrequencyRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* PWMFrequencyRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.PWMFrequencyRequest.name) + return _impl_.name_.Release(); +} +inline void PWMFrequencyRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.PWMFrequencyRequest.name) +} + +// string pin = 2 [json_name = "pin"]; +inline void PWMFrequencyRequest::clear_pin() { + _impl_.pin_.ClearToEmpty(); +} +inline const std::string& PWMFrequencyRequest::pin() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.PWMFrequencyRequest.pin) + return _internal_pin(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PWMFrequencyRequest::set_pin(ArgT0&& arg0, ArgT... args) { + + _impl_.pin_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.board.v1.PWMFrequencyRequest.pin) +} +inline std::string* PWMFrequencyRequest::mutable_pin() { + std::string* _s = _internal_mutable_pin(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.PWMFrequencyRequest.pin) + return _s; +} +inline const std::string& PWMFrequencyRequest::_internal_pin() const { + return _impl_.pin_.Get(); +} +inline void PWMFrequencyRequest::_internal_set_pin(const std::string& value) { + + _impl_.pin_.Set(value, GetArenaForAllocation()); +} +inline std::string* PWMFrequencyRequest::_internal_mutable_pin() { + + return _impl_.pin_.Mutable(GetArenaForAllocation()); +} +inline std::string* PWMFrequencyRequest::release_pin() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.PWMFrequencyRequest.pin) + return _impl_.pin_.Release(); +} +inline void PWMFrequencyRequest::set_allocated_pin(std::string* pin) { + if (pin != nullptr) { + + } else { + + } + _impl_.pin_.SetAllocated(pin, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.pin_.IsDefault()) { + _impl_.pin_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.PWMFrequencyRequest.pin) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool PWMFrequencyRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool PWMFrequencyRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& PWMFrequencyRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& PWMFrequencyRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.PWMFrequencyRequest.extra) + return _internal_extra(); +} +inline void PWMFrequencyRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.PWMFrequencyRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* PWMFrequencyRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* PWMFrequencyRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.PWMFrequencyRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* PWMFrequencyRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* PWMFrequencyRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.PWMFrequencyRequest.extra) + return _msg; +} +inline void PWMFrequencyRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.PWMFrequencyRequest.extra) +} + +// ------------------------------------------------------------------- + +// PWMFrequencyResponse + +// uint64 frequency_hz = 1 [json_name = "frequencyHz"]; +inline void PWMFrequencyResponse::clear_frequency_hz() { + _impl_.frequency_hz_ = uint64_t{0u}; +} +inline uint64_t PWMFrequencyResponse::_internal_frequency_hz() const { + return _impl_.frequency_hz_; +} +inline uint64_t PWMFrequencyResponse::frequency_hz() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.PWMFrequencyResponse.frequency_hz) + return _internal_frequency_hz(); +} +inline void PWMFrequencyResponse::_internal_set_frequency_hz(uint64_t value) { + + _impl_.frequency_hz_ = value; +} +inline void PWMFrequencyResponse::set_frequency_hz(uint64_t value) { + _internal_set_frequency_hz(value); + // @@protoc_insertion_point(field_set:viam.component.board.v1.PWMFrequencyResponse.frequency_hz) +} + +// ------------------------------------------------------------------- + +// SetPWMFrequencyRequest + +// string name = 1 [json_name = "name"]; +inline void SetPWMFrequencyRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& SetPWMFrequencyRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.SetPWMFrequencyRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SetPWMFrequencyRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.board.v1.SetPWMFrequencyRequest.name) +} +inline std::string* SetPWMFrequencyRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.SetPWMFrequencyRequest.name) + return _s; +} +inline const std::string& SetPWMFrequencyRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void SetPWMFrequencyRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* SetPWMFrequencyRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* SetPWMFrequencyRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.SetPWMFrequencyRequest.name) + return _impl_.name_.Release(); +} +inline void SetPWMFrequencyRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.SetPWMFrequencyRequest.name) +} + +// string pin = 2 [json_name = "pin"]; +inline void SetPWMFrequencyRequest::clear_pin() { + _impl_.pin_.ClearToEmpty(); +} +inline const std::string& SetPWMFrequencyRequest::pin() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.SetPWMFrequencyRequest.pin) + return _internal_pin(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SetPWMFrequencyRequest::set_pin(ArgT0&& arg0, ArgT... args) { + + _impl_.pin_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.board.v1.SetPWMFrequencyRequest.pin) +} +inline std::string* SetPWMFrequencyRequest::mutable_pin() { + std::string* _s = _internal_mutable_pin(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.SetPWMFrequencyRequest.pin) + return _s; +} +inline const std::string& SetPWMFrequencyRequest::_internal_pin() const { + return _impl_.pin_.Get(); +} +inline void SetPWMFrequencyRequest::_internal_set_pin(const std::string& value) { + + _impl_.pin_.Set(value, GetArenaForAllocation()); +} +inline std::string* SetPWMFrequencyRequest::_internal_mutable_pin() { + + return _impl_.pin_.Mutable(GetArenaForAllocation()); +} +inline std::string* SetPWMFrequencyRequest::release_pin() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.SetPWMFrequencyRequest.pin) + return _impl_.pin_.Release(); +} +inline void SetPWMFrequencyRequest::set_allocated_pin(std::string* pin) { + if (pin != nullptr) { + + } else { + + } + _impl_.pin_.SetAllocated(pin, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.pin_.IsDefault()) { + _impl_.pin_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.SetPWMFrequencyRequest.pin) +} + +// uint64 frequency_hz = 3 [json_name = "frequencyHz"]; +inline void SetPWMFrequencyRequest::clear_frequency_hz() { + _impl_.frequency_hz_ = uint64_t{0u}; +} +inline uint64_t SetPWMFrequencyRequest::_internal_frequency_hz() const { + return _impl_.frequency_hz_; +} +inline uint64_t SetPWMFrequencyRequest::frequency_hz() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.SetPWMFrequencyRequest.frequency_hz) + return _internal_frequency_hz(); +} +inline void SetPWMFrequencyRequest::_internal_set_frequency_hz(uint64_t value) { + + _impl_.frequency_hz_ = value; +} +inline void SetPWMFrequencyRequest::set_frequency_hz(uint64_t value) { + _internal_set_frequency_hz(value); + // @@protoc_insertion_point(field_set:viam.component.board.v1.SetPWMFrequencyRequest.frequency_hz) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool SetPWMFrequencyRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool SetPWMFrequencyRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetPWMFrequencyRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetPWMFrequencyRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.SetPWMFrequencyRequest.extra) + return _internal_extra(); +} +inline void SetPWMFrequencyRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.SetPWMFrequencyRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPWMFrequencyRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* SetPWMFrequencyRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.SetPWMFrequencyRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPWMFrequencyRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPWMFrequencyRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.SetPWMFrequencyRequest.extra) + return _msg; +} +inline void SetPWMFrequencyRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.SetPWMFrequencyRequest.extra) +} + +// ------------------------------------------------------------------- + +// SetPWMFrequencyResponse + +// ------------------------------------------------------------------- + +// ReadAnalogReaderRequest + +// string board_name = 1 [json_name = "boardName"]; +inline void ReadAnalogReaderRequest::clear_board_name() { + _impl_.board_name_.ClearToEmpty(); +} +inline const std::string& ReadAnalogReaderRequest::board_name() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.ReadAnalogReaderRequest.board_name) + return _internal_board_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ReadAnalogReaderRequest::set_board_name(ArgT0&& arg0, ArgT... args) { + + _impl_.board_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.board.v1.ReadAnalogReaderRequest.board_name) +} +inline std::string* ReadAnalogReaderRequest::mutable_board_name() { + std::string* _s = _internal_mutable_board_name(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.ReadAnalogReaderRequest.board_name) + return _s; +} +inline const std::string& ReadAnalogReaderRequest::_internal_board_name() const { + return _impl_.board_name_.Get(); +} +inline void ReadAnalogReaderRequest::_internal_set_board_name(const std::string& value) { + + _impl_.board_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* ReadAnalogReaderRequest::_internal_mutable_board_name() { + + return _impl_.board_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* ReadAnalogReaderRequest::release_board_name() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.ReadAnalogReaderRequest.board_name) + return _impl_.board_name_.Release(); +} +inline void ReadAnalogReaderRequest::set_allocated_board_name(std::string* board_name) { + if (board_name != nullptr) { + + } else { + + } + _impl_.board_name_.SetAllocated(board_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.board_name_.IsDefault()) { + _impl_.board_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.ReadAnalogReaderRequest.board_name) +} + +// string analog_reader_name = 2 [json_name = "analogReaderName"]; +inline void ReadAnalogReaderRequest::clear_analog_reader_name() { + _impl_.analog_reader_name_.ClearToEmpty(); +} +inline const std::string& ReadAnalogReaderRequest::analog_reader_name() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.ReadAnalogReaderRequest.analog_reader_name) + return _internal_analog_reader_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ReadAnalogReaderRequest::set_analog_reader_name(ArgT0&& arg0, ArgT... args) { + + _impl_.analog_reader_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.board.v1.ReadAnalogReaderRequest.analog_reader_name) +} +inline std::string* ReadAnalogReaderRequest::mutable_analog_reader_name() { + std::string* _s = _internal_mutable_analog_reader_name(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.ReadAnalogReaderRequest.analog_reader_name) + return _s; +} +inline const std::string& ReadAnalogReaderRequest::_internal_analog_reader_name() const { + return _impl_.analog_reader_name_.Get(); +} +inline void ReadAnalogReaderRequest::_internal_set_analog_reader_name(const std::string& value) { + + _impl_.analog_reader_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* ReadAnalogReaderRequest::_internal_mutable_analog_reader_name() { + + return _impl_.analog_reader_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* ReadAnalogReaderRequest::release_analog_reader_name() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.ReadAnalogReaderRequest.analog_reader_name) + return _impl_.analog_reader_name_.Release(); +} +inline void ReadAnalogReaderRequest::set_allocated_analog_reader_name(std::string* analog_reader_name) { + if (analog_reader_name != nullptr) { + + } else { + + } + _impl_.analog_reader_name_.SetAllocated(analog_reader_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.analog_reader_name_.IsDefault()) { + _impl_.analog_reader_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.ReadAnalogReaderRequest.analog_reader_name) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool ReadAnalogReaderRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool ReadAnalogReaderRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ReadAnalogReaderRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ReadAnalogReaderRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.ReadAnalogReaderRequest.extra) + return _internal_extra(); +} +inline void ReadAnalogReaderRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.ReadAnalogReaderRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* ReadAnalogReaderRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* ReadAnalogReaderRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.ReadAnalogReaderRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* ReadAnalogReaderRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* ReadAnalogReaderRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.ReadAnalogReaderRequest.extra) + return _msg; +} +inline void ReadAnalogReaderRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.ReadAnalogReaderRequest.extra) +} + +// ------------------------------------------------------------------- + +// ReadAnalogReaderResponse + +// int32 value = 1 [json_name = "value"]; +inline void ReadAnalogReaderResponse::clear_value() { + _impl_.value_ = 0; +} +inline int32_t ReadAnalogReaderResponse::_internal_value() const { + return _impl_.value_; +} +inline int32_t ReadAnalogReaderResponse::value() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.ReadAnalogReaderResponse.value) + return _internal_value(); +} +inline void ReadAnalogReaderResponse::_internal_set_value(int32_t value) { + + _impl_.value_ = value; +} +inline void ReadAnalogReaderResponse::set_value(int32_t value) { + _internal_set_value(value); + // @@protoc_insertion_point(field_set:viam.component.board.v1.ReadAnalogReaderResponse.value) +} + +// ------------------------------------------------------------------- + +// GetDigitalInterruptValueRequest + +// string board_name = 1 [json_name = "boardName"]; +inline void GetDigitalInterruptValueRequest::clear_board_name() { + _impl_.board_name_.ClearToEmpty(); +} +inline const std::string& GetDigitalInterruptValueRequest::board_name() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.GetDigitalInterruptValueRequest.board_name) + return _internal_board_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetDigitalInterruptValueRequest::set_board_name(ArgT0&& arg0, ArgT... args) { + + _impl_.board_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.board.v1.GetDigitalInterruptValueRequest.board_name) +} +inline std::string* GetDigitalInterruptValueRequest::mutable_board_name() { + std::string* _s = _internal_mutable_board_name(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.GetDigitalInterruptValueRequest.board_name) + return _s; +} +inline const std::string& GetDigitalInterruptValueRequest::_internal_board_name() const { + return _impl_.board_name_.Get(); +} +inline void GetDigitalInterruptValueRequest::_internal_set_board_name(const std::string& value) { + + _impl_.board_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetDigitalInterruptValueRequest::_internal_mutable_board_name() { + + return _impl_.board_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetDigitalInterruptValueRequest::release_board_name() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.GetDigitalInterruptValueRequest.board_name) + return _impl_.board_name_.Release(); +} +inline void GetDigitalInterruptValueRequest::set_allocated_board_name(std::string* board_name) { + if (board_name != nullptr) { + + } else { + + } + _impl_.board_name_.SetAllocated(board_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.board_name_.IsDefault()) { + _impl_.board_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.GetDigitalInterruptValueRequest.board_name) +} + +// string digital_interrupt_name = 2 [json_name = "digitalInterruptName"]; +inline void GetDigitalInterruptValueRequest::clear_digital_interrupt_name() { + _impl_.digital_interrupt_name_.ClearToEmpty(); +} +inline const std::string& GetDigitalInterruptValueRequest::digital_interrupt_name() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.GetDigitalInterruptValueRequest.digital_interrupt_name) + return _internal_digital_interrupt_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetDigitalInterruptValueRequest::set_digital_interrupt_name(ArgT0&& arg0, ArgT... args) { + + _impl_.digital_interrupt_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.board.v1.GetDigitalInterruptValueRequest.digital_interrupt_name) +} +inline std::string* GetDigitalInterruptValueRequest::mutable_digital_interrupt_name() { + std::string* _s = _internal_mutable_digital_interrupt_name(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.GetDigitalInterruptValueRequest.digital_interrupt_name) + return _s; +} +inline const std::string& GetDigitalInterruptValueRequest::_internal_digital_interrupt_name() const { + return _impl_.digital_interrupt_name_.Get(); +} +inline void GetDigitalInterruptValueRequest::_internal_set_digital_interrupt_name(const std::string& value) { + + _impl_.digital_interrupt_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetDigitalInterruptValueRequest::_internal_mutable_digital_interrupt_name() { + + return _impl_.digital_interrupt_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetDigitalInterruptValueRequest::release_digital_interrupt_name() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.GetDigitalInterruptValueRequest.digital_interrupt_name) + return _impl_.digital_interrupt_name_.Release(); +} +inline void GetDigitalInterruptValueRequest::set_allocated_digital_interrupt_name(std::string* digital_interrupt_name) { + if (digital_interrupt_name != nullptr) { + + } else { + + } + _impl_.digital_interrupt_name_.SetAllocated(digital_interrupt_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.digital_interrupt_name_.IsDefault()) { + _impl_.digital_interrupt_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.GetDigitalInterruptValueRequest.digital_interrupt_name) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetDigitalInterruptValueRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool GetDigitalInterruptValueRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetDigitalInterruptValueRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetDigitalInterruptValueRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.GetDigitalInterruptValueRequest.extra) + return _internal_extra(); +} +inline void GetDigitalInterruptValueRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.GetDigitalInterruptValueRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetDigitalInterruptValueRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* GetDigitalInterruptValueRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.GetDigitalInterruptValueRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetDigitalInterruptValueRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetDigitalInterruptValueRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.GetDigitalInterruptValueRequest.extra) + return _msg; +} +inline void GetDigitalInterruptValueRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.GetDigitalInterruptValueRequest.extra) +} + +// ------------------------------------------------------------------- + +// GetDigitalInterruptValueResponse + +// int64 value = 1 [json_name = "value"]; +inline void GetDigitalInterruptValueResponse::clear_value() { + _impl_.value_ = int64_t{0}; +} +inline int64_t GetDigitalInterruptValueResponse::_internal_value() const { + return _impl_.value_; +} +inline int64_t GetDigitalInterruptValueResponse::value() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.GetDigitalInterruptValueResponse.value) + return _internal_value(); +} +inline void GetDigitalInterruptValueResponse::_internal_set_value(int64_t value) { + + _impl_.value_ = value; +} +inline void GetDigitalInterruptValueResponse::set_value(int64_t value) { + _internal_set_value(value); + // @@protoc_insertion_point(field_set:viam.component.board.v1.GetDigitalInterruptValueResponse.value) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace board +} // namespace component +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fboard_2fv1_2fboard_2eproto diff --git a/src/gen/component/camera/v1/camera.grpc.pb.cc b/src/gen/component/camera/v1/camera.grpc.pb.cc new file mode 100644 index 000000000..db306417c --- /dev/null +++ b/src/gen/component/camera/v1/camera.grpc.pb.cc @@ -0,0 +1,218 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/camera/v1/camera.proto + +#include "component/camera/v1/camera.pb.h" +#include "component/camera/v1/camera.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace component { +namespace camera { +namespace v1 { + +static const char* CameraService_method_names[] = { + "/viam.component.camera.v1.CameraService/GetImage", + "/viam.component.camera.v1.CameraService/RenderFrame", + "/viam.component.camera.v1.CameraService/GetPointCloud", + "/viam.component.camera.v1.CameraService/GetProperties", +}; + +std::unique_ptr< CameraService::Stub> CameraService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< CameraService::Stub> stub(new CameraService::Stub(channel, options)); + return stub; +} + +CameraService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_GetImage_(CameraService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RenderFrame_(CameraService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetPointCloud_(CameraService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetProperties_(CameraService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status CameraService::Stub::GetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::viam::component::camera::v1::GetImageResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::camera::v1::GetImageRequest, ::viam::component::camera::v1::GetImageResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetImage_, context, request, response); +} + +void CameraService::Stub::async::GetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest* request, ::viam::component::camera::v1::GetImageResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::camera::v1::GetImageRequest, ::viam::component::camera::v1::GetImageResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetImage_, context, request, response, std::move(f)); +} + +void CameraService::Stub::async::GetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest* request, ::viam::component::camera::v1::GetImageResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetImage_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetImageResponse>* CameraService::Stub::PrepareAsyncGetImageRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::camera::v1::GetImageResponse, ::viam::component::camera::v1::GetImageRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetImage_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetImageResponse>* CameraService::Stub::AsyncGetImageRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetImageRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status CameraService::Stub::RenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest& request, ::google::api::HttpBody* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::camera::v1::RenderFrameRequest, ::google::api::HttpBody, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RenderFrame_, context, request, response); +} + +void CameraService::Stub::async::RenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest* request, ::google::api::HttpBody* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::camera::v1::RenderFrameRequest, ::google::api::HttpBody, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RenderFrame_, context, request, response, std::move(f)); +} + +void CameraService::Stub::async::RenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest* request, ::google::api::HttpBody* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RenderFrame_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>* CameraService::Stub::PrepareAsyncRenderFrameRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::google::api::HttpBody, ::viam::component::camera::v1::RenderFrameRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_RenderFrame_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>* CameraService::Stub::AsyncRenderFrameRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncRenderFrameRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status CameraService::Stub::GetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest& request, ::viam::component::camera::v1::GetPointCloudResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::camera::v1::GetPointCloudRequest, ::viam::component::camera::v1::GetPointCloudResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetPointCloud_, context, request, response); +} + +void CameraService::Stub::async::GetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest* request, ::viam::component::camera::v1::GetPointCloudResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::camera::v1::GetPointCloudRequest, ::viam::component::camera::v1::GetPointCloudResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPointCloud_, context, request, response, std::move(f)); +} + +void CameraService::Stub::async::GetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest* request, ::viam::component::camera::v1::GetPointCloudResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPointCloud_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPointCloudResponse>* CameraService::Stub::PrepareAsyncGetPointCloudRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::camera::v1::GetPointCloudResponse, ::viam::component::camera::v1::GetPointCloudRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetPointCloud_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPointCloudResponse>* CameraService::Stub::AsyncGetPointCloudRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetPointCloudRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status CameraService::Stub::GetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest& request, ::viam::component::camera::v1::GetPropertiesResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::camera::v1::GetPropertiesRequest, ::viam::component::camera::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetProperties_, context, request, response); +} + +void CameraService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest* request, ::viam::component::camera::v1::GetPropertiesResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::camera::v1::GetPropertiesRequest, ::viam::component::camera::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); +} + +void CameraService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest* request, ::viam::component::camera::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPropertiesResponse>* CameraService::Stub::PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::camera::v1::GetPropertiesResponse, ::viam::component::camera::v1::GetPropertiesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetProperties_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPropertiesResponse>* CameraService::Stub::AsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetPropertiesRaw(context, request, cq); + result->StartCall(); + return result; +} + +CameraService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + CameraService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< CameraService::Service, ::viam::component::camera::v1::GetImageRequest, ::viam::component::camera::v1::GetImageResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](CameraService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::camera::v1::GetImageRequest* req, + ::viam::component::camera::v1::GetImageResponse* resp) { + return service->GetImage(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + CameraService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< CameraService::Service, ::viam::component::camera::v1::RenderFrameRequest, ::google::api::HttpBody, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](CameraService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::camera::v1::RenderFrameRequest* req, + ::google::api::HttpBody* resp) { + return service->RenderFrame(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + CameraService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< CameraService::Service, ::viam::component::camera::v1::GetPointCloudRequest, ::viam::component::camera::v1::GetPointCloudResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](CameraService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::camera::v1::GetPointCloudRequest* req, + ::viam::component::camera::v1::GetPointCloudResponse* resp) { + return service->GetPointCloud(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + CameraService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< CameraService::Service, ::viam::component::camera::v1::GetPropertiesRequest, ::viam::component::camera::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](CameraService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::camera::v1::GetPropertiesRequest* req, + ::viam::component::camera::v1::GetPropertiesResponse* resp) { + return service->GetProperties(ctx, req, resp); + }, this))); +} + +CameraService::Service::~Service() { +} + +::grpc::Status CameraService::Service::GetImage(::grpc::ServerContext* context, const ::viam::component::camera::v1::GetImageRequest* request, ::viam::component::camera::v1::GetImageResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status CameraService::Service::RenderFrame(::grpc::ServerContext* context, const ::viam::component::camera::v1::RenderFrameRequest* request, ::google::api::HttpBody* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status CameraService::Service::GetPointCloud(::grpc::ServerContext* context, const ::viam::component::camera::v1::GetPointCloudRequest* request, ::viam::component::camera::v1::GetPointCloudResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status CameraService::Service::GetProperties(::grpc::ServerContext* context, const ::viam::component::camera::v1::GetPropertiesRequest* request, ::viam::component::camera::v1::GetPropertiesResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace component +} // namespace camera +} // namespace v1 + diff --git a/src/gen/component/camera/v1/camera.grpc.pb.h b/src/gen/component/camera/v1/camera.grpc.pb.h new file mode 100644 index 000000000..3ec6c3d3d --- /dev/null +++ b/src/gen/component/camera/v1/camera.grpc.pb.h @@ -0,0 +1,739 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/camera/v1/camera.proto +#ifndef GRPC_component_2fcamera_2fv1_2fcamera_2eproto__INCLUDED +#define GRPC_component_2fcamera_2fv1_2fcamera_2eproto__INCLUDED + +#include "component/camera/v1/camera.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace component { +namespace camera { +namespace v1 { + +// A CameraService services all cameras associated with a robot +class CameraService final { + public: + static constexpr char const* service_full_name() { + return "viam.component.camera.v1.CameraService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // GetImage returns a frame from a camera of the underlying robot. A specific MIME type + // can be requested but may not necessarily be the same one returned. + virtual ::grpc::Status GetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::viam::component::camera::v1::GetImageResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::camera::v1::GetImageResponse>> AsyncGetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::camera::v1::GetImageResponse>>(AsyncGetImageRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::camera::v1::GetImageResponse>> PrepareAsyncGetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::camera::v1::GetImageResponse>>(PrepareAsyncGetImageRaw(context, request, cq)); + } + // RenderFrame renders a frame from a camera of the underlying robot to an HTTP response. A specific MIME type + // can be requested but may not necessarily be the same one returned. + virtual ::grpc::Status RenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest& request, ::google::api::HttpBody* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::api::HttpBody>> AsyncRenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::api::HttpBody>>(AsyncRenderFrameRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::api::HttpBody>> PrepareAsyncRenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::api::HttpBody>>(PrepareAsyncRenderFrameRaw(context, request, cq)); + } + // GetPointCloud returns a point cloud from a camera of the underlying robot. A specific MIME type + // can be requested but may not necessarily be the same one returned. + virtual ::grpc::Status GetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest& request, ::viam::component::camera::v1::GetPointCloudResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::camera::v1::GetPointCloudResponse>> AsyncGetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::camera::v1::GetPointCloudResponse>>(AsyncGetPointCloudRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::camera::v1::GetPointCloudResponse>> PrepareAsyncGetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::camera::v1::GetPointCloudResponse>>(PrepareAsyncGetPointCloudRaw(context, request, cq)); + } + // GetProperties returns the camera intrinsic parameters and camera distortion parameters from a camera of the underlying robot, if available. + virtual ::grpc::Status GetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest& request, ::viam::component::camera::v1::GetPropertiesResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::camera::v1::GetPropertiesResponse>> AsyncGetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::camera::v1::GetPropertiesResponse>>(AsyncGetPropertiesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::camera::v1::GetPropertiesResponse>> PrepareAsyncGetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::camera::v1::GetPropertiesResponse>>(PrepareAsyncGetPropertiesRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // GetImage returns a frame from a camera of the underlying robot. A specific MIME type + // can be requested but may not necessarily be the same one returned. + virtual void GetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest* request, ::viam::component::camera::v1::GetImageResponse* response, std::function) = 0; + virtual void GetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest* request, ::viam::component::camera::v1::GetImageResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // RenderFrame renders a frame from a camera of the underlying robot to an HTTP response. A specific MIME type + // can be requested but may not necessarily be the same one returned. + virtual void RenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest* request, ::google::api::HttpBody* response, std::function) = 0; + virtual void RenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest* request, ::google::api::HttpBody* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GetPointCloud returns a point cloud from a camera of the underlying robot. A specific MIME type + // can be requested but may not necessarily be the same one returned. + virtual void GetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest* request, ::viam::component::camera::v1::GetPointCloudResponse* response, std::function) = 0; + virtual void GetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest* request, ::viam::component::camera::v1::GetPointCloudResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GetProperties returns the camera intrinsic parameters and camera distortion parameters from a camera of the underlying robot, if available. + virtual void GetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest* request, ::viam::component::camera::v1::GetPropertiesResponse* response, std::function) = 0; + virtual void GetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest* request, ::viam::component::camera::v1::GetPropertiesResponse* 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::ClientAsyncResponseReaderInterface< ::viam::component::camera::v1::GetImageResponse>* AsyncGetImageRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::camera::v1::GetImageResponse>* PrepareAsyncGetImageRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::api::HttpBody>* AsyncRenderFrameRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::api::HttpBody>* PrepareAsyncRenderFrameRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::camera::v1::GetPointCloudResponse>* AsyncGetPointCloudRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::camera::v1::GetPointCloudResponse>* PrepareAsyncGetPointCloudRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::camera::v1::GetPropertiesResponse>* AsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::camera::v1::GetPropertiesResponse>* PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest& 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()); + ::grpc::Status GetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::viam::component::camera::v1::GetImageResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetImageResponse>> AsyncGetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetImageResponse>>(AsyncGetImageRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetImageResponse>> PrepareAsyncGetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetImageResponse>>(PrepareAsyncGetImageRaw(context, request, cq)); + } + ::grpc::Status RenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest& request, ::google::api::HttpBody* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>> AsyncRenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>>(AsyncRenderFrameRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>> PrepareAsyncRenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>>(PrepareAsyncRenderFrameRaw(context, request, cq)); + } + ::grpc::Status GetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest& request, ::viam::component::camera::v1::GetPointCloudResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPointCloudResponse>> AsyncGetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPointCloudResponse>>(AsyncGetPointCloudRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPointCloudResponse>> PrepareAsyncGetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPointCloudResponse>>(PrepareAsyncGetPointCloudRaw(context, request, cq)); + } + ::grpc::Status GetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest& request, ::viam::component::camera::v1::GetPropertiesResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPropertiesResponse>> AsyncGetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPropertiesResponse>>(AsyncGetPropertiesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPropertiesResponse>> PrepareAsyncGetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPropertiesResponse>>(PrepareAsyncGetPropertiesRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void GetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest* request, ::viam::component::camera::v1::GetImageResponse* response, std::function) override; + void GetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest* request, ::viam::component::camera::v1::GetImageResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void RenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest* request, ::google::api::HttpBody* response, std::function) override; + void RenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest* request, ::google::api::HttpBody* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest* request, ::viam::component::camera::v1::GetPointCloudResponse* response, std::function) override; + void GetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest* request, ::viam::component::camera::v1::GetPointCloudResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest* request, ::viam::component::camera::v1::GetPropertiesResponse* response, std::function) override; + void GetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest* request, ::viam::component::camera::v1::GetPropertiesResponse* 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::ClientAsyncResponseReader< ::viam::component::camera::v1::GetImageResponse>* AsyncGetImageRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetImageResponse>* PrepareAsyncGetImageRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>* AsyncRenderFrameRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>* PrepareAsyncRenderFrameRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPointCloudResponse>* AsyncGetPointCloudRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPointCloudResponse>* PrepareAsyncGetPointCloudRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPropertiesResponse>* AsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPropertiesResponse>* PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_GetImage_; + const ::grpc::internal::RpcMethod rpcmethod_RenderFrame_; + const ::grpc::internal::RpcMethod rpcmethod_GetPointCloud_; + const ::grpc::internal::RpcMethod rpcmethod_GetProperties_; + }; + 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(); + // GetImage returns a frame from a camera of the underlying robot. A specific MIME type + // can be requested but may not necessarily be the same one returned. + virtual ::grpc::Status GetImage(::grpc::ServerContext* context, const ::viam::component::camera::v1::GetImageRequest* request, ::viam::component::camera::v1::GetImageResponse* response); + // RenderFrame renders a frame from a camera of the underlying robot to an HTTP response. A specific MIME type + // can be requested but may not necessarily be the same one returned. + virtual ::grpc::Status RenderFrame(::grpc::ServerContext* context, const ::viam::component::camera::v1::RenderFrameRequest* request, ::google::api::HttpBody* response); + // GetPointCloud returns a point cloud from a camera of the underlying robot. A specific MIME type + // can be requested but may not necessarily be the same one returned. + virtual ::grpc::Status GetPointCloud(::grpc::ServerContext* context, const ::viam::component::camera::v1::GetPointCloudRequest* request, ::viam::component::camera::v1::GetPointCloudResponse* response); + // GetProperties returns the camera intrinsic parameters and camera distortion parameters from a camera of the underlying robot, if available. + virtual ::grpc::Status GetProperties(::grpc::ServerContext* context, const ::viam::component::camera::v1::GetPropertiesRequest* request, ::viam::component::camera::v1::GetPropertiesResponse* response); + }; + template + class WithAsyncMethod_GetImage : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetImage() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_GetImage() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetImage(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::GetImageRequest* /*request*/, ::viam::component::camera::v1::GetImageResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetImage(::grpc::ServerContext* context, ::viam::component::camera::v1::GetImageRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::camera::v1::GetImageResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_RenderFrame : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_RenderFrame() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_RenderFrame() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RenderFrame(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::RenderFrameRequest* /*request*/, ::google::api::HttpBody* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRenderFrame(::grpc::ServerContext* context, ::viam::component::camera::v1::RenderFrameRequest* request, ::grpc::ServerAsyncResponseWriter< ::google::api::HttpBody>* 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 WithAsyncMethod_GetPointCloud : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetPointCloud() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_GetPointCloud() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPointCloud(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::GetPointCloudRequest* /*request*/, ::viam::component::camera::v1::GetPointCloudResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetPointCloud(::grpc::ServerContext* context, ::viam::component::camera::v1::GetPointCloudRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::camera::v1::GetPointCloudResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetProperties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetProperties() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_GetProperties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProperties(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::GetPropertiesRequest* /*request*/, ::viam::component::camera::v1::GetPropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetProperties(::grpc::ServerContext* context, ::viam::component::camera::v1::GetPropertiesRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::camera::v1::GetPropertiesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetImage > > > AsyncService; + template + class WithCallbackMethod_GetImage : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetImage() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetImageRequest, ::viam::component::camera::v1::GetImageResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::camera::v1::GetImageRequest* request, ::viam::component::camera::v1::GetImageResponse* response) { return this->GetImage(context, request, response); }));} + void SetMessageAllocatorFor_GetImage( + ::grpc::MessageAllocator< ::viam::component::camera::v1::GetImageRequest, ::viam::component::camera::v1::GetImageResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetImageRequest, ::viam::component::camera::v1::GetImageResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetImage() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetImage(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::GetImageRequest* /*request*/, ::viam::component::camera::v1::GetImageResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetImage( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::camera::v1::GetImageRequest* /*request*/, ::viam::component::camera::v1::GetImageResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_RenderFrame : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_RenderFrame() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::camera::v1::RenderFrameRequest, ::google::api::HttpBody>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::camera::v1::RenderFrameRequest* request, ::google::api::HttpBody* response) { return this->RenderFrame(context, request, response); }));} + void SetMessageAllocatorFor_RenderFrame( + ::grpc::MessageAllocator< ::viam::component::camera::v1::RenderFrameRequest, ::google::api::HttpBody>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::camera::v1::RenderFrameRequest, ::google::api::HttpBody>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_RenderFrame() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RenderFrame(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::RenderFrameRequest* /*request*/, ::google::api::HttpBody* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* RenderFrame( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::camera::v1::RenderFrameRequest* /*request*/, ::google::api::HttpBody* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetPointCloud : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetPointCloud() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetPointCloudRequest, ::viam::component::camera::v1::GetPointCloudResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::camera::v1::GetPointCloudRequest* request, ::viam::component::camera::v1::GetPointCloudResponse* response) { return this->GetPointCloud(context, request, response); }));} + void SetMessageAllocatorFor_GetPointCloud( + ::grpc::MessageAllocator< ::viam::component::camera::v1::GetPointCloudRequest, ::viam::component::camera::v1::GetPointCloudResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetPointCloudRequest, ::viam::component::camera::v1::GetPointCloudResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetPointCloud() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPointCloud(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::GetPointCloudRequest* /*request*/, ::viam::component::camera::v1::GetPointCloudResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetPointCloud( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::camera::v1::GetPointCloudRequest* /*request*/, ::viam::component::camera::v1::GetPointCloudResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetProperties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetProperties() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetPropertiesRequest, ::viam::component::camera::v1::GetPropertiesResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::camera::v1::GetPropertiesRequest* request, ::viam::component::camera::v1::GetPropertiesResponse* response) { return this->GetProperties(context, request, response); }));} + void SetMessageAllocatorFor_GetProperties( + ::grpc::MessageAllocator< ::viam::component::camera::v1::GetPropertiesRequest, ::viam::component::camera::v1::GetPropertiesResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetPropertiesRequest, ::viam::component::camera::v1::GetPropertiesResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetProperties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProperties(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::GetPropertiesRequest* /*request*/, ::viam::component::camera::v1::GetPropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetProperties( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::camera::v1::GetPropertiesRequest* /*request*/, ::viam::component::camera::v1::GetPropertiesResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetImage > > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_GetImage : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetImage() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_GetImage() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetImage(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::GetImageRequest* /*request*/, ::viam::component::camera::v1::GetImageResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_RenderFrame : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_RenderFrame() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_RenderFrame() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RenderFrame(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::RenderFrameRequest* /*request*/, ::google::api::HttpBody* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetPointCloud : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetPointCloud() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_GetPointCloud() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPointCloud(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::GetPointCloudRequest* /*request*/, ::viam::component::camera::v1::GetPointCloudResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetProperties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetProperties() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_GetProperties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProperties(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::GetPropertiesRequest* /*request*/, ::viam::component::camera::v1::GetPropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_GetImage : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetImage() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_GetImage() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetImage(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::GetImageRequest* /*request*/, ::viam::component::camera::v1::GetImageResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetImage(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_RenderFrame : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_RenderFrame() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_RenderFrame() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RenderFrame(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::RenderFrameRequest* /*request*/, ::google::api::HttpBody* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRenderFrame(::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 WithRawMethod_GetPointCloud : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetPointCloud() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_GetPointCloud() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPointCloud(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::GetPointCloudRequest* /*request*/, ::viam::component::camera::v1::GetPointCloudResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetPointCloud(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetProperties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetProperties() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_GetProperties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProperties(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::GetPropertiesRequest* /*request*/, ::viam::component::camera::v1::GetPropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetProperties(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_GetImage : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetImage() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetImage(context, request, response); })); + } + ~WithRawCallbackMethod_GetImage() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetImage(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::GetImageRequest* /*request*/, ::viam::component::camera::v1::GetImageResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetImage( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_RenderFrame : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_RenderFrame() { + ::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->RenderFrame(context, request, response); })); + } + ~WithRawCallbackMethod_RenderFrame() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RenderFrame(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::RenderFrameRequest* /*request*/, ::google::api::HttpBody* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* RenderFrame( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetPointCloud : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetPointCloud() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPointCloud(context, request, response); })); + } + ~WithRawCallbackMethod_GetPointCloud() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPointCloud(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::GetPointCloudRequest* /*request*/, ::viam::component::camera::v1::GetPointCloudResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetPointCloud( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetProperties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetProperties() { + ::grpc::Service::MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProperties(context, request, response); })); + } + ~WithRawCallbackMethod_GetProperties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProperties(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::GetPropertiesRequest* /*request*/, ::viam::component::camera::v1::GetPropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetProperties( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_GetImage : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetImage() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::camera::v1::GetImageRequest, ::viam::component::camera::v1::GetImageResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::camera::v1::GetImageRequest, ::viam::component::camera::v1::GetImageResponse>* streamer) { + return this->StreamedGetImage(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetImage() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetImage(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::GetImageRequest* /*request*/, ::viam::component::camera::v1::GetImageResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetImage(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::camera::v1::GetImageRequest,::viam::component::camera::v1::GetImageResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_RenderFrame : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_RenderFrame() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::camera::v1::RenderFrameRequest, ::google::api::HttpBody>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::camera::v1::RenderFrameRequest, ::google::api::HttpBody>* streamer) { + return this->StreamedRenderFrame(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_RenderFrame() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status RenderFrame(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::RenderFrameRequest* /*request*/, ::google::api::HttpBody* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedRenderFrame(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::camera::v1::RenderFrameRequest,::google::api::HttpBody>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetPointCloud : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetPointCloud() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::camera::v1::GetPointCloudRequest, ::viam::component::camera::v1::GetPointCloudResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::camera::v1::GetPointCloudRequest, ::viam::component::camera::v1::GetPointCloudResponse>* streamer) { + return this->StreamedGetPointCloud(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetPointCloud() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetPointCloud(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::GetPointCloudRequest* /*request*/, ::viam::component::camera::v1::GetPointCloudResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetPointCloud(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::camera::v1::GetPointCloudRequest,::viam::component::camera::v1::GetPointCloudResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetProperties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetProperties() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::camera::v1::GetPropertiesRequest, ::viam::component::camera::v1::GetPropertiesResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::camera::v1::GetPropertiesRequest, ::viam::component::camera::v1::GetPropertiesResponse>* streamer) { + return this->StreamedGetProperties(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetProperties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetProperties(::grpc::ServerContext* /*context*/, const ::viam::component::camera::v1::GetPropertiesRequest* /*request*/, ::viam::component::camera::v1::GetPropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetProperties(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::camera::v1::GetPropertiesRequest,::viam::component::camera::v1::GetPropertiesResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetImage > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_GetImage > > > StreamedService; +}; + +} // namespace v1 +} // namespace camera +} // namespace component +} // namespace viam + + +#endif // GRPC_component_2fcamera_2fv1_2fcamera_2eproto__INCLUDED diff --git a/src/gen/component/camera/v1/camera.pb.cc b/src/gen/component/camera/v1/camera.pb.cc new file mode 100644 index 000000000..3bd326ea1 --- /dev/null +++ b/src/gen/component/camera/v1/camera.pb.cc @@ -0,0 +1,3592 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/camera/v1/camera.proto + +#include "component/camera/v1/camera.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 component { +namespace camera { +namespace v1 { +PROTOBUF_CONSTEXPR GetImageRequest::GetImageRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mime_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetImageRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetImageRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetImageRequestDefaultTypeInternal() {} + union { + GetImageRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetImageRequestDefaultTypeInternal _GetImageRequest_default_instance_; +PROTOBUF_CONSTEXPR GetImageResponse::GetImageResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.mime_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.image_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.width_px_)*/int64_t{0} + , /*decltype(_impl_.height_px_)*/int64_t{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetImageResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetImageResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetImageResponseDefaultTypeInternal() {} + union { + GetImageResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetImageResponseDefaultTypeInternal _GetImageResponse_default_instance_; +PROTOBUF_CONSTEXPR RenderFrameRequest::RenderFrameRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mime_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RenderFrameRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RenderFrameRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RenderFrameRequestDefaultTypeInternal() {} + union { + RenderFrameRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RenderFrameRequestDefaultTypeInternal _RenderFrameRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPointCloudRequest::GetPointCloudRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mime_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPointCloudRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPointCloudRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPointCloudRequestDefaultTypeInternal() {} + union { + GetPointCloudRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPointCloudRequestDefaultTypeInternal _GetPointCloudRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPointCloudResponse::GetPointCloudResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.mime_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.point_cloud_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPointCloudResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPointCloudResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPointCloudResponseDefaultTypeInternal() {} + union { + GetPointCloudResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPointCloudResponseDefaultTypeInternal _GetPointCloudResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesRequest::GetPropertiesRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPropertiesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPropertiesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPropertiesRequestDefaultTypeInternal() {} + union { + GetPropertiesRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesResponse::GetPropertiesResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.intrinsic_parameters_)*/nullptr + , /*decltype(_impl_.distortion_parameters_)*/nullptr + , /*decltype(_impl_.supports_pcd_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPropertiesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPropertiesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPropertiesResponseDefaultTypeInternal() {} + union { + GetPropertiesResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; +PROTOBUF_CONSTEXPR Webcams::Webcams( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.webcams_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct WebcamsDefaultTypeInternal { + PROTOBUF_CONSTEXPR WebcamsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~WebcamsDefaultTypeInternal() {} + union { + Webcams _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WebcamsDefaultTypeInternal _Webcams_default_instance_; +PROTOBUF_CONSTEXPR Webcam::Webcam( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.properties_)*/{} + , /*decltype(_impl_.label_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.status_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct WebcamDefaultTypeInternal { + PROTOBUF_CONSTEXPR WebcamDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~WebcamDefaultTypeInternal() {} + union { + Webcam _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WebcamDefaultTypeInternal _Webcam_default_instance_; +PROTOBUF_CONSTEXPR Property::Property( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.frame_format_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.width_px_)*/0 + , /*decltype(_impl_.height_px_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct PropertyDefaultTypeInternal { + PROTOBUF_CONSTEXPR PropertyDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PropertyDefaultTypeInternal() {} + union { + Property _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PropertyDefaultTypeInternal _Property_default_instance_; +PROTOBUF_CONSTEXPR IntrinsicParameters::IntrinsicParameters( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.width_px_)*/0u + , /*decltype(_impl_.height_px_)*/0u + , /*decltype(_impl_.focal_x_px_)*/0 + , /*decltype(_impl_.focal_y_px_)*/0 + , /*decltype(_impl_.center_x_px_)*/0 + , /*decltype(_impl_.center_y_px_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct IntrinsicParametersDefaultTypeInternal { + PROTOBUF_CONSTEXPR IntrinsicParametersDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IntrinsicParametersDefaultTypeInternal() {} + union { + IntrinsicParameters _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IntrinsicParametersDefaultTypeInternal _IntrinsicParameters_default_instance_; +PROTOBUF_CONSTEXPR DistortionParameters::DistortionParameters( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.parameters_)*/{} + , /*decltype(_impl_.model_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DistortionParametersDefaultTypeInternal { + PROTOBUF_CONSTEXPR DistortionParametersDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DistortionParametersDefaultTypeInternal() {} + union { + DistortionParameters _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DistortionParametersDefaultTypeInternal _DistortionParameters_default_instance_; +} // namespace v1 +} // namespace camera +} // namespace component +} // namespace viam +static ::_pb::Metadata file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[12]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fcamera_2fv1_2fcamera_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fcamera_2fv1_2fcamera_2eproto = nullptr; + +const uint32_t TableStruct_component_2fcamera_2fv1_2fcamera_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageRequest, _impl_.mime_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageResponse, _impl_.mime_type_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageResponse, _impl_.image_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageResponse, _impl_.width_px_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageResponse, _impl_.height_px_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::RenderFrameRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::RenderFrameRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::RenderFrameRequest, _impl_.mime_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPointCloudRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPointCloudRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPointCloudRequest, _impl_.mime_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPointCloudResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPointCloudResponse, _impl_.mime_type_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPointCloudResponse, _impl_.point_cloud_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesResponse, _impl_.supports_pcd_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesResponse, _impl_.intrinsic_parameters_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesResponse, _impl_.distortion_parameters_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcams, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcams, _impl_.webcams_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcam, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcam, _impl_.label_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcam, _impl_.status_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcam, _impl_.properties_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Property, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Property, _impl_.width_px_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Property, _impl_.height_px_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Property, _impl_.frame_format_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::IntrinsicParameters, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::IntrinsicParameters, _impl_.width_px_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::IntrinsicParameters, _impl_.height_px_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::IntrinsicParameters, _impl_.focal_x_px_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::IntrinsicParameters, _impl_.focal_y_px_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::IntrinsicParameters, _impl_.center_x_px_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::IntrinsicParameters, _impl_.center_y_px_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::DistortionParameters, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::DistortionParameters, _impl_.model_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::DistortionParameters, _impl_.parameters_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::camera::v1::GetImageRequest)}, + { 8, -1, -1, sizeof(::viam::component::camera::v1::GetImageResponse)}, + { 18, -1, -1, sizeof(::viam::component::camera::v1::RenderFrameRequest)}, + { 26, -1, -1, sizeof(::viam::component::camera::v1::GetPointCloudRequest)}, + { 34, -1, -1, sizeof(::viam::component::camera::v1::GetPointCloudResponse)}, + { 42, -1, -1, sizeof(::viam::component::camera::v1::GetPropertiesRequest)}, + { 49, -1, -1, sizeof(::viam::component::camera::v1::GetPropertiesResponse)}, + { 58, -1, -1, sizeof(::viam::component::camera::v1::Webcams)}, + { 65, -1, -1, sizeof(::viam::component::camera::v1::Webcam)}, + { 74, -1, -1, sizeof(::viam::component::camera::v1::Property)}, + { 83, -1, -1, sizeof(::viam::component::camera::v1::IntrinsicParameters)}, + { 95, -1, -1, sizeof(::viam::component::camera::v1::DistortionParameters)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::component::camera::v1::_GetImageRequest_default_instance_._instance, + &::viam::component::camera::v1::_GetImageResponse_default_instance_._instance, + &::viam::component::camera::v1::_RenderFrameRequest_default_instance_._instance, + &::viam::component::camera::v1::_GetPointCloudRequest_default_instance_._instance, + &::viam::component::camera::v1::_GetPointCloudResponse_default_instance_._instance, + &::viam::component::camera::v1::_GetPropertiesRequest_default_instance_._instance, + &::viam::component::camera::v1::_GetPropertiesResponse_default_instance_._instance, + &::viam::component::camera::v1::_Webcams_default_instance_._instance, + &::viam::component::camera::v1::_Webcam_default_instance_._instance, + &::viam::component::camera::v1::_Property_default_instance_._instance, + &::viam::component::camera::v1::_IntrinsicParameters_default_instance_._instance, + &::viam::component::camera::v1::_DistortionParameters_default_instance_._instance, +}; + +const char descriptor_table_protodef_component_2fcamera_2fv1_2fcamera_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n component/camera/v1/camera.proto\022\030viam" + ".component.camera.v1\032\034google/api/annotat" + "ions.proto\032\031google/api/httpbody.proto\"B\n" + "\017GetImageRequest\022\022\n\004name\030\001 \001(\tR\004name\022\033\n\t" + "mime_type\030\002 \001(\tR\010mimeType\"}\n\020GetImageRes" + "ponse\022\033\n\tmime_type\030\001 \001(\tR\010mimeType\022\024\n\005im" + "age\030\002 \001(\014R\005image\022\031\n\010width_px\030\003 \001(\003R\007widt" + "hPx\022\033\n\theight_px\030\004 \001(\003R\010heightPx\"E\n\022Rend" + "erFrameRequest\022\022\n\004name\030\001 \001(\tR\004name\022\033\n\tmi" + "me_type\030\002 \001(\tR\010mimeType\"G\n\024GetPointCloud" + "Request\022\022\n\004name\030\001 \001(\tR\004name\022\033\n\tmime_type" + "\030\002 \001(\tR\010mimeType\"U\n\025GetPointCloudRespons" + "e\022\033\n\tmime_type\030\001 \001(\tR\010mimeType\022\037\n\013point_" + "cloud\030\002 \001(\014R\npointCloud\"*\n\024GetProperties" + "Request\022\022\n\004name\030\001 \001(\tR\004name\"\201\002\n\025GetPrope" + "rtiesResponse\022!\n\014supports_pcd\030\001 \001(\010R\013sup" + "portsPcd\022`\n\024intrinsic_parameters\030\002 \001(\0132-" + ".viam.component.camera.v1.IntrinsicParam" + "etersR\023intrinsicParameters\022c\n\025distortion" + "_parameters\030\003 \001(\0132..viam.component.camer" + "a.v1.DistortionParametersR\024distortionPar" + "ameters\"E\n\007Webcams\022:\n\007webcams\030\001 \003(\0132 .vi" + "am.component.camera.v1.WebcamR\007webcams\"z" + "\n\006Webcam\022\024\n\005label\030\001 \001(\tR\005label\022\026\n\006status" + "\030\002 \001(\tR\006status\022B\n\nproperties\030\003 \003(\0132\".via" + "m.component.camera.v1.PropertyR\nproperti" + "es\"e\n\010Property\022\031\n\010width_px\030\001 \001(\005R\007widthP" + "x\022\033\n\theight_px\030\002 \001(\005R\010heightPx\022!\n\014frame_" + "format\030\003 \001(\tR\013frameFormat\"\311\001\n\023IntrinsicP" + "arameters\022\031\n\010width_px\030\001 \001(\rR\007widthPx\022\033\n\t" + "height_px\030\002 \001(\rR\010heightPx\022\034\n\nfocal_x_px\030" + "\003 \001(\001R\010focalXPx\022\034\n\nfocal_y_px\030\004 \001(\001R\010foc" + "alYPx\022\036\n\013center_x_px\030\005 \001(\001R\tcenterXPx\022\036\n" + "\013center_y_px\030\006 \001(\001R\tcenterYPx\"L\n\024Distort" + "ionParameters\022\024\n\005model\030\001 \001(\tR\005model\022\036\n\np" + "arameters\030\002 \003(\001R\nparameters2\217\005\n\rCameraSe" + "rvice\022\225\001\n\010GetImage\022).viam.component.came" + "ra.v1.GetImageRequest\032*.viam.component.c" + "amera.v1.GetImageResponse\"2\202\323\344\223\002,\022*/viam" + "/api/v1/component/camera/{name}/image\022\214\001" + "\n\013RenderFrame\022,.viam.component.camera.v1" + ".RenderFrameRequest\032\024.google.api.HttpBod" + "y\"9\202\323\344\223\0023\0221/viam/api/v1/component/camera" + "/{name}/render_frame\022\252\001\n\rGetPointCloud\022." + ".viam.component.camera.v1.GetPointCloudR" + "equest\032/.viam.component.camera.v1.GetPoi" + "ntCloudResponse\"8\202\323\344\223\0022\0220/viam/api/v1/co" + "mponent/camera/{name}/point_cloud\022\251\001\n\rGe" + "tProperties\022..viam.component.camera.v1.G" + "etPropertiesRequest\032/.viam.component.cam" + "era.v1.GetPropertiesResponse\"7\202\323\344\223\0021\022//v" + "iam/api/v1/component/camera/{name}/prope" + "rtiesBC\n\034com.viam.component.camera.v1Z#g" + "o.viam.com/api/component/camera/v1b\006prot" + "o3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_deps[2] = { + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fapi_2fhttpbody_2eproto, +}; +static ::_pbi::once_flag descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto = { + false, false, 2162, descriptor_table_protodef_component_2fcamera_2fv1_2fcamera_2eproto, + "component/camera/v1/camera.proto", + &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_deps, 2, 12, + schemas, file_default_instances, TableStruct_component_2fcamera_2fv1_2fcamera_2eproto::offsets, + file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto, file_level_enum_descriptors_component_2fcamera_2fv1_2fcamera_2eproto, + file_level_service_descriptors_component_2fcamera_2fv1_2fcamera_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter() { + return &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fcamera_2fv1_2fcamera_2eproto(&descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto); +namespace viam { +namespace component { +namespace camera { +namespace v1 { + +// =================================================================== + +class GetImageRequest::_Internal { + public: +}; + +GetImageRequest::GetImageRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.camera.v1.GetImageRequest) +} +GetImageRequest::GetImageRequest(const GetImageRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetImageRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.mime_type_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + _this->_impl_.mime_type_.Set(from._internal_mime_type(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.GetImageRequest) +} + +inline void GetImageRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.mime_type_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetImageRequest::~GetImageRequest() { + // @@protoc_insertion_point(destructor:viam.component.camera.v1.GetImageRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetImageRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.mime_type_.Destroy(); +} + +void GetImageRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetImageRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.GetImageRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.mime_type_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetImageRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.GetImageRequest.name")); + } else + goto handle_unusual; + continue; + // string mime_type = 2 [json_name = "mimeType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.GetImageRequest.mime_type")); + } 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* GetImageRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.GetImageRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.GetImageRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string mime_type = 2 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.GetImageRequest.mime_type"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_mime_type(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.camera.v1.GetImageRequest) + return target; +} + +size_t GetImageRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.GetImageRequest) + 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 mime_type = 2 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetImageRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetImageRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetImageRequest::GetClassData() const { return &_class_data_; } + + +void GetImageRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetImageRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_mime_type().empty()) { + _this->_internal_set_mime_type(from._internal_mime_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetImageRequest::CopyFrom(const GetImageRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.camera.v1.GetImageRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetImageRequest::IsInitialized() const { + return true; +} + +void GetImageRequest::InternalSwap(GetImageRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.mime_type_, lhs_arena, + &other->_impl_.mime_type_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetImageRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, + file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[0]); +} + +// =================================================================== + +class GetImageResponse::_Internal { + public: +}; + +GetImageResponse::GetImageResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.camera.v1.GetImageResponse) +} +GetImageResponse::GetImageResponse(const GetImageResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetImageResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.mime_type_){} + , decltype(_impl_.image_){} + , decltype(_impl_.width_px_){} + , decltype(_impl_.height_px_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + _this->_impl_.mime_type_.Set(from._internal_mime_type(), + _this->GetArenaForAllocation()); + } + _impl_.image_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.image_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_image().empty()) { + _this->_impl_.image_.Set(from._internal_image(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.width_px_, &from._impl_.width_px_, + static_cast(reinterpret_cast(&_impl_.height_px_) - + reinterpret_cast(&_impl_.width_px_)) + sizeof(_impl_.height_px_)); + // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.GetImageResponse) +} + +inline void GetImageResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.mime_type_){} + , decltype(_impl_.image_){} + , decltype(_impl_.width_px_){int64_t{0}} + , decltype(_impl_.height_px_){int64_t{0}} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.image_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.image_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetImageResponse::~GetImageResponse() { + // @@protoc_insertion_point(destructor:viam.component.camera.v1.GetImageResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetImageResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.mime_type_.Destroy(); + _impl_.image_.Destroy(); +} + +void GetImageResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetImageResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.GetImageResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.mime_type_.ClearToEmpty(); + _impl_.image_.ClearToEmpty(); + ::memset(&_impl_.width_px_, 0, static_cast( + reinterpret_cast(&_impl_.height_px_) - + reinterpret_cast(&_impl_.width_px_)) + sizeof(_impl_.height_px_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetImageResponse::_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 mime_type = 1 [json_name = "mimeType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.GetImageResponse.mime_type")); + } else + goto handle_unusual; + continue; + // bytes image = 2 [json_name = "image"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_image(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 width_px = 3 [json_name = "widthPx"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.width_px_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 height_px = 4 [json_name = "heightPx"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.height_px_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetImageResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.GetImageResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string mime_type = 1 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.GetImageResponse.mime_type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_mime_type(), target); + } + + // bytes image = 2 [json_name = "image"]; + if (!this->_internal_image().empty()) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_image(), target); + } + + // int64 width_px = 3 [json_name = "widthPx"]; + if (this->_internal_width_px() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_width_px(), target); + } + + // int64 height_px = 4 [json_name = "heightPx"]; + if (this->_internal_height_px() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(4, this->_internal_height_px(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.camera.v1.GetImageResponse) + return target; +} + +size_t GetImageResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.GetImageResponse) + 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 mime_type = 1 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); + } + + // bytes image = 2 [json_name = "image"]; + if (!this->_internal_image().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_image()); + } + + // int64 width_px = 3 [json_name = "widthPx"]; + if (this->_internal_width_px() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_width_px()); + } + + // int64 height_px = 4 [json_name = "heightPx"]; + if (this->_internal_height_px() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_height_px()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetImageResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetImageResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetImageResponse::GetClassData() const { return &_class_data_; } + + +void GetImageResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetImageResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_mime_type().empty()) { + _this->_internal_set_mime_type(from._internal_mime_type()); + } + if (!from._internal_image().empty()) { + _this->_internal_set_image(from._internal_image()); + } + if (from._internal_width_px() != 0) { + _this->_internal_set_width_px(from._internal_width_px()); + } + if (from._internal_height_px() != 0) { + _this->_internal_set_height_px(from._internal_height_px()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetImageResponse::CopyFrom(const GetImageResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.camera.v1.GetImageResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetImageResponse::IsInitialized() const { + return true; +} + +void GetImageResponse::InternalSwap(GetImageResponse* 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( + &_impl_.mime_type_, lhs_arena, + &other->_impl_.mime_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.image_, lhs_arena, + &other->_impl_.image_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetImageResponse, _impl_.height_px_) + + sizeof(GetImageResponse::_impl_.height_px_) + - PROTOBUF_FIELD_OFFSET(GetImageResponse, _impl_.width_px_)>( + reinterpret_cast(&_impl_.width_px_), + reinterpret_cast(&other->_impl_.width_px_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetImageResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, + file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[1]); +} + +// =================================================================== + +class RenderFrameRequest::_Internal { + public: +}; + +RenderFrameRequest::RenderFrameRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.camera.v1.RenderFrameRequest) +} +RenderFrameRequest::RenderFrameRequest(const RenderFrameRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RenderFrameRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.mime_type_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + _this->_impl_.mime_type_.Set(from._internal_mime_type(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.RenderFrameRequest) +} + +inline void RenderFrameRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.mime_type_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +RenderFrameRequest::~RenderFrameRequest() { + // @@protoc_insertion_point(destructor:viam.component.camera.v1.RenderFrameRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RenderFrameRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.mime_type_.Destroy(); +} + +void RenderFrameRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RenderFrameRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.RenderFrameRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.mime_type_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RenderFrameRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.RenderFrameRequest.name")); + } else + goto handle_unusual; + continue; + // string mime_type = 2 [json_name = "mimeType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.RenderFrameRequest.mime_type")); + } 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* RenderFrameRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.RenderFrameRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.RenderFrameRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string mime_type = 2 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.RenderFrameRequest.mime_type"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_mime_type(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.camera.v1.RenderFrameRequest) + return target; +} + +size_t RenderFrameRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.RenderFrameRequest) + 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 mime_type = 2 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RenderFrameRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RenderFrameRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RenderFrameRequest::GetClassData() const { return &_class_data_; } + + +void RenderFrameRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.RenderFrameRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_mime_type().empty()) { + _this->_internal_set_mime_type(from._internal_mime_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RenderFrameRequest::CopyFrom(const RenderFrameRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.camera.v1.RenderFrameRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RenderFrameRequest::IsInitialized() const { + return true; +} + +void RenderFrameRequest::InternalSwap(RenderFrameRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.mime_type_, lhs_arena, + &other->_impl_.mime_type_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RenderFrameRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, + file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[2]); +} + +// =================================================================== + +class GetPointCloudRequest::_Internal { + public: +}; + +GetPointCloudRequest::GetPointCloudRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.camera.v1.GetPointCloudRequest) +} +GetPointCloudRequest::GetPointCloudRequest(const GetPointCloudRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPointCloudRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.mime_type_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + _this->_impl_.mime_type_.Set(from._internal_mime_type(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.GetPointCloudRequest) +} + +inline void GetPointCloudRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.mime_type_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetPointCloudRequest::~GetPointCloudRequest() { + // @@protoc_insertion_point(destructor:viam.component.camera.v1.GetPointCloudRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPointCloudRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.mime_type_.Destroy(); +} + +void GetPointCloudRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPointCloudRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.GetPointCloudRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.mime_type_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPointCloudRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.GetPointCloudRequest.name")); + } else + goto handle_unusual; + continue; + // string mime_type = 2 [json_name = "mimeType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.GetPointCloudRequest.mime_type")); + } 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* GetPointCloudRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.GetPointCloudRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.GetPointCloudRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string mime_type = 2 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.GetPointCloudRequest.mime_type"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_mime_type(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.camera.v1.GetPointCloudRequest) + return target; +} + +size_t GetPointCloudRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.GetPointCloudRequest) + 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 mime_type = 2 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPointCloudRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPointCloudRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPointCloudRequest::GetClassData() const { return &_class_data_; } + + +void GetPointCloudRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetPointCloudRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_mime_type().empty()) { + _this->_internal_set_mime_type(from._internal_mime_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPointCloudRequest::CopyFrom(const GetPointCloudRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.camera.v1.GetPointCloudRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPointCloudRequest::IsInitialized() const { + return true; +} + +void GetPointCloudRequest::InternalSwap(GetPointCloudRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.mime_type_, lhs_arena, + &other->_impl_.mime_type_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPointCloudRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, + file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[3]); +} + +// =================================================================== + +class GetPointCloudResponse::_Internal { + public: +}; + +GetPointCloudResponse::GetPointCloudResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.camera.v1.GetPointCloudResponse) +} +GetPointCloudResponse::GetPointCloudResponse(const GetPointCloudResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPointCloudResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.mime_type_){} + , decltype(_impl_.point_cloud_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + _this->_impl_.mime_type_.Set(from._internal_mime_type(), + _this->GetArenaForAllocation()); + } + _impl_.point_cloud_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.point_cloud_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_point_cloud().empty()) { + _this->_impl_.point_cloud_.Set(from._internal_point_cloud(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.GetPointCloudResponse) +} + +inline void GetPointCloudResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.mime_type_){} + , decltype(_impl_.point_cloud_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.point_cloud_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.point_cloud_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetPointCloudResponse::~GetPointCloudResponse() { + // @@protoc_insertion_point(destructor:viam.component.camera.v1.GetPointCloudResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPointCloudResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.mime_type_.Destroy(); + _impl_.point_cloud_.Destroy(); +} + +void GetPointCloudResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPointCloudResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.GetPointCloudResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.mime_type_.ClearToEmpty(); + _impl_.point_cloud_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPointCloudResponse::_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 mime_type = 1 [json_name = "mimeType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.GetPointCloudResponse.mime_type")); + } else + goto handle_unusual; + continue; + // bytes point_cloud = 2 [json_name = "pointCloud"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_point_cloud(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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* GetPointCloudResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.GetPointCloudResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string mime_type = 1 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.GetPointCloudResponse.mime_type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_mime_type(), target); + } + + // bytes point_cloud = 2 [json_name = "pointCloud"]; + if (!this->_internal_point_cloud().empty()) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_point_cloud(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.camera.v1.GetPointCloudResponse) + return target; +} + +size_t GetPointCloudResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.GetPointCloudResponse) + 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 mime_type = 1 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); + } + + // bytes point_cloud = 2 [json_name = "pointCloud"]; + if (!this->_internal_point_cloud().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_point_cloud()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPointCloudResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPointCloudResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPointCloudResponse::GetClassData() const { return &_class_data_; } + + +void GetPointCloudResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetPointCloudResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_mime_type().empty()) { + _this->_internal_set_mime_type(from._internal_mime_type()); + } + if (!from._internal_point_cloud().empty()) { + _this->_internal_set_point_cloud(from._internal_point_cloud()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPointCloudResponse::CopyFrom(const GetPointCloudResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.camera.v1.GetPointCloudResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPointCloudResponse::IsInitialized() const { + return true; +} + +void GetPointCloudResponse::InternalSwap(GetPointCloudResponse* 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( + &_impl_.mime_type_, lhs_arena, + &other->_impl_.mime_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.point_cloud_, lhs_arena, + &other->_impl_.point_cloud_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPointCloudResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, + file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[4]); +} + +// =================================================================== + +class GetPropertiesRequest::_Internal { + public: +}; + +GetPropertiesRequest::GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.camera.v1.GetPropertiesRequest) +} +GetPropertiesRequest::GetPropertiesRequest(const GetPropertiesRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPropertiesRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.GetPropertiesRequest) +} + +inline void GetPropertiesRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetPropertiesRequest::~GetPropertiesRequest() { + // @@protoc_insertion_point(destructor:viam.component.camera.v1.GetPropertiesRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPropertiesRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void GetPropertiesRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPropertiesRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.GetPropertiesRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.GetPropertiesRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetPropertiesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.GetPropertiesRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.GetPropertiesRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.camera.v1.GetPropertiesRequest) + return target; +} + +size_t GetPropertiesRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.GetPropertiesRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPropertiesRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesRequest::GetClassData() const { return &_class_data_; } + + +void GetPropertiesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetPropertiesRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPropertiesRequest::CopyFrom(const GetPropertiesRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.camera.v1.GetPropertiesRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPropertiesRequest::IsInitialized() const { + return true; +} + +void GetPropertiesRequest::InternalSwap(GetPropertiesRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, + file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[5]); +} + +// =================================================================== + +class GetPropertiesResponse::_Internal { + public: + static const ::viam::component::camera::v1::IntrinsicParameters& intrinsic_parameters(const GetPropertiesResponse* msg); + static const ::viam::component::camera::v1::DistortionParameters& distortion_parameters(const GetPropertiesResponse* msg); +}; + +const ::viam::component::camera::v1::IntrinsicParameters& +GetPropertiesResponse::_Internal::intrinsic_parameters(const GetPropertiesResponse* msg) { + return *msg->_impl_.intrinsic_parameters_; +} +const ::viam::component::camera::v1::DistortionParameters& +GetPropertiesResponse::_Internal::distortion_parameters(const GetPropertiesResponse* msg) { + return *msg->_impl_.distortion_parameters_; +} +GetPropertiesResponse::GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.camera.v1.GetPropertiesResponse) +} +GetPropertiesResponse::GetPropertiesResponse(const GetPropertiesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPropertiesResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.intrinsic_parameters_){nullptr} + , decltype(_impl_.distortion_parameters_){nullptr} + , decltype(_impl_.supports_pcd_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_intrinsic_parameters()) { + _this->_impl_.intrinsic_parameters_ = new ::viam::component::camera::v1::IntrinsicParameters(*from._impl_.intrinsic_parameters_); + } + if (from._internal_has_distortion_parameters()) { + _this->_impl_.distortion_parameters_ = new ::viam::component::camera::v1::DistortionParameters(*from._impl_.distortion_parameters_); + } + _this->_impl_.supports_pcd_ = from._impl_.supports_pcd_; + // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.GetPropertiesResponse) +} + +inline void GetPropertiesResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.intrinsic_parameters_){nullptr} + , decltype(_impl_.distortion_parameters_){nullptr} + , decltype(_impl_.supports_pcd_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetPropertiesResponse::~GetPropertiesResponse() { + // @@protoc_insertion_point(destructor:viam.component.camera.v1.GetPropertiesResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPropertiesResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.intrinsic_parameters_; + if (this != internal_default_instance()) delete _impl_.distortion_parameters_; +} + +void GetPropertiesResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPropertiesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.GetPropertiesResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.intrinsic_parameters_ != nullptr) { + delete _impl_.intrinsic_parameters_; + } + _impl_.intrinsic_parameters_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.distortion_parameters_ != nullptr) { + delete _impl_.distortion_parameters_; + } + _impl_.distortion_parameters_ = nullptr; + _impl_.supports_pcd_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // bool supports_pcd = 1 [json_name = "supportsPcd"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.supports_pcd_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.component.camera.v1.IntrinsicParameters intrinsic_parameters = 2 [json_name = "intrinsicParameters"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_intrinsic_parameters(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.component.camera.v1.DistortionParameters distortion_parameters = 3 [json_name = "distortionParameters"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_distortion_parameters(), 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* GetPropertiesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.GetPropertiesResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bool supports_pcd = 1 [json_name = "supportsPcd"]; + if (this->_internal_supports_pcd() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_supports_pcd(), target); + } + + // .viam.component.camera.v1.IntrinsicParameters intrinsic_parameters = 2 [json_name = "intrinsicParameters"]; + if (this->_internal_has_intrinsic_parameters()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::intrinsic_parameters(this), + _Internal::intrinsic_parameters(this).GetCachedSize(), target, stream); + } + + // .viam.component.camera.v1.DistortionParameters distortion_parameters = 3 [json_name = "distortionParameters"]; + if (this->_internal_has_distortion_parameters()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::distortion_parameters(this), + _Internal::distortion_parameters(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.camera.v1.GetPropertiesResponse) + return target; +} + +size_t GetPropertiesResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.GetPropertiesResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.component.camera.v1.IntrinsicParameters intrinsic_parameters = 2 [json_name = "intrinsicParameters"]; + if (this->_internal_has_intrinsic_parameters()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.intrinsic_parameters_); + } + + // .viam.component.camera.v1.DistortionParameters distortion_parameters = 3 [json_name = "distortionParameters"]; + if (this->_internal_has_distortion_parameters()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.distortion_parameters_); + } + + // bool supports_pcd = 1 [json_name = "supportsPcd"]; + if (this->_internal_supports_pcd() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPropertiesResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesResponse::GetClassData() const { return &_class_data_; } + + +void GetPropertiesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetPropertiesResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_intrinsic_parameters()) { + _this->_internal_mutable_intrinsic_parameters()->::viam::component::camera::v1::IntrinsicParameters::MergeFrom( + from._internal_intrinsic_parameters()); + } + if (from._internal_has_distortion_parameters()) { + _this->_internal_mutable_distortion_parameters()->::viam::component::camera::v1::DistortionParameters::MergeFrom( + from._internal_distortion_parameters()); + } + if (from._internal_supports_pcd() != 0) { + _this->_internal_set_supports_pcd(from._internal_supports_pcd()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPropertiesResponse::CopyFrom(const GetPropertiesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.camera.v1.GetPropertiesResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPropertiesResponse::IsInitialized() const { + return true; +} + +void GetPropertiesResponse::InternalSwap(GetPropertiesResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.supports_pcd_) + + sizeof(GetPropertiesResponse::_impl_.supports_pcd_) + - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.intrinsic_parameters_)>( + reinterpret_cast(&_impl_.intrinsic_parameters_), + reinterpret_cast(&other->_impl_.intrinsic_parameters_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, + file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[6]); +} + +// =================================================================== + +class Webcams::_Internal { + public: +}; + +Webcams::Webcams(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.camera.v1.Webcams) +} +Webcams::Webcams(const Webcams& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Webcams* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.webcams_){from._impl_.webcams_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.Webcams) +} + +inline void Webcams::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.webcams_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Webcams::~Webcams() { + // @@protoc_insertion_point(destructor:viam.component.camera.v1.Webcams) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Webcams::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.webcams_.~RepeatedPtrField(); +} + +void Webcams::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Webcams::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.Webcams) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.webcams_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Webcams::_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) { + // repeated .viam.component.camera.v1.Webcam webcams = 1 [json_name = "webcams"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_webcams(), 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* Webcams::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.Webcams) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.component.camera.v1.Webcam webcams = 1 [json_name = "webcams"]; + for (unsigned i = 0, + n = static_cast(this->_internal_webcams_size()); i < n; i++) { + const auto& repfield = this->_internal_webcams(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.camera.v1.Webcams) + return target; +} + +size_t Webcams::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.Webcams) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.component.camera.v1.Webcam webcams = 1 [json_name = "webcams"]; + total_size += 1UL * this->_internal_webcams_size(); + for (const auto& msg : this->_impl_.webcams_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Webcams::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Webcams::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Webcams::GetClassData() const { return &_class_data_; } + + +void Webcams::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.Webcams) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.webcams_.MergeFrom(from._impl_.webcams_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Webcams::CopyFrom(const Webcams& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.camera.v1.Webcams) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Webcams::IsInitialized() const { + return true; +} + +void Webcams::InternalSwap(Webcams* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.webcams_.InternalSwap(&other->_impl_.webcams_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Webcams::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, + file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[7]); +} + +// =================================================================== + +class Webcam::_Internal { + public: +}; + +Webcam::Webcam(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.camera.v1.Webcam) +} +Webcam::Webcam(const Webcam& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Webcam* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.properties_){from._impl_.properties_} + , decltype(_impl_.label_){} + , decltype(_impl_.status_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.label_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.label_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_label().empty()) { + _this->_impl_.label_.Set(from._internal_label(), + _this->GetArenaForAllocation()); + } + _impl_.status_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.status_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_status().empty()) { + _this->_impl_.status_.Set(from._internal_status(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.Webcam) +} + +inline void Webcam::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.properties_){arena} + , decltype(_impl_.label_){} + , decltype(_impl_.status_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.label_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.label_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.status_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.status_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Webcam::~Webcam() { + // @@protoc_insertion_point(destructor:viam.component.camera.v1.Webcam) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Webcam::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.properties_.~RepeatedPtrField(); + _impl_.label_.Destroy(); + _impl_.status_.Destroy(); +} + +void Webcam::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Webcam::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.Webcam) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.properties_.Clear(); + _impl_.label_.ClearToEmpty(); + _impl_.status_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Webcam::_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 label = 1 [json_name = "label"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_label(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.Webcam.label")); + } else + goto handle_unusual; + continue; + // string status = 2 [json_name = "status"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_status(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.Webcam.status")); + } else + goto handle_unusual; + continue; + // repeated .viam.component.camera.v1.Property properties = 3 [json_name = "properties"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_properties(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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* Webcam::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.Webcam) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string label = 1 [json_name = "label"]; + if (!this->_internal_label().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_label().data(), static_cast(this->_internal_label().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.Webcam.label"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_label(), target); + } + + // string status = 2 [json_name = "status"]; + if (!this->_internal_status().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_status().data(), static_cast(this->_internal_status().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.Webcam.status"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_status(), target); + } + + // repeated .viam.component.camera.v1.Property properties = 3 [json_name = "properties"]; + for (unsigned i = 0, + n = static_cast(this->_internal_properties_size()); i < n; i++) { + const auto& repfield = this->_internal_properties(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.camera.v1.Webcam) + return target; +} + +size_t Webcam::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.Webcam) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.component.camera.v1.Property properties = 3 [json_name = "properties"]; + total_size += 1UL * this->_internal_properties_size(); + for (const auto& msg : this->_impl_.properties_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string label = 1 [json_name = "label"]; + if (!this->_internal_label().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_label()); + } + + // string status = 2 [json_name = "status"]; + if (!this->_internal_status().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_status()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Webcam::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Webcam::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Webcam::GetClassData() const { return &_class_data_; } + + +void Webcam::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.Webcam) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.properties_.MergeFrom(from._impl_.properties_); + if (!from._internal_label().empty()) { + _this->_internal_set_label(from._internal_label()); + } + if (!from._internal_status().empty()) { + _this->_internal_set_status(from._internal_status()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Webcam::CopyFrom(const Webcam& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.camera.v1.Webcam) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Webcam::IsInitialized() const { + return true; +} + +void Webcam::InternalSwap(Webcam* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.properties_.InternalSwap(&other->_impl_.properties_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.label_, lhs_arena, + &other->_impl_.label_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.status_, lhs_arena, + &other->_impl_.status_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Webcam::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, + file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[8]); +} + +// =================================================================== + +class Property::_Internal { + public: +}; + +Property::Property(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.camera.v1.Property) +} +Property::Property(const Property& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Property* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.frame_format_){} + , decltype(_impl_.width_px_){} + , decltype(_impl_.height_px_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.frame_format_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.frame_format_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_frame_format().empty()) { + _this->_impl_.frame_format_.Set(from._internal_frame_format(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.width_px_, &from._impl_.width_px_, + static_cast(reinterpret_cast(&_impl_.height_px_) - + reinterpret_cast(&_impl_.width_px_)) + sizeof(_impl_.height_px_)); + // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.Property) +} + +inline void Property::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.frame_format_){} + , decltype(_impl_.width_px_){0} + , decltype(_impl_.height_px_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.frame_format_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.frame_format_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Property::~Property() { + // @@protoc_insertion_point(destructor:viam.component.camera.v1.Property) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Property::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.frame_format_.Destroy(); +} + +void Property::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Property::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.Property) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.frame_format_.ClearToEmpty(); + ::memset(&_impl_.width_px_, 0, static_cast( + reinterpret_cast(&_impl_.height_px_) - + reinterpret_cast(&_impl_.width_px_)) + sizeof(_impl_.height_px_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Property::_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) { + // int32 width_px = 1 [json_name = "widthPx"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.width_px_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 height_px = 2 [json_name = "heightPx"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.height_px_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string frame_format = 3 [json_name = "frameFormat"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_frame_format(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.Property.frame_format")); + } 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* Property::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.Property) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int32 width_px = 1 [json_name = "widthPx"]; + if (this->_internal_width_px() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_width_px(), target); + } + + // int32 height_px = 2 [json_name = "heightPx"]; + if (this->_internal_height_px() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_height_px(), target); + } + + // string frame_format = 3 [json_name = "frameFormat"]; + if (!this->_internal_frame_format().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_frame_format().data(), static_cast(this->_internal_frame_format().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.Property.frame_format"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_frame_format(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.camera.v1.Property) + return target; +} + +size_t Property::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.Property) + 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 frame_format = 3 [json_name = "frameFormat"]; + if (!this->_internal_frame_format().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_frame_format()); + } + + // int32 width_px = 1 [json_name = "widthPx"]; + if (this->_internal_width_px() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_width_px()); + } + + // int32 height_px = 2 [json_name = "heightPx"]; + if (this->_internal_height_px() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_height_px()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Property::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Property::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Property::GetClassData() const { return &_class_data_; } + + +void Property::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.Property) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_frame_format().empty()) { + _this->_internal_set_frame_format(from._internal_frame_format()); + } + if (from._internal_width_px() != 0) { + _this->_internal_set_width_px(from._internal_width_px()); + } + if (from._internal_height_px() != 0) { + _this->_internal_set_height_px(from._internal_height_px()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Property::CopyFrom(const Property& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.camera.v1.Property) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Property::IsInitialized() const { + return true; +} + +void Property::InternalSwap(Property* 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( + &_impl_.frame_format_, lhs_arena, + &other->_impl_.frame_format_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Property, _impl_.height_px_) + + sizeof(Property::_impl_.height_px_) + - PROTOBUF_FIELD_OFFSET(Property, _impl_.width_px_)>( + reinterpret_cast(&_impl_.width_px_), + reinterpret_cast(&other->_impl_.width_px_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Property::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, + file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[9]); +} + +// =================================================================== + +class IntrinsicParameters::_Internal { + public: +}; + +IntrinsicParameters::IntrinsicParameters(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.camera.v1.IntrinsicParameters) +} +IntrinsicParameters::IntrinsicParameters(const IntrinsicParameters& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + IntrinsicParameters* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.width_px_){} + , decltype(_impl_.height_px_){} + , decltype(_impl_.focal_x_px_){} + , decltype(_impl_.focal_y_px_){} + , decltype(_impl_.center_x_px_){} + , decltype(_impl_.center_y_px_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.width_px_, &from._impl_.width_px_, + static_cast(reinterpret_cast(&_impl_.center_y_px_) - + reinterpret_cast(&_impl_.width_px_)) + sizeof(_impl_.center_y_px_)); + // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.IntrinsicParameters) +} + +inline void IntrinsicParameters::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.width_px_){0u} + , decltype(_impl_.height_px_){0u} + , decltype(_impl_.focal_x_px_){0} + , decltype(_impl_.focal_y_px_){0} + , decltype(_impl_.center_x_px_){0} + , decltype(_impl_.center_y_px_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +IntrinsicParameters::~IntrinsicParameters() { + // @@protoc_insertion_point(destructor:viam.component.camera.v1.IntrinsicParameters) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void IntrinsicParameters::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void IntrinsicParameters::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void IntrinsicParameters::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.IntrinsicParameters) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.width_px_, 0, static_cast( + reinterpret_cast(&_impl_.center_y_px_) - + reinterpret_cast(&_impl_.width_px_)) + sizeof(_impl_.center_y_px_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IntrinsicParameters::_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) { + // uint32 width_px = 1 [json_name = "widthPx"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.width_px_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint32 height_px = 2 [json_name = "heightPx"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.height_px_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double focal_x_px = 3 [json_name = "focalXPx"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + _impl_.focal_x_px_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double focal_y_px = 4 [json_name = "focalYPx"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { + _impl_.focal_y_px_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double center_x_px = 5 [json_name = "centerXPx"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 41)) { + _impl_.center_x_px_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double center_y_px = 6 [json_name = "centerYPx"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 49)) { + _impl_.center_y_px_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* IntrinsicParameters::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.IntrinsicParameters) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 width_px = 1 [json_name = "widthPx"]; + if (this->_internal_width_px() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_width_px(), target); + } + + // uint32 height_px = 2 [json_name = "heightPx"]; + if (this->_internal_height_px() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_height_px(), target); + } + + // double focal_x_px = 3 [json_name = "focalXPx"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_focal_x_px = this->_internal_focal_x_px(); + uint64_t raw_focal_x_px; + memcpy(&raw_focal_x_px, &tmp_focal_x_px, sizeof(tmp_focal_x_px)); + if (raw_focal_x_px != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_focal_x_px(), target); + } + + // double focal_y_px = 4 [json_name = "focalYPx"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_focal_y_px = this->_internal_focal_y_px(); + uint64_t raw_focal_y_px; + memcpy(&raw_focal_y_px, &tmp_focal_y_px, sizeof(tmp_focal_y_px)); + if (raw_focal_y_px != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_focal_y_px(), target); + } + + // double center_x_px = 5 [json_name = "centerXPx"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_center_x_px = this->_internal_center_x_px(); + uint64_t raw_center_x_px; + memcpy(&raw_center_x_px, &tmp_center_x_px, sizeof(tmp_center_x_px)); + if (raw_center_x_px != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_center_x_px(), target); + } + + // double center_y_px = 6 [json_name = "centerYPx"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_center_y_px = this->_internal_center_y_px(); + uint64_t raw_center_y_px; + memcpy(&raw_center_y_px, &tmp_center_y_px, sizeof(tmp_center_y_px)); + if (raw_center_y_px != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_center_y_px(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.camera.v1.IntrinsicParameters) + return target; +} + +size_t IntrinsicParameters::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.IntrinsicParameters) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint32 width_px = 1 [json_name = "widthPx"]; + if (this->_internal_width_px() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_width_px()); + } + + // uint32 height_px = 2 [json_name = "heightPx"]; + if (this->_internal_height_px() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_height_px()); + } + + // double focal_x_px = 3 [json_name = "focalXPx"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_focal_x_px = this->_internal_focal_x_px(); + uint64_t raw_focal_x_px; + memcpy(&raw_focal_x_px, &tmp_focal_x_px, sizeof(tmp_focal_x_px)); + if (raw_focal_x_px != 0) { + total_size += 1 + 8; + } + + // double focal_y_px = 4 [json_name = "focalYPx"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_focal_y_px = this->_internal_focal_y_px(); + uint64_t raw_focal_y_px; + memcpy(&raw_focal_y_px, &tmp_focal_y_px, sizeof(tmp_focal_y_px)); + if (raw_focal_y_px != 0) { + total_size += 1 + 8; + } + + // double center_x_px = 5 [json_name = "centerXPx"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_center_x_px = this->_internal_center_x_px(); + uint64_t raw_center_x_px; + memcpy(&raw_center_x_px, &tmp_center_x_px, sizeof(tmp_center_x_px)); + if (raw_center_x_px != 0) { + total_size += 1 + 8; + } + + // double center_y_px = 6 [json_name = "centerYPx"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_center_y_px = this->_internal_center_y_px(); + uint64_t raw_center_y_px; + memcpy(&raw_center_y_px, &tmp_center_y_px, sizeof(tmp_center_y_px)); + if (raw_center_y_px != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IntrinsicParameters::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + IntrinsicParameters::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IntrinsicParameters::GetClassData() const { return &_class_data_; } + + +void IntrinsicParameters::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.IntrinsicParameters) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_width_px() != 0) { + _this->_internal_set_width_px(from._internal_width_px()); + } + if (from._internal_height_px() != 0) { + _this->_internal_set_height_px(from._internal_height_px()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_focal_x_px = from._internal_focal_x_px(); + uint64_t raw_focal_x_px; + memcpy(&raw_focal_x_px, &tmp_focal_x_px, sizeof(tmp_focal_x_px)); + if (raw_focal_x_px != 0) { + _this->_internal_set_focal_x_px(from._internal_focal_x_px()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_focal_y_px = from._internal_focal_y_px(); + uint64_t raw_focal_y_px; + memcpy(&raw_focal_y_px, &tmp_focal_y_px, sizeof(tmp_focal_y_px)); + if (raw_focal_y_px != 0) { + _this->_internal_set_focal_y_px(from._internal_focal_y_px()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_center_x_px = from._internal_center_x_px(); + uint64_t raw_center_x_px; + memcpy(&raw_center_x_px, &tmp_center_x_px, sizeof(tmp_center_x_px)); + if (raw_center_x_px != 0) { + _this->_internal_set_center_x_px(from._internal_center_x_px()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_center_y_px = from._internal_center_y_px(); + uint64_t raw_center_y_px; + memcpy(&raw_center_y_px, &tmp_center_y_px, sizeof(tmp_center_y_px)); + if (raw_center_y_px != 0) { + _this->_internal_set_center_y_px(from._internal_center_y_px()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void IntrinsicParameters::CopyFrom(const IntrinsicParameters& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.camera.v1.IntrinsicParameters) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IntrinsicParameters::IsInitialized() const { + return true; +} + +void IntrinsicParameters::InternalSwap(IntrinsicParameters* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(IntrinsicParameters, _impl_.center_y_px_) + + sizeof(IntrinsicParameters::_impl_.center_y_px_) + - PROTOBUF_FIELD_OFFSET(IntrinsicParameters, _impl_.width_px_)>( + reinterpret_cast(&_impl_.width_px_), + reinterpret_cast(&other->_impl_.width_px_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata IntrinsicParameters::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, + file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[10]); +} + +// =================================================================== + +class DistortionParameters::_Internal { + public: +}; + +DistortionParameters::DistortionParameters(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.camera.v1.DistortionParameters) +} +DistortionParameters::DistortionParameters(const DistortionParameters& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DistortionParameters* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.parameters_){from._impl_.parameters_} + , decltype(_impl_.model_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model().empty()) { + _this->_impl_.model_.Set(from._internal_model(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.DistortionParameters) +} + +inline void DistortionParameters::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.parameters_){arena} + , decltype(_impl_.model_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +DistortionParameters::~DistortionParameters() { + // @@protoc_insertion_point(destructor:viam.component.camera.v1.DistortionParameters) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DistortionParameters::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.parameters_.~RepeatedField(); + _impl_.model_.Destroy(); +} + +void DistortionParameters::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DistortionParameters::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.DistortionParameters) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.parameters_.Clear(); + _impl_.model_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DistortionParameters::_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 model = 1 [json_name = "model"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_model(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.DistortionParameters.model")); + } else + goto handle_unusual; + continue; + // repeated double parameters = 2 [json_name = "parameters"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_parameters(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 17) { + _internal_add_parameters(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } 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* DistortionParameters::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.DistortionParameters) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string model = 1 [json_name = "model"]; + if (!this->_internal_model().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_model().data(), static_cast(this->_internal_model().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.DistortionParameters.model"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_model(), target); + } + + // repeated double parameters = 2 [json_name = "parameters"]; + if (this->_internal_parameters_size() > 0) { + target = stream->WriteFixedPacked(2, _internal_parameters(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.camera.v1.DistortionParameters) + return target; +} + +size_t DistortionParameters::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.DistortionParameters) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated double parameters = 2 [json_name = "parameters"]; + { + unsigned int count = static_cast(this->_internal_parameters_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; + } + + // string model = 1 [json_name = "model"]; + if (!this->_internal_model().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_model()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DistortionParameters::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DistortionParameters::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DistortionParameters::GetClassData() const { return &_class_data_; } + + +void DistortionParameters::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.DistortionParameters) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.parameters_.MergeFrom(from._impl_.parameters_); + if (!from._internal_model().empty()) { + _this->_internal_set_model(from._internal_model()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DistortionParameters::CopyFrom(const DistortionParameters& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.camera.v1.DistortionParameters) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DistortionParameters::IsInitialized() const { + return true; +} + +void DistortionParameters::InternalSwap(DistortionParameters* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.parameters_.InternalSwap(&other->_impl_.parameters_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.model_, lhs_arena, + &other->_impl_.model_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DistortionParameters::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, + file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[11]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace camera +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::GetImageRequest* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::GetImageRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::GetImageRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::GetImageResponse* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::GetImageResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::GetImageResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::RenderFrameRequest* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::RenderFrameRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::RenderFrameRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::GetPointCloudRequest* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::GetPointCloudRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::GetPointCloudRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::GetPointCloudResponse* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::GetPointCloudResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::GetPointCloudResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::GetPropertiesRequest* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::GetPropertiesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::GetPropertiesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::GetPropertiesResponse* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::GetPropertiesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::GetPropertiesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::Webcams* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::Webcams >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::Webcams >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::Webcam* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::Webcam >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::Webcam >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::Property* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::Property >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::Property >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::IntrinsicParameters* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::IntrinsicParameters >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::IntrinsicParameters >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::DistortionParameters* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::DistortionParameters >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::DistortionParameters >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/component/camera/v1/camera.pb.h b/src/gen/component/camera/v1/camera.pb.h new file mode 100644 index 000000000..def179a3f --- /dev/null +++ b/src/gen/component/camera/v1/camera.pb.h @@ -0,0 +1,3589 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/camera/v1/camera.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fcamera_2fv1_2fcamera_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fcamera_2fv1_2fcamera_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 "google/api/annotations.pb.h" +#include "google/api/httpbody.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_component_2fcamera_2fv1_2fcamera_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_component_2fcamera_2fv1_2fcamera_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto; +namespace viam { +namespace component { +namespace camera { +namespace v1 { +class DistortionParameters; +struct DistortionParametersDefaultTypeInternal; +extern DistortionParametersDefaultTypeInternal _DistortionParameters_default_instance_; +class GetImageRequest; +struct GetImageRequestDefaultTypeInternal; +extern GetImageRequestDefaultTypeInternal _GetImageRequest_default_instance_; +class GetImageResponse; +struct GetImageResponseDefaultTypeInternal; +extern GetImageResponseDefaultTypeInternal _GetImageResponse_default_instance_; +class GetPointCloudRequest; +struct GetPointCloudRequestDefaultTypeInternal; +extern GetPointCloudRequestDefaultTypeInternal _GetPointCloudRequest_default_instance_; +class GetPointCloudResponse; +struct GetPointCloudResponseDefaultTypeInternal; +extern GetPointCloudResponseDefaultTypeInternal _GetPointCloudResponse_default_instance_; +class GetPropertiesRequest; +struct GetPropertiesRequestDefaultTypeInternal; +extern GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; +class GetPropertiesResponse; +struct GetPropertiesResponseDefaultTypeInternal; +extern GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; +class IntrinsicParameters; +struct IntrinsicParametersDefaultTypeInternal; +extern IntrinsicParametersDefaultTypeInternal _IntrinsicParameters_default_instance_; +class Property; +struct PropertyDefaultTypeInternal; +extern PropertyDefaultTypeInternal _Property_default_instance_; +class RenderFrameRequest; +struct RenderFrameRequestDefaultTypeInternal; +extern RenderFrameRequestDefaultTypeInternal _RenderFrameRequest_default_instance_; +class Webcam; +struct WebcamDefaultTypeInternal; +extern WebcamDefaultTypeInternal _Webcam_default_instance_; +class Webcams; +struct WebcamsDefaultTypeInternal; +extern WebcamsDefaultTypeInternal _Webcams_default_instance_; +} // namespace v1 +} // namespace camera +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::camera::v1::DistortionParameters* Arena::CreateMaybeMessage<::viam::component::camera::v1::DistortionParameters>(Arena*); +template<> ::viam::component::camera::v1::GetImageRequest* Arena::CreateMaybeMessage<::viam::component::camera::v1::GetImageRequest>(Arena*); +template<> ::viam::component::camera::v1::GetImageResponse* Arena::CreateMaybeMessage<::viam::component::camera::v1::GetImageResponse>(Arena*); +template<> ::viam::component::camera::v1::GetPointCloudRequest* Arena::CreateMaybeMessage<::viam::component::camera::v1::GetPointCloudRequest>(Arena*); +template<> ::viam::component::camera::v1::GetPointCloudResponse* Arena::CreateMaybeMessage<::viam::component::camera::v1::GetPointCloudResponse>(Arena*); +template<> ::viam::component::camera::v1::GetPropertiesRequest* Arena::CreateMaybeMessage<::viam::component::camera::v1::GetPropertiesRequest>(Arena*); +template<> ::viam::component::camera::v1::GetPropertiesResponse* Arena::CreateMaybeMessage<::viam::component::camera::v1::GetPropertiesResponse>(Arena*); +template<> ::viam::component::camera::v1::IntrinsicParameters* Arena::CreateMaybeMessage<::viam::component::camera::v1::IntrinsicParameters>(Arena*); +template<> ::viam::component::camera::v1::Property* Arena::CreateMaybeMessage<::viam::component::camera::v1::Property>(Arena*); +template<> ::viam::component::camera::v1::RenderFrameRequest* Arena::CreateMaybeMessage<::viam::component::camera::v1::RenderFrameRequest>(Arena*); +template<> ::viam::component::camera::v1::Webcam* Arena::CreateMaybeMessage<::viam::component::camera::v1::Webcam>(Arena*); +template<> ::viam::component::camera::v1::Webcams* Arena::CreateMaybeMessage<::viam::component::camera::v1::Webcams>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace component { +namespace camera { +namespace v1 { + +// =================================================================== + +class GetImageRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetImageRequest) */ { + public: + inline GetImageRequest() : GetImageRequest(nullptr) {} + ~GetImageRequest() override; + explicit PROTOBUF_CONSTEXPR GetImageRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetImageRequest(const GetImageRequest& from); + GetImageRequest(GetImageRequest&& from) noexcept + : GetImageRequest() { + *this = ::std::move(from); + } + + inline GetImageRequest& operator=(const GetImageRequest& from) { + CopyFrom(from); + return *this; + } + inline GetImageRequest& operator=(GetImageRequest&& 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 GetImageRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetImageRequest* internal_default_instance() { + return reinterpret_cast( + &_GetImageRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(GetImageRequest& a, GetImageRequest& b) { + a.Swap(&b); + } + inline void Swap(GetImageRequest* 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(GetImageRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetImageRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetImageRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetImageRequest& from) { + GetImageRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetImageRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.GetImageRequest"; + } + protected: + explicit GetImageRequest(::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, + kMimeTypeFieldNumber = 2, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // string mime_type = 2 [json_name = "mimeType"]; + void clear_mime_type(); + const std::string& mime_type() const; + template + void set_mime_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_mime_type(); + PROTOBUF_NODISCARD std::string* release_mime_type(); + void set_allocated_mime_type(std::string* mime_type); + private: + const std::string& _internal_mime_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); + std::string* _internal_mutable_mime_type(); + public: + + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.GetImageRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; +}; +// ------------------------------------------------------------------- + +class GetImageResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetImageResponse) */ { + public: + inline GetImageResponse() : GetImageResponse(nullptr) {} + ~GetImageResponse() override; + explicit PROTOBUF_CONSTEXPR GetImageResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetImageResponse(const GetImageResponse& from); + GetImageResponse(GetImageResponse&& from) noexcept + : GetImageResponse() { + *this = ::std::move(from); + } + + inline GetImageResponse& operator=(const GetImageResponse& from) { + CopyFrom(from); + return *this; + } + inline GetImageResponse& operator=(GetImageResponse&& 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 GetImageResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetImageResponse* internal_default_instance() { + return reinterpret_cast( + &_GetImageResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(GetImageResponse& a, GetImageResponse& b) { + a.Swap(&b); + } + inline void Swap(GetImageResponse* 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(GetImageResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetImageResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetImageResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetImageResponse& from) { + GetImageResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetImageResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.GetImageResponse"; + } + protected: + explicit GetImageResponse(::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 { + kMimeTypeFieldNumber = 1, + kImageFieldNumber = 2, + kWidthPxFieldNumber = 3, + kHeightPxFieldNumber = 4, + }; + // string mime_type = 1 [json_name = "mimeType"]; + void clear_mime_type(); + const std::string& mime_type() const; + template + void set_mime_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_mime_type(); + PROTOBUF_NODISCARD std::string* release_mime_type(); + void set_allocated_mime_type(std::string* mime_type); + private: + const std::string& _internal_mime_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); + std::string* _internal_mutable_mime_type(); + public: + + // bytes image = 2 [json_name = "image"]; + void clear_image(); + const std::string& image() const; + template + void set_image(ArgT0&& arg0, ArgT... args); + std::string* mutable_image(); + PROTOBUF_NODISCARD std::string* release_image(); + void set_allocated_image(std::string* image); + private: + const std::string& _internal_image() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_image(const std::string& value); + std::string* _internal_mutable_image(); + public: + + // int64 width_px = 3 [json_name = "widthPx"]; + void clear_width_px(); + int64_t width_px() const; + void set_width_px(int64_t value); + private: + int64_t _internal_width_px() const; + void _internal_set_width_px(int64_t value); + public: + + // int64 height_px = 4 [json_name = "heightPx"]; + void clear_height_px(); + int64_t height_px() const; + void set_height_px(int64_t value); + private: + int64_t _internal_height_px() const; + void _internal_set_height_px(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.GetImageResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr image_; + int64_t width_px_; + int64_t height_px_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; +}; +// ------------------------------------------------------------------- + +class RenderFrameRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.RenderFrameRequest) */ { + public: + inline RenderFrameRequest() : RenderFrameRequest(nullptr) {} + ~RenderFrameRequest() override; + explicit PROTOBUF_CONSTEXPR RenderFrameRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RenderFrameRequest(const RenderFrameRequest& from); + RenderFrameRequest(RenderFrameRequest&& from) noexcept + : RenderFrameRequest() { + *this = ::std::move(from); + } + + inline RenderFrameRequest& operator=(const RenderFrameRequest& from) { + CopyFrom(from); + return *this; + } + inline RenderFrameRequest& operator=(RenderFrameRequest&& 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 RenderFrameRequest& default_instance() { + return *internal_default_instance(); + } + static inline const RenderFrameRequest* internal_default_instance() { + return reinterpret_cast( + &_RenderFrameRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(RenderFrameRequest& a, RenderFrameRequest& b) { + a.Swap(&b); + } + inline void Swap(RenderFrameRequest* 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(RenderFrameRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RenderFrameRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RenderFrameRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RenderFrameRequest& from) { + RenderFrameRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RenderFrameRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.RenderFrameRequest"; + } + protected: + explicit RenderFrameRequest(::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, + kMimeTypeFieldNumber = 2, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // string mime_type = 2 [json_name = "mimeType"]; + void clear_mime_type(); + const std::string& mime_type() const; + template + void set_mime_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_mime_type(); + PROTOBUF_NODISCARD std::string* release_mime_type(); + void set_allocated_mime_type(std::string* mime_type); + private: + const std::string& _internal_mime_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); + std::string* _internal_mutable_mime_type(); + public: + + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.RenderFrameRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPointCloudRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetPointCloudRequest) */ { + public: + inline GetPointCloudRequest() : GetPointCloudRequest(nullptr) {} + ~GetPointCloudRequest() override; + explicit PROTOBUF_CONSTEXPR GetPointCloudRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPointCloudRequest(const GetPointCloudRequest& from); + GetPointCloudRequest(GetPointCloudRequest&& from) noexcept + : GetPointCloudRequest() { + *this = ::std::move(from); + } + + inline GetPointCloudRequest& operator=(const GetPointCloudRequest& from) { + CopyFrom(from); + return *this; + } + inline GetPointCloudRequest& operator=(GetPointCloudRequest&& 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 GetPointCloudRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetPointCloudRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPointCloudRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(GetPointCloudRequest& a, GetPointCloudRequest& b) { + a.Swap(&b); + } + inline void Swap(GetPointCloudRequest* 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(GetPointCloudRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPointCloudRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPointCloudRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPointCloudRequest& from) { + GetPointCloudRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPointCloudRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.GetPointCloudRequest"; + } + protected: + explicit GetPointCloudRequest(::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, + kMimeTypeFieldNumber = 2, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // string mime_type = 2 [json_name = "mimeType"]; + void clear_mime_type(); + const std::string& mime_type() const; + template + void set_mime_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_mime_type(); + PROTOBUF_NODISCARD std::string* release_mime_type(); + void set_allocated_mime_type(std::string* mime_type); + private: + const std::string& _internal_mime_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); + std::string* _internal_mutable_mime_type(); + public: + + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.GetPointCloudRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPointCloudResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetPointCloudResponse) */ { + public: + inline GetPointCloudResponse() : GetPointCloudResponse(nullptr) {} + ~GetPointCloudResponse() override; + explicit PROTOBUF_CONSTEXPR GetPointCloudResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPointCloudResponse(const GetPointCloudResponse& from); + GetPointCloudResponse(GetPointCloudResponse&& from) noexcept + : GetPointCloudResponse() { + *this = ::std::move(from); + } + + inline GetPointCloudResponse& operator=(const GetPointCloudResponse& from) { + CopyFrom(from); + return *this; + } + inline GetPointCloudResponse& operator=(GetPointCloudResponse&& 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 GetPointCloudResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetPointCloudResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPointCloudResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(GetPointCloudResponse& a, GetPointCloudResponse& b) { + a.Swap(&b); + } + inline void Swap(GetPointCloudResponse* 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(GetPointCloudResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPointCloudResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPointCloudResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPointCloudResponse& from) { + GetPointCloudResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPointCloudResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.GetPointCloudResponse"; + } + protected: + explicit GetPointCloudResponse(::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 { + kMimeTypeFieldNumber = 1, + kPointCloudFieldNumber = 2, + }; + // string mime_type = 1 [json_name = "mimeType"]; + void clear_mime_type(); + const std::string& mime_type() const; + template + void set_mime_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_mime_type(); + PROTOBUF_NODISCARD std::string* release_mime_type(); + void set_allocated_mime_type(std::string* mime_type); + private: + const std::string& _internal_mime_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); + std::string* _internal_mutable_mime_type(); + public: + + // bytes point_cloud = 2 [json_name = "pointCloud"]; + void clear_point_cloud(); + const std::string& point_cloud() const; + template + void set_point_cloud(ArgT0&& arg0, ArgT... args); + std::string* mutable_point_cloud(); + PROTOBUF_NODISCARD std::string* release_point_cloud(); + void set_allocated_point_cloud(std::string* point_cloud); + private: + const std::string& _internal_point_cloud() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_point_cloud(const std::string& value); + std::string* _internal_mutable_point_cloud(); + public: + + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.GetPointCloudResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr point_cloud_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPropertiesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetPropertiesRequest) */ { + public: + inline GetPropertiesRequest() : GetPropertiesRequest(nullptr) {} + ~GetPropertiesRequest() override; + explicit PROTOBUF_CONSTEXPR GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPropertiesRequest(const GetPropertiesRequest& from); + GetPropertiesRequest(GetPropertiesRequest&& from) noexcept + : GetPropertiesRequest() { + *this = ::std::move(from); + } + + inline GetPropertiesRequest& operator=(const GetPropertiesRequest& from) { + CopyFrom(from); + return *this; + } + inline GetPropertiesRequest& operator=(GetPropertiesRequest&& 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 GetPropertiesRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetPropertiesRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPropertiesRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(GetPropertiesRequest& a, GetPropertiesRequest& b) { + a.Swap(&b); + } + inline void Swap(GetPropertiesRequest* 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(GetPropertiesRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPropertiesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPropertiesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPropertiesRequest& from) { + GetPropertiesRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPropertiesRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.GetPropertiesRequest"; + } + protected: + explicit GetPropertiesRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.GetPropertiesRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPropertiesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetPropertiesResponse) */ { + public: + inline GetPropertiesResponse() : GetPropertiesResponse(nullptr) {} + ~GetPropertiesResponse() override; + explicit PROTOBUF_CONSTEXPR GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPropertiesResponse(const GetPropertiesResponse& from); + GetPropertiesResponse(GetPropertiesResponse&& from) noexcept + : GetPropertiesResponse() { + *this = ::std::move(from); + } + + inline GetPropertiesResponse& operator=(const GetPropertiesResponse& from) { + CopyFrom(from); + return *this; + } + inline GetPropertiesResponse& operator=(GetPropertiesResponse&& 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 GetPropertiesResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetPropertiesResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPropertiesResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(GetPropertiesResponse& a, GetPropertiesResponse& b) { + a.Swap(&b); + } + inline void Swap(GetPropertiesResponse* 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(GetPropertiesResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPropertiesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPropertiesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPropertiesResponse& from) { + GetPropertiesResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPropertiesResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.GetPropertiesResponse"; + } + protected: + explicit GetPropertiesResponse(::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 { + kIntrinsicParametersFieldNumber = 2, + kDistortionParametersFieldNumber = 3, + kSupportsPcdFieldNumber = 1, + }; + // .viam.component.camera.v1.IntrinsicParameters intrinsic_parameters = 2 [json_name = "intrinsicParameters"]; + bool has_intrinsic_parameters() const; + private: + bool _internal_has_intrinsic_parameters() const; + public: + void clear_intrinsic_parameters(); + const ::viam::component::camera::v1::IntrinsicParameters& intrinsic_parameters() const; + PROTOBUF_NODISCARD ::viam::component::camera::v1::IntrinsicParameters* release_intrinsic_parameters(); + ::viam::component::camera::v1::IntrinsicParameters* mutable_intrinsic_parameters(); + void set_allocated_intrinsic_parameters(::viam::component::camera::v1::IntrinsicParameters* intrinsic_parameters); + private: + const ::viam::component::camera::v1::IntrinsicParameters& _internal_intrinsic_parameters() const; + ::viam::component::camera::v1::IntrinsicParameters* _internal_mutable_intrinsic_parameters(); + public: + void unsafe_arena_set_allocated_intrinsic_parameters( + ::viam::component::camera::v1::IntrinsicParameters* intrinsic_parameters); + ::viam::component::camera::v1::IntrinsicParameters* unsafe_arena_release_intrinsic_parameters(); + + // .viam.component.camera.v1.DistortionParameters distortion_parameters = 3 [json_name = "distortionParameters"]; + bool has_distortion_parameters() const; + private: + bool _internal_has_distortion_parameters() const; + public: + void clear_distortion_parameters(); + const ::viam::component::camera::v1::DistortionParameters& distortion_parameters() const; + PROTOBUF_NODISCARD ::viam::component::camera::v1::DistortionParameters* release_distortion_parameters(); + ::viam::component::camera::v1::DistortionParameters* mutable_distortion_parameters(); + void set_allocated_distortion_parameters(::viam::component::camera::v1::DistortionParameters* distortion_parameters); + private: + const ::viam::component::camera::v1::DistortionParameters& _internal_distortion_parameters() const; + ::viam::component::camera::v1::DistortionParameters* _internal_mutable_distortion_parameters(); + public: + void unsafe_arena_set_allocated_distortion_parameters( + ::viam::component::camera::v1::DistortionParameters* distortion_parameters); + ::viam::component::camera::v1::DistortionParameters* unsafe_arena_release_distortion_parameters(); + + // bool supports_pcd = 1 [json_name = "supportsPcd"]; + void clear_supports_pcd(); + bool supports_pcd() const; + void set_supports_pcd(bool value); + private: + bool _internal_supports_pcd() const; + void _internal_set_supports_pcd(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.GetPropertiesResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::component::camera::v1::IntrinsicParameters* intrinsic_parameters_; + ::viam::component::camera::v1::DistortionParameters* distortion_parameters_; + bool supports_pcd_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; +}; +// ------------------------------------------------------------------- + +class Webcams final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.Webcams) */ { + public: + inline Webcams() : Webcams(nullptr) {} + ~Webcams() override; + explicit PROTOBUF_CONSTEXPR Webcams(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Webcams(const Webcams& from); + Webcams(Webcams&& from) noexcept + : Webcams() { + *this = ::std::move(from); + } + + inline Webcams& operator=(const Webcams& from) { + CopyFrom(from); + return *this; + } + inline Webcams& operator=(Webcams&& 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 Webcams& default_instance() { + return *internal_default_instance(); + } + static inline const Webcams* internal_default_instance() { + return reinterpret_cast( + &_Webcams_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(Webcams& a, Webcams& b) { + a.Swap(&b); + } + inline void Swap(Webcams* 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(Webcams* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Webcams* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Webcams& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Webcams& from) { + Webcams::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Webcams* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.Webcams"; + } + protected: + explicit Webcams(::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 { + kWebcamsFieldNumber = 1, + }; + // repeated .viam.component.camera.v1.Webcam webcams = 1 [json_name = "webcams"]; + int webcams_size() const; + private: + int _internal_webcams_size() const; + public: + void clear_webcams(); + ::viam::component::camera::v1::Webcam* mutable_webcams(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Webcam >* + mutable_webcams(); + private: + const ::viam::component::camera::v1::Webcam& _internal_webcams(int index) const; + ::viam::component::camera::v1::Webcam* _internal_add_webcams(); + public: + const ::viam::component::camera::v1::Webcam& webcams(int index) const; + ::viam::component::camera::v1::Webcam* add_webcams(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Webcam >& + webcams() const; + + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.Webcams) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Webcam > webcams_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; +}; +// ------------------------------------------------------------------- + +class Webcam final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.Webcam) */ { + public: + inline Webcam() : Webcam(nullptr) {} + ~Webcam() override; + explicit PROTOBUF_CONSTEXPR Webcam(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Webcam(const Webcam& from); + Webcam(Webcam&& from) noexcept + : Webcam() { + *this = ::std::move(from); + } + + inline Webcam& operator=(const Webcam& from) { + CopyFrom(from); + return *this; + } + inline Webcam& operator=(Webcam&& 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 Webcam& default_instance() { + return *internal_default_instance(); + } + static inline const Webcam* internal_default_instance() { + return reinterpret_cast( + &_Webcam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(Webcam& a, Webcam& b) { + a.Swap(&b); + } + inline void Swap(Webcam* 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(Webcam* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Webcam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Webcam& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Webcam& from) { + Webcam::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Webcam* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.Webcam"; + } + protected: + explicit Webcam(::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 { + kPropertiesFieldNumber = 3, + kLabelFieldNumber = 1, + kStatusFieldNumber = 2, + }; + // repeated .viam.component.camera.v1.Property properties = 3 [json_name = "properties"]; + int properties_size() const; + private: + int _internal_properties_size() const; + public: + void clear_properties(); + ::viam::component::camera::v1::Property* mutable_properties(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Property >* + mutable_properties(); + private: + const ::viam::component::camera::v1::Property& _internal_properties(int index) const; + ::viam::component::camera::v1::Property* _internal_add_properties(); + public: + const ::viam::component::camera::v1::Property& properties(int index) const; + ::viam::component::camera::v1::Property* add_properties(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Property >& + properties() const; + + // string label = 1 [json_name = "label"]; + void clear_label(); + const std::string& label() const; + template + void set_label(ArgT0&& arg0, ArgT... args); + std::string* mutable_label(); + PROTOBUF_NODISCARD std::string* release_label(); + void set_allocated_label(std::string* label); + private: + const std::string& _internal_label() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_label(const std::string& value); + std::string* _internal_mutable_label(); + public: + + // string status = 2 [json_name = "status"]; + void clear_status(); + const std::string& status() const; + template + void set_status(ArgT0&& arg0, ArgT... args); + std::string* mutable_status(); + PROTOBUF_NODISCARD std::string* release_status(); + void set_allocated_status(std::string* status); + private: + const std::string& _internal_status() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_status(const std::string& value); + std::string* _internal_mutable_status(); + public: + + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.Webcam) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Property > properties_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr label_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; +}; +// ------------------------------------------------------------------- + +class Property final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.Property) */ { + public: + inline Property() : Property(nullptr) {} + ~Property() override; + explicit PROTOBUF_CONSTEXPR Property(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Property(const Property& from); + Property(Property&& from) noexcept + : Property() { + *this = ::std::move(from); + } + + inline Property& operator=(const Property& from) { + CopyFrom(from); + return *this; + } + inline Property& operator=(Property&& 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 Property& default_instance() { + return *internal_default_instance(); + } + static inline const Property* internal_default_instance() { + return reinterpret_cast( + &_Property_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(Property& a, Property& b) { + a.Swap(&b); + } + inline void Swap(Property* 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(Property* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Property* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Property& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Property& from) { + Property::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Property* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.Property"; + } + protected: + explicit Property(::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 { + kFrameFormatFieldNumber = 3, + kWidthPxFieldNumber = 1, + kHeightPxFieldNumber = 2, + }; + // string frame_format = 3 [json_name = "frameFormat"]; + void clear_frame_format(); + const std::string& frame_format() const; + template + void set_frame_format(ArgT0&& arg0, ArgT... args); + std::string* mutable_frame_format(); + PROTOBUF_NODISCARD std::string* release_frame_format(); + void set_allocated_frame_format(std::string* frame_format); + private: + const std::string& _internal_frame_format() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_frame_format(const std::string& value); + std::string* _internal_mutable_frame_format(); + public: + + // int32 width_px = 1 [json_name = "widthPx"]; + void clear_width_px(); + int32_t width_px() const; + void set_width_px(int32_t value); + private: + int32_t _internal_width_px() const; + void _internal_set_width_px(int32_t value); + public: + + // int32 height_px = 2 [json_name = "heightPx"]; + void clear_height_px(); + int32_t height_px() const; + void set_height_px(int32_t value); + private: + int32_t _internal_height_px() const; + void _internal_set_height_px(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.Property) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr frame_format_; + int32_t width_px_; + int32_t height_px_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; +}; +// ------------------------------------------------------------------- + +class IntrinsicParameters final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.IntrinsicParameters) */ { + public: + inline IntrinsicParameters() : IntrinsicParameters(nullptr) {} + ~IntrinsicParameters() override; + explicit PROTOBUF_CONSTEXPR IntrinsicParameters(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + IntrinsicParameters(const IntrinsicParameters& from); + IntrinsicParameters(IntrinsicParameters&& from) noexcept + : IntrinsicParameters() { + *this = ::std::move(from); + } + + inline IntrinsicParameters& operator=(const IntrinsicParameters& from) { + CopyFrom(from); + return *this; + } + inline IntrinsicParameters& operator=(IntrinsicParameters&& 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 IntrinsicParameters& default_instance() { + return *internal_default_instance(); + } + static inline const IntrinsicParameters* internal_default_instance() { + return reinterpret_cast( + &_IntrinsicParameters_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(IntrinsicParameters& a, IntrinsicParameters& b) { + a.Swap(&b); + } + inline void Swap(IntrinsicParameters* 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(IntrinsicParameters* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + IntrinsicParameters* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IntrinsicParameters& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const IntrinsicParameters& from) { + IntrinsicParameters::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IntrinsicParameters* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.IntrinsicParameters"; + } + protected: + explicit IntrinsicParameters(::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 { + kWidthPxFieldNumber = 1, + kHeightPxFieldNumber = 2, + kFocalXPxFieldNumber = 3, + kFocalYPxFieldNumber = 4, + kCenterXPxFieldNumber = 5, + kCenterYPxFieldNumber = 6, + }; + // uint32 width_px = 1 [json_name = "widthPx"]; + void clear_width_px(); + uint32_t width_px() const; + void set_width_px(uint32_t value); + private: + uint32_t _internal_width_px() const; + void _internal_set_width_px(uint32_t value); + public: + + // uint32 height_px = 2 [json_name = "heightPx"]; + void clear_height_px(); + uint32_t height_px() const; + void set_height_px(uint32_t value); + private: + uint32_t _internal_height_px() const; + void _internal_set_height_px(uint32_t value); + public: + + // double focal_x_px = 3 [json_name = "focalXPx"]; + void clear_focal_x_px(); + double focal_x_px() const; + void set_focal_x_px(double value); + private: + double _internal_focal_x_px() const; + void _internal_set_focal_x_px(double value); + public: + + // double focal_y_px = 4 [json_name = "focalYPx"]; + void clear_focal_y_px(); + double focal_y_px() const; + void set_focal_y_px(double value); + private: + double _internal_focal_y_px() const; + void _internal_set_focal_y_px(double value); + public: + + // double center_x_px = 5 [json_name = "centerXPx"]; + void clear_center_x_px(); + double center_x_px() const; + void set_center_x_px(double value); + private: + double _internal_center_x_px() const; + void _internal_set_center_x_px(double value); + public: + + // double center_y_px = 6 [json_name = "centerYPx"]; + void clear_center_y_px(); + double center_y_px() const; + void set_center_y_px(double value); + private: + double _internal_center_y_px() const; + void _internal_set_center_y_px(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.IntrinsicParameters) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + uint32_t width_px_; + uint32_t height_px_; + double focal_x_px_; + double focal_y_px_; + double center_x_px_; + double center_y_px_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; +}; +// ------------------------------------------------------------------- + +class DistortionParameters final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.DistortionParameters) */ { + public: + inline DistortionParameters() : DistortionParameters(nullptr) {} + ~DistortionParameters() override; + explicit PROTOBUF_CONSTEXPR DistortionParameters(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DistortionParameters(const DistortionParameters& from); + DistortionParameters(DistortionParameters&& from) noexcept + : DistortionParameters() { + *this = ::std::move(from); + } + + inline DistortionParameters& operator=(const DistortionParameters& from) { + CopyFrom(from); + return *this; + } + inline DistortionParameters& operator=(DistortionParameters&& 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 DistortionParameters& default_instance() { + return *internal_default_instance(); + } + static inline const DistortionParameters* internal_default_instance() { + return reinterpret_cast( + &_DistortionParameters_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(DistortionParameters& a, DistortionParameters& b) { + a.Swap(&b); + } + inline void Swap(DistortionParameters* 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(DistortionParameters* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DistortionParameters* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DistortionParameters& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DistortionParameters& from) { + DistortionParameters::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DistortionParameters* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.DistortionParameters"; + } + protected: + explicit DistortionParameters(::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 { + kParametersFieldNumber = 2, + kModelFieldNumber = 1, + }; + // repeated double parameters = 2 [json_name = "parameters"]; + int parameters_size() const; + private: + int _internal_parameters_size() const; + public: + void clear_parameters(); + private: + double _internal_parameters(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + _internal_parameters() const; + void _internal_add_parameters(double value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + _internal_mutable_parameters(); + public: + double parameters(int index) const; + void set_parameters(int index, double value); + void add_parameters(double value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + parameters() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + mutable_parameters(); + + // string model = 1 [json_name = "model"]; + void clear_model(); + const std::string& model() const; + template + void set_model(ArgT0&& arg0, ArgT... args); + std::string* mutable_model(); + PROTOBUF_NODISCARD std::string* release_model(); + void set_allocated_model(std::string* model); + private: + const std::string& _internal_model() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model(const std::string& value); + std::string* _internal_mutable_model(); + public: + + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.DistortionParameters) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > parameters_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// GetImageRequest + +// string name = 1 [json_name = "name"]; +inline void GetImageRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetImageRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetImageRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetImageRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetImageRequest.name) +} +inline std::string* GetImageRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetImageRequest.name) + return _s; +} +inline const std::string& GetImageRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetImageRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetImageRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetImageRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetImageRequest.name) + return _impl_.name_.Release(); +} +inline void GetImageRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetImageRequest.name) +} + +// string mime_type = 2 [json_name = "mimeType"]; +inline void GetImageRequest::clear_mime_type() { + _impl_.mime_type_.ClearToEmpty(); +} +inline const std::string& GetImageRequest::mime_type() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetImageRequest.mime_type) + return _internal_mime_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetImageRequest::set_mime_type(ArgT0&& arg0, ArgT... args) { + + _impl_.mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetImageRequest.mime_type) +} +inline std::string* GetImageRequest::mutable_mime_type() { + std::string* _s = _internal_mutable_mime_type(); + // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetImageRequest.mime_type) + return _s; +} +inline const std::string& GetImageRequest::_internal_mime_type() const { + return _impl_.mime_type_.Get(); +} +inline void GetImageRequest::_internal_set_mime_type(const std::string& value) { + + _impl_.mime_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetImageRequest::_internal_mutable_mime_type() { + + return _impl_.mime_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetImageRequest::release_mime_type() { + // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetImageRequest.mime_type) + return _impl_.mime_type_.Release(); +} +inline void GetImageRequest::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + _impl_.mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.mime_type_.IsDefault()) { + _impl_.mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetImageRequest.mime_type) +} + +// ------------------------------------------------------------------- + +// GetImageResponse + +// string mime_type = 1 [json_name = "mimeType"]; +inline void GetImageResponse::clear_mime_type() { + _impl_.mime_type_.ClearToEmpty(); +} +inline const std::string& GetImageResponse::mime_type() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetImageResponse.mime_type) + return _internal_mime_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetImageResponse::set_mime_type(ArgT0&& arg0, ArgT... args) { + + _impl_.mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetImageResponse.mime_type) +} +inline std::string* GetImageResponse::mutable_mime_type() { + std::string* _s = _internal_mutable_mime_type(); + // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetImageResponse.mime_type) + return _s; +} +inline const std::string& GetImageResponse::_internal_mime_type() const { + return _impl_.mime_type_.Get(); +} +inline void GetImageResponse::_internal_set_mime_type(const std::string& value) { + + _impl_.mime_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetImageResponse::_internal_mutable_mime_type() { + + return _impl_.mime_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetImageResponse::release_mime_type() { + // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetImageResponse.mime_type) + return _impl_.mime_type_.Release(); +} +inline void GetImageResponse::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + _impl_.mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.mime_type_.IsDefault()) { + _impl_.mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetImageResponse.mime_type) +} + +// bytes image = 2 [json_name = "image"]; +inline void GetImageResponse::clear_image() { + _impl_.image_.ClearToEmpty(); +} +inline const std::string& GetImageResponse::image() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetImageResponse.image) + return _internal_image(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetImageResponse::set_image(ArgT0&& arg0, ArgT... args) { + + _impl_.image_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetImageResponse.image) +} +inline std::string* GetImageResponse::mutable_image() { + std::string* _s = _internal_mutable_image(); + // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetImageResponse.image) + return _s; +} +inline const std::string& GetImageResponse::_internal_image() const { + return _impl_.image_.Get(); +} +inline void GetImageResponse::_internal_set_image(const std::string& value) { + + _impl_.image_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetImageResponse::_internal_mutable_image() { + + return _impl_.image_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetImageResponse::release_image() { + // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetImageResponse.image) + return _impl_.image_.Release(); +} +inline void GetImageResponse::set_allocated_image(std::string* image) { + if (image != nullptr) { + + } else { + + } + _impl_.image_.SetAllocated(image, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.image_.IsDefault()) { + _impl_.image_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetImageResponse.image) +} + +// int64 width_px = 3 [json_name = "widthPx"]; +inline void GetImageResponse::clear_width_px() { + _impl_.width_px_ = int64_t{0}; +} +inline int64_t GetImageResponse::_internal_width_px() const { + return _impl_.width_px_; +} +inline int64_t GetImageResponse::width_px() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetImageResponse.width_px) + return _internal_width_px(); +} +inline void GetImageResponse::_internal_set_width_px(int64_t value) { + + _impl_.width_px_ = value; +} +inline void GetImageResponse::set_width_px(int64_t value) { + _internal_set_width_px(value); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetImageResponse.width_px) +} + +// int64 height_px = 4 [json_name = "heightPx"]; +inline void GetImageResponse::clear_height_px() { + _impl_.height_px_ = int64_t{0}; +} +inline int64_t GetImageResponse::_internal_height_px() const { + return _impl_.height_px_; +} +inline int64_t GetImageResponse::height_px() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetImageResponse.height_px) + return _internal_height_px(); +} +inline void GetImageResponse::_internal_set_height_px(int64_t value) { + + _impl_.height_px_ = value; +} +inline void GetImageResponse::set_height_px(int64_t value) { + _internal_set_height_px(value); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetImageResponse.height_px) +} + +// ------------------------------------------------------------------- + +// RenderFrameRequest + +// string name = 1 [json_name = "name"]; +inline void RenderFrameRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& RenderFrameRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.RenderFrameRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RenderFrameRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.RenderFrameRequest.name) +} +inline std::string* RenderFrameRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.RenderFrameRequest.name) + return _s; +} +inline const std::string& RenderFrameRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void RenderFrameRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* RenderFrameRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* RenderFrameRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.camera.v1.RenderFrameRequest.name) + return _impl_.name_.Release(); +} +inline void RenderFrameRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.RenderFrameRequest.name) +} + +// string mime_type = 2 [json_name = "mimeType"]; +inline void RenderFrameRequest::clear_mime_type() { + _impl_.mime_type_.ClearToEmpty(); +} +inline const std::string& RenderFrameRequest::mime_type() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.RenderFrameRequest.mime_type) + return _internal_mime_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RenderFrameRequest::set_mime_type(ArgT0&& arg0, ArgT... args) { + + _impl_.mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.RenderFrameRequest.mime_type) +} +inline std::string* RenderFrameRequest::mutable_mime_type() { + std::string* _s = _internal_mutable_mime_type(); + // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.RenderFrameRequest.mime_type) + return _s; +} +inline const std::string& RenderFrameRequest::_internal_mime_type() const { + return _impl_.mime_type_.Get(); +} +inline void RenderFrameRequest::_internal_set_mime_type(const std::string& value) { + + _impl_.mime_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* RenderFrameRequest::_internal_mutable_mime_type() { + + return _impl_.mime_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* RenderFrameRequest::release_mime_type() { + // @@protoc_insertion_point(field_release:viam.component.camera.v1.RenderFrameRequest.mime_type) + return _impl_.mime_type_.Release(); +} +inline void RenderFrameRequest::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + _impl_.mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.mime_type_.IsDefault()) { + _impl_.mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.RenderFrameRequest.mime_type) +} + +// ------------------------------------------------------------------- + +// GetPointCloudRequest + +// string name = 1 [json_name = "name"]; +inline void GetPointCloudRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetPointCloudRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetPointCloudRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetPointCloudRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetPointCloudRequest.name) +} +inline std::string* GetPointCloudRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetPointCloudRequest.name) + return _s; +} +inline const std::string& GetPointCloudRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetPointCloudRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetPointCloudRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetPointCloudRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetPointCloudRequest.name) + return _impl_.name_.Release(); +} +inline void GetPointCloudRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetPointCloudRequest.name) +} + +// string mime_type = 2 [json_name = "mimeType"]; +inline void GetPointCloudRequest::clear_mime_type() { + _impl_.mime_type_.ClearToEmpty(); +} +inline const std::string& GetPointCloudRequest::mime_type() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetPointCloudRequest.mime_type) + return _internal_mime_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetPointCloudRequest::set_mime_type(ArgT0&& arg0, ArgT... args) { + + _impl_.mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetPointCloudRequest.mime_type) +} +inline std::string* GetPointCloudRequest::mutable_mime_type() { + std::string* _s = _internal_mutable_mime_type(); + // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetPointCloudRequest.mime_type) + return _s; +} +inline const std::string& GetPointCloudRequest::_internal_mime_type() const { + return _impl_.mime_type_.Get(); +} +inline void GetPointCloudRequest::_internal_set_mime_type(const std::string& value) { + + _impl_.mime_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetPointCloudRequest::_internal_mutable_mime_type() { + + return _impl_.mime_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetPointCloudRequest::release_mime_type() { + // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetPointCloudRequest.mime_type) + return _impl_.mime_type_.Release(); +} +inline void GetPointCloudRequest::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + _impl_.mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.mime_type_.IsDefault()) { + _impl_.mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetPointCloudRequest.mime_type) +} + +// ------------------------------------------------------------------- + +// GetPointCloudResponse + +// string mime_type = 1 [json_name = "mimeType"]; +inline void GetPointCloudResponse::clear_mime_type() { + _impl_.mime_type_.ClearToEmpty(); +} +inline const std::string& GetPointCloudResponse::mime_type() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetPointCloudResponse.mime_type) + return _internal_mime_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetPointCloudResponse::set_mime_type(ArgT0&& arg0, ArgT... args) { + + _impl_.mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetPointCloudResponse.mime_type) +} +inline std::string* GetPointCloudResponse::mutable_mime_type() { + std::string* _s = _internal_mutable_mime_type(); + // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetPointCloudResponse.mime_type) + return _s; +} +inline const std::string& GetPointCloudResponse::_internal_mime_type() const { + return _impl_.mime_type_.Get(); +} +inline void GetPointCloudResponse::_internal_set_mime_type(const std::string& value) { + + _impl_.mime_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetPointCloudResponse::_internal_mutable_mime_type() { + + return _impl_.mime_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetPointCloudResponse::release_mime_type() { + // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetPointCloudResponse.mime_type) + return _impl_.mime_type_.Release(); +} +inline void GetPointCloudResponse::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + _impl_.mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.mime_type_.IsDefault()) { + _impl_.mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetPointCloudResponse.mime_type) +} + +// bytes point_cloud = 2 [json_name = "pointCloud"]; +inline void GetPointCloudResponse::clear_point_cloud() { + _impl_.point_cloud_.ClearToEmpty(); +} +inline const std::string& GetPointCloudResponse::point_cloud() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetPointCloudResponse.point_cloud) + return _internal_point_cloud(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetPointCloudResponse::set_point_cloud(ArgT0&& arg0, ArgT... args) { + + _impl_.point_cloud_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetPointCloudResponse.point_cloud) +} +inline std::string* GetPointCloudResponse::mutable_point_cloud() { + std::string* _s = _internal_mutable_point_cloud(); + // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetPointCloudResponse.point_cloud) + return _s; +} +inline const std::string& GetPointCloudResponse::_internal_point_cloud() const { + return _impl_.point_cloud_.Get(); +} +inline void GetPointCloudResponse::_internal_set_point_cloud(const std::string& value) { + + _impl_.point_cloud_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetPointCloudResponse::_internal_mutable_point_cloud() { + + return _impl_.point_cloud_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetPointCloudResponse::release_point_cloud() { + // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetPointCloudResponse.point_cloud) + return _impl_.point_cloud_.Release(); +} +inline void GetPointCloudResponse::set_allocated_point_cloud(std::string* point_cloud) { + if (point_cloud != nullptr) { + + } else { + + } + _impl_.point_cloud_.SetAllocated(point_cloud, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.point_cloud_.IsDefault()) { + _impl_.point_cloud_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetPointCloudResponse.point_cloud) +} + +// ------------------------------------------------------------------- + +// GetPropertiesRequest + +// string name = 1 [json_name = "name"]; +inline void GetPropertiesRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetPropertiesRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetPropertiesRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetPropertiesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetPropertiesRequest.name) +} +inline std::string* GetPropertiesRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetPropertiesRequest.name) + return _s; +} +inline const std::string& GetPropertiesRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetPropertiesRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetPropertiesRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetPropertiesRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetPropertiesRequest.name) + return _impl_.name_.Release(); +} +inline void GetPropertiesRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetPropertiesRequest.name) +} + +// ------------------------------------------------------------------- + +// GetPropertiesResponse + +// bool supports_pcd = 1 [json_name = "supportsPcd"]; +inline void GetPropertiesResponse::clear_supports_pcd() { + _impl_.supports_pcd_ = false; +} +inline bool GetPropertiesResponse::_internal_supports_pcd() const { + return _impl_.supports_pcd_; +} +inline bool GetPropertiesResponse::supports_pcd() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetPropertiesResponse.supports_pcd) + return _internal_supports_pcd(); +} +inline void GetPropertiesResponse::_internal_set_supports_pcd(bool value) { + + _impl_.supports_pcd_ = value; +} +inline void GetPropertiesResponse::set_supports_pcd(bool value) { + _internal_set_supports_pcd(value); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetPropertiesResponse.supports_pcd) +} + +// .viam.component.camera.v1.IntrinsicParameters intrinsic_parameters = 2 [json_name = "intrinsicParameters"]; +inline bool GetPropertiesResponse::_internal_has_intrinsic_parameters() const { + return this != internal_default_instance() && _impl_.intrinsic_parameters_ != nullptr; +} +inline bool GetPropertiesResponse::has_intrinsic_parameters() const { + return _internal_has_intrinsic_parameters(); +} +inline void GetPropertiesResponse::clear_intrinsic_parameters() { + if (GetArenaForAllocation() == nullptr && _impl_.intrinsic_parameters_ != nullptr) { + delete _impl_.intrinsic_parameters_; + } + _impl_.intrinsic_parameters_ = nullptr; +} +inline const ::viam::component::camera::v1::IntrinsicParameters& GetPropertiesResponse::_internal_intrinsic_parameters() const { + const ::viam::component::camera::v1::IntrinsicParameters* p = _impl_.intrinsic_parameters_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::component::camera::v1::_IntrinsicParameters_default_instance_); +} +inline const ::viam::component::camera::v1::IntrinsicParameters& GetPropertiesResponse::intrinsic_parameters() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetPropertiesResponse.intrinsic_parameters) + return _internal_intrinsic_parameters(); +} +inline void GetPropertiesResponse::unsafe_arena_set_allocated_intrinsic_parameters( + ::viam::component::camera::v1::IntrinsicParameters* intrinsic_parameters) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.intrinsic_parameters_); + } + _impl_.intrinsic_parameters_ = intrinsic_parameters; + if (intrinsic_parameters) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.camera.v1.GetPropertiesResponse.intrinsic_parameters) +} +inline ::viam::component::camera::v1::IntrinsicParameters* GetPropertiesResponse::release_intrinsic_parameters() { + + ::viam::component::camera::v1::IntrinsicParameters* temp = _impl_.intrinsic_parameters_; + _impl_.intrinsic_parameters_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::component::camera::v1::IntrinsicParameters* GetPropertiesResponse::unsafe_arena_release_intrinsic_parameters() { + // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetPropertiesResponse.intrinsic_parameters) + + ::viam::component::camera::v1::IntrinsicParameters* temp = _impl_.intrinsic_parameters_; + _impl_.intrinsic_parameters_ = nullptr; + return temp; +} +inline ::viam::component::camera::v1::IntrinsicParameters* GetPropertiesResponse::_internal_mutable_intrinsic_parameters() { + + if (_impl_.intrinsic_parameters_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::component::camera::v1::IntrinsicParameters>(GetArenaForAllocation()); + _impl_.intrinsic_parameters_ = p; + } + return _impl_.intrinsic_parameters_; +} +inline ::viam::component::camera::v1::IntrinsicParameters* GetPropertiesResponse::mutable_intrinsic_parameters() { + ::viam::component::camera::v1::IntrinsicParameters* _msg = _internal_mutable_intrinsic_parameters(); + // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetPropertiesResponse.intrinsic_parameters) + return _msg; +} +inline void GetPropertiesResponse::set_allocated_intrinsic_parameters(::viam::component::camera::v1::IntrinsicParameters* intrinsic_parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.intrinsic_parameters_; + } + if (intrinsic_parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(intrinsic_parameters); + if (message_arena != submessage_arena) { + intrinsic_parameters = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, intrinsic_parameters, submessage_arena); + } + + } else { + + } + _impl_.intrinsic_parameters_ = intrinsic_parameters; + // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetPropertiesResponse.intrinsic_parameters) +} + +// .viam.component.camera.v1.DistortionParameters distortion_parameters = 3 [json_name = "distortionParameters"]; +inline bool GetPropertiesResponse::_internal_has_distortion_parameters() const { + return this != internal_default_instance() && _impl_.distortion_parameters_ != nullptr; +} +inline bool GetPropertiesResponse::has_distortion_parameters() const { + return _internal_has_distortion_parameters(); +} +inline void GetPropertiesResponse::clear_distortion_parameters() { + if (GetArenaForAllocation() == nullptr && _impl_.distortion_parameters_ != nullptr) { + delete _impl_.distortion_parameters_; + } + _impl_.distortion_parameters_ = nullptr; +} +inline const ::viam::component::camera::v1::DistortionParameters& GetPropertiesResponse::_internal_distortion_parameters() const { + const ::viam::component::camera::v1::DistortionParameters* p = _impl_.distortion_parameters_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::component::camera::v1::_DistortionParameters_default_instance_); +} +inline const ::viam::component::camera::v1::DistortionParameters& GetPropertiesResponse::distortion_parameters() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetPropertiesResponse.distortion_parameters) + return _internal_distortion_parameters(); +} +inline void GetPropertiesResponse::unsafe_arena_set_allocated_distortion_parameters( + ::viam::component::camera::v1::DistortionParameters* distortion_parameters) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.distortion_parameters_); + } + _impl_.distortion_parameters_ = distortion_parameters; + if (distortion_parameters) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.camera.v1.GetPropertiesResponse.distortion_parameters) +} +inline ::viam::component::camera::v1::DistortionParameters* GetPropertiesResponse::release_distortion_parameters() { + + ::viam::component::camera::v1::DistortionParameters* temp = _impl_.distortion_parameters_; + _impl_.distortion_parameters_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::component::camera::v1::DistortionParameters* GetPropertiesResponse::unsafe_arena_release_distortion_parameters() { + // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetPropertiesResponse.distortion_parameters) + + ::viam::component::camera::v1::DistortionParameters* temp = _impl_.distortion_parameters_; + _impl_.distortion_parameters_ = nullptr; + return temp; +} +inline ::viam::component::camera::v1::DistortionParameters* GetPropertiesResponse::_internal_mutable_distortion_parameters() { + + if (_impl_.distortion_parameters_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::component::camera::v1::DistortionParameters>(GetArenaForAllocation()); + _impl_.distortion_parameters_ = p; + } + return _impl_.distortion_parameters_; +} +inline ::viam::component::camera::v1::DistortionParameters* GetPropertiesResponse::mutable_distortion_parameters() { + ::viam::component::camera::v1::DistortionParameters* _msg = _internal_mutable_distortion_parameters(); + // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetPropertiesResponse.distortion_parameters) + return _msg; +} +inline void GetPropertiesResponse::set_allocated_distortion_parameters(::viam::component::camera::v1::DistortionParameters* distortion_parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.distortion_parameters_; + } + if (distortion_parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(distortion_parameters); + if (message_arena != submessage_arena) { + distortion_parameters = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, distortion_parameters, submessage_arena); + } + + } else { + + } + _impl_.distortion_parameters_ = distortion_parameters; + // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetPropertiesResponse.distortion_parameters) +} + +// ------------------------------------------------------------------- + +// Webcams + +// repeated .viam.component.camera.v1.Webcam webcams = 1 [json_name = "webcams"]; +inline int Webcams::_internal_webcams_size() const { + return _impl_.webcams_.size(); +} +inline int Webcams::webcams_size() const { + return _internal_webcams_size(); +} +inline void Webcams::clear_webcams() { + _impl_.webcams_.Clear(); +} +inline ::viam::component::camera::v1::Webcam* Webcams::mutable_webcams(int index) { + // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.Webcams.webcams) + return _impl_.webcams_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Webcam >* +Webcams::mutable_webcams() { + // @@protoc_insertion_point(field_mutable_list:viam.component.camera.v1.Webcams.webcams) + return &_impl_.webcams_; +} +inline const ::viam::component::camera::v1::Webcam& Webcams::_internal_webcams(int index) const { + return _impl_.webcams_.Get(index); +} +inline const ::viam::component::camera::v1::Webcam& Webcams::webcams(int index) const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.Webcams.webcams) + return _internal_webcams(index); +} +inline ::viam::component::camera::v1::Webcam* Webcams::_internal_add_webcams() { + return _impl_.webcams_.Add(); +} +inline ::viam::component::camera::v1::Webcam* Webcams::add_webcams() { + ::viam::component::camera::v1::Webcam* _add = _internal_add_webcams(); + // @@protoc_insertion_point(field_add:viam.component.camera.v1.Webcams.webcams) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Webcam >& +Webcams::webcams() const { + // @@protoc_insertion_point(field_list:viam.component.camera.v1.Webcams.webcams) + return _impl_.webcams_; +} + +// ------------------------------------------------------------------- + +// Webcam + +// string label = 1 [json_name = "label"]; +inline void Webcam::clear_label() { + _impl_.label_.ClearToEmpty(); +} +inline const std::string& Webcam::label() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.Webcam.label) + return _internal_label(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Webcam::set_label(ArgT0&& arg0, ArgT... args) { + + _impl_.label_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.Webcam.label) +} +inline std::string* Webcam::mutable_label() { + std::string* _s = _internal_mutable_label(); + // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.Webcam.label) + return _s; +} +inline const std::string& Webcam::_internal_label() const { + return _impl_.label_.Get(); +} +inline void Webcam::_internal_set_label(const std::string& value) { + + _impl_.label_.Set(value, GetArenaForAllocation()); +} +inline std::string* Webcam::_internal_mutable_label() { + + return _impl_.label_.Mutable(GetArenaForAllocation()); +} +inline std::string* Webcam::release_label() { + // @@protoc_insertion_point(field_release:viam.component.camera.v1.Webcam.label) + return _impl_.label_.Release(); +} +inline void Webcam::set_allocated_label(std::string* label) { + if (label != nullptr) { + + } else { + + } + _impl_.label_.SetAllocated(label, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.label_.IsDefault()) { + _impl_.label_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.Webcam.label) +} + +// string status = 2 [json_name = "status"]; +inline void Webcam::clear_status() { + _impl_.status_.ClearToEmpty(); +} +inline const std::string& Webcam::status() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.Webcam.status) + return _internal_status(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Webcam::set_status(ArgT0&& arg0, ArgT... args) { + + _impl_.status_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.Webcam.status) +} +inline std::string* Webcam::mutable_status() { + std::string* _s = _internal_mutable_status(); + // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.Webcam.status) + return _s; +} +inline const std::string& Webcam::_internal_status() const { + return _impl_.status_.Get(); +} +inline void Webcam::_internal_set_status(const std::string& value) { + + _impl_.status_.Set(value, GetArenaForAllocation()); +} +inline std::string* Webcam::_internal_mutable_status() { + + return _impl_.status_.Mutable(GetArenaForAllocation()); +} +inline std::string* Webcam::release_status() { + // @@protoc_insertion_point(field_release:viam.component.camera.v1.Webcam.status) + return _impl_.status_.Release(); +} +inline void Webcam::set_allocated_status(std::string* status) { + if (status != nullptr) { + + } else { + + } + _impl_.status_.SetAllocated(status, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.status_.IsDefault()) { + _impl_.status_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.Webcam.status) +} + +// repeated .viam.component.camera.v1.Property properties = 3 [json_name = "properties"]; +inline int Webcam::_internal_properties_size() const { + return _impl_.properties_.size(); +} +inline int Webcam::properties_size() const { + return _internal_properties_size(); +} +inline void Webcam::clear_properties() { + _impl_.properties_.Clear(); +} +inline ::viam::component::camera::v1::Property* Webcam::mutable_properties(int index) { + // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.Webcam.properties) + return _impl_.properties_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Property >* +Webcam::mutable_properties() { + // @@protoc_insertion_point(field_mutable_list:viam.component.camera.v1.Webcam.properties) + return &_impl_.properties_; +} +inline const ::viam::component::camera::v1::Property& Webcam::_internal_properties(int index) const { + return _impl_.properties_.Get(index); +} +inline const ::viam::component::camera::v1::Property& Webcam::properties(int index) const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.Webcam.properties) + return _internal_properties(index); +} +inline ::viam::component::camera::v1::Property* Webcam::_internal_add_properties() { + return _impl_.properties_.Add(); +} +inline ::viam::component::camera::v1::Property* Webcam::add_properties() { + ::viam::component::camera::v1::Property* _add = _internal_add_properties(); + // @@protoc_insertion_point(field_add:viam.component.camera.v1.Webcam.properties) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Property >& +Webcam::properties() const { + // @@protoc_insertion_point(field_list:viam.component.camera.v1.Webcam.properties) + return _impl_.properties_; +} + +// ------------------------------------------------------------------- + +// Property + +// int32 width_px = 1 [json_name = "widthPx"]; +inline void Property::clear_width_px() { + _impl_.width_px_ = 0; +} +inline int32_t Property::_internal_width_px() const { + return _impl_.width_px_; +} +inline int32_t Property::width_px() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.Property.width_px) + return _internal_width_px(); +} +inline void Property::_internal_set_width_px(int32_t value) { + + _impl_.width_px_ = value; +} +inline void Property::set_width_px(int32_t value) { + _internal_set_width_px(value); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.Property.width_px) +} + +// int32 height_px = 2 [json_name = "heightPx"]; +inline void Property::clear_height_px() { + _impl_.height_px_ = 0; +} +inline int32_t Property::_internal_height_px() const { + return _impl_.height_px_; +} +inline int32_t Property::height_px() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.Property.height_px) + return _internal_height_px(); +} +inline void Property::_internal_set_height_px(int32_t value) { + + _impl_.height_px_ = value; +} +inline void Property::set_height_px(int32_t value) { + _internal_set_height_px(value); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.Property.height_px) +} + +// string frame_format = 3 [json_name = "frameFormat"]; +inline void Property::clear_frame_format() { + _impl_.frame_format_.ClearToEmpty(); +} +inline const std::string& Property::frame_format() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.Property.frame_format) + return _internal_frame_format(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Property::set_frame_format(ArgT0&& arg0, ArgT... args) { + + _impl_.frame_format_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.Property.frame_format) +} +inline std::string* Property::mutable_frame_format() { + std::string* _s = _internal_mutable_frame_format(); + // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.Property.frame_format) + return _s; +} +inline const std::string& Property::_internal_frame_format() const { + return _impl_.frame_format_.Get(); +} +inline void Property::_internal_set_frame_format(const std::string& value) { + + _impl_.frame_format_.Set(value, GetArenaForAllocation()); +} +inline std::string* Property::_internal_mutable_frame_format() { + + return _impl_.frame_format_.Mutable(GetArenaForAllocation()); +} +inline std::string* Property::release_frame_format() { + // @@protoc_insertion_point(field_release:viam.component.camera.v1.Property.frame_format) + return _impl_.frame_format_.Release(); +} +inline void Property::set_allocated_frame_format(std::string* frame_format) { + if (frame_format != nullptr) { + + } else { + + } + _impl_.frame_format_.SetAllocated(frame_format, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.frame_format_.IsDefault()) { + _impl_.frame_format_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.Property.frame_format) +} + +// ------------------------------------------------------------------- + +// IntrinsicParameters + +// uint32 width_px = 1 [json_name = "widthPx"]; +inline void IntrinsicParameters::clear_width_px() { + _impl_.width_px_ = 0u; +} +inline uint32_t IntrinsicParameters::_internal_width_px() const { + return _impl_.width_px_; +} +inline uint32_t IntrinsicParameters::width_px() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.IntrinsicParameters.width_px) + return _internal_width_px(); +} +inline void IntrinsicParameters::_internal_set_width_px(uint32_t value) { + + _impl_.width_px_ = value; +} +inline void IntrinsicParameters::set_width_px(uint32_t value) { + _internal_set_width_px(value); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.IntrinsicParameters.width_px) +} + +// uint32 height_px = 2 [json_name = "heightPx"]; +inline void IntrinsicParameters::clear_height_px() { + _impl_.height_px_ = 0u; +} +inline uint32_t IntrinsicParameters::_internal_height_px() const { + return _impl_.height_px_; +} +inline uint32_t IntrinsicParameters::height_px() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.IntrinsicParameters.height_px) + return _internal_height_px(); +} +inline void IntrinsicParameters::_internal_set_height_px(uint32_t value) { + + _impl_.height_px_ = value; +} +inline void IntrinsicParameters::set_height_px(uint32_t value) { + _internal_set_height_px(value); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.IntrinsicParameters.height_px) +} + +// double focal_x_px = 3 [json_name = "focalXPx"]; +inline void IntrinsicParameters::clear_focal_x_px() { + _impl_.focal_x_px_ = 0; +} +inline double IntrinsicParameters::_internal_focal_x_px() const { + return _impl_.focal_x_px_; +} +inline double IntrinsicParameters::focal_x_px() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.IntrinsicParameters.focal_x_px) + return _internal_focal_x_px(); +} +inline void IntrinsicParameters::_internal_set_focal_x_px(double value) { + + _impl_.focal_x_px_ = value; +} +inline void IntrinsicParameters::set_focal_x_px(double value) { + _internal_set_focal_x_px(value); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.IntrinsicParameters.focal_x_px) +} + +// double focal_y_px = 4 [json_name = "focalYPx"]; +inline void IntrinsicParameters::clear_focal_y_px() { + _impl_.focal_y_px_ = 0; +} +inline double IntrinsicParameters::_internal_focal_y_px() const { + return _impl_.focal_y_px_; +} +inline double IntrinsicParameters::focal_y_px() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.IntrinsicParameters.focal_y_px) + return _internal_focal_y_px(); +} +inline void IntrinsicParameters::_internal_set_focal_y_px(double value) { + + _impl_.focal_y_px_ = value; +} +inline void IntrinsicParameters::set_focal_y_px(double value) { + _internal_set_focal_y_px(value); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.IntrinsicParameters.focal_y_px) +} + +// double center_x_px = 5 [json_name = "centerXPx"]; +inline void IntrinsicParameters::clear_center_x_px() { + _impl_.center_x_px_ = 0; +} +inline double IntrinsicParameters::_internal_center_x_px() const { + return _impl_.center_x_px_; +} +inline double IntrinsicParameters::center_x_px() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.IntrinsicParameters.center_x_px) + return _internal_center_x_px(); +} +inline void IntrinsicParameters::_internal_set_center_x_px(double value) { + + _impl_.center_x_px_ = value; +} +inline void IntrinsicParameters::set_center_x_px(double value) { + _internal_set_center_x_px(value); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.IntrinsicParameters.center_x_px) +} + +// double center_y_px = 6 [json_name = "centerYPx"]; +inline void IntrinsicParameters::clear_center_y_px() { + _impl_.center_y_px_ = 0; +} +inline double IntrinsicParameters::_internal_center_y_px() const { + return _impl_.center_y_px_; +} +inline double IntrinsicParameters::center_y_px() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.IntrinsicParameters.center_y_px) + return _internal_center_y_px(); +} +inline void IntrinsicParameters::_internal_set_center_y_px(double value) { + + _impl_.center_y_px_ = value; +} +inline void IntrinsicParameters::set_center_y_px(double value) { + _internal_set_center_y_px(value); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.IntrinsicParameters.center_y_px) +} + +// ------------------------------------------------------------------- + +// DistortionParameters + +// string model = 1 [json_name = "model"]; +inline void DistortionParameters::clear_model() { + _impl_.model_.ClearToEmpty(); +} +inline const std::string& DistortionParameters::model() const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.DistortionParameters.model) + return _internal_model(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DistortionParameters::set_model(ArgT0&& arg0, ArgT... args) { + + _impl_.model_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.DistortionParameters.model) +} +inline std::string* DistortionParameters::mutable_model() { + std::string* _s = _internal_mutable_model(); + // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.DistortionParameters.model) + return _s; +} +inline const std::string& DistortionParameters::_internal_model() const { + return _impl_.model_.Get(); +} +inline void DistortionParameters::_internal_set_model(const std::string& value) { + + _impl_.model_.Set(value, GetArenaForAllocation()); +} +inline std::string* DistortionParameters::_internal_mutable_model() { + + return _impl_.model_.Mutable(GetArenaForAllocation()); +} +inline std::string* DistortionParameters::release_model() { + // @@protoc_insertion_point(field_release:viam.component.camera.v1.DistortionParameters.model) + return _impl_.model_.Release(); +} +inline void DistortionParameters::set_allocated_model(std::string* model) { + if (model != nullptr) { + + } else { + + } + _impl_.model_.SetAllocated(model, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.model_.IsDefault()) { + _impl_.model_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.DistortionParameters.model) +} + +// repeated double parameters = 2 [json_name = "parameters"]; +inline int DistortionParameters::_internal_parameters_size() const { + return _impl_.parameters_.size(); +} +inline int DistortionParameters::parameters_size() const { + return _internal_parameters_size(); +} +inline void DistortionParameters::clear_parameters() { + _impl_.parameters_.Clear(); +} +inline double DistortionParameters::_internal_parameters(int index) const { + return _impl_.parameters_.Get(index); +} +inline double DistortionParameters::parameters(int index) const { + // @@protoc_insertion_point(field_get:viam.component.camera.v1.DistortionParameters.parameters) + return _internal_parameters(index); +} +inline void DistortionParameters::set_parameters(int index, double value) { + _impl_.parameters_.Set(index, value); + // @@protoc_insertion_point(field_set:viam.component.camera.v1.DistortionParameters.parameters) +} +inline void DistortionParameters::_internal_add_parameters(double value) { + _impl_.parameters_.Add(value); +} +inline void DistortionParameters::add_parameters(double value) { + _internal_add_parameters(value); + // @@protoc_insertion_point(field_add:viam.component.camera.v1.DistortionParameters.parameters) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +DistortionParameters::_internal_parameters() const { + return _impl_.parameters_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +DistortionParameters::parameters() const { + // @@protoc_insertion_point(field_list:viam.component.camera.v1.DistortionParameters.parameters) + return _internal_parameters(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +DistortionParameters::_internal_mutable_parameters() { + return &_impl_.parameters_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +DistortionParameters::mutable_parameters() { + // @@protoc_insertion_point(field_mutable_list:viam.component.camera.v1.DistortionParameters.parameters) + return _internal_mutable_parameters(); +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace camera +} // namespace component +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fcamera_2fv1_2fcamera_2eproto diff --git a/src/gen/component/gantry/v1/gantry.grpc.pb.cc b/src/gen/component/gantry/v1/gantry.grpc.pb.cc new file mode 100644 index 000000000..d124b7909 --- /dev/null +++ b/src/gen/component/gantry/v1/gantry.grpc.pb.cc @@ -0,0 +1,218 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/gantry/v1/gantry.proto + +#include "component/gantry/v1/gantry.pb.h" +#include "component/gantry/v1/gantry.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace component { +namespace gantry { +namespace v1 { + +static const char* GantryService_method_names[] = { + "/viam.component.gantry.v1.GantryService/GetPosition", + "/viam.component.gantry.v1.GantryService/MoveToPosition", + "/viam.component.gantry.v1.GantryService/GetLengths", + "/viam.component.gantry.v1.GantryService/Stop", +}; + +std::unique_ptr< GantryService::Stub> GantryService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< GantryService::Stub> stub(new GantryService::Stub(channel, options)); + return stub; +} + +GantryService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_GetPosition_(GantryService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_MoveToPosition_(GantryService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetLengths_(GantryService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Stop_(GantryService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status GantryService::Stub::GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::viam::component::gantry::v1::GetPositionResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::gantry::v1::GetPositionRequest, ::viam::component::gantry::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetPosition_, context, request, response); +} + +void GantryService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest* request, ::viam::component::gantry::v1::GetPositionResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::gantry::v1::GetPositionRequest, ::viam::component::gantry::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); +} + +void GantryService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest* request, ::viam::component::gantry::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetPositionResponse>* GantryService::Stub::PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::gantry::v1::GetPositionResponse, ::viam::component::gantry::v1::GetPositionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetPosition_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetPositionResponse>* GantryService::Stub::AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetPositionRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status GantryService::Stub::MoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest& request, ::viam::component::gantry::v1::MoveToPositionResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::gantry::v1::MoveToPositionRequest, ::viam::component::gantry::v1::MoveToPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MoveToPosition_, context, request, response); +} + +void GantryService::Stub::async::MoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::gantry::v1::MoveToPositionRequest, ::viam::component::gantry::v1::MoveToPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveToPosition_, context, request, response, std::move(f)); +} + +void GantryService::Stub::async::MoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveToPosition_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::MoveToPositionResponse>* GantryService::Stub::PrepareAsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::gantry::v1::MoveToPositionResponse, ::viam::component::gantry::v1::MoveToPositionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MoveToPosition_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::MoveToPositionResponse>* GantryService::Stub::AsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncMoveToPositionRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status GantryService::Stub::GetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest& request, ::viam::component::gantry::v1::GetLengthsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::gantry::v1::GetLengthsRequest, ::viam::component::gantry::v1::GetLengthsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetLengths_, context, request, response); +} + +void GantryService::Stub::async::GetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest* request, ::viam::component::gantry::v1::GetLengthsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::gantry::v1::GetLengthsRequest, ::viam::component::gantry::v1::GetLengthsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetLengths_, context, request, response, std::move(f)); +} + +void GantryService::Stub::async::GetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest* request, ::viam::component::gantry::v1::GetLengthsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetLengths_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetLengthsResponse>* GantryService::Stub::PrepareAsyncGetLengthsRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::gantry::v1::GetLengthsResponse, ::viam::component::gantry::v1::GetLengthsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetLengths_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetLengthsResponse>* GantryService::Stub::AsyncGetLengthsRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetLengthsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status GantryService::Stub::Stop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest& request, ::viam::component::gantry::v1::StopResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::gantry::v1::StopRequest, ::viam::component::gantry::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Stop_, context, request, response); +} + +void GantryService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest* request, ::viam::component::gantry::v1::StopResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::gantry::v1::StopRequest, ::viam::component::gantry::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); +} + +void GantryService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest* request, ::viam::component::gantry::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::StopResponse>* GantryService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::gantry::v1::StopResponse, ::viam::component::gantry::v1::StopRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Stop_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::StopResponse>* GantryService::Stub::AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncStopRaw(context, request, cq); + result->StartCall(); + return result; +} + +GantryService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + GantryService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::component::gantry::v1::GetPositionRequest, ::viam::component::gantry::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](GantryService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::gantry::v1::GetPositionRequest* req, + ::viam::component::gantry::v1::GetPositionResponse* resp) { + return service->GetPosition(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + GantryService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::component::gantry::v1::MoveToPositionRequest, ::viam::component::gantry::v1::MoveToPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](GantryService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::gantry::v1::MoveToPositionRequest* req, + ::viam::component::gantry::v1::MoveToPositionResponse* resp) { + return service->MoveToPosition(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + GantryService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::component::gantry::v1::GetLengthsRequest, ::viam::component::gantry::v1::GetLengthsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](GantryService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::gantry::v1::GetLengthsRequest* req, + ::viam::component::gantry::v1::GetLengthsResponse* resp) { + return service->GetLengths(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + GantryService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::component::gantry::v1::StopRequest, ::viam::component::gantry::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](GantryService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::gantry::v1::StopRequest* req, + ::viam::component::gantry::v1::StopResponse* resp) { + return service->Stop(ctx, req, resp); + }, this))); +} + +GantryService::Service::~Service() { +} + +::grpc::Status GantryService::Service::GetPosition(::grpc::ServerContext* context, const ::viam::component::gantry::v1::GetPositionRequest* request, ::viam::component::gantry::v1::GetPositionResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status GantryService::Service::MoveToPosition(::grpc::ServerContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest* request, ::viam::component::gantry::v1::MoveToPositionResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status GantryService::Service::GetLengths(::grpc::ServerContext* context, const ::viam::component::gantry::v1::GetLengthsRequest* request, ::viam::component::gantry::v1::GetLengthsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status GantryService::Service::Stop(::grpc::ServerContext* context, const ::viam::component::gantry::v1::StopRequest* request, ::viam::component::gantry::v1::StopResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace component +} // namespace gantry +} // namespace v1 + diff --git a/src/gen/component/gantry/v1/gantry.grpc.pb.h b/src/gen/component/gantry/v1/gantry.grpc.pb.h new file mode 100644 index 000000000..8297d1efa --- /dev/null +++ b/src/gen/component/gantry/v1/gantry.grpc.pb.h @@ -0,0 +1,730 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/gantry/v1/gantry.proto +#ifndef GRPC_component_2fgantry_2fv1_2fgantry_2eproto__INCLUDED +#define GRPC_component_2fgantry_2fv1_2fgantry_2eproto__INCLUDED + +#include "component/gantry/v1/gantry.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace component { +namespace gantry { +namespace v1 { + +// An GantryService services all gantries associated with a robot +class GantryService final { + public: + static constexpr char const* service_full_name() { + return "viam.component.gantry.v1.GantryService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // GetPosition gets the current position of a gantry of the underlying robot. + virtual ::grpc::Status GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::viam::component::gantry::v1::GetPositionResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::GetPositionResponse>> AsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::GetPositionResponse>>(AsyncGetPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::GetPositionResponse>> PrepareAsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::GetPositionResponse>>(PrepareAsyncGetPositionRaw(context, request, cq)); + } + // MoveToPosition moves a gantry of the underlying robot to the requested position. + virtual ::grpc::Status MoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest& request, ::viam::component::gantry::v1::MoveToPositionResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::MoveToPositionResponse>> AsyncMoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::MoveToPositionResponse>>(AsyncMoveToPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::MoveToPositionResponse>> PrepareAsyncMoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::MoveToPositionResponse>>(PrepareAsyncMoveToPositionRaw(context, request, cq)); + } + // GetLengths gets the lengths of a gantry of the underlying robot. + virtual ::grpc::Status GetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest& request, ::viam::component::gantry::v1::GetLengthsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::GetLengthsResponse>> AsyncGetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::GetLengthsResponse>>(AsyncGetLengthsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::GetLengthsResponse>> PrepareAsyncGetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::GetLengthsResponse>>(PrepareAsyncGetLengthsRaw(context, request, cq)); + } + // Stop stops a robot's gantry + virtual ::grpc::Status Stop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest& request, ::viam::component::gantry::v1::StopResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::StopResponse>> AsyncStop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::StopResponse>>(AsyncStopRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::StopResponse>> PrepareAsyncStop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::StopResponse>>(PrepareAsyncStopRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // GetPosition gets the current position of a gantry of the underlying robot. + virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest* request, ::viam::component::gantry::v1::GetPositionResponse* response, std::function) = 0; + virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest* request, ::viam::component::gantry::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // MoveToPosition moves a gantry of the underlying robot to the requested position. + virtual void MoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, std::function) = 0; + virtual void MoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GetLengths gets the lengths of a gantry of the underlying robot. + virtual void GetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest* request, ::viam::component::gantry::v1::GetLengthsResponse* response, std::function) = 0; + virtual void GetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest* request, ::viam::component::gantry::v1::GetLengthsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Stop stops a robot's gantry + virtual void Stop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest* request, ::viam::component::gantry::v1::StopResponse* response, std::function) = 0; + virtual void Stop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest* request, ::viam::component::gantry::v1::StopResponse* 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::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::GetPositionResponse>* AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::GetPositionResponse>* PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::MoveToPositionResponse>* AsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::MoveToPositionResponse>* PrepareAsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::GetLengthsResponse>* AsyncGetLengthsRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::GetLengthsResponse>* PrepareAsyncGetLengthsRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::StopResponse>* AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::StopResponse>* PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest& 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()); + ::grpc::Status GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::viam::component::gantry::v1::GetPositionResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetPositionResponse>> AsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetPositionResponse>>(AsyncGetPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetPositionResponse>> PrepareAsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetPositionResponse>>(PrepareAsyncGetPositionRaw(context, request, cq)); + } + ::grpc::Status MoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest& request, ::viam::component::gantry::v1::MoveToPositionResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::MoveToPositionResponse>> AsyncMoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::MoveToPositionResponse>>(AsyncMoveToPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::MoveToPositionResponse>> PrepareAsyncMoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::MoveToPositionResponse>>(PrepareAsyncMoveToPositionRaw(context, request, cq)); + } + ::grpc::Status GetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest& request, ::viam::component::gantry::v1::GetLengthsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetLengthsResponse>> AsyncGetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetLengthsResponse>>(AsyncGetLengthsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetLengthsResponse>> PrepareAsyncGetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetLengthsResponse>>(PrepareAsyncGetLengthsRaw(context, request, cq)); + } + ::grpc::Status Stop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest& request, ::viam::component::gantry::v1::StopResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::StopResponse>> AsyncStop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::StopResponse>>(AsyncStopRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::StopResponse>> PrepareAsyncStop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::StopResponse>>(PrepareAsyncStopRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest* request, ::viam::component::gantry::v1::GetPositionResponse* response, std::function) override; + void GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest* request, ::viam::component::gantry::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void MoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, std::function) override; + void MoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest* request, ::viam::component::gantry::v1::GetLengthsResponse* response, std::function) override; + void GetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest* request, ::viam::component::gantry::v1::GetLengthsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void Stop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest* request, ::viam::component::gantry::v1::StopResponse* response, std::function) override; + void Stop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest* request, ::viam::component::gantry::v1::StopResponse* 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::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetPositionResponse>* AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetPositionResponse>* PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::MoveToPositionResponse>* AsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::MoveToPositionResponse>* PrepareAsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetLengthsResponse>* AsyncGetLengthsRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetLengthsResponse>* PrepareAsyncGetLengthsRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::StopResponse>* AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::StopResponse>* PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_GetPosition_; + const ::grpc::internal::RpcMethod rpcmethod_MoveToPosition_; + const ::grpc::internal::RpcMethod rpcmethod_GetLengths_; + const ::grpc::internal::RpcMethod rpcmethod_Stop_; + }; + 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(); + // GetPosition gets the current position of a gantry of the underlying robot. + virtual ::grpc::Status GetPosition(::grpc::ServerContext* context, const ::viam::component::gantry::v1::GetPositionRequest* request, ::viam::component::gantry::v1::GetPositionResponse* response); + // MoveToPosition moves a gantry of the underlying robot to the requested position. + virtual ::grpc::Status MoveToPosition(::grpc::ServerContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest* request, ::viam::component::gantry::v1::MoveToPositionResponse* response); + // GetLengths gets the lengths of a gantry of the underlying robot. + virtual ::grpc::Status GetLengths(::grpc::ServerContext* context, const ::viam::component::gantry::v1::GetLengthsRequest* request, ::viam::component::gantry::v1::GetLengthsResponse* response); + // Stop stops a robot's gantry + virtual ::grpc::Status Stop(::grpc::ServerContext* context, const ::viam::component::gantry::v1::StopRequest* request, ::viam::component::gantry::v1::StopResponse* response); + }; + template + class WithAsyncMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetPosition() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::GetPositionRequest* /*request*/, ::viam::component::gantry::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetPosition(::grpc::ServerContext* context, ::viam::component::gantry::v1::GetPositionRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::gantry::v1::GetPositionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_MoveToPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_MoveToPosition() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_MoveToPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveToPosition(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::MoveToPositionRequest* /*request*/, ::viam::component::gantry::v1::MoveToPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestMoveToPosition(::grpc::ServerContext* context, ::viam::component::gantry::v1::MoveToPositionRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::gantry::v1::MoveToPositionResponse>* 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 WithAsyncMethod_GetLengths : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetLengths() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_GetLengths() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLengths(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::GetLengthsRequest* /*request*/, ::viam::component::gantry::v1::GetLengthsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetLengths(::grpc::ServerContext* context, ::viam::component::gantry::v1::GetLengthsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::gantry::v1::GetLengthsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Stop() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::StopRequest* /*request*/, ::viam::component::gantry::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestStop(::grpc::ServerContext* context, ::viam::component::gantry::v1::StopRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::gantry::v1::StopResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetPosition > > > AsyncService; + template + class WithCallbackMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetPosition() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::GetPositionRequest, ::viam::component::gantry::v1::GetPositionResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::gantry::v1::GetPositionRequest* request, ::viam::component::gantry::v1::GetPositionResponse* response) { return this->GetPosition(context, request, response); }));} + void SetMessageAllocatorFor_GetPosition( + ::grpc::MessageAllocator< ::viam::component::gantry::v1::GetPositionRequest, ::viam::component::gantry::v1::GetPositionResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::GetPositionRequest, ::viam::component::gantry::v1::GetPositionResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::GetPositionRequest* /*request*/, ::viam::component::gantry::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetPosition( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::GetPositionRequest* /*request*/, ::viam::component::gantry::v1::GetPositionResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_MoveToPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_MoveToPosition() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::MoveToPositionRequest, ::viam::component::gantry::v1::MoveToPositionResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest* request, ::viam::component::gantry::v1::MoveToPositionResponse* response) { return this->MoveToPosition(context, request, response); }));} + void SetMessageAllocatorFor_MoveToPosition( + ::grpc::MessageAllocator< ::viam::component::gantry::v1::MoveToPositionRequest, ::viam::component::gantry::v1::MoveToPositionResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::MoveToPositionRequest, ::viam::component::gantry::v1::MoveToPositionResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_MoveToPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveToPosition(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::MoveToPositionRequest* /*request*/, ::viam::component::gantry::v1::MoveToPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* MoveToPosition( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::MoveToPositionRequest* /*request*/, ::viam::component::gantry::v1::MoveToPositionResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetLengths : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetLengths() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::GetLengthsRequest, ::viam::component::gantry::v1::GetLengthsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::gantry::v1::GetLengthsRequest* request, ::viam::component::gantry::v1::GetLengthsResponse* response) { return this->GetLengths(context, request, response); }));} + void SetMessageAllocatorFor_GetLengths( + ::grpc::MessageAllocator< ::viam::component::gantry::v1::GetLengthsRequest, ::viam::component::gantry::v1::GetLengthsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::GetLengthsRequest, ::viam::component::gantry::v1::GetLengthsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetLengths() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLengths(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::GetLengthsRequest* /*request*/, ::viam::component::gantry::v1::GetLengthsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetLengths( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::GetLengthsRequest* /*request*/, ::viam::component::gantry::v1::GetLengthsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Stop() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::StopRequest, ::viam::component::gantry::v1::StopResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::gantry::v1::StopRequest* request, ::viam::component::gantry::v1::StopResponse* response) { return this->Stop(context, request, response); }));} + void SetMessageAllocatorFor_Stop( + ::grpc::MessageAllocator< ::viam::component::gantry::v1::StopRequest, ::viam::component::gantry::v1::StopResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::StopRequest, ::viam::component::gantry::v1::StopResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::StopRequest* /*request*/, ::viam::component::gantry::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Stop( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::StopRequest* /*request*/, ::viam::component::gantry::v1::StopResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetPosition > > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetPosition() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::GetPositionRequest* /*request*/, ::viam::component::gantry::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_MoveToPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_MoveToPosition() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_MoveToPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveToPosition(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::MoveToPositionRequest* /*request*/, ::viam::component::gantry::v1::MoveToPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetLengths : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetLengths() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_GetLengths() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLengths(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::GetLengthsRequest* /*request*/, ::viam::component::gantry::v1::GetLengthsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Stop() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::StopRequest* /*request*/, ::viam::component::gantry::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetPosition() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::GetPositionRequest* /*request*/, ::viam::component::gantry::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetPosition(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_MoveToPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_MoveToPosition() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_MoveToPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveToPosition(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::MoveToPositionRequest* /*request*/, ::viam::component::gantry::v1::MoveToPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestMoveToPosition(::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 WithRawMethod_GetLengths : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetLengths() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_GetLengths() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLengths(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::GetLengthsRequest* /*request*/, ::viam::component::gantry::v1::GetLengthsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetLengths(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Stop() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::StopRequest* /*request*/, ::viam::component::gantry::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestStop(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetPosition() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPosition(context, request, response); })); + } + ~WithRawCallbackMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::GetPositionRequest* /*request*/, ::viam::component::gantry::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetPosition( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_MoveToPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_MoveToPosition() { + ::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->MoveToPosition(context, request, response); })); + } + ~WithRawCallbackMethod_MoveToPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveToPosition(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::MoveToPositionRequest* /*request*/, ::viam::component::gantry::v1::MoveToPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* MoveToPosition( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetLengths : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetLengths() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetLengths(context, request, response); })); + } + ~WithRawCallbackMethod_GetLengths() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLengths(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::GetLengthsRequest* /*request*/, ::viam::component::gantry::v1::GetLengthsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetLengths( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Stop() { + ::grpc::Service::MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Stop(context, request, response); })); + } + ~WithRawCallbackMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::StopRequest* /*request*/, ::viam::component::gantry::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Stop( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetPosition() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::gantry::v1::GetPositionRequest, ::viam::component::gantry::v1::GetPositionResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::gantry::v1::GetPositionRequest, ::viam::component::gantry::v1::GetPositionResponse>* streamer) { + return this->StreamedGetPosition(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::GetPositionRequest* /*request*/, ::viam::component::gantry::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetPosition(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::gantry::v1::GetPositionRequest,::viam::component::gantry::v1::GetPositionResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_MoveToPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_MoveToPosition() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::gantry::v1::MoveToPositionRequest, ::viam::component::gantry::v1::MoveToPositionResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::gantry::v1::MoveToPositionRequest, ::viam::component::gantry::v1::MoveToPositionResponse>* streamer) { + return this->StreamedMoveToPosition(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_MoveToPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status MoveToPosition(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::MoveToPositionRequest* /*request*/, ::viam::component::gantry::v1::MoveToPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedMoveToPosition(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::gantry::v1::MoveToPositionRequest,::viam::component::gantry::v1::MoveToPositionResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetLengths : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetLengths() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::gantry::v1::GetLengthsRequest, ::viam::component::gantry::v1::GetLengthsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::gantry::v1::GetLengthsRequest, ::viam::component::gantry::v1::GetLengthsResponse>* streamer) { + return this->StreamedGetLengths(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetLengths() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetLengths(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::GetLengthsRequest* /*request*/, ::viam::component::gantry::v1::GetLengthsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetLengths(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::gantry::v1::GetLengthsRequest,::viam::component::gantry::v1::GetLengthsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Stop() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::gantry::v1::StopRequest, ::viam::component::gantry::v1::StopResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::gantry::v1::StopRequest, ::viam::component::gantry::v1::StopResponse>* streamer) { + return this->StreamedStop(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::gantry::v1::StopRequest* /*request*/, ::viam::component::gantry::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedStop(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::gantry::v1::StopRequest,::viam::component::gantry::v1::StopResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetPosition > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_GetPosition > > > StreamedService; +}; + +} // namespace v1 +} // namespace gantry +} // namespace component +} // namespace viam + + +#endif // GRPC_component_2fgantry_2fv1_2fgantry_2eproto__INCLUDED diff --git a/src/gen/component/gantry/v1/gantry.pb.cc b/src/gen/component/gantry/v1/gantry.pb.cc new file mode 100644 index 000000000..4e7c3d71b --- /dev/null +++ b/src/gen/component/gantry/v1/gantry.pb.cc @@ -0,0 +1,2160 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/gantry/v1/gantry.proto + +#include "component/gantry/v1/gantry.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 component { +namespace gantry { +namespace v1 { +PROTOBUF_CONSTEXPR GetPositionRequest::GetPositionRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPositionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPositionRequestDefaultTypeInternal() {} + union { + GetPositionRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPositionResponse::GetPositionResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.positions_mm_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPositionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPositionResponseDefaultTypeInternal() {} + union { + GetPositionResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR MoveToPositionRequest::MoveToPositionRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.positions_mm_)*/{} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.world_state_)*/nullptr + , /*decltype(_impl_.extra_)*/nullptr} {} +struct MoveToPositionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveToPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveToPositionRequestDefaultTypeInternal() {} + union { + MoveToPositionRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveToPositionRequestDefaultTypeInternal _MoveToPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR MoveToPositionResponse::MoveToPositionResponse( + ::_pbi::ConstantInitialized) {} +struct MoveToPositionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveToPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveToPositionResponseDefaultTypeInternal() {} + union { + MoveToPositionResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveToPositionResponseDefaultTypeInternal _MoveToPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR GetLengthsRequest::GetLengthsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetLengthsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetLengthsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetLengthsRequestDefaultTypeInternal() {} + union { + GetLengthsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLengthsRequestDefaultTypeInternal _GetLengthsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetLengthsResponse::GetLengthsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.lengths_mm_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetLengthsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetLengthsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetLengthsResponseDefaultTypeInternal() {} + union { + GetLengthsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLengthsResponseDefaultTypeInternal _GetLengthsResponse_default_instance_; +PROTOBUF_CONSTEXPR StopRequest::StopRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StopRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopRequestDefaultTypeInternal() {} + union { + StopRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopRequestDefaultTypeInternal _StopRequest_default_instance_; +PROTOBUF_CONSTEXPR StopResponse::StopResponse( + ::_pbi::ConstantInitialized) {} +struct StopResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopResponseDefaultTypeInternal() {} + union { + StopResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopResponseDefaultTypeInternal _StopResponse_default_instance_; +PROTOBUF_CONSTEXPR Status::Status( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.positions_mm_)*/{} + , /*decltype(_impl_.lengths_mm_)*/{} + , /*decltype(_impl_.is_moving_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StatusDefaultTypeInternal() {} + union { + Status _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; +} // namespace v1 +} // namespace gantry +} // namespace component +} // namespace viam +static ::_pb::Metadata file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[9]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fgantry_2fv1_2fgantry_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fgantry_2fv1_2fgantry_2eproto = nullptr; + +const uint32_t TableStruct_component_2fgantry_2fv1_2fgantry_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetPositionRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetPositionRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetPositionResponse, _impl_.positions_mm_), + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::MoveToPositionRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::MoveToPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::MoveToPositionRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::MoveToPositionRequest, _impl_.positions_mm_), + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::MoveToPositionRequest, _impl_.world_state_), + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::MoveToPositionRequest, _impl_.extra_), + ~0u, + ~0u, + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::MoveToPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetLengthsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetLengthsRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetLengthsRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetLengthsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetLengthsResponse, _impl_.lengths_mm_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::StopRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::StopRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::StopRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::StopResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::Status, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::Status, _impl_.positions_mm_), + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::Status, _impl_.lengths_mm_), + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::Status, _impl_.is_moving_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::gantry::v1::GetPositionRequest)}, + { 8, -1, -1, sizeof(::viam::component::gantry::v1::GetPositionResponse)}, + { 15, 25, -1, sizeof(::viam::component::gantry::v1::MoveToPositionRequest)}, + { 29, -1, -1, sizeof(::viam::component::gantry::v1::MoveToPositionResponse)}, + { 35, -1, -1, sizeof(::viam::component::gantry::v1::GetLengthsRequest)}, + { 43, -1, -1, sizeof(::viam::component::gantry::v1::GetLengthsResponse)}, + { 50, -1, -1, sizeof(::viam::component::gantry::v1::StopRequest)}, + { 58, -1, -1, sizeof(::viam::component::gantry::v1::StopResponse)}, + { 64, -1, -1, sizeof(::viam::component::gantry::v1::Status)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::component::gantry::v1::_GetPositionRequest_default_instance_._instance, + &::viam::component::gantry::v1::_GetPositionResponse_default_instance_._instance, + &::viam::component::gantry::v1::_MoveToPositionRequest_default_instance_._instance, + &::viam::component::gantry::v1::_MoveToPositionResponse_default_instance_._instance, + &::viam::component::gantry::v1::_GetLengthsRequest_default_instance_._instance, + &::viam::component::gantry::v1::_GetLengthsResponse_default_instance_._instance, + &::viam::component::gantry::v1::_StopRequest_default_instance_._instance, + &::viam::component::gantry::v1::_StopResponse_default_instance_._instance, + &::viam::component::gantry::v1::_Status_default_instance_._instance, +}; + +const char descriptor_table_protodef_component_2fgantry_2fv1_2fgantry_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n component/gantry/v1/gantry.proto\022\030viam" + ".component.gantry.v1\032\026common/v1/common.p" + "roto\032\034google/api/annotations.proto\032\034goog" + "le/protobuf/struct.proto\"W\n\022GetPositionR" + "equest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(" + "\0132\027.google.protobuf.StructR\005extra\"8\n\023Get" + "PositionResponse\022!\n\014positions_mm\030\001 \003(\001R\013" + "positionsMm\"\317\001\n\025MoveToPositionRequest\022\022\n" + "\004name\030\001 \001(\tR\004name\022!\n\014positions_mm\030\002 \003(\001R" + "\013positionsMm\022@\n\013world_state\030\003 \001(\0132\032.viam" + ".common.v1.WorldStateH\000R\nworldState\210\001\001\022-" + "\n\005extra\030c \001(\0132\027.google.protobuf.StructR\005" + "extraB\016\n\014_world_state\"\030\n\026MoveToPositionR" + "esponse\"V\n\021GetLengthsRequest\022\022\n\004name\030\001 \001" + "(\tR\004name\022-\n\005extra\030c \001(\0132\027.google.protobu" + "f.StructR\005extra\"3\n\022GetLengthsResponse\022\035\n" + "\nlengths_mm\030\001 \003(\001R\tlengthsMm\"P\n\013StopRequ" + "est\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027" + ".google.protobuf.StructR\005extra\"\016\n\014StopRe" + "sponse\"g\n\006Status\022!\n\014positions_mm\030\001 \003(\001R\013" + "positionsMm\022\035\n\nlengths_mm\030\002 \003(\001R\tlengths" + "Mm\022\033\n\tis_moving\030\003 \001(\010R\010isMoving2\213\005\n\rGant" + "ryService\022\241\001\n\013GetPosition\022,.viam.compone" + "nt.gantry.v1.GetPositionRequest\032-.viam.c" + "omponent.gantry.v1.GetPositionResponse\"5" + "\202\323\344\223\002/\022-/viam/api/v1/component/gantry/{n" + "ame}/position\022\252\001\n\016MoveToPosition\022/.viam." + "component.gantry.v1.MoveToPositionReques" + "t\0320.viam.component.gantry.v1.MoveToPosit" + "ionResponse\"5\202\323\344\223\002/\032-/viam/api/v1/compon" + "ent/gantry/{name}/position\022\235\001\n\nGetLength" + "s\022+.viam.component.gantry.v1.GetLengthsR" + "equest\032,.viam.component.gantry.v1.GetLen" + "gthsResponse\"4\202\323\344\223\002.\022,/viam/api/v1/compo" + "nent/gantry/{name}/lengths\022\210\001\n\004Stop\022%.vi" + "am.component.gantry.v1.StopRequest\032&.via" + "m.component.gantry.v1.StopResponse\"1\202\323\344\223" + "\002+\")/viam/api/v1/component/gantry/{name}" + "/stopBC\n\034com.viam.component.gantry.v1Z#g" + "o.viam.com/api/component/gantry/v1b\006prot" + "o3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_deps[3] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, +}; +static ::_pbi::once_flag descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto = { + false, false, 1602, descriptor_table_protodef_component_2fgantry_2fv1_2fgantry_2eproto, + "component/gantry/v1/gantry.proto", + &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_deps, 3, 9, + schemas, file_default_instances, TableStruct_component_2fgantry_2fv1_2fgantry_2eproto::offsets, + file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto, file_level_enum_descriptors_component_2fgantry_2fv1_2fgantry_2eproto, + file_level_service_descriptors_component_2fgantry_2fv1_2fgantry_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter() { + return &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fgantry_2fv1_2fgantry_2eproto(&descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto); +namespace viam { +namespace component { +namespace gantry { +namespace v1 { + +// =================================================================== + +class GetPositionRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPositionRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPositionRequest::_Internal::extra(const GetPositionRequest* msg) { + return *msg->_impl_.extra_; +} +void GetPositionRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +GetPositionRequest::GetPositionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.gantry.v1.GetPositionRequest) +} +GetPositionRequest::GetPositionRequest(const GetPositionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPositionRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.gantry.v1.GetPositionRequest) +} + +inline void GetPositionRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetPositionRequest::~GetPositionRequest() { + // @@protoc_insertion_point(destructor:viam.component.gantry.v1.GetPositionRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPositionRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void GetPositionRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPositionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.gantry.v1.GetPositionRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.gantry.v1.GetPositionRequest.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* GetPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.gantry.v1.GetPositionRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.gantry.v1.GetPositionRequest.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.component.gantry.v1.GetPositionRequest) + return target; +} + +size_t GetPositionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.gantry.v1.GetPositionRequest) + 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( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPositionRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionRequest::GetClassData() const { return &_class_data_; } + + +void GetPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.GetPositionRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPositionRequest::CopyFrom(const GetPositionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.gantry.v1.GetPositionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPositionRequest::IsInitialized() const { + return true; +} + +void GetPositionRequest::InternalSwap(GetPositionRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.extra_, other->_impl_.extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, + file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[0]); +} + +// =================================================================== + +class GetPositionResponse::_Internal { + public: +}; + +GetPositionResponse::GetPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.gantry.v1.GetPositionResponse) +} +GetPositionResponse::GetPositionResponse(const GetPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPositionResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.positions_mm_){from._impl_.positions_mm_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.gantry.v1.GetPositionResponse) +} + +inline void GetPositionResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.positions_mm_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetPositionResponse::~GetPositionResponse() { + // @@protoc_insertion_point(destructor:viam.component.gantry.v1.GetPositionResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPositionResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.positions_mm_.~RepeatedField(); +} + +void GetPositionResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPositionResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.gantry.v1.GetPositionResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.positions_mm_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionResponse::_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) { + // repeated double positions_mm = 1 [json_name = "positionsMm"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_positions_mm(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 9) { + _internal_add_positions_mm(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } 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* GetPositionResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.gantry.v1.GetPositionResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated double positions_mm = 1 [json_name = "positionsMm"]; + if (this->_internal_positions_mm_size() > 0) { + target = stream->WriteFixedPacked(1, _internal_positions_mm(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.gantry.v1.GetPositionResponse) + return target; +} + +size_t GetPositionResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.gantry.v1.GetPositionResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated double positions_mm = 1 [json_name = "positionsMm"]; + { + unsigned int count = static_cast(this->_internal_positions_mm_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPositionResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionResponse::GetClassData() const { return &_class_data_; } + + +void GetPositionResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.GetPositionResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.positions_mm_.MergeFrom(from._impl_.positions_mm_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPositionResponse::CopyFrom(const GetPositionResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.gantry.v1.GetPositionResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPositionResponse::IsInitialized() const { + return true; +} + +void GetPositionResponse::InternalSwap(GetPositionResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.positions_mm_.InternalSwap(&other->_impl_.positions_mm_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, + file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[1]); +} + +// =================================================================== + +class MoveToPositionRequest::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static const ::viam::common::v1::WorldState& world_state(const MoveToPositionRequest* msg); + static void set_has_world_state(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const MoveToPositionRequest* msg); +}; + +const ::viam::common::v1::WorldState& +MoveToPositionRequest::_Internal::world_state(const MoveToPositionRequest* msg) { + return *msg->_impl_.world_state_; +} +const ::PROTOBUF_NAMESPACE_ID::Struct& +MoveToPositionRequest::_Internal::extra(const MoveToPositionRequest* msg) { + return *msg->_impl_.extra_; +} +void MoveToPositionRequest::clear_world_state() { + if (_impl_.world_state_ != nullptr) _impl_.world_state_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +void MoveToPositionRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +MoveToPositionRequest::MoveToPositionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.gantry.v1.MoveToPositionRequest) +} +MoveToPositionRequest::MoveToPositionRequest(const MoveToPositionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + MoveToPositionRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.positions_mm_){from._impl_.positions_mm_} + , decltype(_impl_.name_){} + , decltype(_impl_.world_state_){nullptr} + , decltype(_impl_.extra_){nullptr}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_world_state()) { + _this->_impl_.world_state_ = new ::viam::common::v1::WorldState(*from._impl_.world_state_); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.gantry.v1.MoveToPositionRequest) +} + +inline void MoveToPositionRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.positions_mm_){arena} + , decltype(_impl_.name_){} + , decltype(_impl_.world_state_){nullptr} + , decltype(_impl_.extra_){nullptr} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +MoveToPositionRequest::~MoveToPositionRequest() { + // @@protoc_insertion_point(destructor:viam.component.gantry.v1.MoveToPositionRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void MoveToPositionRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.positions_mm_.~RepeatedField(); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.world_state_; + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void MoveToPositionRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void MoveToPositionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.gantry.v1.MoveToPositionRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.positions_mm_.Clear(); + _impl_.name_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(_impl_.world_state_ != nullptr); + _impl_.world_state_->Clear(); + } + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveToPositionRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.gantry.v1.MoveToPositionRequest.name")); + } else + goto handle_unusual; + continue; + // repeated double positions_mm = 2 [json_name = "positionsMm"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_positions_mm(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 17) { + _internal_add_positions_mm(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // optional .viam.common.v1.WorldState world_state = 3 [json_name = "worldState"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_world_state(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + case 99: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_extra(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + _impl_._has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* MoveToPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.gantry.v1.MoveToPositionRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.gantry.v1.MoveToPositionRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // repeated double positions_mm = 2 [json_name = "positionsMm"]; + if (this->_internal_positions_mm_size() > 0) { + target = stream->WriteFixedPacked(2, _internal_positions_mm(), target); + } + + // optional .viam.common.v1.WorldState world_state = 3 [json_name = "worldState"]; + if (_internal_has_world_state()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::world_state(this), + _Internal::world_state(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(99, _Internal::extra(this), + _Internal::extra(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.gantry.v1.MoveToPositionRequest) + return target; +} + +size_t MoveToPositionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.gantry.v1.MoveToPositionRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated double positions_mm = 2 [json_name = "positionsMm"]; + { + unsigned int count = static_cast(this->_internal_positions_mm_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; + } + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // optional .viam.common.v1.WorldState world_state = 3 [json_name = "worldState"]; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.world_state_); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveToPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MoveToPositionRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveToPositionRequest::GetClassData() const { return &_class_data_; } + + +void MoveToPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.MoveToPositionRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.positions_mm_.MergeFrom(from._impl_.positions_mm_); + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_world_state()) { + _this->_internal_mutable_world_state()->::viam::common::v1::WorldState::MergeFrom( + from._internal_world_state()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MoveToPositionRequest::CopyFrom(const MoveToPositionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.gantry.v1.MoveToPositionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoveToPositionRequest::IsInitialized() const { + return true; +} + +void MoveToPositionRequest::InternalSwap(MoveToPositionRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.positions_mm_.InternalSwap(&other->_impl_.positions_mm_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_.extra_) + + sizeof(MoveToPositionRequest::_impl_.extra_) + - PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_.world_state_)>( + reinterpret_cast(&_impl_.world_state_), + reinterpret_cast(&other->_impl_.world_state_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MoveToPositionRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, + file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[2]); +} + +// =================================================================== + +class MoveToPositionResponse::_Internal { + public: +}; + +MoveToPositionResponse::MoveToPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.gantry.v1.MoveToPositionResponse) +} +MoveToPositionResponse::MoveToPositionResponse(const MoveToPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + MoveToPositionResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.gantry.v1.MoveToPositionResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveToPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveToPositionResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata MoveToPositionResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, + file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[3]); +} + +// =================================================================== + +class GetLengthsRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetLengthsRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetLengthsRequest::_Internal::extra(const GetLengthsRequest* msg) { + return *msg->_impl_.extra_; +} +void GetLengthsRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +GetLengthsRequest::GetLengthsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.gantry.v1.GetLengthsRequest) +} +GetLengthsRequest::GetLengthsRequest(const GetLengthsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetLengthsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.gantry.v1.GetLengthsRequest) +} + +inline void GetLengthsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetLengthsRequest::~GetLengthsRequest() { + // @@protoc_insertion_point(destructor:viam.component.gantry.v1.GetLengthsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetLengthsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void GetLengthsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetLengthsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.gantry.v1.GetLengthsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetLengthsRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.gantry.v1.GetLengthsRequest.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* GetLengthsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.gantry.v1.GetLengthsRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.gantry.v1.GetLengthsRequest.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.component.gantry.v1.GetLengthsRequest) + return target; +} + +size_t GetLengthsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.gantry.v1.GetLengthsRequest) + 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( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetLengthsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetLengthsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetLengthsRequest::GetClassData() const { return &_class_data_; } + + +void GetLengthsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.GetLengthsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetLengthsRequest::CopyFrom(const GetLengthsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.gantry.v1.GetLengthsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetLengthsRequest::IsInitialized() const { + return true; +} + +void GetLengthsRequest::InternalSwap(GetLengthsRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.extra_, other->_impl_.extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetLengthsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, + file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[4]); +} + +// =================================================================== + +class GetLengthsResponse::_Internal { + public: +}; + +GetLengthsResponse::GetLengthsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.gantry.v1.GetLengthsResponse) +} +GetLengthsResponse::GetLengthsResponse(const GetLengthsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetLengthsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.lengths_mm_){from._impl_.lengths_mm_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.gantry.v1.GetLengthsResponse) +} + +inline void GetLengthsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.lengths_mm_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetLengthsResponse::~GetLengthsResponse() { + // @@protoc_insertion_point(destructor:viam.component.gantry.v1.GetLengthsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetLengthsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.lengths_mm_.~RepeatedField(); +} + +void GetLengthsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetLengthsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.gantry.v1.GetLengthsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.lengths_mm_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetLengthsResponse::_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) { + // repeated double lengths_mm = 1 [json_name = "lengthsMm"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_lengths_mm(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 9) { + _internal_add_lengths_mm(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } 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* GetLengthsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.gantry.v1.GetLengthsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated double lengths_mm = 1 [json_name = "lengthsMm"]; + if (this->_internal_lengths_mm_size() > 0) { + target = stream->WriteFixedPacked(1, _internal_lengths_mm(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.gantry.v1.GetLengthsResponse) + return target; +} + +size_t GetLengthsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.gantry.v1.GetLengthsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated double lengths_mm = 1 [json_name = "lengthsMm"]; + { + unsigned int count = static_cast(this->_internal_lengths_mm_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetLengthsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetLengthsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetLengthsResponse::GetClassData() const { return &_class_data_; } + + +void GetLengthsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.GetLengthsResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.lengths_mm_.MergeFrom(from._impl_.lengths_mm_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetLengthsResponse::CopyFrom(const GetLengthsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.gantry.v1.GetLengthsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetLengthsResponse::IsInitialized() const { + return true; +} + +void GetLengthsResponse::InternalSwap(GetLengthsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.lengths_mm_.InternalSwap(&other->_impl_.lengths_mm_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetLengthsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, + file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[5]); +} + +// =================================================================== + +class StopRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const StopRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +StopRequest::_Internal::extra(const StopRequest* msg) { + return *msg->_impl_.extra_; +} +void StopRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +StopRequest::StopRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.gantry.v1.StopRequest) +} +StopRequest::StopRequest(const StopRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + StopRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.gantry.v1.StopRequest) +} + +inline void StopRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +StopRequest::~StopRequest() { + // @@protoc_insertion_point(destructor:viam.component.gantry.v1.StopRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void StopRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void StopRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void StopRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.gantry.v1.StopRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StopRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.gantry.v1.StopRequest.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* StopRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.gantry.v1.StopRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.gantry.v1.StopRequest.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.component.gantry.v1.StopRequest) + return target; +} + +size_t StopRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.gantry.v1.StopRequest) + 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( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + StopRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopRequest::GetClassData() const { return &_class_data_; } + + +void StopRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.StopRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void StopRequest::CopyFrom(const StopRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.gantry.v1.StopRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StopRequest::IsInitialized() const { + return true; +} + +void StopRequest::InternalSwap(StopRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.extra_, other->_impl_.extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StopRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, + file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[6]); +} + +// =================================================================== + +class StopResponse::_Internal { + public: +}; + +StopResponse::StopResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.gantry.v1.StopResponse) +} +StopResponse::StopResponse(const StopResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + StopResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.gantry.v1.StopResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata StopResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, + file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[7]); +} + +// =================================================================== + +class Status::_Internal { + public: +}; + +Status::Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.gantry.v1.Status) +} +Status::Status(const Status& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Status* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.positions_mm_){from._impl_.positions_mm_} + , decltype(_impl_.lengths_mm_){from._impl_.lengths_mm_} + , decltype(_impl_.is_moving_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.is_moving_ = from._impl_.is_moving_; + // @@protoc_insertion_point(copy_constructor:viam.component.gantry.v1.Status) +} + +inline void Status::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.positions_mm_){arena} + , decltype(_impl_.lengths_mm_){arena} + , decltype(_impl_.is_moving_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Status::~Status() { + // @@protoc_insertion_point(destructor:viam.component.gantry.v1.Status) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Status::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.positions_mm_.~RepeatedField(); + _impl_.lengths_mm_.~RepeatedField(); +} + +void Status::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Status::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.gantry.v1.Status) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.positions_mm_.Clear(); + _impl_.lengths_mm_.Clear(); + _impl_.is_moving_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Status::_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) { + // repeated double positions_mm = 1 [json_name = "positionsMm"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_positions_mm(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 9) { + _internal_add_positions_mm(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // repeated double lengths_mm = 2 [json_name = "lengthsMm"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_lengths_mm(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 17) { + _internal_add_lengths_mm(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // bool is_moving = 3 [json_name = "isMoving"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* Status::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.gantry.v1.Status) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated double positions_mm = 1 [json_name = "positionsMm"]; + if (this->_internal_positions_mm_size() > 0) { + target = stream->WriteFixedPacked(1, _internal_positions_mm(), target); + } + + // repeated double lengths_mm = 2 [json_name = "lengthsMm"]; + if (this->_internal_lengths_mm_size() > 0) { + target = stream->WriteFixedPacked(2, _internal_lengths_mm(), target); + } + + // bool is_moving = 3 [json_name = "isMoving"]; + if (this->_internal_is_moving() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_is_moving(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.gantry.v1.Status) + return target; +} + +size_t Status::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.gantry.v1.Status) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated double positions_mm = 1 [json_name = "positionsMm"]; + { + unsigned int count = static_cast(this->_internal_positions_mm_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; + } + + // repeated double lengths_mm = 2 [json_name = "lengthsMm"]; + { + unsigned int count = static_cast(this->_internal_lengths_mm_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; + } + + // bool is_moving = 3 [json_name = "isMoving"]; + if (this->_internal_is_moving() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Status::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Status::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Status::GetClassData() const { return &_class_data_; } + + +void Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.Status) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.positions_mm_.MergeFrom(from._impl_.positions_mm_); + _this->_impl_.lengths_mm_.MergeFrom(from._impl_.lengths_mm_); + if (from._internal_is_moving() != 0) { + _this->_internal_set_is_moving(from._internal_is_moving()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Status::CopyFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.gantry.v1.Status) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Status::IsInitialized() const { + return true; +} + +void Status::InternalSwap(Status* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.positions_mm_.InternalSwap(&other->_impl_.positions_mm_); + _impl_.lengths_mm_.InternalSwap(&other->_impl_.lengths_mm_); + swap(_impl_.is_moving_, other->_impl_.is_moving_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, + file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[8]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace gantry +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::GetPositionRequest* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::GetPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::GetPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::GetPositionResponse* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::GetPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::GetPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::MoveToPositionRequest* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::MoveToPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::MoveToPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::MoveToPositionResponse* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::MoveToPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::MoveToPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::GetLengthsRequest* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::GetLengthsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::GetLengthsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::GetLengthsResponse* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::GetLengthsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::GetLengthsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::StopRequest* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::StopRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::StopRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::StopResponse* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::StopResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::StopResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::Status* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::Status >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::Status >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/component/gantry/v1/gantry.pb.h b/src/gen/component/gantry/v1/gantry.pb.h new file mode 100644 index 000000000..6ac54d225 --- /dev/null +++ b/src/gen/component/gantry/v1/gantry.pb.h @@ -0,0 +1,2548 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/gantry/v1/gantry.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fgantry_2fv1_2fgantry_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fgantry_2fv1_2fgantry_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "common/v1/common.pb.h" +#include "google/api/annotations.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_component_2fgantry_2fv1_2fgantry_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_component_2fgantry_2fv1_2fgantry_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto; +namespace viam { +namespace component { +namespace gantry { +namespace v1 { +class GetLengthsRequest; +struct GetLengthsRequestDefaultTypeInternal; +extern GetLengthsRequestDefaultTypeInternal _GetLengthsRequest_default_instance_; +class GetLengthsResponse; +struct GetLengthsResponseDefaultTypeInternal; +extern GetLengthsResponseDefaultTypeInternal _GetLengthsResponse_default_instance_; +class GetPositionRequest; +struct GetPositionRequestDefaultTypeInternal; +extern GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; +class GetPositionResponse; +struct GetPositionResponseDefaultTypeInternal; +extern GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; +class MoveToPositionRequest; +struct MoveToPositionRequestDefaultTypeInternal; +extern MoveToPositionRequestDefaultTypeInternal _MoveToPositionRequest_default_instance_; +class MoveToPositionResponse; +struct MoveToPositionResponseDefaultTypeInternal; +extern MoveToPositionResponseDefaultTypeInternal _MoveToPositionResponse_default_instance_; +class Status; +struct StatusDefaultTypeInternal; +extern StatusDefaultTypeInternal _Status_default_instance_; +class StopRequest; +struct StopRequestDefaultTypeInternal; +extern StopRequestDefaultTypeInternal _StopRequest_default_instance_; +class StopResponse; +struct StopResponseDefaultTypeInternal; +extern StopResponseDefaultTypeInternal _StopResponse_default_instance_; +} // namespace v1 +} // namespace gantry +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::gantry::v1::GetLengthsRequest* Arena::CreateMaybeMessage<::viam::component::gantry::v1::GetLengthsRequest>(Arena*); +template<> ::viam::component::gantry::v1::GetLengthsResponse* Arena::CreateMaybeMessage<::viam::component::gantry::v1::GetLengthsResponse>(Arena*); +template<> ::viam::component::gantry::v1::GetPositionRequest* Arena::CreateMaybeMessage<::viam::component::gantry::v1::GetPositionRequest>(Arena*); +template<> ::viam::component::gantry::v1::GetPositionResponse* Arena::CreateMaybeMessage<::viam::component::gantry::v1::GetPositionResponse>(Arena*); +template<> ::viam::component::gantry::v1::MoveToPositionRequest* Arena::CreateMaybeMessage<::viam::component::gantry::v1::MoveToPositionRequest>(Arena*); +template<> ::viam::component::gantry::v1::MoveToPositionResponse* Arena::CreateMaybeMessage<::viam::component::gantry::v1::MoveToPositionResponse>(Arena*); +template<> ::viam::component::gantry::v1::Status* Arena::CreateMaybeMessage<::viam::component::gantry::v1::Status>(Arena*); +template<> ::viam::component::gantry::v1::StopRequest* Arena::CreateMaybeMessage<::viam::component::gantry::v1::StopRequest>(Arena*); +template<> ::viam::component::gantry::v1::StopResponse* Arena::CreateMaybeMessage<::viam::component::gantry::v1::StopResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace component { +namespace gantry { +namespace v1 { + +// =================================================================== + +class GetPositionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.GetPositionRequest) */ { + public: + inline GetPositionRequest() : GetPositionRequest(nullptr) {} + ~GetPositionRequest() override; + explicit PROTOBUF_CONSTEXPR GetPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPositionRequest(const GetPositionRequest& from); + GetPositionRequest(GetPositionRequest&& from) noexcept + : GetPositionRequest() { + *this = ::std::move(from); + } + + inline GetPositionRequest& operator=(const GetPositionRequest& from) { + CopyFrom(from); + return *this; + } + inline GetPositionRequest& operator=(GetPositionRequest&& 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 GetPositionRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetPositionRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPositionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(GetPositionRequest& a, GetPositionRequest& b) { + a.Swap(&b); + } + inline void Swap(GetPositionRequest* 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(GetPositionRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPositionRequest& from) { + GetPositionRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPositionRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gantry.v1.GetPositionRequest"; + } + protected: + explicit GetPositionRequest(::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.component.gantry.v1.GetPositionRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fgantry_2fv1_2fgantry_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPositionResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.GetPositionResponse) */ { + public: + inline GetPositionResponse() : GetPositionResponse(nullptr) {} + ~GetPositionResponse() override; + explicit PROTOBUF_CONSTEXPR GetPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPositionResponse(const GetPositionResponse& from); + GetPositionResponse(GetPositionResponse&& from) noexcept + : GetPositionResponse() { + *this = ::std::move(from); + } + + inline GetPositionResponse& operator=(const GetPositionResponse& from) { + CopyFrom(from); + return *this; + } + inline GetPositionResponse& operator=(GetPositionResponse&& 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 GetPositionResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetPositionResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPositionResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(GetPositionResponse& a, GetPositionResponse& b) { + a.Swap(&b); + } + inline void Swap(GetPositionResponse* 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(GetPositionResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPositionResponse& from) { + GetPositionResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPositionResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gantry.v1.GetPositionResponse"; + } + protected: + explicit GetPositionResponse(::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 { + kPositionsMmFieldNumber = 1, + }; + // repeated double positions_mm = 1 [json_name = "positionsMm"]; + int positions_mm_size() const; + private: + int _internal_positions_mm_size() const; + public: + void clear_positions_mm(); + private: + double _internal_positions_mm(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + _internal_positions_mm() const; + void _internal_add_positions_mm(double value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + _internal_mutable_positions_mm(); + public: + double positions_mm(int index) const; + void set_positions_mm(int index, double value); + void add_positions_mm(double value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + positions_mm() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + mutable_positions_mm(); + + // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.GetPositionResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > positions_mm_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fgantry_2fv1_2fgantry_2eproto; +}; +// ------------------------------------------------------------------- + +class MoveToPositionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.MoveToPositionRequest) */ { + public: + inline MoveToPositionRequest() : MoveToPositionRequest(nullptr) {} + ~MoveToPositionRequest() override; + explicit PROTOBUF_CONSTEXPR MoveToPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MoveToPositionRequest(const MoveToPositionRequest& from); + MoveToPositionRequest(MoveToPositionRequest&& from) noexcept + : MoveToPositionRequest() { + *this = ::std::move(from); + } + + inline MoveToPositionRequest& operator=(const MoveToPositionRequest& from) { + CopyFrom(from); + return *this; + } + inline MoveToPositionRequest& operator=(MoveToPositionRequest&& 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 MoveToPositionRequest& default_instance() { + return *internal_default_instance(); + } + static inline const MoveToPositionRequest* internal_default_instance() { + return reinterpret_cast( + &_MoveToPositionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(MoveToPositionRequest& a, MoveToPositionRequest& b) { + a.Swap(&b); + } + inline void Swap(MoveToPositionRequest* 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(MoveToPositionRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MoveToPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveToPositionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MoveToPositionRequest& from) { + MoveToPositionRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoveToPositionRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gantry.v1.MoveToPositionRequest"; + } + protected: + explicit MoveToPositionRequest(::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 { + kPositionsMmFieldNumber = 2, + kNameFieldNumber = 1, + kWorldStateFieldNumber = 3, + kExtraFieldNumber = 99, + }; + // repeated double positions_mm = 2 [json_name = "positionsMm"]; + int positions_mm_size() const; + private: + int _internal_positions_mm_size() const; + public: + void clear_positions_mm(); + private: + double _internal_positions_mm(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + _internal_positions_mm() const; + void _internal_add_positions_mm(double value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + _internal_mutable_positions_mm(); + public: + double positions_mm(int index) const; + void set_positions_mm(int index, double value); + void add_positions_mm(double value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + positions_mm() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + mutable_positions_mm(); + + // 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: + + // optional .viam.common.v1.WorldState world_state = 3 [json_name = "worldState"]; + bool has_world_state() const; + private: + bool _internal_has_world_state() const; + public: + void clear_world_state(); + const ::viam::common::v1::WorldState& world_state() const; + PROTOBUF_NODISCARD ::viam::common::v1::WorldState* release_world_state(); + ::viam::common::v1::WorldState* mutable_world_state(); + void set_allocated_world_state(::viam::common::v1::WorldState* world_state); + private: + const ::viam::common::v1::WorldState& _internal_world_state() const; + ::viam::common::v1::WorldState* _internal_mutable_world_state(); + public: + void unsafe_arena_set_allocated_world_state( + ::viam::common::v1::WorldState* world_state); + ::viam::common::v1::WorldState* unsafe_arena_release_world_state(); + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; + public: + void clear_extra(); + const ::PROTOBUF_NAMESPACE_ID::Struct& extra() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_extra(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_extra(); + void set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); + public: + void unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); + + // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.MoveToPositionRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > positions_mm_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::viam::common::v1::WorldState* world_state_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fgantry_2fv1_2fgantry_2eproto; +}; +// ------------------------------------------------------------------- + +class MoveToPositionResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.MoveToPositionResponse) */ { + public: + inline MoveToPositionResponse() : MoveToPositionResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR MoveToPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MoveToPositionResponse(const MoveToPositionResponse& from); + MoveToPositionResponse(MoveToPositionResponse&& from) noexcept + : MoveToPositionResponse() { + *this = ::std::move(from); + } + + inline MoveToPositionResponse& operator=(const MoveToPositionResponse& from) { + CopyFrom(from); + return *this; + } + inline MoveToPositionResponse& operator=(MoveToPositionResponse&& 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 MoveToPositionResponse& default_instance() { + return *internal_default_instance(); + } + static inline const MoveToPositionResponse* internal_default_instance() { + return reinterpret_cast( + &_MoveToPositionResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(MoveToPositionResponse& a, MoveToPositionResponse& b) { + a.Swap(&b); + } + inline void Swap(MoveToPositionResponse* 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(MoveToPositionResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MoveToPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const MoveToPositionResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const MoveToPositionResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gantry.v1.MoveToPositionResponse"; + } + protected: + explicit MoveToPositionResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.MoveToPositionResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2fgantry_2fv1_2fgantry_2eproto; +}; +// ------------------------------------------------------------------- + +class GetLengthsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.GetLengthsRequest) */ { + public: + inline GetLengthsRequest() : GetLengthsRequest(nullptr) {} + ~GetLengthsRequest() override; + explicit PROTOBUF_CONSTEXPR GetLengthsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetLengthsRequest(const GetLengthsRequest& from); + GetLengthsRequest(GetLengthsRequest&& from) noexcept + : GetLengthsRequest() { + *this = ::std::move(from); + } + + inline GetLengthsRequest& operator=(const GetLengthsRequest& from) { + CopyFrom(from); + return *this; + } + inline GetLengthsRequest& operator=(GetLengthsRequest&& 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 GetLengthsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetLengthsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetLengthsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(GetLengthsRequest& a, GetLengthsRequest& b) { + a.Swap(&b); + } + inline void Swap(GetLengthsRequest* 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(GetLengthsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetLengthsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetLengthsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetLengthsRequest& from) { + GetLengthsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetLengthsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gantry.v1.GetLengthsRequest"; + } + protected: + explicit GetLengthsRequest(::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.component.gantry.v1.GetLengthsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fgantry_2fv1_2fgantry_2eproto; +}; +// ------------------------------------------------------------------- + +class GetLengthsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.GetLengthsResponse) */ { + public: + inline GetLengthsResponse() : GetLengthsResponse(nullptr) {} + ~GetLengthsResponse() override; + explicit PROTOBUF_CONSTEXPR GetLengthsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetLengthsResponse(const GetLengthsResponse& from); + GetLengthsResponse(GetLengthsResponse&& from) noexcept + : GetLengthsResponse() { + *this = ::std::move(from); + } + + inline GetLengthsResponse& operator=(const GetLengthsResponse& from) { + CopyFrom(from); + return *this; + } + inline GetLengthsResponse& operator=(GetLengthsResponse&& 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 GetLengthsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetLengthsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetLengthsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(GetLengthsResponse& a, GetLengthsResponse& b) { + a.Swap(&b); + } + inline void Swap(GetLengthsResponse* 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(GetLengthsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetLengthsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetLengthsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetLengthsResponse& from) { + GetLengthsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetLengthsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gantry.v1.GetLengthsResponse"; + } + protected: + explicit GetLengthsResponse(::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 { + kLengthsMmFieldNumber = 1, + }; + // repeated double lengths_mm = 1 [json_name = "lengthsMm"]; + int lengths_mm_size() const; + private: + int _internal_lengths_mm_size() const; + public: + void clear_lengths_mm(); + private: + double _internal_lengths_mm(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + _internal_lengths_mm() const; + void _internal_add_lengths_mm(double value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + _internal_mutable_lengths_mm(); + public: + double lengths_mm(int index) const; + void set_lengths_mm(int index, double value); + void add_lengths_mm(double value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + lengths_mm() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + mutable_lengths_mm(); + + // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.GetLengthsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > lengths_mm_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fgantry_2fv1_2fgantry_2eproto; +}; +// ------------------------------------------------------------------- + +class StopRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.StopRequest) */ { + public: + inline StopRequest() : StopRequest(nullptr) {} + ~StopRequest() override; + explicit PROTOBUF_CONSTEXPR StopRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StopRequest(const StopRequest& from); + StopRequest(StopRequest&& from) noexcept + : StopRequest() { + *this = ::std::move(from); + } + + inline StopRequest& operator=(const StopRequest& from) { + CopyFrom(from); + return *this; + } + inline StopRequest& operator=(StopRequest&& 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 StopRequest& default_instance() { + return *internal_default_instance(); + } + static inline const StopRequest* internal_default_instance() { + return reinterpret_cast( + &_StopRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(StopRequest& a, StopRequest& b) { + a.Swap(&b); + } + inline void Swap(StopRequest* 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(StopRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StopRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StopRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const StopRequest& from) { + StopRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StopRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gantry.v1.StopRequest"; + } + protected: + explicit StopRequest(::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.component.gantry.v1.StopRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fgantry_2fv1_2fgantry_2eproto; +}; +// ------------------------------------------------------------------- + +class StopResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.StopResponse) */ { + public: + inline StopResponse() : StopResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR StopResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StopResponse(const StopResponse& from); + StopResponse(StopResponse&& from) noexcept + : StopResponse() { + *this = ::std::move(from); + } + + inline StopResponse& operator=(const StopResponse& from) { + CopyFrom(from); + return *this; + } + inline StopResponse& operator=(StopResponse&& 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 StopResponse& default_instance() { + return *internal_default_instance(); + } + static inline const StopResponse* internal_default_instance() { + return reinterpret_cast( + &_StopResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(StopResponse& a, StopResponse& b) { + a.Swap(&b); + } + inline void Swap(StopResponse* 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(StopResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StopResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gantry.v1.StopResponse"; + } + protected: + explicit StopResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.StopResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2fgantry_2fv1_2fgantry_2eproto; +}; +// ------------------------------------------------------------------- + +class Status final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.Status) */ { + public: + inline Status() : Status(nullptr) {} + ~Status() override; + explicit PROTOBUF_CONSTEXPR Status(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Status(const Status& from); + Status(Status&& from) noexcept + : Status() { + *this = ::std::move(from); + } + + inline Status& operator=(const Status& from) { + CopyFrom(from); + return *this; + } + inline Status& operator=(Status&& 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 Status& default_instance() { + return *internal_default_instance(); + } + static inline const Status* internal_default_instance() { + return reinterpret_cast( + &_Status_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(Status& a, Status& b) { + a.Swap(&b); + } + inline void Swap(Status* 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(Status* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Status& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Status& from) { + Status::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Status* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gantry.v1.Status"; + } + protected: + explicit Status(::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 { + kPositionsMmFieldNumber = 1, + kLengthsMmFieldNumber = 2, + kIsMovingFieldNumber = 3, + }; + // repeated double positions_mm = 1 [json_name = "positionsMm"]; + int positions_mm_size() const; + private: + int _internal_positions_mm_size() const; + public: + void clear_positions_mm(); + private: + double _internal_positions_mm(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + _internal_positions_mm() const; + void _internal_add_positions_mm(double value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + _internal_mutable_positions_mm(); + public: + double positions_mm(int index) const; + void set_positions_mm(int index, double value); + void add_positions_mm(double value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + positions_mm() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + mutable_positions_mm(); + + // repeated double lengths_mm = 2 [json_name = "lengthsMm"]; + int lengths_mm_size() const; + private: + int _internal_lengths_mm_size() const; + public: + void clear_lengths_mm(); + private: + double _internal_lengths_mm(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + _internal_lengths_mm() const; + void _internal_add_lengths_mm(double value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + _internal_mutable_lengths_mm(); + public: + double lengths_mm(int index) const; + void set_lengths_mm(int index, double value); + void add_lengths_mm(double value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + lengths_mm() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + mutable_lengths_mm(); + + // bool is_moving = 3 [json_name = "isMoving"]; + void clear_is_moving(); + bool is_moving() const; + void set_is_moving(bool value); + private: + bool _internal_is_moving() const; + void _internal_set_is_moving(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.Status) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > positions_mm_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > lengths_mm_; + bool is_moving_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fgantry_2fv1_2fgantry_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// GetPositionRequest + +// string name = 1 [json_name = "name"]; +inline void GetPositionRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetPositionRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.gantry.v1.GetPositionRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.gantry.v1.GetPositionRequest.name) +} +inline std::string* GetPositionRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.gantry.v1.GetPositionRequest.name) + return _s; +} +inline const std::string& GetPositionRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetPositionRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetPositionRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetPositionRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.gantry.v1.GetPositionRequest.name) + return _impl_.name_.Release(); +} +inline void GetPositionRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.gantry.v1.GetPositionRequest.name) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPositionRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool GetPositionRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPositionRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPositionRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.gantry.v1.GetPositionRequest.extra) + return _internal_extra(); +} +inline void GetPositionRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.gantry.v1.GetPositionRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* GetPositionRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.gantry.v1.GetPositionRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.gantry.v1.GetPositionRequest.extra) + return _msg; +} +inline void GetPositionRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.gantry.v1.GetPositionRequest.extra) +} + +// ------------------------------------------------------------------- + +// GetPositionResponse + +// repeated double positions_mm = 1 [json_name = "positionsMm"]; +inline int GetPositionResponse::_internal_positions_mm_size() const { + return _impl_.positions_mm_.size(); +} +inline int GetPositionResponse::positions_mm_size() const { + return _internal_positions_mm_size(); +} +inline void GetPositionResponse::clear_positions_mm() { + _impl_.positions_mm_.Clear(); +} +inline double GetPositionResponse::_internal_positions_mm(int index) const { + return _impl_.positions_mm_.Get(index); +} +inline double GetPositionResponse::positions_mm(int index) const { + // @@protoc_insertion_point(field_get:viam.component.gantry.v1.GetPositionResponse.positions_mm) + return _internal_positions_mm(index); +} +inline void GetPositionResponse::set_positions_mm(int index, double value) { + _impl_.positions_mm_.Set(index, value); + // @@protoc_insertion_point(field_set:viam.component.gantry.v1.GetPositionResponse.positions_mm) +} +inline void GetPositionResponse::_internal_add_positions_mm(double value) { + _impl_.positions_mm_.Add(value); +} +inline void GetPositionResponse::add_positions_mm(double value) { + _internal_add_positions_mm(value); + // @@protoc_insertion_point(field_add:viam.component.gantry.v1.GetPositionResponse.positions_mm) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +GetPositionResponse::_internal_positions_mm() const { + return _impl_.positions_mm_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +GetPositionResponse::positions_mm() const { + // @@protoc_insertion_point(field_list:viam.component.gantry.v1.GetPositionResponse.positions_mm) + return _internal_positions_mm(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +GetPositionResponse::_internal_mutable_positions_mm() { + return &_impl_.positions_mm_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +GetPositionResponse::mutable_positions_mm() { + // @@protoc_insertion_point(field_mutable_list:viam.component.gantry.v1.GetPositionResponse.positions_mm) + return _internal_mutable_positions_mm(); +} + +// ------------------------------------------------------------------- + +// MoveToPositionRequest + +// string name = 1 [json_name = "name"]; +inline void MoveToPositionRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& MoveToPositionRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.gantry.v1.MoveToPositionRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void MoveToPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.gantry.v1.MoveToPositionRequest.name) +} +inline std::string* MoveToPositionRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.gantry.v1.MoveToPositionRequest.name) + return _s; +} +inline const std::string& MoveToPositionRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void MoveToPositionRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* MoveToPositionRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* MoveToPositionRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.gantry.v1.MoveToPositionRequest.name) + return _impl_.name_.Release(); +} +inline void MoveToPositionRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.gantry.v1.MoveToPositionRequest.name) +} + +// repeated double positions_mm = 2 [json_name = "positionsMm"]; +inline int MoveToPositionRequest::_internal_positions_mm_size() const { + return _impl_.positions_mm_.size(); +} +inline int MoveToPositionRequest::positions_mm_size() const { + return _internal_positions_mm_size(); +} +inline void MoveToPositionRequest::clear_positions_mm() { + _impl_.positions_mm_.Clear(); +} +inline double MoveToPositionRequest::_internal_positions_mm(int index) const { + return _impl_.positions_mm_.Get(index); +} +inline double MoveToPositionRequest::positions_mm(int index) const { + // @@protoc_insertion_point(field_get:viam.component.gantry.v1.MoveToPositionRequest.positions_mm) + return _internal_positions_mm(index); +} +inline void MoveToPositionRequest::set_positions_mm(int index, double value) { + _impl_.positions_mm_.Set(index, value); + // @@protoc_insertion_point(field_set:viam.component.gantry.v1.MoveToPositionRequest.positions_mm) +} +inline void MoveToPositionRequest::_internal_add_positions_mm(double value) { + _impl_.positions_mm_.Add(value); +} +inline void MoveToPositionRequest::add_positions_mm(double value) { + _internal_add_positions_mm(value); + // @@protoc_insertion_point(field_add:viam.component.gantry.v1.MoveToPositionRequest.positions_mm) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +MoveToPositionRequest::_internal_positions_mm() const { + return _impl_.positions_mm_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +MoveToPositionRequest::positions_mm() const { + // @@protoc_insertion_point(field_list:viam.component.gantry.v1.MoveToPositionRequest.positions_mm) + return _internal_positions_mm(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +MoveToPositionRequest::_internal_mutable_positions_mm() { + return &_impl_.positions_mm_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +MoveToPositionRequest::mutable_positions_mm() { + // @@protoc_insertion_point(field_mutable_list:viam.component.gantry.v1.MoveToPositionRequest.positions_mm) + return _internal_mutable_positions_mm(); +} + +// optional .viam.common.v1.WorldState world_state = 3 [json_name = "worldState"]; +inline bool MoveToPositionRequest::_internal_has_world_state() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.world_state_ != nullptr); + return value; +} +inline bool MoveToPositionRequest::has_world_state() const { + return _internal_has_world_state(); +} +inline const ::viam::common::v1::WorldState& MoveToPositionRequest::_internal_world_state() const { + const ::viam::common::v1::WorldState* p = _impl_.world_state_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_WorldState_default_instance_); +} +inline const ::viam::common::v1::WorldState& MoveToPositionRequest::world_state() const { + // @@protoc_insertion_point(field_get:viam.component.gantry.v1.MoveToPositionRequest.world_state) + return _internal_world_state(); +} +inline void MoveToPositionRequest::unsafe_arena_set_allocated_world_state( + ::viam::common::v1::WorldState* world_state) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.world_state_); + } + _impl_.world_state_ = world_state; + if (world_state) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.gantry.v1.MoveToPositionRequest.world_state) +} +inline ::viam::common::v1::WorldState* MoveToPositionRequest::release_world_state() { + _impl_._has_bits_[0] &= ~0x00000001u; + ::viam::common::v1::WorldState* temp = _impl_.world_state_; + _impl_.world_state_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::WorldState* MoveToPositionRequest::unsafe_arena_release_world_state() { + // @@protoc_insertion_point(field_release:viam.component.gantry.v1.MoveToPositionRequest.world_state) + _impl_._has_bits_[0] &= ~0x00000001u; + ::viam::common::v1::WorldState* temp = _impl_.world_state_; + _impl_.world_state_ = nullptr; + return temp; +} +inline ::viam::common::v1::WorldState* MoveToPositionRequest::_internal_mutable_world_state() { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.world_state_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::WorldState>(GetArenaForAllocation()); + _impl_.world_state_ = p; + } + return _impl_.world_state_; +} +inline ::viam::common::v1::WorldState* MoveToPositionRequest::mutable_world_state() { + ::viam::common::v1::WorldState* _msg = _internal_mutable_world_state(); + // @@protoc_insertion_point(field_mutable:viam.component.gantry.v1.MoveToPositionRequest.world_state) + return _msg; +} +inline void MoveToPositionRequest::set_allocated_world_state(::viam::common::v1::WorldState* world_state) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.world_state_); + } + if (world_state) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_state)); + if (message_arena != submessage_arena) { + world_state = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, world_state, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.world_state_ = world_state; + // @@protoc_insertion_point(field_set_allocated:viam.component.gantry.v1.MoveToPositionRequest.world_state) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool MoveToPositionRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool MoveToPositionRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveToPositionRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveToPositionRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.gantry.v1.MoveToPositionRequest.extra) + return _internal_extra(); +} +inline void MoveToPositionRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.gantry.v1.MoveToPositionRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveToPositionRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* MoveToPositionRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.gantry.v1.MoveToPositionRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveToPositionRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveToPositionRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.gantry.v1.MoveToPositionRequest.extra) + return _msg; +} +inline void MoveToPositionRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.gantry.v1.MoveToPositionRequest.extra) +} + +// ------------------------------------------------------------------- + +// MoveToPositionResponse + +// ------------------------------------------------------------------- + +// GetLengthsRequest + +// string name = 1 [json_name = "name"]; +inline void GetLengthsRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetLengthsRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.gantry.v1.GetLengthsRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetLengthsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.gantry.v1.GetLengthsRequest.name) +} +inline std::string* GetLengthsRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.gantry.v1.GetLengthsRequest.name) + return _s; +} +inline const std::string& GetLengthsRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetLengthsRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetLengthsRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetLengthsRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.gantry.v1.GetLengthsRequest.name) + return _impl_.name_.Release(); +} +inline void GetLengthsRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.gantry.v1.GetLengthsRequest.name) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetLengthsRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool GetLengthsRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetLengthsRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetLengthsRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.gantry.v1.GetLengthsRequest.extra) + return _internal_extra(); +} +inline void GetLengthsRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.gantry.v1.GetLengthsRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetLengthsRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* GetLengthsRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.gantry.v1.GetLengthsRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetLengthsRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetLengthsRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.gantry.v1.GetLengthsRequest.extra) + return _msg; +} +inline void GetLengthsRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.gantry.v1.GetLengthsRequest.extra) +} + +// ------------------------------------------------------------------- + +// GetLengthsResponse + +// repeated double lengths_mm = 1 [json_name = "lengthsMm"]; +inline int GetLengthsResponse::_internal_lengths_mm_size() const { + return _impl_.lengths_mm_.size(); +} +inline int GetLengthsResponse::lengths_mm_size() const { + return _internal_lengths_mm_size(); +} +inline void GetLengthsResponse::clear_lengths_mm() { + _impl_.lengths_mm_.Clear(); +} +inline double GetLengthsResponse::_internal_lengths_mm(int index) const { + return _impl_.lengths_mm_.Get(index); +} +inline double GetLengthsResponse::lengths_mm(int index) const { + // @@protoc_insertion_point(field_get:viam.component.gantry.v1.GetLengthsResponse.lengths_mm) + return _internal_lengths_mm(index); +} +inline void GetLengthsResponse::set_lengths_mm(int index, double value) { + _impl_.lengths_mm_.Set(index, value); + // @@protoc_insertion_point(field_set:viam.component.gantry.v1.GetLengthsResponse.lengths_mm) +} +inline void GetLengthsResponse::_internal_add_lengths_mm(double value) { + _impl_.lengths_mm_.Add(value); +} +inline void GetLengthsResponse::add_lengths_mm(double value) { + _internal_add_lengths_mm(value); + // @@protoc_insertion_point(field_add:viam.component.gantry.v1.GetLengthsResponse.lengths_mm) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +GetLengthsResponse::_internal_lengths_mm() const { + return _impl_.lengths_mm_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +GetLengthsResponse::lengths_mm() const { + // @@protoc_insertion_point(field_list:viam.component.gantry.v1.GetLengthsResponse.lengths_mm) + return _internal_lengths_mm(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +GetLengthsResponse::_internal_mutable_lengths_mm() { + return &_impl_.lengths_mm_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +GetLengthsResponse::mutable_lengths_mm() { + // @@protoc_insertion_point(field_mutable_list:viam.component.gantry.v1.GetLengthsResponse.lengths_mm) + return _internal_mutable_lengths_mm(); +} + +// ------------------------------------------------------------------- + +// StopRequest + +// string name = 1 [json_name = "name"]; +inline void StopRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& StopRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.gantry.v1.StopRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void StopRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.gantry.v1.StopRequest.name) +} +inline std::string* StopRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.gantry.v1.StopRequest.name) + return _s; +} +inline const std::string& StopRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void StopRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* StopRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* StopRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.gantry.v1.StopRequest.name) + return _impl_.name_.Release(); +} +inline void StopRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.gantry.v1.StopRequest.name) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool StopRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool StopRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.gantry.v1.StopRequest.extra) + return _internal_extra(); +} +inline void StopRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.gantry.v1.StopRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* StopRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.gantry.v1.StopRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.gantry.v1.StopRequest.extra) + return _msg; +} +inline void StopRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.gantry.v1.StopRequest.extra) +} + +// ------------------------------------------------------------------- + +// StopResponse + +// ------------------------------------------------------------------- + +// Status + +// repeated double positions_mm = 1 [json_name = "positionsMm"]; +inline int Status::_internal_positions_mm_size() const { + return _impl_.positions_mm_.size(); +} +inline int Status::positions_mm_size() const { + return _internal_positions_mm_size(); +} +inline void Status::clear_positions_mm() { + _impl_.positions_mm_.Clear(); +} +inline double Status::_internal_positions_mm(int index) const { + return _impl_.positions_mm_.Get(index); +} +inline double Status::positions_mm(int index) const { + // @@protoc_insertion_point(field_get:viam.component.gantry.v1.Status.positions_mm) + return _internal_positions_mm(index); +} +inline void Status::set_positions_mm(int index, double value) { + _impl_.positions_mm_.Set(index, value); + // @@protoc_insertion_point(field_set:viam.component.gantry.v1.Status.positions_mm) +} +inline void Status::_internal_add_positions_mm(double value) { + _impl_.positions_mm_.Add(value); +} +inline void Status::add_positions_mm(double value) { + _internal_add_positions_mm(value); + // @@protoc_insertion_point(field_add:viam.component.gantry.v1.Status.positions_mm) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +Status::_internal_positions_mm() const { + return _impl_.positions_mm_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +Status::positions_mm() const { + // @@protoc_insertion_point(field_list:viam.component.gantry.v1.Status.positions_mm) + return _internal_positions_mm(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +Status::_internal_mutable_positions_mm() { + return &_impl_.positions_mm_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +Status::mutable_positions_mm() { + // @@protoc_insertion_point(field_mutable_list:viam.component.gantry.v1.Status.positions_mm) + return _internal_mutable_positions_mm(); +} + +// repeated double lengths_mm = 2 [json_name = "lengthsMm"]; +inline int Status::_internal_lengths_mm_size() const { + return _impl_.lengths_mm_.size(); +} +inline int Status::lengths_mm_size() const { + return _internal_lengths_mm_size(); +} +inline void Status::clear_lengths_mm() { + _impl_.lengths_mm_.Clear(); +} +inline double Status::_internal_lengths_mm(int index) const { + return _impl_.lengths_mm_.Get(index); +} +inline double Status::lengths_mm(int index) const { + // @@protoc_insertion_point(field_get:viam.component.gantry.v1.Status.lengths_mm) + return _internal_lengths_mm(index); +} +inline void Status::set_lengths_mm(int index, double value) { + _impl_.lengths_mm_.Set(index, value); + // @@protoc_insertion_point(field_set:viam.component.gantry.v1.Status.lengths_mm) +} +inline void Status::_internal_add_lengths_mm(double value) { + _impl_.lengths_mm_.Add(value); +} +inline void Status::add_lengths_mm(double value) { + _internal_add_lengths_mm(value); + // @@protoc_insertion_point(field_add:viam.component.gantry.v1.Status.lengths_mm) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +Status::_internal_lengths_mm() const { + return _impl_.lengths_mm_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +Status::lengths_mm() const { + // @@protoc_insertion_point(field_list:viam.component.gantry.v1.Status.lengths_mm) + return _internal_lengths_mm(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +Status::_internal_mutable_lengths_mm() { + return &_impl_.lengths_mm_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +Status::mutable_lengths_mm() { + // @@protoc_insertion_point(field_mutable_list:viam.component.gantry.v1.Status.lengths_mm) + return _internal_mutable_lengths_mm(); +} + +// bool is_moving = 3 [json_name = "isMoving"]; +inline void Status::clear_is_moving() { + _impl_.is_moving_ = false; +} +inline bool Status::_internal_is_moving() const { + return _impl_.is_moving_; +} +inline bool Status::is_moving() const { + // @@protoc_insertion_point(field_get:viam.component.gantry.v1.Status.is_moving) + return _internal_is_moving(); +} +inline void Status::_internal_set_is_moving(bool value) { + + _impl_.is_moving_ = value; +} +inline void Status::set_is_moving(bool value) { + _internal_set_is_moving(value); + // @@protoc_insertion_point(field_set:viam.component.gantry.v1.Status.is_moving) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace gantry +} // namespace component +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fgantry_2fv1_2fgantry_2eproto diff --git a/src/gen/component/generic/v1/generic.grpc.pb.cc b/src/gen/component/generic/v1/generic.grpc.pb.cc new file mode 100644 index 000000000..c86a955f0 --- /dev/null +++ b/src/gen/component/generic/v1/generic.grpc.pb.cc @@ -0,0 +1,92 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/generic/v1/generic.proto + +#include "component/generic/v1/generic.pb.h" +#include "component/generic/v1/generic.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace component { +namespace generic { +namespace v1 { + +static const char* GenericService_method_names[] = { + "/viam.component.generic.v1.GenericService/DoCommand", +}; + +std::unique_ptr< GenericService::Stub> GenericService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< GenericService::Stub> stub(new GenericService::Stub(channel, options)); + return stub; +} + +GenericService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_DoCommand_(GenericService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status GenericService::Stub::DoCommand(::grpc::ClientContext* context, const ::viam::component::generic::v1::DoCommandRequest& request, ::viam::component::generic::v1::DoCommandResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::generic::v1::DoCommandRequest, ::viam::component::generic::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DoCommand_, context, request, response); +} + +void GenericService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::component::generic::v1::DoCommandRequest* request, ::viam::component::generic::v1::DoCommandResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::generic::v1::DoCommandRequest, ::viam::component::generic::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +} + +void GenericService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::component::generic::v1::DoCommandRequest* request, ::viam::component::generic::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::component::generic::v1::DoCommandResponse>* GenericService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::component::generic::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::generic::v1::DoCommandResponse, ::viam::component::generic::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::generic::v1::DoCommandResponse>* GenericService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::component::generic::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncDoCommandRaw(context, request, cq); + result->StartCall(); + return result; +} + +GenericService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + GenericService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< GenericService::Service, ::viam::component::generic::v1::DoCommandRequest, ::viam::component::generic::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](GenericService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::generic::v1::DoCommandRequest* req, + ::viam::component::generic::v1::DoCommandResponse* resp) { + return service->DoCommand(ctx, req, resp); + }, this))); +} + +GenericService::Service::~Service() { +} + +::grpc::Status GenericService::Service::DoCommand(::grpc::ServerContext* context, const ::viam::component::generic::v1::DoCommandRequest* request, ::viam::component::generic::v1::DoCommandResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace component +} // namespace generic +} // namespace v1 + diff --git a/src/gen/component/generic/v1/generic.grpc.pb.h b/src/gen/component/generic/v1/generic.grpc.pb.h new file mode 100644 index 000000000..73537a58b --- /dev/null +++ b/src/gen/component/generic/v1/generic.grpc.pb.h @@ -0,0 +1,250 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/generic/v1/generic.proto +#ifndef GRPC_component_2fgeneric_2fv1_2fgeneric_2eproto__INCLUDED +#define GRPC_component_2fgeneric_2fv1_2fgeneric_2eproto__INCLUDED + +#include "component/generic/v1/generic.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace component { +namespace generic { +namespace v1 { + +// GenericService services all generic commands associated with a robot +class GenericService final { + public: + static constexpr char const* service_full_name() { + return "viam.component.generic.v1.GenericService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // DoCommand sends/recieves arbitrary commands + virtual ::grpc::Status DoCommand(::grpc::ClientContext* context, const ::viam::component::generic::v1::DoCommandRequest& request, ::viam::component::generic::v1::DoCommandResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::generic::v1::DoCommandResponse>> AsyncDoCommand(::grpc::ClientContext* context, const ::viam::component::generic::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::generic::v1::DoCommandResponse>>(AsyncDoCommandRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::generic::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::component::generic::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::generic::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // DoCommand sends/recieves arbitrary commands + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::component::generic::v1::DoCommandRequest* request, ::viam::component::generic::v1::DoCommandResponse* response, std::function) = 0; + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::component::generic::v1::DoCommandRequest* request, ::viam::component::generic::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::ClientAsyncResponseReaderInterface< ::viam::component::generic::v1::DoCommandResponse>* AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::component::generic::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::generic::v1::DoCommandResponse>* PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::component::generic::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()); + ::grpc::Status DoCommand(::grpc::ClientContext* context, const ::viam::component::generic::v1::DoCommandRequest& request, ::viam::component::generic::v1::DoCommandResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::generic::v1::DoCommandResponse>> AsyncDoCommand(::grpc::ClientContext* context, const ::viam::component::generic::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::generic::v1::DoCommandResponse>>(AsyncDoCommandRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::generic::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::component::generic::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::generic::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void DoCommand(::grpc::ClientContext* context, const ::viam::component::generic::v1::DoCommandRequest* request, ::viam::component::generic::v1::DoCommandResponse* response, std::function) override; + void DoCommand(::grpc::ClientContext* context, const ::viam::component::generic::v1::DoCommandRequest* request, ::viam::component::generic::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::ClientAsyncResponseReader< ::viam::component::generic::v1::DoCommandResponse>* AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::component::generic::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::generic::v1::DoCommandResponse>* PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::component::generic::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) override; + 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(); + // DoCommand sends/recieves arbitrary commands + virtual ::grpc::Status DoCommand(::grpc::ServerContext* context, const ::viam::component::generic::v1::DoCommandRequest* request, ::viam::component::generic::v1::DoCommandResponse* response); + }; + template + class WithAsyncMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_DoCommand() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::component::generic::v1::DoCommandRequest* /*request*/, ::viam::component::generic::v1::DoCommandResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDoCommand(::grpc::ServerContext* context, ::viam::component::generic::v1::DoCommandRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::generic::v1::DoCommandResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_DoCommand AsyncService; + template + class WithCallbackMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_DoCommand() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::generic::v1::DoCommandRequest, ::viam::component::generic::v1::DoCommandResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::generic::v1::DoCommandRequest* request, ::viam::component::generic::v1::DoCommandResponse* response) { return this->DoCommand(context, request, response); }));} + void SetMessageAllocatorFor_DoCommand( + ::grpc::MessageAllocator< ::viam::component::generic::v1::DoCommandRequest, ::viam::component::generic::v1::DoCommandResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::generic::v1::DoCommandRequest, ::viam::component::generic::v1::DoCommandResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::component::generic::v1::DoCommandRequest* /*request*/, ::viam::component::generic::v1::DoCommandResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DoCommand( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::generic::v1::DoCommandRequest* /*request*/, ::viam::component::generic::v1::DoCommandResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_DoCommand CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_DoCommand() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::component::generic::v1::DoCommandRequest* /*request*/, ::viam::component::generic::v1::DoCommandResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_DoCommand() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::component::generic::v1::DoCommandRequest* /*request*/, ::viam::component::generic::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_DoCommand() { + ::grpc::Service::MarkMethodRawCallback(0, + 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::component::generic::v1::DoCommandRequest* /*request*/, ::viam::component::generic::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(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::generic::v1::DoCommandRequest, ::viam::component::generic::v1::DoCommandResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::generic::v1::DoCommandRequest, ::viam::component::generic::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::component::generic::v1::DoCommandRequest* /*request*/, ::viam::component::generic::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::component::generic::v1::DoCommandRequest,::viam::component::generic::v1::DoCommandResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_DoCommand StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_DoCommand StreamedService; +}; + +} // namespace v1 +} // namespace generic +} // namespace component +} // namespace viam + + +#endif // GRPC_component_2fgeneric_2fv1_2fgeneric_2eproto__INCLUDED diff --git a/src/gen/component/generic/v1/generic.pb.cc b/src/gen/component/generic/v1/generic.pb.cc new file mode 100644 index 000000000..a3ef56e9b --- /dev/null +++ b/src/gen/component/generic/v1/generic.pb.cc @@ -0,0 +1,596 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/generic/v1/generic.proto + +#include "component/generic/v1/generic.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 component { +namespace generic { +namespace v1 { +PROTOBUF_CONSTEXPR DoCommandRequest::DoCommandRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.command_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DoCommandRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DoCommandRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DoCommandRequestDefaultTypeInternal() {} + union { + DoCommandRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DoCommandRequestDefaultTypeInternal _DoCommandRequest_default_instance_; +PROTOBUF_CONSTEXPR DoCommandResponse::DoCommandResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.result_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DoCommandResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DoCommandResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DoCommandResponseDefaultTypeInternal() {} + union { + DoCommandResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DoCommandResponseDefaultTypeInternal _DoCommandResponse_default_instance_; +} // namespace v1 +} // namespace generic +} // namespace component +} // namespace viam +static ::_pb::Metadata file_level_metadata_component_2fgeneric_2fv1_2fgeneric_2eproto[2]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fgeneric_2fv1_2fgeneric_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fgeneric_2fv1_2fgeneric_2eproto = nullptr; + +const uint32_t TableStruct_component_2fgeneric_2fv1_2fgeneric_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::generic::v1::DoCommandRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::generic::v1::DoCommandRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::generic::v1::DoCommandRequest, _impl_.command_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::generic::v1::DoCommandResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::generic::v1::DoCommandResponse, _impl_.result_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::generic::v1::DoCommandRequest)}, + { 8, -1, -1, sizeof(::viam::component::generic::v1::DoCommandResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::component::generic::v1::_DoCommandRequest_default_instance_._instance, + &::viam::component::generic::v1::_DoCommandResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_component_2fgeneric_2fv1_2fgeneric_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\"component/generic/v1/generic.proto\022\031vi" + "am.component.generic.v1\032\034google/api/anno" + "tations.proto\032\034google/protobuf/struct.pr" + "oto\"Y\n\020DoCommandRequest\022\022\n\004name\030\001 \001(\tR\004n" + "ame\0221\n\007command\030\002 \001(\0132\027.google.protobuf.S" + "tructR\007command\"D\n\021DoCommandResponse\022/\n\006r" + "esult\030\001 \001(\0132\027.google.protobuf.StructR\006re" + "sult2\263\001\n\016GenericService\022\240\001\n\tDoCommand\022+." + "viam.component.generic.v1.DoCommandReque" + "st\032,.viam.component.generic.v1.DoCommand" + "Response\"8\202\323\344\223\0022\"0/viam/api/v1/component" + "/generic/{name}/do_commandBE\n\035com.viam.c" + "omponent.generic.v1Z$go.viam.com/api/com" + "ponent/generic/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto_deps[2] = { + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, +}; +static ::_pbi::once_flag descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto = { + false, false, 545, descriptor_table_protodef_component_2fgeneric_2fv1_2fgeneric_2eproto, + "component/generic/v1/generic.proto", + &descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto_once, descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto_deps, 2, 2, + schemas, file_default_instances, TableStruct_component_2fgeneric_2fv1_2fgeneric_2eproto::offsets, + file_level_metadata_component_2fgeneric_2fv1_2fgeneric_2eproto, file_level_enum_descriptors_component_2fgeneric_2fv1_2fgeneric_2eproto, + file_level_service_descriptors_component_2fgeneric_2fv1_2fgeneric_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto_getter() { + return &descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fgeneric_2fv1_2fgeneric_2eproto(&descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto); +namespace viam { +namespace component { +namespace generic { +namespace v1 { + +// =================================================================== + +class DoCommandRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& command(const DoCommandRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +DoCommandRequest::_Internal::command(const DoCommandRequest* msg) { + return *msg->_impl_.command_; +} +void DoCommandRequest::clear_command() { + if (GetArenaForAllocation() == nullptr && _impl_.command_ != nullptr) { + delete _impl_.command_; + } + _impl_.command_ = nullptr; +} +DoCommandRequest::DoCommandRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.generic.v1.DoCommandRequest) +} +DoCommandRequest::DoCommandRequest(const DoCommandRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DoCommandRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.command_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_command()) { + _this->_impl_.command_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.command_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.generic.v1.DoCommandRequest) +} + +inline void DoCommandRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.command_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +DoCommandRequest::~DoCommandRequest() { + // @@protoc_insertion_point(destructor:viam.component.generic.v1.DoCommandRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DoCommandRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.command_; +} + +void DoCommandRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DoCommandRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.generic.v1.DoCommandRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.command_ != nullptr) { + delete _impl_.command_; + } + _impl_.command_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DoCommandRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.generic.v1.DoCommandRequest.name")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct command = 2 [json_name = "command"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_command(), 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* DoCommandRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.generic.v1.DoCommandRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.generic.v1.DoCommandRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .google.protobuf.Struct command = 2 [json_name = "command"]; + if (this->_internal_has_command()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::command(this), + _Internal::command(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.generic.v1.DoCommandRequest) + return target; +} + +size_t DoCommandRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.generic.v1.DoCommandRequest) + 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 command = 2 [json_name = "command"]; + if (this->_internal_has_command()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.command_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DoCommandRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DoCommandRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DoCommandRequest::GetClassData() const { return &_class_data_; } + + +void DoCommandRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.generic.v1.DoCommandRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_command()) { + _this->_internal_mutable_command()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_command()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DoCommandRequest::CopyFrom(const DoCommandRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.generic.v1.DoCommandRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DoCommandRequest::IsInitialized() const { + return true; +} + +void DoCommandRequest::InternalSwap(DoCommandRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.command_, other->_impl_.command_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DoCommandRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto_getter, &descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto_once, + file_level_metadata_component_2fgeneric_2fv1_2fgeneric_2eproto[0]); +} + +// =================================================================== + +class DoCommandResponse::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& result(const DoCommandResponse* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +DoCommandResponse::_Internal::result(const DoCommandResponse* msg) { + return *msg->_impl_.result_; +} +void DoCommandResponse::clear_result() { + if (GetArenaForAllocation() == nullptr && _impl_.result_ != nullptr) { + delete _impl_.result_; + } + _impl_.result_ = nullptr; +} +DoCommandResponse::DoCommandResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.generic.v1.DoCommandResponse) +} +DoCommandResponse::DoCommandResponse(const DoCommandResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DoCommandResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.result_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_result()) { + _this->_impl_.result_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.result_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.generic.v1.DoCommandResponse) +} + +inline void DoCommandResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.result_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +DoCommandResponse::~DoCommandResponse() { + // @@protoc_insertion_point(destructor:viam.component.generic.v1.DoCommandResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DoCommandResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.result_; +} + +void DoCommandResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DoCommandResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.generic.v1.DoCommandResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.result_ != nullptr) { + delete _impl_.result_; + } + _impl_.result_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DoCommandResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.protobuf.Struct result = 1 [json_name = "result"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_result(), 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* DoCommandResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.generic.v1.DoCommandResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.Struct result = 1 [json_name = "result"]; + if (this->_internal_has_result()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::result(this), + _Internal::result(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.generic.v1.DoCommandResponse) + return target; +} + +size_t DoCommandResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.generic.v1.DoCommandResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.protobuf.Struct result = 1 [json_name = "result"]; + if (this->_internal_has_result()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.result_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DoCommandResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DoCommandResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DoCommandResponse::GetClassData() const { return &_class_data_; } + + +void DoCommandResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.generic.v1.DoCommandResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_result()) { + _this->_internal_mutable_result()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_result()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DoCommandResponse::CopyFrom(const DoCommandResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.generic.v1.DoCommandResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DoCommandResponse::IsInitialized() const { + return true; +} + +void DoCommandResponse::InternalSwap(DoCommandResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.result_, other->_impl_.result_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DoCommandResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto_getter, &descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto_once, + file_level_metadata_component_2fgeneric_2fv1_2fgeneric_2eproto[1]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace generic +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::generic::v1::DoCommandRequest* +Arena::CreateMaybeMessage< ::viam::component::generic::v1::DoCommandRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::generic::v1::DoCommandRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::generic::v1::DoCommandResponse* +Arena::CreateMaybeMessage< ::viam::component::generic::v1::DoCommandResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::generic::v1::DoCommandResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/component/generic/v1/generic.pb.h b/src/gen/component/generic/v1/generic.pb.h new file mode 100644 index 000000000..3a27e52ed --- /dev/null +++ b/src/gen/component/generic/v1/generic.pb.h @@ -0,0 +1,653 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/generic/v1/generic.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fgeneric_2fv1_2fgeneric_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fgeneric_2fv1_2fgeneric_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 "google/api/annotations.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_component_2fgeneric_2fv1_2fgeneric_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_component_2fgeneric_2fv1_2fgeneric_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto; +namespace viam { +namespace component { +namespace generic { +namespace v1 { +class DoCommandRequest; +struct DoCommandRequestDefaultTypeInternal; +extern DoCommandRequestDefaultTypeInternal _DoCommandRequest_default_instance_; +class DoCommandResponse; +struct DoCommandResponseDefaultTypeInternal; +extern DoCommandResponseDefaultTypeInternal _DoCommandResponse_default_instance_; +} // namespace v1 +} // namespace generic +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::generic::v1::DoCommandRequest* Arena::CreateMaybeMessage<::viam::component::generic::v1::DoCommandRequest>(Arena*); +template<> ::viam::component::generic::v1::DoCommandResponse* Arena::CreateMaybeMessage<::viam::component::generic::v1::DoCommandResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace component { +namespace generic { +namespace v1 { + +// =================================================================== + +class DoCommandRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.generic.v1.DoCommandRequest) */ { + public: + inline DoCommandRequest() : DoCommandRequest(nullptr) {} + ~DoCommandRequest() override; + explicit PROTOBUF_CONSTEXPR DoCommandRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DoCommandRequest(const DoCommandRequest& from); + DoCommandRequest(DoCommandRequest&& from) noexcept + : DoCommandRequest() { + *this = ::std::move(from); + } + + inline DoCommandRequest& operator=(const DoCommandRequest& from) { + CopyFrom(from); + return *this; + } + inline DoCommandRequest& operator=(DoCommandRequest&& 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 DoCommandRequest& default_instance() { + return *internal_default_instance(); + } + static inline const DoCommandRequest* internal_default_instance() { + return reinterpret_cast( + &_DoCommandRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(DoCommandRequest& a, DoCommandRequest& b) { + a.Swap(&b); + } + inline void Swap(DoCommandRequest* 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(DoCommandRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DoCommandRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DoCommandRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DoCommandRequest& from) { + DoCommandRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DoCommandRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.generic.v1.DoCommandRequest"; + } + protected: + explicit DoCommandRequest(::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, + kCommandFieldNumber = 2, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // .google.protobuf.Struct command = 2 [json_name = "command"]; + bool has_command() const; + private: + bool _internal_has_command() const; + public: + void clear_command(); + const ::PROTOBUF_NAMESPACE_ID::Struct& command() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_command(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_command(); + void set_allocated_command(::PROTOBUF_NAMESPACE_ID::Struct* command); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_command() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_command(); + public: + void unsafe_arena_set_allocated_command( + ::PROTOBUF_NAMESPACE_ID::Struct* command); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_command(); + + // @@protoc_insertion_point(class_scope:viam.component.generic.v1.DoCommandRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* command_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fgeneric_2fv1_2fgeneric_2eproto; +}; +// ------------------------------------------------------------------- + +class DoCommandResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.generic.v1.DoCommandResponse) */ { + public: + inline DoCommandResponse() : DoCommandResponse(nullptr) {} + ~DoCommandResponse() override; + explicit PROTOBUF_CONSTEXPR DoCommandResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DoCommandResponse(const DoCommandResponse& from); + DoCommandResponse(DoCommandResponse&& from) noexcept + : DoCommandResponse() { + *this = ::std::move(from); + } + + inline DoCommandResponse& operator=(const DoCommandResponse& from) { + CopyFrom(from); + return *this; + } + inline DoCommandResponse& operator=(DoCommandResponse&& 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 DoCommandResponse& default_instance() { + return *internal_default_instance(); + } + static inline const DoCommandResponse* internal_default_instance() { + return reinterpret_cast( + &_DoCommandResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(DoCommandResponse& a, DoCommandResponse& b) { + a.Swap(&b); + } + inline void Swap(DoCommandResponse* 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(DoCommandResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DoCommandResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DoCommandResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DoCommandResponse& from) { + DoCommandResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DoCommandResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.generic.v1.DoCommandResponse"; + } + protected: + explicit DoCommandResponse(::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 { + kResultFieldNumber = 1, + }; + // .google.protobuf.Struct result = 1 [json_name = "result"]; + bool has_result() const; + private: + bool _internal_has_result() const; + public: + void clear_result(); + const ::PROTOBUF_NAMESPACE_ID::Struct& result() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_result(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_result(); + void set_allocated_result(::PROTOBUF_NAMESPACE_ID::Struct* result); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_result() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_result(); + public: + void unsafe_arena_set_allocated_result( + ::PROTOBUF_NAMESPACE_ID::Struct* result); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_result(); + + // @@protoc_insertion_point(class_scope:viam.component.generic.v1.DoCommandResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::Struct* result_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fgeneric_2fv1_2fgeneric_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// DoCommandRequest + +// string name = 1 [json_name = "name"]; +inline void DoCommandRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& DoCommandRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.generic.v1.DoCommandRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DoCommandRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.generic.v1.DoCommandRequest.name) +} +inline std::string* DoCommandRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.generic.v1.DoCommandRequest.name) + return _s; +} +inline const std::string& DoCommandRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void DoCommandRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* DoCommandRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* DoCommandRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.generic.v1.DoCommandRequest.name) + return _impl_.name_.Release(); +} +inline void DoCommandRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.generic.v1.DoCommandRequest.name) +} + +// .google.protobuf.Struct command = 2 [json_name = "command"]; +inline bool DoCommandRequest::_internal_has_command() const { + return this != internal_default_instance() && _impl_.command_ != nullptr; +} +inline bool DoCommandRequest::has_command() const { + return _internal_has_command(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& DoCommandRequest::_internal_command() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.command_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& DoCommandRequest::command() const { + // @@protoc_insertion_point(field_get:viam.component.generic.v1.DoCommandRequest.command) + return _internal_command(); +} +inline void DoCommandRequest::unsafe_arena_set_allocated_command( + ::PROTOBUF_NAMESPACE_ID::Struct* command) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.command_); + } + _impl_.command_ = command; + if (command) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.generic.v1.DoCommandRequest.command) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* DoCommandRequest::release_command() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.command_; + _impl_.command_ = 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* DoCommandRequest::unsafe_arena_release_command() { + // @@protoc_insertion_point(field_release:viam.component.generic.v1.DoCommandRequest.command) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.command_; + _impl_.command_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* DoCommandRequest::_internal_mutable_command() { + + if (_impl_.command_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.command_ = p; + } + return _impl_.command_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* DoCommandRequest::mutable_command() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_command(); + // @@protoc_insertion_point(field_mutable:viam.component.generic.v1.DoCommandRequest.command) + return _msg; +} +inline void DoCommandRequest::set_allocated_command(::PROTOBUF_NAMESPACE_ID::Struct* command) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.command_); + } + if (command) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(command)); + if (message_arena != submessage_arena) { + command = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, command, submessage_arena); + } + + } else { + + } + _impl_.command_ = command; + // @@protoc_insertion_point(field_set_allocated:viam.component.generic.v1.DoCommandRequest.command) +} + +// ------------------------------------------------------------------- + +// DoCommandResponse + +// .google.protobuf.Struct result = 1 [json_name = "result"]; +inline bool DoCommandResponse::_internal_has_result() const { + return this != internal_default_instance() && _impl_.result_ != nullptr; +} +inline bool DoCommandResponse::has_result() const { + return _internal_has_result(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& DoCommandResponse::_internal_result() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.result_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& DoCommandResponse::result() const { + // @@protoc_insertion_point(field_get:viam.component.generic.v1.DoCommandResponse.result) + return _internal_result(); +} +inline void DoCommandResponse::unsafe_arena_set_allocated_result( + ::PROTOBUF_NAMESPACE_ID::Struct* result) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.result_); + } + _impl_.result_ = result; + if (result) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.generic.v1.DoCommandResponse.result) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* DoCommandResponse::release_result() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.result_; + _impl_.result_ = 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* DoCommandResponse::unsafe_arena_release_result() { + // @@protoc_insertion_point(field_release:viam.component.generic.v1.DoCommandResponse.result) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.result_; + _impl_.result_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* DoCommandResponse::_internal_mutable_result() { + + if (_impl_.result_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.result_ = p; + } + return _impl_.result_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* DoCommandResponse::mutable_result() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_result(); + // @@protoc_insertion_point(field_mutable:viam.component.generic.v1.DoCommandResponse.result) + return _msg; +} +inline void DoCommandResponse::set_allocated_result(::PROTOBUF_NAMESPACE_ID::Struct* result) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.result_); + } + if (result) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(result)); + if (message_arena != submessage_arena) { + result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, result, submessage_arena); + } + + } else { + + } + _impl_.result_ = result; + // @@protoc_insertion_point(field_set_allocated:viam.component.generic.v1.DoCommandResponse.result) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace generic +} // namespace component +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fgeneric_2fv1_2fgeneric_2eproto diff --git a/src/gen/component/gripper/v1/gripper.grpc.pb.cc b/src/gen/component/gripper/v1/gripper.grpc.pb.cc new file mode 100644 index 000000000..79e02ed3b --- /dev/null +++ b/src/gen/component/gripper/v1/gripper.grpc.pb.cc @@ -0,0 +1,176 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/gripper/v1/gripper.proto + +#include "component/gripper/v1/gripper.pb.h" +#include "component/gripper/v1/gripper.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace component { +namespace gripper { +namespace v1 { + +static const char* GripperService_method_names[] = { + "/viam.component.gripper.v1.GripperService/Open", + "/viam.component.gripper.v1.GripperService/Grab", + "/viam.component.gripper.v1.GripperService/Stop", +}; + +std::unique_ptr< GripperService::Stub> GripperService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< GripperService::Stub> stub(new GripperService::Stub(channel, options)); + return stub; +} + +GripperService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_Open_(GripperService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Grab_(GripperService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Stop_(GripperService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status GripperService::Stub::Open(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::viam::component::gripper::v1::OpenResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::gripper::v1::OpenRequest, ::viam::component::gripper::v1::OpenResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Open_, context, request, response); +} + +void GripperService::Stub::async::Open(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest* request, ::viam::component::gripper::v1::OpenResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::gripper::v1::OpenRequest, ::viam::component::gripper::v1::OpenResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Open_, context, request, response, std::move(f)); +} + +void GripperService::Stub::async::Open(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest* request, ::viam::component::gripper::v1::OpenResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Open_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::OpenResponse>* GripperService::Stub::PrepareAsyncOpenRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::gripper::v1::OpenResponse, ::viam::component::gripper::v1::OpenRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Open_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::OpenResponse>* GripperService::Stub::AsyncOpenRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncOpenRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status GripperService::Stub::Grab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest& request, ::viam::component::gripper::v1::GrabResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::gripper::v1::GrabRequest, ::viam::component::gripper::v1::GrabResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Grab_, context, request, response); +} + +void GripperService::Stub::async::Grab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest* request, ::viam::component::gripper::v1::GrabResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::gripper::v1::GrabRequest, ::viam::component::gripper::v1::GrabResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Grab_, context, request, response, std::move(f)); +} + +void GripperService::Stub::async::Grab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest* request, ::viam::component::gripper::v1::GrabResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Grab_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::GrabResponse>* GripperService::Stub::PrepareAsyncGrabRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::gripper::v1::GrabResponse, ::viam::component::gripper::v1::GrabRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Grab_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::GrabResponse>* GripperService::Stub::AsyncGrabRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGrabRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status GripperService::Stub::Stop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest& request, ::viam::component::gripper::v1::StopResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::gripper::v1::StopRequest, ::viam::component::gripper::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Stop_, context, request, response); +} + +void GripperService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest* request, ::viam::component::gripper::v1::StopResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::gripper::v1::StopRequest, ::viam::component::gripper::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); +} + +void GripperService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest* request, ::viam::component::gripper::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::StopResponse>* GripperService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::gripper::v1::StopResponse, ::viam::component::gripper::v1::StopRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Stop_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::StopResponse>* GripperService::Stub::AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncStopRaw(context, request, cq); + result->StartCall(); + return result; +} + +GripperService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + GripperService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< GripperService::Service, ::viam::component::gripper::v1::OpenRequest, ::viam::component::gripper::v1::OpenResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](GripperService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::gripper::v1::OpenRequest* req, + ::viam::component::gripper::v1::OpenResponse* resp) { + return service->Open(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + GripperService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< GripperService::Service, ::viam::component::gripper::v1::GrabRequest, ::viam::component::gripper::v1::GrabResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](GripperService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::gripper::v1::GrabRequest* req, + ::viam::component::gripper::v1::GrabResponse* resp) { + return service->Grab(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + GripperService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< GripperService::Service, ::viam::component::gripper::v1::StopRequest, ::viam::component::gripper::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](GripperService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::gripper::v1::StopRequest* req, + ::viam::component::gripper::v1::StopResponse* resp) { + return service->Stop(ctx, req, resp); + }, this))); +} + +GripperService::Service::~Service() { +} + +::grpc::Status GripperService::Service::Open(::grpc::ServerContext* context, const ::viam::component::gripper::v1::OpenRequest* request, ::viam::component::gripper::v1::OpenResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status GripperService::Service::Grab(::grpc::ServerContext* context, const ::viam::component::gripper::v1::GrabRequest* request, ::viam::component::gripper::v1::GrabResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status GripperService::Service::Stop(::grpc::ServerContext* context, const ::viam::component::gripper::v1::StopRequest* request, ::viam::component::gripper::v1::StopResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace component +} // namespace gripper +} // namespace v1 + diff --git a/src/gen/component/gripper/v1/gripper.grpc.pb.h b/src/gen/component/gripper/v1/gripper.grpc.pb.h new file mode 100644 index 000000000..1afc143a5 --- /dev/null +++ b/src/gen/component/gripper/v1/gripper.grpc.pb.h @@ -0,0 +1,570 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/gripper/v1/gripper.proto +#ifndef GRPC_component_2fgripper_2fv1_2fgripper_2eproto__INCLUDED +#define GRPC_component_2fgripper_2fv1_2fgripper_2eproto__INCLUDED + +#include "component/gripper/v1/gripper.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace component { +namespace gripper { +namespace v1 { + +// An GripperService services all grippers associated with a robot +class GripperService final { + public: + static constexpr char const* service_full_name() { + return "viam.component.gripper.v1.GripperService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // Open opens a gripper of the underlying robot. + virtual ::grpc::Status Open(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::viam::component::gripper::v1::OpenResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gripper::v1::OpenResponse>> AsyncOpen(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gripper::v1::OpenResponse>>(AsyncOpenRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gripper::v1::OpenResponse>> PrepareAsyncOpen(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gripper::v1::OpenResponse>>(PrepareAsyncOpenRaw(context, request, cq)); + } + // Grab requests a gripper of the underlying robot to grab. + virtual ::grpc::Status Grab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest& request, ::viam::component::gripper::v1::GrabResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gripper::v1::GrabResponse>> AsyncGrab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gripper::v1::GrabResponse>>(AsyncGrabRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gripper::v1::GrabResponse>> PrepareAsyncGrab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gripper::v1::GrabResponse>>(PrepareAsyncGrabRaw(context, request, cq)); + } + // Stop stops a robot's gripper + virtual ::grpc::Status Stop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest& request, ::viam::component::gripper::v1::StopResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gripper::v1::StopResponse>> AsyncStop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gripper::v1::StopResponse>>(AsyncStopRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gripper::v1::StopResponse>> PrepareAsyncStop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gripper::v1::StopResponse>>(PrepareAsyncStopRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // Open opens a gripper of the underlying robot. + virtual void Open(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest* request, ::viam::component::gripper::v1::OpenResponse* response, std::function) = 0; + virtual void Open(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest* request, ::viam::component::gripper::v1::OpenResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Grab requests a gripper of the underlying robot to grab. + virtual void Grab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest* request, ::viam::component::gripper::v1::GrabResponse* response, std::function) = 0; + virtual void Grab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest* request, ::viam::component::gripper::v1::GrabResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Stop stops a robot's gripper + virtual void Stop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest* request, ::viam::component::gripper::v1::StopResponse* response, std::function) = 0; + virtual void Stop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest* request, ::viam::component::gripper::v1::StopResponse* 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::ClientAsyncResponseReaderInterface< ::viam::component::gripper::v1::OpenResponse>* AsyncOpenRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gripper::v1::OpenResponse>* PrepareAsyncOpenRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gripper::v1::GrabResponse>* AsyncGrabRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gripper::v1::GrabResponse>* PrepareAsyncGrabRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gripper::v1::StopResponse>* AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gripper::v1::StopResponse>* PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest& 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()); + ::grpc::Status Open(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::viam::component::gripper::v1::OpenResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::OpenResponse>> AsyncOpen(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::OpenResponse>>(AsyncOpenRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::OpenResponse>> PrepareAsyncOpen(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::OpenResponse>>(PrepareAsyncOpenRaw(context, request, cq)); + } + ::grpc::Status Grab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest& request, ::viam::component::gripper::v1::GrabResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::GrabResponse>> AsyncGrab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::GrabResponse>>(AsyncGrabRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::GrabResponse>> PrepareAsyncGrab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::GrabResponse>>(PrepareAsyncGrabRaw(context, request, cq)); + } + ::grpc::Status Stop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest& request, ::viam::component::gripper::v1::StopResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::StopResponse>> AsyncStop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::StopResponse>>(AsyncStopRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::StopResponse>> PrepareAsyncStop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::StopResponse>>(PrepareAsyncStopRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void Open(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest* request, ::viam::component::gripper::v1::OpenResponse* response, std::function) override; + void Open(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest* request, ::viam::component::gripper::v1::OpenResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void Grab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest* request, ::viam::component::gripper::v1::GrabResponse* response, std::function) override; + void Grab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest* request, ::viam::component::gripper::v1::GrabResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void Stop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest* request, ::viam::component::gripper::v1::StopResponse* response, std::function) override; + void Stop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest* request, ::viam::component::gripper::v1::StopResponse* 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::ClientAsyncResponseReader< ::viam::component::gripper::v1::OpenResponse>* AsyncOpenRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::OpenResponse>* PrepareAsyncOpenRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::GrabResponse>* AsyncGrabRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::GrabResponse>* PrepareAsyncGrabRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::StopResponse>* AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::StopResponse>* PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_Open_; + const ::grpc::internal::RpcMethod rpcmethod_Grab_; + const ::grpc::internal::RpcMethod rpcmethod_Stop_; + }; + 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(); + // Open opens a gripper of the underlying robot. + virtual ::grpc::Status Open(::grpc::ServerContext* context, const ::viam::component::gripper::v1::OpenRequest* request, ::viam::component::gripper::v1::OpenResponse* response); + // Grab requests a gripper of the underlying robot to grab. + virtual ::grpc::Status Grab(::grpc::ServerContext* context, const ::viam::component::gripper::v1::GrabRequest* request, ::viam::component::gripper::v1::GrabResponse* response); + // Stop stops a robot's gripper + virtual ::grpc::Status Stop(::grpc::ServerContext* context, const ::viam::component::gripper::v1::StopRequest* request, ::viam::component::gripper::v1::StopResponse* response); + }; + template + class WithAsyncMethod_Open : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Open() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_Open() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Open(::grpc::ServerContext* /*context*/, const ::viam::component::gripper::v1::OpenRequest* /*request*/, ::viam::component::gripper::v1::OpenResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestOpen(::grpc::ServerContext* context, ::viam::component::gripper::v1::OpenRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::gripper::v1::OpenResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_Grab : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Grab() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_Grab() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Grab(::grpc::ServerContext* /*context*/, const ::viam::component::gripper::v1::GrabRequest* /*request*/, ::viam::component::gripper::v1::GrabResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGrab(::grpc::ServerContext* context, ::viam::component::gripper::v1::GrabRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::gripper::v1::GrabResponse>* 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 WithAsyncMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Stop() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::gripper::v1::StopRequest* /*request*/, ::viam::component::gripper::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestStop(::grpc::ServerContext* context, ::viam::component::gripper::v1::StopRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::gripper::v1::StopResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_Open > > AsyncService; + template + class WithCallbackMethod_Open : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Open() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::OpenRequest, ::viam::component::gripper::v1::OpenResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::gripper::v1::OpenRequest* request, ::viam::component::gripper::v1::OpenResponse* response) { return this->Open(context, request, response); }));} + void SetMessageAllocatorFor_Open( + ::grpc::MessageAllocator< ::viam::component::gripper::v1::OpenRequest, ::viam::component::gripper::v1::OpenResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::OpenRequest, ::viam::component::gripper::v1::OpenResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Open() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Open(::grpc::ServerContext* /*context*/, const ::viam::component::gripper::v1::OpenRequest* /*request*/, ::viam::component::gripper::v1::OpenResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Open( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gripper::v1::OpenRequest* /*request*/, ::viam::component::gripper::v1::OpenResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_Grab : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Grab() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::GrabRequest, ::viam::component::gripper::v1::GrabResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::gripper::v1::GrabRequest* request, ::viam::component::gripper::v1::GrabResponse* response) { return this->Grab(context, request, response); }));} + void SetMessageAllocatorFor_Grab( + ::grpc::MessageAllocator< ::viam::component::gripper::v1::GrabRequest, ::viam::component::gripper::v1::GrabResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::GrabRequest, ::viam::component::gripper::v1::GrabResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Grab() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Grab(::grpc::ServerContext* /*context*/, const ::viam::component::gripper::v1::GrabRequest* /*request*/, ::viam::component::gripper::v1::GrabResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Grab( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gripper::v1::GrabRequest* /*request*/, ::viam::component::gripper::v1::GrabResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Stop() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::StopRequest, ::viam::component::gripper::v1::StopResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::gripper::v1::StopRequest* request, ::viam::component::gripper::v1::StopResponse* response) { return this->Stop(context, request, response); }));} + void SetMessageAllocatorFor_Stop( + ::grpc::MessageAllocator< ::viam::component::gripper::v1::StopRequest, ::viam::component::gripper::v1::StopResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::StopRequest, ::viam::component::gripper::v1::StopResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::gripper::v1::StopRequest* /*request*/, ::viam::component::gripper::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Stop( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gripper::v1::StopRequest* /*request*/, ::viam::component::gripper::v1::StopResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_Open > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_Open : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Open() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_Open() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Open(::grpc::ServerContext* /*context*/, const ::viam::component::gripper::v1::OpenRequest* /*request*/, ::viam::component::gripper::v1::OpenResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_Grab : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Grab() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_Grab() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Grab(::grpc::ServerContext* /*context*/, const ::viam::component::gripper::v1::GrabRequest* /*request*/, ::viam::component::gripper::v1::GrabResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Stop() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::gripper::v1::StopRequest* /*request*/, ::viam::component::gripper::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_Open : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Open() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_Open() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Open(::grpc::ServerContext* /*context*/, const ::viam::component::gripper::v1::OpenRequest* /*request*/, ::viam::component::gripper::v1::OpenResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestOpen(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_Grab : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Grab() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_Grab() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Grab(::grpc::ServerContext* /*context*/, const ::viam::component::gripper::v1::GrabRequest* /*request*/, ::viam::component::gripper::v1::GrabResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGrab(::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 WithRawMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Stop() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::gripper::v1::StopRequest* /*request*/, ::viam::component::gripper::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestStop(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_Open : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Open() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Open(context, request, response); })); + } + ~WithRawCallbackMethod_Open() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Open(::grpc::ServerContext* /*context*/, const ::viam::component::gripper::v1::OpenRequest* /*request*/, ::viam::component::gripper::v1::OpenResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Open( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_Grab : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Grab() { + ::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->Grab(context, request, response); })); + } + ~WithRawCallbackMethod_Grab() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Grab(::grpc::ServerContext* /*context*/, const ::viam::component::gripper::v1::GrabRequest* /*request*/, ::viam::component::gripper::v1::GrabResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Grab( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Stop() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Stop(context, request, response); })); + } + ~WithRawCallbackMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::gripper::v1::StopRequest* /*request*/, ::viam::component::gripper::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Stop( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_Open : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Open() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::gripper::v1::OpenRequest, ::viam::component::gripper::v1::OpenResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::gripper::v1::OpenRequest, ::viam::component::gripper::v1::OpenResponse>* streamer) { + return this->StreamedOpen(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Open() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Open(::grpc::ServerContext* /*context*/, const ::viam::component::gripper::v1::OpenRequest* /*request*/, ::viam::component::gripper::v1::OpenResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedOpen(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::gripper::v1::OpenRequest,::viam::component::gripper::v1::OpenResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_Grab : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Grab() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::gripper::v1::GrabRequest, ::viam::component::gripper::v1::GrabResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::gripper::v1::GrabRequest, ::viam::component::gripper::v1::GrabResponse>* streamer) { + return this->StreamedGrab(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Grab() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Grab(::grpc::ServerContext* /*context*/, const ::viam::component::gripper::v1::GrabRequest* /*request*/, ::viam::component::gripper::v1::GrabResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGrab(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::gripper::v1::GrabRequest,::viam::component::gripper::v1::GrabResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Stop() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::gripper::v1::StopRequest, ::viam::component::gripper::v1::StopResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::gripper::v1::StopRequest, ::viam::component::gripper::v1::StopResponse>* streamer) { + return this->StreamedStop(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::gripper::v1::StopRequest* /*request*/, ::viam::component::gripper::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedStop(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::gripper::v1::StopRequest,::viam::component::gripper::v1::StopResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_Open > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_Open > > StreamedService; +}; + +} // namespace v1 +} // namespace gripper +} // namespace component +} // namespace viam + + +#endif // GRPC_component_2fgripper_2fv1_2fgripper_2eproto__INCLUDED diff --git a/src/gen/component/gripper/v1/gripper.pb.cc b/src/gen/component/gripper/v1/gripper.pb.cc new file mode 100644 index 000000000..554894ca2 --- /dev/null +++ b/src/gen/component/gripper/v1/gripper.pb.cc @@ -0,0 +1,1114 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/gripper/v1/gripper.proto + +#include "component/gripper/v1/gripper.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 component { +namespace gripper { +namespace v1 { +PROTOBUF_CONSTEXPR OpenRequest::OpenRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct OpenRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR OpenRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OpenRequestDefaultTypeInternal() {} + union { + OpenRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OpenRequestDefaultTypeInternal _OpenRequest_default_instance_; +PROTOBUF_CONSTEXPR OpenResponse::OpenResponse( + ::_pbi::ConstantInitialized) {} +struct OpenResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR OpenResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OpenResponseDefaultTypeInternal() {} + union { + OpenResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OpenResponseDefaultTypeInternal _OpenResponse_default_instance_; +PROTOBUF_CONSTEXPR GrabRequest::GrabRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GrabRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrabRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GrabRequestDefaultTypeInternal() {} + union { + GrabRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrabRequestDefaultTypeInternal _GrabRequest_default_instance_; +PROTOBUF_CONSTEXPR GrabResponse::GrabResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.success_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GrabResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrabResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GrabResponseDefaultTypeInternal() {} + union { + GrabResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrabResponseDefaultTypeInternal _GrabResponse_default_instance_; +PROTOBUF_CONSTEXPR StopRequest::StopRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StopRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopRequestDefaultTypeInternal() {} + union { + StopRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopRequestDefaultTypeInternal _StopRequest_default_instance_; +PROTOBUF_CONSTEXPR StopResponse::StopResponse( + ::_pbi::ConstantInitialized) {} +struct StopResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopResponseDefaultTypeInternal() {} + union { + StopResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopResponseDefaultTypeInternal _StopResponse_default_instance_; +} // namespace v1 +} // namespace gripper +} // namespace component +} // namespace viam +static ::_pb::Metadata file_level_metadata_component_2fgripper_2fv1_2fgripper_2eproto[6]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fgripper_2fv1_2fgripper_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fgripper_2fv1_2fgripper_2eproto = nullptr; + +const uint32_t TableStruct_component_2fgripper_2fv1_2fgripper_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::OpenRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::OpenRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::OpenResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::GrabRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::GrabRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::GrabResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::GrabResponse, _impl_.success_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::StopRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::StopRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::StopResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::gripper::v1::OpenRequest)}, + { 7, -1, -1, sizeof(::viam::component::gripper::v1::OpenResponse)}, + { 13, -1, -1, sizeof(::viam::component::gripper::v1::GrabRequest)}, + { 20, -1, -1, sizeof(::viam::component::gripper::v1::GrabResponse)}, + { 27, -1, -1, sizeof(::viam::component::gripper::v1::StopRequest)}, + { 34, -1, -1, sizeof(::viam::component::gripper::v1::StopResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::component::gripper::v1::_OpenRequest_default_instance_._instance, + &::viam::component::gripper::v1::_OpenResponse_default_instance_._instance, + &::viam::component::gripper::v1::_GrabRequest_default_instance_._instance, + &::viam::component::gripper::v1::_GrabResponse_default_instance_._instance, + &::viam::component::gripper::v1::_StopRequest_default_instance_._instance, + &::viam::component::gripper::v1::_StopResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_component_2fgripper_2fv1_2fgripper_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\"component/gripper/v1/gripper.proto\022\031vi" + "am.component.gripper.v1\032\034google/api/anno" + "tations.proto\"!\n\013OpenRequest\022\022\n\004name\030\001 \001" + "(\tR\004name\"\016\n\014OpenResponse\"!\n\013GrabRequest\022" + "\022\n\004name\030\001 \001(\tR\004name\"(\n\014GrabResponse\022\030\n\007s" + "uccess\030\001 \001(\010R\007success\"!\n\013StopRequest\022\022\n\004" + "name\030\001 \001(\tR\004name\"\016\n\014StopResponse2\272\003\n\016Gri" + "pperService\022\213\001\n\004Open\022&.viam.component.gr" + "ipper.v1.OpenRequest\032\'.viam.component.gr" + "ipper.v1.OpenResponse\"2\202\323\344\223\002,\032*/viam/api" + "/v1/component/gripper/{name}/open\022\213\001\n\004Gr" + "ab\022&.viam.component.gripper.v1.GrabReque" + "st\032\'.viam.component.gripper.v1.GrabRespo" + "nse\"2\202\323\344\223\002,\032*/viam/api/v1/component/grip" + "per/{name}/grab\022\213\001\n\004Stop\022&.viam.componen" + "t.gripper.v1.StopRequest\032\'.viam.componen" + "t.gripper.v1.StopResponse\"2\202\323\344\223\002,\"*/viam" + "/api/v1/component/gripper/{name}/stopBE\n" + "\035com.viam.component.gripper.v1Z$go.viam." + "com/api/component/gripper/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_deps[1] = { + &::descriptor_table_google_2fapi_2fannotations_2eproto, +}; +static ::_pbi::once_flag descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto = { + false, false, 796, descriptor_table_protodef_component_2fgripper_2fv1_2fgripper_2eproto, + "component/gripper/v1/gripper.proto", + &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_once, descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_deps, 1, 6, + schemas, file_default_instances, TableStruct_component_2fgripper_2fv1_2fgripper_2eproto::offsets, + file_level_metadata_component_2fgripper_2fv1_2fgripper_2eproto, file_level_enum_descriptors_component_2fgripper_2fv1_2fgripper_2eproto, + file_level_service_descriptors_component_2fgripper_2fv1_2fgripper_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_getter() { + return &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fgripper_2fv1_2fgripper_2eproto(&descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto); +namespace viam { +namespace component { +namespace gripper { +namespace v1 { + +// =================================================================== + +class OpenRequest::_Internal { + public: +}; + +OpenRequest::OpenRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.gripper.v1.OpenRequest) +} +OpenRequest::OpenRequest(const OpenRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + OpenRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.gripper.v1.OpenRequest) +} + +inline void OpenRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +OpenRequest::~OpenRequest() { + // @@protoc_insertion_point(destructor:viam.component.gripper.v1.OpenRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void OpenRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void OpenRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void OpenRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.gripper.v1.OpenRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* OpenRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.gripper.v1.OpenRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* OpenRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.gripper.v1.OpenRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.gripper.v1.OpenRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.gripper.v1.OpenRequest) + return target; +} + +size_t OpenRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.gripper.v1.OpenRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OpenRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + OpenRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OpenRequest::GetClassData() const { return &_class_data_; } + + +void OpenRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gripper.v1.OpenRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void OpenRequest::CopyFrom(const OpenRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.gripper.v1.OpenRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OpenRequest::IsInitialized() const { + return true; +} + +void OpenRequest::InternalSwap(OpenRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata OpenRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_getter, &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_once, + file_level_metadata_component_2fgripper_2fv1_2fgripper_2eproto[0]); +} + +// =================================================================== + +class OpenResponse::_Internal { + public: +}; + +OpenResponse::OpenResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.gripper.v1.OpenResponse) +} +OpenResponse::OpenResponse(const OpenResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + OpenResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.gripper.v1.OpenResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OpenResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OpenResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata OpenResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_getter, &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_once, + file_level_metadata_component_2fgripper_2fv1_2fgripper_2eproto[1]); +} + +// =================================================================== + +class GrabRequest::_Internal { + public: +}; + +GrabRequest::GrabRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.gripper.v1.GrabRequest) +} +GrabRequest::GrabRequest(const GrabRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GrabRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.gripper.v1.GrabRequest) +} + +inline void GrabRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GrabRequest::~GrabRequest() { + // @@protoc_insertion_point(destructor:viam.component.gripper.v1.GrabRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GrabRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void GrabRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GrabRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.gripper.v1.GrabRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GrabRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.gripper.v1.GrabRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GrabRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.gripper.v1.GrabRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.gripper.v1.GrabRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.gripper.v1.GrabRequest) + return target; +} + +size_t GrabRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.gripper.v1.GrabRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GrabRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GrabRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GrabRequest::GetClassData() const { return &_class_data_; } + + +void GrabRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gripper.v1.GrabRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GrabRequest::CopyFrom(const GrabRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.gripper.v1.GrabRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GrabRequest::IsInitialized() const { + return true; +} + +void GrabRequest::InternalSwap(GrabRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GrabRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_getter, &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_once, + file_level_metadata_component_2fgripper_2fv1_2fgripper_2eproto[2]); +} + +// =================================================================== + +class GrabResponse::_Internal { + public: +}; + +GrabResponse::GrabResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.gripper.v1.GrabResponse) +} +GrabResponse::GrabResponse(const GrabResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GrabResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.success_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.success_ = from._impl_.success_; + // @@protoc_insertion_point(copy_constructor:viam.component.gripper.v1.GrabResponse) +} + +inline void GrabResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.success_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GrabResponse::~GrabResponse() { + // @@protoc_insertion_point(destructor:viam.component.gripper.v1.GrabResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GrabResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GrabResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GrabResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.gripper.v1.GrabResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.success_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GrabResponse::_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) { + // bool success = 1 [json_name = "success"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GrabResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.gripper.v1.GrabResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bool success = 1 [json_name = "success"]; + if (this->_internal_success() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_success(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.gripper.v1.GrabResponse) + return target; +} + +size_t GrabResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.gripper.v1.GrabResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bool success = 1 [json_name = "success"]; + if (this->_internal_success() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GrabResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GrabResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GrabResponse::GetClassData() const { return &_class_data_; } + + +void GrabResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gripper.v1.GrabResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_success() != 0) { + _this->_internal_set_success(from._internal_success()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GrabResponse::CopyFrom(const GrabResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.gripper.v1.GrabResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GrabResponse::IsInitialized() const { + return true; +} + +void GrabResponse::InternalSwap(GrabResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.success_, other->_impl_.success_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GrabResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_getter, &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_once, + file_level_metadata_component_2fgripper_2fv1_2fgripper_2eproto[3]); +} + +// =================================================================== + +class StopRequest::_Internal { + public: +}; + +StopRequest::StopRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.gripper.v1.StopRequest) +} +StopRequest::StopRequest(const StopRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + StopRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.gripper.v1.StopRequest) +} + +inline void StopRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +StopRequest::~StopRequest() { + // @@protoc_insertion_point(destructor:viam.component.gripper.v1.StopRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void StopRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void StopRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void StopRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.gripper.v1.StopRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StopRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.gripper.v1.StopRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* StopRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.gripper.v1.StopRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.gripper.v1.StopRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.gripper.v1.StopRequest) + return target; +} + +size_t StopRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.gripper.v1.StopRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + StopRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopRequest::GetClassData() const { return &_class_data_; } + + +void StopRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gripper.v1.StopRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void StopRequest::CopyFrom(const StopRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.gripper.v1.StopRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StopRequest::IsInitialized() const { + return true; +} + +void StopRequest::InternalSwap(StopRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StopRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_getter, &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_once, + file_level_metadata_component_2fgripper_2fv1_2fgripper_2eproto[4]); +} + +// =================================================================== + +class StopResponse::_Internal { + public: +}; + +StopResponse::StopResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.gripper.v1.StopResponse) +} +StopResponse::StopResponse(const StopResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + StopResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.gripper.v1.StopResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata StopResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_getter, &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_once, + file_level_metadata_component_2fgripper_2fv1_2fgripper_2eproto[5]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace gripper +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::gripper::v1::OpenRequest* +Arena::CreateMaybeMessage< ::viam::component::gripper::v1::OpenRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gripper::v1::OpenRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gripper::v1::OpenResponse* +Arena::CreateMaybeMessage< ::viam::component::gripper::v1::OpenResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gripper::v1::OpenResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gripper::v1::GrabRequest* +Arena::CreateMaybeMessage< ::viam::component::gripper::v1::GrabRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gripper::v1::GrabRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gripper::v1::GrabResponse* +Arena::CreateMaybeMessage< ::viam::component::gripper::v1::GrabResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gripper::v1::GrabResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gripper::v1::StopRequest* +Arena::CreateMaybeMessage< ::viam::component::gripper::v1::StopRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gripper::v1::StopRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gripper::v1::StopResponse* +Arena::CreateMaybeMessage< ::viam::component::gripper::v1::StopResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gripper::v1::StopResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/component/gripper/v1/gripper.pb.h b/src/gen/component/gripper/v1/gripper.pb.h new file mode 100644 index 000000000..e5a980fa1 --- /dev/null +++ b/src/gen/component/gripper/v1/gripper.pb.h @@ -0,0 +1,1156 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/gripper/v1/gripper.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fgripper_2fv1_2fgripper_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fgripper_2fv1_2fgripper_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "google/api/annotations.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_component_2fgripper_2fv1_2fgripper_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_component_2fgripper_2fv1_2fgripper_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto; +namespace viam { +namespace component { +namespace gripper { +namespace v1 { +class GrabRequest; +struct GrabRequestDefaultTypeInternal; +extern GrabRequestDefaultTypeInternal _GrabRequest_default_instance_; +class GrabResponse; +struct GrabResponseDefaultTypeInternal; +extern GrabResponseDefaultTypeInternal _GrabResponse_default_instance_; +class OpenRequest; +struct OpenRequestDefaultTypeInternal; +extern OpenRequestDefaultTypeInternal _OpenRequest_default_instance_; +class OpenResponse; +struct OpenResponseDefaultTypeInternal; +extern OpenResponseDefaultTypeInternal _OpenResponse_default_instance_; +class StopRequest; +struct StopRequestDefaultTypeInternal; +extern StopRequestDefaultTypeInternal _StopRequest_default_instance_; +class StopResponse; +struct StopResponseDefaultTypeInternal; +extern StopResponseDefaultTypeInternal _StopResponse_default_instance_; +} // namespace v1 +} // namespace gripper +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::gripper::v1::GrabRequest* Arena::CreateMaybeMessage<::viam::component::gripper::v1::GrabRequest>(Arena*); +template<> ::viam::component::gripper::v1::GrabResponse* Arena::CreateMaybeMessage<::viam::component::gripper::v1::GrabResponse>(Arena*); +template<> ::viam::component::gripper::v1::OpenRequest* Arena::CreateMaybeMessage<::viam::component::gripper::v1::OpenRequest>(Arena*); +template<> ::viam::component::gripper::v1::OpenResponse* Arena::CreateMaybeMessage<::viam::component::gripper::v1::OpenResponse>(Arena*); +template<> ::viam::component::gripper::v1::StopRequest* Arena::CreateMaybeMessage<::viam::component::gripper::v1::StopRequest>(Arena*); +template<> ::viam::component::gripper::v1::StopResponse* Arena::CreateMaybeMessage<::viam::component::gripper::v1::StopResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace component { +namespace gripper { +namespace v1 { + +// =================================================================== + +class OpenRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.OpenRequest) */ { + public: + inline OpenRequest() : OpenRequest(nullptr) {} + ~OpenRequest() override; + explicit PROTOBUF_CONSTEXPR OpenRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + OpenRequest(const OpenRequest& from); + OpenRequest(OpenRequest&& from) noexcept + : OpenRequest() { + *this = ::std::move(from); + } + + inline OpenRequest& operator=(const OpenRequest& from) { + CopyFrom(from); + return *this; + } + inline OpenRequest& operator=(OpenRequest&& 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 OpenRequest& default_instance() { + return *internal_default_instance(); + } + static inline const OpenRequest* internal_default_instance() { + return reinterpret_cast( + &_OpenRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(OpenRequest& a, OpenRequest& b) { + a.Swap(&b); + } + inline void Swap(OpenRequest* 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(OpenRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + OpenRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const OpenRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const OpenRequest& from) { + OpenRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OpenRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gripper.v1.OpenRequest"; + } + protected: + explicit OpenRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.component.gripper.v1.OpenRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fgripper_2fv1_2fgripper_2eproto; +}; +// ------------------------------------------------------------------- + +class OpenResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.OpenResponse) */ { + public: + inline OpenResponse() : OpenResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR OpenResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + OpenResponse(const OpenResponse& from); + OpenResponse(OpenResponse&& from) noexcept + : OpenResponse() { + *this = ::std::move(from); + } + + inline OpenResponse& operator=(const OpenResponse& from) { + CopyFrom(from); + return *this; + } + inline OpenResponse& operator=(OpenResponse&& 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 OpenResponse& default_instance() { + return *internal_default_instance(); + } + static inline const OpenResponse* internal_default_instance() { + return reinterpret_cast( + &_OpenResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(OpenResponse& a, OpenResponse& b) { + a.Swap(&b); + } + inline void Swap(OpenResponse* 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(OpenResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + OpenResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const OpenResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const OpenResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gripper.v1.OpenResponse"; + } + protected: + explicit OpenResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.gripper.v1.OpenResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2fgripper_2fv1_2fgripper_2eproto; +}; +// ------------------------------------------------------------------- + +class GrabRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.GrabRequest) */ { + public: + inline GrabRequest() : GrabRequest(nullptr) {} + ~GrabRequest() override; + explicit PROTOBUF_CONSTEXPR GrabRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GrabRequest(const GrabRequest& from); + GrabRequest(GrabRequest&& from) noexcept + : GrabRequest() { + *this = ::std::move(from); + } + + inline GrabRequest& operator=(const GrabRequest& from) { + CopyFrom(from); + return *this; + } + inline GrabRequest& operator=(GrabRequest&& 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 GrabRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GrabRequest* internal_default_instance() { + return reinterpret_cast( + &_GrabRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(GrabRequest& a, GrabRequest& b) { + a.Swap(&b); + } + inline void Swap(GrabRequest* 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(GrabRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GrabRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GrabRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GrabRequest& from) { + GrabRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GrabRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gripper.v1.GrabRequest"; + } + protected: + explicit GrabRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.component.gripper.v1.GrabRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fgripper_2fv1_2fgripper_2eproto; +}; +// ------------------------------------------------------------------- + +class GrabResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.GrabResponse) */ { + public: + inline GrabResponse() : GrabResponse(nullptr) {} + ~GrabResponse() override; + explicit PROTOBUF_CONSTEXPR GrabResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GrabResponse(const GrabResponse& from); + GrabResponse(GrabResponse&& from) noexcept + : GrabResponse() { + *this = ::std::move(from); + } + + inline GrabResponse& operator=(const GrabResponse& from) { + CopyFrom(from); + return *this; + } + inline GrabResponse& operator=(GrabResponse&& 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 GrabResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GrabResponse* internal_default_instance() { + return reinterpret_cast( + &_GrabResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(GrabResponse& a, GrabResponse& b) { + a.Swap(&b); + } + inline void Swap(GrabResponse* 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(GrabResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GrabResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GrabResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GrabResponse& from) { + GrabResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GrabResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gripper.v1.GrabResponse"; + } + protected: + explicit GrabResponse(::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 { + kSuccessFieldNumber = 1, + }; + // bool success = 1 [json_name = "success"]; + void clear_success(); + bool success() const; + void set_success(bool value); + private: + bool _internal_success() const; + void _internal_set_success(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.gripper.v1.GrabResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + bool success_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fgripper_2fv1_2fgripper_2eproto; +}; +// ------------------------------------------------------------------- + +class StopRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.StopRequest) */ { + public: + inline StopRequest() : StopRequest(nullptr) {} + ~StopRequest() override; + explicit PROTOBUF_CONSTEXPR StopRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StopRequest(const StopRequest& from); + StopRequest(StopRequest&& from) noexcept + : StopRequest() { + *this = ::std::move(from); + } + + inline StopRequest& operator=(const StopRequest& from) { + CopyFrom(from); + return *this; + } + inline StopRequest& operator=(StopRequest&& 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 StopRequest& default_instance() { + return *internal_default_instance(); + } + static inline const StopRequest* internal_default_instance() { + return reinterpret_cast( + &_StopRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(StopRequest& a, StopRequest& b) { + a.Swap(&b); + } + inline void Swap(StopRequest* 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(StopRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StopRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StopRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const StopRequest& from) { + StopRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StopRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gripper.v1.StopRequest"; + } + protected: + explicit StopRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.component.gripper.v1.StopRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fgripper_2fv1_2fgripper_2eproto; +}; +// ------------------------------------------------------------------- + +class StopResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.StopResponse) */ { + public: + inline StopResponse() : StopResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR StopResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StopResponse(const StopResponse& from); + StopResponse(StopResponse&& from) noexcept + : StopResponse() { + *this = ::std::move(from); + } + + inline StopResponse& operator=(const StopResponse& from) { + CopyFrom(from); + return *this; + } + inline StopResponse& operator=(StopResponse&& 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 StopResponse& default_instance() { + return *internal_default_instance(); + } + static inline const StopResponse* internal_default_instance() { + return reinterpret_cast( + &_StopResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(StopResponse& a, StopResponse& b) { + a.Swap(&b); + } + inline void Swap(StopResponse* 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(StopResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StopResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gripper.v1.StopResponse"; + } + protected: + explicit StopResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.gripper.v1.StopResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2fgripper_2fv1_2fgripper_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// OpenRequest + +// string name = 1 [json_name = "name"]; +inline void OpenRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& OpenRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.gripper.v1.OpenRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void OpenRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.gripper.v1.OpenRequest.name) +} +inline std::string* OpenRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.gripper.v1.OpenRequest.name) + return _s; +} +inline const std::string& OpenRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void OpenRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* OpenRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* OpenRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.gripper.v1.OpenRequest.name) + return _impl_.name_.Release(); +} +inline void OpenRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.gripper.v1.OpenRequest.name) +} + +// ------------------------------------------------------------------- + +// OpenResponse + +// ------------------------------------------------------------------- + +// GrabRequest + +// string name = 1 [json_name = "name"]; +inline void GrabRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GrabRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.gripper.v1.GrabRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GrabRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.gripper.v1.GrabRequest.name) +} +inline std::string* GrabRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.gripper.v1.GrabRequest.name) + return _s; +} +inline const std::string& GrabRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GrabRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GrabRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GrabRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.gripper.v1.GrabRequest.name) + return _impl_.name_.Release(); +} +inline void GrabRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.gripper.v1.GrabRequest.name) +} + +// ------------------------------------------------------------------- + +// GrabResponse + +// bool success = 1 [json_name = "success"]; +inline void GrabResponse::clear_success() { + _impl_.success_ = false; +} +inline bool GrabResponse::_internal_success() const { + return _impl_.success_; +} +inline bool GrabResponse::success() const { + // @@protoc_insertion_point(field_get:viam.component.gripper.v1.GrabResponse.success) + return _internal_success(); +} +inline void GrabResponse::_internal_set_success(bool value) { + + _impl_.success_ = value; +} +inline void GrabResponse::set_success(bool value) { + _internal_set_success(value); + // @@protoc_insertion_point(field_set:viam.component.gripper.v1.GrabResponse.success) +} + +// ------------------------------------------------------------------- + +// StopRequest + +// string name = 1 [json_name = "name"]; +inline void StopRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& StopRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.gripper.v1.StopRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void StopRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.gripper.v1.StopRequest.name) +} +inline std::string* StopRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.gripper.v1.StopRequest.name) + return _s; +} +inline const std::string& StopRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void StopRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* StopRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* StopRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.gripper.v1.StopRequest.name) + return _impl_.name_.Release(); +} +inline void StopRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.gripper.v1.StopRequest.name) +} + +// ------------------------------------------------------------------- + +// StopResponse + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace gripper +} // namespace component +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fgripper_2fv1_2fgripper_2eproto diff --git a/src/gen/component/inputcontroller/v1/input_controller.grpc.pb.cc b/src/gen/component/inputcontroller/v1/input_controller.grpc.pb.cc new file mode 100644 index 000000000..9f0489ab8 --- /dev/null +++ b/src/gen/component/inputcontroller/v1/input_controller.grpc.pb.cc @@ -0,0 +1,211 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/inputcontroller/v1/input_controller.proto + +#include "component/inputcontroller/v1/input_controller.pb.h" +#include "component/inputcontroller/v1/input_controller.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace component { +namespace inputcontroller { +namespace v1 { + +static const char* InputControllerService_method_names[] = { + "/viam.component.inputcontroller.v1.InputControllerService/GetControls", + "/viam.component.inputcontroller.v1.InputControllerService/GetEvents", + "/viam.component.inputcontroller.v1.InputControllerService/StreamEvents", + "/viam.component.inputcontroller.v1.InputControllerService/TriggerEvent", +}; + +std::unique_ptr< InputControllerService::Stub> InputControllerService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< InputControllerService::Stub> stub(new InputControllerService::Stub(channel, options)); + return stub; +} + +InputControllerService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_GetControls_(InputControllerService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetEvents_(InputControllerService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_StreamEvents_(InputControllerService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_TriggerEvent_(InputControllerService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status InputControllerService::Stub::GetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::viam::component::inputcontroller::v1::GetControlsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::inputcontroller::v1::GetControlsRequest, ::viam::component::inputcontroller::v1::GetControlsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetControls_, context, request, response); +} + +void InputControllerService::Stub::async::GetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::inputcontroller::v1::GetControlsRequest, ::viam::component::inputcontroller::v1::GetControlsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetControls_, context, request, response, std::move(f)); +} + +void InputControllerService::Stub::async::GetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetControls_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetControlsResponse>* InputControllerService::Stub::PrepareAsyncGetControlsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::inputcontroller::v1::GetControlsResponse, ::viam::component::inputcontroller::v1::GetControlsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetControls_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetControlsResponse>* InputControllerService::Stub::AsyncGetControlsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetControlsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status InputControllerService::Stub::GetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest& request, ::viam::component::inputcontroller::v1::GetEventsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::inputcontroller::v1::GetEventsRequest, ::viam::component::inputcontroller::v1::GetEventsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetEvents_, context, request, response); +} + +void InputControllerService::Stub::async::GetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::inputcontroller::v1::GetEventsRequest, ::viam::component::inputcontroller::v1::GetEventsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetEvents_, context, request, response, std::move(f)); +} + +void InputControllerService::Stub::async::GetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetEvents_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetEventsResponse>* InputControllerService::Stub::PrepareAsyncGetEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::inputcontroller::v1::GetEventsResponse, ::viam::component::inputcontroller::v1::GetEventsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetEvents_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetEventsResponse>* InputControllerService::Stub::AsyncGetEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetEventsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::ClientReader< ::viam::component::inputcontroller::v1::StreamEventsResponse>* InputControllerService::Stub::StreamEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest& request) { + return ::grpc::internal::ClientReaderFactory< ::viam::component::inputcontroller::v1::StreamEventsResponse>::Create(channel_.get(), rpcmethod_StreamEvents_, context, request); +} + +void InputControllerService::Stub::async::StreamEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest* request, ::grpc::ClientReadReactor< ::viam::component::inputcontroller::v1::StreamEventsResponse>* reactor) { + ::grpc::internal::ClientCallbackReaderFactory< ::viam::component::inputcontroller::v1::StreamEventsResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_StreamEvents_, context, request, reactor); +} + +::grpc::ClientAsyncReader< ::viam::component::inputcontroller::v1::StreamEventsResponse>* InputControllerService::Stub::AsyncStreamEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc::internal::ClientAsyncReaderFactory< ::viam::component::inputcontroller::v1::StreamEventsResponse>::Create(channel_.get(), cq, rpcmethod_StreamEvents_, context, request, true, tag); +} + +::grpc::ClientAsyncReader< ::viam::component::inputcontroller::v1::StreamEventsResponse>* InputControllerService::Stub::PrepareAsyncStreamEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncReaderFactory< ::viam::component::inputcontroller::v1::StreamEventsResponse>::Create(channel_.get(), cq, rpcmethod_StreamEvents_, context, request, false, nullptr); +} + +::grpc::Status InputControllerService::Stub::TriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest& request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::inputcontroller::v1::TriggerEventRequest, ::viam::component::inputcontroller::v1::TriggerEventResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_TriggerEvent_, context, request, response); +} + +void InputControllerService::Stub::async::TriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::inputcontroller::v1::TriggerEventRequest, ::viam::component::inputcontroller::v1::TriggerEventResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_TriggerEvent_, context, request, response, std::move(f)); +} + +void InputControllerService::Stub::async::TriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_TriggerEvent_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::TriggerEventResponse>* InputControllerService::Stub::PrepareAsyncTriggerEventRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::inputcontroller::v1::TriggerEventResponse, ::viam::component::inputcontroller::v1::TriggerEventRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_TriggerEvent_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::TriggerEventResponse>* InputControllerService::Stub::AsyncTriggerEventRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncTriggerEventRaw(context, request, cq); + result->StartCall(); + return result; +} + +InputControllerService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + InputControllerService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< InputControllerService::Service, ::viam::component::inputcontroller::v1::GetControlsRequest, ::viam::component::inputcontroller::v1::GetControlsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](InputControllerService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::inputcontroller::v1::GetControlsRequest* req, + ::viam::component::inputcontroller::v1::GetControlsResponse* resp) { + return service->GetControls(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + InputControllerService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< InputControllerService::Service, ::viam::component::inputcontroller::v1::GetEventsRequest, ::viam::component::inputcontroller::v1::GetEventsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](InputControllerService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::inputcontroller::v1::GetEventsRequest* req, + ::viam::component::inputcontroller::v1::GetEventsResponse* resp) { + return service->GetEvents(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + InputControllerService_method_names[2], + ::grpc::internal::RpcMethod::SERVER_STREAMING, + new ::grpc::internal::ServerStreamingHandler< InputControllerService::Service, ::viam::component::inputcontroller::v1::StreamEventsRequest, ::viam::component::inputcontroller::v1::StreamEventsResponse>( + [](InputControllerService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::inputcontroller::v1::StreamEventsRequest* req, + ::grpc::ServerWriter<::viam::component::inputcontroller::v1::StreamEventsResponse>* writer) { + return service->StreamEvents(ctx, req, writer); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + InputControllerService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< InputControllerService::Service, ::viam::component::inputcontroller::v1::TriggerEventRequest, ::viam::component::inputcontroller::v1::TriggerEventResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](InputControllerService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::inputcontroller::v1::TriggerEventRequest* req, + ::viam::component::inputcontroller::v1::TriggerEventResponse* resp) { + return service->TriggerEvent(ctx, req, resp); + }, this))); +} + +InputControllerService::Service::~Service() { +} + +::grpc::Status InputControllerService::Service::GetControls(::grpc::ServerContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status InputControllerService::Service::GetEvents(::grpc::ServerContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status InputControllerService::Service::StreamEvents(::grpc::ServerContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest* request, ::grpc::ServerWriter< ::viam::component::inputcontroller::v1::StreamEventsResponse>* writer) { + (void) context; + (void) request; + (void) writer; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status InputControllerService::Service::TriggerEvent(::grpc::ServerContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace component +} // namespace inputcontroller +} // namespace v1 + diff --git a/src/gen/component/inputcontroller/v1/input_controller.grpc.pb.h b/src/gen/component/inputcontroller/v1/input_controller.grpc.pb.h new file mode 100644 index 000000000..c5db053ce --- /dev/null +++ b/src/gen/component/inputcontroller/v1/input_controller.grpc.pb.h @@ -0,0 +1,732 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/inputcontroller/v1/input_controller.proto +#ifndef GRPC_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto__INCLUDED +#define GRPC_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto__INCLUDED + +#include "component/inputcontroller/v1/input_controller.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace component { +namespace inputcontroller { +namespace v1 { + +// InputControllerService servicestains all input controller associated with a robot +class InputControllerService final { + public: + static constexpr char const* service_full_name() { + return "viam.component.inputcontroller.v1.InputControllerService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // GetControls returns a list of GetControls provided by the Controller + virtual ::grpc::Status GetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::viam::component::inputcontroller::v1::GetControlsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::inputcontroller::v1::GetControlsResponse>> AsyncGetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::inputcontroller::v1::GetControlsResponse>>(AsyncGetControlsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::inputcontroller::v1::GetControlsResponse>> PrepareAsyncGetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::inputcontroller::v1::GetControlsResponse>>(PrepareAsyncGetControlsRaw(context, request, cq)); + } + // GetEvents returns a list of events representing the last event on each control of a give Input Controller + virtual ::grpc::Status GetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest& request, ::viam::component::inputcontroller::v1::GetEventsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::inputcontroller::v1::GetEventsResponse>> AsyncGetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::inputcontroller::v1::GetEventsResponse>>(AsyncGetEventsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::inputcontroller::v1::GetEventsResponse>> PrepareAsyncGetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::inputcontroller::v1::GetEventsResponse>>(PrepareAsyncGetEventsRaw(context, request, cq)); + } + // StreamEvents starts a stream of InputControllerEvents for the given controls (buttons/axes) on a robot's input controller + std::unique_ptr< ::grpc::ClientReaderInterface< ::viam::component::inputcontroller::v1::StreamEventsResponse>> StreamEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest& request) { + return std::unique_ptr< ::grpc::ClientReaderInterface< ::viam::component::inputcontroller::v1::StreamEventsResponse>>(StreamEventsRaw(context, request)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::component::inputcontroller::v1::StreamEventsResponse>> AsyncStreamEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::component::inputcontroller::v1::StreamEventsResponse>>(AsyncStreamEventsRaw(context, request, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::component::inputcontroller::v1::StreamEventsResponse>> PrepareAsyncStreamEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::component::inputcontroller::v1::StreamEventsResponse>>(PrepareAsyncStreamEventsRaw(context, request, cq)); + } + // TriggerEvent, where supported, injects an InputControllerEvent into an input controller to (virtually) generate events + // like button presses or axis movements + virtual ::grpc::Status TriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest& request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::inputcontroller::v1::TriggerEventResponse>> AsyncTriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::inputcontroller::v1::TriggerEventResponse>>(AsyncTriggerEventRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::inputcontroller::v1::TriggerEventResponse>> PrepareAsyncTriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::inputcontroller::v1::TriggerEventResponse>>(PrepareAsyncTriggerEventRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // GetControls returns a list of GetControls provided by the Controller + virtual void GetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, std::function) = 0; + virtual void GetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GetEvents returns a list of events representing the last event on each control of a give Input Controller + virtual void GetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, std::function) = 0; + virtual void GetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // StreamEvents starts a stream of InputControllerEvents for the given controls (buttons/axes) on a robot's input controller + virtual void StreamEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest* request, ::grpc::ClientReadReactor< ::viam::component::inputcontroller::v1::StreamEventsResponse>* reactor) = 0; + // TriggerEvent, where supported, injects an InputControllerEvent into an input controller to (virtually) generate events + // like button presses or axis movements + virtual void TriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, std::function) = 0; + virtual void TriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* 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::ClientAsyncResponseReaderInterface< ::viam::component::inputcontroller::v1::GetControlsResponse>* AsyncGetControlsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::inputcontroller::v1::GetControlsResponse>* PrepareAsyncGetControlsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::inputcontroller::v1::GetEventsResponse>* AsyncGetEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::inputcontroller::v1::GetEventsResponse>* PrepareAsyncGetEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientReaderInterface< ::viam::component::inputcontroller::v1::StreamEventsResponse>* StreamEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest& request) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::viam::component::inputcontroller::v1::StreamEventsResponse>* AsyncStreamEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::viam::component::inputcontroller::v1::StreamEventsResponse>* PrepareAsyncStreamEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::inputcontroller::v1::TriggerEventResponse>* AsyncTriggerEventRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::inputcontroller::v1::TriggerEventResponse>* PrepareAsyncTriggerEventRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest& 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()); + ::grpc::Status GetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::viam::component::inputcontroller::v1::GetControlsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetControlsResponse>> AsyncGetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetControlsResponse>>(AsyncGetControlsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetControlsResponse>> PrepareAsyncGetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetControlsResponse>>(PrepareAsyncGetControlsRaw(context, request, cq)); + } + ::grpc::Status GetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest& request, ::viam::component::inputcontroller::v1::GetEventsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetEventsResponse>> AsyncGetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetEventsResponse>>(AsyncGetEventsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetEventsResponse>> PrepareAsyncGetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetEventsResponse>>(PrepareAsyncGetEventsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientReader< ::viam::component::inputcontroller::v1::StreamEventsResponse>> StreamEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest& request) { + return std::unique_ptr< ::grpc::ClientReader< ::viam::component::inputcontroller::v1::StreamEventsResponse>>(StreamEventsRaw(context, request)); + } + std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::component::inputcontroller::v1::StreamEventsResponse>> AsyncStreamEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::component::inputcontroller::v1::StreamEventsResponse>>(AsyncStreamEventsRaw(context, request, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::component::inputcontroller::v1::StreamEventsResponse>> PrepareAsyncStreamEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::component::inputcontroller::v1::StreamEventsResponse>>(PrepareAsyncStreamEventsRaw(context, request, cq)); + } + ::grpc::Status TriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest& request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::TriggerEventResponse>> AsyncTriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::TriggerEventResponse>>(AsyncTriggerEventRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::TriggerEventResponse>> PrepareAsyncTriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::TriggerEventResponse>>(PrepareAsyncTriggerEventRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void GetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, std::function) override; + void GetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, std::function) override; + void GetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void StreamEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest* request, ::grpc::ClientReadReactor< ::viam::component::inputcontroller::v1::StreamEventsResponse>* reactor) override; + void TriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, std::function) override; + void TriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* 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::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetControlsResponse>* AsyncGetControlsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetControlsResponse>* PrepareAsyncGetControlsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetEventsResponse>* AsyncGetEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetEventsResponse>* PrepareAsyncGetEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientReader< ::viam::component::inputcontroller::v1::StreamEventsResponse>* StreamEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest& request) override; + ::grpc::ClientAsyncReader< ::viam::component::inputcontroller::v1::StreamEventsResponse>* AsyncStreamEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReader< ::viam::component::inputcontroller::v1::StreamEventsResponse>* PrepareAsyncStreamEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::TriggerEventResponse>* AsyncTriggerEventRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::TriggerEventResponse>* PrepareAsyncTriggerEventRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_GetControls_; + const ::grpc::internal::RpcMethod rpcmethod_GetEvents_; + const ::grpc::internal::RpcMethod rpcmethod_StreamEvents_; + const ::grpc::internal::RpcMethod rpcmethod_TriggerEvent_; + }; + 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(); + // GetControls returns a list of GetControls provided by the Controller + virtual ::grpc::Status GetControls(::grpc::ServerContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response); + // GetEvents returns a list of events representing the last event on each control of a give Input Controller + virtual ::grpc::Status GetEvents(::grpc::ServerContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response); + // StreamEvents starts a stream of InputControllerEvents for the given controls (buttons/axes) on a robot's input controller + virtual ::grpc::Status StreamEvents(::grpc::ServerContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest* request, ::grpc::ServerWriter< ::viam::component::inputcontroller::v1::StreamEventsResponse>* writer); + // TriggerEvent, where supported, injects an InputControllerEvent into an input controller to (virtually) generate events + // like button presses or axis movements + virtual ::grpc::Status TriggerEvent(::grpc::ServerContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response); + }; + template + class WithAsyncMethod_GetControls : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetControls() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_GetControls() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetControls(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::GetControlsRequest* /*request*/, ::viam::component::inputcontroller::v1::GetControlsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetControls(::grpc::ServerContext* context, ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::inputcontroller::v1::GetControlsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetEvents : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetEvents() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_GetEvents() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetEvents(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::GetEventsRequest* /*request*/, ::viam::component::inputcontroller::v1::GetEventsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetEvents(::grpc::ServerContext* context, ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::inputcontroller::v1::GetEventsResponse>* 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 WithAsyncMethod_StreamEvents : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_StreamEvents() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_StreamEvents() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status StreamEvents(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::StreamEventsRequest* /*request*/, ::grpc::ServerWriter< ::viam::component::inputcontroller::v1::StreamEventsResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestStreamEvents(::grpc::ServerContext* context, ::viam::component::inputcontroller::v1::StreamEventsRequest* request, ::grpc::ServerAsyncWriter< ::viam::component::inputcontroller::v1::StreamEventsResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncServerStreaming(2, context, request, writer, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_TriggerEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_TriggerEvent() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_TriggerEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TriggerEvent(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::TriggerEventRequest* /*request*/, ::viam::component::inputcontroller::v1::TriggerEventResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestTriggerEvent(::grpc::ServerContext* context, ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::inputcontroller::v1::TriggerEventResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetControls > > > AsyncService; + template + class WithCallbackMethod_GetControls : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetControls() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::inputcontroller::v1::GetControlsRequest, ::viam::component::inputcontroller::v1::GetControlsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response) { return this->GetControls(context, request, response); }));} + void SetMessageAllocatorFor_GetControls( + ::grpc::MessageAllocator< ::viam::component::inputcontroller::v1::GetControlsRequest, ::viam::component::inputcontroller::v1::GetControlsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::inputcontroller::v1::GetControlsRequest, ::viam::component::inputcontroller::v1::GetControlsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetControls() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetControls(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::GetControlsRequest* /*request*/, ::viam::component::inputcontroller::v1::GetControlsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetControls( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::inputcontroller::v1::GetControlsRequest* /*request*/, ::viam::component::inputcontroller::v1::GetControlsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetEvents : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetEvents() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::inputcontroller::v1::GetEventsRequest, ::viam::component::inputcontroller::v1::GetEventsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response) { return this->GetEvents(context, request, response); }));} + void SetMessageAllocatorFor_GetEvents( + ::grpc::MessageAllocator< ::viam::component::inputcontroller::v1::GetEventsRequest, ::viam::component::inputcontroller::v1::GetEventsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::inputcontroller::v1::GetEventsRequest, ::viam::component::inputcontroller::v1::GetEventsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetEvents() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetEvents(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::GetEventsRequest* /*request*/, ::viam::component::inputcontroller::v1::GetEventsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetEvents( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::inputcontroller::v1::GetEventsRequest* /*request*/, ::viam::component::inputcontroller::v1::GetEventsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_StreamEvents : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_StreamEvents() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackServerStreamingHandler< ::viam::component::inputcontroller::v1::StreamEventsRequest, ::viam::component::inputcontroller::v1::StreamEventsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest* request) { return this->StreamEvents(context, request); })); + } + ~WithCallbackMethod_StreamEvents() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status StreamEvents(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::StreamEventsRequest* /*request*/, ::grpc::ServerWriter< ::viam::component::inputcontroller::v1::StreamEventsResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerWriteReactor< ::viam::component::inputcontroller::v1::StreamEventsResponse>* StreamEvents( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::inputcontroller::v1::StreamEventsRequest* /*request*/) { return nullptr; } + }; + template + class WithCallbackMethod_TriggerEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_TriggerEvent() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::inputcontroller::v1::TriggerEventRequest, ::viam::component::inputcontroller::v1::TriggerEventResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response) { return this->TriggerEvent(context, request, response); }));} + void SetMessageAllocatorFor_TriggerEvent( + ::grpc::MessageAllocator< ::viam::component::inputcontroller::v1::TriggerEventRequest, ::viam::component::inputcontroller::v1::TriggerEventResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::inputcontroller::v1::TriggerEventRequest, ::viam::component::inputcontroller::v1::TriggerEventResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_TriggerEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TriggerEvent(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::TriggerEventRequest* /*request*/, ::viam::component::inputcontroller::v1::TriggerEventResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* TriggerEvent( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::inputcontroller::v1::TriggerEventRequest* /*request*/, ::viam::component::inputcontroller::v1::TriggerEventResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetControls > > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_GetControls : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetControls() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_GetControls() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetControls(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::GetControlsRequest* /*request*/, ::viam::component::inputcontroller::v1::GetControlsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetEvents : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetEvents() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_GetEvents() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetEvents(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::GetEventsRequest* /*request*/, ::viam::component::inputcontroller::v1::GetEventsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_StreamEvents : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_StreamEvents() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_StreamEvents() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status StreamEvents(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::StreamEventsRequest* /*request*/, ::grpc::ServerWriter< ::viam::component::inputcontroller::v1::StreamEventsResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_TriggerEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_TriggerEvent() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_TriggerEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TriggerEvent(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::TriggerEventRequest* /*request*/, ::viam::component::inputcontroller::v1::TriggerEventResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_GetControls : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetControls() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_GetControls() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetControls(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::GetControlsRequest* /*request*/, ::viam::component::inputcontroller::v1::GetControlsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetControls(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetEvents : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetEvents() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_GetEvents() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetEvents(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::GetEventsRequest* /*request*/, ::viam::component::inputcontroller::v1::GetEventsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetEvents(::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 WithRawMethod_StreamEvents : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_StreamEvents() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_StreamEvents() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status StreamEvents(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::StreamEventsRequest* /*request*/, ::grpc::ServerWriter< ::viam::component::inputcontroller::v1::StreamEventsResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestStreamEvents(::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(2, context, request, writer, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_TriggerEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_TriggerEvent() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_TriggerEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TriggerEvent(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::TriggerEventRequest* /*request*/, ::viam::component::inputcontroller::v1::TriggerEventResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestTriggerEvent(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_GetControls : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetControls() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetControls(context, request, response); })); + } + ~WithRawCallbackMethod_GetControls() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetControls(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::GetControlsRequest* /*request*/, ::viam::component::inputcontroller::v1::GetControlsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetControls( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetEvents : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetEvents() { + ::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->GetEvents(context, request, response); })); + } + ~WithRawCallbackMethod_GetEvents() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetEvents(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::GetEventsRequest* /*request*/, ::viam::component::inputcontroller::v1::GetEventsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetEvents( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_StreamEvents : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_StreamEvents() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->StreamEvents(context, request); })); + } + ~WithRawCallbackMethod_StreamEvents() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status StreamEvents(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::StreamEventsRequest* /*request*/, ::grpc::ServerWriter< ::viam::component::inputcontroller::v1::StreamEventsResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* StreamEvents( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_TriggerEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_TriggerEvent() { + ::grpc::Service::MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->TriggerEvent(context, request, response); })); + } + ~WithRawCallbackMethod_TriggerEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TriggerEvent(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::TriggerEventRequest* /*request*/, ::viam::component::inputcontroller::v1::TriggerEventResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* TriggerEvent( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_GetControls : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetControls() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::inputcontroller::v1::GetControlsRequest, ::viam::component::inputcontroller::v1::GetControlsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::inputcontroller::v1::GetControlsRequest, ::viam::component::inputcontroller::v1::GetControlsResponse>* streamer) { + return this->StreamedGetControls(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetControls() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetControls(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::GetControlsRequest* /*request*/, ::viam::component::inputcontroller::v1::GetControlsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetControls(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::inputcontroller::v1::GetControlsRequest,::viam::component::inputcontroller::v1::GetControlsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetEvents : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetEvents() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::inputcontroller::v1::GetEventsRequest, ::viam::component::inputcontroller::v1::GetEventsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::inputcontroller::v1::GetEventsRequest, ::viam::component::inputcontroller::v1::GetEventsResponse>* streamer) { + return this->StreamedGetEvents(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetEvents() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetEvents(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::GetEventsRequest* /*request*/, ::viam::component::inputcontroller::v1::GetEventsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetEvents(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::inputcontroller::v1::GetEventsRequest,::viam::component::inputcontroller::v1::GetEventsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_TriggerEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_TriggerEvent() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::inputcontroller::v1::TriggerEventRequest, ::viam::component::inputcontroller::v1::TriggerEventResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::inputcontroller::v1::TriggerEventRequest, ::viam::component::inputcontroller::v1::TriggerEventResponse>* streamer) { + return this->StreamedTriggerEvent(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_TriggerEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status TriggerEvent(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::TriggerEventRequest* /*request*/, ::viam::component::inputcontroller::v1::TriggerEventResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedTriggerEvent(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::inputcontroller::v1::TriggerEventRequest,::viam::component::inputcontroller::v1::TriggerEventResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetControls > > StreamedUnaryService; + template + class WithSplitStreamingMethod_StreamEvents : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithSplitStreamingMethod_StreamEvents() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::SplitServerStreamingHandler< + ::viam::component::inputcontroller::v1::StreamEventsRequest, ::viam::component::inputcontroller::v1::StreamEventsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerSplitStreamer< + ::viam::component::inputcontroller::v1::StreamEventsRequest, ::viam::component::inputcontroller::v1::StreamEventsResponse>* streamer) { + return this->StreamedStreamEvents(context, + streamer); + })); + } + ~WithSplitStreamingMethod_StreamEvents() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status StreamEvents(::grpc::ServerContext* /*context*/, const ::viam::component::inputcontroller::v1::StreamEventsRequest* /*request*/, ::grpc::ServerWriter< ::viam::component::inputcontroller::v1::StreamEventsResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with split streamed + virtual ::grpc::Status StreamedStreamEvents(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::viam::component::inputcontroller::v1::StreamEventsRequest,::viam::component::inputcontroller::v1::StreamEventsResponse>* server_split_streamer) = 0; + }; + typedef WithSplitStreamingMethod_StreamEvents SplitStreamedService; + typedef WithStreamedUnaryMethod_GetControls > > > StreamedService; +}; + +} // namespace v1 +} // namespace inputcontroller +} // namespace component +} // namespace viam + + +#endif // GRPC_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto__INCLUDED diff --git a/src/gen/component/inputcontroller/v1/input_controller.pb.cc b/src/gen/component/inputcontroller/v1/input_controller.pb.cc new file mode 100644 index 000000000..4f797bcf2 --- /dev/null +++ b/src/gen/component/inputcontroller/v1/input_controller.pb.cc @@ -0,0 +1,2730 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/inputcontroller/v1/input_controller.proto + +#include "component/inputcontroller/v1/input_controller.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 component { +namespace inputcontroller { +namespace v1 { +PROTOBUF_CONSTEXPR GetControlsRequest::GetControlsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.controller_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetControlsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetControlsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetControlsRequestDefaultTypeInternal() {} + union { + GetControlsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetControlsRequestDefaultTypeInternal _GetControlsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetControlsResponse::GetControlsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.controls_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetControlsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetControlsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetControlsResponseDefaultTypeInternal() {} + union { + GetControlsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetControlsResponseDefaultTypeInternal _GetControlsResponse_default_instance_; +PROTOBUF_CONSTEXPR GetEventsRequest::GetEventsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.controller_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetEventsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetEventsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetEventsRequestDefaultTypeInternal() {} + union { + GetEventsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetEventsRequestDefaultTypeInternal _GetEventsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetEventsResponse::GetEventsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.events_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetEventsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetEventsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetEventsResponseDefaultTypeInternal() {} + union { + GetEventsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetEventsResponseDefaultTypeInternal _GetEventsResponse_default_instance_; +PROTOBUF_CONSTEXPR TriggerEventRequest::TriggerEventRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.controller_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.event_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct TriggerEventRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR TriggerEventRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TriggerEventRequestDefaultTypeInternal() {} + union { + TriggerEventRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TriggerEventRequestDefaultTypeInternal _TriggerEventRequest_default_instance_; +PROTOBUF_CONSTEXPR TriggerEventResponse::TriggerEventResponse( + ::_pbi::ConstantInitialized) {} +struct TriggerEventResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR TriggerEventResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TriggerEventResponseDefaultTypeInternal() {} + union { + TriggerEventResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TriggerEventResponseDefaultTypeInternal _TriggerEventResponse_default_instance_; +PROTOBUF_CONSTEXPR Event::Event( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.event_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.control_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.time_)*/nullptr + , /*decltype(_impl_.value_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct EventDefaultTypeInternal { + PROTOBUF_CONSTEXPR EventDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EventDefaultTypeInternal() {} + union { + Event _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EventDefaultTypeInternal _Event_default_instance_; +PROTOBUF_CONSTEXPR StreamEventsRequest_Events::StreamEventsRequest_Events( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.events_)*/{} + , /*decltype(_impl_.cancelled_events_)*/{} + , /*decltype(_impl_.control_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StreamEventsRequest_EventsDefaultTypeInternal { + PROTOBUF_CONSTEXPR StreamEventsRequest_EventsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StreamEventsRequest_EventsDefaultTypeInternal() {} + union { + StreamEventsRequest_Events _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamEventsRequest_EventsDefaultTypeInternal _StreamEventsRequest_Events_default_instance_; +PROTOBUF_CONSTEXPR StreamEventsRequest::StreamEventsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.events_)*/{} + , /*decltype(_impl_.controller_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StreamEventsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StreamEventsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StreamEventsRequestDefaultTypeInternal() {} + union { + StreamEventsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamEventsRequestDefaultTypeInternal _StreamEventsRequest_default_instance_; +PROTOBUF_CONSTEXPR StreamEventsResponse::StreamEventsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.event_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StreamEventsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StreamEventsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StreamEventsResponseDefaultTypeInternal() {} + union { + StreamEventsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamEventsResponseDefaultTypeInternal _StreamEventsResponse_default_instance_; +PROTOBUF_CONSTEXPR Status::Status( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.events_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StatusDefaultTypeInternal() {} + union { + Status _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; +} // namespace v1 +} // namespace inputcontroller +} // namespace component +} // namespace viam +static ::_pb::Metadata file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[11]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto = nullptr; + +const uint32_t TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetControlsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetControlsRequest, _impl_.controller_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetControlsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetControlsResponse, _impl_.controls_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetEventsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetEventsRequest, _impl_.controller_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetEventsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetEventsResponse, _impl_.events_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::TriggerEventRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::TriggerEventRequest, _impl_.controller_), + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::TriggerEventRequest, _impl_.event_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::TriggerEventResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Event, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Event, _impl_.time_), + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Event, _impl_.event_), + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Event, _impl_.control_), + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Event, _impl_.value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest_Events, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest_Events, _impl_.control_), + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest_Events, _impl_.events_), + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest_Events, _impl_.cancelled_events_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest, _impl_.controller_), + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest, _impl_.events_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsResponse, _impl_.event_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Status, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Status, _impl_.events_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::inputcontroller::v1::GetControlsRequest)}, + { 7, -1, -1, sizeof(::viam::component::inputcontroller::v1::GetControlsResponse)}, + { 14, -1, -1, sizeof(::viam::component::inputcontroller::v1::GetEventsRequest)}, + { 21, -1, -1, sizeof(::viam::component::inputcontroller::v1::GetEventsResponse)}, + { 28, -1, -1, sizeof(::viam::component::inputcontroller::v1::TriggerEventRequest)}, + { 36, -1, -1, sizeof(::viam::component::inputcontroller::v1::TriggerEventResponse)}, + { 42, -1, -1, sizeof(::viam::component::inputcontroller::v1::Event)}, + { 52, -1, -1, sizeof(::viam::component::inputcontroller::v1::StreamEventsRequest_Events)}, + { 61, -1, -1, sizeof(::viam::component::inputcontroller::v1::StreamEventsRequest)}, + { 69, -1, -1, sizeof(::viam::component::inputcontroller::v1::StreamEventsResponse)}, + { 76, -1, -1, sizeof(::viam::component::inputcontroller::v1::Status)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::component::inputcontroller::v1::_GetControlsRequest_default_instance_._instance, + &::viam::component::inputcontroller::v1::_GetControlsResponse_default_instance_._instance, + &::viam::component::inputcontroller::v1::_GetEventsRequest_default_instance_._instance, + &::viam::component::inputcontroller::v1::_GetEventsResponse_default_instance_._instance, + &::viam::component::inputcontroller::v1::_TriggerEventRequest_default_instance_._instance, + &::viam::component::inputcontroller::v1::_TriggerEventResponse_default_instance_._instance, + &::viam::component::inputcontroller::v1::_Event_default_instance_._instance, + &::viam::component::inputcontroller::v1::_StreamEventsRequest_Events_default_instance_._instance, + &::viam::component::inputcontroller::v1::_StreamEventsRequest_default_instance_._instance, + &::viam::component::inputcontroller::v1::_StreamEventsResponse_default_instance_._instance, + &::viam::component::inputcontroller::v1::_Status_default_instance_._instance, +}; + +const char descriptor_table_protodef_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n3component/inputcontroller/v1/input_con" + "troller.proto\022!viam.component.inputcontr" + "oller.v1\032\034google/api/annotations.proto\032\037" + "google/protobuf/timestamp.proto\"4\n\022GetCo" + "ntrolsRequest\022\036\n\ncontroller\030\001 \001(\tR\ncontr" + "oller\"1\n\023GetControlsResponse\022\032\n\010controls" + "\030\001 \003(\tR\010controls\"2\n\020GetEventsRequest\022\036\n\n" + "controller\030\001 \001(\tR\ncontroller\"U\n\021GetEvent" + "sResponse\022@\n\006events\030\001 \003(\0132(.viam.compone" + "nt.inputcontroller.v1.EventR\006events\"u\n\023T" + "riggerEventRequest\022\036\n\ncontroller\030\001 \001(\tR\n" + "controller\022>\n\005event\030\002 \001(\0132(.viam.compone" + "nt.inputcontroller.v1.EventR\005event\"\026\n\024Tr" + "iggerEventResponse\"}\n\005Event\022.\n\004time\030\001 \001(" + "\0132\032.google.protobuf.TimestampR\004time\022\024\n\005e" + "vent\030\002 \001(\tR\005event\022\030\n\007control\030\003 \001(\tR\007cont" + "rol\022\024\n\005value\030\004 \001(\001R\005value\"\363\001\n\023StreamEven" + "tsRequest\022\036\n\ncontroller\030\001 \001(\tR\ncontrolle" + "r\022U\n\006events\030\002 \003(\0132=.viam.component.input" + "controller.v1.StreamEventsRequest.Events" + "R\006events\032e\n\006Events\022\030\n\007control\030\001 \001(\tR\007con" + "trol\022\026\n\006events\030\002 \003(\tR\006events\022)\n\020cancelle" + "d_events\030\003 \003(\tR\017cancelledEvents\"V\n\024Strea" + "mEventsResponse\022>\n\005event\030\001 \001(\0132(.viam.co" + "mponent.inputcontroller.v1.EventR\005event\"" + "J\n\006Status\022@\n\006events\030\001 \003(\0132(.viam.compone" + "nt.inputcontroller.v1.EventR\006events2\205\006\n\026" + "InputControllerService\022\270\001\n\013GetControls\0225" + ".viam.component.inputcontroller.v1.GetCo" + "ntrolsRequest\0326.viam.component.inputcont" + "roller.v1.GetControlsResponse\":\202\323\344\223\0024\0222/" + "viam/api/v1/component/input/{controller}" + "/controls\022\260\001\n\tGetEvents\0223.viam.component" + ".inputcontroller.v1.GetEventsRequest\0324.v" + "iam.component.inputcontroller.v1.GetEven" + "tsResponse\"8\202\323\344\223\0022\0220/viam/api/v1/compone" + "nt/input/{controller}/events\022\301\001\n\014StreamE" + "vents\0226.viam.component.inputcontroller.v" + "1.StreamEventsRequest\0327.viam.component.i" + "nputcontroller.v1.StreamEventsResponse\">" + "\202\323\344\223\0028\0226/viam/api/v1/component/input/{co" + "ntroller}/event_stream0\001\022\270\001\n\014TriggerEven" + "t\0226.viam.component.inputcontroller.v1.Tr" + "iggerEventRequest\0327.viam.component.input" + "controller.v1.TriggerEventResponse\"7\202\323\344\223" + "\0021\"//viam/api/v1/component/input/{contro" + "ller}/eventBU\n%com.viam.component.inputc" + "ontroller.v1Z,go.viam.com/api/component/" + "inputcontroller/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_deps[2] = { + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, +}; +static ::_pbi::once_flag descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto = { + false, false, 1946, descriptor_table_protodef_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto, + "component/inputcontroller/v1/input_controller.proto", + &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_deps, 2, 11, + schemas, file_default_instances, TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto::offsets, + file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto, file_level_enum_descriptors_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto, + file_level_service_descriptors_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter() { + return &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto(&descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto); +namespace viam { +namespace component { +namespace inputcontroller { +namespace v1 { + +// =================================================================== + +class GetControlsRequest::_Internal { + public: +}; + +GetControlsRequest::GetControlsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.inputcontroller.v1.GetControlsRequest) +} +GetControlsRequest::GetControlsRequest(const GetControlsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetControlsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.controller_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.controller_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.controller_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_controller().empty()) { + _this->_impl_.controller_.Set(from._internal_controller(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.GetControlsRequest) +} + +inline void GetControlsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.controller_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.controller_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.controller_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetControlsRequest::~GetControlsRequest() { + // @@protoc_insertion_point(destructor:viam.component.inputcontroller.v1.GetControlsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetControlsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.controller_.Destroy(); +} + +void GetControlsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetControlsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.inputcontroller.v1.GetControlsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.controller_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetControlsRequest::_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 controller = 1 [json_name = "controller"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_controller(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.inputcontroller.v1.GetControlsRequest.controller")); + } 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* GetControlsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.inputcontroller.v1.GetControlsRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string controller = 1 [json_name = "controller"]; + if (!this->_internal_controller().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_controller().data(), static_cast(this->_internal_controller().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.inputcontroller.v1.GetControlsRequest.controller"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_controller(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.inputcontroller.v1.GetControlsRequest) + return target; +} + +size_t GetControlsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.inputcontroller.v1.GetControlsRequest) + 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 controller = 1 [json_name = "controller"]; + if (!this->_internal_controller().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_controller()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetControlsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetControlsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetControlsRequest::GetClassData() const { return &_class_data_; } + + +void GetControlsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.GetControlsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_controller().empty()) { + _this->_internal_set_controller(from._internal_controller()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetControlsRequest::CopyFrom(const GetControlsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.inputcontroller.v1.GetControlsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetControlsRequest::IsInitialized() const { + return true; +} + +void GetControlsRequest::InternalSwap(GetControlsRequest* 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( + &_impl_.controller_, lhs_arena, + &other->_impl_.controller_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetControlsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, + file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[0]); +} + +// =================================================================== + +class GetControlsResponse::_Internal { + public: +}; + +GetControlsResponse::GetControlsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.inputcontroller.v1.GetControlsResponse) +} +GetControlsResponse::GetControlsResponse(const GetControlsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetControlsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.controls_){from._impl_.controls_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.GetControlsResponse) +} + +inline void GetControlsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.controls_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetControlsResponse::~GetControlsResponse() { + // @@protoc_insertion_point(destructor:viam.component.inputcontroller.v1.GetControlsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetControlsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.controls_.~RepeatedPtrField(); +} + +void GetControlsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetControlsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.inputcontroller.v1.GetControlsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.controls_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetControlsResponse::_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) { + // repeated string controls = 1 [json_name = "controls"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_controls(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.inputcontroller.v1.GetControlsResponse.controls")); + 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* GetControlsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.inputcontroller.v1.GetControlsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string controls = 1 [json_name = "controls"]; + for (int i = 0, n = this->_internal_controls_size(); i < n; i++) { + const auto& s = this->_internal_controls(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.inputcontroller.v1.GetControlsResponse.controls"); + target = stream->WriteString(1, s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.inputcontroller.v1.GetControlsResponse) + return target; +} + +size_t GetControlsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.inputcontroller.v1.GetControlsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string controls = 1 [json_name = "controls"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.controls_.size()); + for (int i = 0, n = _impl_.controls_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.controls_.Get(i)); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetControlsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetControlsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetControlsResponse::GetClassData() const { return &_class_data_; } + + +void GetControlsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.GetControlsResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.controls_.MergeFrom(from._impl_.controls_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetControlsResponse::CopyFrom(const GetControlsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.inputcontroller.v1.GetControlsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetControlsResponse::IsInitialized() const { + return true; +} + +void GetControlsResponse::InternalSwap(GetControlsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.controls_.InternalSwap(&other->_impl_.controls_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetControlsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, + file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[1]); +} + +// =================================================================== + +class GetEventsRequest::_Internal { + public: +}; + +GetEventsRequest::GetEventsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.inputcontroller.v1.GetEventsRequest) +} +GetEventsRequest::GetEventsRequest(const GetEventsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetEventsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.controller_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.controller_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.controller_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_controller().empty()) { + _this->_impl_.controller_.Set(from._internal_controller(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.GetEventsRequest) +} + +inline void GetEventsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.controller_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.controller_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.controller_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetEventsRequest::~GetEventsRequest() { + // @@protoc_insertion_point(destructor:viam.component.inputcontroller.v1.GetEventsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetEventsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.controller_.Destroy(); +} + +void GetEventsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetEventsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.inputcontroller.v1.GetEventsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.controller_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetEventsRequest::_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 controller = 1 [json_name = "controller"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_controller(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.inputcontroller.v1.GetEventsRequest.controller")); + } 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* GetEventsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.inputcontroller.v1.GetEventsRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string controller = 1 [json_name = "controller"]; + if (!this->_internal_controller().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_controller().data(), static_cast(this->_internal_controller().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.inputcontroller.v1.GetEventsRequest.controller"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_controller(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.inputcontroller.v1.GetEventsRequest) + return target; +} + +size_t GetEventsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.inputcontroller.v1.GetEventsRequest) + 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 controller = 1 [json_name = "controller"]; + if (!this->_internal_controller().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_controller()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetEventsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetEventsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetEventsRequest::GetClassData() const { return &_class_data_; } + + +void GetEventsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.GetEventsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_controller().empty()) { + _this->_internal_set_controller(from._internal_controller()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetEventsRequest::CopyFrom(const GetEventsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.inputcontroller.v1.GetEventsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetEventsRequest::IsInitialized() const { + return true; +} + +void GetEventsRequest::InternalSwap(GetEventsRequest* 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( + &_impl_.controller_, lhs_arena, + &other->_impl_.controller_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetEventsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, + file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[2]); +} + +// =================================================================== + +class GetEventsResponse::_Internal { + public: +}; + +GetEventsResponse::GetEventsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.inputcontroller.v1.GetEventsResponse) +} +GetEventsResponse::GetEventsResponse(const GetEventsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetEventsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.events_){from._impl_.events_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.GetEventsResponse) +} + +inline void GetEventsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.events_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetEventsResponse::~GetEventsResponse() { + // @@protoc_insertion_point(destructor:viam.component.inputcontroller.v1.GetEventsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetEventsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.events_.~RepeatedPtrField(); +} + +void GetEventsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetEventsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.inputcontroller.v1.GetEventsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.events_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetEventsResponse::_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) { + // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_events(), 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* GetEventsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.inputcontroller.v1.GetEventsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; + for (unsigned i = 0, + n = static_cast(this->_internal_events_size()); i < n; i++) { + const auto& repfield = this->_internal_events(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.inputcontroller.v1.GetEventsResponse) + return target; +} + +size_t GetEventsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.inputcontroller.v1.GetEventsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; + total_size += 1UL * this->_internal_events_size(); + for (const auto& msg : this->_impl_.events_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetEventsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetEventsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetEventsResponse::GetClassData() const { return &_class_data_; } + + +void GetEventsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.GetEventsResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.events_.MergeFrom(from._impl_.events_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetEventsResponse::CopyFrom(const GetEventsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.inputcontroller.v1.GetEventsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetEventsResponse::IsInitialized() const { + return true; +} + +void GetEventsResponse::InternalSwap(GetEventsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.events_.InternalSwap(&other->_impl_.events_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetEventsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, + file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[3]); +} + +// =================================================================== + +class TriggerEventRequest::_Internal { + public: + static const ::viam::component::inputcontroller::v1::Event& event(const TriggerEventRequest* msg); +}; + +const ::viam::component::inputcontroller::v1::Event& +TriggerEventRequest::_Internal::event(const TriggerEventRequest* msg) { + return *msg->_impl_.event_; +} +TriggerEventRequest::TriggerEventRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.inputcontroller.v1.TriggerEventRequest) +} +TriggerEventRequest::TriggerEventRequest(const TriggerEventRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + TriggerEventRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.controller_){} + , decltype(_impl_.event_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.controller_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.controller_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_controller().empty()) { + _this->_impl_.controller_.Set(from._internal_controller(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_event()) { + _this->_impl_.event_ = new ::viam::component::inputcontroller::v1::Event(*from._impl_.event_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.TriggerEventRequest) +} + +inline void TriggerEventRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.controller_){} + , decltype(_impl_.event_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.controller_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.controller_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +TriggerEventRequest::~TriggerEventRequest() { + // @@protoc_insertion_point(destructor:viam.component.inputcontroller.v1.TriggerEventRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void TriggerEventRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.controller_.Destroy(); + if (this != internal_default_instance()) delete _impl_.event_; +} + +void TriggerEventRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void TriggerEventRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.inputcontroller.v1.TriggerEventRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.controller_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.event_ != nullptr) { + delete _impl_.event_; + } + _impl_.event_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TriggerEventRequest::_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 controller = 1 [json_name = "controller"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_controller(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.inputcontroller.v1.TriggerEventRequest.controller")); + } else + goto handle_unusual; + continue; + // .viam.component.inputcontroller.v1.Event event = 2 [json_name = "event"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_event(), 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* TriggerEventRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.inputcontroller.v1.TriggerEventRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string controller = 1 [json_name = "controller"]; + if (!this->_internal_controller().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_controller().data(), static_cast(this->_internal_controller().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.inputcontroller.v1.TriggerEventRequest.controller"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_controller(), target); + } + + // .viam.component.inputcontroller.v1.Event event = 2 [json_name = "event"]; + if (this->_internal_has_event()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::event(this), + _Internal::event(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.inputcontroller.v1.TriggerEventRequest) + return target; +} + +size_t TriggerEventRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.inputcontroller.v1.TriggerEventRequest) + 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 controller = 1 [json_name = "controller"]; + if (!this->_internal_controller().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_controller()); + } + + // .viam.component.inputcontroller.v1.Event event = 2 [json_name = "event"]; + if (this->_internal_has_event()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.event_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TriggerEventRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + TriggerEventRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TriggerEventRequest::GetClassData() const { return &_class_data_; } + + +void TriggerEventRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.TriggerEventRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_controller().empty()) { + _this->_internal_set_controller(from._internal_controller()); + } + if (from._internal_has_event()) { + _this->_internal_mutable_event()->::viam::component::inputcontroller::v1::Event::MergeFrom( + from._internal_event()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void TriggerEventRequest::CopyFrom(const TriggerEventRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.inputcontroller.v1.TriggerEventRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TriggerEventRequest::IsInitialized() const { + return true; +} + +void TriggerEventRequest::InternalSwap(TriggerEventRequest* 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( + &_impl_.controller_, lhs_arena, + &other->_impl_.controller_, rhs_arena + ); + swap(_impl_.event_, other->_impl_.event_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TriggerEventRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, + file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[4]); +} + +// =================================================================== + +class TriggerEventResponse::_Internal { + public: +}; + +TriggerEventResponse::TriggerEventResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.inputcontroller.v1.TriggerEventResponse) +} +TriggerEventResponse::TriggerEventResponse(const TriggerEventResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + TriggerEventResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.TriggerEventResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TriggerEventResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TriggerEventResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata TriggerEventResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, + file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[5]); +} + +// =================================================================== + +class Event::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& time(const Event* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +Event::_Internal::time(const Event* msg) { + return *msg->_impl_.time_; +} +void Event::clear_time() { + if (GetArenaForAllocation() == nullptr && _impl_.time_ != nullptr) { + delete _impl_.time_; + } + _impl_.time_ = nullptr; +} +Event::Event(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.inputcontroller.v1.Event) +} +Event::Event(const Event& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Event* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.event_){} + , decltype(_impl_.control_){} + , decltype(_impl_.time_){nullptr} + , decltype(_impl_.value_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.event_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.event_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_event().empty()) { + _this->_impl_.event_.Set(from._internal_event(), + _this->GetArenaForAllocation()); + } + _impl_.control_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.control_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_control().empty()) { + _this->_impl_.control_.Set(from._internal_control(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_time()) { + _this->_impl_.time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.time_); + } + _this->_impl_.value_ = from._impl_.value_; + // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.Event) +} + +inline void Event::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.event_){} + , decltype(_impl_.control_){} + , decltype(_impl_.time_){nullptr} + , decltype(_impl_.value_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.event_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.event_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.control_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.control_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Event::~Event() { + // @@protoc_insertion_point(destructor:viam.component.inputcontroller.v1.Event) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Event::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.event_.Destroy(); + _impl_.control_.Destroy(); + if (this != internal_default_instance()) delete _impl_.time_; +} + +void Event::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Event::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.inputcontroller.v1.Event) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.event_.ClearToEmpty(); + _impl_.control_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.time_ != nullptr) { + delete _impl_.time_; + } + _impl_.time_ = nullptr; + _impl_.value_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Event::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.protobuf.Timestamp time = 1 [json_name = "time"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_time(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string event = 2 [json_name = "event"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_event(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.inputcontroller.v1.Event.event")); + } else + goto handle_unusual; + continue; + // string control = 3 [json_name = "control"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_control(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.inputcontroller.v1.Event.control")); + } else + goto handle_unusual; + continue; + // double value = 4 [json_name = "value"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { + _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* Event::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.inputcontroller.v1.Event) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.Timestamp time = 1 [json_name = "time"]; + if (this->_internal_has_time()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::time(this), + _Internal::time(this).GetCachedSize(), target, stream); + } + + // string event = 2 [json_name = "event"]; + if (!this->_internal_event().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_event().data(), static_cast(this->_internal_event().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.inputcontroller.v1.Event.event"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_event(), target); + } + + // string control = 3 [json_name = "control"]; + if (!this->_internal_control().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_control().data(), static_cast(this->_internal_control().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.inputcontroller.v1.Event.control"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_control(), target); + } + + // double value = 4 [json_name = "value"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_value = this->_internal_value(); + uint64_t raw_value; + memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); + if (raw_value != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_value(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.inputcontroller.v1.Event) + return target; +} + +size_t Event::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.inputcontroller.v1.Event) + 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 event = 2 [json_name = "event"]; + if (!this->_internal_event().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_event()); + } + + // string control = 3 [json_name = "control"]; + if (!this->_internal_control().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_control()); + } + + // .google.protobuf.Timestamp time = 1 [json_name = "time"]; + if (this->_internal_has_time()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.time_); + } + + // double value = 4 [json_name = "value"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_value = this->_internal_value(); + uint64_t raw_value; + memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); + if (raw_value != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Event::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Event::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Event::GetClassData() const { return &_class_data_; } + + +void Event::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.Event) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_event().empty()) { + _this->_internal_set_event(from._internal_event()); + } + if (!from._internal_control().empty()) { + _this->_internal_set_control(from._internal_control()); + } + if (from._internal_has_time()) { + _this->_internal_mutable_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_time()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_value = from._internal_value(); + uint64_t raw_value; + memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); + if (raw_value != 0) { + _this->_internal_set_value(from._internal_value()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Event::CopyFrom(const Event& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.inputcontroller.v1.Event) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Event::IsInitialized() const { + return true; +} + +void Event::InternalSwap(Event* 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( + &_impl_.event_, lhs_arena, + &other->_impl_.event_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.control_, lhs_arena, + &other->_impl_.control_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Event, _impl_.value_) + + sizeof(Event::_impl_.value_) + - PROTOBUF_FIELD_OFFSET(Event, _impl_.time_)>( + reinterpret_cast(&_impl_.time_), + reinterpret_cast(&other->_impl_.time_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Event::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, + file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[6]); +} + +// =================================================================== + +class StreamEventsRequest_Events::_Internal { + public: +}; + +StreamEventsRequest_Events::StreamEventsRequest_Events(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.inputcontroller.v1.StreamEventsRequest.Events) +} +StreamEventsRequest_Events::StreamEventsRequest_Events(const StreamEventsRequest_Events& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + StreamEventsRequest_Events* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.events_){from._impl_.events_} + , decltype(_impl_.cancelled_events_){from._impl_.cancelled_events_} + , decltype(_impl_.control_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.control_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.control_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_control().empty()) { + _this->_impl_.control_.Set(from._internal_control(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.StreamEventsRequest.Events) +} + +inline void StreamEventsRequest_Events::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.events_){arena} + , decltype(_impl_.cancelled_events_){arena} + , decltype(_impl_.control_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.control_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.control_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +StreamEventsRequest_Events::~StreamEventsRequest_Events() { + // @@protoc_insertion_point(destructor:viam.component.inputcontroller.v1.StreamEventsRequest.Events) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void StreamEventsRequest_Events::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.events_.~RepeatedPtrField(); + _impl_.cancelled_events_.~RepeatedPtrField(); + _impl_.control_.Destroy(); +} + +void StreamEventsRequest_Events::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void StreamEventsRequest_Events::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.inputcontroller.v1.StreamEventsRequest.Events) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.events_.Clear(); + _impl_.cancelled_events_.Clear(); + _impl_.control_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StreamEventsRequest_Events::_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 control = 1 [json_name = "control"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_control(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.inputcontroller.v1.StreamEventsRequest.Events.control")); + } else + goto handle_unusual; + continue; + // repeated string events = 2 [json_name = "events"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_events(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.inputcontroller.v1.StreamEventsRequest.Events.events")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // repeated string cancelled_events = 3 [json_name = "cancelledEvents"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_cancelled_events(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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* StreamEventsRequest_Events::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.inputcontroller.v1.StreamEventsRequest.Events) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string control = 1 [json_name = "control"]; + if (!this->_internal_control().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_control().data(), static_cast(this->_internal_control().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.inputcontroller.v1.StreamEventsRequest.Events.control"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_control(), target); + } + + // repeated string events = 2 [json_name = "events"]; + for (int i = 0, n = this->_internal_events_size(); i < n; i++) { + const auto& s = this->_internal_events(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.inputcontroller.v1.StreamEventsRequest.Events.events"); + target = stream->WriteString(2, s, target); + } + + // repeated string cancelled_events = 3 [json_name = "cancelledEvents"]; + for (int i = 0, n = this->_internal_cancelled_events_size(); i < n; i++) { + const auto& s = this->_internal_cancelled_events(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events"); + target = stream->WriteString(3, s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.inputcontroller.v1.StreamEventsRequest.Events) + return target; +} + +size_t StreamEventsRequest_Events::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.inputcontroller.v1.StreamEventsRequest.Events) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string events = 2 [json_name = "events"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.events_.size()); + for (int i = 0, n = _impl_.events_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.events_.Get(i)); + } + + // repeated string cancelled_events = 3 [json_name = "cancelledEvents"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.cancelled_events_.size()); + for (int i = 0, n = _impl_.cancelled_events_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.cancelled_events_.Get(i)); + } + + // string control = 1 [json_name = "control"]; + if (!this->_internal_control().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_control()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StreamEventsRequest_Events::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + StreamEventsRequest_Events::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StreamEventsRequest_Events::GetClassData() const { return &_class_data_; } + + +void StreamEventsRequest_Events::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.StreamEventsRequest.Events) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.events_.MergeFrom(from._impl_.events_); + _this->_impl_.cancelled_events_.MergeFrom(from._impl_.cancelled_events_); + if (!from._internal_control().empty()) { + _this->_internal_set_control(from._internal_control()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void StreamEventsRequest_Events::CopyFrom(const StreamEventsRequest_Events& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.inputcontroller.v1.StreamEventsRequest.Events) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StreamEventsRequest_Events::IsInitialized() const { + return true; +} + +void StreamEventsRequest_Events::InternalSwap(StreamEventsRequest_Events* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.events_.InternalSwap(&other->_impl_.events_); + _impl_.cancelled_events_.InternalSwap(&other->_impl_.cancelled_events_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.control_, lhs_arena, + &other->_impl_.control_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StreamEventsRequest_Events::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, + file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[7]); +} + +// =================================================================== + +class StreamEventsRequest::_Internal { + public: +}; + +StreamEventsRequest::StreamEventsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.inputcontroller.v1.StreamEventsRequest) +} +StreamEventsRequest::StreamEventsRequest(const StreamEventsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + StreamEventsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.events_){from._impl_.events_} + , decltype(_impl_.controller_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.controller_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.controller_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_controller().empty()) { + _this->_impl_.controller_.Set(from._internal_controller(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.StreamEventsRequest) +} + +inline void StreamEventsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.events_){arena} + , decltype(_impl_.controller_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.controller_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.controller_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +StreamEventsRequest::~StreamEventsRequest() { + // @@protoc_insertion_point(destructor:viam.component.inputcontroller.v1.StreamEventsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void StreamEventsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.events_.~RepeatedPtrField(); + _impl_.controller_.Destroy(); +} + +void StreamEventsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void StreamEventsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.inputcontroller.v1.StreamEventsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.events_.Clear(); + _impl_.controller_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StreamEventsRequest::_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 controller = 1 [json_name = "controller"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_controller(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.inputcontroller.v1.StreamEventsRequest.controller")); + } else + goto handle_unusual; + continue; + // repeated .viam.component.inputcontroller.v1.StreamEventsRequest.Events events = 2 [json_name = "events"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_events(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* StreamEventsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.inputcontroller.v1.StreamEventsRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string controller = 1 [json_name = "controller"]; + if (!this->_internal_controller().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_controller().data(), static_cast(this->_internal_controller().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.inputcontroller.v1.StreamEventsRequest.controller"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_controller(), target); + } + + // repeated .viam.component.inputcontroller.v1.StreamEventsRequest.Events events = 2 [json_name = "events"]; + for (unsigned i = 0, + n = static_cast(this->_internal_events_size()); i < n; i++) { + const auto& repfield = this->_internal_events(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.inputcontroller.v1.StreamEventsRequest) + return target; +} + +size_t StreamEventsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.inputcontroller.v1.StreamEventsRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.component.inputcontroller.v1.StreamEventsRequest.Events events = 2 [json_name = "events"]; + total_size += 1UL * this->_internal_events_size(); + for (const auto& msg : this->_impl_.events_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string controller = 1 [json_name = "controller"]; + if (!this->_internal_controller().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_controller()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StreamEventsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + StreamEventsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StreamEventsRequest::GetClassData() const { return &_class_data_; } + + +void StreamEventsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.StreamEventsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.events_.MergeFrom(from._impl_.events_); + if (!from._internal_controller().empty()) { + _this->_internal_set_controller(from._internal_controller()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void StreamEventsRequest::CopyFrom(const StreamEventsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.inputcontroller.v1.StreamEventsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StreamEventsRequest::IsInitialized() const { + return true; +} + +void StreamEventsRequest::InternalSwap(StreamEventsRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.events_.InternalSwap(&other->_impl_.events_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.controller_, lhs_arena, + &other->_impl_.controller_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StreamEventsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, + file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[8]); +} + +// =================================================================== + +class StreamEventsResponse::_Internal { + public: + static const ::viam::component::inputcontroller::v1::Event& event(const StreamEventsResponse* msg); +}; + +const ::viam::component::inputcontroller::v1::Event& +StreamEventsResponse::_Internal::event(const StreamEventsResponse* msg) { + return *msg->_impl_.event_; +} +StreamEventsResponse::StreamEventsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.inputcontroller.v1.StreamEventsResponse) +} +StreamEventsResponse::StreamEventsResponse(const StreamEventsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + StreamEventsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.event_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_event()) { + _this->_impl_.event_ = new ::viam::component::inputcontroller::v1::Event(*from._impl_.event_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.StreamEventsResponse) +} + +inline void StreamEventsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.event_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +StreamEventsResponse::~StreamEventsResponse() { + // @@protoc_insertion_point(destructor:viam.component.inputcontroller.v1.StreamEventsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void StreamEventsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.event_; +} + +void StreamEventsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void StreamEventsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.inputcontroller.v1.StreamEventsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.event_ != nullptr) { + delete _impl_.event_; + } + _impl_.event_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StreamEventsResponse::_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) { + // .viam.component.inputcontroller.v1.Event event = 1 [json_name = "event"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_event(), 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* StreamEventsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.inputcontroller.v1.StreamEventsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.component.inputcontroller.v1.Event event = 1 [json_name = "event"]; + if (this->_internal_has_event()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::event(this), + _Internal::event(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.inputcontroller.v1.StreamEventsResponse) + return target; +} + +size_t StreamEventsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.inputcontroller.v1.StreamEventsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.component.inputcontroller.v1.Event event = 1 [json_name = "event"]; + if (this->_internal_has_event()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.event_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StreamEventsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + StreamEventsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StreamEventsResponse::GetClassData() const { return &_class_data_; } + + +void StreamEventsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.StreamEventsResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_event()) { + _this->_internal_mutable_event()->::viam::component::inputcontroller::v1::Event::MergeFrom( + from._internal_event()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void StreamEventsResponse::CopyFrom(const StreamEventsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.inputcontroller.v1.StreamEventsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StreamEventsResponse::IsInitialized() const { + return true; +} + +void StreamEventsResponse::InternalSwap(StreamEventsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.event_, other->_impl_.event_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StreamEventsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, + file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[9]); +} + +// =================================================================== + +class Status::_Internal { + public: +}; + +Status::Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.inputcontroller.v1.Status) +} +Status::Status(const Status& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Status* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.events_){from._impl_.events_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.Status) +} + +inline void Status::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.events_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Status::~Status() { + // @@protoc_insertion_point(destructor:viam.component.inputcontroller.v1.Status) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Status::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.events_.~RepeatedPtrField(); +} + +void Status::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Status::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.inputcontroller.v1.Status) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.events_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Status::_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) { + // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_events(), 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* Status::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.inputcontroller.v1.Status) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; + for (unsigned i = 0, + n = static_cast(this->_internal_events_size()); i < n; i++) { + const auto& repfield = this->_internal_events(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.inputcontroller.v1.Status) + return target; +} + +size_t Status::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.inputcontroller.v1.Status) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; + total_size += 1UL * this->_internal_events_size(); + for (const auto& msg : this->_impl_.events_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Status::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Status::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Status::GetClassData() const { return &_class_data_; } + + +void Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.Status) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.events_.MergeFrom(from._impl_.events_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Status::CopyFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.inputcontroller.v1.Status) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Status::IsInitialized() const { + return true; +} + +void Status::InternalSwap(Status* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.events_.InternalSwap(&other->_impl_.events_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, + file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[10]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace inputcontroller +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::GetControlsRequest* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::GetControlsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::GetControlsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::GetControlsResponse* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::GetControlsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::GetControlsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::GetEventsRequest* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::GetEventsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::GetEventsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::GetEventsResponse* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::GetEventsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::GetEventsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::TriggerEventRequest* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::TriggerEventRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::TriggerEventRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::TriggerEventResponse* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::TriggerEventResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::TriggerEventResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::Event* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::Event >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::Event >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::StreamEventsRequest_Events >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::StreamEventsRequest_Events >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::StreamEventsRequest* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::StreamEventsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::StreamEventsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::StreamEventsResponse* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::StreamEventsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::StreamEventsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::Status* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::Status >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::Status >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/component/inputcontroller/v1/input_controller.pb.h b/src/gen/component/inputcontroller/v1/input_controller.pb.h new file mode 100644 index 000000000..8c3077ecb --- /dev/null +++ b/src/gen/component/inputcontroller/v1/input_controller.pb.h @@ -0,0 +1,2985 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/inputcontroller/v1/input_controller.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "google/api/annotations.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; +namespace viam { +namespace component { +namespace inputcontroller { +namespace v1 { +class Event; +struct EventDefaultTypeInternal; +extern EventDefaultTypeInternal _Event_default_instance_; +class GetControlsRequest; +struct GetControlsRequestDefaultTypeInternal; +extern GetControlsRequestDefaultTypeInternal _GetControlsRequest_default_instance_; +class GetControlsResponse; +struct GetControlsResponseDefaultTypeInternal; +extern GetControlsResponseDefaultTypeInternal _GetControlsResponse_default_instance_; +class GetEventsRequest; +struct GetEventsRequestDefaultTypeInternal; +extern GetEventsRequestDefaultTypeInternal _GetEventsRequest_default_instance_; +class GetEventsResponse; +struct GetEventsResponseDefaultTypeInternal; +extern GetEventsResponseDefaultTypeInternal _GetEventsResponse_default_instance_; +class Status; +struct StatusDefaultTypeInternal; +extern StatusDefaultTypeInternal _Status_default_instance_; +class StreamEventsRequest; +struct StreamEventsRequestDefaultTypeInternal; +extern StreamEventsRequestDefaultTypeInternal _StreamEventsRequest_default_instance_; +class StreamEventsRequest_Events; +struct StreamEventsRequest_EventsDefaultTypeInternal; +extern StreamEventsRequest_EventsDefaultTypeInternal _StreamEventsRequest_Events_default_instance_; +class StreamEventsResponse; +struct StreamEventsResponseDefaultTypeInternal; +extern StreamEventsResponseDefaultTypeInternal _StreamEventsResponse_default_instance_; +class TriggerEventRequest; +struct TriggerEventRequestDefaultTypeInternal; +extern TriggerEventRequestDefaultTypeInternal _TriggerEventRequest_default_instance_; +class TriggerEventResponse; +struct TriggerEventResponseDefaultTypeInternal; +extern TriggerEventResponseDefaultTypeInternal _TriggerEventResponse_default_instance_; +} // namespace v1 +} // namespace inputcontroller +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::inputcontroller::v1::Event* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::Event>(Arena*); +template<> ::viam::component::inputcontroller::v1::GetControlsRequest* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::GetControlsRequest>(Arena*); +template<> ::viam::component::inputcontroller::v1::GetControlsResponse* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::GetControlsResponse>(Arena*); +template<> ::viam::component::inputcontroller::v1::GetEventsRequest* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::GetEventsRequest>(Arena*); +template<> ::viam::component::inputcontroller::v1::GetEventsResponse* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::GetEventsResponse>(Arena*); +template<> ::viam::component::inputcontroller::v1::Status* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::Status>(Arena*); +template<> ::viam::component::inputcontroller::v1::StreamEventsRequest* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::StreamEventsRequest>(Arena*); +template<> ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::StreamEventsRequest_Events>(Arena*); +template<> ::viam::component::inputcontroller::v1::StreamEventsResponse* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::StreamEventsResponse>(Arena*); +template<> ::viam::component::inputcontroller::v1::TriggerEventRequest* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::TriggerEventRequest>(Arena*); +template<> ::viam::component::inputcontroller::v1::TriggerEventResponse* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::TriggerEventResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace component { +namespace inputcontroller { +namespace v1 { + +// =================================================================== + +class GetControlsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.GetControlsRequest) */ { + public: + inline GetControlsRequest() : GetControlsRequest(nullptr) {} + ~GetControlsRequest() override; + explicit PROTOBUF_CONSTEXPR GetControlsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetControlsRequest(const GetControlsRequest& from); + GetControlsRequest(GetControlsRequest&& from) noexcept + : GetControlsRequest() { + *this = ::std::move(from); + } + + inline GetControlsRequest& operator=(const GetControlsRequest& from) { + CopyFrom(from); + return *this; + } + inline GetControlsRequest& operator=(GetControlsRequest&& 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 GetControlsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetControlsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetControlsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(GetControlsRequest& a, GetControlsRequest& b) { + a.Swap(&b); + } + inline void Swap(GetControlsRequest* 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(GetControlsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetControlsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetControlsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetControlsRequest& from) { + GetControlsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetControlsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.inputcontroller.v1.GetControlsRequest"; + } + protected: + explicit GetControlsRequest(::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 { + kControllerFieldNumber = 1, + }; + // string controller = 1 [json_name = "controller"]; + void clear_controller(); + const std::string& controller() const; + template + void set_controller(ArgT0&& arg0, ArgT... args); + std::string* mutable_controller(); + PROTOBUF_NODISCARD std::string* release_controller(); + void set_allocated_controller(std::string* controller); + private: + const std::string& _internal_controller() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_controller(const std::string& value); + std::string* _internal_mutable_controller(); + public: + + // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.GetControlsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr controller_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; +}; +// ------------------------------------------------------------------- + +class GetControlsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.GetControlsResponse) */ { + public: + inline GetControlsResponse() : GetControlsResponse(nullptr) {} + ~GetControlsResponse() override; + explicit PROTOBUF_CONSTEXPR GetControlsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetControlsResponse(const GetControlsResponse& from); + GetControlsResponse(GetControlsResponse&& from) noexcept + : GetControlsResponse() { + *this = ::std::move(from); + } + + inline GetControlsResponse& operator=(const GetControlsResponse& from) { + CopyFrom(from); + return *this; + } + inline GetControlsResponse& operator=(GetControlsResponse&& 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 GetControlsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetControlsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetControlsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(GetControlsResponse& a, GetControlsResponse& b) { + a.Swap(&b); + } + inline void Swap(GetControlsResponse* 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(GetControlsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetControlsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetControlsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetControlsResponse& from) { + GetControlsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetControlsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.inputcontroller.v1.GetControlsResponse"; + } + protected: + explicit GetControlsResponse(::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 { + kControlsFieldNumber = 1, + }; + // repeated string controls = 1 [json_name = "controls"]; + int controls_size() const; + private: + int _internal_controls_size() const; + public: + void clear_controls(); + const std::string& controls(int index) const; + std::string* mutable_controls(int index); + void set_controls(int index, const std::string& value); + void set_controls(int index, std::string&& value); + void set_controls(int index, const char* value); + void set_controls(int index, const char* value, size_t size); + std::string* add_controls(); + void add_controls(const std::string& value); + void add_controls(std::string&& value); + void add_controls(const char* value); + void add_controls(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& controls() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_controls(); + private: + const std::string& _internal_controls(int index) const; + std::string* _internal_add_controls(); + public: + + // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.GetControlsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField controls_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; +}; +// ------------------------------------------------------------------- + +class GetEventsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.GetEventsRequest) */ { + public: + inline GetEventsRequest() : GetEventsRequest(nullptr) {} + ~GetEventsRequest() override; + explicit PROTOBUF_CONSTEXPR GetEventsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetEventsRequest(const GetEventsRequest& from); + GetEventsRequest(GetEventsRequest&& from) noexcept + : GetEventsRequest() { + *this = ::std::move(from); + } + + inline GetEventsRequest& operator=(const GetEventsRequest& from) { + CopyFrom(from); + return *this; + } + inline GetEventsRequest& operator=(GetEventsRequest&& 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 GetEventsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetEventsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetEventsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(GetEventsRequest& a, GetEventsRequest& b) { + a.Swap(&b); + } + inline void Swap(GetEventsRequest* 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(GetEventsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetEventsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetEventsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetEventsRequest& from) { + GetEventsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetEventsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.inputcontroller.v1.GetEventsRequest"; + } + protected: + explicit GetEventsRequest(::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 { + kControllerFieldNumber = 1, + }; + // string controller = 1 [json_name = "controller"]; + void clear_controller(); + const std::string& controller() const; + template + void set_controller(ArgT0&& arg0, ArgT... args); + std::string* mutable_controller(); + PROTOBUF_NODISCARD std::string* release_controller(); + void set_allocated_controller(std::string* controller); + private: + const std::string& _internal_controller() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_controller(const std::string& value); + std::string* _internal_mutable_controller(); + public: + + // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.GetEventsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr controller_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; +}; +// ------------------------------------------------------------------- + +class GetEventsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.GetEventsResponse) */ { + public: + inline GetEventsResponse() : GetEventsResponse(nullptr) {} + ~GetEventsResponse() override; + explicit PROTOBUF_CONSTEXPR GetEventsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetEventsResponse(const GetEventsResponse& from); + GetEventsResponse(GetEventsResponse&& from) noexcept + : GetEventsResponse() { + *this = ::std::move(from); + } + + inline GetEventsResponse& operator=(const GetEventsResponse& from) { + CopyFrom(from); + return *this; + } + inline GetEventsResponse& operator=(GetEventsResponse&& 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 GetEventsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetEventsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetEventsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(GetEventsResponse& a, GetEventsResponse& b) { + a.Swap(&b); + } + inline void Swap(GetEventsResponse* 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(GetEventsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetEventsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetEventsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetEventsResponse& from) { + GetEventsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetEventsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.inputcontroller.v1.GetEventsResponse"; + } + protected: + explicit GetEventsResponse(::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 { + kEventsFieldNumber = 1, + }; + // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; + int events_size() const; + private: + int _internal_events_size() const; + public: + void clear_events(); + ::viam::component::inputcontroller::v1::Event* mutable_events(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event >* + mutable_events(); + private: + const ::viam::component::inputcontroller::v1::Event& _internal_events(int index) const; + ::viam::component::inputcontroller::v1::Event* _internal_add_events(); + public: + const ::viam::component::inputcontroller::v1::Event& events(int index) const; + ::viam::component::inputcontroller::v1::Event* add_events(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event >& + events() const; + + // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.GetEventsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event > events_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; +}; +// ------------------------------------------------------------------- + +class TriggerEventRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.TriggerEventRequest) */ { + public: + inline TriggerEventRequest() : TriggerEventRequest(nullptr) {} + ~TriggerEventRequest() override; + explicit PROTOBUF_CONSTEXPR TriggerEventRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + TriggerEventRequest(const TriggerEventRequest& from); + TriggerEventRequest(TriggerEventRequest&& from) noexcept + : TriggerEventRequest() { + *this = ::std::move(from); + } + + inline TriggerEventRequest& operator=(const TriggerEventRequest& from) { + CopyFrom(from); + return *this; + } + inline TriggerEventRequest& operator=(TriggerEventRequest&& 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 TriggerEventRequest& default_instance() { + return *internal_default_instance(); + } + static inline const TriggerEventRequest* internal_default_instance() { + return reinterpret_cast( + &_TriggerEventRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(TriggerEventRequest& a, TriggerEventRequest& b) { + a.Swap(&b); + } + inline void Swap(TriggerEventRequest* 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(TriggerEventRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TriggerEventRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TriggerEventRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const TriggerEventRequest& from) { + TriggerEventRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TriggerEventRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.inputcontroller.v1.TriggerEventRequest"; + } + protected: + explicit TriggerEventRequest(::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 { + kControllerFieldNumber = 1, + kEventFieldNumber = 2, + }; + // string controller = 1 [json_name = "controller"]; + void clear_controller(); + const std::string& controller() const; + template + void set_controller(ArgT0&& arg0, ArgT... args); + std::string* mutable_controller(); + PROTOBUF_NODISCARD std::string* release_controller(); + void set_allocated_controller(std::string* controller); + private: + const std::string& _internal_controller() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_controller(const std::string& value); + std::string* _internal_mutable_controller(); + public: + + // .viam.component.inputcontroller.v1.Event event = 2 [json_name = "event"]; + bool has_event() const; + private: + bool _internal_has_event() const; + public: + void clear_event(); + const ::viam::component::inputcontroller::v1::Event& event() const; + PROTOBUF_NODISCARD ::viam::component::inputcontroller::v1::Event* release_event(); + ::viam::component::inputcontroller::v1::Event* mutable_event(); + void set_allocated_event(::viam::component::inputcontroller::v1::Event* event); + private: + const ::viam::component::inputcontroller::v1::Event& _internal_event() const; + ::viam::component::inputcontroller::v1::Event* _internal_mutable_event(); + public: + void unsafe_arena_set_allocated_event( + ::viam::component::inputcontroller::v1::Event* event); + ::viam::component::inputcontroller::v1::Event* unsafe_arena_release_event(); + + // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.TriggerEventRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr controller_; + ::viam::component::inputcontroller::v1::Event* event_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; +}; +// ------------------------------------------------------------------- + +class TriggerEventResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.TriggerEventResponse) */ { + public: + inline TriggerEventResponse() : TriggerEventResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR TriggerEventResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + TriggerEventResponse(const TriggerEventResponse& from); + TriggerEventResponse(TriggerEventResponse&& from) noexcept + : TriggerEventResponse() { + *this = ::std::move(from); + } + + inline TriggerEventResponse& operator=(const TriggerEventResponse& from) { + CopyFrom(from); + return *this; + } + inline TriggerEventResponse& operator=(TriggerEventResponse&& 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 TriggerEventResponse& default_instance() { + return *internal_default_instance(); + } + static inline const TriggerEventResponse* internal_default_instance() { + return reinterpret_cast( + &_TriggerEventResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(TriggerEventResponse& a, TriggerEventResponse& b) { + a.Swap(&b); + } + inline void Swap(TriggerEventResponse* 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(TriggerEventResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TriggerEventResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const TriggerEventResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const TriggerEventResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.inputcontroller.v1.TriggerEventResponse"; + } + protected: + explicit TriggerEventResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.TriggerEventResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; +}; +// ------------------------------------------------------------------- + +class Event final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.Event) */ { + public: + inline Event() : Event(nullptr) {} + ~Event() override; + explicit PROTOBUF_CONSTEXPR Event(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Event(const Event& from); + Event(Event&& from) noexcept + : Event() { + *this = ::std::move(from); + } + + inline Event& operator=(const Event& from) { + CopyFrom(from); + return *this; + } + inline Event& operator=(Event&& 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 Event& default_instance() { + return *internal_default_instance(); + } + static inline const Event* internal_default_instance() { + return reinterpret_cast( + &_Event_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(Event& a, Event& b) { + a.Swap(&b); + } + inline void Swap(Event* 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(Event* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Event* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Event& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Event& from) { + Event::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Event* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.inputcontroller.v1.Event"; + } + protected: + explicit Event(::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 { + kEventFieldNumber = 2, + kControlFieldNumber = 3, + kTimeFieldNumber = 1, + kValueFieldNumber = 4, + }; + // string event = 2 [json_name = "event"]; + void clear_event(); + const std::string& event() const; + template + void set_event(ArgT0&& arg0, ArgT... args); + std::string* mutable_event(); + PROTOBUF_NODISCARD std::string* release_event(); + void set_allocated_event(std::string* event); + private: + const std::string& _internal_event() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_event(const std::string& value); + std::string* _internal_mutable_event(); + public: + + // string control = 3 [json_name = "control"]; + void clear_control(); + const std::string& control() const; + template + void set_control(ArgT0&& arg0, ArgT... args); + std::string* mutable_control(); + PROTOBUF_NODISCARD std::string* release_control(); + void set_allocated_control(std::string* control); + private: + const std::string& _internal_control() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_control(const std::string& value); + std::string* _internal_mutable_control(); + public: + + // .google.protobuf.Timestamp time = 1 [json_name = "time"]; + bool has_time() const; + private: + bool _internal_has_time() const; + public: + void clear_time(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& time() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_time(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_time(); + void set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_time() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_time(); + public: + void unsafe_arena_set_allocated_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_time(); + + // double value = 4 [json_name = "value"]; + void clear_value(); + double value() const; + void set_value(double value); + private: + double _internal_value() const; + void _internal_set_value(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.Event) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr event_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr control_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_; + double value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; +}; +// ------------------------------------------------------------------- + +class StreamEventsRequest_Events final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.StreamEventsRequest.Events) */ { + public: + inline StreamEventsRequest_Events() : StreamEventsRequest_Events(nullptr) {} + ~StreamEventsRequest_Events() override; + explicit PROTOBUF_CONSTEXPR StreamEventsRequest_Events(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StreamEventsRequest_Events(const StreamEventsRequest_Events& from); + StreamEventsRequest_Events(StreamEventsRequest_Events&& from) noexcept + : StreamEventsRequest_Events() { + *this = ::std::move(from); + } + + inline StreamEventsRequest_Events& operator=(const StreamEventsRequest_Events& from) { + CopyFrom(from); + return *this; + } + inline StreamEventsRequest_Events& operator=(StreamEventsRequest_Events&& 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 StreamEventsRequest_Events& default_instance() { + return *internal_default_instance(); + } + static inline const StreamEventsRequest_Events* internal_default_instance() { + return reinterpret_cast( + &_StreamEventsRequest_Events_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(StreamEventsRequest_Events& a, StreamEventsRequest_Events& b) { + a.Swap(&b); + } + inline void Swap(StreamEventsRequest_Events* 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(StreamEventsRequest_Events* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StreamEventsRequest_Events* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StreamEventsRequest_Events& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const StreamEventsRequest_Events& from) { + StreamEventsRequest_Events::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StreamEventsRequest_Events* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.inputcontroller.v1.StreamEventsRequest.Events"; + } + protected: + explicit StreamEventsRequest_Events(::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 { + kEventsFieldNumber = 2, + kCancelledEventsFieldNumber = 3, + kControlFieldNumber = 1, + }; + // repeated string events = 2 [json_name = "events"]; + int events_size() const; + private: + int _internal_events_size() const; + public: + void clear_events(); + const std::string& events(int index) const; + std::string* mutable_events(int index); + void set_events(int index, const std::string& value); + void set_events(int index, std::string&& value); + void set_events(int index, const char* value); + void set_events(int index, const char* value, size_t size); + std::string* add_events(); + void add_events(const std::string& value); + void add_events(std::string&& value); + void add_events(const char* value); + void add_events(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& events() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_events(); + private: + const std::string& _internal_events(int index) const; + std::string* _internal_add_events(); + public: + + // repeated string cancelled_events = 3 [json_name = "cancelledEvents"]; + int cancelled_events_size() const; + private: + int _internal_cancelled_events_size() const; + public: + void clear_cancelled_events(); + const std::string& cancelled_events(int index) const; + std::string* mutable_cancelled_events(int index); + void set_cancelled_events(int index, const std::string& value); + void set_cancelled_events(int index, std::string&& value); + void set_cancelled_events(int index, const char* value); + void set_cancelled_events(int index, const char* value, size_t size); + std::string* add_cancelled_events(); + void add_cancelled_events(const std::string& value); + void add_cancelled_events(std::string&& value); + void add_cancelled_events(const char* value); + void add_cancelled_events(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& cancelled_events() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_cancelled_events(); + private: + const std::string& _internal_cancelled_events(int index) const; + std::string* _internal_add_cancelled_events(); + public: + + // string control = 1 [json_name = "control"]; + void clear_control(); + const std::string& control() const; + template + void set_control(ArgT0&& arg0, ArgT... args); + std::string* mutable_control(); + PROTOBUF_NODISCARD std::string* release_control(); + void set_allocated_control(std::string* control); + private: + const std::string& _internal_control() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_control(const std::string& value); + std::string* _internal_mutable_control(); + public: + + // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.StreamEventsRequest.Events) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField events_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField cancelled_events_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr control_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; +}; +// ------------------------------------------------------------------- + +class StreamEventsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.StreamEventsRequest) */ { + public: + inline StreamEventsRequest() : StreamEventsRequest(nullptr) {} + ~StreamEventsRequest() override; + explicit PROTOBUF_CONSTEXPR StreamEventsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StreamEventsRequest(const StreamEventsRequest& from); + StreamEventsRequest(StreamEventsRequest&& from) noexcept + : StreamEventsRequest() { + *this = ::std::move(from); + } + + inline StreamEventsRequest& operator=(const StreamEventsRequest& from) { + CopyFrom(from); + return *this; + } + inline StreamEventsRequest& operator=(StreamEventsRequest&& 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 StreamEventsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const StreamEventsRequest* internal_default_instance() { + return reinterpret_cast( + &_StreamEventsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(StreamEventsRequest& a, StreamEventsRequest& b) { + a.Swap(&b); + } + inline void Swap(StreamEventsRequest* 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(StreamEventsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StreamEventsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StreamEventsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const StreamEventsRequest& from) { + StreamEventsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StreamEventsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.inputcontroller.v1.StreamEventsRequest"; + } + protected: + explicit StreamEventsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef StreamEventsRequest_Events Events; + + // accessors ------------------------------------------------------- + + enum : int { + kEventsFieldNumber = 2, + kControllerFieldNumber = 1, + }; + // repeated .viam.component.inputcontroller.v1.StreamEventsRequest.Events events = 2 [json_name = "events"]; + int events_size() const; + private: + int _internal_events_size() const; + public: + void clear_events(); + ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* mutable_events(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::StreamEventsRequest_Events >* + mutable_events(); + private: + const ::viam::component::inputcontroller::v1::StreamEventsRequest_Events& _internal_events(int index) const; + ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* _internal_add_events(); + public: + const ::viam::component::inputcontroller::v1::StreamEventsRequest_Events& events(int index) const; + ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* add_events(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::StreamEventsRequest_Events >& + events() const; + + // string controller = 1 [json_name = "controller"]; + void clear_controller(); + const std::string& controller() const; + template + void set_controller(ArgT0&& arg0, ArgT... args); + std::string* mutable_controller(); + PROTOBUF_NODISCARD std::string* release_controller(); + void set_allocated_controller(std::string* controller); + private: + const std::string& _internal_controller() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_controller(const std::string& value); + std::string* _internal_mutable_controller(); + public: + + // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.StreamEventsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::StreamEventsRequest_Events > events_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr controller_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; +}; +// ------------------------------------------------------------------- + +class StreamEventsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.StreamEventsResponse) */ { + public: + inline StreamEventsResponse() : StreamEventsResponse(nullptr) {} + ~StreamEventsResponse() override; + explicit PROTOBUF_CONSTEXPR StreamEventsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StreamEventsResponse(const StreamEventsResponse& from); + StreamEventsResponse(StreamEventsResponse&& from) noexcept + : StreamEventsResponse() { + *this = ::std::move(from); + } + + inline StreamEventsResponse& operator=(const StreamEventsResponse& from) { + CopyFrom(from); + return *this; + } + inline StreamEventsResponse& operator=(StreamEventsResponse&& 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 StreamEventsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const StreamEventsResponse* internal_default_instance() { + return reinterpret_cast( + &_StreamEventsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(StreamEventsResponse& a, StreamEventsResponse& b) { + a.Swap(&b); + } + inline void Swap(StreamEventsResponse* 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(StreamEventsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StreamEventsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StreamEventsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const StreamEventsResponse& from) { + StreamEventsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StreamEventsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.inputcontroller.v1.StreamEventsResponse"; + } + protected: + explicit StreamEventsResponse(::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 { + kEventFieldNumber = 1, + }; + // .viam.component.inputcontroller.v1.Event event = 1 [json_name = "event"]; + bool has_event() const; + private: + bool _internal_has_event() const; + public: + void clear_event(); + const ::viam::component::inputcontroller::v1::Event& event() const; + PROTOBUF_NODISCARD ::viam::component::inputcontroller::v1::Event* release_event(); + ::viam::component::inputcontroller::v1::Event* mutable_event(); + void set_allocated_event(::viam::component::inputcontroller::v1::Event* event); + private: + const ::viam::component::inputcontroller::v1::Event& _internal_event() const; + ::viam::component::inputcontroller::v1::Event* _internal_mutable_event(); + public: + void unsafe_arena_set_allocated_event( + ::viam::component::inputcontroller::v1::Event* event); + ::viam::component::inputcontroller::v1::Event* unsafe_arena_release_event(); + + // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.StreamEventsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::component::inputcontroller::v1::Event* event_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; +}; +// ------------------------------------------------------------------- + +class Status final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.Status) */ { + public: + inline Status() : Status(nullptr) {} + ~Status() override; + explicit PROTOBUF_CONSTEXPR Status(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Status(const Status& from); + Status(Status&& from) noexcept + : Status() { + *this = ::std::move(from); + } + + inline Status& operator=(const Status& from) { + CopyFrom(from); + return *this; + } + inline Status& operator=(Status&& 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 Status& default_instance() { + return *internal_default_instance(); + } + static inline const Status* internal_default_instance() { + return reinterpret_cast( + &_Status_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(Status& a, Status& b) { + a.Swap(&b); + } + inline void Swap(Status* 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(Status* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Status& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Status& from) { + Status::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Status* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.inputcontroller.v1.Status"; + } + protected: + explicit Status(::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 { + kEventsFieldNumber = 1, + }; + // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; + int events_size() const; + private: + int _internal_events_size() const; + public: + void clear_events(); + ::viam::component::inputcontroller::v1::Event* mutable_events(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event >* + mutable_events(); + private: + const ::viam::component::inputcontroller::v1::Event& _internal_events(int index) const; + ::viam::component::inputcontroller::v1::Event* _internal_add_events(); + public: + const ::viam::component::inputcontroller::v1::Event& events(int index) const; + ::viam::component::inputcontroller::v1::Event* add_events(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event >& + events() const; + + // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.Status) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event > events_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// GetControlsRequest + +// string controller = 1 [json_name = "controller"]; +inline void GetControlsRequest::clear_controller() { + _impl_.controller_.ClearToEmpty(); +} +inline const std::string& GetControlsRequest::controller() const { + // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.GetControlsRequest.controller) + return _internal_controller(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetControlsRequest::set_controller(ArgT0&& arg0, ArgT... args) { + + _impl_.controller_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.GetControlsRequest.controller) +} +inline std::string* GetControlsRequest::mutable_controller() { + std::string* _s = _internal_mutable_controller(); + // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.GetControlsRequest.controller) + return _s; +} +inline const std::string& GetControlsRequest::_internal_controller() const { + return _impl_.controller_.Get(); +} +inline void GetControlsRequest::_internal_set_controller(const std::string& value) { + + _impl_.controller_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetControlsRequest::_internal_mutable_controller() { + + return _impl_.controller_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetControlsRequest::release_controller() { + // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.GetControlsRequest.controller) + return _impl_.controller_.Release(); +} +inline void GetControlsRequest::set_allocated_controller(std::string* controller) { + if (controller != nullptr) { + + } else { + + } + _impl_.controller_.SetAllocated(controller, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.controller_.IsDefault()) { + _impl_.controller_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.GetControlsRequest.controller) +} + +// ------------------------------------------------------------------- + +// GetControlsResponse + +// repeated string controls = 1 [json_name = "controls"]; +inline int GetControlsResponse::_internal_controls_size() const { + return _impl_.controls_.size(); +} +inline int GetControlsResponse::controls_size() const { + return _internal_controls_size(); +} +inline void GetControlsResponse::clear_controls() { + _impl_.controls_.Clear(); +} +inline std::string* GetControlsResponse::add_controls() { + std::string* _s = _internal_add_controls(); + // @@protoc_insertion_point(field_add_mutable:viam.component.inputcontroller.v1.GetControlsResponse.controls) + return _s; +} +inline const std::string& GetControlsResponse::_internal_controls(int index) const { + return _impl_.controls_.Get(index); +} +inline const std::string& GetControlsResponse::controls(int index) const { + // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.GetControlsResponse.controls) + return _internal_controls(index); +} +inline std::string* GetControlsResponse::mutable_controls(int index) { + // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.GetControlsResponse.controls) + return _impl_.controls_.Mutable(index); +} +inline void GetControlsResponse::set_controls(int index, const std::string& value) { + _impl_.controls_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.GetControlsResponse.controls) +} +inline void GetControlsResponse::set_controls(int index, std::string&& value) { + _impl_.controls_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.GetControlsResponse.controls) +} +inline void GetControlsResponse::set_controls(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.controls_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.component.inputcontroller.v1.GetControlsResponse.controls) +} +inline void GetControlsResponse::set_controls(int index, const char* value, size_t size) { + _impl_.controls_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.component.inputcontroller.v1.GetControlsResponse.controls) +} +inline std::string* GetControlsResponse::_internal_add_controls() { + return _impl_.controls_.Add(); +} +inline void GetControlsResponse::add_controls(const std::string& value) { + _impl_.controls_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.component.inputcontroller.v1.GetControlsResponse.controls) +} +inline void GetControlsResponse::add_controls(std::string&& value) { + _impl_.controls_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.component.inputcontroller.v1.GetControlsResponse.controls) +} +inline void GetControlsResponse::add_controls(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.controls_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.component.inputcontroller.v1.GetControlsResponse.controls) +} +inline void GetControlsResponse::add_controls(const char* value, size_t size) { + _impl_.controls_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.component.inputcontroller.v1.GetControlsResponse.controls) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +GetControlsResponse::controls() const { + // @@protoc_insertion_point(field_list:viam.component.inputcontroller.v1.GetControlsResponse.controls) + return _impl_.controls_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +GetControlsResponse::mutable_controls() { + // @@protoc_insertion_point(field_mutable_list:viam.component.inputcontroller.v1.GetControlsResponse.controls) + return &_impl_.controls_; +} + +// ------------------------------------------------------------------- + +// GetEventsRequest + +// string controller = 1 [json_name = "controller"]; +inline void GetEventsRequest::clear_controller() { + _impl_.controller_.ClearToEmpty(); +} +inline const std::string& GetEventsRequest::controller() const { + // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.GetEventsRequest.controller) + return _internal_controller(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetEventsRequest::set_controller(ArgT0&& arg0, ArgT... args) { + + _impl_.controller_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.GetEventsRequest.controller) +} +inline std::string* GetEventsRequest::mutable_controller() { + std::string* _s = _internal_mutable_controller(); + // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.GetEventsRequest.controller) + return _s; +} +inline const std::string& GetEventsRequest::_internal_controller() const { + return _impl_.controller_.Get(); +} +inline void GetEventsRequest::_internal_set_controller(const std::string& value) { + + _impl_.controller_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetEventsRequest::_internal_mutable_controller() { + + return _impl_.controller_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetEventsRequest::release_controller() { + // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.GetEventsRequest.controller) + return _impl_.controller_.Release(); +} +inline void GetEventsRequest::set_allocated_controller(std::string* controller) { + if (controller != nullptr) { + + } else { + + } + _impl_.controller_.SetAllocated(controller, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.controller_.IsDefault()) { + _impl_.controller_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.GetEventsRequest.controller) +} + +// ------------------------------------------------------------------- + +// GetEventsResponse + +// repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; +inline int GetEventsResponse::_internal_events_size() const { + return _impl_.events_.size(); +} +inline int GetEventsResponse::events_size() const { + return _internal_events_size(); +} +inline void GetEventsResponse::clear_events() { + _impl_.events_.Clear(); +} +inline ::viam::component::inputcontroller::v1::Event* GetEventsResponse::mutable_events(int index) { + // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.GetEventsResponse.events) + return _impl_.events_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event >* +GetEventsResponse::mutable_events() { + // @@protoc_insertion_point(field_mutable_list:viam.component.inputcontroller.v1.GetEventsResponse.events) + return &_impl_.events_; +} +inline const ::viam::component::inputcontroller::v1::Event& GetEventsResponse::_internal_events(int index) const { + return _impl_.events_.Get(index); +} +inline const ::viam::component::inputcontroller::v1::Event& GetEventsResponse::events(int index) const { + // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.GetEventsResponse.events) + return _internal_events(index); +} +inline ::viam::component::inputcontroller::v1::Event* GetEventsResponse::_internal_add_events() { + return _impl_.events_.Add(); +} +inline ::viam::component::inputcontroller::v1::Event* GetEventsResponse::add_events() { + ::viam::component::inputcontroller::v1::Event* _add = _internal_add_events(); + // @@protoc_insertion_point(field_add:viam.component.inputcontroller.v1.GetEventsResponse.events) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event >& +GetEventsResponse::events() const { + // @@protoc_insertion_point(field_list:viam.component.inputcontroller.v1.GetEventsResponse.events) + return _impl_.events_; +} + +// ------------------------------------------------------------------- + +// TriggerEventRequest + +// string controller = 1 [json_name = "controller"]; +inline void TriggerEventRequest::clear_controller() { + _impl_.controller_.ClearToEmpty(); +} +inline const std::string& TriggerEventRequest::controller() const { + // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.TriggerEventRequest.controller) + return _internal_controller(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TriggerEventRequest::set_controller(ArgT0&& arg0, ArgT... args) { + + _impl_.controller_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.TriggerEventRequest.controller) +} +inline std::string* TriggerEventRequest::mutable_controller() { + std::string* _s = _internal_mutable_controller(); + // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.TriggerEventRequest.controller) + return _s; +} +inline const std::string& TriggerEventRequest::_internal_controller() const { + return _impl_.controller_.Get(); +} +inline void TriggerEventRequest::_internal_set_controller(const std::string& value) { + + _impl_.controller_.Set(value, GetArenaForAllocation()); +} +inline std::string* TriggerEventRequest::_internal_mutable_controller() { + + return _impl_.controller_.Mutable(GetArenaForAllocation()); +} +inline std::string* TriggerEventRequest::release_controller() { + // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.TriggerEventRequest.controller) + return _impl_.controller_.Release(); +} +inline void TriggerEventRequest::set_allocated_controller(std::string* controller) { + if (controller != nullptr) { + + } else { + + } + _impl_.controller_.SetAllocated(controller, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.controller_.IsDefault()) { + _impl_.controller_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.TriggerEventRequest.controller) +} + +// .viam.component.inputcontroller.v1.Event event = 2 [json_name = "event"]; +inline bool TriggerEventRequest::_internal_has_event() const { + return this != internal_default_instance() && _impl_.event_ != nullptr; +} +inline bool TriggerEventRequest::has_event() const { + return _internal_has_event(); +} +inline void TriggerEventRequest::clear_event() { + if (GetArenaForAllocation() == nullptr && _impl_.event_ != nullptr) { + delete _impl_.event_; + } + _impl_.event_ = nullptr; +} +inline const ::viam::component::inputcontroller::v1::Event& TriggerEventRequest::_internal_event() const { + const ::viam::component::inputcontroller::v1::Event* p = _impl_.event_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::component::inputcontroller::v1::_Event_default_instance_); +} +inline const ::viam::component::inputcontroller::v1::Event& TriggerEventRequest::event() const { + // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.TriggerEventRequest.event) + return _internal_event(); +} +inline void TriggerEventRequest::unsafe_arena_set_allocated_event( + ::viam::component::inputcontroller::v1::Event* event) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.event_); + } + _impl_.event_ = event; + if (event) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.inputcontroller.v1.TriggerEventRequest.event) +} +inline ::viam::component::inputcontroller::v1::Event* TriggerEventRequest::release_event() { + + ::viam::component::inputcontroller::v1::Event* temp = _impl_.event_; + _impl_.event_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::component::inputcontroller::v1::Event* TriggerEventRequest::unsafe_arena_release_event() { + // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.TriggerEventRequest.event) + + ::viam::component::inputcontroller::v1::Event* temp = _impl_.event_; + _impl_.event_ = nullptr; + return temp; +} +inline ::viam::component::inputcontroller::v1::Event* TriggerEventRequest::_internal_mutable_event() { + + if (_impl_.event_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::component::inputcontroller::v1::Event>(GetArenaForAllocation()); + _impl_.event_ = p; + } + return _impl_.event_; +} +inline ::viam::component::inputcontroller::v1::Event* TriggerEventRequest::mutable_event() { + ::viam::component::inputcontroller::v1::Event* _msg = _internal_mutable_event(); + // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.TriggerEventRequest.event) + return _msg; +} +inline void TriggerEventRequest::set_allocated_event(::viam::component::inputcontroller::v1::Event* event) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.event_; + } + if (event) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(event); + if (message_arena != submessage_arena) { + event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, event, submessage_arena); + } + + } else { + + } + _impl_.event_ = event; + // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.TriggerEventRequest.event) +} + +// ------------------------------------------------------------------- + +// TriggerEventResponse + +// ------------------------------------------------------------------- + +// Event + +// .google.protobuf.Timestamp time = 1 [json_name = "time"]; +inline bool Event::_internal_has_time() const { + return this != internal_default_instance() && _impl_.time_ != nullptr; +} +inline bool Event::has_time() const { + return _internal_has_time(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Event::_internal_time() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.time_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Event::time() const { + // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.Event.time) + return _internal_time(); +} +inline void Event::unsafe_arena_set_allocated_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_); + } + _impl_.time_ = time; + if (time) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.inputcontroller.v1.Event.time) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Event::release_time() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_; + _impl_.time_ = 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* Event::unsafe_arena_release_time() { + // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.Event.time) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_; + _impl_.time_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Event::_internal_mutable_time() { + + if (_impl_.time_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.time_ = p; + } + return _impl_.time_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Event::mutable_time() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_time(); + // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.Event.time) + return _msg; +} +inline void Event::set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_); + } + if (time) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time)); + if (message_arena != submessage_arena) { + time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, time, submessage_arena); + } + + } else { + + } + _impl_.time_ = time; + // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.Event.time) +} + +// string event = 2 [json_name = "event"]; +inline void Event::clear_event() { + _impl_.event_.ClearToEmpty(); +} +inline const std::string& Event::event() const { + // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.Event.event) + return _internal_event(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Event::set_event(ArgT0&& arg0, ArgT... args) { + + _impl_.event_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.Event.event) +} +inline std::string* Event::mutable_event() { + std::string* _s = _internal_mutable_event(); + // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.Event.event) + return _s; +} +inline const std::string& Event::_internal_event() const { + return _impl_.event_.Get(); +} +inline void Event::_internal_set_event(const std::string& value) { + + _impl_.event_.Set(value, GetArenaForAllocation()); +} +inline std::string* Event::_internal_mutable_event() { + + return _impl_.event_.Mutable(GetArenaForAllocation()); +} +inline std::string* Event::release_event() { + // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.Event.event) + return _impl_.event_.Release(); +} +inline void Event::set_allocated_event(std::string* event) { + if (event != nullptr) { + + } else { + + } + _impl_.event_.SetAllocated(event, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.event_.IsDefault()) { + _impl_.event_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.Event.event) +} + +// string control = 3 [json_name = "control"]; +inline void Event::clear_control() { + _impl_.control_.ClearToEmpty(); +} +inline const std::string& Event::control() const { + // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.Event.control) + return _internal_control(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Event::set_control(ArgT0&& arg0, ArgT... args) { + + _impl_.control_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.Event.control) +} +inline std::string* Event::mutable_control() { + std::string* _s = _internal_mutable_control(); + // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.Event.control) + return _s; +} +inline const std::string& Event::_internal_control() const { + return _impl_.control_.Get(); +} +inline void Event::_internal_set_control(const std::string& value) { + + _impl_.control_.Set(value, GetArenaForAllocation()); +} +inline std::string* Event::_internal_mutable_control() { + + return _impl_.control_.Mutable(GetArenaForAllocation()); +} +inline std::string* Event::release_control() { + // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.Event.control) + return _impl_.control_.Release(); +} +inline void Event::set_allocated_control(std::string* control) { + if (control != nullptr) { + + } else { + + } + _impl_.control_.SetAllocated(control, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.control_.IsDefault()) { + _impl_.control_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.Event.control) +} + +// double value = 4 [json_name = "value"]; +inline void Event::clear_value() { + _impl_.value_ = 0; +} +inline double Event::_internal_value() const { + return _impl_.value_; +} +inline double Event::value() const { + // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.Event.value) + return _internal_value(); +} +inline void Event::_internal_set_value(double value) { + + _impl_.value_ = value; +} +inline void Event::set_value(double value) { + _internal_set_value(value); + // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.Event.value) +} + +// ------------------------------------------------------------------- + +// StreamEventsRequest_Events + +// string control = 1 [json_name = "control"]; +inline void StreamEventsRequest_Events::clear_control() { + _impl_.control_.ClearToEmpty(); +} +inline const std::string& StreamEventsRequest_Events::control() const { + // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.StreamEventsRequest.Events.control) + return _internal_control(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void StreamEventsRequest_Events::set_control(ArgT0&& arg0, ArgT... args) { + + _impl_.control_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.StreamEventsRequest.Events.control) +} +inline std::string* StreamEventsRequest_Events::mutable_control() { + std::string* _s = _internal_mutable_control(); + // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.StreamEventsRequest.Events.control) + return _s; +} +inline const std::string& StreamEventsRequest_Events::_internal_control() const { + return _impl_.control_.Get(); +} +inline void StreamEventsRequest_Events::_internal_set_control(const std::string& value) { + + _impl_.control_.Set(value, GetArenaForAllocation()); +} +inline std::string* StreamEventsRequest_Events::_internal_mutable_control() { + + return _impl_.control_.Mutable(GetArenaForAllocation()); +} +inline std::string* StreamEventsRequest_Events::release_control() { + // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.StreamEventsRequest.Events.control) + return _impl_.control_.Release(); +} +inline void StreamEventsRequest_Events::set_allocated_control(std::string* control) { + if (control != nullptr) { + + } else { + + } + _impl_.control_.SetAllocated(control, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.control_.IsDefault()) { + _impl_.control_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.StreamEventsRequest.Events.control) +} + +// repeated string events = 2 [json_name = "events"]; +inline int StreamEventsRequest_Events::_internal_events_size() const { + return _impl_.events_.size(); +} +inline int StreamEventsRequest_Events::events_size() const { + return _internal_events_size(); +} +inline void StreamEventsRequest_Events::clear_events() { + _impl_.events_.Clear(); +} +inline std::string* StreamEventsRequest_Events::add_events() { + std::string* _s = _internal_add_events(); + // @@protoc_insertion_point(field_add_mutable:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) + return _s; +} +inline const std::string& StreamEventsRequest_Events::_internal_events(int index) const { + return _impl_.events_.Get(index); +} +inline const std::string& StreamEventsRequest_Events::events(int index) const { + // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) + return _internal_events(index); +} +inline std::string* StreamEventsRequest_Events::mutable_events(int index) { + // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) + return _impl_.events_.Mutable(index); +} +inline void StreamEventsRequest_Events::set_events(int index, const std::string& value) { + _impl_.events_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) +} +inline void StreamEventsRequest_Events::set_events(int index, std::string&& value) { + _impl_.events_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) +} +inline void StreamEventsRequest_Events::set_events(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.events_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) +} +inline void StreamEventsRequest_Events::set_events(int index, const char* value, size_t size) { + _impl_.events_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) +} +inline std::string* StreamEventsRequest_Events::_internal_add_events() { + return _impl_.events_.Add(); +} +inline void StreamEventsRequest_Events::add_events(const std::string& value) { + _impl_.events_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) +} +inline void StreamEventsRequest_Events::add_events(std::string&& value) { + _impl_.events_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) +} +inline void StreamEventsRequest_Events::add_events(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.events_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) +} +inline void StreamEventsRequest_Events::add_events(const char* value, size_t size) { + _impl_.events_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +StreamEventsRequest_Events::events() const { + // @@protoc_insertion_point(field_list:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) + return _impl_.events_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +StreamEventsRequest_Events::mutable_events() { + // @@protoc_insertion_point(field_mutable_list:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) + return &_impl_.events_; +} + +// repeated string cancelled_events = 3 [json_name = "cancelledEvents"]; +inline int StreamEventsRequest_Events::_internal_cancelled_events_size() const { + return _impl_.cancelled_events_.size(); +} +inline int StreamEventsRequest_Events::cancelled_events_size() const { + return _internal_cancelled_events_size(); +} +inline void StreamEventsRequest_Events::clear_cancelled_events() { + _impl_.cancelled_events_.Clear(); +} +inline std::string* StreamEventsRequest_Events::add_cancelled_events() { + std::string* _s = _internal_add_cancelled_events(); + // @@protoc_insertion_point(field_add_mutable:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) + return _s; +} +inline const std::string& StreamEventsRequest_Events::_internal_cancelled_events(int index) const { + return _impl_.cancelled_events_.Get(index); +} +inline const std::string& StreamEventsRequest_Events::cancelled_events(int index) const { + // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) + return _internal_cancelled_events(index); +} +inline std::string* StreamEventsRequest_Events::mutable_cancelled_events(int index) { + // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) + return _impl_.cancelled_events_.Mutable(index); +} +inline void StreamEventsRequest_Events::set_cancelled_events(int index, const std::string& value) { + _impl_.cancelled_events_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) +} +inline void StreamEventsRequest_Events::set_cancelled_events(int index, std::string&& value) { + _impl_.cancelled_events_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) +} +inline void StreamEventsRequest_Events::set_cancelled_events(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.cancelled_events_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) +} +inline void StreamEventsRequest_Events::set_cancelled_events(int index, const char* value, size_t size) { + _impl_.cancelled_events_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) +} +inline std::string* StreamEventsRequest_Events::_internal_add_cancelled_events() { + return _impl_.cancelled_events_.Add(); +} +inline void StreamEventsRequest_Events::add_cancelled_events(const std::string& value) { + _impl_.cancelled_events_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) +} +inline void StreamEventsRequest_Events::add_cancelled_events(std::string&& value) { + _impl_.cancelled_events_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) +} +inline void StreamEventsRequest_Events::add_cancelled_events(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.cancelled_events_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) +} +inline void StreamEventsRequest_Events::add_cancelled_events(const char* value, size_t size) { + _impl_.cancelled_events_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +StreamEventsRequest_Events::cancelled_events() const { + // @@protoc_insertion_point(field_list:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) + return _impl_.cancelled_events_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +StreamEventsRequest_Events::mutable_cancelled_events() { + // @@protoc_insertion_point(field_mutable_list:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) + return &_impl_.cancelled_events_; +} + +// ------------------------------------------------------------------- + +// StreamEventsRequest + +// string controller = 1 [json_name = "controller"]; +inline void StreamEventsRequest::clear_controller() { + _impl_.controller_.ClearToEmpty(); +} +inline const std::string& StreamEventsRequest::controller() const { + // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.StreamEventsRequest.controller) + return _internal_controller(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void StreamEventsRequest::set_controller(ArgT0&& arg0, ArgT... args) { + + _impl_.controller_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.StreamEventsRequest.controller) +} +inline std::string* StreamEventsRequest::mutable_controller() { + std::string* _s = _internal_mutable_controller(); + // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.StreamEventsRequest.controller) + return _s; +} +inline const std::string& StreamEventsRequest::_internal_controller() const { + return _impl_.controller_.Get(); +} +inline void StreamEventsRequest::_internal_set_controller(const std::string& value) { + + _impl_.controller_.Set(value, GetArenaForAllocation()); +} +inline std::string* StreamEventsRequest::_internal_mutable_controller() { + + return _impl_.controller_.Mutable(GetArenaForAllocation()); +} +inline std::string* StreamEventsRequest::release_controller() { + // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.StreamEventsRequest.controller) + return _impl_.controller_.Release(); +} +inline void StreamEventsRequest::set_allocated_controller(std::string* controller) { + if (controller != nullptr) { + + } else { + + } + _impl_.controller_.SetAllocated(controller, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.controller_.IsDefault()) { + _impl_.controller_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.StreamEventsRequest.controller) +} + +// repeated .viam.component.inputcontroller.v1.StreamEventsRequest.Events events = 2 [json_name = "events"]; +inline int StreamEventsRequest::_internal_events_size() const { + return _impl_.events_.size(); +} +inline int StreamEventsRequest::events_size() const { + return _internal_events_size(); +} +inline void StreamEventsRequest::clear_events() { + _impl_.events_.Clear(); +} +inline ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* StreamEventsRequest::mutable_events(int index) { + // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.StreamEventsRequest.events) + return _impl_.events_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::StreamEventsRequest_Events >* +StreamEventsRequest::mutable_events() { + // @@protoc_insertion_point(field_mutable_list:viam.component.inputcontroller.v1.StreamEventsRequest.events) + return &_impl_.events_; +} +inline const ::viam::component::inputcontroller::v1::StreamEventsRequest_Events& StreamEventsRequest::_internal_events(int index) const { + return _impl_.events_.Get(index); +} +inline const ::viam::component::inputcontroller::v1::StreamEventsRequest_Events& StreamEventsRequest::events(int index) const { + // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.StreamEventsRequest.events) + return _internal_events(index); +} +inline ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* StreamEventsRequest::_internal_add_events() { + return _impl_.events_.Add(); +} +inline ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* StreamEventsRequest::add_events() { + ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* _add = _internal_add_events(); + // @@protoc_insertion_point(field_add:viam.component.inputcontroller.v1.StreamEventsRequest.events) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::StreamEventsRequest_Events >& +StreamEventsRequest::events() const { + // @@protoc_insertion_point(field_list:viam.component.inputcontroller.v1.StreamEventsRequest.events) + return _impl_.events_; +} + +// ------------------------------------------------------------------- + +// StreamEventsResponse + +// .viam.component.inputcontroller.v1.Event event = 1 [json_name = "event"]; +inline bool StreamEventsResponse::_internal_has_event() const { + return this != internal_default_instance() && _impl_.event_ != nullptr; +} +inline bool StreamEventsResponse::has_event() const { + return _internal_has_event(); +} +inline void StreamEventsResponse::clear_event() { + if (GetArenaForAllocation() == nullptr && _impl_.event_ != nullptr) { + delete _impl_.event_; + } + _impl_.event_ = nullptr; +} +inline const ::viam::component::inputcontroller::v1::Event& StreamEventsResponse::_internal_event() const { + const ::viam::component::inputcontroller::v1::Event* p = _impl_.event_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::component::inputcontroller::v1::_Event_default_instance_); +} +inline const ::viam::component::inputcontroller::v1::Event& StreamEventsResponse::event() const { + // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.StreamEventsResponse.event) + return _internal_event(); +} +inline void StreamEventsResponse::unsafe_arena_set_allocated_event( + ::viam::component::inputcontroller::v1::Event* event) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.event_); + } + _impl_.event_ = event; + if (event) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.inputcontroller.v1.StreamEventsResponse.event) +} +inline ::viam::component::inputcontroller::v1::Event* StreamEventsResponse::release_event() { + + ::viam::component::inputcontroller::v1::Event* temp = _impl_.event_; + _impl_.event_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::component::inputcontroller::v1::Event* StreamEventsResponse::unsafe_arena_release_event() { + // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.StreamEventsResponse.event) + + ::viam::component::inputcontroller::v1::Event* temp = _impl_.event_; + _impl_.event_ = nullptr; + return temp; +} +inline ::viam::component::inputcontroller::v1::Event* StreamEventsResponse::_internal_mutable_event() { + + if (_impl_.event_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::component::inputcontroller::v1::Event>(GetArenaForAllocation()); + _impl_.event_ = p; + } + return _impl_.event_; +} +inline ::viam::component::inputcontroller::v1::Event* StreamEventsResponse::mutable_event() { + ::viam::component::inputcontroller::v1::Event* _msg = _internal_mutable_event(); + // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.StreamEventsResponse.event) + return _msg; +} +inline void StreamEventsResponse::set_allocated_event(::viam::component::inputcontroller::v1::Event* event) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.event_; + } + if (event) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(event); + if (message_arena != submessage_arena) { + event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, event, submessage_arena); + } + + } else { + + } + _impl_.event_ = event; + // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.StreamEventsResponse.event) +} + +// ------------------------------------------------------------------- + +// Status + +// repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; +inline int Status::_internal_events_size() const { + return _impl_.events_.size(); +} +inline int Status::events_size() const { + return _internal_events_size(); +} +inline void Status::clear_events() { + _impl_.events_.Clear(); +} +inline ::viam::component::inputcontroller::v1::Event* Status::mutable_events(int index) { + // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.Status.events) + return _impl_.events_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event >* +Status::mutable_events() { + // @@protoc_insertion_point(field_mutable_list:viam.component.inputcontroller.v1.Status.events) + return &_impl_.events_; +} +inline const ::viam::component::inputcontroller::v1::Event& Status::_internal_events(int index) const { + return _impl_.events_.Get(index); +} +inline const ::viam::component::inputcontroller::v1::Event& Status::events(int index) const { + // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.Status.events) + return _internal_events(index); +} +inline ::viam::component::inputcontroller::v1::Event* Status::_internal_add_events() { + return _impl_.events_.Add(); +} +inline ::viam::component::inputcontroller::v1::Event* Status::add_events() { + ::viam::component::inputcontroller::v1::Event* _add = _internal_add_events(); + // @@protoc_insertion_point(field_add:viam.component.inputcontroller.v1.Status.events) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event >& +Status::events() const { + // @@protoc_insertion_point(field_list:viam.component.inputcontroller.v1.Status.events) + return _impl_.events_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace inputcontroller +} // namespace component +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto diff --git a/src/gen/component/motor/v1/motor.grpc.pb.cc b/src/gen/component/motor/v1/motor.grpc.pb.cc new file mode 100644 index 000000000..cd8870f87 --- /dev/null +++ b/src/gen/component/motor/v1/motor.grpc.pb.cc @@ -0,0 +1,386 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/motor/v1/motor.proto + +#include "component/motor/v1/motor.pb.h" +#include "component/motor/v1/motor.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace component { +namespace motor { +namespace v1 { + +static const char* MotorService_method_names[] = { + "/viam.component.motor.v1.MotorService/SetPower", + "/viam.component.motor.v1.MotorService/GoFor", + "/viam.component.motor.v1.MotorService/GoTo", + "/viam.component.motor.v1.MotorService/ResetZeroPosition", + "/viam.component.motor.v1.MotorService/GetPosition", + "/viam.component.motor.v1.MotorService/GetProperties", + "/viam.component.motor.v1.MotorService/Stop", + "/viam.component.motor.v1.MotorService/IsPowered", +}; + +std::unique_ptr< MotorService::Stub> MotorService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< MotorService::Stub> stub(new MotorService::Stub(channel, options)); + return stub; +} + +MotorService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_SetPower_(MotorService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GoFor_(MotorService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GoTo_(MotorService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ResetZeroPosition_(MotorService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetPosition_(MotorService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetProperties_(MotorService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Stop_(MotorService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_IsPowered_(MotorService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status MotorService::Stub::SetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::viam::component::motor::v1::SetPowerResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::motor::v1::SetPowerRequest, ::viam::component::motor::v1::SetPowerResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetPower_, context, request, response); +} + +void MotorService::Stub::async::SetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest* request, ::viam::component::motor::v1::SetPowerResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::motor::v1::SetPowerRequest, ::viam::component::motor::v1::SetPowerResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPower_, context, request, response, std::move(f)); +} + +void MotorService::Stub::async::SetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest* request, ::viam::component::motor::v1::SetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPower_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::SetPowerResponse>* MotorService::Stub::PrepareAsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::motor::v1::SetPowerResponse, ::viam::component::motor::v1::SetPowerRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetPower_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::SetPowerResponse>* MotorService::Stub::AsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncSetPowerRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status MotorService::Stub::GoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest& request, ::viam::component::motor::v1::GoForResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::motor::v1::GoForRequest, ::viam::component::motor::v1::GoForResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GoFor_, context, request, response); +} + +void MotorService::Stub::async::GoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest* request, ::viam::component::motor::v1::GoForResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::motor::v1::GoForRequest, ::viam::component::motor::v1::GoForResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GoFor_, context, request, response, std::move(f)); +} + +void MotorService::Stub::async::GoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest* request, ::viam::component::motor::v1::GoForResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GoFor_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoForResponse>* MotorService::Stub::PrepareAsyncGoForRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::motor::v1::GoForResponse, ::viam::component::motor::v1::GoForRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GoFor_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoForResponse>* MotorService::Stub::AsyncGoForRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGoForRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status MotorService::Stub::GoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest& request, ::viam::component::motor::v1::GoToResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::motor::v1::GoToRequest, ::viam::component::motor::v1::GoToResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GoTo_, context, request, response); +} + +void MotorService::Stub::async::GoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest* request, ::viam::component::motor::v1::GoToResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::motor::v1::GoToRequest, ::viam::component::motor::v1::GoToResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GoTo_, context, request, response, std::move(f)); +} + +void MotorService::Stub::async::GoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest* request, ::viam::component::motor::v1::GoToResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GoTo_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoToResponse>* MotorService::Stub::PrepareAsyncGoToRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::motor::v1::GoToResponse, ::viam::component::motor::v1::GoToRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GoTo_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoToResponse>* MotorService::Stub::AsyncGoToRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGoToRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status MotorService::Stub::ResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest& request, ::viam::component::motor::v1::ResetZeroPositionResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::motor::v1::ResetZeroPositionRequest, ::viam::component::motor::v1::ResetZeroPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ResetZeroPosition_, context, request, response); +} + +void MotorService::Stub::async::ResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::motor::v1::ResetZeroPositionRequest, ::viam::component::motor::v1::ResetZeroPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ResetZeroPosition_, context, request, response, std::move(f)); +} + +void MotorService::Stub::async::ResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ResetZeroPosition_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::ResetZeroPositionResponse>* MotorService::Stub::PrepareAsyncResetZeroPositionRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::motor::v1::ResetZeroPositionResponse, ::viam::component::motor::v1::ResetZeroPositionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ResetZeroPosition_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::ResetZeroPositionResponse>* MotorService::Stub::AsyncResetZeroPositionRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncResetZeroPositionRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status MotorService::Stub::GetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest& request, ::viam::component::motor::v1::GetPositionResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::motor::v1::GetPositionRequest, ::viam::component::motor::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetPosition_, context, request, response); +} + +void MotorService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest* request, ::viam::component::motor::v1::GetPositionResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::motor::v1::GetPositionRequest, ::viam::component::motor::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); +} + +void MotorService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest* request, ::viam::component::motor::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPositionResponse>* MotorService::Stub::PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::motor::v1::GetPositionResponse, ::viam::component::motor::v1::GetPositionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetPosition_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPositionResponse>* MotorService::Stub::AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetPositionRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status MotorService::Stub::GetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest& request, ::viam::component::motor::v1::GetPropertiesResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::motor::v1::GetPropertiesRequest, ::viam::component::motor::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetProperties_, context, request, response); +} + +void MotorService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest* request, ::viam::component::motor::v1::GetPropertiesResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::motor::v1::GetPropertiesRequest, ::viam::component::motor::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); +} + +void MotorService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest* request, ::viam::component::motor::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPropertiesResponse>* MotorService::Stub::PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::motor::v1::GetPropertiesResponse, ::viam::component::motor::v1::GetPropertiesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetProperties_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPropertiesResponse>* MotorService::Stub::AsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetPropertiesRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status MotorService::Stub::Stop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest& request, ::viam::component::motor::v1::StopResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::motor::v1::StopRequest, ::viam::component::motor::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Stop_, context, request, response); +} + +void MotorService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest* request, ::viam::component::motor::v1::StopResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::motor::v1::StopRequest, ::viam::component::motor::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); +} + +void MotorService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest* request, ::viam::component::motor::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::StopResponse>* MotorService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::motor::v1::StopResponse, ::viam::component::motor::v1::StopRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Stop_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::StopResponse>* MotorService::Stub::AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncStopRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status MotorService::Stub::IsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest& request, ::viam::component::motor::v1::IsPoweredResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::motor::v1::IsPoweredRequest, ::viam::component::motor::v1::IsPoweredResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_IsPowered_, context, request, response); +} + +void MotorService::Stub::async::IsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest* request, ::viam::component::motor::v1::IsPoweredResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::motor::v1::IsPoweredRequest, ::viam::component::motor::v1::IsPoweredResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IsPowered_, context, request, response, std::move(f)); +} + +void MotorService::Stub::async::IsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest* request, ::viam::component::motor::v1::IsPoweredResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IsPowered_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::IsPoweredResponse>* MotorService::Stub::PrepareAsyncIsPoweredRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::motor::v1::IsPoweredResponse, ::viam::component::motor::v1::IsPoweredRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_IsPowered_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::IsPoweredResponse>* MotorService::Stub::AsyncIsPoweredRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncIsPoweredRaw(context, request, cq); + result->StartCall(); + return result; +} + +MotorService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + MotorService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::SetPowerRequest, ::viam::component::motor::v1::SetPowerResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MotorService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::motor::v1::SetPowerRequest* req, + ::viam::component::motor::v1::SetPowerResponse* resp) { + return service->SetPower(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MotorService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::GoForRequest, ::viam::component::motor::v1::GoForResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MotorService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::motor::v1::GoForRequest* req, + ::viam::component::motor::v1::GoForResponse* resp) { + return service->GoFor(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MotorService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::GoToRequest, ::viam::component::motor::v1::GoToResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MotorService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::motor::v1::GoToRequest* req, + ::viam::component::motor::v1::GoToResponse* resp) { + return service->GoTo(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MotorService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::ResetZeroPositionRequest, ::viam::component::motor::v1::ResetZeroPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MotorService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::motor::v1::ResetZeroPositionRequest* req, + ::viam::component::motor::v1::ResetZeroPositionResponse* resp) { + return service->ResetZeroPosition(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MotorService_method_names[4], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::GetPositionRequest, ::viam::component::motor::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MotorService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::motor::v1::GetPositionRequest* req, + ::viam::component::motor::v1::GetPositionResponse* resp) { + return service->GetPosition(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MotorService_method_names[5], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::GetPropertiesRequest, ::viam::component::motor::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MotorService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::motor::v1::GetPropertiesRequest* req, + ::viam::component::motor::v1::GetPropertiesResponse* resp) { + return service->GetProperties(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MotorService_method_names[6], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::StopRequest, ::viam::component::motor::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MotorService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::motor::v1::StopRequest* req, + ::viam::component::motor::v1::StopResponse* resp) { + return service->Stop(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MotorService_method_names[7], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::IsPoweredRequest, ::viam::component::motor::v1::IsPoweredResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MotorService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::motor::v1::IsPoweredRequest* req, + ::viam::component::motor::v1::IsPoweredResponse* resp) { + return service->IsPowered(ctx, req, resp); + }, this))); +} + +MotorService::Service::~Service() { +} + +::grpc::Status MotorService::Service::SetPower(::grpc::ServerContext* context, const ::viam::component::motor::v1::SetPowerRequest* request, ::viam::component::motor::v1::SetPowerResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MotorService::Service::GoFor(::grpc::ServerContext* context, const ::viam::component::motor::v1::GoForRequest* request, ::viam::component::motor::v1::GoForResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MotorService::Service::GoTo(::grpc::ServerContext* context, const ::viam::component::motor::v1::GoToRequest* request, ::viam::component::motor::v1::GoToResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MotorService::Service::ResetZeroPosition(::grpc::ServerContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MotorService::Service::GetPosition(::grpc::ServerContext* context, const ::viam::component::motor::v1::GetPositionRequest* request, ::viam::component::motor::v1::GetPositionResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MotorService::Service::GetProperties(::grpc::ServerContext* context, const ::viam::component::motor::v1::GetPropertiesRequest* request, ::viam::component::motor::v1::GetPropertiesResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MotorService::Service::Stop(::grpc::ServerContext* context, const ::viam::component::motor::v1::StopRequest* request, ::viam::component::motor::v1::StopResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MotorService::Service::IsPowered(::grpc::ServerContext* context, const ::viam::component::motor::v1::IsPoweredRequest* request, ::viam::component::motor::v1::IsPoweredResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace component +} // namespace motor +} // namespace v1 + diff --git a/src/gen/component/motor/v1/motor.grpc.pb.h b/src/gen/component/motor/v1/motor.grpc.pb.h new file mode 100644 index 000000000..12299c9c0 --- /dev/null +++ b/src/gen/component/motor/v1/motor.grpc.pb.h @@ -0,0 +1,1406 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/motor/v1/motor.proto +#ifndef GRPC_component_2fmotor_2fv1_2fmotor_2eproto__INCLUDED +#define GRPC_component_2fmotor_2fv1_2fmotor_2eproto__INCLUDED + +#include "component/motor/v1/motor.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace component { +namespace motor { +namespace v1 { + +// A MotorService maintains all motors associated with a robot +class MotorService final { + public: + static constexpr char const* service_full_name() { + return "viam.component.motor.v1.MotorService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // SetPower sets the percentage of the motor's total power that should be employed + // expressed a value between -1 and 1 where negative values indicate a backwards + // direction and positive values a forward direction + virtual ::grpc::Status SetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::viam::component::motor::v1::SetPowerResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::SetPowerResponse>> AsyncSetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::SetPowerResponse>>(AsyncSetPowerRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::SetPowerResponse>> PrepareAsyncSetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::SetPowerResponse>>(PrepareAsyncSetPowerRaw(context, request, cq)); + } + // GoFor instructs the motor to turn at a specified speed, which is expressed in RPM, + // for a specified number of rotations relative to its starting position + // This method will return an error if position reporting is not supported + // If revolutions is 0, this will run the motor at rpm indefinitely + // If revolutions != 0, this will block until the number of revolutions has been completed or another operation comes in. + virtual ::grpc::Status GoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest& request, ::viam::component::motor::v1::GoForResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GoForResponse>> AsyncGoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GoForResponse>>(AsyncGoForRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GoForResponse>> PrepareAsyncGoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GoForResponse>>(PrepareAsyncGoForRaw(context, request, cq)); + } + // GoTo requests the robot's motor to move to a specific position that + // is relative to its home position at a specified speed which is expressed in RPM + // This method will return an error if position reporting is not supported + virtual ::grpc::Status GoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest& request, ::viam::component::motor::v1::GoToResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GoToResponse>> AsyncGoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GoToResponse>>(AsyncGoToRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GoToResponse>> PrepareAsyncGoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GoToResponse>>(PrepareAsyncGoToRaw(context, request, cq)); + } + // ResetZeroPosition sets the current position of the motor as the new zero position + // This method will return an error if position reporting is not supported + virtual ::grpc::Status ResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest& request, ::viam::component::motor::v1::ResetZeroPositionResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::ResetZeroPositionResponse>> AsyncResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::ResetZeroPositionResponse>>(AsyncResetZeroPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::ResetZeroPositionResponse>> PrepareAsyncResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::ResetZeroPositionResponse>>(PrepareAsyncResetZeroPositionRaw(context, request, cq)); + } + // Position reports the position of the robot's motor relative to its zero position + // This method will return an error if position reporting is not supported + virtual ::grpc::Status GetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest& request, ::viam::component::motor::v1::GetPositionResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GetPositionResponse>> AsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GetPositionResponse>>(AsyncGetPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GetPositionResponse>> PrepareAsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GetPositionResponse>>(PrepareAsyncGetPositionRaw(context, request, cq)); + } + // GetProperties returns a message of booleans indicating which optional features the robot's motor supports + virtual ::grpc::Status GetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest& request, ::viam::component::motor::v1::GetPropertiesResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GetPropertiesResponse>> AsyncGetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GetPropertiesResponse>>(AsyncGetPropertiesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GetPropertiesResponse>> PrepareAsyncGetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GetPropertiesResponse>>(PrepareAsyncGetPropertiesRaw(context, request, cq)); + } + // Stop turns the robot's motor off + // + virtual ::grpc::Status Stop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest& request, ::viam::component::motor::v1::StopResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::StopResponse>> AsyncStop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::StopResponse>>(AsyncStopRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::StopResponse>> PrepareAsyncStop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::StopResponse>>(PrepareAsyncStopRaw(context, request, cq)); + } + // IsPowered returns true if the robot's motor off + // To Do (FA): This will be deprecated + virtual ::grpc::Status IsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest& request, ::viam::component::motor::v1::IsPoweredResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::IsPoweredResponse>> AsyncIsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::IsPoweredResponse>>(AsyncIsPoweredRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::IsPoweredResponse>> PrepareAsyncIsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::IsPoweredResponse>>(PrepareAsyncIsPoweredRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // SetPower sets the percentage of the motor's total power that should be employed + // expressed a value between -1 and 1 where negative values indicate a backwards + // direction and positive values a forward direction + virtual void SetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest* request, ::viam::component::motor::v1::SetPowerResponse* response, std::function) = 0; + virtual void SetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest* request, ::viam::component::motor::v1::SetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GoFor instructs the motor to turn at a specified speed, which is expressed in RPM, + // for a specified number of rotations relative to its starting position + // This method will return an error if position reporting is not supported + // If revolutions is 0, this will run the motor at rpm indefinitely + // If revolutions != 0, this will block until the number of revolutions has been completed or another operation comes in. + virtual void GoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest* request, ::viam::component::motor::v1::GoForResponse* response, std::function) = 0; + virtual void GoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest* request, ::viam::component::motor::v1::GoForResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GoTo requests the robot's motor to move to a specific position that + // is relative to its home position at a specified speed which is expressed in RPM + // This method will return an error if position reporting is not supported + virtual void GoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest* request, ::viam::component::motor::v1::GoToResponse* response, std::function) = 0; + virtual void GoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest* request, ::viam::component::motor::v1::GoToResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // ResetZeroPosition sets the current position of the motor as the new zero position + // This method will return an error if position reporting is not supported + virtual void ResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, std::function) = 0; + virtual void ResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Position reports the position of the robot's motor relative to its zero position + // This method will return an error if position reporting is not supported + virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest* request, ::viam::component::motor::v1::GetPositionResponse* response, std::function) = 0; + virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest* request, ::viam::component::motor::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GetProperties returns a message of booleans indicating which optional features the robot's motor supports + virtual void GetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest* request, ::viam::component::motor::v1::GetPropertiesResponse* response, std::function) = 0; + virtual void GetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest* request, ::viam::component::motor::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Stop turns the robot's motor off + // + virtual void Stop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest* request, ::viam::component::motor::v1::StopResponse* response, std::function) = 0; + virtual void Stop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest* request, ::viam::component::motor::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // IsPowered returns true if the robot's motor off + // To Do (FA): This will be deprecated + virtual void IsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest* request, ::viam::component::motor::v1::IsPoweredResponse* response, std::function) = 0; + virtual void IsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest* request, ::viam::component::motor::v1::IsPoweredResponse* 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::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::SetPowerResponse>* AsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::SetPowerResponse>* PrepareAsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GoForResponse>* AsyncGoForRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GoForResponse>* PrepareAsyncGoForRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GoToResponse>* AsyncGoToRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GoToResponse>* PrepareAsyncGoToRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::ResetZeroPositionResponse>* AsyncResetZeroPositionRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::ResetZeroPositionResponse>* PrepareAsyncResetZeroPositionRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GetPositionResponse>* AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GetPositionResponse>* PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GetPropertiesResponse>* AsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GetPropertiesResponse>* PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::StopResponse>* AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::StopResponse>* PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::IsPoweredResponse>* AsyncIsPoweredRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::IsPoweredResponse>* PrepareAsyncIsPoweredRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest& 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()); + ::grpc::Status SetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::viam::component::motor::v1::SetPowerResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::SetPowerResponse>> AsyncSetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::SetPowerResponse>>(AsyncSetPowerRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::SetPowerResponse>> PrepareAsyncSetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::SetPowerResponse>>(PrepareAsyncSetPowerRaw(context, request, cq)); + } + ::grpc::Status GoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest& request, ::viam::component::motor::v1::GoForResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoForResponse>> AsyncGoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoForResponse>>(AsyncGoForRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoForResponse>> PrepareAsyncGoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoForResponse>>(PrepareAsyncGoForRaw(context, request, cq)); + } + ::grpc::Status GoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest& request, ::viam::component::motor::v1::GoToResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoToResponse>> AsyncGoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoToResponse>>(AsyncGoToRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoToResponse>> PrepareAsyncGoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoToResponse>>(PrepareAsyncGoToRaw(context, request, cq)); + } + ::grpc::Status ResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest& request, ::viam::component::motor::v1::ResetZeroPositionResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::ResetZeroPositionResponse>> AsyncResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::ResetZeroPositionResponse>>(AsyncResetZeroPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::ResetZeroPositionResponse>> PrepareAsyncResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::ResetZeroPositionResponse>>(PrepareAsyncResetZeroPositionRaw(context, request, cq)); + } + ::grpc::Status GetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest& request, ::viam::component::motor::v1::GetPositionResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPositionResponse>> AsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPositionResponse>>(AsyncGetPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPositionResponse>> PrepareAsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPositionResponse>>(PrepareAsyncGetPositionRaw(context, request, cq)); + } + ::grpc::Status GetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest& request, ::viam::component::motor::v1::GetPropertiesResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPropertiesResponse>> AsyncGetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPropertiesResponse>>(AsyncGetPropertiesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPropertiesResponse>> PrepareAsyncGetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPropertiesResponse>>(PrepareAsyncGetPropertiesRaw(context, request, cq)); + } + ::grpc::Status Stop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest& request, ::viam::component::motor::v1::StopResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::StopResponse>> AsyncStop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::StopResponse>>(AsyncStopRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::StopResponse>> PrepareAsyncStop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::StopResponse>>(PrepareAsyncStopRaw(context, request, cq)); + } + ::grpc::Status IsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest& request, ::viam::component::motor::v1::IsPoweredResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::IsPoweredResponse>> AsyncIsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::IsPoweredResponse>>(AsyncIsPoweredRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::IsPoweredResponse>> PrepareAsyncIsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::IsPoweredResponse>>(PrepareAsyncIsPoweredRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void SetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest* request, ::viam::component::motor::v1::SetPowerResponse* response, std::function) override; + void SetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest* request, ::viam::component::motor::v1::SetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest* request, ::viam::component::motor::v1::GoForResponse* response, std::function) override; + void GoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest* request, ::viam::component::motor::v1::GoForResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest* request, ::viam::component::motor::v1::GoToResponse* response, std::function) override; + void GoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest* request, ::viam::component::motor::v1::GoToResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void ResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, std::function) override; + void ResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest* request, ::viam::component::motor::v1::GetPositionResponse* response, std::function) override; + void GetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest* request, ::viam::component::motor::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest* request, ::viam::component::motor::v1::GetPropertiesResponse* response, std::function) override; + void GetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest* request, ::viam::component::motor::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void Stop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest* request, ::viam::component::motor::v1::StopResponse* response, std::function) override; + void Stop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest* request, ::viam::component::motor::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void IsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest* request, ::viam::component::motor::v1::IsPoweredResponse* response, std::function) override; + void IsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest* request, ::viam::component::motor::v1::IsPoweredResponse* 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::ClientAsyncResponseReader< ::viam::component::motor::v1::SetPowerResponse>* AsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::SetPowerResponse>* PrepareAsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoForResponse>* AsyncGoForRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoForResponse>* PrepareAsyncGoForRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoToResponse>* AsyncGoToRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoToResponse>* PrepareAsyncGoToRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::ResetZeroPositionResponse>* AsyncResetZeroPositionRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::ResetZeroPositionResponse>* PrepareAsyncResetZeroPositionRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPositionResponse>* AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPositionResponse>* PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPropertiesResponse>* AsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPropertiesResponse>* PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::StopResponse>* AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::StopResponse>* PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::IsPoweredResponse>* AsyncIsPoweredRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::IsPoweredResponse>* PrepareAsyncIsPoweredRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_SetPower_; + const ::grpc::internal::RpcMethod rpcmethod_GoFor_; + const ::grpc::internal::RpcMethod rpcmethod_GoTo_; + const ::grpc::internal::RpcMethod rpcmethod_ResetZeroPosition_; + const ::grpc::internal::RpcMethod rpcmethod_GetPosition_; + const ::grpc::internal::RpcMethod rpcmethod_GetProperties_; + const ::grpc::internal::RpcMethod rpcmethod_Stop_; + const ::grpc::internal::RpcMethod rpcmethod_IsPowered_; + }; + 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(); + // SetPower sets the percentage of the motor's total power that should be employed + // expressed a value between -1 and 1 where negative values indicate a backwards + // direction and positive values a forward direction + virtual ::grpc::Status SetPower(::grpc::ServerContext* context, const ::viam::component::motor::v1::SetPowerRequest* request, ::viam::component::motor::v1::SetPowerResponse* response); + // GoFor instructs the motor to turn at a specified speed, which is expressed in RPM, + // for a specified number of rotations relative to its starting position + // This method will return an error if position reporting is not supported + // If revolutions is 0, this will run the motor at rpm indefinitely + // If revolutions != 0, this will block until the number of revolutions has been completed or another operation comes in. + virtual ::grpc::Status GoFor(::grpc::ServerContext* context, const ::viam::component::motor::v1::GoForRequest* request, ::viam::component::motor::v1::GoForResponse* response); + // GoTo requests the robot's motor to move to a specific position that + // is relative to its home position at a specified speed which is expressed in RPM + // This method will return an error if position reporting is not supported + virtual ::grpc::Status GoTo(::grpc::ServerContext* context, const ::viam::component::motor::v1::GoToRequest* request, ::viam::component::motor::v1::GoToResponse* response); + // ResetZeroPosition sets the current position of the motor as the new zero position + // This method will return an error if position reporting is not supported + virtual ::grpc::Status ResetZeroPosition(::grpc::ServerContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response); + // Position reports the position of the robot's motor relative to its zero position + // This method will return an error if position reporting is not supported + virtual ::grpc::Status GetPosition(::grpc::ServerContext* context, const ::viam::component::motor::v1::GetPositionRequest* request, ::viam::component::motor::v1::GetPositionResponse* response); + // GetProperties returns a message of booleans indicating which optional features the robot's motor supports + virtual ::grpc::Status GetProperties(::grpc::ServerContext* context, const ::viam::component::motor::v1::GetPropertiesRequest* request, ::viam::component::motor::v1::GetPropertiesResponse* response); + // Stop turns the robot's motor off + // + virtual ::grpc::Status Stop(::grpc::ServerContext* context, const ::viam::component::motor::v1::StopRequest* request, ::viam::component::motor::v1::StopResponse* response); + // IsPowered returns true if the robot's motor off + // To Do (FA): This will be deprecated + virtual ::grpc::Status IsPowered(::grpc::ServerContext* context, const ::viam::component::motor::v1::IsPoweredRequest* request, ::viam::component::motor::v1::IsPoweredResponse* response); + }; + template + class WithAsyncMethod_SetPower : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_SetPower() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_SetPower() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPower(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::SetPowerRequest* /*request*/, ::viam::component::motor::v1::SetPowerResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetPower(::grpc::ServerContext* context, ::viam::component::motor::v1::SetPowerRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::motor::v1::SetPowerResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GoFor : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GoFor() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_GoFor() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GoFor(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GoForRequest* /*request*/, ::viam::component::motor::v1::GoForResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGoFor(::grpc::ServerContext* context, ::viam::component::motor::v1::GoForRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::motor::v1::GoForResponse>* 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 WithAsyncMethod_GoTo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GoTo() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_GoTo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GoTo(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GoToRequest* /*request*/, ::viam::component::motor::v1::GoToResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGoTo(::grpc::ServerContext* context, ::viam::component::motor::v1::GoToRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::motor::v1::GoToResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ResetZeroPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ResetZeroPosition() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_ResetZeroPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ResetZeroPosition(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::ResetZeroPositionRequest* /*request*/, ::viam::component::motor::v1::ResetZeroPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestResetZeroPosition(::grpc::ServerContext* context, ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::motor::v1::ResetZeroPositionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetPosition() { + ::grpc::Service::MarkMethodAsync(4); + } + ~WithAsyncMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GetPositionRequest* /*request*/, ::viam::component::motor::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetPosition(::grpc::ServerContext* context, ::viam::component::motor::v1::GetPositionRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::motor::v1::GetPositionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetProperties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetProperties() { + ::grpc::Service::MarkMethodAsync(5); + } + ~WithAsyncMethod_GetProperties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProperties(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GetPropertiesRequest* /*request*/, ::viam::component::motor::v1::GetPropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetProperties(::grpc::ServerContext* context, ::viam::component::motor::v1::GetPropertiesRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::motor::v1::GetPropertiesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Stop() { + ::grpc::Service::MarkMethodAsync(6); + } + ~WithAsyncMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::StopRequest* /*request*/, ::viam::component::motor::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestStop(::grpc::ServerContext* context, ::viam::component::motor::v1::StopRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::motor::v1::StopResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_IsPowered : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_IsPowered() { + ::grpc::Service::MarkMethodAsync(7); + } + ~WithAsyncMethod_IsPowered() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status IsPowered(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::IsPoweredRequest* /*request*/, ::viam::component::motor::v1::IsPoweredResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestIsPowered(::grpc::ServerContext* context, ::viam::component::motor::v1::IsPoweredRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::motor::v1::IsPoweredResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_SetPower > > > > > > > AsyncService; + template + class WithCallbackMethod_SetPower : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_SetPower() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::SetPowerRequest, ::viam::component::motor::v1::SetPowerResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::motor::v1::SetPowerRequest* request, ::viam::component::motor::v1::SetPowerResponse* response) { return this->SetPower(context, request, response); }));} + void SetMessageAllocatorFor_SetPower( + ::grpc::MessageAllocator< ::viam::component::motor::v1::SetPowerRequest, ::viam::component::motor::v1::SetPowerResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::SetPowerRequest, ::viam::component::motor::v1::SetPowerResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_SetPower() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPower(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::SetPowerRequest* /*request*/, ::viam::component::motor::v1::SetPowerResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SetPower( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::SetPowerRequest* /*request*/, ::viam::component::motor::v1::SetPowerResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GoFor : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GoFor() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GoForRequest, ::viam::component::motor::v1::GoForResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::motor::v1::GoForRequest* request, ::viam::component::motor::v1::GoForResponse* response) { return this->GoFor(context, request, response); }));} + void SetMessageAllocatorFor_GoFor( + ::grpc::MessageAllocator< ::viam::component::motor::v1::GoForRequest, ::viam::component::motor::v1::GoForResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GoForRequest, ::viam::component::motor::v1::GoForResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GoFor() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GoFor(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GoForRequest* /*request*/, ::viam::component::motor::v1::GoForResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GoFor( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::GoForRequest* /*request*/, ::viam::component::motor::v1::GoForResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GoTo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GoTo() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GoToRequest, ::viam::component::motor::v1::GoToResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::motor::v1::GoToRequest* request, ::viam::component::motor::v1::GoToResponse* response) { return this->GoTo(context, request, response); }));} + void SetMessageAllocatorFor_GoTo( + ::grpc::MessageAllocator< ::viam::component::motor::v1::GoToRequest, ::viam::component::motor::v1::GoToResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GoToRequest, ::viam::component::motor::v1::GoToResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GoTo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GoTo(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GoToRequest* /*request*/, ::viam::component::motor::v1::GoToResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GoTo( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::GoToRequest* /*request*/, ::viam::component::motor::v1::GoToResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_ResetZeroPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_ResetZeroPosition() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::ResetZeroPositionRequest, ::viam::component::motor::v1::ResetZeroPositionResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response) { return this->ResetZeroPosition(context, request, response); }));} + void SetMessageAllocatorFor_ResetZeroPosition( + ::grpc::MessageAllocator< ::viam::component::motor::v1::ResetZeroPositionRequest, ::viam::component::motor::v1::ResetZeroPositionResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::ResetZeroPositionRequest, ::viam::component::motor::v1::ResetZeroPositionResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_ResetZeroPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ResetZeroPosition(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::ResetZeroPositionRequest* /*request*/, ::viam::component::motor::v1::ResetZeroPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ResetZeroPosition( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::ResetZeroPositionRequest* /*request*/, ::viam::component::motor::v1::ResetZeroPositionResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetPosition() { + ::grpc::Service::MarkMethodCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GetPositionRequest, ::viam::component::motor::v1::GetPositionResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::motor::v1::GetPositionRequest* request, ::viam::component::motor::v1::GetPositionResponse* response) { return this->GetPosition(context, request, response); }));} + void SetMessageAllocatorFor_GetPosition( + ::grpc::MessageAllocator< ::viam::component::motor::v1::GetPositionRequest, ::viam::component::motor::v1::GetPositionResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GetPositionRequest, ::viam::component::motor::v1::GetPositionResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GetPositionRequest* /*request*/, ::viam::component::motor::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetPosition( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::GetPositionRequest* /*request*/, ::viam::component::motor::v1::GetPositionResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetProperties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetProperties() { + ::grpc::Service::MarkMethodCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GetPropertiesRequest, ::viam::component::motor::v1::GetPropertiesResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::motor::v1::GetPropertiesRequest* request, ::viam::component::motor::v1::GetPropertiesResponse* response) { return this->GetProperties(context, request, response); }));} + void SetMessageAllocatorFor_GetProperties( + ::grpc::MessageAllocator< ::viam::component::motor::v1::GetPropertiesRequest, ::viam::component::motor::v1::GetPropertiesResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GetPropertiesRequest, ::viam::component::motor::v1::GetPropertiesResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetProperties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProperties(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GetPropertiesRequest* /*request*/, ::viam::component::motor::v1::GetPropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetProperties( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::GetPropertiesRequest* /*request*/, ::viam::component::motor::v1::GetPropertiesResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Stop() { + ::grpc::Service::MarkMethodCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::StopRequest, ::viam::component::motor::v1::StopResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::motor::v1::StopRequest* request, ::viam::component::motor::v1::StopResponse* response) { return this->Stop(context, request, response); }));} + void SetMessageAllocatorFor_Stop( + ::grpc::MessageAllocator< ::viam::component::motor::v1::StopRequest, ::viam::component::motor::v1::StopResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::StopRequest, ::viam::component::motor::v1::StopResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::StopRequest* /*request*/, ::viam::component::motor::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Stop( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::StopRequest* /*request*/, ::viam::component::motor::v1::StopResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_IsPowered : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_IsPowered() { + ::grpc::Service::MarkMethodCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::IsPoweredRequest, ::viam::component::motor::v1::IsPoweredResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::motor::v1::IsPoweredRequest* request, ::viam::component::motor::v1::IsPoweredResponse* response) { return this->IsPowered(context, request, response); }));} + void SetMessageAllocatorFor_IsPowered( + ::grpc::MessageAllocator< ::viam::component::motor::v1::IsPoweredRequest, ::viam::component::motor::v1::IsPoweredResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::IsPoweredRequest, ::viam::component::motor::v1::IsPoweredResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_IsPowered() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status IsPowered(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::IsPoweredRequest* /*request*/, ::viam::component::motor::v1::IsPoweredResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* IsPowered( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::IsPoweredRequest* /*request*/, ::viam::component::motor::v1::IsPoweredResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_SetPower > > > > > > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_SetPower : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_SetPower() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_SetPower() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPower(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::SetPowerRequest* /*request*/, ::viam::component::motor::v1::SetPowerResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GoFor : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GoFor() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_GoFor() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GoFor(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GoForRequest* /*request*/, ::viam::component::motor::v1::GoForResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GoTo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GoTo() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_GoTo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GoTo(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GoToRequest* /*request*/, ::viam::component::motor::v1::GoToResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ResetZeroPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ResetZeroPosition() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_ResetZeroPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ResetZeroPosition(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::ResetZeroPositionRequest* /*request*/, ::viam::component::motor::v1::ResetZeroPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetPosition() { + ::grpc::Service::MarkMethodGeneric(4); + } + ~WithGenericMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GetPositionRequest* /*request*/, ::viam::component::motor::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetProperties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetProperties() { + ::grpc::Service::MarkMethodGeneric(5); + } + ~WithGenericMethod_GetProperties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProperties(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GetPropertiesRequest* /*request*/, ::viam::component::motor::v1::GetPropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Stop() { + ::grpc::Service::MarkMethodGeneric(6); + } + ~WithGenericMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::StopRequest* /*request*/, ::viam::component::motor::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_IsPowered : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_IsPowered() { + ::grpc::Service::MarkMethodGeneric(7); + } + ~WithGenericMethod_IsPowered() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status IsPowered(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::IsPoweredRequest* /*request*/, ::viam::component::motor::v1::IsPoweredResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_SetPower : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_SetPower() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_SetPower() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPower(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::SetPowerRequest* /*request*/, ::viam::component::motor::v1::SetPowerResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetPower(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GoFor : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GoFor() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_GoFor() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GoFor(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GoForRequest* /*request*/, ::viam::component::motor::v1::GoForResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGoFor(::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 WithRawMethod_GoTo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GoTo() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_GoTo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GoTo(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GoToRequest* /*request*/, ::viam::component::motor::v1::GoToResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGoTo(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ResetZeroPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ResetZeroPosition() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_ResetZeroPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ResetZeroPosition(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::ResetZeroPositionRequest* /*request*/, ::viam::component::motor::v1::ResetZeroPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestResetZeroPosition(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetPosition() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GetPositionRequest* /*request*/, ::viam::component::motor::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetPosition(::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(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetProperties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetProperties() { + ::grpc::Service::MarkMethodRaw(5); + } + ~WithRawMethod_GetProperties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProperties(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GetPropertiesRequest* /*request*/, ::viam::component::motor::v1::GetPropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetProperties(::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(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Stop() { + ::grpc::Service::MarkMethodRaw(6); + } + ~WithRawMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::StopRequest* /*request*/, ::viam::component::motor::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestStop(::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(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_IsPowered : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_IsPowered() { + ::grpc::Service::MarkMethodRaw(7); + } + ~WithRawMethod_IsPowered() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status IsPowered(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::IsPoweredRequest* /*request*/, ::viam::component::motor::v1::IsPoweredResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestIsPowered(::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(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_SetPower : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_SetPower() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetPower(context, request, response); })); + } + ~WithRawCallbackMethod_SetPower() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPower(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::SetPowerRequest* /*request*/, ::viam::component::motor::v1::SetPowerResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SetPower( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GoFor : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GoFor() { + ::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->GoFor(context, request, response); })); + } + ~WithRawCallbackMethod_GoFor() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GoFor(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GoForRequest* /*request*/, ::viam::component::motor::v1::GoForResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GoFor( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GoTo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GoTo() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GoTo(context, request, response); })); + } + ~WithRawCallbackMethod_GoTo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GoTo(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GoToRequest* /*request*/, ::viam::component::motor::v1::GoToResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GoTo( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_ResetZeroPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_ResetZeroPosition() { + ::grpc::Service::MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ResetZeroPosition(context, request, response); })); + } + ~WithRawCallbackMethod_ResetZeroPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ResetZeroPosition(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::ResetZeroPositionRequest* /*request*/, ::viam::component::motor::v1::ResetZeroPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ResetZeroPosition( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetPosition() { + ::grpc::Service::MarkMethodRawCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPosition(context, request, response); })); + } + ~WithRawCallbackMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GetPositionRequest* /*request*/, ::viam::component::motor::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetPosition( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetProperties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetProperties() { + ::grpc::Service::MarkMethodRawCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProperties(context, request, response); })); + } + ~WithRawCallbackMethod_GetProperties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProperties(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GetPropertiesRequest* /*request*/, ::viam::component::motor::v1::GetPropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetProperties( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Stop() { + ::grpc::Service::MarkMethodRawCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Stop(context, request, response); })); + } + ~WithRawCallbackMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::StopRequest* /*request*/, ::viam::component::motor::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Stop( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_IsPowered : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_IsPowered() { + ::grpc::Service::MarkMethodRawCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->IsPowered(context, request, response); })); + } + ~WithRawCallbackMethod_IsPowered() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status IsPowered(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::IsPoweredRequest* /*request*/, ::viam::component::motor::v1::IsPoweredResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* IsPowered( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_SetPower : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_SetPower() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::motor::v1::SetPowerRequest, ::viam::component::motor::v1::SetPowerResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::motor::v1::SetPowerRequest, ::viam::component::motor::v1::SetPowerResponse>* streamer) { + return this->StreamedSetPower(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_SetPower() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status SetPower(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::SetPowerRequest* /*request*/, ::viam::component::motor::v1::SetPowerResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedSetPower(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::motor::v1::SetPowerRequest,::viam::component::motor::v1::SetPowerResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GoFor : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GoFor() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::motor::v1::GoForRequest, ::viam::component::motor::v1::GoForResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::motor::v1::GoForRequest, ::viam::component::motor::v1::GoForResponse>* streamer) { + return this->StreamedGoFor(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GoFor() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GoFor(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GoForRequest* /*request*/, ::viam::component::motor::v1::GoForResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGoFor(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::motor::v1::GoForRequest,::viam::component::motor::v1::GoForResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GoTo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GoTo() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::motor::v1::GoToRequest, ::viam::component::motor::v1::GoToResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::motor::v1::GoToRequest, ::viam::component::motor::v1::GoToResponse>* streamer) { + return this->StreamedGoTo(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GoTo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GoTo(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GoToRequest* /*request*/, ::viam::component::motor::v1::GoToResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGoTo(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::motor::v1::GoToRequest,::viam::component::motor::v1::GoToResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ResetZeroPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ResetZeroPosition() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::motor::v1::ResetZeroPositionRequest, ::viam::component::motor::v1::ResetZeroPositionResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::motor::v1::ResetZeroPositionRequest, ::viam::component::motor::v1::ResetZeroPositionResponse>* streamer) { + return this->StreamedResetZeroPosition(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ResetZeroPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ResetZeroPosition(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::ResetZeroPositionRequest* /*request*/, ::viam::component::motor::v1::ResetZeroPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedResetZeroPosition(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::motor::v1::ResetZeroPositionRequest,::viam::component::motor::v1::ResetZeroPositionResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetPosition() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::motor::v1::GetPositionRequest, ::viam::component::motor::v1::GetPositionResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::motor::v1::GetPositionRequest, ::viam::component::motor::v1::GetPositionResponse>* streamer) { + return this->StreamedGetPosition(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GetPositionRequest* /*request*/, ::viam::component::motor::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetPosition(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::motor::v1::GetPositionRequest,::viam::component::motor::v1::GetPositionResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetProperties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetProperties() { + ::grpc::Service::MarkMethodStreamed(5, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::motor::v1::GetPropertiesRequest, ::viam::component::motor::v1::GetPropertiesResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::motor::v1::GetPropertiesRequest, ::viam::component::motor::v1::GetPropertiesResponse>* streamer) { + return this->StreamedGetProperties(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetProperties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetProperties(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::GetPropertiesRequest* /*request*/, ::viam::component::motor::v1::GetPropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetProperties(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::motor::v1::GetPropertiesRequest,::viam::component::motor::v1::GetPropertiesResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Stop() { + ::grpc::Service::MarkMethodStreamed(6, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::motor::v1::StopRequest, ::viam::component::motor::v1::StopResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::motor::v1::StopRequest, ::viam::component::motor::v1::StopResponse>* streamer) { + return this->StreamedStop(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::StopRequest* /*request*/, ::viam::component::motor::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedStop(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::motor::v1::StopRequest,::viam::component::motor::v1::StopResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_IsPowered : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_IsPowered() { + ::grpc::Service::MarkMethodStreamed(7, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::motor::v1::IsPoweredRequest, ::viam::component::motor::v1::IsPoweredResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::motor::v1::IsPoweredRequest, ::viam::component::motor::v1::IsPoweredResponse>* streamer) { + return this->StreamedIsPowered(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_IsPowered() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status IsPowered(::grpc::ServerContext* /*context*/, const ::viam::component::motor::v1::IsPoweredRequest* /*request*/, ::viam::component::motor::v1::IsPoweredResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedIsPowered(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::motor::v1::IsPoweredRequest,::viam::component::motor::v1::IsPoweredResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_SetPower > > > > > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_SetPower > > > > > > > StreamedService; +}; + +} // namespace v1 +} // namespace motor +} // namespace component +} // namespace viam + + +#endif // GRPC_component_2fmotor_2fv1_2fmotor_2eproto__INCLUDED diff --git a/src/gen/component/motor/v1/motor.pb.cc b/src/gen/component/motor/v1/motor.pb.cc new file mode 100644 index 000000000..187d00546 --- /dev/null +++ b/src/gen/component/motor/v1/motor.pb.cc @@ -0,0 +1,3932 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/motor/v1/motor.proto + +#include "component/motor/v1/motor.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 component { +namespace motor { +namespace v1 { +PROTOBUF_CONSTEXPR SetPowerRequest::SetPowerRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_.power_pct_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SetPowerRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetPowerRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetPowerRequestDefaultTypeInternal() {} + union { + SetPowerRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPowerRequestDefaultTypeInternal _SetPowerRequest_default_instance_; +PROTOBUF_CONSTEXPR SetPowerResponse::SetPowerResponse( + ::_pbi::ConstantInitialized) {} +struct SetPowerResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetPowerResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetPowerResponseDefaultTypeInternal() {} + union { + SetPowerResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPowerResponseDefaultTypeInternal _SetPowerResponse_default_instance_; +PROTOBUF_CONSTEXPR GoForRequest::GoForRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_.rpm_)*/0 + , /*decltype(_impl_.revolutions_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GoForRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GoForRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GoForRequestDefaultTypeInternal() {} + union { + GoForRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GoForRequestDefaultTypeInternal _GoForRequest_default_instance_; +PROTOBUF_CONSTEXPR GoForResponse::GoForResponse( + ::_pbi::ConstantInitialized) {} +struct GoForResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GoForResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GoForResponseDefaultTypeInternal() {} + union { + GoForResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GoForResponseDefaultTypeInternal _GoForResponse_default_instance_; +PROTOBUF_CONSTEXPR GoToRequest::GoToRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_.rpm_)*/0 + , /*decltype(_impl_.position_revolutions_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GoToRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GoToRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GoToRequestDefaultTypeInternal() {} + union { + GoToRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GoToRequestDefaultTypeInternal _GoToRequest_default_instance_; +PROTOBUF_CONSTEXPR GoToResponse::GoToResponse( + ::_pbi::ConstantInitialized) {} +struct GoToResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GoToResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GoToResponseDefaultTypeInternal() {} + union { + GoToResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GoToResponseDefaultTypeInternal _GoToResponse_default_instance_; +PROTOBUF_CONSTEXPR ResetZeroPositionRequest::ResetZeroPositionRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_.offset_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ResetZeroPositionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResetZeroPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResetZeroPositionRequestDefaultTypeInternal() {} + union { + ResetZeroPositionRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResetZeroPositionRequestDefaultTypeInternal _ResetZeroPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR ResetZeroPositionResponse::ResetZeroPositionResponse( + ::_pbi::ConstantInitialized) {} +struct ResetZeroPositionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResetZeroPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResetZeroPositionResponseDefaultTypeInternal() {} + union { + ResetZeroPositionResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResetZeroPositionResponseDefaultTypeInternal _ResetZeroPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPositionRequest::GetPositionRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPositionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPositionRequestDefaultTypeInternal() {} + union { + GetPositionRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPositionResponse::GetPositionResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.position_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPositionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPositionResponseDefaultTypeInternal() {} + union { + GetPositionResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR StopRequest::StopRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StopRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopRequestDefaultTypeInternal() {} + union { + StopRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopRequestDefaultTypeInternal _StopRequest_default_instance_; +PROTOBUF_CONSTEXPR StopResponse::StopResponse( + ::_pbi::ConstantInitialized) {} +struct StopResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopResponseDefaultTypeInternal() {} + union { + StopResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopResponseDefaultTypeInternal _StopResponse_default_instance_; +PROTOBUF_CONSTEXPR IsPoweredRequest::IsPoweredRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct IsPoweredRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR IsPoweredRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IsPoweredRequestDefaultTypeInternal() {} + union { + IsPoweredRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsPoweredRequestDefaultTypeInternal _IsPoweredRequest_default_instance_; +PROTOBUF_CONSTEXPR IsPoweredResponse::IsPoweredResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.power_pct_)*/0 + , /*decltype(_impl_.is_on_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct IsPoweredResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR IsPoweredResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IsPoweredResponseDefaultTypeInternal() {} + union { + IsPoweredResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsPoweredResponseDefaultTypeInternal _IsPoweredResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesRequest::GetPropertiesRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPropertiesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPropertiesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPropertiesRequestDefaultTypeInternal() {} + union { + GetPropertiesRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesResponse::GetPropertiesResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.position_reporting_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPropertiesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPropertiesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPropertiesResponseDefaultTypeInternal() {} + union { + GetPropertiesResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; +PROTOBUF_CONSTEXPR Status::Status( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.position_)*/0 + , /*decltype(_impl_.is_powered_)*/false + , /*decltype(_impl_.position_reporting_)*/false + , /*decltype(_impl_.is_moving_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StatusDefaultTypeInternal() {} + union { + Status _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; +} // namespace v1 +} // namespace motor +} // namespace component +} // namespace viam +static ::_pb::Metadata file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[17]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fmotor_2fv1_2fmotor_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fmotor_2fv1_2fmotor_2eproto = nullptr; + +const uint32_t TableStruct_component_2fmotor_2fv1_2fmotor_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetPowerRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetPowerRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetPowerRequest, _impl_.power_pct_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetPowerRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetPowerResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoForRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoForRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoForRequest, _impl_.rpm_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoForRequest, _impl_.revolutions_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoForRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoForResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoToRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoToRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoToRequest, _impl_.rpm_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoToRequest, _impl_.position_revolutions_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoToRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoToResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::ResetZeroPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::ResetZeroPositionRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::ResetZeroPositionRequest, _impl_.offset_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::ResetZeroPositionRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::ResetZeroPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPositionRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPositionRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPositionResponse, _impl_.position_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::StopRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::StopRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::StopRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::StopResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsPoweredRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsPoweredRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsPoweredRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsPoweredResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsPoweredResponse, _impl_.is_on_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsPoweredResponse, _impl_.power_pct_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPropertiesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPropertiesRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPropertiesRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPropertiesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPropertiesResponse, _impl_.position_reporting_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::Status, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::Status, _impl_.is_powered_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::Status, _impl_.position_reporting_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::Status, _impl_.position_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::Status, _impl_.is_moving_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::motor::v1::SetPowerRequest)}, + { 9, -1, -1, sizeof(::viam::component::motor::v1::SetPowerResponse)}, + { 15, -1, -1, sizeof(::viam::component::motor::v1::GoForRequest)}, + { 25, -1, -1, sizeof(::viam::component::motor::v1::GoForResponse)}, + { 31, -1, -1, sizeof(::viam::component::motor::v1::GoToRequest)}, + { 41, -1, -1, sizeof(::viam::component::motor::v1::GoToResponse)}, + { 47, -1, -1, sizeof(::viam::component::motor::v1::ResetZeroPositionRequest)}, + { 56, -1, -1, sizeof(::viam::component::motor::v1::ResetZeroPositionResponse)}, + { 62, -1, -1, sizeof(::viam::component::motor::v1::GetPositionRequest)}, + { 70, -1, -1, sizeof(::viam::component::motor::v1::GetPositionResponse)}, + { 77, -1, -1, sizeof(::viam::component::motor::v1::StopRequest)}, + { 85, -1, -1, sizeof(::viam::component::motor::v1::StopResponse)}, + { 91, -1, -1, sizeof(::viam::component::motor::v1::IsPoweredRequest)}, + { 99, -1, -1, sizeof(::viam::component::motor::v1::IsPoweredResponse)}, + { 107, -1, -1, sizeof(::viam::component::motor::v1::GetPropertiesRequest)}, + { 115, -1, -1, sizeof(::viam::component::motor::v1::GetPropertiesResponse)}, + { 122, -1, -1, sizeof(::viam::component::motor::v1::Status)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::component::motor::v1::_SetPowerRequest_default_instance_._instance, + &::viam::component::motor::v1::_SetPowerResponse_default_instance_._instance, + &::viam::component::motor::v1::_GoForRequest_default_instance_._instance, + &::viam::component::motor::v1::_GoForResponse_default_instance_._instance, + &::viam::component::motor::v1::_GoToRequest_default_instance_._instance, + &::viam::component::motor::v1::_GoToResponse_default_instance_._instance, + &::viam::component::motor::v1::_ResetZeroPositionRequest_default_instance_._instance, + &::viam::component::motor::v1::_ResetZeroPositionResponse_default_instance_._instance, + &::viam::component::motor::v1::_GetPositionRequest_default_instance_._instance, + &::viam::component::motor::v1::_GetPositionResponse_default_instance_._instance, + &::viam::component::motor::v1::_StopRequest_default_instance_._instance, + &::viam::component::motor::v1::_StopResponse_default_instance_._instance, + &::viam::component::motor::v1::_IsPoweredRequest_default_instance_._instance, + &::viam::component::motor::v1::_IsPoweredResponse_default_instance_._instance, + &::viam::component::motor::v1::_GetPropertiesRequest_default_instance_._instance, + &::viam::component::motor::v1::_GetPropertiesResponse_default_instance_._instance, + &::viam::component::motor::v1::_Status_default_instance_._instance, +}; + +const char descriptor_table_protodef_component_2fmotor_2fv1_2fmotor_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\036component/motor/v1/motor.proto\022\027viam.c" + "omponent.motor.v1\032\034google/api/annotation" + "s.proto\032\034google/protobuf/struct.proto\"q\n" + "\017SetPowerRequest\022\022\n\004name\030\001 \001(\tR\004name\022\033\n\t" + "power_pct\030\002 \001(\001R\010powerPct\022-\n\005extra\030c \001(\013" + "2\027.google.protobuf.StructR\005extra\"\022\n\020SetP" + "owerResponse\"\205\001\n\014GoForRequest\022\022\n\004name\030\001 " + "\001(\tR\004name\022\020\n\003rpm\030\002 \001(\001R\003rpm\022 \n\013revolutio" + "ns\030\003 \001(\001R\013revolutions\022-\n\005extra\030c \001(\0132\027.g" + "oogle.protobuf.StructR\005extra\"\017\n\rGoForRes" + "ponse\"\225\001\n\013GoToRequest\022\022\n\004name\030\001 \001(\tR\004nam" + "e\022\020\n\003rpm\030\002 \001(\001R\003rpm\0221\n\024position_revoluti" + "ons\030\003 \001(\001R\023positionRevolutions\022-\n\005extra\030" + "c \001(\0132\027.google.protobuf.StructR\005extra\"\016\n" + "\014GoToResponse\"u\n\030ResetZeroPositionReques" + "t\022\022\n\004name\030\001 \001(\tR\004name\022\026\n\006offset\030\002 \001(\001R\006o" + "ffset\022-\n\005extra\030c \001(\0132\027.google.protobuf.S" + "tructR\005extra\"\033\n\031ResetZeroPositionRespons" + "e\"W\n\022GetPositionRequest\022\022\n\004name\030\001 \001(\tR\004n" + "ame\022-\n\005extra\030c \001(\0132\027.google.protobuf.Str" + "uctR\005extra\"1\n\023GetPositionResponse\022\032\n\010pos" + "ition\030\001 \001(\001R\010position\"P\n\013StopRequest\022\022\n\004" + "name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.google" + ".protobuf.StructR\005extra\"\016\n\014StopResponse\"" + "U\n\020IsPoweredRequest\022\022\n\004name\030\001 \001(\tR\004name\022" + "-\n\005extra\030c \001(\0132\027.google.protobuf.StructR" + "\005extra\"E\n\021IsPoweredResponse\022\023\n\005is_on\030\001 \001" + "(\010R\004isOn\022\033\n\tpower_pct\030\002 \001(\001R\010powerPct\"Y\n" + "\024GetPropertiesRequest\022\022\n\004name\030\001 \001(\tR\004nam" + "e\022-\n\005extra\030c \001(\0132\027.google.protobuf.Struc" + "tR\005extra\"F\n\025GetPropertiesResponse\022-\n\022pos" + "ition_reporting\030\001 \001(\010R\021positionReporting" + "\"\217\001\n\006Status\022\035\n\nis_powered\030\001 \001(\010R\tisPower" + "ed\022-\n\022position_reporting\030\002 \001(\010R\021position" + "Reporting\022\032\n\010position\030\003 \001(\001R\010position\022\033\n" + "\tis_moving\030\004 \001(\010R\010isMoving2\322\t\n\014MotorServ" + "ice\022\222\001\n\010SetPower\022(.viam.component.motor." + "v1.SetPowerRequest\032).viam.component.moto" + "r.v1.SetPowerResponse\"1\202\323\344\223\002+\032)/viam/api" + "/v1/component/motor/{name}/power\022\212\001\n\005GoF" + "or\022%.viam.component.motor.v1.GoForReques" + "t\032&.viam.component.motor.v1.GoForRespons" + "e\"2\202\323\344\223\002,\032*/viam/api/v1/component/motor/" + "{name}/go_for\022\206\001\n\004GoTo\022$.viam.component." + "motor.v1.GoToRequest\032%.viam.component.mo" + "tor.v1.GoToResponse\"1\202\323\344\223\002+\032)/viam/api/v" + "1/component/motor/{name}/go_to\022\254\001\n\021Reset" + "ZeroPosition\0221.viam.component.motor.v1.R" + "esetZeroPositionRequest\0322.viam.component" + ".motor.v1.ResetZeroPositionResponse\"0\202\323\344" + "\223\002*\032(/viam/api/v1/component/motor/{name}" + "/zero\022\236\001\n\013GetPosition\022+.viam.component.m" + "otor.v1.GetPositionRequest\032,.viam.compon" + "ent.motor.v1.GetPositionResponse\"4\202\323\344\223\002." + "\022,/viam/api/v1/component/motor/{name}/po" + "sition\022\244\001\n\rGetProperties\022-.viam.componen" + "t.motor.v1.GetPropertiesRequest\032..viam.c" + "omponent.motor.v1.GetPropertiesResponse\"" + "4\202\323\344\223\002.\022,/viam/api/v1/component/motor/{n" + "ame}/features\022\205\001\n\004Stop\022$.viam.component." + "motor.v1.StopRequest\032%.viam.component.mo" + "tor.v1.StopResponse\"0\202\323\344\223\002*\032(/viam/api/v" + "1/component/motor/{name}/stop\022\227\001\n\tIsPowe" + "red\022).viam.component.motor.v1.IsPoweredR" + "equest\032*.viam.component.motor.v1.IsPower" + "edResponse\"3\202\323\344\223\002-\022+/viam/api/v1/compone" + "nt/motor/{name}/poweredBA\n\033com.viam.comp" + "onent.motor.v1Z\"go.viam.com/api/componen" + "t/motor/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_deps[2] = { + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, +}; +static ::_pbi::once_flag descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto = { + false, false, 2738, descriptor_table_protodef_component_2fmotor_2fv1_2fmotor_2eproto, + "component/motor/v1/motor.proto", + &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_deps, 2, 17, + schemas, file_default_instances, TableStruct_component_2fmotor_2fv1_2fmotor_2eproto::offsets, + file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto, file_level_enum_descriptors_component_2fmotor_2fv1_2fmotor_2eproto, + file_level_service_descriptors_component_2fmotor_2fv1_2fmotor_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter() { + return &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fmotor_2fv1_2fmotor_2eproto(&descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto); +namespace viam { +namespace component { +namespace motor { +namespace v1 { + +// =================================================================== + +class SetPowerRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const SetPowerRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +SetPowerRequest::_Internal::extra(const SetPowerRequest* msg) { + return *msg->_impl_.extra_; +} +void SetPowerRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +SetPowerRequest::SetPowerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.SetPowerRequest) +} +SetPowerRequest::SetPowerRequest(const SetPowerRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + SetPowerRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , decltype(_impl_.power_pct_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + _this->_impl_.power_pct_ = from._impl_.power_pct_; + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.SetPowerRequest) +} + +inline void SetPowerRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , decltype(_impl_.power_pct_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +SetPowerRequest::~SetPowerRequest() { + // @@protoc_insertion_point(destructor:viam.component.motor.v1.SetPowerRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SetPowerRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void SetPowerRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SetPowerRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.SetPowerRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _impl_.power_pct_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SetPowerRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.motor.v1.SetPowerRequest.name")); + } else + goto handle_unusual; + continue; + // double power_pct = 2 [json_name = "powerPct"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + _impl_.power_pct_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* SetPowerRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.SetPowerRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.motor.v1.SetPowerRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // double power_pct = 2 [json_name = "powerPct"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_power_pct = this->_internal_power_pct(); + uint64_t raw_power_pct; + memcpy(&raw_power_pct, &tmp_power_pct, sizeof(tmp_power_pct)); + if (raw_power_pct != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_power_pct(), target); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(99, _Internal::extra(this), + _Internal::extra(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.motor.v1.SetPowerRequest) + return target; +} + +size_t SetPowerRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.SetPowerRequest) + 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( + *_impl_.extra_); + } + + // double power_pct = 2 [json_name = "powerPct"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_power_pct = this->_internal_power_pct(); + uint64_t raw_power_pct; + memcpy(&raw_power_pct, &tmp_power_pct, sizeof(tmp_power_pct)); + if (raw_power_pct != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetPowerRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SetPowerRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPowerRequest::GetClassData() const { return &_class_data_; } + + +void SetPowerRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.SetPowerRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_power_pct = from._internal_power_pct(); + uint64_t raw_power_pct; + memcpy(&raw_power_pct, &tmp_power_pct, sizeof(tmp_power_pct)); + if (raw_power_pct != 0) { + _this->_internal_set_power_pct(from._internal_power_pct()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SetPowerRequest::CopyFrom(const SetPowerRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.motor.v1.SetPowerRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetPowerRequest::IsInitialized() const { + return true; +} + +void SetPowerRequest::InternalSwap(SetPowerRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_.power_pct_) + + sizeof(SetPowerRequest::_impl_.power_pct_) + - PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_.extra_)>( + reinterpret_cast(&_impl_.extra_), + reinterpret_cast(&other->_impl_.extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetPowerRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, + file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[0]); +} + +// =================================================================== + +class SetPowerResponse::_Internal { + public: +}; + +SetPowerResponse::SetPowerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.SetPowerResponse) +} +SetPowerResponse::SetPowerResponse(const SetPowerResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SetPowerResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.SetPowerResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetPowerResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPowerResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata SetPowerResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, + file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[1]); +} + +// =================================================================== + +class GoForRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GoForRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +GoForRequest::_Internal::extra(const GoForRequest* msg) { + return *msg->_impl_.extra_; +} +void GoForRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +GoForRequest::GoForRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.GoForRequest) +} +GoForRequest::GoForRequest(const GoForRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GoForRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , decltype(_impl_.rpm_){} + , decltype(_impl_.revolutions_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + ::memcpy(&_impl_.rpm_, &from._impl_.rpm_, + static_cast(reinterpret_cast(&_impl_.revolutions_) - + reinterpret_cast(&_impl_.rpm_)) + sizeof(_impl_.revolutions_)); + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.GoForRequest) +} + +inline void GoForRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , decltype(_impl_.rpm_){0} + , decltype(_impl_.revolutions_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GoForRequest::~GoForRequest() { + // @@protoc_insertion_point(destructor:viam.component.motor.v1.GoForRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GoForRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void GoForRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GoForRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.GoForRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + ::memset(&_impl_.rpm_, 0, static_cast( + reinterpret_cast(&_impl_.revolutions_) - + reinterpret_cast(&_impl_.rpm_)) + sizeof(_impl_.revolutions_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GoForRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.motor.v1.GoForRequest.name")); + } else + goto handle_unusual; + continue; + // double rpm = 2 [json_name = "rpm"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + _impl_.rpm_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double revolutions = 3 [json_name = "revolutions"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + _impl_.revolutions_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* GoForRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.GoForRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.motor.v1.GoForRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // double rpm = 2 [json_name = "rpm"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_rpm = this->_internal_rpm(); + uint64_t raw_rpm; + memcpy(&raw_rpm, &tmp_rpm, sizeof(tmp_rpm)); + if (raw_rpm != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_rpm(), target); + } + + // double revolutions = 3 [json_name = "revolutions"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_revolutions = this->_internal_revolutions(); + uint64_t raw_revolutions; + memcpy(&raw_revolutions, &tmp_revolutions, sizeof(tmp_revolutions)); + if (raw_revolutions != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_revolutions(), target); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(99, _Internal::extra(this), + _Internal::extra(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.motor.v1.GoForRequest) + return target; +} + +size_t GoForRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.GoForRequest) + 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( + *_impl_.extra_); + } + + // double rpm = 2 [json_name = "rpm"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_rpm = this->_internal_rpm(); + uint64_t raw_rpm; + memcpy(&raw_rpm, &tmp_rpm, sizeof(tmp_rpm)); + if (raw_rpm != 0) { + total_size += 1 + 8; + } + + // double revolutions = 3 [json_name = "revolutions"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_revolutions = this->_internal_revolutions(); + uint64_t raw_revolutions; + memcpy(&raw_revolutions, &tmp_revolutions, sizeof(tmp_revolutions)); + if (raw_revolutions != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GoForRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GoForRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GoForRequest::GetClassData() const { return &_class_data_; } + + +void GoForRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.GoForRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_rpm = from._internal_rpm(); + uint64_t raw_rpm; + memcpy(&raw_rpm, &tmp_rpm, sizeof(tmp_rpm)); + if (raw_rpm != 0) { + _this->_internal_set_rpm(from._internal_rpm()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_revolutions = from._internal_revolutions(); + uint64_t raw_revolutions; + memcpy(&raw_revolutions, &tmp_revolutions, sizeof(tmp_revolutions)); + if (raw_revolutions != 0) { + _this->_internal_set_revolutions(from._internal_revolutions()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GoForRequest::CopyFrom(const GoForRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.motor.v1.GoForRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GoForRequest::IsInitialized() const { + return true; +} + +void GoForRequest::InternalSwap(GoForRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GoForRequest, _impl_.revolutions_) + + sizeof(GoForRequest::_impl_.revolutions_) + - PROTOBUF_FIELD_OFFSET(GoForRequest, _impl_.extra_)>( + reinterpret_cast(&_impl_.extra_), + reinterpret_cast(&other->_impl_.extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GoForRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, + file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[2]); +} + +// =================================================================== + +class GoForResponse::_Internal { + public: +}; + +GoForResponse::GoForResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.GoForResponse) +} +GoForResponse::GoForResponse(const GoForResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + GoForResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.GoForResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GoForResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GoForResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata GoForResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, + file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[3]); +} + +// =================================================================== + +class GoToRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GoToRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +GoToRequest::_Internal::extra(const GoToRequest* msg) { + return *msg->_impl_.extra_; +} +void GoToRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +GoToRequest::GoToRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.GoToRequest) +} +GoToRequest::GoToRequest(const GoToRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GoToRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , decltype(_impl_.rpm_){} + , decltype(_impl_.position_revolutions_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + ::memcpy(&_impl_.rpm_, &from._impl_.rpm_, + static_cast(reinterpret_cast(&_impl_.position_revolutions_) - + reinterpret_cast(&_impl_.rpm_)) + sizeof(_impl_.position_revolutions_)); + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.GoToRequest) +} + +inline void GoToRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , decltype(_impl_.rpm_){0} + , decltype(_impl_.position_revolutions_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GoToRequest::~GoToRequest() { + // @@protoc_insertion_point(destructor:viam.component.motor.v1.GoToRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GoToRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void GoToRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GoToRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.GoToRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + ::memset(&_impl_.rpm_, 0, static_cast( + reinterpret_cast(&_impl_.position_revolutions_) - + reinterpret_cast(&_impl_.rpm_)) + sizeof(_impl_.position_revolutions_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GoToRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.motor.v1.GoToRequest.name")); + } else + goto handle_unusual; + continue; + // double rpm = 2 [json_name = "rpm"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + _impl_.rpm_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double position_revolutions = 3 [json_name = "positionRevolutions"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + _impl_.position_revolutions_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* GoToRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.GoToRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.motor.v1.GoToRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // double rpm = 2 [json_name = "rpm"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_rpm = this->_internal_rpm(); + uint64_t raw_rpm; + memcpy(&raw_rpm, &tmp_rpm, sizeof(tmp_rpm)); + if (raw_rpm != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_rpm(), target); + } + + // double position_revolutions = 3 [json_name = "positionRevolutions"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_position_revolutions = this->_internal_position_revolutions(); + uint64_t raw_position_revolutions; + memcpy(&raw_position_revolutions, &tmp_position_revolutions, sizeof(tmp_position_revolutions)); + if (raw_position_revolutions != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_position_revolutions(), target); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(99, _Internal::extra(this), + _Internal::extra(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.motor.v1.GoToRequest) + return target; +} + +size_t GoToRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.GoToRequest) + 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( + *_impl_.extra_); + } + + // double rpm = 2 [json_name = "rpm"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_rpm = this->_internal_rpm(); + uint64_t raw_rpm; + memcpy(&raw_rpm, &tmp_rpm, sizeof(tmp_rpm)); + if (raw_rpm != 0) { + total_size += 1 + 8; + } + + // double position_revolutions = 3 [json_name = "positionRevolutions"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_position_revolutions = this->_internal_position_revolutions(); + uint64_t raw_position_revolutions; + memcpy(&raw_position_revolutions, &tmp_position_revolutions, sizeof(tmp_position_revolutions)); + if (raw_position_revolutions != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GoToRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GoToRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GoToRequest::GetClassData() const { return &_class_data_; } + + +void GoToRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.GoToRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_rpm = from._internal_rpm(); + uint64_t raw_rpm; + memcpy(&raw_rpm, &tmp_rpm, sizeof(tmp_rpm)); + if (raw_rpm != 0) { + _this->_internal_set_rpm(from._internal_rpm()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_position_revolutions = from._internal_position_revolutions(); + uint64_t raw_position_revolutions; + memcpy(&raw_position_revolutions, &tmp_position_revolutions, sizeof(tmp_position_revolutions)); + if (raw_position_revolutions != 0) { + _this->_internal_set_position_revolutions(from._internal_position_revolutions()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GoToRequest::CopyFrom(const GoToRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.motor.v1.GoToRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GoToRequest::IsInitialized() const { + return true; +} + +void GoToRequest::InternalSwap(GoToRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GoToRequest, _impl_.position_revolutions_) + + sizeof(GoToRequest::_impl_.position_revolutions_) + - PROTOBUF_FIELD_OFFSET(GoToRequest, _impl_.extra_)>( + reinterpret_cast(&_impl_.extra_), + reinterpret_cast(&other->_impl_.extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GoToRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, + file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[4]); +} + +// =================================================================== + +class GoToResponse::_Internal { + public: +}; + +GoToResponse::GoToResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.GoToResponse) +} +GoToResponse::GoToResponse(const GoToResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + GoToResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.GoToResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GoToResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GoToResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata GoToResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, + file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[5]); +} + +// =================================================================== + +class ResetZeroPositionRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const ResetZeroPositionRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +ResetZeroPositionRequest::_Internal::extra(const ResetZeroPositionRequest* msg) { + return *msg->_impl_.extra_; +} +void ResetZeroPositionRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +ResetZeroPositionRequest::ResetZeroPositionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.ResetZeroPositionRequest) +} +ResetZeroPositionRequest::ResetZeroPositionRequest(const ResetZeroPositionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ResetZeroPositionRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , decltype(_impl_.offset_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + _this->_impl_.offset_ = from._impl_.offset_; + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.ResetZeroPositionRequest) +} + +inline void ResetZeroPositionRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , decltype(_impl_.offset_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ResetZeroPositionRequest::~ResetZeroPositionRequest() { + // @@protoc_insertion_point(destructor:viam.component.motor.v1.ResetZeroPositionRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ResetZeroPositionRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void ResetZeroPositionRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ResetZeroPositionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.ResetZeroPositionRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _impl_.offset_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResetZeroPositionRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.motor.v1.ResetZeroPositionRequest.name")); + } else + goto handle_unusual; + continue; + // double offset = 2 [json_name = "offset"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + _impl_.offset_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* ResetZeroPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.ResetZeroPositionRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.motor.v1.ResetZeroPositionRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // double offset = 2 [json_name = "offset"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_offset = this->_internal_offset(); + uint64_t raw_offset; + memcpy(&raw_offset, &tmp_offset, sizeof(tmp_offset)); + if (raw_offset != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_offset(), target); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(99, _Internal::extra(this), + _Internal::extra(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.motor.v1.ResetZeroPositionRequest) + return target; +} + +size_t ResetZeroPositionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.ResetZeroPositionRequest) + 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( + *_impl_.extra_); + } + + // double offset = 2 [json_name = "offset"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_offset = this->_internal_offset(); + uint64_t raw_offset; + memcpy(&raw_offset, &tmp_offset, sizeof(tmp_offset)); + if (raw_offset != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResetZeroPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ResetZeroPositionRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResetZeroPositionRequest::GetClassData() const { return &_class_data_; } + + +void ResetZeroPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.ResetZeroPositionRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_offset = from._internal_offset(); + uint64_t raw_offset; + memcpy(&raw_offset, &tmp_offset, sizeof(tmp_offset)); + if (raw_offset != 0) { + _this->_internal_set_offset(from._internal_offset()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ResetZeroPositionRequest::CopyFrom(const ResetZeroPositionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.motor.v1.ResetZeroPositionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResetZeroPositionRequest::IsInitialized() const { + return true; +} + +void ResetZeroPositionRequest::InternalSwap(ResetZeroPositionRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ResetZeroPositionRequest, _impl_.offset_) + + sizeof(ResetZeroPositionRequest::_impl_.offset_) + - PROTOBUF_FIELD_OFFSET(ResetZeroPositionRequest, _impl_.extra_)>( + reinterpret_cast(&_impl_.extra_), + reinterpret_cast(&other->_impl_.extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ResetZeroPositionRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, + file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[6]); +} + +// =================================================================== + +class ResetZeroPositionResponse::_Internal { + public: +}; + +ResetZeroPositionResponse::ResetZeroPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.ResetZeroPositionResponse) +} +ResetZeroPositionResponse::ResetZeroPositionResponse(const ResetZeroPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + ResetZeroPositionResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.ResetZeroPositionResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResetZeroPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResetZeroPositionResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata ResetZeroPositionResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, + file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[7]); +} + +// =================================================================== + +class GetPositionRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPositionRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPositionRequest::_Internal::extra(const GetPositionRequest* msg) { + return *msg->_impl_.extra_; +} +void GetPositionRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +GetPositionRequest::GetPositionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.GetPositionRequest) +} +GetPositionRequest::GetPositionRequest(const GetPositionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPositionRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.GetPositionRequest) +} + +inline void GetPositionRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetPositionRequest::~GetPositionRequest() { + // @@protoc_insertion_point(destructor:viam.component.motor.v1.GetPositionRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPositionRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void GetPositionRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPositionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.GetPositionRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.motor.v1.GetPositionRequest.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* GetPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.GetPositionRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.motor.v1.GetPositionRequest.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.component.motor.v1.GetPositionRequest) + return target; +} + +size_t GetPositionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.GetPositionRequest) + 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( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPositionRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionRequest::GetClassData() const { return &_class_data_; } + + +void GetPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.GetPositionRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPositionRequest::CopyFrom(const GetPositionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.motor.v1.GetPositionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPositionRequest::IsInitialized() const { + return true; +} + +void GetPositionRequest::InternalSwap(GetPositionRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.extra_, other->_impl_.extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, + file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[8]); +} + +// =================================================================== + +class GetPositionResponse::_Internal { + public: +}; + +GetPositionResponse::GetPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.GetPositionResponse) +} +GetPositionResponse::GetPositionResponse(const GetPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPositionResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.position_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.position_ = from._impl_.position_; + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.GetPositionResponse) +} + +inline void GetPositionResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.position_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetPositionResponse::~GetPositionResponse() { + // @@protoc_insertion_point(destructor:viam.component.motor.v1.GetPositionResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPositionResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetPositionResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPositionResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.GetPositionResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.position_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionResponse::_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) { + // double position = 1 [json_name = "position"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + _impl_.position_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* GetPositionResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.GetPositionResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // double position = 1 [json_name = "position"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_position = this->_internal_position(); + uint64_t raw_position; + memcpy(&raw_position, &tmp_position, sizeof(tmp_position)); + if (raw_position != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_position(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.motor.v1.GetPositionResponse) + return target; +} + +size_t GetPositionResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.GetPositionResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // double position = 1 [json_name = "position"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_position = this->_internal_position(); + uint64_t raw_position; + memcpy(&raw_position, &tmp_position, sizeof(tmp_position)); + if (raw_position != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPositionResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionResponse::GetClassData() const { return &_class_data_; } + + +void GetPositionResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.GetPositionResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_position = from._internal_position(); + uint64_t raw_position; + memcpy(&raw_position, &tmp_position, sizeof(tmp_position)); + if (raw_position != 0) { + _this->_internal_set_position(from._internal_position()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPositionResponse::CopyFrom(const GetPositionResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.motor.v1.GetPositionResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPositionResponse::IsInitialized() const { + return true; +} + +void GetPositionResponse::InternalSwap(GetPositionResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.position_, other->_impl_.position_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, + file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[9]); +} + +// =================================================================== + +class StopRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const StopRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +StopRequest::_Internal::extra(const StopRequest* msg) { + return *msg->_impl_.extra_; +} +void StopRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +StopRequest::StopRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.StopRequest) +} +StopRequest::StopRequest(const StopRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + StopRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.StopRequest) +} + +inline void StopRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +StopRequest::~StopRequest() { + // @@protoc_insertion_point(destructor:viam.component.motor.v1.StopRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void StopRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void StopRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void StopRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.StopRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StopRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.motor.v1.StopRequest.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* StopRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.StopRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.motor.v1.StopRequest.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.component.motor.v1.StopRequest) + return target; +} + +size_t StopRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.StopRequest) + 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( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + StopRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopRequest::GetClassData() const { return &_class_data_; } + + +void StopRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.StopRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void StopRequest::CopyFrom(const StopRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.motor.v1.StopRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StopRequest::IsInitialized() const { + return true; +} + +void StopRequest::InternalSwap(StopRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.extra_, other->_impl_.extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StopRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, + file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[10]); +} + +// =================================================================== + +class StopResponse::_Internal { + public: +}; + +StopResponse::StopResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.StopResponse) +} +StopResponse::StopResponse(const StopResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + StopResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.StopResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata StopResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, + file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[11]); +} + +// =================================================================== + +class IsPoweredRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const IsPoweredRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +IsPoweredRequest::_Internal::extra(const IsPoweredRequest* msg) { + return *msg->_impl_.extra_; +} +void IsPoweredRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +IsPoweredRequest::IsPoweredRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.IsPoweredRequest) +} +IsPoweredRequest::IsPoweredRequest(const IsPoweredRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + IsPoweredRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.IsPoweredRequest) +} + +inline void IsPoweredRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +IsPoweredRequest::~IsPoweredRequest() { + // @@protoc_insertion_point(destructor:viam.component.motor.v1.IsPoweredRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void IsPoweredRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void IsPoweredRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void IsPoweredRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.IsPoweredRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IsPoweredRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.motor.v1.IsPoweredRequest.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* IsPoweredRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.IsPoweredRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.motor.v1.IsPoweredRequest.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.component.motor.v1.IsPoweredRequest) + return target; +} + +size_t IsPoweredRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.IsPoweredRequest) + 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( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IsPoweredRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + IsPoweredRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IsPoweredRequest::GetClassData() const { return &_class_data_; } + + +void IsPoweredRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.IsPoweredRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void IsPoweredRequest::CopyFrom(const IsPoweredRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.motor.v1.IsPoweredRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IsPoweredRequest::IsInitialized() const { + return true; +} + +void IsPoweredRequest::InternalSwap(IsPoweredRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.extra_, other->_impl_.extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata IsPoweredRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, + file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[12]); +} + +// =================================================================== + +class IsPoweredResponse::_Internal { + public: +}; + +IsPoweredResponse::IsPoweredResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.IsPoweredResponse) +} +IsPoweredResponse::IsPoweredResponse(const IsPoweredResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + IsPoweredResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.power_pct_){} + , decltype(_impl_.is_on_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.power_pct_, &from._impl_.power_pct_, + static_cast(reinterpret_cast(&_impl_.is_on_) - + reinterpret_cast(&_impl_.power_pct_)) + sizeof(_impl_.is_on_)); + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.IsPoweredResponse) +} + +inline void IsPoweredResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.power_pct_){0} + , decltype(_impl_.is_on_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +IsPoweredResponse::~IsPoweredResponse() { + // @@protoc_insertion_point(destructor:viam.component.motor.v1.IsPoweredResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void IsPoweredResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void IsPoweredResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void IsPoweredResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.IsPoweredResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.power_pct_, 0, static_cast( + reinterpret_cast(&_impl_.is_on_) - + reinterpret_cast(&_impl_.power_pct_)) + sizeof(_impl_.is_on_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IsPoweredResponse::_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) { + // bool is_on = 1 [json_name = "isOn"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.is_on_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double power_pct = 2 [json_name = "powerPct"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + _impl_.power_pct_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* IsPoweredResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.IsPoweredResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bool is_on = 1 [json_name = "isOn"]; + if (this->_internal_is_on() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_is_on(), target); + } + + // double power_pct = 2 [json_name = "powerPct"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_power_pct = this->_internal_power_pct(); + uint64_t raw_power_pct; + memcpy(&raw_power_pct, &tmp_power_pct, sizeof(tmp_power_pct)); + if (raw_power_pct != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_power_pct(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.motor.v1.IsPoweredResponse) + return target; +} + +size_t IsPoweredResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.IsPoweredResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // double power_pct = 2 [json_name = "powerPct"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_power_pct = this->_internal_power_pct(); + uint64_t raw_power_pct; + memcpy(&raw_power_pct, &tmp_power_pct, sizeof(tmp_power_pct)); + if (raw_power_pct != 0) { + total_size += 1 + 8; + } + + // bool is_on = 1 [json_name = "isOn"]; + if (this->_internal_is_on() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IsPoweredResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + IsPoweredResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IsPoweredResponse::GetClassData() const { return &_class_data_; } + + +void IsPoweredResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.IsPoweredResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_power_pct = from._internal_power_pct(); + uint64_t raw_power_pct; + memcpy(&raw_power_pct, &tmp_power_pct, sizeof(tmp_power_pct)); + if (raw_power_pct != 0) { + _this->_internal_set_power_pct(from._internal_power_pct()); + } + if (from._internal_is_on() != 0) { + _this->_internal_set_is_on(from._internal_is_on()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void IsPoweredResponse::CopyFrom(const IsPoweredResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.motor.v1.IsPoweredResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IsPoweredResponse::IsInitialized() const { + return true; +} + +void IsPoweredResponse::InternalSwap(IsPoweredResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(IsPoweredResponse, _impl_.is_on_) + + sizeof(IsPoweredResponse::_impl_.is_on_) + - PROTOBUF_FIELD_OFFSET(IsPoweredResponse, _impl_.power_pct_)>( + reinterpret_cast(&_impl_.power_pct_), + reinterpret_cast(&other->_impl_.power_pct_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata IsPoweredResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, + file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[13]); +} + +// =================================================================== + +class GetPropertiesRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPropertiesRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPropertiesRequest::_Internal::extra(const GetPropertiesRequest* msg) { + return *msg->_impl_.extra_; +} +void GetPropertiesRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +GetPropertiesRequest::GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.GetPropertiesRequest) +} +GetPropertiesRequest::GetPropertiesRequest(const GetPropertiesRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPropertiesRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.GetPropertiesRequest) +} + +inline void GetPropertiesRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetPropertiesRequest::~GetPropertiesRequest() { + // @@protoc_insertion_point(destructor:viam.component.motor.v1.GetPropertiesRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPropertiesRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void GetPropertiesRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPropertiesRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.GetPropertiesRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.motor.v1.GetPropertiesRequest.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* GetPropertiesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.GetPropertiesRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.motor.v1.GetPropertiesRequest.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.component.motor.v1.GetPropertiesRequest) + return target; +} + +size_t GetPropertiesRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.GetPropertiesRequest) + 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( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPropertiesRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesRequest::GetClassData() const { return &_class_data_; } + + +void GetPropertiesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.GetPropertiesRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPropertiesRequest::CopyFrom(const GetPropertiesRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.motor.v1.GetPropertiesRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPropertiesRequest::IsInitialized() const { + return true; +} + +void GetPropertiesRequest::InternalSwap(GetPropertiesRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.extra_, other->_impl_.extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, + file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[14]); +} + +// =================================================================== + +class GetPropertiesResponse::_Internal { + public: +}; + +GetPropertiesResponse::GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.GetPropertiesResponse) +} +GetPropertiesResponse::GetPropertiesResponse(const GetPropertiesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPropertiesResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.position_reporting_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.position_reporting_ = from._impl_.position_reporting_; + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.GetPropertiesResponse) +} + +inline void GetPropertiesResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.position_reporting_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetPropertiesResponse::~GetPropertiesResponse() { + // @@protoc_insertion_point(destructor:viam.component.motor.v1.GetPropertiesResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPropertiesResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetPropertiesResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPropertiesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.GetPropertiesResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.position_reporting_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // bool position_reporting = 1 [json_name = "positionReporting"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.position_reporting_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetPropertiesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.GetPropertiesResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bool position_reporting = 1 [json_name = "positionReporting"]; + if (this->_internal_position_reporting() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_position_reporting(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.motor.v1.GetPropertiesResponse) + return target; +} + +size_t GetPropertiesResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.GetPropertiesResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bool position_reporting = 1 [json_name = "positionReporting"]; + if (this->_internal_position_reporting() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPropertiesResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesResponse::GetClassData() const { return &_class_data_; } + + +void GetPropertiesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.GetPropertiesResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_position_reporting() != 0) { + _this->_internal_set_position_reporting(from._internal_position_reporting()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPropertiesResponse::CopyFrom(const GetPropertiesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.motor.v1.GetPropertiesResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPropertiesResponse::IsInitialized() const { + return true; +} + +void GetPropertiesResponse::InternalSwap(GetPropertiesResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.position_reporting_, other->_impl_.position_reporting_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, + file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[15]); +} + +// =================================================================== + +class Status::_Internal { + public: +}; + +Status::Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.Status) +} +Status::Status(const Status& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Status* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.position_){} + , decltype(_impl_.is_powered_){} + , decltype(_impl_.position_reporting_){} + , decltype(_impl_.is_moving_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.position_, &from._impl_.position_, + static_cast(reinterpret_cast(&_impl_.is_moving_) - + reinterpret_cast(&_impl_.position_)) + sizeof(_impl_.is_moving_)); + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.Status) +} + +inline void Status::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.position_){0} + , decltype(_impl_.is_powered_){false} + , decltype(_impl_.position_reporting_){false} + , decltype(_impl_.is_moving_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Status::~Status() { + // @@protoc_insertion_point(destructor:viam.component.motor.v1.Status) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Status::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Status::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Status::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.Status) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.position_, 0, static_cast( + reinterpret_cast(&_impl_.is_moving_) - + reinterpret_cast(&_impl_.position_)) + sizeof(_impl_.is_moving_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Status::_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) { + // bool is_powered = 1 [json_name = "isPowered"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.is_powered_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool position_reporting = 2 [json_name = "positionReporting"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.position_reporting_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double position = 3 [json_name = "position"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + _impl_.position_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // bool is_moving = 4 [json_name = "isMoving"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* Status::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.Status) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bool is_powered = 1 [json_name = "isPowered"]; + if (this->_internal_is_powered() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_is_powered(), target); + } + + // bool position_reporting = 2 [json_name = "positionReporting"]; + if (this->_internal_position_reporting() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_position_reporting(), target); + } + + // double position = 3 [json_name = "position"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_position = this->_internal_position(); + uint64_t raw_position; + memcpy(&raw_position, &tmp_position, sizeof(tmp_position)); + if (raw_position != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_position(), target); + } + + // bool is_moving = 4 [json_name = "isMoving"]; + if (this->_internal_is_moving() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_is_moving(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.motor.v1.Status) + return target; +} + +size_t Status::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.Status) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // double position = 3 [json_name = "position"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_position = this->_internal_position(); + uint64_t raw_position; + memcpy(&raw_position, &tmp_position, sizeof(tmp_position)); + if (raw_position != 0) { + total_size += 1 + 8; + } + + // bool is_powered = 1 [json_name = "isPowered"]; + if (this->_internal_is_powered() != 0) { + total_size += 1 + 1; + } + + // bool position_reporting = 2 [json_name = "positionReporting"]; + if (this->_internal_position_reporting() != 0) { + total_size += 1 + 1; + } + + // bool is_moving = 4 [json_name = "isMoving"]; + if (this->_internal_is_moving() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Status::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Status::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Status::GetClassData() const { return &_class_data_; } + + +void Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.Status) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_position = from._internal_position(); + uint64_t raw_position; + memcpy(&raw_position, &tmp_position, sizeof(tmp_position)); + if (raw_position != 0) { + _this->_internal_set_position(from._internal_position()); + } + if (from._internal_is_powered() != 0) { + _this->_internal_set_is_powered(from._internal_is_powered()); + } + if (from._internal_position_reporting() != 0) { + _this->_internal_set_position_reporting(from._internal_position_reporting()); + } + if (from._internal_is_moving() != 0) { + _this->_internal_set_is_moving(from._internal_is_moving()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Status::CopyFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.motor.v1.Status) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Status::IsInitialized() const { + return true; +} + +void Status::InternalSwap(Status* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Status, _impl_.is_moving_) + + sizeof(Status::_impl_.is_moving_) + - PROTOBUF_FIELD_OFFSET(Status, _impl_.position_)>( + reinterpret_cast(&_impl_.position_), + reinterpret_cast(&other->_impl_.position_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, + file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[16]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace motor +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::SetPowerRequest* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::SetPowerRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::SetPowerRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::SetPowerResponse* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::SetPowerResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::SetPowerResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::GoForRequest* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::GoForRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::GoForRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::GoForResponse* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::GoForResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::GoForResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::GoToRequest* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::GoToRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::GoToRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::GoToResponse* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::GoToResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::GoToResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::ResetZeroPositionRequest* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::ResetZeroPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::ResetZeroPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::ResetZeroPositionResponse* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::ResetZeroPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::ResetZeroPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::GetPositionRequest* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::GetPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::GetPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::GetPositionResponse* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::GetPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::GetPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::StopRequest* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::StopRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::StopRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::StopResponse* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::StopResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::StopResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::IsPoweredRequest* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::IsPoweredRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::IsPoweredRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::IsPoweredResponse* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::IsPoweredResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::IsPoweredResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::GetPropertiesRequest* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::GetPropertiesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::GetPropertiesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::GetPropertiesResponse* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::GetPropertiesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::GetPropertiesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::Status* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::Status >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::Status >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/component/motor/v1/motor.pb.h b/src/gen/component/motor/v1/motor.pb.h new file mode 100644 index 000000000..805634784 --- /dev/null +++ b/src/gen/component/motor/v1/motor.pb.h @@ -0,0 +1,4290 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/motor/v1/motor.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fmotor_2fv1_2fmotor_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fmotor_2fv1_2fmotor_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "google/api/annotations.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_component_2fmotor_2fv1_2fmotor_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_component_2fmotor_2fv1_2fmotor_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto; +namespace viam { +namespace component { +namespace motor { +namespace v1 { +class GetPositionRequest; +struct GetPositionRequestDefaultTypeInternal; +extern GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; +class GetPositionResponse; +struct GetPositionResponseDefaultTypeInternal; +extern GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; +class GetPropertiesRequest; +struct GetPropertiesRequestDefaultTypeInternal; +extern GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; +class GetPropertiesResponse; +struct GetPropertiesResponseDefaultTypeInternal; +extern GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; +class GoForRequest; +struct GoForRequestDefaultTypeInternal; +extern GoForRequestDefaultTypeInternal _GoForRequest_default_instance_; +class GoForResponse; +struct GoForResponseDefaultTypeInternal; +extern GoForResponseDefaultTypeInternal _GoForResponse_default_instance_; +class GoToRequest; +struct GoToRequestDefaultTypeInternal; +extern GoToRequestDefaultTypeInternal _GoToRequest_default_instance_; +class GoToResponse; +struct GoToResponseDefaultTypeInternal; +extern GoToResponseDefaultTypeInternal _GoToResponse_default_instance_; +class IsPoweredRequest; +struct IsPoweredRequestDefaultTypeInternal; +extern IsPoweredRequestDefaultTypeInternal _IsPoweredRequest_default_instance_; +class IsPoweredResponse; +struct IsPoweredResponseDefaultTypeInternal; +extern IsPoweredResponseDefaultTypeInternal _IsPoweredResponse_default_instance_; +class ResetZeroPositionRequest; +struct ResetZeroPositionRequestDefaultTypeInternal; +extern ResetZeroPositionRequestDefaultTypeInternal _ResetZeroPositionRequest_default_instance_; +class ResetZeroPositionResponse; +struct ResetZeroPositionResponseDefaultTypeInternal; +extern ResetZeroPositionResponseDefaultTypeInternal _ResetZeroPositionResponse_default_instance_; +class SetPowerRequest; +struct SetPowerRequestDefaultTypeInternal; +extern SetPowerRequestDefaultTypeInternal _SetPowerRequest_default_instance_; +class SetPowerResponse; +struct SetPowerResponseDefaultTypeInternal; +extern SetPowerResponseDefaultTypeInternal _SetPowerResponse_default_instance_; +class Status; +struct StatusDefaultTypeInternal; +extern StatusDefaultTypeInternal _Status_default_instance_; +class StopRequest; +struct StopRequestDefaultTypeInternal; +extern StopRequestDefaultTypeInternal _StopRequest_default_instance_; +class StopResponse; +struct StopResponseDefaultTypeInternal; +extern StopResponseDefaultTypeInternal _StopResponse_default_instance_; +} // namespace v1 +} // namespace motor +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::motor::v1::GetPositionRequest* Arena::CreateMaybeMessage<::viam::component::motor::v1::GetPositionRequest>(Arena*); +template<> ::viam::component::motor::v1::GetPositionResponse* Arena::CreateMaybeMessage<::viam::component::motor::v1::GetPositionResponse>(Arena*); +template<> ::viam::component::motor::v1::GetPropertiesRequest* Arena::CreateMaybeMessage<::viam::component::motor::v1::GetPropertiesRequest>(Arena*); +template<> ::viam::component::motor::v1::GetPropertiesResponse* Arena::CreateMaybeMessage<::viam::component::motor::v1::GetPropertiesResponse>(Arena*); +template<> ::viam::component::motor::v1::GoForRequest* Arena::CreateMaybeMessage<::viam::component::motor::v1::GoForRequest>(Arena*); +template<> ::viam::component::motor::v1::GoForResponse* Arena::CreateMaybeMessage<::viam::component::motor::v1::GoForResponse>(Arena*); +template<> ::viam::component::motor::v1::GoToRequest* Arena::CreateMaybeMessage<::viam::component::motor::v1::GoToRequest>(Arena*); +template<> ::viam::component::motor::v1::GoToResponse* Arena::CreateMaybeMessage<::viam::component::motor::v1::GoToResponse>(Arena*); +template<> ::viam::component::motor::v1::IsPoweredRequest* Arena::CreateMaybeMessage<::viam::component::motor::v1::IsPoweredRequest>(Arena*); +template<> ::viam::component::motor::v1::IsPoweredResponse* Arena::CreateMaybeMessage<::viam::component::motor::v1::IsPoweredResponse>(Arena*); +template<> ::viam::component::motor::v1::ResetZeroPositionRequest* Arena::CreateMaybeMessage<::viam::component::motor::v1::ResetZeroPositionRequest>(Arena*); +template<> ::viam::component::motor::v1::ResetZeroPositionResponse* Arena::CreateMaybeMessage<::viam::component::motor::v1::ResetZeroPositionResponse>(Arena*); +template<> ::viam::component::motor::v1::SetPowerRequest* Arena::CreateMaybeMessage<::viam::component::motor::v1::SetPowerRequest>(Arena*); +template<> ::viam::component::motor::v1::SetPowerResponse* Arena::CreateMaybeMessage<::viam::component::motor::v1::SetPowerResponse>(Arena*); +template<> ::viam::component::motor::v1::Status* Arena::CreateMaybeMessage<::viam::component::motor::v1::Status>(Arena*); +template<> ::viam::component::motor::v1::StopRequest* Arena::CreateMaybeMessage<::viam::component::motor::v1::StopRequest>(Arena*); +template<> ::viam::component::motor::v1::StopResponse* Arena::CreateMaybeMessage<::viam::component::motor::v1::StopResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace component { +namespace motor { +namespace v1 { + +// =================================================================== + +class SetPowerRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.SetPowerRequest) */ { + public: + inline SetPowerRequest() : SetPowerRequest(nullptr) {} + ~SetPowerRequest() override; + explicit PROTOBUF_CONSTEXPR SetPowerRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SetPowerRequest(const SetPowerRequest& from); + SetPowerRequest(SetPowerRequest&& from) noexcept + : SetPowerRequest() { + *this = ::std::move(from); + } + + inline SetPowerRequest& operator=(const SetPowerRequest& from) { + CopyFrom(from); + return *this; + } + inline SetPowerRequest& operator=(SetPowerRequest&& 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 SetPowerRequest& default_instance() { + return *internal_default_instance(); + } + static inline const SetPowerRequest* internal_default_instance() { + return reinterpret_cast( + &_SetPowerRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(SetPowerRequest& a, SetPowerRequest& b) { + a.Swap(&b); + } + inline void Swap(SetPowerRequest* 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(SetPowerRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetPowerRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SetPowerRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SetPowerRequest& from) { + SetPowerRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SetPowerRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.SetPowerRequest"; + } + protected: + explicit SetPowerRequest(::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, + kPowerPctFieldNumber = 2, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // .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(); + + // double power_pct = 2 [json_name = "powerPct"]; + void clear_power_pct(); + double power_pct() const; + void set_power_pct(double value); + private: + double _internal_power_pct() const; + void _internal_set_power_pct(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.SetPowerRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + double power_pct_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; +}; +// ------------------------------------------------------------------- + +class SetPowerResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.SetPowerResponse) */ { + public: + inline SetPowerResponse() : SetPowerResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SetPowerResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SetPowerResponse(const SetPowerResponse& from); + SetPowerResponse(SetPowerResponse&& from) noexcept + : SetPowerResponse() { + *this = ::std::move(from); + } + + inline SetPowerResponse& operator=(const SetPowerResponse& from) { + CopyFrom(from); + return *this; + } + inline SetPowerResponse& operator=(SetPowerResponse&& 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 SetPowerResponse& default_instance() { + return *internal_default_instance(); + } + static inline const SetPowerResponse* internal_default_instance() { + return reinterpret_cast( + &_SetPowerResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(SetPowerResponse& a, SetPowerResponse& b) { + a.Swap(&b); + } + inline void Swap(SetPowerResponse* 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(SetPowerResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetPowerResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SetPowerResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SetPowerResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.SetPowerResponse"; + } + protected: + explicit SetPowerResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.SetPowerResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; +}; +// ------------------------------------------------------------------- + +class GoForRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GoForRequest) */ { + public: + inline GoForRequest() : GoForRequest(nullptr) {} + ~GoForRequest() override; + explicit PROTOBUF_CONSTEXPR GoForRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GoForRequest(const GoForRequest& from); + GoForRequest(GoForRequest&& from) noexcept + : GoForRequest() { + *this = ::std::move(from); + } + + inline GoForRequest& operator=(const GoForRequest& from) { + CopyFrom(from); + return *this; + } + inline GoForRequest& operator=(GoForRequest&& 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 GoForRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GoForRequest* internal_default_instance() { + return reinterpret_cast( + &_GoForRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(GoForRequest& a, GoForRequest& b) { + a.Swap(&b); + } + inline void Swap(GoForRequest* 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(GoForRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GoForRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GoForRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GoForRequest& from) { + GoForRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GoForRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.GoForRequest"; + } + protected: + explicit GoForRequest(::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, + kRpmFieldNumber = 2, + kRevolutionsFieldNumber = 3, + }; + // 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(); + + // double rpm = 2 [json_name = "rpm"]; + void clear_rpm(); + double rpm() const; + void set_rpm(double value); + private: + double _internal_rpm() const; + void _internal_set_rpm(double value); + public: + + // double revolutions = 3 [json_name = "revolutions"]; + void clear_revolutions(); + double revolutions() const; + void set_revolutions(double value); + private: + double _internal_revolutions() const; + void _internal_set_revolutions(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.GoForRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + double rpm_; + double revolutions_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; +}; +// ------------------------------------------------------------------- + +class GoForResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GoForResponse) */ { + public: + inline GoForResponse() : GoForResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR GoForResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GoForResponse(const GoForResponse& from); + GoForResponse(GoForResponse&& from) noexcept + : GoForResponse() { + *this = ::std::move(from); + } + + inline GoForResponse& operator=(const GoForResponse& from) { + CopyFrom(from); + return *this; + } + inline GoForResponse& operator=(GoForResponse&& 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 GoForResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GoForResponse* internal_default_instance() { + return reinterpret_cast( + &_GoForResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(GoForResponse& a, GoForResponse& b) { + a.Swap(&b); + } + inline void Swap(GoForResponse* 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(GoForResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GoForResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const GoForResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const GoForResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.GoForResponse"; + } + protected: + explicit GoForResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.GoForResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; +}; +// ------------------------------------------------------------------- + +class GoToRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GoToRequest) */ { + public: + inline GoToRequest() : GoToRequest(nullptr) {} + ~GoToRequest() override; + explicit PROTOBUF_CONSTEXPR GoToRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GoToRequest(const GoToRequest& from); + GoToRequest(GoToRequest&& from) noexcept + : GoToRequest() { + *this = ::std::move(from); + } + + inline GoToRequest& operator=(const GoToRequest& from) { + CopyFrom(from); + return *this; + } + inline GoToRequest& operator=(GoToRequest&& 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 GoToRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GoToRequest* internal_default_instance() { + return reinterpret_cast( + &_GoToRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(GoToRequest& a, GoToRequest& b) { + a.Swap(&b); + } + inline void Swap(GoToRequest* 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(GoToRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GoToRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GoToRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GoToRequest& from) { + GoToRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GoToRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.GoToRequest"; + } + protected: + explicit GoToRequest(::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, + kRpmFieldNumber = 2, + kPositionRevolutionsFieldNumber = 3, + }; + // 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(); + + // double rpm = 2 [json_name = "rpm"]; + void clear_rpm(); + double rpm() const; + void set_rpm(double value); + private: + double _internal_rpm() const; + void _internal_set_rpm(double value); + public: + + // double position_revolutions = 3 [json_name = "positionRevolutions"]; + void clear_position_revolutions(); + double position_revolutions() const; + void set_position_revolutions(double value); + private: + double _internal_position_revolutions() const; + void _internal_set_position_revolutions(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.GoToRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + double rpm_; + double position_revolutions_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; +}; +// ------------------------------------------------------------------- + +class GoToResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GoToResponse) */ { + public: + inline GoToResponse() : GoToResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR GoToResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GoToResponse(const GoToResponse& from); + GoToResponse(GoToResponse&& from) noexcept + : GoToResponse() { + *this = ::std::move(from); + } + + inline GoToResponse& operator=(const GoToResponse& from) { + CopyFrom(from); + return *this; + } + inline GoToResponse& operator=(GoToResponse&& 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 GoToResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GoToResponse* internal_default_instance() { + return reinterpret_cast( + &_GoToResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(GoToResponse& a, GoToResponse& b) { + a.Swap(&b); + } + inline void Swap(GoToResponse* 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(GoToResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GoToResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const GoToResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const GoToResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.GoToResponse"; + } + protected: + explicit GoToResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.GoToResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; +}; +// ------------------------------------------------------------------- + +class ResetZeroPositionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.ResetZeroPositionRequest) */ { + public: + inline ResetZeroPositionRequest() : ResetZeroPositionRequest(nullptr) {} + ~ResetZeroPositionRequest() override; + explicit PROTOBUF_CONSTEXPR ResetZeroPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ResetZeroPositionRequest(const ResetZeroPositionRequest& from); + ResetZeroPositionRequest(ResetZeroPositionRequest&& from) noexcept + : ResetZeroPositionRequest() { + *this = ::std::move(from); + } + + inline ResetZeroPositionRequest& operator=(const ResetZeroPositionRequest& from) { + CopyFrom(from); + return *this; + } + inline ResetZeroPositionRequest& operator=(ResetZeroPositionRequest&& 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 ResetZeroPositionRequest& default_instance() { + return *internal_default_instance(); + } + static inline const ResetZeroPositionRequest* internal_default_instance() { + return reinterpret_cast( + &_ResetZeroPositionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(ResetZeroPositionRequest& a, ResetZeroPositionRequest& b) { + a.Swap(&b); + } + inline void Swap(ResetZeroPositionRequest* 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(ResetZeroPositionRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ResetZeroPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResetZeroPositionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ResetZeroPositionRequest& from) { + ResetZeroPositionRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ResetZeroPositionRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.ResetZeroPositionRequest"; + } + protected: + explicit ResetZeroPositionRequest(::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, + kOffsetFieldNumber = 2, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // .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(); + + // double offset = 2 [json_name = "offset"]; + void clear_offset(); + double offset() const; + void set_offset(double value); + private: + double _internal_offset() const; + void _internal_set_offset(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.ResetZeroPositionRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + double offset_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; +}; +// ------------------------------------------------------------------- + +class ResetZeroPositionResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.ResetZeroPositionResponse) */ { + public: + inline ResetZeroPositionResponse() : ResetZeroPositionResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR ResetZeroPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ResetZeroPositionResponse(const ResetZeroPositionResponse& from); + ResetZeroPositionResponse(ResetZeroPositionResponse&& from) noexcept + : ResetZeroPositionResponse() { + *this = ::std::move(from); + } + + inline ResetZeroPositionResponse& operator=(const ResetZeroPositionResponse& from) { + CopyFrom(from); + return *this; + } + inline ResetZeroPositionResponse& operator=(ResetZeroPositionResponse&& 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 ResetZeroPositionResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ResetZeroPositionResponse* internal_default_instance() { + return reinterpret_cast( + &_ResetZeroPositionResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(ResetZeroPositionResponse& a, ResetZeroPositionResponse& b) { + a.Swap(&b); + } + inline void Swap(ResetZeroPositionResponse* 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(ResetZeroPositionResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ResetZeroPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ResetZeroPositionResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ResetZeroPositionResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.ResetZeroPositionResponse"; + } + protected: + explicit ResetZeroPositionResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.ResetZeroPositionResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPositionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GetPositionRequest) */ { + public: + inline GetPositionRequest() : GetPositionRequest(nullptr) {} + ~GetPositionRequest() override; + explicit PROTOBUF_CONSTEXPR GetPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPositionRequest(const GetPositionRequest& from); + GetPositionRequest(GetPositionRequest&& from) noexcept + : GetPositionRequest() { + *this = ::std::move(from); + } + + inline GetPositionRequest& operator=(const GetPositionRequest& from) { + CopyFrom(from); + return *this; + } + inline GetPositionRequest& operator=(GetPositionRequest&& 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 GetPositionRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetPositionRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPositionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(GetPositionRequest& a, GetPositionRequest& b) { + a.Swap(&b); + } + inline void Swap(GetPositionRequest* 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(GetPositionRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPositionRequest& from) { + GetPositionRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPositionRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.GetPositionRequest"; + } + protected: + explicit GetPositionRequest(::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.component.motor.v1.GetPositionRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPositionResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GetPositionResponse) */ { + public: + inline GetPositionResponse() : GetPositionResponse(nullptr) {} + ~GetPositionResponse() override; + explicit PROTOBUF_CONSTEXPR GetPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPositionResponse(const GetPositionResponse& from); + GetPositionResponse(GetPositionResponse&& from) noexcept + : GetPositionResponse() { + *this = ::std::move(from); + } + + inline GetPositionResponse& operator=(const GetPositionResponse& from) { + CopyFrom(from); + return *this; + } + inline GetPositionResponse& operator=(GetPositionResponse&& 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 GetPositionResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetPositionResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPositionResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(GetPositionResponse& a, GetPositionResponse& b) { + a.Swap(&b); + } + inline void Swap(GetPositionResponse* 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(GetPositionResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPositionResponse& from) { + GetPositionResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPositionResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.GetPositionResponse"; + } + protected: + explicit GetPositionResponse(::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 { + kPositionFieldNumber = 1, + }; + // double position = 1 [json_name = "position"]; + void clear_position(); + double position() const; + void set_position(double value); + private: + double _internal_position() const; + void _internal_set_position(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.GetPositionResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + double position_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; +}; +// ------------------------------------------------------------------- + +class StopRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.StopRequest) */ { + public: + inline StopRequest() : StopRequest(nullptr) {} + ~StopRequest() override; + explicit PROTOBUF_CONSTEXPR StopRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StopRequest(const StopRequest& from); + StopRequest(StopRequest&& from) noexcept + : StopRequest() { + *this = ::std::move(from); + } + + inline StopRequest& operator=(const StopRequest& from) { + CopyFrom(from); + return *this; + } + inline StopRequest& operator=(StopRequest&& 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 StopRequest& default_instance() { + return *internal_default_instance(); + } + static inline const StopRequest* internal_default_instance() { + return reinterpret_cast( + &_StopRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(StopRequest& a, StopRequest& b) { + a.Swap(&b); + } + inline void Swap(StopRequest* 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(StopRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StopRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StopRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const StopRequest& from) { + StopRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StopRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.StopRequest"; + } + protected: + explicit StopRequest(::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.component.motor.v1.StopRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; +}; +// ------------------------------------------------------------------- + +class StopResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.StopResponse) */ { + public: + inline StopResponse() : StopResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR StopResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StopResponse(const StopResponse& from); + StopResponse(StopResponse&& from) noexcept + : StopResponse() { + *this = ::std::move(from); + } + + inline StopResponse& operator=(const StopResponse& from) { + CopyFrom(from); + return *this; + } + inline StopResponse& operator=(StopResponse&& 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 StopResponse& default_instance() { + return *internal_default_instance(); + } + static inline const StopResponse* internal_default_instance() { + return reinterpret_cast( + &_StopResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(StopResponse& a, StopResponse& b) { + a.Swap(&b); + } + inline void Swap(StopResponse* 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(StopResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StopResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.StopResponse"; + } + protected: + explicit StopResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.StopResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; +}; +// ------------------------------------------------------------------- + +class IsPoweredRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.IsPoweredRequest) */ { + public: + inline IsPoweredRequest() : IsPoweredRequest(nullptr) {} + ~IsPoweredRequest() override; + explicit PROTOBUF_CONSTEXPR IsPoweredRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + IsPoweredRequest(const IsPoweredRequest& from); + IsPoweredRequest(IsPoweredRequest&& from) noexcept + : IsPoweredRequest() { + *this = ::std::move(from); + } + + inline IsPoweredRequest& operator=(const IsPoweredRequest& from) { + CopyFrom(from); + return *this; + } + inline IsPoweredRequest& operator=(IsPoweredRequest&& 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 IsPoweredRequest& default_instance() { + return *internal_default_instance(); + } + static inline const IsPoweredRequest* internal_default_instance() { + return reinterpret_cast( + &_IsPoweredRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(IsPoweredRequest& a, IsPoweredRequest& b) { + a.Swap(&b); + } + inline void Swap(IsPoweredRequest* 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(IsPoweredRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + IsPoweredRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IsPoweredRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const IsPoweredRequest& from) { + IsPoweredRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IsPoweredRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.IsPoweredRequest"; + } + protected: + explicit IsPoweredRequest(::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.component.motor.v1.IsPoweredRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; +}; +// ------------------------------------------------------------------- + +class IsPoweredResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.IsPoweredResponse) */ { + public: + inline IsPoweredResponse() : IsPoweredResponse(nullptr) {} + ~IsPoweredResponse() override; + explicit PROTOBUF_CONSTEXPR IsPoweredResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + IsPoweredResponse(const IsPoweredResponse& from); + IsPoweredResponse(IsPoweredResponse&& from) noexcept + : IsPoweredResponse() { + *this = ::std::move(from); + } + + inline IsPoweredResponse& operator=(const IsPoweredResponse& from) { + CopyFrom(from); + return *this; + } + inline IsPoweredResponse& operator=(IsPoweredResponse&& 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 IsPoweredResponse& default_instance() { + return *internal_default_instance(); + } + static inline const IsPoweredResponse* internal_default_instance() { + return reinterpret_cast( + &_IsPoweredResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(IsPoweredResponse& a, IsPoweredResponse& b) { + a.Swap(&b); + } + inline void Swap(IsPoweredResponse* 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(IsPoweredResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + IsPoweredResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IsPoweredResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const IsPoweredResponse& from) { + IsPoweredResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IsPoweredResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.IsPoweredResponse"; + } + protected: + explicit IsPoweredResponse(::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 { + kPowerPctFieldNumber = 2, + kIsOnFieldNumber = 1, + }; + // double power_pct = 2 [json_name = "powerPct"]; + void clear_power_pct(); + double power_pct() const; + void set_power_pct(double value); + private: + double _internal_power_pct() const; + void _internal_set_power_pct(double value); + public: + + // bool is_on = 1 [json_name = "isOn"]; + void clear_is_on(); + bool is_on() const; + void set_is_on(bool value); + private: + bool _internal_is_on() const; + void _internal_set_is_on(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.IsPoweredResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + double power_pct_; + bool is_on_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPropertiesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GetPropertiesRequest) */ { + public: + inline GetPropertiesRequest() : GetPropertiesRequest(nullptr) {} + ~GetPropertiesRequest() override; + explicit PROTOBUF_CONSTEXPR GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPropertiesRequest(const GetPropertiesRequest& from); + GetPropertiesRequest(GetPropertiesRequest&& from) noexcept + : GetPropertiesRequest() { + *this = ::std::move(from); + } + + inline GetPropertiesRequest& operator=(const GetPropertiesRequest& from) { + CopyFrom(from); + return *this; + } + inline GetPropertiesRequest& operator=(GetPropertiesRequest&& 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 GetPropertiesRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetPropertiesRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPropertiesRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(GetPropertiesRequest& a, GetPropertiesRequest& b) { + a.Swap(&b); + } + inline void Swap(GetPropertiesRequest* 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(GetPropertiesRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPropertiesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPropertiesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPropertiesRequest& from) { + GetPropertiesRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPropertiesRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.GetPropertiesRequest"; + } + protected: + explicit GetPropertiesRequest(::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.component.motor.v1.GetPropertiesRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPropertiesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GetPropertiesResponse) */ { + public: + inline GetPropertiesResponse() : GetPropertiesResponse(nullptr) {} + ~GetPropertiesResponse() override; + explicit PROTOBUF_CONSTEXPR GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPropertiesResponse(const GetPropertiesResponse& from); + GetPropertiesResponse(GetPropertiesResponse&& from) noexcept + : GetPropertiesResponse() { + *this = ::std::move(from); + } + + inline GetPropertiesResponse& operator=(const GetPropertiesResponse& from) { + CopyFrom(from); + return *this; + } + inline GetPropertiesResponse& operator=(GetPropertiesResponse&& 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 GetPropertiesResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetPropertiesResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPropertiesResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(GetPropertiesResponse& a, GetPropertiesResponse& b) { + a.Swap(&b); + } + inline void Swap(GetPropertiesResponse* 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(GetPropertiesResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPropertiesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPropertiesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPropertiesResponse& from) { + GetPropertiesResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPropertiesResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.GetPropertiesResponse"; + } + protected: + explicit GetPropertiesResponse(::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 { + kPositionReportingFieldNumber = 1, + }; + // bool position_reporting = 1 [json_name = "positionReporting"]; + void clear_position_reporting(); + bool position_reporting() const; + void set_position_reporting(bool value); + private: + bool _internal_position_reporting() const; + void _internal_set_position_reporting(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.GetPropertiesResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + bool position_reporting_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; +}; +// ------------------------------------------------------------------- + +class Status final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.Status) */ { + public: + inline Status() : Status(nullptr) {} + ~Status() override; + explicit PROTOBUF_CONSTEXPR Status(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Status(const Status& from); + Status(Status&& from) noexcept + : Status() { + *this = ::std::move(from); + } + + inline Status& operator=(const Status& from) { + CopyFrom(from); + return *this; + } + inline Status& operator=(Status&& 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 Status& default_instance() { + return *internal_default_instance(); + } + static inline const Status* internal_default_instance() { + return reinterpret_cast( + &_Status_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + friend void swap(Status& a, Status& b) { + a.Swap(&b); + } + inline void Swap(Status* 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(Status* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Status& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Status& from) { + Status::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Status* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.Status"; + } + protected: + explicit Status(::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 { + kPositionFieldNumber = 3, + kIsPoweredFieldNumber = 1, + kPositionReportingFieldNumber = 2, + kIsMovingFieldNumber = 4, + }; + // double position = 3 [json_name = "position"]; + void clear_position(); + double position() const; + void set_position(double value); + private: + double _internal_position() const; + void _internal_set_position(double value); + public: + + // bool is_powered = 1 [json_name = "isPowered"]; + void clear_is_powered(); + bool is_powered() const; + void set_is_powered(bool value); + private: + bool _internal_is_powered() const; + void _internal_set_is_powered(bool value); + public: + + // bool position_reporting = 2 [json_name = "positionReporting"]; + void clear_position_reporting(); + bool position_reporting() const; + void set_position_reporting(bool value); + private: + bool _internal_position_reporting() const; + void _internal_set_position_reporting(bool value); + public: + + // bool is_moving = 4 [json_name = "isMoving"]; + void clear_is_moving(); + bool is_moving() const; + void set_is_moving(bool value); + private: + bool _internal_is_moving() const; + void _internal_set_is_moving(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.Status) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + double position_; + bool is_powered_; + bool position_reporting_; + bool is_moving_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// SetPowerRequest + +// string name = 1 [json_name = "name"]; +inline void SetPowerRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& SetPowerRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.SetPowerRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SetPowerRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.SetPowerRequest.name) +} +inline std::string* SetPowerRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.SetPowerRequest.name) + return _s; +} +inline const std::string& SetPowerRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void SetPowerRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* SetPowerRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* SetPowerRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.motor.v1.SetPowerRequest.name) + return _impl_.name_.Release(); +} +inline void SetPowerRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.SetPowerRequest.name) +} + +// double power_pct = 2 [json_name = "powerPct"]; +inline void SetPowerRequest::clear_power_pct() { + _impl_.power_pct_ = 0; +} +inline double SetPowerRequest::_internal_power_pct() const { + return _impl_.power_pct_; +} +inline double SetPowerRequest::power_pct() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.SetPowerRequest.power_pct) + return _internal_power_pct(); +} +inline void SetPowerRequest::_internal_set_power_pct(double value) { + + _impl_.power_pct_ = value; +} +inline void SetPowerRequest::set_power_pct(double value) { + _internal_set_power_pct(value); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.SetPowerRequest.power_pct) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool SetPowerRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool SetPowerRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetPowerRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetPowerRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.SetPowerRequest.extra) + return _internal_extra(); +} +inline void SetPowerRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.motor.v1.SetPowerRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPowerRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* SetPowerRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.motor.v1.SetPowerRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPowerRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPowerRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.SetPowerRequest.extra) + return _msg; +} +inline void SetPowerRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.SetPowerRequest.extra) +} + +// ------------------------------------------------------------------- + +// SetPowerResponse + +// ------------------------------------------------------------------- + +// GoForRequest + +// string name = 1 [json_name = "name"]; +inline void GoForRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GoForRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.GoForRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GoForRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.GoForRequest.name) +} +inline std::string* GoForRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.GoForRequest.name) + return _s; +} +inline const std::string& GoForRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GoForRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GoForRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GoForRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.motor.v1.GoForRequest.name) + return _impl_.name_.Release(); +} +inline void GoForRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.GoForRequest.name) +} + +// double rpm = 2 [json_name = "rpm"]; +inline void GoForRequest::clear_rpm() { + _impl_.rpm_ = 0; +} +inline double GoForRequest::_internal_rpm() const { + return _impl_.rpm_; +} +inline double GoForRequest::rpm() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.GoForRequest.rpm) + return _internal_rpm(); +} +inline void GoForRequest::_internal_set_rpm(double value) { + + _impl_.rpm_ = value; +} +inline void GoForRequest::set_rpm(double value) { + _internal_set_rpm(value); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.GoForRequest.rpm) +} + +// double revolutions = 3 [json_name = "revolutions"]; +inline void GoForRequest::clear_revolutions() { + _impl_.revolutions_ = 0; +} +inline double GoForRequest::_internal_revolutions() const { + return _impl_.revolutions_; +} +inline double GoForRequest::revolutions() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.GoForRequest.revolutions) + return _internal_revolutions(); +} +inline void GoForRequest::_internal_set_revolutions(double value) { + + _impl_.revolutions_ = value; +} +inline void GoForRequest::set_revolutions(double value) { + _internal_set_revolutions(value); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.GoForRequest.revolutions) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GoForRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool GoForRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GoForRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GoForRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.GoForRequest.extra) + return _internal_extra(); +} +inline void GoForRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.motor.v1.GoForRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GoForRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* GoForRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.motor.v1.GoForRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GoForRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GoForRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.GoForRequest.extra) + return _msg; +} +inline void GoForRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.GoForRequest.extra) +} + +// ------------------------------------------------------------------- + +// GoForResponse + +// ------------------------------------------------------------------- + +// GoToRequest + +// string name = 1 [json_name = "name"]; +inline void GoToRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GoToRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.GoToRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GoToRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.GoToRequest.name) +} +inline std::string* GoToRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.GoToRequest.name) + return _s; +} +inline const std::string& GoToRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GoToRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GoToRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GoToRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.motor.v1.GoToRequest.name) + return _impl_.name_.Release(); +} +inline void GoToRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.GoToRequest.name) +} + +// double rpm = 2 [json_name = "rpm"]; +inline void GoToRequest::clear_rpm() { + _impl_.rpm_ = 0; +} +inline double GoToRequest::_internal_rpm() const { + return _impl_.rpm_; +} +inline double GoToRequest::rpm() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.GoToRequest.rpm) + return _internal_rpm(); +} +inline void GoToRequest::_internal_set_rpm(double value) { + + _impl_.rpm_ = value; +} +inline void GoToRequest::set_rpm(double value) { + _internal_set_rpm(value); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.GoToRequest.rpm) +} + +// double position_revolutions = 3 [json_name = "positionRevolutions"]; +inline void GoToRequest::clear_position_revolutions() { + _impl_.position_revolutions_ = 0; +} +inline double GoToRequest::_internal_position_revolutions() const { + return _impl_.position_revolutions_; +} +inline double GoToRequest::position_revolutions() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.GoToRequest.position_revolutions) + return _internal_position_revolutions(); +} +inline void GoToRequest::_internal_set_position_revolutions(double value) { + + _impl_.position_revolutions_ = value; +} +inline void GoToRequest::set_position_revolutions(double value) { + _internal_set_position_revolutions(value); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.GoToRequest.position_revolutions) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GoToRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool GoToRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GoToRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GoToRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.GoToRequest.extra) + return _internal_extra(); +} +inline void GoToRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.motor.v1.GoToRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GoToRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* GoToRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.motor.v1.GoToRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GoToRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GoToRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.GoToRequest.extra) + return _msg; +} +inline void GoToRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.GoToRequest.extra) +} + +// ------------------------------------------------------------------- + +// GoToResponse + +// ------------------------------------------------------------------- + +// ResetZeroPositionRequest + +// string name = 1 [json_name = "name"]; +inline void ResetZeroPositionRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& ResetZeroPositionRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.ResetZeroPositionRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ResetZeroPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.ResetZeroPositionRequest.name) +} +inline std::string* ResetZeroPositionRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.ResetZeroPositionRequest.name) + return _s; +} +inline const std::string& ResetZeroPositionRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void ResetZeroPositionRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* ResetZeroPositionRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* ResetZeroPositionRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.motor.v1.ResetZeroPositionRequest.name) + return _impl_.name_.Release(); +} +inline void ResetZeroPositionRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.ResetZeroPositionRequest.name) +} + +// double offset = 2 [json_name = "offset"]; +inline void ResetZeroPositionRequest::clear_offset() { + _impl_.offset_ = 0; +} +inline double ResetZeroPositionRequest::_internal_offset() const { + return _impl_.offset_; +} +inline double ResetZeroPositionRequest::offset() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.ResetZeroPositionRequest.offset) + return _internal_offset(); +} +inline void ResetZeroPositionRequest::_internal_set_offset(double value) { + + _impl_.offset_ = value; +} +inline void ResetZeroPositionRequest::set_offset(double value) { + _internal_set_offset(value); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.ResetZeroPositionRequest.offset) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool ResetZeroPositionRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool ResetZeroPositionRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ResetZeroPositionRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ResetZeroPositionRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.ResetZeroPositionRequest.extra) + return _internal_extra(); +} +inline void ResetZeroPositionRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.motor.v1.ResetZeroPositionRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResetZeroPositionRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* ResetZeroPositionRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.motor.v1.ResetZeroPositionRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResetZeroPositionRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResetZeroPositionRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.ResetZeroPositionRequest.extra) + return _msg; +} +inline void ResetZeroPositionRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.ResetZeroPositionRequest.extra) +} + +// ------------------------------------------------------------------- + +// ResetZeroPositionResponse + +// ------------------------------------------------------------------- + +// GetPositionRequest + +// string name = 1 [json_name = "name"]; +inline void GetPositionRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetPositionRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.GetPositionRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.GetPositionRequest.name) +} +inline std::string* GetPositionRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.GetPositionRequest.name) + return _s; +} +inline const std::string& GetPositionRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetPositionRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetPositionRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetPositionRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.motor.v1.GetPositionRequest.name) + return _impl_.name_.Release(); +} +inline void GetPositionRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.GetPositionRequest.name) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPositionRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool GetPositionRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPositionRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPositionRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.GetPositionRequest.extra) + return _internal_extra(); +} +inline void GetPositionRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.motor.v1.GetPositionRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* GetPositionRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.motor.v1.GetPositionRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.GetPositionRequest.extra) + return _msg; +} +inline void GetPositionRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.GetPositionRequest.extra) +} + +// ------------------------------------------------------------------- + +// GetPositionResponse + +// double position = 1 [json_name = "position"]; +inline void GetPositionResponse::clear_position() { + _impl_.position_ = 0; +} +inline double GetPositionResponse::_internal_position() const { + return _impl_.position_; +} +inline double GetPositionResponse::position() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.GetPositionResponse.position) + return _internal_position(); +} +inline void GetPositionResponse::_internal_set_position(double value) { + + _impl_.position_ = value; +} +inline void GetPositionResponse::set_position(double value) { + _internal_set_position(value); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.GetPositionResponse.position) +} + +// ------------------------------------------------------------------- + +// StopRequest + +// string name = 1 [json_name = "name"]; +inline void StopRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& StopRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.StopRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void StopRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.StopRequest.name) +} +inline std::string* StopRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.StopRequest.name) + return _s; +} +inline const std::string& StopRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void StopRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* StopRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* StopRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.motor.v1.StopRequest.name) + return _impl_.name_.Release(); +} +inline void StopRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.StopRequest.name) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool StopRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool StopRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.StopRequest.extra) + return _internal_extra(); +} +inline void StopRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.motor.v1.StopRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* StopRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.motor.v1.StopRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.StopRequest.extra) + return _msg; +} +inline void StopRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.StopRequest.extra) +} + +// ------------------------------------------------------------------- + +// StopResponse + +// ------------------------------------------------------------------- + +// IsPoweredRequest + +// string name = 1 [json_name = "name"]; +inline void IsPoweredRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& IsPoweredRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.IsPoweredRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void IsPoweredRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.IsPoweredRequest.name) +} +inline std::string* IsPoweredRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.IsPoweredRequest.name) + return _s; +} +inline const std::string& IsPoweredRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void IsPoweredRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* IsPoweredRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* IsPoweredRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.motor.v1.IsPoweredRequest.name) + return _impl_.name_.Release(); +} +inline void IsPoweredRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.IsPoweredRequest.name) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool IsPoweredRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool IsPoweredRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& IsPoweredRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& IsPoweredRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.IsPoweredRequest.extra) + return _internal_extra(); +} +inline void IsPoweredRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.motor.v1.IsPoweredRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* IsPoweredRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* IsPoweredRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.motor.v1.IsPoweredRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* IsPoweredRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* IsPoweredRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.IsPoweredRequest.extra) + return _msg; +} +inline void IsPoweredRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.IsPoweredRequest.extra) +} + +// ------------------------------------------------------------------- + +// IsPoweredResponse + +// bool is_on = 1 [json_name = "isOn"]; +inline void IsPoweredResponse::clear_is_on() { + _impl_.is_on_ = false; +} +inline bool IsPoweredResponse::_internal_is_on() const { + return _impl_.is_on_; +} +inline bool IsPoweredResponse::is_on() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.IsPoweredResponse.is_on) + return _internal_is_on(); +} +inline void IsPoweredResponse::_internal_set_is_on(bool value) { + + _impl_.is_on_ = value; +} +inline void IsPoweredResponse::set_is_on(bool value) { + _internal_set_is_on(value); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.IsPoweredResponse.is_on) +} + +// double power_pct = 2 [json_name = "powerPct"]; +inline void IsPoweredResponse::clear_power_pct() { + _impl_.power_pct_ = 0; +} +inline double IsPoweredResponse::_internal_power_pct() const { + return _impl_.power_pct_; +} +inline double IsPoweredResponse::power_pct() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.IsPoweredResponse.power_pct) + return _internal_power_pct(); +} +inline void IsPoweredResponse::_internal_set_power_pct(double value) { + + _impl_.power_pct_ = value; +} +inline void IsPoweredResponse::set_power_pct(double value) { + _internal_set_power_pct(value); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.IsPoweredResponse.power_pct) +} + +// ------------------------------------------------------------------- + +// GetPropertiesRequest + +// string name = 1 [json_name = "name"]; +inline void GetPropertiesRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetPropertiesRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.GetPropertiesRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetPropertiesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.GetPropertiesRequest.name) +} +inline std::string* GetPropertiesRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.GetPropertiesRequest.name) + return _s; +} +inline const std::string& GetPropertiesRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetPropertiesRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetPropertiesRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetPropertiesRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.motor.v1.GetPropertiesRequest.name) + return _impl_.name_.Release(); +} +inline void GetPropertiesRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.GetPropertiesRequest.name) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPropertiesRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool GetPropertiesRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPropertiesRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPropertiesRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.GetPropertiesRequest.extra) + return _internal_extra(); +} +inline void GetPropertiesRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.motor.v1.GetPropertiesRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* GetPropertiesRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.motor.v1.GetPropertiesRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.GetPropertiesRequest.extra) + return _msg; +} +inline void GetPropertiesRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.GetPropertiesRequest.extra) +} + +// ------------------------------------------------------------------- + +// GetPropertiesResponse + +// bool position_reporting = 1 [json_name = "positionReporting"]; +inline void GetPropertiesResponse::clear_position_reporting() { + _impl_.position_reporting_ = false; +} +inline bool GetPropertiesResponse::_internal_position_reporting() const { + return _impl_.position_reporting_; +} +inline bool GetPropertiesResponse::position_reporting() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.GetPropertiesResponse.position_reporting) + return _internal_position_reporting(); +} +inline void GetPropertiesResponse::_internal_set_position_reporting(bool value) { + + _impl_.position_reporting_ = value; +} +inline void GetPropertiesResponse::set_position_reporting(bool value) { + _internal_set_position_reporting(value); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.GetPropertiesResponse.position_reporting) +} + +// ------------------------------------------------------------------- + +// Status + +// bool is_powered = 1 [json_name = "isPowered"]; +inline void Status::clear_is_powered() { + _impl_.is_powered_ = false; +} +inline bool Status::_internal_is_powered() const { + return _impl_.is_powered_; +} +inline bool Status::is_powered() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.Status.is_powered) + return _internal_is_powered(); +} +inline void Status::_internal_set_is_powered(bool value) { + + _impl_.is_powered_ = value; +} +inline void Status::set_is_powered(bool value) { + _internal_set_is_powered(value); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.Status.is_powered) +} + +// bool position_reporting = 2 [json_name = "positionReporting"]; +inline void Status::clear_position_reporting() { + _impl_.position_reporting_ = false; +} +inline bool Status::_internal_position_reporting() const { + return _impl_.position_reporting_; +} +inline bool Status::position_reporting() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.Status.position_reporting) + return _internal_position_reporting(); +} +inline void Status::_internal_set_position_reporting(bool value) { + + _impl_.position_reporting_ = value; +} +inline void Status::set_position_reporting(bool value) { + _internal_set_position_reporting(value); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.Status.position_reporting) +} + +// double position = 3 [json_name = "position"]; +inline void Status::clear_position() { + _impl_.position_ = 0; +} +inline double Status::_internal_position() const { + return _impl_.position_; +} +inline double Status::position() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.Status.position) + return _internal_position(); +} +inline void Status::_internal_set_position(double value) { + + _impl_.position_ = value; +} +inline void Status::set_position(double value) { + _internal_set_position(value); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.Status.position) +} + +// bool is_moving = 4 [json_name = "isMoving"]; +inline void Status::clear_is_moving() { + _impl_.is_moving_ = false; +} +inline bool Status::_internal_is_moving() const { + return _impl_.is_moving_; +} +inline bool Status::is_moving() const { + // @@protoc_insertion_point(field_get:viam.component.motor.v1.Status.is_moving) + return _internal_is_moving(); +} +inline void Status::_internal_set_is_moving(bool value) { + + _impl_.is_moving_ = value; +} +inline void Status::set_is_moving(bool value) { + _internal_set_is_moving(value); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.Status.is_moving) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace motor +} // namespace component +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fmotor_2fv1_2fmotor_2eproto diff --git a/src/gen/component/movementsensor/v1/movementsensor.grpc.pb.cc b/src/gen/component/movementsensor/v1/movementsensor.grpc.pb.cc new file mode 100644 index 000000000..9fd9d5ad0 --- /dev/null +++ b/src/gen/component/movementsensor/v1/movementsensor.grpc.pb.cc @@ -0,0 +1,344 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/movementsensor/v1/movementsensor.proto + +#include "component/movementsensor/v1/movementsensor.pb.h" +#include "component/movementsensor/v1/movementsensor.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace component { +namespace movementsensor { +namespace v1 { + +static const char* MovementSensorService_method_names[] = { + "/viam.component.movementsensor.v1.MovementSensorService/GetLinearVelocity", + "/viam.component.movementsensor.v1.MovementSensorService/GetAngularVelocity", + "/viam.component.movementsensor.v1.MovementSensorService/GetCompassHeading", + "/viam.component.movementsensor.v1.MovementSensorService/GetOrientation", + "/viam.component.movementsensor.v1.MovementSensorService/GetPosition", + "/viam.component.movementsensor.v1.MovementSensorService/GetProperties", + "/viam.component.movementsensor.v1.MovementSensorService/GetAccuracy", +}; + +std::unique_ptr< MovementSensorService::Stub> MovementSensorService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< MovementSensorService::Stub> stub(new MovementSensorService::Stub(channel, options)); + return stub; +} + +MovementSensorService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_GetLinearVelocity_(MovementSensorService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetAngularVelocity_(MovementSensorService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetCompassHeading_(MovementSensorService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetOrientation_(MovementSensorService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetPosition_(MovementSensorService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetProperties_(MovementSensorService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetAccuracy_(MovementSensorService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status MovementSensorService::Stub::GetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::viam::component::movementsensor::v1::GetLinearVelocityResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetLinearVelocity_, context, request, response); +} + +void MovementSensorService::Stub::async::GetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::viam::component::movementsensor::v1::GetLinearVelocityResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetLinearVelocity_, context, request, response, std::move(f)); +} + +void MovementSensorService::Stub::async::GetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetLinearVelocity_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>* MovementSensorService::Stub::PrepareAsyncGetLinearVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::movementsensor::v1::GetLinearVelocityResponse, ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetLinearVelocity_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>* MovementSensorService::Stub::AsyncGetLinearVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetLinearVelocityRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status MovementSensorService::Stub::GetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest& request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::viam::component::movementsensor::v1::GetAngularVelocityResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetAngularVelocity_, context, request, response); +} + +void MovementSensorService::Stub::async::GetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::viam::component::movementsensor::v1::GetAngularVelocityResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetAngularVelocity_, context, request, response, std::move(f)); +} + +void MovementSensorService::Stub::async::GetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetAngularVelocity_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>* MovementSensorService::Stub::PrepareAsyncGetAngularVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::movementsensor::v1::GetAngularVelocityResponse, ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetAngularVelocity_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>* MovementSensorService::Stub::AsyncGetAngularVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetAngularVelocityRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status MovementSensorService::Stub::GetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest& request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::viam::component::movementsensor::v1::GetCompassHeadingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetCompassHeading_, context, request, response); +} + +void MovementSensorService::Stub::async::GetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::viam::component::movementsensor::v1::GetCompassHeadingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetCompassHeading_, context, request, response, std::move(f)); +} + +void MovementSensorService::Stub::async::GetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetCompassHeading_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetCompassHeadingResponse>* MovementSensorService::Stub::PrepareAsyncGetCompassHeadingRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::movementsensor::v1::GetCompassHeadingResponse, ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetCompassHeading_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetCompassHeadingResponse>* MovementSensorService::Stub::AsyncGetCompassHeadingRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetCompassHeadingRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status MovementSensorService::Stub::GetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest& request, ::viam::component::movementsensor::v1::GetOrientationResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::movementsensor::v1::GetOrientationRequest, ::viam::component::movementsensor::v1::GetOrientationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetOrientation_, context, request, response); +} + +void MovementSensorService::Stub::async::GetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::movementsensor::v1::GetOrientationRequest, ::viam::component::movementsensor::v1::GetOrientationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetOrientation_, context, request, response, std::move(f)); +} + +void MovementSensorService::Stub::async::GetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetOrientation_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetOrientationResponse>* MovementSensorService::Stub::PrepareAsyncGetOrientationRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::movementsensor::v1::GetOrientationResponse, ::viam::component::movementsensor::v1::GetOrientationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetOrientation_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetOrientationResponse>* MovementSensorService::Stub::AsyncGetOrientationRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetOrientationRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status MovementSensorService::Stub::GetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest& request, ::viam::component::movementsensor::v1::GetPositionResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::movementsensor::v1::GetPositionRequest, ::viam::component::movementsensor::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetPosition_, context, request, response); +} + +void MovementSensorService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::movementsensor::v1::GetPositionRequest, ::viam::component::movementsensor::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); +} + +void MovementSensorService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPositionResponse>* MovementSensorService::Stub::PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::movementsensor::v1::GetPositionResponse, ::viam::component::movementsensor::v1::GetPositionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetPosition_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPositionResponse>* MovementSensorService::Stub::AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetPositionRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status MovementSensorService::Stub::GetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest& request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::movementsensor::v1::GetPropertiesRequest, ::viam::component::movementsensor::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetProperties_, context, request, response); +} + +void MovementSensorService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::movementsensor::v1::GetPropertiesRequest, ::viam::component::movementsensor::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); +} + +void MovementSensorService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPropertiesResponse>* MovementSensorService::Stub::PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::movementsensor::v1::GetPropertiesResponse, ::viam::component::movementsensor::v1::GetPropertiesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetProperties_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPropertiesResponse>* MovementSensorService::Stub::AsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetPropertiesRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status MovementSensorService::Stub::GetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest& request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::movementsensor::v1::GetAccuracyRequest, ::viam::component::movementsensor::v1::GetAccuracyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetAccuracy_, context, request, response); +} + +void MovementSensorService::Stub::async::GetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::movementsensor::v1::GetAccuracyRequest, ::viam::component::movementsensor::v1::GetAccuracyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetAccuracy_, context, request, response, std::move(f)); +} + +void MovementSensorService::Stub::async::GetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetAccuracy_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAccuracyResponse>* MovementSensorService::Stub::PrepareAsyncGetAccuracyRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::movementsensor::v1::GetAccuracyResponse, ::viam::component::movementsensor::v1::GetAccuracyRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetAccuracy_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAccuracyResponse>* MovementSensorService::Stub::AsyncGetAccuracyRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetAccuracyRaw(context, request, cq); + result->StartCall(); + return result; +} + +MovementSensorService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + MovementSensorService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::viam::component::movementsensor::v1::GetLinearVelocityResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MovementSensorService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* req, + ::viam::component::movementsensor::v1::GetLinearVelocityResponse* resp) { + return service->GetLinearVelocity(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MovementSensorService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::viam::component::movementsensor::v1::GetAngularVelocityResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MovementSensorService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* req, + ::viam::component::movementsensor::v1::GetAngularVelocityResponse* resp) { + return service->GetAngularVelocity(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MovementSensorService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::viam::component::movementsensor::v1::GetCompassHeadingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MovementSensorService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* req, + ::viam::component::movementsensor::v1::GetCompassHeadingResponse* resp) { + return service->GetCompassHeading(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MovementSensorService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetOrientationRequest, ::viam::component::movementsensor::v1::GetOrientationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MovementSensorService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::movementsensor::v1::GetOrientationRequest* req, + ::viam::component::movementsensor::v1::GetOrientationResponse* resp) { + return service->GetOrientation(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MovementSensorService_method_names[4], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetPositionRequest, ::viam::component::movementsensor::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MovementSensorService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::movementsensor::v1::GetPositionRequest* req, + ::viam::component::movementsensor::v1::GetPositionResponse* resp) { + return service->GetPosition(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MovementSensorService_method_names[5], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetPropertiesRequest, ::viam::component::movementsensor::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MovementSensorService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::movementsensor::v1::GetPropertiesRequest* req, + ::viam::component::movementsensor::v1::GetPropertiesResponse* resp) { + return service->GetProperties(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MovementSensorService_method_names[6], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetAccuracyRequest, ::viam::component::movementsensor::v1::GetAccuracyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MovementSensorService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::movementsensor::v1::GetAccuracyRequest* req, + ::viam::component::movementsensor::v1::GetAccuracyResponse* resp) { + return service->GetAccuracy(ctx, req, resp); + }, this))); +} + +MovementSensorService::Service::~Service() { +} + +::grpc::Status MovementSensorService::Service::GetLinearVelocity(::grpc::ServerContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MovementSensorService::Service::GetAngularVelocity(::grpc::ServerContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MovementSensorService::Service::GetCompassHeading(::grpc::ServerContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MovementSensorService::Service::GetOrientation(::grpc::ServerContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MovementSensorService::Service::GetPosition(::grpc::ServerContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest* request, ::viam::component::movementsensor::v1::GetPositionResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MovementSensorService::Service::GetProperties(::grpc::ServerContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MovementSensorService::Service::GetAccuracy(::grpc::ServerContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace component +} // namespace movementsensor +} // namespace v1 + diff --git a/src/gen/component/movementsensor/v1/movementsensor.grpc.pb.h b/src/gen/component/movementsensor/v1/movementsensor.grpc.pb.h new file mode 100644 index 000000000..eaa760169 --- /dev/null +++ b/src/gen/component/movementsensor/v1/movementsensor.grpc.pb.h @@ -0,0 +1,1188 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/movementsensor/v1/movementsensor.proto +#ifndef GRPC_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto__INCLUDED +#define GRPC_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto__INCLUDED + +#include "component/movementsensor/v1/movementsensor.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace component { +namespace movementsensor { +namespace v1 { + +class MovementSensorService final { + public: + static constexpr char const* service_full_name() { + return "viam.component.movementsensor.v1.MovementSensorService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status GetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>> AsyncGetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>>(AsyncGetLinearVelocityRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>> PrepareAsyncGetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>>(PrepareAsyncGetLinearVelocityRaw(context, request, cq)); + } + virtual ::grpc::Status GetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest& request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>> AsyncGetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>>(AsyncGetAngularVelocityRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>> PrepareAsyncGetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>>(PrepareAsyncGetAngularVelocityRaw(context, request, cq)); + } + virtual ::grpc::Status GetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest& request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetCompassHeadingResponse>> AsyncGetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetCompassHeadingResponse>>(AsyncGetCompassHeadingRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetCompassHeadingResponse>> PrepareAsyncGetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetCompassHeadingResponse>>(PrepareAsyncGetCompassHeadingRaw(context, request, cq)); + } + virtual ::grpc::Status GetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest& request, ::viam::component::movementsensor::v1::GetOrientationResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetOrientationResponse>> AsyncGetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetOrientationResponse>>(AsyncGetOrientationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetOrientationResponse>> PrepareAsyncGetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetOrientationResponse>>(PrepareAsyncGetOrientationRaw(context, request, cq)); + } + virtual ::grpc::Status GetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest& request, ::viam::component::movementsensor::v1::GetPositionResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetPositionResponse>> AsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetPositionResponse>>(AsyncGetPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetPositionResponse>> PrepareAsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetPositionResponse>>(PrepareAsyncGetPositionRaw(context, request, cq)); + } + virtual ::grpc::Status GetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest& request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetPropertiesResponse>> AsyncGetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetPropertiesResponse>>(AsyncGetPropertiesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetPropertiesResponse>> PrepareAsyncGetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetPropertiesResponse>>(PrepareAsyncGetPropertiesRaw(context, request, cq)); + } + virtual ::grpc::Status GetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest& request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetAccuracyResponse>> AsyncGetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetAccuracyResponse>>(AsyncGetAccuracyRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetAccuracyResponse>> PrepareAsyncGetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetAccuracyResponse>>(PrepareAsyncGetAccuracyRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void GetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, std::function) = 0; + virtual void GetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void GetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, std::function) = 0; + virtual void GetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void GetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, std::function) = 0; + virtual void GetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void GetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, std::function) = 0; + virtual void GetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, std::function) = 0; + virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void GetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, std::function) = 0; + virtual void GetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void GetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, std::function) = 0; + virtual void GetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* 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::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>* AsyncGetLinearVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>* PrepareAsyncGetLinearVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>* AsyncGetAngularVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>* PrepareAsyncGetAngularVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetCompassHeadingResponse>* AsyncGetCompassHeadingRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetCompassHeadingResponse>* PrepareAsyncGetCompassHeadingRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetOrientationResponse>* AsyncGetOrientationRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetOrientationResponse>* PrepareAsyncGetOrientationRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetPositionResponse>* AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetPositionResponse>* PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetPropertiesResponse>* AsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetPropertiesResponse>* PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetAccuracyResponse>* AsyncGetAccuracyRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetAccuracyResponse>* PrepareAsyncGetAccuracyRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest& 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()); + ::grpc::Status GetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>> AsyncGetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>>(AsyncGetLinearVelocityRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>> PrepareAsyncGetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>>(PrepareAsyncGetLinearVelocityRaw(context, request, cq)); + } + ::grpc::Status GetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest& request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>> AsyncGetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>>(AsyncGetAngularVelocityRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>> PrepareAsyncGetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>>(PrepareAsyncGetAngularVelocityRaw(context, request, cq)); + } + ::grpc::Status GetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest& request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetCompassHeadingResponse>> AsyncGetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetCompassHeadingResponse>>(AsyncGetCompassHeadingRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetCompassHeadingResponse>> PrepareAsyncGetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetCompassHeadingResponse>>(PrepareAsyncGetCompassHeadingRaw(context, request, cq)); + } + ::grpc::Status GetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest& request, ::viam::component::movementsensor::v1::GetOrientationResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetOrientationResponse>> AsyncGetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetOrientationResponse>>(AsyncGetOrientationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetOrientationResponse>> PrepareAsyncGetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetOrientationResponse>>(PrepareAsyncGetOrientationRaw(context, request, cq)); + } + ::grpc::Status GetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest& request, ::viam::component::movementsensor::v1::GetPositionResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPositionResponse>> AsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPositionResponse>>(AsyncGetPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPositionResponse>> PrepareAsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPositionResponse>>(PrepareAsyncGetPositionRaw(context, request, cq)); + } + ::grpc::Status GetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest& request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPropertiesResponse>> AsyncGetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPropertiesResponse>>(AsyncGetPropertiesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPropertiesResponse>> PrepareAsyncGetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPropertiesResponse>>(PrepareAsyncGetPropertiesRaw(context, request, cq)); + } + ::grpc::Status GetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest& request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAccuracyResponse>> AsyncGetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAccuracyResponse>>(AsyncGetAccuracyRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAccuracyResponse>> PrepareAsyncGetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAccuracyResponse>>(PrepareAsyncGetAccuracyRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void GetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, std::function) override; + void GetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, std::function) override; + void GetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, std::function) override; + void GetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, std::function) override; + void GetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, std::function) override; + void GetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, std::function) override; + void GetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, std::function) override; + void GetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* 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::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>* AsyncGetLinearVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>* PrepareAsyncGetLinearVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>* AsyncGetAngularVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>* PrepareAsyncGetAngularVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetCompassHeadingResponse>* AsyncGetCompassHeadingRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetCompassHeadingResponse>* PrepareAsyncGetCompassHeadingRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetOrientationResponse>* AsyncGetOrientationRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetOrientationResponse>* PrepareAsyncGetOrientationRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPositionResponse>* AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPositionResponse>* PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPropertiesResponse>* AsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPropertiesResponse>* PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAccuracyResponse>* AsyncGetAccuracyRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAccuracyResponse>* PrepareAsyncGetAccuracyRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_GetLinearVelocity_; + const ::grpc::internal::RpcMethod rpcmethod_GetAngularVelocity_; + const ::grpc::internal::RpcMethod rpcmethod_GetCompassHeading_; + const ::grpc::internal::RpcMethod rpcmethod_GetOrientation_; + const ::grpc::internal::RpcMethod rpcmethod_GetPosition_; + const ::grpc::internal::RpcMethod rpcmethod_GetProperties_; + const ::grpc::internal::RpcMethod rpcmethod_GetAccuracy_; + }; + 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(); + virtual ::grpc::Status GetLinearVelocity(::grpc::ServerContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response); + virtual ::grpc::Status GetAngularVelocity(::grpc::ServerContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response); + virtual ::grpc::Status GetCompassHeading(::grpc::ServerContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response); + virtual ::grpc::Status GetOrientation(::grpc::ServerContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response); + virtual ::grpc::Status GetPosition(::grpc::ServerContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest* request, ::viam::component::movementsensor::v1::GetPositionResponse* response); + virtual ::grpc::Status GetProperties(::grpc::ServerContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response); + virtual ::grpc::Status GetAccuracy(::grpc::ServerContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response); + }; + template + class WithAsyncMethod_GetLinearVelocity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetLinearVelocity() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_GetLinearVelocity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLinearVelocity(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* /*request*/, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetLinearVelocity(::grpc::ServerContext* context, ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetAngularVelocity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetAngularVelocity() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_GetAngularVelocity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetAngularVelocity(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* /*request*/, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetAngularVelocity(::grpc::ServerContext* context, ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>* 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 WithAsyncMethod_GetCompassHeading : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetCompassHeading() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_GetCompassHeading() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCompassHeading(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* /*request*/, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetCompassHeading(::grpc::ServerContext* context, ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::movementsensor::v1::GetCompassHeadingResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetOrientation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetOrientation() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_GetOrientation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOrientation(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetOrientationRequest* /*request*/, ::viam::component::movementsensor::v1::GetOrientationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetOrientation(::grpc::ServerContext* context, ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::movementsensor::v1::GetOrientationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetPosition() { + ::grpc::Service::MarkMethodAsync(4); + } + ~WithAsyncMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetPositionRequest* /*request*/, ::viam::component::movementsensor::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetPosition(::grpc::ServerContext* context, ::viam::component::movementsensor::v1::GetPositionRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::movementsensor::v1::GetPositionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetProperties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetProperties() { + ::grpc::Service::MarkMethodAsync(5); + } + ~WithAsyncMethod_GetProperties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProperties(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetPropertiesRequest* /*request*/, ::viam::component::movementsensor::v1::GetPropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetProperties(::grpc::ServerContext* context, ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::movementsensor::v1::GetPropertiesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetAccuracy : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetAccuracy() { + ::grpc::Service::MarkMethodAsync(6); + } + ~WithAsyncMethod_GetAccuracy() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetAccuracy(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetAccuracyRequest* /*request*/, ::viam::component::movementsensor::v1::GetAccuracyResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetAccuracy(::grpc::ServerContext* context, ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::movementsensor::v1::GetAccuracyResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetLinearVelocity > > > > > > AsyncService; + template + class WithCallbackMethod_GetLinearVelocity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetLinearVelocity() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::viam::component::movementsensor::v1::GetLinearVelocityResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response) { return this->GetLinearVelocity(context, request, response); }));} + void SetMessageAllocatorFor_GetLinearVelocity( + ::grpc::MessageAllocator< ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::viam::component::movementsensor::v1::GetLinearVelocityResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::viam::component::movementsensor::v1::GetLinearVelocityResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetLinearVelocity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLinearVelocity(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* /*request*/, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetLinearVelocity( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* /*request*/, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetAngularVelocity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetAngularVelocity() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::viam::component::movementsensor::v1::GetAngularVelocityResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response) { return this->GetAngularVelocity(context, request, response); }));} + void SetMessageAllocatorFor_GetAngularVelocity( + ::grpc::MessageAllocator< ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::viam::component::movementsensor::v1::GetAngularVelocityResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::viam::component::movementsensor::v1::GetAngularVelocityResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetAngularVelocity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetAngularVelocity(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* /*request*/, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetAngularVelocity( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* /*request*/, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetCompassHeading : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetCompassHeading() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::viam::component::movementsensor::v1::GetCompassHeadingResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response) { return this->GetCompassHeading(context, request, response); }));} + void SetMessageAllocatorFor_GetCompassHeading( + ::grpc::MessageAllocator< ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::viam::component::movementsensor::v1::GetCompassHeadingResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::viam::component::movementsensor::v1::GetCompassHeadingResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetCompassHeading() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCompassHeading(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* /*request*/, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetCompassHeading( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* /*request*/, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetOrientation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetOrientation() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetOrientationRequest, ::viam::component::movementsensor::v1::GetOrientationResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response) { return this->GetOrientation(context, request, response); }));} + void SetMessageAllocatorFor_GetOrientation( + ::grpc::MessageAllocator< ::viam::component::movementsensor::v1::GetOrientationRequest, ::viam::component::movementsensor::v1::GetOrientationResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetOrientationRequest, ::viam::component::movementsensor::v1::GetOrientationResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetOrientation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOrientation(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetOrientationRequest* /*request*/, ::viam::component::movementsensor::v1::GetOrientationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetOrientation( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetOrientationRequest* /*request*/, ::viam::component::movementsensor::v1::GetOrientationResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetPosition() { + ::grpc::Service::MarkMethodCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetPositionRequest, ::viam::component::movementsensor::v1::GetPositionResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest* request, ::viam::component::movementsensor::v1::GetPositionResponse* response) { return this->GetPosition(context, request, response); }));} + void SetMessageAllocatorFor_GetPosition( + ::grpc::MessageAllocator< ::viam::component::movementsensor::v1::GetPositionRequest, ::viam::component::movementsensor::v1::GetPositionResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetPositionRequest, ::viam::component::movementsensor::v1::GetPositionResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetPositionRequest* /*request*/, ::viam::component::movementsensor::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetPosition( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetPositionRequest* /*request*/, ::viam::component::movementsensor::v1::GetPositionResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetProperties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetProperties() { + ::grpc::Service::MarkMethodCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetPropertiesRequest, ::viam::component::movementsensor::v1::GetPropertiesResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response) { return this->GetProperties(context, request, response); }));} + void SetMessageAllocatorFor_GetProperties( + ::grpc::MessageAllocator< ::viam::component::movementsensor::v1::GetPropertiesRequest, ::viam::component::movementsensor::v1::GetPropertiesResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetPropertiesRequest, ::viam::component::movementsensor::v1::GetPropertiesResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetProperties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProperties(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetPropertiesRequest* /*request*/, ::viam::component::movementsensor::v1::GetPropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetProperties( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetPropertiesRequest* /*request*/, ::viam::component::movementsensor::v1::GetPropertiesResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetAccuracy : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetAccuracy() { + ::grpc::Service::MarkMethodCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetAccuracyRequest, ::viam::component::movementsensor::v1::GetAccuracyResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response) { return this->GetAccuracy(context, request, response); }));} + void SetMessageAllocatorFor_GetAccuracy( + ::grpc::MessageAllocator< ::viam::component::movementsensor::v1::GetAccuracyRequest, ::viam::component::movementsensor::v1::GetAccuracyResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetAccuracyRequest, ::viam::component::movementsensor::v1::GetAccuracyResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetAccuracy() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetAccuracy(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetAccuracyRequest* /*request*/, ::viam::component::movementsensor::v1::GetAccuracyResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetAccuracy( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetAccuracyRequest* /*request*/, ::viam::component::movementsensor::v1::GetAccuracyResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetLinearVelocity > > > > > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_GetLinearVelocity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetLinearVelocity() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_GetLinearVelocity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLinearVelocity(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* /*request*/, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetAngularVelocity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetAngularVelocity() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_GetAngularVelocity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetAngularVelocity(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* /*request*/, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetCompassHeading : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetCompassHeading() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_GetCompassHeading() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCompassHeading(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* /*request*/, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetOrientation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetOrientation() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_GetOrientation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOrientation(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetOrientationRequest* /*request*/, ::viam::component::movementsensor::v1::GetOrientationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetPosition() { + ::grpc::Service::MarkMethodGeneric(4); + } + ~WithGenericMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetPositionRequest* /*request*/, ::viam::component::movementsensor::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetProperties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetProperties() { + ::grpc::Service::MarkMethodGeneric(5); + } + ~WithGenericMethod_GetProperties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProperties(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetPropertiesRequest* /*request*/, ::viam::component::movementsensor::v1::GetPropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetAccuracy : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetAccuracy() { + ::grpc::Service::MarkMethodGeneric(6); + } + ~WithGenericMethod_GetAccuracy() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetAccuracy(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetAccuracyRequest* /*request*/, ::viam::component::movementsensor::v1::GetAccuracyResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_GetLinearVelocity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetLinearVelocity() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_GetLinearVelocity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLinearVelocity(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* /*request*/, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetLinearVelocity(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetAngularVelocity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetAngularVelocity() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_GetAngularVelocity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetAngularVelocity(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* /*request*/, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetAngularVelocity(::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 WithRawMethod_GetCompassHeading : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetCompassHeading() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_GetCompassHeading() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCompassHeading(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* /*request*/, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetCompassHeading(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetOrientation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetOrientation() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_GetOrientation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOrientation(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetOrientationRequest* /*request*/, ::viam::component::movementsensor::v1::GetOrientationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetOrientation(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetPosition() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetPositionRequest* /*request*/, ::viam::component::movementsensor::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetPosition(::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(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetProperties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetProperties() { + ::grpc::Service::MarkMethodRaw(5); + } + ~WithRawMethod_GetProperties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProperties(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetPropertiesRequest* /*request*/, ::viam::component::movementsensor::v1::GetPropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetProperties(::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(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetAccuracy : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetAccuracy() { + ::grpc::Service::MarkMethodRaw(6); + } + ~WithRawMethod_GetAccuracy() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetAccuracy(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetAccuracyRequest* /*request*/, ::viam::component::movementsensor::v1::GetAccuracyResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetAccuracy(::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(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_GetLinearVelocity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetLinearVelocity() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetLinearVelocity(context, request, response); })); + } + ~WithRawCallbackMethod_GetLinearVelocity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLinearVelocity(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* /*request*/, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetLinearVelocity( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetAngularVelocity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetAngularVelocity() { + ::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->GetAngularVelocity(context, request, response); })); + } + ~WithRawCallbackMethod_GetAngularVelocity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetAngularVelocity(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* /*request*/, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetAngularVelocity( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetCompassHeading : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetCompassHeading() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetCompassHeading(context, request, response); })); + } + ~WithRawCallbackMethod_GetCompassHeading() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCompassHeading(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* /*request*/, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetCompassHeading( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetOrientation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetOrientation() { + ::grpc::Service::MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetOrientation(context, request, response); })); + } + ~WithRawCallbackMethod_GetOrientation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOrientation(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetOrientationRequest* /*request*/, ::viam::component::movementsensor::v1::GetOrientationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetOrientation( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetPosition() { + ::grpc::Service::MarkMethodRawCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPosition(context, request, response); })); + } + ~WithRawCallbackMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetPositionRequest* /*request*/, ::viam::component::movementsensor::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetPosition( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetProperties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetProperties() { + ::grpc::Service::MarkMethodRawCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProperties(context, request, response); })); + } + ~WithRawCallbackMethod_GetProperties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProperties(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetPropertiesRequest* /*request*/, ::viam::component::movementsensor::v1::GetPropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetProperties( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetAccuracy : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetAccuracy() { + ::grpc::Service::MarkMethodRawCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetAccuracy(context, request, response); })); + } + ~WithRawCallbackMethod_GetAccuracy() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetAccuracy(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetAccuracyRequest* /*request*/, ::viam::component::movementsensor::v1::GetAccuracyResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetAccuracy( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_GetLinearVelocity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetLinearVelocity() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::viam::component::movementsensor::v1::GetLinearVelocityResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::viam::component::movementsensor::v1::GetLinearVelocityResponse>* streamer) { + return this->StreamedGetLinearVelocity(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetLinearVelocity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetLinearVelocity(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* /*request*/, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetLinearVelocity(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::movementsensor::v1::GetLinearVelocityRequest,::viam::component::movementsensor::v1::GetLinearVelocityResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetAngularVelocity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetAngularVelocity() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::viam::component::movementsensor::v1::GetAngularVelocityResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::viam::component::movementsensor::v1::GetAngularVelocityResponse>* streamer) { + return this->StreamedGetAngularVelocity(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetAngularVelocity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetAngularVelocity(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* /*request*/, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetAngularVelocity(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::movementsensor::v1::GetAngularVelocityRequest,::viam::component::movementsensor::v1::GetAngularVelocityResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetCompassHeading : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetCompassHeading() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::viam::component::movementsensor::v1::GetCompassHeadingResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::viam::component::movementsensor::v1::GetCompassHeadingResponse>* streamer) { + return this->StreamedGetCompassHeading(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetCompassHeading() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetCompassHeading(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* /*request*/, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetCompassHeading(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::movementsensor::v1::GetCompassHeadingRequest,::viam::component::movementsensor::v1::GetCompassHeadingResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetOrientation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetOrientation() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::movementsensor::v1::GetOrientationRequest, ::viam::component::movementsensor::v1::GetOrientationResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::movementsensor::v1::GetOrientationRequest, ::viam::component::movementsensor::v1::GetOrientationResponse>* streamer) { + return this->StreamedGetOrientation(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetOrientation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetOrientation(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetOrientationRequest* /*request*/, ::viam::component::movementsensor::v1::GetOrientationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetOrientation(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::movementsensor::v1::GetOrientationRequest,::viam::component::movementsensor::v1::GetOrientationResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetPosition() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::movementsensor::v1::GetPositionRequest, ::viam::component::movementsensor::v1::GetPositionResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::movementsensor::v1::GetPositionRequest, ::viam::component::movementsensor::v1::GetPositionResponse>* streamer) { + return this->StreamedGetPosition(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetPositionRequest* /*request*/, ::viam::component::movementsensor::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetPosition(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::movementsensor::v1::GetPositionRequest,::viam::component::movementsensor::v1::GetPositionResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetProperties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetProperties() { + ::grpc::Service::MarkMethodStreamed(5, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::movementsensor::v1::GetPropertiesRequest, ::viam::component::movementsensor::v1::GetPropertiesResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::movementsensor::v1::GetPropertiesRequest, ::viam::component::movementsensor::v1::GetPropertiesResponse>* streamer) { + return this->StreamedGetProperties(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetProperties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetProperties(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetPropertiesRequest* /*request*/, ::viam::component::movementsensor::v1::GetPropertiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetProperties(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::movementsensor::v1::GetPropertiesRequest,::viam::component::movementsensor::v1::GetPropertiesResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetAccuracy : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetAccuracy() { + ::grpc::Service::MarkMethodStreamed(6, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::movementsensor::v1::GetAccuracyRequest, ::viam::component::movementsensor::v1::GetAccuracyResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::movementsensor::v1::GetAccuracyRequest, ::viam::component::movementsensor::v1::GetAccuracyResponse>* streamer) { + return this->StreamedGetAccuracy(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetAccuracy() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetAccuracy(::grpc::ServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetAccuracyRequest* /*request*/, ::viam::component::movementsensor::v1::GetAccuracyResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetAccuracy(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::movementsensor::v1::GetAccuracyRequest,::viam::component::movementsensor::v1::GetAccuracyResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetLinearVelocity > > > > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_GetLinearVelocity > > > > > > StreamedService; +}; + +} // namespace v1 +} // namespace movementsensor +} // namespace component +} // namespace viam + + +#endif // GRPC_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto__INCLUDED diff --git a/src/gen/component/movementsensor/v1/movementsensor.pb.cc b/src/gen/component/movementsensor/v1/movementsensor.pb.cc new file mode 100644 index 000000000..d8c7d4bfd --- /dev/null +++ b/src/gen/component/movementsensor/v1/movementsensor.pb.cc @@ -0,0 +1,3515 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/movementsensor/v1/movementsensor.proto + +#include "component/movementsensor/v1/movementsensor.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 component { +namespace movementsensor { +namespace v1 { +PROTOBUF_CONSTEXPR GetLinearVelocityRequest::GetLinearVelocityRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetLinearVelocityRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetLinearVelocityRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetLinearVelocityRequestDefaultTypeInternal() {} + union { + GetLinearVelocityRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLinearVelocityRequestDefaultTypeInternal _GetLinearVelocityRequest_default_instance_; +PROTOBUF_CONSTEXPR GetLinearVelocityResponse::GetLinearVelocityResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.linear_velocity_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetLinearVelocityResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetLinearVelocityResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetLinearVelocityResponseDefaultTypeInternal() {} + union { + GetLinearVelocityResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLinearVelocityResponseDefaultTypeInternal _GetLinearVelocityResponse_default_instance_; +PROTOBUF_CONSTEXPR GetAngularVelocityRequest::GetAngularVelocityRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetAngularVelocityRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetAngularVelocityRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetAngularVelocityRequestDefaultTypeInternal() {} + union { + GetAngularVelocityRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAngularVelocityRequestDefaultTypeInternal _GetAngularVelocityRequest_default_instance_; +PROTOBUF_CONSTEXPR GetAngularVelocityResponse::GetAngularVelocityResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.angular_velocity_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetAngularVelocityResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetAngularVelocityResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetAngularVelocityResponseDefaultTypeInternal() {} + union { + GetAngularVelocityResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAngularVelocityResponseDefaultTypeInternal _GetAngularVelocityResponse_default_instance_; +PROTOBUF_CONSTEXPR GetCompassHeadingRequest::GetCompassHeadingRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetCompassHeadingRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetCompassHeadingRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetCompassHeadingRequestDefaultTypeInternal() {} + union { + GetCompassHeadingRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCompassHeadingRequestDefaultTypeInternal _GetCompassHeadingRequest_default_instance_; +PROTOBUF_CONSTEXPR GetCompassHeadingResponse::GetCompassHeadingResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.value_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetCompassHeadingResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetCompassHeadingResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetCompassHeadingResponseDefaultTypeInternal() {} + union { + GetCompassHeadingResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCompassHeadingResponseDefaultTypeInternal _GetCompassHeadingResponse_default_instance_; +PROTOBUF_CONSTEXPR GetOrientationRequest::GetOrientationRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetOrientationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetOrientationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetOrientationRequestDefaultTypeInternal() {} + union { + GetOrientationRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrientationRequestDefaultTypeInternal _GetOrientationRequest_default_instance_; +PROTOBUF_CONSTEXPR GetOrientationResponse::GetOrientationResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.orientation_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetOrientationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetOrientationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetOrientationResponseDefaultTypeInternal() {} + union { + GetOrientationResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrientationResponseDefaultTypeInternal _GetOrientationResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPositionRequest::GetPositionRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPositionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPositionRequestDefaultTypeInternal() {} + union { + GetPositionRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPositionResponse::GetPositionResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.coordinate_)*/nullptr + , /*decltype(_impl_.altitude_mm_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPositionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPositionResponseDefaultTypeInternal() {} + union { + GetPositionResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesRequest::GetPropertiesRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPropertiesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPropertiesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPropertiesRequestDefaultTypeInternal() {} + union { + GetPropertiesRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesResponse::GetPropertiesResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.linear_velocity_supported_)*/false + , /*decltype(_impl_.angular_velocity_supported_)*/false + , /*decltype(_impl_.orientation_supported_)*/false + , /*decltype(_impl_.position_supported_)*/false + , /*decltype(_impl_.compass_heading_supported_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPropertiesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPropertiesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPropertiesResponseDefaultTypeInternal() {} + union { + GetPropertiesResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; +PROTOBUF_CONSTEXPR GetAccuracyRequest::GetAccuracyRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetAccuracyRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetAccuracyRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetAccuracyRequestDefaultTypeInternal() {} + union { + GetAccuracyRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAccuracyRequestDefaultTypeInternal _GetAccuracyRequest_default_instance_; +PROTOBUF_CONSTEXPR GetAccuracyResponse_AccuracyMmEntry_DoNotUse::GetAccuracyResponse_AccuracyMmEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct GetAccuracyResponse_AccuracyMmEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetAccuracyResponse_AccuracyMmEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetAccuracyResponse_AccuracyMmEntry_DoNotUseDefaultTypeInternal() {} + union { + GetAccuracyResponse_AccuracyMmEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAccuracyResponse_AccuracyMmEntry_DoNotUseDefaultTypeInternal _GetAccuracyResponse_AccuracyMmEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR GetAccuracyResponse::GetAccuracyResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.accuracy_mm_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetAccuracyResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetAccuracyResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetAccuracyResponseDefaultTypeInternal() {} + union { + GetAccuracyResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAccuracyResponseDefaultTypeInternal _GetAccuracyResponse_default_instance_; +} // namespace v1 +} // namespace movementsensor +} // namespace component +} // namespace viam +static ::_pb::Metadata file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[15]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto = nullptr; + +const uint32_t TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearVelocityRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearVelocityRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearVelocityResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearVelocityResponse, _impl_.linear_velocity_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAngularVelocityRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAngularVelocityRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAngularVelocityResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAngularVelocityResponse, _impl_.angular_velocity_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetCompassHeadingRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetCompassHeadingRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetCompassHeadingResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetCompassHeadingResponse, _impl_.value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetOrientationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetOrientationRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetOrientationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetOrientationResponse, _impl_.orientation_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPositionRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPositionResponse, _impl_.coordinate_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPositionResponse, _impl_.altitude_mm_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesResponse, _impl_.linear_velocity_supported_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesResponse, _impl_.angular_velocity_supported_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesResponse, _impl_.orientation_supported_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesResponse, _impl_.position_supported_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesResponse, _impl_.compass_heading_supported_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyMmEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyMmEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyMmEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyMmEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse, _impl_.accuracy_mm_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::movementsensor::v1::GetLinearVelocityRequest)}, + { 7, -1, -1, sizeof(::viam::component::movementsensor::v1::GetLinearVelocityResponse)}, + { 14, -1, -1, sizeof(::viam::component::movementsensor::v1::GetAngularVelocityRequest)}, + { 21, -1, -1, sizeof(::viam::component::movementsensor::v1::GetAngularVelocityResponse)}, + { 28, -1, -1, sizeof(::viam::component::movementsensor::v1::GetCompassHeadingRequest)}, + { 35, -1, -1, sizeof(::viam::component::movementsensor::v1::GetCompassHeadingResponse)}, + { 42, -1, -1, sizeof(::viam::component::movementsensor::v1::GetOrientationRequest)}, + { 49, -1, -1, sizeof(::viam::component::movementsensor::v1::GetOrientationResponse)}, + { 56, -1, -1, sizeof(::viam::component::movementsensor::v1::GetPositionRequest)}, + { 63, -1, -1, sizeof(::viam::component::movementsensor::v1::GetPositionResponse)}, + { 71, -1, -1, sizeof(::viam::component::movementsensor::v1::GetPropertiesRequest)}, + { 78, -1, -1, sizeof(::viam::component::movementsensor::v1::GetPropertiesResponse)}, + { 89, -1, -1, sizeof(::viam::component::movementsensor::v1::GetAccuracyRequest)}, + { 96, 104, -1, sizeof(::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyMmEntry_DoNotUse)}, + { 106, -1, -1, sizeof(::viam::component::movementsensor::v1::GetAccuracyResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::component::movementsensor::v1::_GetLinearVelocityRequest_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetLinearVelocityResponse_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetAngularVelocityRequest_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetAngularVelocityResponse_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetCompassHeadingRequest_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetCompassHeadingResponse_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetOrientationRequest_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetOrientationResponse_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetPositionRequest_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetPositionResponse_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetPropertiesRequest_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetPropertiesResponse_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetAccuracyRequest_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetAccuracyResponse_AccuracyMmEntry_DoNotUse_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetAccuracyResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n0component/movementsensor/v1/movementse" + "nsor.proto\022 viam.component.movementsenso" + "r.v1\032\026common/v1/common.proto\032\034google/api" + "/annotations.proto\".\n\030GetLinearVelocityR" + "equest\022\022\n\004name\030\001 \001(\tR\004name\"]\n\031GetLinearV" + "elocityResponse\022@\n\017linear_velocity\030\001 \001(\013" + "2\027.viam.common.v1.Vector3R\016linearVelocit" + "y\"/\n\031GetAngularVelocityRequest\022\022\n\004name\030\001" + " \001(\tR\004name\"`\n\032GetAngularVelocityResponse" + "\022B\n\020angular_velocity\030\001 \001(\0132\027.viam.common" + ".v1.Vector3R\017angularVelocity\".\n\030GetCompa" + "ssHeadingRequest\022\022\n\004name\030\001 \001(\tR\004name\"1\n\031" + "GetCompassHeadingResponse\022\024\n\005value\030\001 \001(\001" + "R\005value\"+\n\025GetOrientationRequest\022\022\n\004name" + "\030\001 \001(\tR\004name\"W\n\026GetOrientationResponse\022=" + "\n\013orientation\030\001 \001(\0132\033.viam.common.v1.Ori" + "entationR\013orientation\"(\n\022GetPositionRequ" + "est\022\022\n\004name\030\001 \001(\tR\004name\"p\n\023GetPositionRe" + "sponse\0228\n\ncoordinate\030\001 \001(\0132\030.viam.common" + ".v1.GeoPointR\ncoordinate\022\037\n\013altitude_mm\030" + "\002 \001(\002R\naltitudeMm\"*\n\024GetPropertiesReques" + "t\022\022\n\004name\030\001 \001(\tR\004name\"\261\002\n\025GetPropertiesR" + "esponse\022:\n\031linear_velocity_supported\030\001 \001" + "(\010R\027linearVelocitySupported\022<\n\032angular_v" + "elocity_supported\030\002 \001(\010R\030angularVelocity" + "Supported\0223\n\025orientation_supported\030\003 \001(\010" + "R\024orientationSupported\022-\n\022position_suppo" + "rted\030\004 \001(\010R\021positionSupported\022:\n\031compass" + "_heading_supported\030\005 \001(\010R\027compassHeading" + "Supported\"(\n\022GetAccuracyRequest\022\022\n\004name\030" + "\001 \001(\tR\004name\"\274\001\n\023GetAccuracyResponse\022f\n\013a" + "ccuracy_mm\030\001 \003(\0132E.viam.component.moveme" + "ntsensor.v1.GetAccuracyResponse.Accuracy" + "MmEntryR\naccuracyMm\032=\n\017AccuracyMmEntry\022\020" + "\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\002R\005value:\002" + "8\0012\236\013\n\025MovementSensorService\022\322\001\n\021GetLine" + "arVelocity\022:.viam.component.movementsens" + "or.v1.GetLinearVelocityRequest\032;.viam.co" + "mponent.movementsensor.v1.GetLinearVeloc" + "ityResponse\"D\202\323\344\223\002>\022\022(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetLinearVelocityRequest) +} + +inline void GetLinearVelocityRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetLinearVelocityRequest::~GetLinearVelocityRequest() { + // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetLinearVelocityRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetLinearVelocityRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void GetLinearVelocityRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetLinearVelocityRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetLinearVelocityRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetLinearVelocityRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.movementsensor.v1.GetLinearVelocityRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetLinearVelocityRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetLinearVelocityRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.movementsensor.v1.GetLinearVelocityRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.movementsensor.v1.GetLinearVelocityRequest) + return target; +} + +size_t GetLinearVelocityRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetLinearVelocityRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetLinearVelocityRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetLinearVelocityRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetLinearVelocityRequest::GetClassData() const { return &_class_data_; } + + +void GetLinearVelocityRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetLinearVelocityRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetLinearVelocityRequest::CopyFrom(const GetLinearVelocityRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.movementsensor.v1.GetLinearVelocityRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetLinearVelocityRequest::IsInitialized() const { + return true; +} + +void GetLinearVelocityRequest::InternalSwap(GetLinearVelocityRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetLinearVelocityRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, + file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[0]); +} + +// =================================================================== + +class GetLinearVelocityResponse::_Internal { + public: + static const ::viam::common::v1::Vector3& linear_velocity(const GetLinearVelocityResponse* msg); +}; + +const ::viam::common::v1::Vector3& +GetLinearVelocityResponse::_Internal::linear_velocity(const GetLinearVelocityResponse* msg) { + return *msg->_impl_.linear_velocity_; +} +void GetLinearVelocityResponse::clear_linear_velocity() { + if (GetArenaForAllocation() == nullptr && _impl_.linear_velocity_ != nullptr) { + delete _impl_.linear_velocity_; + } + _impl_.linear_velocity_ = nullptr; +} +GetLinearVelocityResponse::GetLinearVelocityResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.movementsensor.v1.GetLinearVelocityResponse) +} +GetLinearVelocityResponse::GetLinearVelocityResponse(const GetLinearVelocityResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetLinearVelocityResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.linear_velocity_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_linear_velocity()) { + _this->_impl_.linear_velocity_ = new ::viam::common::v1::Vector3(*from._impl_.linear_velocity_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetLinearVelocityResponse) +} + +inline void GetLinearVelocityResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.linear_velocity_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetLinearVelocityResponse::~GetLinearVelocityResponse() { + // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetLinearVelocityResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetLinearVelocityResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.linear_velocity_; +} + +void GetLinearVelocityResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetLinearVelocityResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetLinearVelocityResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.linear_velocity_ != nullptr) { + delete _impl_.linear_velocity_; + } + _impl_.linear_velocity_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetLinearVelocityResponse::_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) { + // .viam.common.v1.Vector3 linear_velocity = 1 [json_name = "linearVelocity"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_linear_velocity(), 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* GetLinearVelocityResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetLinearVelocityResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.common.v1.Vector3 linear_velocity = 1 [json_name = "linearVelocity"]; + if (this->_internal_has_linear_velocity()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::linear_velocity(this), + _Internal::linear_velocity(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.movementsensor.v1.GetLinearVelocityResponse) + return target; +} + +size_t GetLinearVelocityResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetLinearVelocityResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.common.v1.Vector3 linear_velocity = 1 [json_name = "linearVelocity"]; + if (this->_internal_has_linear_velocity()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.linear_velocity_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetLinearVelocityResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetLinearVelocityResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetLinearVelocityResponse::GetClassData() const { return &_class_data_; } + + +void GetLinearVelocityResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetLinearVelocityResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_linear_velocity()) { + _this->_internal_mutable_linear_velocity()->::viam::common::v1::Vector3::MergeFrom( + from._internal_linear_velocity()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetLinearVelocityResponse::CopyFrom(const GetLinearVelocityResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.movementsensor.v1.GetLinearVelocityResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetLinearVelocityResponse::IsInitialized() const { + return true; +} + +void GetLinearVelocityResponse::InternalSwap(GetLinearVelocityResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.linear_velocity_, other->_impl_.linear_velocity_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetLinearVelocityResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, + file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[1]); +} + +// =================================================================== + +class GetAngularVelocityRequest::_Internal { + public: +}; + +GetAngularVelocityRequest::GetAngularVelocityRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.movementsensor.v1.GetAngularVelocityRequest) +} +GetAngularVelocityRequest::GetAngularVelocityRequest(const GetAngularVelocityRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetAngularVelocityRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetAngularVelocityRequest) +} + +inline void GetAngularVelocityRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetAngularVelocityRequest::~GetAngularVelocityRequest() { + // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetAngularVelocityRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetAngularVelocityRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void GetAngularVelocityRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetAngularVelocityRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetAngularVelocityRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetAngularVelocityRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.movementsensor.v1.GetAngularVelocityRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetAngularVelocityRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetAngularVelocityRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.movementsensor.v1.GetAngularVelocityRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.movementsensor.v1.GetAngularVelocityRequest) + return target; +} + +size_t GetAngularVelocityRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetAngularVelocityRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetAngularVelocityRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetAngularVelocityRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetAngularVelocityRequest::GetClassData() const { return &_class_data_; } + + +void GetAngularVelocityRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetAngularVelocityRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetAngularVelocityRequest::CopyFrom(const GetAngularVelocityRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.movementsensor.v1.GetAngularVelocityRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetAngularVelocityRequest::IsInitialized() const { + return true; +} + +void GetAngularVelocityRequest::InternalSwap(GetAngularVelocityRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetAngularVelocityRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, + file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[2]); +} + +// =================================================================== + +class GetAngularVelocityResponse::_Internal { + public: + static const ::viam::common::v1::Vector3& angular_velocity(const GetAngularVelocityResponse* msg); +}; + +const ::viam::common::v1::Vector3& +GetAngularVelocityResponse::_Internal::angular_velocity(const GetAngularVelocityResponse* msg) { + return *msg->_impl_.angular_velocity_; +} +void GetAngularVelocityResponse::clear_angular_velocity() { + if (GetArenaForAllocation() == nullptr && _impl_.angular_velocity_ != nullptr) { + delete _impl_.angular_velocity_; + } + _impl_.angular_velocity_ = nullptr; +} +GetAngularVelocityResponse::GetAngularVelocityResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.movementsensor.v1.GetAngularVelocityResponse) +} +GetAngularVelocityResponse::GetAngularVelocityResponse(const GetAngularVelocityResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetAngularVelocityResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.angular_velocity_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_angular_velocity()) { + _this->_impl_.angular_velocity_ = new ::viam::common::v1::Vector3(*from._impl_.angular_velocity_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetAngularVelocityResponse) +} + +inline void GetAngularVelocityResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.angular_velocity_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetAngularVelocityResponse::~GetAngularVelocityResponse() { + // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetAngularVelocityResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetAngularVelocityResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.angular_velocity_; +} + +void GetAngularVelocityResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetAngularVelocityResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetAngularVelocityResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.angular_velocity_ != nullptr) { + delete _impl_.angular_velocity_; + } + _impl_.angular_velocity_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetAngularVelocityResponse::_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) { + // .viam.common.v1.Vector3 angular_velocity = 1 [json_name = "angularVelocity"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_angular_velocity(), 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* GetAngularVelocityResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetAngularVelocityResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.common.v1.Vector3 angular_velocity = 1 [json_name = "angularVelocity"]; + if (this->_internal_has_angular_velocity()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::angular_velocity(this), + _Internal::angular_velocity(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.movementsensor.v1.GetAngularVelocityResponse) + return target; +} + +size_t GetAngularVelocityResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetAngularVelocityResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.common.v1.Vector3 angular_velocity = 1 [json_name = "angularVelocity"]; + if (this->_internal_has_angular_velocity()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.angular_velocity_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetAngularVelocityResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetAngularVelocityResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetAngularVelocityResponse::GetClassData() const { return &_class_data_; } + + +void GetAngularVelocityResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetAngularVelocityResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_angular_velocity()) { + _this->_internal_mutable_angular_velocity()->::viam::common::v1::Vector3::MergeFrom( + from._internal_angular_velocity()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetAngularVelocityResponse::CopyFrom(const GetAngularVelocityResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.movementsensor.v1.GetAngularVelocityResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetAngularVelocityResponse::IsInitialized() const { + return true; +} + +void GetAngularVelocityResponse::InternalSwap(GetAngularVelocityResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.angular_velocity_, other->_impl_.angular_velocity_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetAngularVelocityResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, + file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[3]); +} + +// =================================================================== + +class GetCompassHeadingRequest::_Internal { + public: +}; + +GetCompassHeadingRequest::GetCompassHeadingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.movementsensor.v1.GetCompassHeadingRequest) +} +GetCompassHeadingRequest::GetCompassHeadingRequest(const GetCompassHeadingRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetCompassHeadingRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetCompassHeadingRequest) +} + +inline void GetCompassHeadingRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetCompassHeadingRequest::~GetCompassHeadingRequest() { + // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetCompassHeadingRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetCompassHeadingRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void GetCompassHeadingRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetCompassHeadingRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetCompassHeadingRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetCompassHeadingRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.movementsensor.v1.GetCompassHeadingRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetCompassHeadingRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetCompassHeadingRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.movementsensor.v1.GetCompassHeadingRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.movementsensor.v1.GetCompassHeadingRequest) + return target; +} + +size_t GetCompassHeadingRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetCompassHeadingRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetCompassHeadingRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetCompassHeadingRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetCompassHeadingRequest::GetClassData() const { return &_class_data_; } + + +void GetCompassHeadingRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetCompassHeadingRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetCompassHeadingRequest::CopyFrom(const GetCompassHeadingRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.movementsensor.v1.GetCompassHeadingRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetCompassHeadingRequest::IsInitialized() const { + return true; +} + +void GetCompassHeadingRequest::InternalSwap(GetCompassHeadingRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetCompassHeadingRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, + file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[4]); +} + +// =================================================================== + +class GetCompassHeadingResponse::_Internal { + public: +}; + +GetCompassHeadingResponse::GetCompassHeadingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.movementsensor.v1.GetCompassHeadingResponse) +} +GetCompassHeadingResponse::GetCompassHeadingResponse(const GetCompassHeadingResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetCompassHeadingResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.value_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.value_ = from._impl_.value_; + // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetCompassHeadingResponse) +} + +inline void GetCompassHeadingResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.value_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetCompassHeadingResponse::~GetCompassHeadingResponse() { + // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetCompassHeadingResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetCompassHeadingResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetCompassHeadingResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetCompassHeadingResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetCompassHeadingResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.value_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetCompassHeadingResponse::_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) { + // double value = 1 [json_name = "value"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* GetCompassHeadingResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetCompassHeadingResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // double value = 1 [json_name = "value"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_value = this->_internal_value(); + uint64_t raw_value; + memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); + if (raw_value != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_value(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.movementsensor.v1.GetCompassHeadingResponse) + return target; +} + +size_t GetCompassHeadingResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetCompassHeadingResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // double value = 1 [json_name = "value"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_value = this->_internal_value(); + uint64_t raw_value; + memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); + if (raw_value != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetCompassHeadingResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetCompassHeadingResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetCompassHeadingResponse::GetClassData() const { return &_class_data_; } + + +void GetCompassHeadingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetCompassHeadingResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_value = from._internal_value(); + uint64_t raw_value; + memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); + if (raw_value != 0) { + _this->_internal_set_value(from._internal_value()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetCompassHeadingResponse::CopyFrom(const GetCompassHeadingResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.movementsensor.v1.GetCompassHeadingResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetCompassHeadingResponse::IsInitialized() const { + return true; +} + +void GetCompassHeadingResponse::InternalSwap(GetCompassHeadingResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.value_, other->_impl_.value_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetCompassHeadingResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, + file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[5]); +} + +// =================================================================== + +class GetOrientationRequest::_Internal { + public: +}; + +GetOrientationRequest::GetOrientationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.movementsensor.v1.GetOrientationRequest) +} +GetOrientationRequest::GetOrientationRequest(const GetOrientationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetOrientationRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetOrientationRequest) +} + +inline void GetOrientationRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetOrientationRequest::~GetOrientationRequest() { + // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetOrientationRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetOrientationRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void GetOrientationRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetOrientationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetOrientationRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetOrientationRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.movementsensor.v1.GetOrientationRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetOrientationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetOrientationRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.movementsensor.v1.GetOrientationRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.movementsensor.v1.GetOrientationRequest) + return target; +} + +size_t GetOrientationRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetOrientationRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetOrientationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetOrientationRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetOrientationRequest::GetClassData() const { return &_class_data_; } + + +void GetOrientationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetOrientationRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetOrientationRequest::CopyFrom(const GetOrientationRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.movementsensor.v1.GetOrientationRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetOrientationRequest::IsInitialized() const { + return true; +} + +void GetOrientationRequest::InternalSwap(GetOrientationRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetOrientationRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, + file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[6]); +} + +// =================================================================== + +class GetOrientationResponse::_Internal { + public: + static const ::viam::common::v1::Orientation& orientation(const GetOrientationResponse* msg); +}; + +const ::viam::common::v1::Orientation& +GetOrientationResponse::_Internal::orientation(const GetOrientationResponse* msg) { + return *msg->_impl_.orientation_; +} +void GetOrientationResponse::clear_orientation() { + if (GetArenaForAllocation() == nullptr && _impl_.orientation_ != nullptr) { + delete _impl_.orientation_; + } + _impl_.orientation_ = nullptr; +} +GetOrientationResponse::GetOrientationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.movementsensor.v1.GetOrientationResponse) +} +GetOrientationResponse::GetOrientationResponse(const GetOrientationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetOrientationResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.orientation_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_orientation()) { + _this->_impl_.orientation_ = new ::viam::common::v1::Orientation(*from._impl_.orientation_); + } + // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetOrientationResponse) +} + +inline void GetOrientationResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.orientation_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetOrientationResponse::~GetOrientationResponse() { + // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetOrientationResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetOrientationResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.orientation_; +} + +void GetOrientationResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetOrientationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetOrientationResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.orientation_ != nullptr) { + delete _impl_.orientation_; + } + _impl_.orientation_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetOrientationResponse::_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) { + // .viam.common.v1.Orientation orientation = 1 [json_name = "orientation"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_orientation(), 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* GetOrientationResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetOrientationResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.common.v1.Orientation orientation = 1 [json_name = "orientation"]; + if (this->_internal_has_orientation()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::orientation(this), + _Internal::orientation(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.movementsensor.v1.GetOrientationResponse) + return target; +} + +size_t GetOrientationResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetOrientationResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.common.v1.Orientation orientation = 1 [json_name = "orientation"]; + if (this->_internal_has_orientation()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.orientation_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetOrientationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetOrientationResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetOrientationResponse::GetClassData() const { return &_class_data_; } + + +void GetOrientationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetOrientationResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_orientation()) { + _this->_internal_mutable_orientation()->::viam::common::v1::Orientation::MergeFrom( + from._internal_orientation()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetOrientationResponse::CopyFrom(const GetOrientationResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.movementsensor.v1.GetOrientationResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetOrientationResponse::IsInitialized() const { + return true; +} + +void GetOrientationResponse::InternalSwap(GetOrientationResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.orientation_, other->_impl_.orientation_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetOrientationResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, + file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[7]); +} + +// =================================================================== + +class GetPositionRequest::_Internal { + public: +}; + +GetPositionRequest::GetPositionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.movementsensor.v1.GetPositionRequest) +} +GetPositionRequest::GetPositionRequest(const GetPositionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPositionRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetPositionRequest) +} + +inline void GetPositionRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetPositionRequest::~GetPositionRequest() { + // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetPositionRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPositionRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void GetPositionRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPositionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetPositionRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.movementsensor.v1.GetPositionRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetPositionRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.movementsensor.v1.GetPositionRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.movementsensor.v1.GetPositionRequest) + return target; +} + +size_t GetPositionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetPositionRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPositionRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionRequest::GetClassData() const { return &_class_data_; } + + +void GetPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetPositionRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPositionRequest::CopyFrom(const GetPositionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.movementsensor.v1.GetPositionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPositionRequest::IsInitialized() const { + return true; +} + +void GetPositionRequest::InternalSwap(GetPositionRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, + file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[8]); +} + +// =================================================================== + +class GetPositionResponse::_Internal { + public: + static const ::viam::common::v1::GeoPoint& coordinate(const GetPositionResponse* msg); +}; + +const ::viam::common::v1::GeoPoint& +GetPositionResponse::_Internal::coordinate(const GetPositionResponse* msg) { + return *msg->_impl_.coordinate_; +} +void GetPositionResponse::clear_coordinate() { + if (GetArenaForAllocation() == nullptr && _impl_.coordinate_ != nullptr) { + delete _impl_.coordinate_; + } + _impl_.coordinate_ = nullptr; +} +GetPositionResponse::GetPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.movementsensor.v1.GetPositionResponse) +} +GetPositionResponse::GetPositionResponse(const GetPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPositionResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.coordinate_){nullptr} + , decltype(_impl_.altitude_mm_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_coordinate()) { + _this->_impl_.coordinate_ = new ::viam::common::v1::GeoPoint(*from._impl_.coordinate_); + } + _this->_impl_.altitude_mm_ = from._impl_.altitude_mm_; + // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetPositionResponse) +} + +inline void GetPositionResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.coordinate_){nullptr} + , decltype(_impl_.altitude_mm_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetPositionResponse::~GetPositionResponse() { + // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetPositionResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPositionResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.coordinate_; +} + +void GetPositionResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPositionResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetPositionResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.coordinate_ != nullptr) { + delete _impl_.coordinate_; + } + _impl_.coordinate_ = nullptr; + _impl_.altitude_mm_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionResponse::_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) { + // .viam.common.v1.GeoPoint coordinate = 1 [json_name = "coordinate"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_coordinate(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // float altitude_mm = 2 [json_name = "altitudeMm"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { + _impl_.altitude_mm_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } 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* GetPositionResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetPositionResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.common.v1.GeoPoint coordinate = 1 [json_name = "coordinate"]; + if (this->_internal_has_coordinate()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::coordinate(this), + _Internal::coordinate(this).GetCachedSize(), target, stream); + } + + // float altitude_mm = 2 [json_name = "altitudeMm"]; + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + float tmp_altitude_mm = this->_internal_altitude_mm(); + uint32_t raw_altitude_mm; + memcpy(&raw_altitude_mm, &tmp_altitude_mm, sizeof(tmp_altitude_mm)); + if (raw_altitude_mm != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_altitude_mm(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.movementsensor.v1.GetPositionResponse) + return target; +} + +size_t GetPositionResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetPositionResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.common.v1.GeoPoint coordinate = 1 [json_name = "coordinate"]; + if (this->_internal_has_coordinate()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.coordinate_); + } + + // float altitude_mm = 2 [json_name = "altitudeMm"]; + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + float tmp_altitude_mm = this->_internal_altitude_mm(); + uint32_t raw_altitude_mm; + memcpy(&raw_altitude_mm, &tmp_altitude_mm, sizeof(tmp_altitude_mm)); + if (raw_altitude_mm != 0) { + total_size += 1 + 4; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPositionResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionResponse::GetClassData() const { return &_class_data_; } + + +void GetPositionResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetPositionResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_coordinate()) { + _this->_internal_mutable_coordinate()->::viam::common::v1::GeoPoint::MergeFrom( + from._internal_coordinate()); + } + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + float tmp_altitude_mm = from._internal_altitude_mm(); + uint32_t raw_altitude_mm; + memcpy(&raw_altitude_mm, &tmp_altitude_mm, sizeof(tmp_altitude_mm)); + if (raw_altitude_mm != 0) { + _this->_internal_set_altitude_mm(from._internal_altitude_mm()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPositionResponse::CopyFrom(const GetPositionResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.movementsensor.v1.GetPositionResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPositionResponse::IsInitialized() const { + return true; +} + +void GetPositionResponse::InternalSwap(GetPositionResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.altitude_mm_) + + sizeof(GetPositionResponse::_impl_.altitude_mm_) + - PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.coordinate_)>( + reinterpret_cast(&_impl_.coordinate_), + reinterpret_cast(&other->_impl_.coordinate_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, + file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[9]); +} + +// =================================================================== + +class GetPropertiesRequest::_Internal { + public: +}; + +GetPropertiesRequest::GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.movementsensor.v1.GetPropertiesRequest) +} +GetPropertiesRequest::GetPropertiesRequest(const GetPropertiesRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPropertiesRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetPropertiesRequest) +} + +inline void GetPropertiesRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetPropertiesRequest::~GetPropertiesRequest() { + // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetPropertiesRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPropertiesRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void GetPropertiesRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPropertiesRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetPropertiesRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.movementsensor.v1.GetPropertiesRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetPropertiesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetPropertiesRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.movementsensor.v1.GetPropertiesRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.movementsensor.v1.GetPropertiesRequest) + return target; +} + +size_t GetPropertiesRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetPropertiesRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPropertiesRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesRequest::GetClassData() const { return &_class_data_; } + + +void GetPropertiesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetPropertiesRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPropertiesRequest::CopyFrom(const GetPropertiesRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.movementsensor.v1.GetPropertiesRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPropertiesRequest::IsInitialized() const { + return true; +} + +void GetPropertiesRequest::InternalSwap(GetPropertiesRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, + file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[10]); +} + +// =================================================================== + +class GetPropertiesResponse::_Internal { + public: +}; + +GetPropertiesResponse::GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.movementsensor.v1.GetPropertiesResponse) +} +GetPropertiesResponse::GetPropertiesResponse(const GetPropertiesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPropertiesResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.linear_velocity_supported_){} + , decltype(_impl_.angular_velocity_supported_){} + , decltype(_impl_.orientation_supported_){} + , decltype(_impl_.position_supported_){} + , decltype(_impl_.compass_heading_supported_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.linear_velocity_supported_, &from._impl_.linear_velocity_supported_, + static_cast(reinterpret_cast(&_impl_.compass_heading_supported_) - + reinterpret_cast(&_impl_.linear_velocity_supported_)) + sizeof(_impl_.compass_heading_supported_)); + // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetPropertiesResponse) +} + +inline void GetPropertiesResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.linear_velocity_supported_){false} + , decltype(_impl_.angular_velocity_supported_){false} + , decltype(_impl_.orientation_supported_){false} + , decltype(_impl_.position_supported_){false} + , decltype(_impl_.compass_heading_supported_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetPropertiesResponse::~GetPropertiesResponse() { + // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetPropertiesResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPropertiesResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetPropertiesResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPropertiesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetPropertiesResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.linear_velocity_supported_, 0, static_cast( + reinterpret_cast(&_impl_.compass_heading_supported_) - + reinterpret_cast(&_impl_.linear_velocity_supported_)) + sizeof(_impl_.compass_heading_supported_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // bool linear_velocity_supported = 1 [json_name = "linearVelocitySupported"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.linear_velocity_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool angular_velocity_supported = 2 [json_name = "angularVelocitySupported"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.angular_velocity_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool orientation_supported = 3 [json_name = "orientationSupported"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.orientation_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool position_supported = 4 [json_name = "positionSupported"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.position_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool compass_heading_supported = 5 [json_name = "compassHeadingSupported"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + _impl_.compass_heading_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetPropertiesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetPropertiesResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bool linear_velocity_supported = 1 [json_name = "linearVelocitySupported"]; + if (this->_internal_linear_velocity_supported() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_linear_velocity_supported(), target); + } + + // bool angular_velocity_supported = 2 [json_name = "angularVelocitySupported"]; + if (this->_internal_angular_velocity_supported() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_angular_velocity_supported(), target); + } + + // bool orientation_supported = 3 [json_name = "orientationSupported"]; + if (this->_internal_orientation_supported() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_orientation_supported(), target); + } + + // bool position_supported = 4 [json_name = "positionSupported"]; + if (this->_internal_position_supported() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_position_supported(), target); + } + + // bool compass_heading_supported = 5 [json_name = "compassHeadingSupported"]; + if (this->_internal_compass_heading_supported() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_compass_heading_supported(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.movementsensor.v1.GetPropertiesResponse) + return target; +} + +size_t GetPropertiesResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetPropertiesResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bool linear_velocity_supported = 1 [json_name = "linearVelocitySupported"]; + if (this->_internal_linear_velocity_supported() != 0) { + total_size += 1 + 1; + } + + // bool angular_velocity_supported = 2 [json_name = "angularVelocitySupported"]; + if (this->_internal_angular_velocity_supported() != 0) { + total_size += 1 + 1; + } + + // bool orientation_supported = 3 [json_name = "orientationSupported"]; + if (this->_internal_orientation_supported() != 0) { + total_size += 1 + 1; + } + + // bool position_supported = 4 [json_name = "positionSupported"]; + if (this->_internal_position_supported() != 0) { + total_size += 1 + 1; + } + + // bool compass_heading_supported = 5 [json_name = "compassHeadingSupported"]; + if (this->_internal_compass_heading_supported() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPropertiesResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesResponse::GetClassData() const { return &_class_data_; } + + +void GetPropertiesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetPropertiesResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_linear_velocity_supported() != 0) { + _this->_internal_set_linear_velocity_supported(from._internal_linear_velocity_supported()); + } + if (from._internal_angular_velocity_supported() != 0) { + _this->_internal_set_angular_velocity_supported(from._internal_angular_velocity_supported()); + } + if (from._internal_orientation_supported() != 0) { + _this->_internal_set_orientation_supported(from._internal_orientation_supported()); + } + if (from._internal_position_supported() != 0) { + _this->_internal_set_position_supported(from._internal_position_supported()); + } + if (from._internal_compass_heading_supported() != 0) { + _this->_internal_set_compass_heading_supported(from._internal_compass_heading_supported()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPropertiesResponse::CopyFrom(const GetPropertiesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.movementsensor.v1.GetPropertiesResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPropertiesResponse::IsInitialized() const { + return true; +} + +void GetPropertiesResponse::InternalSwap(GetPropertiesResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.compass_heading_supported_) + + sizeof(GetPropertiesResponse::_impl_.compass_heading_supported_) + - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.linear_velocity_supported_)>( + reinterpret_cast(&_impl_.linear_velocity_supported_), + reinterpret_cast(&other->_impl_.linear_velocity_supported_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, + file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[11]); +} + +// =================================================================== + +class GetAccuracyRequest::_Internal { + public: +}; + +GetAccuracyRequest::GetAccuracyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.movementsensor.v1.GetAccuracyRequest) +} +GetAccuracyRequest::GetAccuracyRequest(const GetAccuracyRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetAccuracyRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetAccuracyRequest) +} + +inline void GetAccuracyRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetAccuracyRequest::~GetAccuracyRequest() { + // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetAccuracyRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetAccuracyRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void GetAccuracyRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetAccuracyRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetAccuracyRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetAccuracyRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.movementsensor.v1.GetAccuracyRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetAccuracyRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetAccuracyRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.movementsensor.v1.GetAccuracyRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.movementsensor.v1.GetAccuracyRequest) + return target; +} + +size_t GetAccuracyRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetAccuracyRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetAccuracyRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetAccuracyRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetAccuracyRequest::GetClassData() const { return &_class_data_; } + + +void GetAccuracyRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetAccuracyRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetAccuracyRequest::CopyFrom(const GetAccuracyRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.movementsensor.v1.GetAccuracyRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetAccuracyRequest::IsInitialized() const { + return true; +} + +void GetAccuracyRequest::InternalSwap(GetAccuracyRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetAccuracyRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, + file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[12]); +} + +// =================================================================== + +GetAccuracyResponse_AccuracyMmEntry_DoNotUse::GetAccuracyResponse_AccuracyMmEntry_DoNotUse() {} +GetAccuracyResponse_AccuracyMmEntry_DoNotUse::GetAccuracyResponse_AccuracyMmEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void GetAccuracyResponse_AccuracyMmEntry_DoNotUse::MergeFrom(const GetAccuracyResponse_AccuracyMmEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata GetAccuracyResponse_AccuracyMmEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, + file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[13]); +} + +// =================================================================== + +class GetAccuracyResponse::_Internal { + public: +}; + +GetAccuracyResponse::GetAccuracyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &GetAccuracyResponse::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:viam.component.movementsensor.v1.GetAccuracyResponse) +} +GetAccuracyResponse::GetAccuracyResponse(const GetAccuracyResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetAccuracyResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + /*decltype(_impl_.accuracy_mm_)*/{} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.accuracy_mm_.MergeFrom(from._impl_.accuracy_mm_); + // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetAccuracyResponse) +} + +inline void GetAccuracyResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + /*decltype(_impl_.accuracy_mm_)*/{::_pbi::ArenaInitialized(), arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetAccuracyResponse::~GetAccuracyResponse() { + // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetAccuracyResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void GetAccuracyResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.accuracy_mm_.Destruct(); + _impl_.accuracy_mm_.~MapField(); +} + +void GetAccuracyResponse::ArenaDtor(void* object) { + GetAccuracyResponse* _this = reinterpret_cast< GetAccuracyResponse* >(object); + _this->_impl_.accuracy_mm_.Destruct(); +} +void GetAccuracyResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetAccuracyResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetAccuracyResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.accuracy_mm_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetAccuracyResponse::_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 accuracy_mm = 1 [json_name = "accuracyMm"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.accuracy_mm_, 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* GetAccuracyResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetAccuracyResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // map accuracy_mm = 1 [json_name = "accuracyMm"]; + if (!this->_internal_accuracy_mm().empty()) { + using MapType = ::_pb::Map; + using WireHelper = GetAccuracyResponse_AccuracyMmEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_accuracy_mm(); + 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.component.movementsensor.v1.GetAccuracyResponse.AccuracyMmEntry.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.component.movementsensor.v1.GetAccuracyResponse) + return target; +} + +size_t GetAccuracyResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetAccuracyResponse) + 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 accuracy_mm = 1 [json_name = "accuracyMm"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_accuracy_mm_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, float >::const_iterator + it = this->_internal_accuracy_mm().begin(); + it != this->_internal_accuracy_mm().end(); ++it) { + total_size += GetAccuracyResponse_AccuracyMmEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetAccuracyResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetAccuracyResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetAccuracyResponse::GetClassData() const { return &_class_data_; } + + +void GetAccuracyResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetAccuracyResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.accuracy_mm_.MergeFrom(from._impl_.accuracy_mm_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetAccuracyResponse::CopyFrom(const GetAccuracyResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.movementsensor.v1.GetAccuracyResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetAccuracyResponse::IsInitialized() const { + return true; +} + +void GetAccuracyResponse::InternalSwap(GetAccuracyResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.accuracy_mm_.InternalSwap(&other->_impl_.accuracy_mm_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetAccuracyResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, + file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[14]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace movementsensor +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetLinearVelocityRequest* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetLinearVelocityRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetLinearVelocityRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetLinearVelocityResponse* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetLinearVelocityResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetLinearVelocityResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetAngularVelocityRequest* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetAngularVelocityRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetAngularVelocityRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetAngularVelocityResponse* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetAngularVelocityResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetAngularVelocityResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetCompassHeadingRequest* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetCompassHeadingRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetCompassHeadingRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetCompassHeadingResponse* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetCompassHeadingResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetCompassHeadingResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetOrientationRequest* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetOrientationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetOrientationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetOrientationResponse* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetOrientationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetOrientationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetPositionRequest* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetPositionResponse* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetPropertiesRequest* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetPropertiesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetPropertiesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetPropertiesResponse* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetPropertiesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetPropertiesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetAccuracyRequest* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetAccuracyRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetAccuracyRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyMmEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyMmEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyMmEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetAccuracyResponse* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetAccuracyResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetAccuracyResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/component/movementsensor/v1/movementsensor.pb.h b/src/gen/component/movementsensor/v1/movementsensor.pb.h new file mode 100644 index 000000000..d889c52d0 --- /dev/null +++ b/src/gen/component/movementsensor/v1/movementsensor.pb.h @@ -0,0 +1,3332 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/movementsensor/v1/movementsensor.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 // IWYU pragma: export +#include +#include +#include +#include "common/v1/common.pb.h" +#include "google/api/annotations.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; +namespace viam { +namespace component { +namespace movementsensor { +namespace v1 { +class GetAccuracyRequest; +struct GetAccuracyRequestDefaultTypeInternal; +extern GetAccuracyRequestDefaultTypeInternal _GetAccuracyRequest_default_instance_; +class GetAccuracyResponse; +struct GetAccuracyResponseDefaultTypeInternal; +extern GetAccuracyResponseDefaultTypeInternal _GetAccuracyResponse_default_instance_; +class GetAccuracyResponse_AccuracyMmEntry_DoNotUse; +struct GetAccuracyResponse_AccuracyMmEntry_DoNotUseDefaultTypeInternal; +extern GetAccuracyResponse_AccuracyMmEntry_DoNotUseDefaultTypeInternal _GetAccuracyResponse_AccuracyMmEntry_DoNotUse_default_instance_; +class GetAngularVelocityRequest; +struct GetAngularVelocityRequestDefaultTypeInternal; +extern GetAngularVelocityRequestDefaultTypeInternal _GetAngularVelocityRequest_default_instance_; +class GetAngularVelocityResponse; +struct GetAngularVelocityResponseDefaultTypeInternal; +extern GetAngularVelocityResponseDefaultTypeInternal _GetAngularVelocityResponse_default_instance_; +class GetCompassHeadingRequest; +struct GetCompassHeadingRequestDefaultTypeInternal; +extern GetCompassHeadingRequestDefaultTypeInternal _GetCompassHeadingRequest_default_instance_; +class GetCompassHeadingResponse; +struct GetCompassHeadingResponseDefaultTypeInternal; +extern GetCompassHeadingResponseDefaultTypeInternal _GetCompassHeadingResponse_default_instance_; +class GetLinearVelocityRequest; +struct GetLinearVelocityRequestDefaultTypeInternal; +extern GetLinearVelocityRequestDefaultTypeInternal _GetLinearVelocityRequest_default_instance_; +class GetLinearVelocityResponse; +struct GetLinearVelocityResponseDefaultTypeInternal; +extern GetLinearVelocityResponseDefaultTypeInternal _GetLinearVelocityResponse_default_instance_; +class GetOrientationRequest; +struct GetOrientationRequestDefaultTypeInternal; +extern GetOrientationRequestDefaultTypeInternal _GetOrientationRequest_default_instance_; +class GetOrientationResponse; +struct GetOrientationResponseDefaultTypeInternal; +extern GetOrientationResponseDefaultTypeInternal _GetOrientationResponse_default_instance_; +class GetPositionRequest; +struct GetPositionRequestDefaultTypeInternal; +extern GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; +class GetPositionResponse; +struct GetPositionResponseDefaultTypeInternal; +extern GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; +class GetPropertiesRequest; +struct GetPropertiesRequestDefaultTypeInternal; +extern GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; +class GetPropertiesResponse; +struct GetPropertiesResponseDefaultTypeInternal; +extern GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; +} // namespace v1 +} // namespace movementsensor +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::movementsensor::v1::GetAccuracyRequest* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetAccuracyRequest>(Arena*); +template<> ::viam::component::movementsensor::v1::GetAccuracyResponse* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetAccuracyResponse>(Arena*); +template<> ::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyMmEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyMmEntry_DoNotUse>(Arena*); +template<> ::viam::component::movementsensor::v1::GetAngularVelocityRequest* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetAngularVelocityRequest>(Arena*); +template<> ::viam::component::movementsensor::v1::GetAngularVelocityResponse* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetAngularVelocityResponse>(Arena*); +template<> ::viam::component::movementsensor::v1::GetCompassHeadingRequest* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetCompassHeadingRequest>(Arena*); +template<> ::viam::component::movementsensor::v1::GetCompassHeadingResponse* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetCompassHeadingResponse>(Arena*); +template<> ::viam::component::movementsensor::v1::GetLinearVelocityRequest* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetLinearVelocityRequest>(Arena*); +template<> ::viam::component::movementsensor::v1::GetLinearVelocityResponse* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetLinearVelocityResponse>(Arena*); +template<> ::viam::component::movementsensor::v1::GetOrientationRequest* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetOrientationRequest>(Arena*); +template<> ::viam::component::movementsensor::v1::GetOrientationResponse* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetOrientationResponse>(Arena*); +template<> ::viam::component::movementsensor::v1::GetPositionRequest* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetPositionRequest>(Arena*); +template<> ::viam::component::movementsensor::v1::GetPositionResponse* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetPositionResponse>(Arena*); +template<> ::viam::component::movementsensor::v1::GetPropertiesRequest* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetPropertiesRequest>(Arena*); +template<> ::viam::component::movementsensor::v1::GetPropertiesResponse* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetPropertiesResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace component { +namespace movementsensor { +namespace v1 { + +// =================================================================== + +class GetLinearVelocityRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetLinearVelocityRequest) */ { + public: + inline GetLinearVelocityRequest() : GetLinearVelocityRequest(nullptr) {} + ~GetLinearVelocityRequest() override; + explicit PROTOBUF_CONSTEXPR GetLinearVelocityRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetLinearVelocityRequest(const GetLinearVelocityRequest& from); + GetLinearVelocityRequest(GetLinearVelocityRequest&& from) noexcept + : GetLinearVelocityRequest() { + *this = ::std::move(from); + } + + inline GetLinearVelocityRequest& operator=(const GetLinearVelocityRequest& from) { + CopyFrom(from); + return *this; + } + inline GetLinearVelocityRequest& operator=(GetLinearVelocityRequest&& 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 GetLinearVelocityRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetLinearVelocityRequest* internal_default_instance() { + return reinterpret_cast( + &_GetLinearVelocityRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(GetLinearVelocityRequest& a, GetLinearVelocityRequest& b) { + a.Swap(&b); + } + inline void Swap(GetLinearVelocityRequest* 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(GetLinearVelocityRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetLinearVelocityRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetLinearVelocityRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetLinearVelocityRequest& from) { + GetLinearVelocityRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetLinearVelocityRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetLinearVelocityRequest"; + } + protected: + explicit GetLinearVelocityRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetLinearVelocityRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; +}; +// ------------------------------------------------------------------- + +class GetLinearVelocityResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetLinearVelocityResponse) */ { + public: + inline GetLinearVelocityResponse() : GetLinearVelocityResponse(nullptr) {} + ~GetLinearVelocityResponse() override; + explicit PROTOBUF_CONSTEXPR GetLinearVelocityResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetLinearVelocityResponse(const GetLinearVelocityResponse& from); + GetLinearVelocityResponse(GetLinearVelocityResponse&& from) noexcept + : GetLinearVelocityResponse() { + *this = ::std::move(from); + } + + inline GetLinearVelocityResponse& operator=(const GetLinearVelocityResponse& from) { + CopyFrom(from); + return *this; + } + inline GetLinearVelocityResponse& operator=(GetLinearVelocityResponse&& 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 GetLinearVelocityResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetLinearVelocityResponse* internal_default_instance() { + return reinterpret_cast( + &_GetLinearVelocityResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(GetLinearVelocityResponse& a, GetLinearVelocityResponse& b) { + a.Swap(&b); + } + inline void Swap(GetLinearVelocityResponse* 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(GetLinearVelocityResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetLinearVelocityResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetLinearVelocityResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetLinearVelocityResponse& from) { + GetLinearVelocityResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetLinearVelocityResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetLinearVelocityResponse"; + } + protected: + explicit GetLinearVelocityResponse(::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 { + kLinearVelocityFieldNumber = 1, + }; + // .viam.common.v1.Vector3 linear_velocity = 1 [json_name = "linearVelocity"]; + bool has_linear_velocity() const; + private: + bool _internal_has_linear_velocity() const; + public: + void clear_linear_velocity(); + const ::viam::common::v1::Vector3& linear_velocity() const; + PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_linear_velocity(); + ::viam::common::v1::Vector3* mutable_linear_velocity(); + void set_allocated_linear_velocity(::viam::common::v1::Vector3* linear_velocity); + private: + const ::viam::common::v1::Vector3& _internal_linear_velocity() const; + ::viam::common::v1::Vector3* _internal_mutable_linear_velocity(); + public: + void unsafe_arena_set_allocated_linear_velocity( + ::viam::common::v1::Vector3* linear_velocity); + ::viam::common::v1::Vector3* unsafe_arena_release_linear_velocity(); + + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetLinearVelocityResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::common::v1::Vector3* linear_velocity_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; +}; +// ------------------------------------------------------------------- + +class GetAngularVelocityRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetAngularVelocityRequest) */ { + public: + inline GetAngularVelocityRequest() : GetAngularVelocityRequest(nullptr) {} + ~GetAngularVelocityRequest() override; + explicit PROTOBUF_CONSTEXPR GetAngularVelocityRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetAngularVelocityRequest(const GetAngularVelocityRequest& from); + GetAngularVelocityRequest(GetAngularVelocityRequest&& from) noexcept + : GetAngularVelocityRequest() { + *this = ::std::move(from); + } + + inline GetAngularVelocityRequest& operator=(const GetAngularVelocityRequest& from) { + CopyFrom(from); + return *this; + } + inline GetAngularVelocityRequest& operator=(GetAngularVelocityRequest&& 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 GetAngularVelocityRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetAngularVelocityRequest* internal_default_instance() { + return reinterpret_cast( + &_GetAngularVelocityRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(GetAngularVelocityRequest& a, GetAngularVelocityRequest& b) { + a.Swap(&b); + } + inline void Swap(GetAngularVelocityRequest* 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(GetAngularVelocityRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetAngularVelocityRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetAngularVelocityRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetAngularVelocityRequest& from) { + GetAngularVelocityRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetAngularVelocityRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetAngularVelocityRequest"; + } + protected: + explicit GetAngularVelocityRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetAngularVelocityRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; +}; +// ------------------------------------------------------------------- + +class GetAngularVelocityResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetAngularVelocityResponse) */ { + public: + inline GetAngularVelocityResponse() : GetAngularVelocityResponse(nullptr) {} + ~GetAngularVelocityResponse() override; + explicit PROTOBUF_CONSTEXPR GetAngularVelocityResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetAngularVelocityResponse(const GetAngularVelocityResponse& from); + GetAngularVelocityResponse(GetAngularVelocityResponse&& from) noexcept + : GetAngularVelocityResponse() { + *this = ::std::move(from); + } + + inline GetAngularVelocityResponse& operator=(const GetAngularVelocityResponse& from) { + CopyFrom(from); + return *this; + } + inline GetAngularVelocityResponse& operator=(GetAngularVelocityResponse&& 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 GetAngularVelocityResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetAngularVelocityResponse* internal_default_instance() { + return reinterpret_cast( + &_GetAngularVelocityResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(GetAngularVelocityResponse& a, GetAngularVelocityResponse& b) { + a.Swap(&b); + } + inline void Swap(GetAngularVelocityResponse* 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(GetAngularVelocityResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetAngularVelocityResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetAngularVelocityResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetAngularVelocityResponse& from) { + GetAngularVelocityResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetAngularVelocityResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetAngularVelocityResponse"; + } + protected: + explicit GetAngularVelocityResponse(::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 { + kAngularVelocityFieldNumber = 1, + }; + // .viam.common.v1.Vector3 angular_velocity = 1 [json_name = "angularVelocity"]; + bool has_angular_velocity() const; + private: + bool _internal_has_angular_velocity() const; + public: + void clear_angular_velocity(); + const ::viam::common::v1::Vector3& angular_velocity() const; + PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_angular_velocity(); + ::viam::common::v1::Vector3* mutable_angular_velocity(); + void set_allocated_angular_velocity(::viam::common::v1::Vector3* angular_velocity); + private: + const ::viam::common::v1::Vector3& _internal_angular_velocity() const; + ::viam::common::v1::Vector3* _internal_mutable_angular_velocity(); + public: + void unsafe_arena_set_allocated_angular_velocity( + ::viam::common::v1::Vector3* angular_velocity); + ::viam::common::v1::Vector3* unsafe_arena_release_angular_velocity(); + + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetAngularVelocityResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::common::v1::Vector3* angular_velocity_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; +}; +// ------------------------------------------------------------------- + +class GetCompassHeadingRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetCompassHeadingRequest) */ { + public: + inline GetCompassHeadingRequest() : GetCompassHeadingRequest(nullptr) {} + ~GetCompassHeadingRequest() override; + explicit PROTOBUF_CONSTEXPR GetCompassHeadingRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetCompassHeadingRequest(const GetCompassHeadingRequest& from); + GetCompassHeadingRequest(GetCompassHeadingRequest&& from) noexcept + : GetCompassHeadingRequest() { + *this = ::std::move(from); + } + + inline GetCompassHeadingRequest& operator=(const GetCompassHeadingRequest& from) { + CopyFrom(from); + return *this; + } + inline GetCompassHeadingRequest& operator=(GetCompassHeadingRequest&& 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 GetCompassHeadingRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetCompassHeadingRequest* internal_default_instance() { + return reinterpret_cast( + &_GetCompassHeadingRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(GetCompassHeadingRequest& a, GetCompassHeadingRequest& b) { + a.Swap(&b); + } + inline void Swap(GetCompassHeadingRequest* 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(GetCompassHeadingRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetCompassHeadingRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetCompassHeadingRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetCompassHeadingRequest& from) { + GetCompassHeadingRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetCompassHeadingRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetCompassHeadingRequest"; + } + protected: + explicit GetCompassHeadingRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetCompassHeadingRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; +}; +// ------------------------------------------------------------------- + +class GetCompassHeadingResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetCompassHeadingResponse) */ { + public: + inline GetCompassHeadingResponse() : GetCompassHeadingResponse(nullptr) {} + ~GetCompassHeadingResponse() override; + explicit PROTOBUF_CONSTEXPR GetCompassHeadingResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetCompassHeadingResponse(const GetCompassHeadingResponse& from); + GetCompassHeadingResponse(GetCompassHeadingResponse&& from) noexcept + : GetCompassHeadingResponse() { + *this = ::std::move(from); + } + + inline GetCompassHeadingResponse& operator=(const GetCompassHeadingResponse& from) { + CopyFrom(from); + return *this; + } + inline GetCompassHeadingResponse& operator=(GetCompassHeadingResponse&& 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 GetCompassHeadingResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetCompassHeadingResponse* internal_default_instance() { + return reinterpret_cast( + &_GetCompassHeadingResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(GetCompassHeadingResponse& a, GetCompassHeadingResponse& b) { + a.Swap(&b); + } + inline void Swap(GetCompassHeadingResponse* 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(GetCompassHeadingResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetCompassHeadingResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetCompassHeadingResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetCompassHeadingResponse& from) { + GetCompassHeadingResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetCompassHeadingResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetCompassHeadingResponse"; + } + protected: + explicit GetCompassHeadingResponse(::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 { + kValueFieldNumber = 1, + }; + // double value = 1 [json_name = "value"]; + void clear_value(); + double value() const; + void set_value(double value); + private: + double _internal_value() const; + void _internal_set_value(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetCompassHeadingResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + double value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; +}; +// ------------------------------------------------------------------- + +class GetOrientationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetOrientationRequest) */ { + public: + inline GetOrientationRequest() : GetOrientationRequest(nullptr) {} + ~GetOrientationRequest() override; + explicit PROTOBUF_CONSTEXPR GetOrientationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetOrientationRequest(const GetOrientationRequest& from); + GetOrientationRequest(GetOrientationRequest&& from) noexcept + : GetOrientationRequest() { + *this = ::std::move(from); + } + + inline GetOrientationRequest& operator=(const GetOrientationRequest& from) { + CopyFrom(from); + return *this; + } + inline GetOrientationRequest& operator=(GetOrientationRequest&& 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 GetOrientationRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetOrientationRequest* internal_default_instance() { + return reinterpret_cast( + &_GetOrientationRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(GetOrientationRequest& a, GetOrientationRequest& b) { + a.Swap(&b); + } + inline void Swap(GetOrientationRequest* 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(GetOrientationRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetOrientationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetOrientationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetOrientationRequest& from) { + GetOrientationRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetOrientationRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetOrientationRequest"; + } + protected: + explicit GetOrientationRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetOrientationRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; +}; +// ------------------------------------------------------------------- + +class GetOrientationResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetOrientationResponse) */ { + public: + inline GetOrientationResponse() : GetOrientationResponse(nullptr) {} + ~GetOrientationResponse() override; + explicit PROTOBUF_CONSTEXPR GetOrientationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetOrientationResponse(const GetOrientationResponse& from); + GetOrientationResponse(GetOrientationResponse&& from) noexcept + : GetOrientationResponse() { + *this = ::std::move(from); + } + + inline GetOrientationResponse& operator=(const GetOrientationResponse& from) { + CopyFrom(from); + return *this; + } + inline GetOrientationResponse& operator=(GetOrientationResponse&& 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 GetOrientationResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetOrientationResponse* internal_default_instance() { + return reinterpret_cast( + &_GetOrientationResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(GetOrientationResponse& a, GetOrientationResponse& b) { + a.Swap(&b); + } + inline void Swap(GetOrientationResponse* 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(GetOrientationResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetOrientationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetOrientationResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetOrientationResponse& from) { + GetOrientationResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetOrientationResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetOrientationResponse"; + } + protected: + explicit GetOrientationResponse(::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 { + kOrientationFieldNumber = 1, + }; + // .viam.common.v1.Orientation orientation = 1 [json_name = "orientation"]; + bool has_orientation() const; + private: + bool _internal_has_orientation() const; + public: + void clear_orientation(); + const ::viam::common::v1::Orientation& orientation() const; + PROTOBUF_NODISCARD ::viam::common::v1::Orientation* release_orientation(); + ::viam::common::v1::Orientation* mutable_orientation(); + void set_allocated_orientation(::viam::common::v1::Orientation* orientation); + private: + const ::viam::common::v1::Orientation& _internal_orientation() const; + ::viam::common::v1::Orientation* _internal_mutable_orientation(); + public: + void unsafe_arena_set_allocated_orientation( + ::viam::common::v1::Orientation* orientation); + ::viam::common::v1::Orientation* unsafe_arena_release_orientation(); + + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetOrientationResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::common::v1::Orientation* orientation_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPositionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetPositionRequest) */ { + public: + inline GetPositionRequest() : GetPositionRequest(nullptr) {} + ~GetPositionRequest() override; + explicit PROTOBUF_CONSTEXPR GetPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPositionRequest(const GetPositionRequest& from); + GetPositionRequest(GetPositionRequest&& from) noexcept + : GetPositionRequest() { + *this = ::std::move(from); + } + + inline GetPositionRequest& operator=(const GetPositionRequest& from) { + CopyFrom(from); + return *this; + } + inline GetPositionRequest& operator=(GetPositionRequest&& 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 GetPositionRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetPositionRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPositionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(GetPositionRequest& a, GetPositionRequest& b) { + a.Swap(&b); + } + inline void Swap(GetPositionRequest* 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(GetPositionRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPositionRequest& from) { + GetPositionRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPositionRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetPositionRequest"; + } + protected: + explicit GetPositionRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetPositionRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPositionResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetPositionResponse) */ { + public: + inline GetPositionResponse() : GetPositionResponse(nullptr) {} + ~GetPositionResponse() override; + explicit PROTOBUF_CONSTEXPR GetPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPositionResponse(const GetPositionResponse& from); + GetPositionResponse(GetPositionResponse&& from) noexcept + : GetPositionResponse() { + *this = ::std::move(from); + } + + inline GetPositionResponse& operator=(const GetPositionResponse& from) { + CopyFrom(from); + return *this; + } + inline GetPositionResponse& operator=(GetPositionResponse&& 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 GetPositionResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetPositionResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPositionResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(GetPositionResponse& a, GetPositionResponse& b) { + a.Swap(&b); + } + inline void Swap(GetPositionResponse* 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(GetPositionResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPositionResponse& from) { + GetPositionResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPositionResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetPositionResponse"; + } + protected: + explicit GetPositionResponse(::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 { + kCoordinateFieldNumber = 1, + kAltitudeMmFieldNumber = 2, + }; + // .viam.common.v1.GeoPoint coordinate = 1 [json_name = "coordinate"]; + bool has_coordinate() const; + private: + bool _internal_has_coordinate() const; + public: + void clear_coordinate(); + const ::viam::common::v1::GeoPoint& coordinate() const; + PROTOBUF_NODISCARD ::viam::common::v1::GeoPoint* release_coordinate(); + ::viam::common::v1::GeoPoint* mutable_coordinate(); + void set_allocated_coordinate(::viam::common::v1::GeoPoint* coordinate); + private: + const ::viam::common::v1::GeoPoint& _internal_coordinate() const; + ::viam::common::v1::GeoPoint* _internal_mutable_coordinate(); + public: + void unsafe_arena_set_allocated_coordinate( + ::viam::common::v1::GeoPoint* coordinate); + ::viam::common::v1::GeoPoint* unsafe_arena_release_coordinate(); + + // float altitude_mm = 2 [json_name = "altitudeMm"]; + void clear_altitude_mm(); + float altitude_mm() const; + void set_altitude_mm(float value); + private: + float _internal_altitude_mm() const; + void _internal_set_altitude_mm(float value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetPositionResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::common::v1::GeoPoint* coordinate_; + float altitude_mm_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPropertiesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetPropertiesRequest) */ { + public: + inline GetPropertiesRequest() : GetPropertiesRequest(nullptr) {} + ~GetPropertiesRequest() override; + explicit PROTOBUF_CONSTEXPR GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPropertiesRequest(const GetPropertiesRequest& from); + GetPropertiesRequest(GetPropertiesRequest&& from) noexcept + : GetPropertiesRequest() { + *this = ::std::move(from); + } + + inline GetPropertiesRequest& operator=(const GetPropertiesRequest& from) { + CopyFrom(from); + return *this; + } + inline GetPropertiesRequest& operator=(GetPropertiesRequest&& 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 GetPropertiesRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetPropertiesRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPropertiesRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(GetPropertiesRequest& a, GetPropertiesRequest& b) { + a.Swap(&b); + } + inline void Swap(GetPropertiesRequest* 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(GetPropertiesRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPropertiesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPropertiesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPropertiesRequest& from) { + GetPropertiesRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPropertiesRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetPropertiesRequest"; + } + protected: + explicit GetPropertiesRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetPropertiesRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPropertiesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetPropertiesResponse) */ { + public: + inline GetPropertiesResponse() : GetPropertiesResponse(nullptr) {} + ~GetPropertiesResponse() override; + explicit PROTOBUF_CONSTEXPR GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPropertiesResponse(const GetPropertiesResponse& from); + GetPropertiesResponse(GetPropertiesResponse&& from) noexcept + : GetPropertiesResponse() { + *this = ::std::move(from); + } + + inline GetPropertiesResponse& operator=(const GetPropertiesResponse& from) { + CopyFrom(from); + return *this; + } + inline GetPropertiesResponse& operator=(GetPropertiesResponse&& 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 GetPropertiesResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetPropertiesResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPropertiesResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(GetPropertiesResponse& a, GetPropertiesResponse& b) { + a.Swap(&b); + } + inline void Swap(GetPropertiesResponse* 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(GetPropertiesResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPropertiesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPropertiesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPropertiesResponse& from) { + GetPropertiesResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPropertiesResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetPropertiesResponse"; + } + protected: + explicit GetPropertiesResponse(::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 { + kLinearVelocitySupportedFieldNumber = 1, + kAngularVelocitySupportedFieldNumber = 2, + kOrientationSupportedFieldNumber = 3, + kPositionSupportedFieldNumber = 4, + kCompassHeadingSupportedFieldNumber = 5, + }; + // bool linear_velocity_supported = 1 [json_name = "linearVelocitySupported"]; + void clear_linear_velocity_supported(); + bool linear_velocity_supported() const; + void set_linear_velocity_supported(bool value); + private: + bool _internal_linear_velocity_supported() const; + void _internal_set_linear_velocity_supported(bool value); + public: + + // bool angular_velocity_supported = 2 [json_name = "angularVelocitySupported"]; + void clear_angular_velocity_supported(); + bool angular_velocity_supported() const; + void set_angular_velocity_supported(bool value); + private: + bool _internal_angular_velocity_supported() const; + void _internal_set_angular_velocity_supported(bool value); + public: + + // bool orientation_supported = 3 [json_name = "orientationSupported"]; + void clear_orientation_supported(); + bool orientation_supported() const; + void set_orientation_supported(bool value); + private: + bool _internal_orientation_supported() const; + void _internal_set_orientation_supported(bool value); + public: + + // bool position_supported = 4 [json_name = "positionSupported"]; + void clear_position_supported(); + bool position_supported() const; + void set_position_supported(bool value); + private: + bool _internal_position_supported() const; + void _internal_set_position_supported(bool value); + public: + + // bool compass_heading_supported = 5 [json_name = "compassHeadingSupported"]; + void clear_compass_heading_supported(); + bool compass_heading_supported() const; + void set_compass_heading_supported(bool value); + private: + bool _internal_compass_heading_supported() const; + void _internal_set_compass_heading_supported(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetPropertiesResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + bool linear_velocity_supported_; + bool angular_velocity_supported_; + bool orientation_supported_; + bool position_supported_; + bool compass_heading_supported_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; +}; +// ------------------------------------------------------------------- + +class GetAccuracyRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetAccuracyRequest) */ { + public: + inline GetAccuracyRequest() : GetAccuracyRequest(nullptr) {} + ~GetAccuracyRequest() override; + explicit PROTOBUF_CONSTEXPR GetAccuracyRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetAccuracyRequest(const GetAccuracyRequest& from); + GetAccuracyRequest(GetAccuracyRequest&& from) noexcept + : GetAccuracyRequest() { + *this = ::std::move(from); + } + + inline GetAccuracyRequest& operator=(const GetAccuracyRequest& from) { + CopyFrom(from); + return *this; + } + inline GetAccuracyRequest& operator=(GetAccuracyRequest&& 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 GetAccuracyRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetAccuracyRequest* internal_default_instance() { + return reinterpret_cast( + &_GetAccuracyRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(GetAccuracyRequest& a, GetAccuracyRequest& b) { + a.Swap(&b); + } + inline void Swap(GetAccuracyRequest* 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(GetAccuracyRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetAccuracyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetAccuracyRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetAccuracyRequest& from) { + GetAccuracyRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetAccuracyRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetAccuracyRequest"; + } + protected: + explicit GetAccuracyRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetAccuracyRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; +}; +// ------------------------------------------------------------------- + +class GetAccuracyResponse_AccuracyMmEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + GetAccuracyResponse_AccuracyMmEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR GetAccuracyResponse_AccuracyMmEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit GetAccuracyResponse_AccuracyMmEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const GetAccuracyResponse_AccuracyMmEntry_DoNotUse& other); + static const GetAccuracyResponse_AccuracyMmEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_GetAccuracyResponse_AccuracyMmEntry_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.component.movementsensor.v1.GetAccuracyResponse.AccuracyMmEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; +}; + +// ------------------------------------------------------------------- + +class GetAccuracyResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetAccuracyResponse) */ { + public: + inline GetAccuracyResponse() : GetAccuracyResponse(nullptr) {} + ~GetAccuracyResponse() override; + explicit PROTOBUF_CONSTEXPR GetAccuracyResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetAccuracyResponse(const GetAccuracyResponse& from); + GetAccuracyResponse(GetAccuracyResponse&& from) noexcept + : GetAccuracyResponse() { + *this = ::std::move(from); + } + + inline GetAccuracyResponse& operator=(const GetAccuracyResponse& from) { + CopyFrom(from); + return *this; + } + inline GetAccuracyResponse& operator=(GetAccuracyResponse&& 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 GetAccuracyResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetAccuracyResponse* internal_default_instance() { + return reinterpret_cast( + &_GetAccuracyResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(GetAccuracyResponse& a, GetAccuracyResponse& b) { + a.Swap(&b); + } + inline void Swap(GetAccuracyResponse* 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(GetAccuracyResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetAccuracyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetAccuracyResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetAccuracyResponse& from) { + GetAccuracyResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetAccuracyResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetAccuracyResponse"; + } + protected: + explicit GetAccuracyResponse(::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 { + kAccuracyMmFieldNumber = 1, + }; + // map accuracy_mm = 1 [json_name = "accuracyMm"]; + int accuracy_mm_size() const; + private: + int _internal_accuracy_mm_size() const; + public: + void clear_accuracy_mm(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, float >& + _internal_accuracy_mm() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, float >* + _internal_mutable_accuracy_mm(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, float >& + accuracy_mm() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, float >* + mutable_accuracy_mm(); + + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetAccuracyResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + GetAccuracyResponse_AccuracyMmEntry_DoNotUse, + std::string, float, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT> accuracy_mm_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// GetLinearVelocityRequest + +// string name = 1 [json_name = "name"]; +inline void GetLinearVelocityRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetLinearVelocityRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetLinearVelocityRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetLinearVelocityRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetLinearVelocityRequest.name) +} +inline std::string* GetLinearVelocityRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetLinearVelocityRequest.name) + return _s; +} +inline const std::string& GetLinearVelocityRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetLinearVelocityRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetLinearVelocityRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetLinearVelocityRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetLinearVelocityRequest.name) + return _impl_.name_.Release(); +} +inline void GetLinearVelocityRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetLinearVelocityRequest.name) +} + +// ------------------------------------------------------------------- + +// GetLinearVelocityResponse + +// .viam.common.v1.Vector3 linear_velocity = 1 [json_name = "linearVelocity"]; +inline bool GetLinearVelocityResponse::_internal_has_linear_velocity() const { + return this != internal_default_instance() && _impl_.linear_velocity_ != nullptr; +} +inline bool GetLinearVelocityResponse::has_linear_velocity() const { + return _internal_has_linear_velocity(); +} +inline const ::viam::common::v1::Vector3& GetLinearVelocityResponse::_internal_linear_velocity() const { + const ::viam::common::v1::Vector3* p = _impl_.linear_velocity_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Vector3_default_instance_); +} +inline const ::viam::common::v1::Vector3& GetLinearVelocityResponse::linear_velocity() const { + // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetLinearVelocityResponse.linear_velocity) + return _internal_linear_velocity(); +} +inline void GetLinearVelocityResponse::unsafe_arena_set_allocated_linear_velocity( + ::viam::common::v1::Vector3* linear_velocity) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.linear_velocity_); + } + _impl_.linear_velocity_ = linear_velocity; + if (linear_velocity) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.movementsensor.v1.GetLinearVelocityResponse.linear_velocity) +} +inline ::viam::common::v1::Vector3* GetLinearVelocityResponse::release_linear_velocity() { + + ::viam::common::v1::Vector3* temp = _impl_.linear_velocity_; + _impl_.linear_velocity_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::Vector3* GetLinearVelocityResponse::unsafe_arena_release_linear_velocity() { + // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetLinearVelocityResponse.linear_velocity) + + ::viam::common::v1::Vector3* temp = _impl_.linear_velocity_; + _impl_.linear_velocity_ = nullptr; + return temp; +} +inline ::viam::common::v1::Vector3* GetLinearVelocityResponse::_internal_mutable_linear_velocity() { + + if (_impl_.linear_velocity_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArenaForAllocation()); + _impl_.linear_velocity_ = p; + } + return _impl_.linear_velocity_; +} +inline ::viam::common::v1::Vector3* GetLinearVelocityResponse::mutable_linear_velocity() { + ::viam::common::v1::Vector3* _msg = _internal_mutable_linear_velocity(); + // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetLinearVelocityResponse.linear_velocity) + return _msg; +} +inline void GetLinearVelocityResponse::set_allocated_linear_velocity(::viam::common::v1::Vector3* linear_velocity) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.linear_velocity_); + } + if (linear_velocity) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(linear_velocity)); + if (message_arena != submessage_arena) { + linear_velocity = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, linear_velocity, submessage_arena); + } + + } else { + + } + _impl_.linear_velocity_ = linear_velocity; + // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetLinearVelocityResponse.linear_velocity) +} + +// ------------------------------------------------------------------- + +// GetAngularVelocityRequest + +// string name = 1 [json_name = "name"]; +inline void GetAngularVelocityRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetAngularVelocityRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetAngularVelocityRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetAngularVelocityRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetAngularVelocityRequest.name) +} +inline std::string* GetAngularVelocityRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetAngularVelocityRequest.name) + return _s; +} +inline const std::string& GetAngularVelocityRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetAngularVelocityRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetAngularVelocityRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetAngularVelocityRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetAngularVelocityRequest.name) + return _impl_.name_.Release(); +} +inline void GetAngularVelocityRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetAngularVelocityRequest.name) +} + +// ------------------------------------------------------------------- + +// GetAngularVelocityResponse + +// .viam.common.v1.Vector3 angular_velocity = 1 [json_name = "angularVelocity"]; +inline bool GetAngularVelocityResponse::_internal_has_angular_velocity() const { + return this != internal_default_instance() && _impl_.angular_velocity_ != nullptr; +} +inline bool GetAngularVelocityResponse::has_angular_velocity() const { + return _internal_has_angular_velocity(); +} +inline const ::viam::common::v1::Vector3& GetAngularVelocityResponse::_internal_angular_velocity() const { + const ::viam::common::v1::Vector3* p = _impl_.angular_velocity_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Vector3_default_instance_); +} +inline const ::viam::common::v1::Vector3& GetAngularVelocityResponse::angular_velocity() const { + // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetAngularVelocityResponse.angular_velocity) + return _internal_angular_velocity(); +} +inline void GetAngularVelocityResponse::unsafe_arena_set_allocated_angular_velocity( + ::viam::common::v1::Vector3* angular_velocity) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.angular_velocity_); + } + _impl_.angular_velocity_ = angular_velocity; + if (angular_velocity) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.movementsensor.v1.GetAngularVelocityResponse.angular_velocity) +} +inline ::viam::common::v1::Vector3* GetAngularVelocityResponse::release_angular_velocity() { + + ::viam::common::v1::Vector3* temp = _impl_.angular_velocity_; + _impl_.angular_velocity_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::Vector3* GetAngularVelocityResponse::unsafe_arena_release_angular_velocity() { + // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetAngularVelocityResponse.angular_velocity) + + ::viam::common::v1::Vector3* temp = _impl_.angular_velocity_; + _impl_.angular_velocity_ = nullptr; + return temp; +} +inline ::viam::common::v1::Vector3* GetAngularVelocityResponse::_internal_mutable_angular_velocity() { + + if (_impl_.angular_velocity_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArenaForAllocation()); + _impl_.angular_velocity_ = p; + } + return _impl_.angular_velocity_; +} +inline ::viam::common::v1::Vector3* GetAngularVelocityResponse::mutable_angular_velocity() { + ::viam::common::v1::Vector3* _msg = _internal_mutable_angular_velocity(); + // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetAngularVelocityResponse.angular_velocity) + return _msg; +} +inline void GetAngularVelocityResponse::set_allocated_angular_velocity(::viam::common::v1::Vector3* angular_velocity) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.angular_velocity_); + } + if (angular_velocity) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(angular_velocity)); + if (message_arena != submessage_arena) { + angular_velocity = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, angular_velocity, submessage_arena); + } + + } else { + + } + _impl_.angular_velocity_ = angular_velocity; + // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetAngularVelocityResponse.angular_velocity) +} + +// ------------------------------------------------------------------- + +// GetCompassHeadingRequest + +// string name = 1 [json_name = "name"]; +inline void GetCompassHeadingRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetCompassHeadingRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetCompassHeadingRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetCompassHeadingRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetCompassHeadingRequest.name) +} +inline std::string* GetCompassHeadingRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetCompassHeadingRequest.name) + return _s; +} +inline const std::string& GetCompassHeadingRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetCompassHeadingRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetCompassHeadingRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetCompassHeadingRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetCompassHeadingRequest.name) + return _impl_.name_.Release(); +} +inline void GetCompassHeadingRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetCompassHeadingRequest.name) +} + +// ------------------------------------------------------------------- + +// GetCompassHeadingResponse + +// double value = 1 [json_name = "value"]; +inline void GetCompassHeadingResponse::clear_value() { + _impl_.value_ = 0; +} +inline double GetCompassHeadingResponse::_internal_value() const { + return _impl_.value_; +} +inline double GetCompassHeadingResponse::value() const { + // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetCompassHeadingResponse.value) + return _internal_value(); +} +inline void GetCompassHeadingResponse::_internal_set_value(double value) { + + _impl_.value_ = value; +} +inline void GetCompassHeadingResponse::set_value(double value) { + _internal_set_value(value); + // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetCompassHeadingResponse.value) +} + +// ------------------------------------------------------------------- + +// GetOrientationRequest + +// string name = 1 [json_name = "name"]; +inline void GetOrientationRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetOrientationRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetOrientationRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetOrientationRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetOrientationRequest.name) +} +inline std::string* GetOrientationRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetOrientationRequest.name) + return _s; +} +inline const std::string& GetOrientationRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetOrientationRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetOrientationRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetOrientationRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetOrientationRequest.name) + return _impl_.name_.Release(); +} +inline void GetOrientationRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetOrientationRequest.name) +} + +// ------------------------------------------------------------------- + +// GetOrientationResponse + +// .viam.common.v1.Orientation orientation = 1 [json_name = "orientation"]; +inline bool GetOrientationResponse::_internal_has_orientation() const { + return this != internal_default_instance() && _impl_.orientation_ != nullptr; +} +inline bool GetOrientationResponse::has_orientation() const { + return _internal_has_orientation(); +} +inline const ::viam::common::v1::Orientation& GetOrientationResponse::_internal_orientation() const { + const ::viam::common::v1::Orientation* p = _impl_.orientation_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Orientation_default_instance_); +} +inline const ::viam::common::v1::Orientation& GetOrientationResponse::orientation() const { + // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetOrientationResponse.orientation) + return _internal_orientation(); +} +inline void GetOrientationResponse::unsafe_arena_set_allocated_orientation( + ::viam::common::v1::Orientation* orientation) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.orientation_); + } + _impl_.orientation_ = orientation; + if (orientation) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.movementsensor.v1.GetOrientationResponse.orientation) +} +inline ::viam::common::v1::Orientation* GetOrientationResponse::release_orientation() { + + ::viam::common::v1::Orientation* temp = _impl_.orientation_; + _impl_.orientation_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::Orientation* GetOrientationResponse::unsafe_arena_release_orientation() { + // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetOrientationResponse.orientation) + + ::viam::common::v1::Orientation* temp = _impl_.orientation_; + _impl_.orientation_ = nullptr; + return temp; +} +inline ::viam::common::v1::Orientation* GetOrientationResponse::_internal_mutable_orientation() { + + if (_impl_.orientation_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Orientation>(GetArenaForAllocation()); + _impl_.orientation_ = p; + } + return _impl_.orientation_; +} +inline ::viam::common::v1::Orientation* GetOrientationResponse::mutable_orientation() { + ::viam::common::v1::Orientation* _msg = _internal_mutable_orientation(); + // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetOrientationResponse.orientation) + return _msg; +} +inline void GetOrientationResponse::set_allocated_orientation(::viam::common::v1::Orientation* orientation) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.orientation_); + } + if (orientation) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(orientation)); + if (message_arena != submessage_arena) { + orientation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, orientation, submessage_arena); + } + + } else { + + } + _impl_.orientation_ = orientation; + // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetOrientationResponse.orientation) +} + +// ------------------------------------------------------------------- + +// GetPositionRequest + +// string name = 1 [json_name = "name"]; +inline void GetPositionRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetPositionRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetPositionRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetPositionRequest.name) +} +inline std::string* GetPositionRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetPositionRequest.name) + return _s; +} +inline const std::string& GetPositionRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetPositionRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetPositionRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetPositionRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetPositionRequest.name) + return _impl_.name_.Release(); +} +inline void GetPositionRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetPositionRequest.name) +} + +// ------------------------------------------------------------------- + +// GetPositionResponse + +// .viam.common.v1.GeoPoint coordinate = 1 [json_name = "coordinate"]; +inline bool GetPositionResponse::_internal_has_coordinate() const { + return this != internal_default_instance() && _impl_.coordinate_ != nullptr; +} +inline bool GetPositionResponse::has_coordinate() const { + return _internal_has_coordinate(); +} +inline const ::viam::common::v1::GeoPoint& GetPositionResponse::_internal_coordinate() const { + const ::viam::common::v1::GeoPoint* p = _impl_.coordinate_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_GeoPoint_default_instance_); +} +inline const ::viam::common::v1::GeoPoint& GetPositionResponse::coordinate() const { + // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetPositionResponse.coordinate) + return _internal_coordinate(); +} +inline void GetPositionResponse::unsafe_arena_set_allocated_coordinate( + ::viam::common::v1::GeoPoint* coordinate) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.coordinate_); + } + _impl_.coordinate_ = coordinate; + if (coordinate) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.movementsensor.v1.GetPositionResponse.coordinate) +} +inline ::viam::common::v1::GeoPoint* GetPositionResponse::release_coordinate() { + + ::viam::common::v1::GeoPoint* temp = _impl_.coordinate_; + _impl_.coordinate_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::GeoPoint* GetPositionResponse::unsafe_arena_release_coordinate() { + // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetPositionResponse.coordinate) + + ::viam::common::v1::GeoPoint* temp = _impl_.coordinate_; + _impl_.coordinate_ = nullptr; + return temp; +} +inline ::viam::common::v1::GeoPoint* GetPositionResponse::_internal_mutable_coordinate() { + + if (_impl_.coordinate_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::GeoPoint>(GetArenaForAllocation()); + _impl_.coordinate_ = p; + } + return _impl_.coordinate_; +} +inline ::viam::common::v1::GeoPoint* GetPositionResponse::mutable_coordinate() { + ::viam::common::v1::GeoPoint* _msg = _internal_mutable_coordinate(); + // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetPositionResponse.coordinate) + return _msg; +} +inline void GetPositionResponse::set_allocated_coordinate(::viam::common::v1::GeoPoint* coordinate) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.coordinate_); + } + if (coordinate) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(coordinate)); + if (message_arena != submessage_arena) { + coordinate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, coordinate, submessage_arena); + } + + } else { + + } + _impl_.coordinate_ = coordinate; + // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetPositionResponse.coordinate) +} + +// float altitude_mm = 2 [json_name = "altitudeMm"]; +inline void GetPositionResponse::clear_altitude_mm() { + _impl_.altitude_mm_ = 0; +} +inline float GetPositionResponse::_internal_altitude_mm() const { + return _impl_.altitude_mm_; +} +inline float GetPositionResponse::altitude_mm() const { + // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetPositionResponse.altitude_mm) + return _internal_altitude_mm(); +} +inline void GetPositionResponse::_internal_set_altitude_mm(float value) { + + _impl_.altitude_mm_ = value; +} +inline void GetPositionResponse::set_altitude_mm(float value) { + _internal_set_altitude_mm(value); + // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetPositionResponse.altitude_mm) +} + +// ------------------------------------------------------------------- + +// GetPropertiesRequest + +// string name = 1 [json_name = "name"]; +inline void GetPropertiesRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetPropertiesRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetPropertiesRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetPropertiesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetPropertiesRequest.name) +} +inline std::string* GetPropertiesRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetPropertiesRequest.name) + return _s; +} +inline const std::string& GetPropertiesRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetPropertiesRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetPropertiesRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetPropertiesRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetPropertiesRequest.name) + return _impl_.name_.Release(); +} +inline void GetPropertiesRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetPropertiesRequest.name) +} + +// ------------------------------------------------------------------- + +// GetPropertiesResponse + +// bool linear_velocity_supported = 1 [json_name = "linearVelocitySupported"]; +inline void GetPropertiesResponse::clear_linear_velocity_supported() { + _impl_.linear_velocity_supported_ = false; +} +inline bool GetPropertiesResponse::_internal_linear_velocity_supported() const { + return _impl_.linear_velocity_supported_; +} +inline bool GetPropertiesResponse::linear_velocity_supported() const { + // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetPropertiesResponse.linear_velocity_supported) + return _internal_linear_velocity_supported(); +} +inline void GetPropertiesResponse::_internal_set_linear_velocity_supported(bool value) { + + _impl_.linear_velocity_supported_ = value; +} +inline void GetPropertiesResponse::set_linear_velocity_supported(bool value) { + _internal_set_linear_velocity_supported(value); + // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetPropertiesResponse.linear_velocity_supported) +} + +// bool angular_velocity_supported = 2 [json_name = "angularVelocitySupported"]; +inline void GetPropertiesResponse::clear_angular_velocity_supported() { + _impl_.angular_velocity_supported_ = false; +} +inline bool GetPropertiesResponse::_internal_angular_velocity_supported() const { + return _impl_.angular_velocity_supported_; +} +inline bool GetPropertiesResponse::angular_velocity_supported() const { + // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetPropertiesResponse.angular_velocity_supported) + return _internal_angular_velocity_supported(); +} +inline void GetPropertiesResponse::_internal_set_angular_velocity_supported(bool value) { + + _impl_.angular_velocity_supported_ = value; +} +inline void GetPropertiesResponse::set_angular_velocity_supported(bool value) { + _internal_set_angular_velocity_supported(value); + // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetPropertiesResponse.angular_velocity_supported) +} + +// bool orientation_supported = 3 [json_name = "orientationSupported"]; +inline void GetPropertiesResponse::clear_orientation_supported() { + _impl_.orientation_supported_ = false; +} +inline bool GetPropertiesResponse::_internal_orientation_supported() const { + return _impl_.orientation_supported_; +} +inline bool GetPropertiesResponse::orientation_supported() const { + // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetPropertiesResponse.orientation_supported) + return _internal_orientation_supported(); +} +inline void GetPropertiesResponse::_internal_set_orientation_supported(bool value) { + + _impl_.orientation_supported_ = value; +} +inline void GetPropertiesResponse::set_orientation_supported(bool value) { + _internal_set_orientation_supported(value); + // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetPropertiesResponse.orientation_supported) +} + +// bool position_supported = 4 [json_name = "positionSupported"]; +inline void GetPropertiesResponse::clear_position_supported() { + _impl_.position_supported_ = false; +} +inline bool GetPropertiesResponse::_internal_position_supported() const { + return _impl_.position_supported_; +} +inline bool GetPropertiesResponse::position_supported() const { + // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetPropertiesResponse.position_supported) + return _internal_position_supported(); +} +inline void GetPropertiesResponse::_internal_set_position_supported(bool value) { + + _impl_.position_supported_ = value; +} +inline void GetPropertiesResponse::set_position_supported(bool value) { + _internal_set_position_supported(value); + // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetPropertiesResponse.position_supported) +} + +// bool compass_heading_supported = 5 [json_name = "compassHeadingSupported"]; +inline void GetPropertiesResponse::clear_compass_heading_supported() { + _impl_.compass_heading_supported_ = false; +} +inline bool GetPropertiesResponse::_internal_compass_heading_supported() const { + return _impl_.compass_heading_supported_; +} +inline bool GetPropertiesResponse::compass_heading_supported() const { + // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetPropertiesResponse.compass_heading_supported) + return _internal_compass_heading_supported(); +} +inline void GetPropertiesResponse::_internal_set_compass_heading_supported(bool value) { + + _impl_.compass_heading_supported_ = value; +} +inline void GetPropertiesResponse::set_compass_heading_supported(bool value) { + _internal_set_compass_heading_supported(value); + // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetPropertiesResponse.compass_heading_supported) +} + +// ------------------------------------------------------------------- + +// GetAccuracyRequest + +// string name = 1 [json_name = "name"]; +inline void GetAccuracyRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetAccuracyRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetAccuracyRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetAccuracyRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetAccuracyRequest.name) +} +inline std::string* GetAccuracyRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetAccuracyRequest.name) + return _s; +} +inline const std::string& GetAccuracyRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetAccuracyRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetAccuracyRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetAccuracyRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetAccuracyRequest.name) + return _impl_.name_.Release(); +} +inline void GetAccuracyRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetAccuracyRequest.name) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// GetAccuracyResponse + +// map accuracy_mm = 1 [json_name = "accuracyMm"]; +inline int GetAccuracyResponse::_internal_accuracy_mm_size() const { + return _impl_.accuracy_mm_.size(); +} +inline int GetAccuracyResponse::accuracy_mm_size() const { + return _internal_accuracy_mm_size(); +} +inline void GetAccuracyResponse::clear_accuracy_mm() { + _impl_.accuracy_mm_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, float >& +GetAccuracyResponse::_internal_accuracy_mm() const { + return _impl_.accuracy_mm_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, float >& +GetAccuracyResponse::accuracy_mm() const { + // @@protoc_insertion_point(field_map:viam.component.movementsensor.v1.GetAccuracyResponse.accuracy_mm) + return _internal_accuracy_mm(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, float >* +GetAccuracyResponse::_internal_mutable_accuracy_mm() { + return _impl_.accuracy_mm_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, float >* +GetAccuracyResponse::mutable_accuracy_mm() { + // @@protoc_insertion_point(field_mutable_map:viam.component.movementsensor.v1.GetAccuracyResponse.accuracy_mm) + return _internal_mutable_accuracy_mm(); +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace movementsensor +} // namespace component +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto diff --git a/src/gen/component/posetracker/v1/pose_tracker.grpc.pb.cc b/src/gen/component/posetracker/v1/pose_tracker.grpc.pb.cc new file mode 100644 index 000000000..9d5955c12 --- /dev/null +++ b/src/gen/component/posetracker/v1/pose_tracker.grpc.pb.cc @@ -0,0 +1,92 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/posetracker/v1/pose_tracker.proto + +#include "component/posetracker/v1/pose_tracker.pb.h" +#include "component/posetracker/v1/pose_tracker.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace component { +namespace posetracker { +namespace v1 { + +static const char* PoseTrackerService_method_names[] = { + "/viam.component.posetracker.v1.PoseTrackerService/GetPoses", +}; + +std::unique_ptr< PoseTrackerService::Stub> PoseTrackerService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< PoseTrackerService::Stub> stub(new PoseTrackerService::Stub(channel, options)); + return stub; +} + +PoseTrackerService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_GetPoses_(PoseTrackerService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status PoseTrackerService::Stub::GetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& request, ::viam::component::posetracker::v1::GetPosesResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::posetracker::v1::GetPosesRequest, ::viam::component::posetracker::v1::GetPosesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetPoses_, context, request, response); +} + +void PoseTrackerService::Stub::async::GetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest* request, ::viam::component::posetracker::v1::GetPosesResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::posetracker::v1::GetPosesRequest, ::viam::component::posetracker::v1::GetPosesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPoses_, context, request, response, std::move(f)); +} + +void PoseTrackerService::Stub::async::GetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest* request, ::viam::component::posetracker::v1::GetPosesResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPoses_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::posetracker::v1::GetPosesResponse>* PoseTrackerService::Stub::PrepareAsyncGetPosesRaw(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::posetracker::v1::GetPosesResponse, ::viam::component::posetracker::v1::GetPosesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetPoses_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::posetracker::v1::GetPosesResponse>* PoseTrackerService::Stub::AsyncGetPosesRaw(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetPosesRaw(context, request, cq); + result->StartCall(); + return result; +} + +PoseTrackerService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + PoseTrackerService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< PoseTrackerService::Service, ::viam::component::posetracker::v1::GetPosesRequest, ::viam::component::posetracker::v1::GetPosesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](PoseTrackerService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::posetracker::v1::GetPosesRequest* req, + ::viam::component::posetracker::v1::GetPosesResponse* resp) { + return service->GetPoses(ctx, req, resp); + }, this))); +} + +PoseTrackerService::Service::~Service() { +} + +::grpc::Status PoseTrackerService::Service::GetPoses(::grpc::ServerContext* context, const ::viam::component::posetracker::v1::GetPosesRequest* request, ::viam::component::posetracker::v1::GetPosesResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace component +} // namespace posetracker +} // namespace v1 + diff --git a/src/gen/component/posetracker/v1/pose_tracker.grpc.pb.h b/src/gen/component/posetracker/v1/pose_tracker.grpc.pb.h new file mode 100644 index 000000000..b9a65012b --- /dev/null +++ b/src/gen/component/posetracker/v1/pose_tracker.grpc.pb.h @@ -0,0 +1,250 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/posetracker/v1/pose_tracker.proto +#ifndef GRPC_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto__INCLUDED +#define GRPC_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto__INCLUDED + +#include "component/posetracker/v1/pose_tracker.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace component { +namespace posetracker { +namespace v1 { + +// A PoseTrackerService maintains all pose trackers associated with a robot +class PoseTrackerService final { + public: + static constexpr char const* service_full_name() { + return "viam.component.posetracker.v1.PoseTrackerService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // GetPoses returns the current pose of each body tracked by the pose tracker + virtual ::grpc::Status GetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& request, ::viam::component::posetracker::v1::GetPosesResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::posetracker::v1::GetPosesResponse>> AsyncGetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::posetracker::v1::GetPosesResponse>>(AsyncGetPosesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::posetracker::v1::GetPosesResponse>> PrepareAsyncGetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::posetracker::v1::GetPosesResponse>>(PrepareAsyncGetPosesRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // GetPoses returns the current pose of each body tracked by the pose tracker + virtual void GetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest* request, ::viam::component::posetracker::v1::GetPosesResponse* response, std::function) = 0; + virtual void GetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest* request, ::viam::component::posetracker::v1::GetPosesResponse* 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::ClientAsyncResponseReaderInterface< ::viam::component::posetracker::v1::GetPosesResponse>* AsyncGetPosesRaw(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::posetracker::v1::GetPosesResponse>* PrepareAsyncGetPosesRaw(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& 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()); + ::grpc::Status GetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& request, ::viam::component::posetracker::v1::GetPosesResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::posetracker::v1::GetPosesResponse>> AsyncGetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::posetracker::v1::GetPosesResponse>>(AsyncGetPosesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::posetracker::v1::GetPosesResponse>> PrepareAsyncGetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::posetracker::v1::GetPosesResponse>>(PrepareAsyncGetPosesRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void GetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest* request, ::viam::component::posetracker::v1::GetPosesResponse* response, std::function) override; + void GetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest* request, ::viam::component::posetracker::v1::GetPosesResponse* 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::ClientAsyncResponseReader< ::viam::component::posetracker::v1::GetPosesResponse>* AsyncGetPosesRaw(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::posetracker::v1::GetPosesResponse>* PrepareAsyncGetPosesRaw(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_GetPoses_; + }; + 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(); + // GetPoses returns the current pose of each body tracked by the pose tracker + virtual ::grpc::Status GetPoses(::grpc::ServerContext* context, const ::viam::component::posetracker::v1::GetPosesRequest* request, ::viam::component::posetracker::v1::GetPosesResponse* response); + }; + template + class WithAsyncMethod_GetPoses : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetPoses() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_GetPoses() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPoses(::grpc::ServerContext* /*context*/, const ::viam::component::posetracker::v1::GetPosesRequest* /*request*/, ::viam::component::posetracker::v1::GetPosesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetPoses(::grpc::ServerContext* context, ::viam::component::posetracker::v1::GetPosesRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::posetracker::v1::GetPosesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetPoses AsyncService; + template + class WithCallbackMethod_GetPoses : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetPoses() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::posetracker::v1::GetPosesRequest, ::viam::component::posetracker::v1::GetPosesResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::posetracker::v1::GetPosesRequest* request, ::viam::component::posetracker::v1::GetPosesResponse* response) { return this->GetPoses(context, request, response); }));} + void SetMessageAllocatorFor_GetPoses( + ::grpc::MessageAllocator< ::viam::component::posetracker::v1::GetPosesRequest, ::viam::component::posetracker::v1::GetPosesResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::posetracker::v1::GetPosesRequest, ::viam::component::posetracker::v1::GetPosesResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetPoses() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPoses(::grpc::ServerContext* /*context*/, const ::viam::component::posetracker::v1::GetPosesRequest* /*request*/, ::viam::component::posetracker::v1::GetPosesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetPoses( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::posetracker::v1::GetPosesRequest* /*request*/, ::viam::component::posetracker::v1::GetPosesResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetPoses CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_GetPoses : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetPoses() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_GetPoses() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPoses(::grpc::ServerContext* /*context*/, const ::viam::component::posetracker::v1::GetPosesRequest* /*request*/, ::viam::component::posetracker::v1::GetPosesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_GetPoses : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetPoses() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_GetPoses() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPoses(::grpc::ServerContext* /*context*/, const ::viam::component::posetracker::v1::GetPosesRequest* /*request*/, ::viam::component::posetracker::v1::GetPosesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetPoses(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_GetPoses : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetPoses() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPoses(context, request, response); })); + } + ~WithRawCallbackMethod_GetPoses() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPoses(::grpc::ServerContext* /*context*/, const ::viam::component::posetracker::v1::GetPosesRequest* /*request*/, ::viam::component::posetracker::v1::GetPosesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetPoses( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_GetPoses : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetPoses() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::posetracker::v1::GetPosesRequest, ::viam::component::posetracker::v1::GetPosesResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::posetracker::v1::GetPosesRequest, ::viam::component::posetracker::v1::GetPosesResponse>* streamer) { + return this->StreamedGetPoses(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetPoses() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetPoses(::grpc::ServerContext* /*context*/, const ::viam::component::posetracker::v1::GetPosesRequest* /*request*/, ::viam::component::posetracker::v1::GetPosesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetPoses(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::posetracker::v1::GetPosesRequest,::viam::component::posetracker::v1::GetPosesResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetPoses StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_GetPoses StreamedService; +}; + +} // namespace v1 +} // namespace posetracker +} // namespace component +} // namespace viam + + +#endif // GRPC_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto__INCLUDED diff --git a/src/gen/component/posetracker/v1/pose_tracker.pb.cc b/src/gen/component/posetracker/v1/pose_tracker.pb.cc new file mode 100644 index 000000000..9a32ca76d --- /dev/null +++ b/src/gen/component/posetracker/v1/pose_tracker.pb.cc @@ -0,0 +1,650 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/posetracker/v1/pose_tracker.proto + +#include "component/posetracker/v1/pose_tracker.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 component { +namespace posetracker { +namespace v1 { +PROTOBUF_CONSTEXPR GetPosesRequest::GetPosesRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.body_names_)*/{} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPosesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPosesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPosesRequestDefaultTypeInternal() {} + union { + GetPosesRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPosesRequestDefaultTypeInternal _GetPosesRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPosesResponse_BodyPosesEntry_DoNotUse::GetPosesResponse_BodyPosesEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct GetPosesResponse_BodyPosesEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPosesResponse_BodyPosesEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPosesResponse_BodyPosesEntry_DoNotUseDefaultTypeInternal() {} + union { + GetPosesResponse_BodyPosesEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPosesResponse_BodyPosesEntry_DoNotUseDefaultTypeInternal _GetPosesResponse_BodyPosesEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR GetPosesResponse::GetPosesResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.body_poses_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPosesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPosesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPosesResponseDefaultTypeInternal() {} + union { + GetPosesResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPosesResponseDefaultTypeInternal _GetPosesResponse_default_instance_; +} // namespace v1 +} // namespace posetracker +} // namespace component +} // namespace viam +static ::_pb::Metadata file_level_metadata_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto[3]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto = nullptr; + +const uint32_t TableStruct_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesRequest, _impl_.body_names_), + PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesResponse, _impl_.body_poses_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::posetracker::v1::GetPosesRequest)}, + { 8, 16, -1, sizeof(::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse)}, + { 18, -1, -1, sizeof(::viam::component::posetracker::v1::GetPosesResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::component::posetracker::v1::_GetPosesRequest_default_instance_._instance, + &::viam::component::posetracker::v1::_GetPosesResponse_BodyPosesEntry_DoNotUse_default_instance_._instance, + &::viam::component::posetracker::v1::_GetPosesResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n+component/posetracker/v1/pose_tracker." + "proto\022\035viam.component.posetracker.v1\032\026co" + "mmon/v1/common.proto\032\034google/api/annotat" + "ions.proto\"D\n\017GetPosesRequest\022\022\n\004name\030\001 " + "\001(\tR\004name\022\035\n\nbody_names\030\002 \003(\tR\tbodyNames" + "\"\314\001\n\020GetPosesResponse\022]\n\nbody_poses\030\001 \003(" + "\0132>.viam.component.posetracker.v1.GetPos" + "esResponse.BodyPosesEntryR\tbodyPoses\032Y\n\016" + "BodyPosesEntry\022\020\n\003key\030\001 \001(\tR\003key\0221\n\005valu" + "e\030\002 \001(\0132\033.viam.common.v1.PoseInFrameR\005va" + "lue:\0028\0012\274\001\n\022PoseTrackerService\022\245\001\n\010GetPo" + "ses\022..viam.component.posetracker.v1.GetP" + "osesRequest\032/.viam.component.posetracker" + ".v1.GetPosesResponse\"8\202\323\344\223\0022\0220/viam/api/" + "v1/component/pose_tracker/{name}/posesB5" + "\n\025com.viam.component.v1Z\034go.viam.com/api" + "/component/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_deps[2] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, +}; +static ::_pbi::once_flag descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto = { + false, false, 661, descriptor_table_protodef_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto, + "component/posetracker/v1/pose_tracker.proto", + &descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_once, descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_deps, 2, 3, + schemas, file_default_instances, TableStruct_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto::offsets, + file_level_metadata_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto, file_level_enum_descriptors_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto, + file_level_service_descriptors_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_getter() { + return &descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto(&descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto); +namespace viam { +namespace component { +namespace posetracker { +namespace v1 { + +// =================================================================== + +class GetPosesRequest::_Internal { + public: +}; + +GetPosesRequest::GetPosesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.posetracker.v1.GetPosesRequest) +} +GetPosesRequest::GetPosesRequest(const GetPosesRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPosesRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.body_names_){from._impl_.body_names_} + , decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.posetracker.v1.GetPosesRequest) +} + +inline void GetPosesRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.body_names_){arena} + , decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetPosesRequest::~GetPosesRequest() { + // @@protoc_insertion_point(destructor:viam.component.posetracker.v1.GetPosesRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPosesRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.body_names_.~RepeatedPtrField(); + _impl_.name_.Destroy(); +} + +void GetPosesRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPosesRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.posetracker.v1.GetPosesRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.body_names_.Clear(); + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPosesRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.posetracker.v1.GetPosesRequest.name")); + } else + goto handle_unusual; + continue; + // repeated string body_names = 2 [json_name = "bodyNames"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_body_names(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.posetracker.v1.GetPosesRequest.body_names")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* GetPosesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.posetracker.v1.GetPosesRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.posetracker.v1.GetPosesRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // repeated string body_names = 2 [json_name = "bodyNames"]; + for (int i = 0, n = this->_internal_body_names_size(); i < n; i++) { + const auto& s = this->_internal_body_names(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.posetracker.v1.GetPosesRequest.body_names"); + target = stream->WriteString(2, s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.posetracker.v1.GetPosesRequest) + return target; +} + +size_t GetPosesRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.posetracker.v1.GetPosesRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string body_names = 2 [json_name = "bodyNames"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.body_names_.size()); + for (int i = 0, n = _impl_.body_names_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.body_names_.Get(i)); + } + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPosesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPosesRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPosesRequest::GetClassData() const { return &_class_data_; } + + +void GetPosesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.posetracker.v1.GetPosesRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.body_names_.MergeFrom(from._impl_.body_names_); + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPosesRequest::CopyFrom(const GetPosesRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.posetracker.v1.GetPosesRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPosesRequest::IsInitialized() const { + return true; +} + +void GetPosesRequest::InternalSwap(GetPosesRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.body_names_.InternalSwap(&other->_impl_.body_names_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPosesRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_getter, &descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_once, + file_level_metadata_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto[0]); +} + +// =================================================================== + +GetPosesResponse_BodyPosesEntry_DoNotUse::GetPosesResponse_BodyPosesEntry_DoNotUse() {} +GetPosesResponse_BodyPosesEntry_DoNotUse::GetPosesResponse_BodyPosesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void GetPosesResponse_BodyPosesEntry_DoNotUse::MergeFrom(const GetPosesResponse_BodyPosesEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata GetPosesResponse_BodyPosesEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_getter, &descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_once, + file_level_metadata_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto[1]); +} + +// =================================================================== + +class GetPosesResponse::_Internal { + public: +}; + +void GetPosesResponse::clear_body_poses() { + _impl_.body_poses_.Clear(); +} +GetPosesResponse::GetPosesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &GetPosesResponse::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:viam.component.posetracker.v1.GetPosesResponse) +} +GetPosesResponse::GetPosesResponse(const GetPosesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPosesResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + /*decltype(_impl_.body_poses_)*/{} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.body_poses_.MergeFrom(from._impl_.body_poses_); + // @@protoc_insertion_point(copy_constructor:viam.component.posetracker.v1.GetPosesResponse) +} + +inline void GetPosesResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + /*decltype(_impl_.body_poses_)*/{::_pbi::ArenaInitialized(), arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetPosesResponse::~GetPosesResponse() { + // @@protoc_insertion_point(destructor:viam.component.posetracker.v1.GetPosesResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void GetPosesResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.body_poses_.Destruct(); + _impl_.body_poses_.~MapField(); +} + +void GetPosesResponse::ArenaDtor(void* object) { + GetPosesResponse* _this = reinterpret_cast< GetPosesResponse* >(object); + _this->_impl_.body_poses_.Destruct(); +} +void GetPosesResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPosesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.posetracker.v1.GetPosesResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.body_poses_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPosesResponse::_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 body_poses = 1 [json_name = "bodyPoses"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.body_poses_, 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* GetPosesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.posetracker.v1.GetPosesResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // map body_poses = 1 [json_name = "bodyPoses"]; + if (!this->_internal_body_poses().empty()) { + using MapType = ::_pb::Map; + using WireHelper = GetPosesResponse_BodyPosesEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_body_poses(); + 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.component.posetracker.v1.GetPosesResponse.BodyPosesEntry.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.component.posetracker.v1.GetPosesResponse) + return target; +} + +size_t GetPosesResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.posetracker.v1.GetPosesResponse) + 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 body_poses = 1 [json_name = "bodyPoses"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_body_poses_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::PoseInFrame >::const_iterator + it = this->_internal_body_poses().begin(); + it != this->_internal_body_poses().end(); ++it) { + total_size += GetPosesResponse_BodyPosesEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPosesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPosesResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPosesResponse::GetClassData() const { return &_class_data_; } + + +void GetPosesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.posetracker.v1.GetPosesResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.body_poses_.MergeFrom(from._impl_.body_poses_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPosesResponse::CopyFrom(const GetPosesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.posetracker.v1.GetPosesResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPosesResponse::IsInitialized() const { + return true; +} + +void GetPosesResponse::InternalSwap(GetPosesResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.body_poses_.InternalSwap(&other->_impl_.body_poses_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPosesResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_getter, &descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_once, + file_level_metadata_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto[2]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace posetracker +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::posetracker::v1::GetPosesRequest* +Arena::CreateMaybeMessage< ::viam::component::posetracker::v1::GetPosesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::posetracker::v1::GetPosesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::posetracker::v1::GetPosesResponse* +Arena::CreateMaybeMessage< ::viam::component::posetracker::v1::GetPosesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::posetracker::v1::GetPosesResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/component/posetracker/v1/pose_tracker.pb.h b/src/gen/component/posetracker/v1/pose_tracker.pb.h new file mode 100644 index 000000000..b14436c3a --- /dev/null +++ b/src/gen/component/posetracker/v1/pose_tracker.pb.h @@ -0,0 +1,633 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/posetracker/v1/pose_tracker.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 // IWYU pragma: export +#include +#include +#include +#include "common/v1/common.pb.h" +#include "google/api/annotations.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto; +namespace viam { +namespace component { +namespace posetracker { +namespace v1 { +class GetPosesRequest; +struct GetPosesRequestDefaultTypeInternal; +extern GetPosesRequestDefaultTypeInternal _GetPosesRequest_default_instance_; +class GetPosesResponse; +struct GetPosesResponseDefaultTypeInternal; +extern GetPosesResponseDefaultTypeInternal _GetPosesResponse_default_instance_; +class GetPosesResponse_BodyPosesEntry_DoNotUse; +struct GetPosesResponse_BodyPosesEntry_DoNotUseDefaultTypeInternal; +extern GetPosesResponse_BodyPosesEntry_DoNotUseDefaultTypeInternal _GetPosesResponse_BodyPosesEntry_DoNotUse_default_instance_; +} // namespace v1 +} // namespace posetracker +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::posetracker::v1::GetPosesRequest* Arena::CreateMaybeMessage<::viam::component::posetracker::v1::GetPosesRequest>(Arena*); +template<> ::viam::component::posetracker::v1::GetPosesResponse* Arena::CreateMaybeMessage<::viam::component::posetracker::v1::GetPosesResponse>(Arena*); +template<> ::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace component { +namespace posetracker { +namespace v1 { + +// =================================================================== + +class GetPosesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.posetracker.v1.GetPosesRequest) */ { + public: + inline GetPosesRequest() : GetPosesRequest(nullptr) {} + ~GetPosesRequest() override; + explicit PROTOBUF_CONSTEXPR GetPosesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPosesRequest(const GetPosesRequest& from); + GetPosesRequest(GetPosesRequest&& from) noexcept + : GetPosesRequest() { + *this = ::std::move(from); + } + + inline GetPosesRequest& operator=(const GetPosesRequest& from) { + CopyFrom(from); + return *this; + } + inline GetPosesRequest& operator=(GetPosesRequest&& 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 GetPosesRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetPosesRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPosesRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(GetPosesRequest& a, GetPosesRequest& b) { + a.Swap(&b); + } + inline void Swap(GetPosesRequest* 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(GetPosesRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPosesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPosesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPosesRequest& from) { + GetPosesRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPosesRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.posetracker.v1.GetPosesRequest"; + } + protected: + explicit GetPosesRequest(::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 { + kBodyNamesFieldNumber = 2, + kNameFieldNumber = 1, + }; + // repeated string body_names = 2 [json_name = "bodyNames"]; + int body_names_size() const; + private: + int _internal_body_names_size() const; + public: + void clear_body_names(); + const std::string& body_names(int index) const; + std::string* mutable_body_names(int index); + void set_body_names(int index, const std::string& value); + void set_body_names(int index, std::string&& value); + void set_body_names(int index, const char* value); + void set_body_names(int index, const char* value, size_t size); + std::string* add_body_names(); + void add_body_names(const std::string& value); + void add_body_names(std::string&& value); + void add_body_names(const char* value); + void add_body_names(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& body_names() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_body_names(); + private: + const std::string& _internal_body_names(int index) const; + std::string* _internal_add_body_names(); + public: + + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // @@protoc_insertion_point(class_scope:viam.component.posetracker.v1.GetPosesRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField body_names_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPosesResponse_BodyPosesEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + GetPosesResponse_BodyPosesEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR GetPosesResponse_BodyPosesEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit GetPosesResponse_BodyPosesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const GetPosesResponse_BodyPosesEntry_DoNotUse& other); + static const GetPosesResponse_BodyPosesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_GetPosesResponse_BodyPosesEntry_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.component.posetracker.v1.GetPosesResponse.BodyPosesEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto; +}; + +// ------------------------------------------------------------------- + +class GetPosesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.posetracker.v1.GetPosesResponse) */ { + public: + inline GetPosesResponse() : GetPosesResponse(nullptr) {} + ~GetPosesResponse() override; + explicit PROTOBUF_CONSTEXPR GetPosesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPosesResponse(const GetPosesResponse& from); + GetPosesResponse(GetPosesResponse&& from) noexcept + : GetPosesResponse() { + *this = ::std::move(from); + } + + inline GetPosesResponse& operator=(const GetPosesResponse& from) { + CopyFrom(from); + return *this; + } + inline GetPosesResponse& operator=(GetPosesResponse&& 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 GetPosesResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetPosesResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPosesResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(GetPosesResponse& a, GetPosesResponse& b) { + a.Swap(&b); + } + inline void Swap(GetPosesResponse* 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(GetPosesResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPosesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPosesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPosesResponse& from) { + GetPosesResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPosesResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.posetracker.v1.GetPosesResponse"; + } + protected: + explicit GetPosesResponse(::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 { + kBodyPosesFieldNumber = 1, + }; + // map body_poses = 1 [json_name = "bodyPoses"]; + int body_poses_size() const; + private: + int _internal_body_poses_size() const; + public: + void clear_body_poses(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::PoseInFrame >& + _internal_body_poses() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::PoseInFrame >* + _internal_mutable_body_poses(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::PoseInFrame >& + body_poses() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::PoseInFrame >* + mutable_body_poses(); + + // @@protoc_insertion_point(class_scope:viam.component.posetracker.v1.GetPosesResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + GetPosesResponse_BodyPosesEntry_DoNotUse, + std::string, ::viam::common::v1::PoseInFrame, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> body_poses_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// GetPosesRequest + +// string name = 1 [json_name = "name"]; +inline void GetPosesRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetPosesRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.posetracker.v1.GetPosesRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetPosesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.posetracker.v1.GetPosesRequest.name) +} +inline std::string* GetPosesRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.posetracker.v1.GetPosesRequest.name) + return _s; +} +inline const std::string& GetPosesRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetPosesRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetPosesRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetPosesRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.posetracker.v1.GetPosesRequest.name) + return _impl_.name_.Release(); +} +inline void GetPosesRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.posetracker.v1.GetPosesRequest.name) +} + +// repeated string body_names = 2 [json_name = "bodyNames"]; +inline int GetPosesRequest::_internal_body_names_size() const { + return _impl_.body_names_.size(); +} +inline int GetPosesRequest::body_names_size() const { + return _internal_body_names_size(); +} +inline void GetPosesRequest::clear_body_names() { + _impl_.body_names_.Clear(); +} +inline std::string* GetPosesRequest::add_body_names() { + std::string* _s = _internal_add_body_names(); + // @@protoc_insertion_point(field_add_mutable:viam.component.posetracker.v1.GetPosesRequest.body_names) + return _s; +} +inline const std::string& GetPosesRequest::_internal_body_names(int index) const { + return _impl_.body_names_.Get(index); +} +inline const std::string& GetPosesRequest::body_names(int index) const { + // @@protoc_insertion_point(field_get:viam.component.posetracker.v1.GetPosesRequest.body_names) + return _internal_body_names(index); +} +inline std::string* GetPosesRequest::mutable_body_names(int index) { + // @@protoc_insertion_point(field_mutable:viam.component.posetracker.v1.GetPosesRequest.body_names) + return _impl_.body_names_.Mutable(index); +} +inline void GetPosesRequest::set_body_names(int index, const std::string& value) { + _impl_.body_names_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.component.posetracker.v1.GetPosesRequest.body_names) +} +inline void GetPosesRequest::set_body_names(int index, std::string&& value) { + _impl_.body_names_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.component.posetracker.v1.GetPosesRequest.body_names) +} +inline void GetPosesRequest::set_body_names(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.body_names_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.component.posetracker.v1.GetPosesRequest.body_names) +} +inline void GetPosesRequest::set_body_names(int index, const char* value, size_t size) { + _impl_.body_names_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.component.posetracker.v1.GetPosesRequest.body_names) +} +inline std::string* GetPosesRequest::_internal_add_body_names() { + return _impl_.body_names_.Add(); +} +inline void GetPosesRequest::add_body_names(const std::string& value) { + _impl_.body_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.component.posetracker.v1.GetPosesRequest.body_names) +} +inline void GetPosesRequest::add_body_names(std::string&& value) { + _impl_.body_names_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.component.posetracker.v1.GetPosesRequest.body_names) +} +inline void GetPosesRequest::add_body_names(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.body_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.component.posetracker.v1.GetPosesRequest.body_names) +} +inline void GetPosesRequest::add_body_names(const char* value, size_t size) { + _impl_.body_names_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.component.posetracker.v1.GetPosesRequest.body_names) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +GetPosesRequest::body_names() const { + // @@protoc_insertion_point(field_list:viam.component.posetracker.v1.GetPosesRequest.body_names) + return _impl_.body_names_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +GetPosesRequest::mutable_body_names() { + // @@protoc_insertion_point(field_mutable_list:viam.component.posetracker.v1.GetPosesRequest.body_names) + return &_impl_.body_names_; +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// GetPosesResponse + +// map body_poses = 1 [json_name = "bodyPoses"]; +inline int GetPosesResponse::_internal_body_poses_size() const { + return _impl_.body_poses_.size(); +} +inline int GetPosesResponse::body_poses_size() const { + return _internal_body_poses_size(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::PoseInFrame >& +GetPosesResponse::_internal_body_poses() const { + return _impl_.body_poses_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::PoseInFrame >& +GetPosesResponse::body_poses() const { + // @@protoc_insertion_point(field_map:viam.component.posetracker.v1.GetPosesResponse.body_poses) + return _internal_body_poses(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::PoseInFrame >* +GetPosesResponse::_internal_mutable_body_poses() { + return _impl_.body_poses_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::PoseInFrame >* +GetPosesResponse::mutable_body_poses() { + // @@protoc_insertion_point(field_mutable_map:viam.component.posetracker.v1.GetPosesResponse.body_poses) + return _internal_mutable_body_poses(); +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace posetracker +} // namespace component +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto diff --git a/src/gen/component/sensor/v1/sensor.grpc.pb.cc b/src/gen/component/sensor/v1/sensor.grpc.pb.cc new file mode 100644 index 000000000..535e64593 --- /dev/null +++ b/src/gen/component/sensor/v1/sensor.grpc.pb.cc @@ -0,0 +1,92 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/sensor/v1/sensor.proto + +#include "component/sensor/v1/sensor.pb.h" +#include "component/sensor/v1/sensor.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace component { +namespace sensor { +namespace v1 { + +static const char* SensorService_method_names[] = { + "/viam.component.sensor.v1.SensorService/GetReadings", +}; + +std::unique_ptr< SensorService::Stub> SensorService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< SensorService::Stub> stub(new SensorService::Stub(channel, options)); + return stub; +} + +SensorService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_GetReadings_(SensorService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status SensorService::Stub::GetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::viam::component::sensor::v1::GetReadingsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::sensor::v1::GetReadingsRequest, ::viam::component::sensor::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetReadings_, context, request, response); +} + +void SensorService::Stub::async::GetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest* request, ::viam::component::sensor::v1::GetReadingsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::sensor::v1::GetReadingsRequest, ::viam::component::sensor::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, std::move(f)); +} + +void SensorService::Stub::async::GetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest* request, ::viam::component::sensor::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::sensor::v1::GetReadingsResponse>* SensorService::Stub::PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::sensor::v1::GetReadingsResponse, ::viam::component::sensor::v1::GetReadingsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetReadings_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::sensor::v1::GetReadingsResponse>* SensorService::Stub::AsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetReadingsRaw(context, request, cq); + result->StartCall(); + return result; +} + +SensorService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + SensorService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< SensorService::Service, ::viam::component::sensor::v1::GetReadingsRequest, ::viam::component::sensor::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](SensorService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::sensor::v1::GetReadingsRequest* req, + ::viam::component::sensor::v1::GetReadingsResponse* resp) { + return service->GetReadings(ctx, req, resp); + }, this))); +} + +SensorService::Service::~Service() { +} + +::grpc::Status SensorService::Service::GetReadings(::grpc::ServerContext* context, const ::viam::component::sensor::v1::GetReadingsRequest* request, ::viam::component::sensor::v1::GetReadingsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace component +} // namespace sensor +} // namespace v1 + diff --git a/src/gen/component/sensor/v1/sensor.grpc.pb.h b/src/gen/component/sensor/v1/sensor.grpc.pb.h new file mode 100644 index 000000000..abd3eeda9 --- /dev/null +++ b/src/gen/component/sensor/v1/sensor.grpc.pb.h @@ -0,0 +1,250 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/sensor/v1/sensor.proto +#ifndef GRPC_component_2fsensor_2fv1_2fsensor_2eproto__INCLUDED +#define GRPC_component_2fsensor_2fv1_2fsensor_2eproto__INCLUDED + +#include "component/sensor/v1/sensor.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace component { +namespace sensor { +namespace v1 { + +// SensorService services all generic sensors associated with a robot +class SensorService final { + public: + static constexpr char const* service_full_name() { + return "viam.component.sensor.v1.SensorService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // GetReadings returns the readings of a sensor of the underlying robot. + virtual ::grpc::Status GetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::viam::component::sensor::v1::GetReadingsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::sensor::v1::GetReadingsResponse>> AsyncGetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::sensor::v1::GetReadingsResponse>>(AsyncGetReadingsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::sensor::v1::GetReadingsResponse>> PrepareAsyncGetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::sensor::v1::GetReadingsResponse>>(PrepareAsyncGetReadingsRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // GetReadings returns the readings of a sensor of the underlying robot. + virtual void GetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest* request, ::viam::component::sensor::v1::GetReadingsResponse* response, std::function) = 0; + virtual void GetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest* request, ::viam::component::sensor::v1::GetReadingsResponse* 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::ClientAsyncResponseReaderInterface< ::viam::component::sensor::v1::GetReadingsResponse>* AsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::sensor::v1::GetReadingsResponse>* PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& 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()); + ::grpc::Status GetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::viam::component::sensor::v1::GetReadingsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::sensor::v1::GetReadingsResponse>> AsyncGetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::sensor::v1::GetReadingsResponse>>(AsyncGetReadingsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::sensor::v1::GetReadingsResponse>> PrepareAsyncGetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::sensor::v1::GetReadingsResponse>>(PrepareAsyncGetReadingsRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void GetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest* request, ::viam::component::sensor::v1::GetReadingsResponse* response, std::function) override; + void GetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest* request, ::viam::component::sensor::v1::GetReadingsResponse* 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::ClientAsyncResponseReader< ::viam::component::sensor::v1::GetReadingsResponse>* AsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::sensor::v1::GetReadingsResponse>* PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_GetReadings_; + }; + 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(); + // GetReadings returns the readings of a sensor of the underlying robot. + virtual ::grpc::Status GetReadings(::grpc::ServerContext* context, const ::viam::component::sensor::v1::GetReadingsRequest* request, ::viam::component::sensor::v1::GetReadingsResponse* response); + }; + template + class WithAsyncMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetReadings() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::component::sensor::v1::GetReadingsRequest* /*request*/, ::viam::component::sensor::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetReadings(::grpc::ServerContext* context, ::viam::component::sensor::v1::GetReadingsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::sensor::v1::GetReadingsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetReadings AsyncService; + template + class WithCallbackMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetReadings() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::sensor::v1::GetReadingsRequest, ::viam::component::sensor::v1::GetReadingsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::sensor::v1::GetReadingsRequest* request, ::viam::component::sensor::v1::GetReadingsResponse* response) { return this->GetReadings(context, request, response); }));} + void SetMessageAllocatorFor_GetReadings( + ::grpc::MessageAllocator< ::viam::component::sensor::v1::GetReadingsRequest, ::viam::component::sensor::v1::GetReadingsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::sensor::v1::GetReadingsRequest, ::viam::component::sensor::v1::GetReadingsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::component::sensor::v1::GetReadingsRequest* /*request*/, ::viam::component::sensor::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetReadings( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::sensor::v1::GetReadingsRequest* /*request*/, ::viam::component::sensor::v1::GetReadingsResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetReadings CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetReadings() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::component::sensor::v1::GetReadingsRequest* /*request*/, ::viam::component::sensor::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetReadings() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::component::sensor::v1::GetReadingsRequest* /*request*/, ::viam::component::sensor::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetReadings(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetReadings() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetReadings(context, request, response); })); + } + ~WithRawCallbackMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::component::sensor::v1::GetReadingsRequest* /*request*/, ::viam::component::sensor::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetReadings( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetReadings() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::sensor::v1::GetReadingsRequest, ::viam::component::sensor::v1::GetReadingsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::sensor::v1::GetReadingsRequest, ::viam::component::sensor::v1::GetReadingsResponse>* streamer) { + return this->StreamedGetReadings(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::component::sensor::v1::GetReadingsRequest* /*request*/, ::viam::component::sensor::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetReadings(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::sensor::v1::GetReadingsRequest,::viam::component::sensor::v1::GetReadingsResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetReadings StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_GetReadings StreamedService; +}; + +} // namespace v1 +} // namespace sensor +} // namespace component +} // namespace viam + + +#endif // GRPC_component_2fsensor_2fv1_2fsensor_2eproto__INCLUDED diff --git a/src/gen/component/sensor/v1/sensor.pb.cc b/src/gen/component/sensor/v1/sensor.pb.cc new file mode 100644 index 000000000..e484fccfa --- /dev/null +++ b/src/gen/component/sensor/v1/sensor.pb.cc @@ -0,0 +1,608 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/sensor/v1/sensor.proto + +#include "component/sensor/v1/sensor.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 component { +namespace sensor { +namespace v1 { +PROTOBUF_CONSTEXPR GetReadingsRequest::GetReadingsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetReadingsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetReadingsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetReadingsRequestDefaultTypeInternal() {} + union { + GetReadingsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReadingsRequestDefaultTypeInternal _GetReadingsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetReadingsResponse_ReadingsEntry_DoNotUse::GetReadingsResponse_ReadingsEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct GetReadingsResponse_ReadingsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetReadingsResponse_ReadingsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetReadingsResponse_ReadingsEntry_DoNotUseDefaultTypeInternal() {} + union { + GetReadingsResponse_ReadingsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReadingsResponse_ReadingsEntry_DoNotUseDefaultTypeInternal _GetReadingsResponse_ReadingsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR GetReadingsResponse::GetReadingsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.readings_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetReadingsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetReadingsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetReadingsResponseDefaultTypeInternal() {} + union { + GetReadingsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReadingsResponseDefaultTypeInternal _GetReadingsResponse_default_instance_; +} // namespace v1 +} // namespace sensor +} // namespace component +} // namespace viam +static ::_pb::Metadata file_level_metadata_component_2fsensor_2fv1_2fsensor_2eproto[3]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fsensor_2fv1_2fsensor_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fsensor_2fv1_2fsensor_2eproto = nullptr; + +const uint32_t TableStruct_component_2fsensor_2fv1_2fsensor_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::sensor::v1::GetReadingsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::sensor::v1::GetReadingsRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::sensor::v1::GetReadingsResponse_ReadingsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::component::sensor::v1::GetReadingsResponse_ReadingsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::sensor::v1::GetReadingsResponse_ReadingsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::component::sensor::v1::GetReadingsResponse_ReadingsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::sensor::v1::GetReadingsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::sensor::v1::GetReadingsResponse, _impl_.readings_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::sensor::v1::GetReadingsRequest)}, + { 7, 15, -1, sizeof(::viam::component::sensor::v1::GetReadingsResponse_ReadingsEntry_DoNotUse)}, + { 17, -1, -1, sizeof(::viam::component::sensor::v1::GetReadingsResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::component::sensor::v1::_GetReadingsRequest_default_instance_._instance, + &::viam::component::sensor::v1::_GetReadingsResponse_ReadingsEntry_DoNotUse_default_instance_._instance, + &::viam::component::sensor::v1::_GetReadingsResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_component_2fsensor_2fv1_2fsensor_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n component/sensor/v1/sensor.proto\022\030viam" + ".component.sensor.v1\032\034google/api/annotat" + "ions.proto\032\034google/protobuf/struct.proto" + "\"(\n\022GetReadingsRequest\022\022\n\004name\030\001 \001(\tR\004na" + "me\"\303\001\n\023GetReadingsResponse\022W\n\010readings\030\001" + " \003(\0132;.viam.component.sensor.v1.GetReadi" + "ngsResponse.ReadingsEntryR\010readings\032S\n\rR" + "eadingsEntry\022\020\n\003key\030\001 \001(\tR\003key\022,\n\005value\030" + "\002 \001(\0132\026.google.protobuf.ValueR\005value:\0028\001" + "2\263\001\n\rSensorService\022\241\001\n\013GetReadings\022,.via" + "m.component.sensor.v1.GetReadingsRequest" + "\032-.viam.component.sensor.v1.GetReadingsR" + "esponse\"5\202\323\344\223\002/\022-/viam/api/v1/component/" + "sensor/{name}/readingsBC\n\034com.viam.compo" + "nent.sensor.v1Z#go.viam.com/api/componen" + "t/sensor/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_deps[2] = { + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, +}; +static ::_pbi::once_flag descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto = { + false, false, 619, descriptor_table_protodef_component_2fsensor_2fv1_2fsensor_2eproto, + "component/sensor/v1/sensor.proto", + &descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_once, descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_deps, 2, 3, + schemas, file_default_instances, TableStruct_component_2fsensor_2fv1_2fsensor_2eproto::offsets, + file_level_metadata_component_2fsensor_2fv1_2fsensor_2eproto, file_level_enum_descriptors_component_2fsensor_2fv1_2fsensor_2eproto, + file_level_service_descriptors_component_2fsensor_2fv1_2fsensor_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_getter() { + return &descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fsensor_2fv1_2fsensor_2eproto(&descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto); +namespace viam { +namespace component { +namespace sensor { +namespace v1 { + +// =================================================================== + +class GetReadingsRequest::_Internal { + public: +}; + +GetReadingsRequest::GetReadingsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.sensor.v1.GetReadingsRequest) +} +GetReadingsRequest::GetReadingsRequest(const GetReadingsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetReadingsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.sensor.v1.GetReadingsRequest) +} + +inline void GetReadingsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetReadingsRequest::~GetReadingsRequest() { + // @@protoc_insertion_point(destructor:viam.component.sensor.v1.GetReadingsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetReadingsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void GetReadingsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetReadingsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.sensor.v1.GetReadingsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetReadingsRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.sensor.v1.GetReadingsRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetReadingsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.sensor.v1.GetReadingsRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.sensor.v1.GetReadingsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.sensor.v1.GetReadingsRequest) + return target; +} + +size_t GetReadingsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.sensor.v1.GetReadingsRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetReadingsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetReadingsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetReadingsRequest::GetClassData() const { return &_class_data_; } + + +void GetReadingsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.sensor.v1.GetReadingsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetReadingsRequest::CopyFrom(const GetReadingsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.sensor.v1.GetReadingsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetReadingsRequest::IsInitialized() const { + return true; +} + +void GetReadingsRequest::InternalSwap(GetReadingsRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetReadingsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_getter, &descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_once, + file_level_metadata_component_2fsensor_2fv1_2fsensor_2eproto[0]); +} + +// =================================================================== + +GetReadingsResponse_ReadingsEntry_DoNotUse::GetReadingsResponse_ReadingsEntry_DoNotUse() {} +GetReadingsResponse_ReadingsEntry_DoNotUse::GetReadingsResponse_ReadingsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void GetReadingsResponse_ReadingsEntry_DoNotUse::MergeFrom(const GetReadingsResponse_ReadingsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata GetReadingsResponse_ReadingsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_getter, &descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_once, + file_level_metadata_component_2fsensor_2fv1_2fsensor_2eproto[1]); +} + +// =================================================================== + +class GetReadingsResponse::_Internal { + public: +}; + +void GetReadingsResponse::clear_readings() { + _impl_.readings_.Clear(); +} +GetReadingsResponse::GetReadingsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &GetReadingsResponse::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:viam.component.sensor.v1.GetReadingsResponse) +} +GetReadingsResponse::GetReadingsResponse(const GetReadingsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetReadingsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + /*decltype(_impl_.readings_)*/{} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.readings_.MergeFrom(from._impl_.readings_); + // @@protoc_insertion_point(copy_constructor:viam.component.sensor.v1.GetReadingsResponse) +} + +inline void GetReadingsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + /*decltype(_impl_.readings_)*/{::_pbi::ArenaInitialized(), arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetReadingsResponse::~GetReadingsResponse() { + // @@protoc_insertion_point(destructor:viam.component.sensor.v1.GetReadingsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void GetReadingsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.readings_.Destruct(); + _impl_.readings_.~MapField(); +} + +void GetReadingsResponse::ArenaDtor(void* object) { + GetReadingsResponse* _this = reinterpret_cast< GetReadingsResponse* >(object); + _this->_impl_.readings_.Destruct(); +} +void GetReadingsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetReadingsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.sensor.v1.GetReadingsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.readings_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetReadingsResponse::_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 readings = 1 [json_name = "readings"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.readings_, 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* GetReadingsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.sensor.v1.GetReadingsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // map readings = 1 [json_name = "readings"]; + if (!this->_internal_readings().empty()) { + using MapType = ::_pb::Map; + using WireHelper = GetReadingsResponse_ReadingsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_readings(); + 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.component.sensor.v1.GetReadingsResponse.ReadingsEntry.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.component.sensor.v1.GetReadingsResponse) + return target; +} + +size_t GetReadingsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.sensor.v1.GetReadingsResponse) + 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 readings = 1 [json_name = "readings"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_readings_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >::const_iterator + it = this->_internal_readings().begin(); + it != this->_internal_readings().end(); ++it) { + total_size += GetReadingsResponse_ReadingsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetReadingsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetReadingsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetReadingsResponse::GetClassData() const { return &_class_data_; } + + +void GetReadingsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.sensor.v1.GetReadingsResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.readings_.MergeFrom(from._impl_.readings_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetReadingsResponse::CopyFrom(const GetReadingsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.sensor.v1.GetReadingsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetReadingsResponse::IsInitialized() const { + return true; +} + +void GetReadingsResponse::InternalSwap(GetReadingsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.readings_.InternalSwap(&other->_impl_.readings_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetReadingsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_getter, &descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_once, + file_level_metadata_component_2fsensor_2fv1_2fsensor_2eproto[2]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace sensor +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::sensor::v1::GetReadingsRequest* +Arena::CreateMaybeMessage< ::viam::component::sensor::v1::GetReadingsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::sensor::v1::GetReadingsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::sensor::v1::GetReadingsResponse_ReadingsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::component::sensor::v1::GetReadingsResponse_ReadingsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::sensor::v1::GetReadingsResponse_ReadingsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::sensor::v1::GetReadingsResponse* +Arena::CreateMaybeMessage< ::viam::component::sensor::v1::GetReadingsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::sensor::v1::GetReadingsResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/component/sensor/v1/sensor.pb.h b/src/gen/component/sensor/v1/sensor.pb.h new file mode 100644 index 000000000..7ed2e4b31 --- /dev/null +++ b/src/gen/component/sensor/v1/sensor.pb.h @@ -0,0 +1,532 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/sensor/v1/sensor.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fsensor_2fv1_2fsensor_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fsensor_2fv1_2fsensor_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 // IWYU pragma: export +#include +#include +#include +#include "google/api/annotations.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_component_2fsensor_2fv1_2fsensor_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_component_2fsensor_2fv1_2fsensor_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto; +namespace viam { +namespace component { +namespace sensor { +namespace v1 { +class GetReadingsRequest; +struct GetReadingsRequestDefaultTypeInternal; +extern GetReadingsRequestDefaultTypeInternal _GetReadingsRequest_default_instance_; +class GetReadingsResponse; +struct GetReadingsResponseDefaultTypeInternal; +extern GetReadingsResponseDefaultTypeInternal _GetReadingsResponse_default_instance_; +class GetReadingsResponse_ReadingsEntry_DoNotUse; +struct GetReadingsResponse_ReadingsEntry_DoNotUseDefaultTypeInternal; +extern GetReadingsResponse_ReadingsEntry_DoNotUseDefaultTypeInternal _GetReadingsResponse_ReadingsEntry_DoNotUse_default_instance_; +} // namespace v1 +} // namespace sensor +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::sensor::v1::GetReadingsRequest* Arena::CreateMaybeMessage<::viam::component::sensor::v1::GetReadingsRequest>(Arena*); +template<> ::viam::component::sensor::v1::GetReadingsResponse* Arena::CreateMaybeMessage<::viam::component::sensor::v1::GetReadingsResponse>(Arena*); +template<> ::viam::component::sensor::v1::GetReadingsResponse_ReadingsEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::component::sensor::v1::GetReadingsResponse_ReadingsEntry_DoNotUse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace component { +namespace sensor { +namespace v1 { + +// =================================================================== + +class GetReadingsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.sensor.v1.GetReadingsRequest) */ { + public: + inline GetReadingsRequest() : GetReadingsRequest(nullptr) {} + ~GetReadingsRequest() override; + explicit PROTOBUF_CONSTEXPR GetReadingsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetReadingsRequest(const GetReadingsRequest& from); + GetReadingsRequest(GetReadingsRequest&& from) noexcept + : GetReadingsRequest() { + *this = ::std::move(from); + } + + inline GetReadingsRequest& operator=(const GetReadingsRequest& from) { + CopyFrom(from); + return *this; + } + inline GetReadingsRequest& operator=(GetReadingsRequest&& 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 GetReadingsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetReadingsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetReadingsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(GetReadingsRequest& a, GetReadingsRequest& b) { + a.Swap(&b); + } + inline void Swap(GetReadingsRequest* 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(GetReadingsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetReadingsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetReadingsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetReadingsRequest& from) { + GetReadingsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetReadingsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.sensor.v1.GetReadingsRequest"; + } + protected: + explicit GetReadingsRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.component.sensor.v1.GetReadingsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fsensor_2fv1_2fsensor_2eproto; +}; +// ------------------------------------------------------------------- + +class GetReadingsResponse_ReadingsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + GetReadingsResponse_ReadingsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR GetReadingsResponse_ReadingsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit GetReadingsResponse_ReadingsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const GetReadingsResponse_ReadingsEntry_DoNotUse& other); + static const GetReadingsResponse_ReadingsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_GetReadingsResponse_ReadingsEntry_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.component.sensor.v1.GetReadingsResponse.ReadingsEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_component_2fsensor_2fv1_2fsensor_2eproto; +}; + +// ------------------------------------------------------------------- + +class GetReadingsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.sensor.v1.GetReadingsResponse) */ { + public: + inline GetReadingsResponse() : GetReadingsResponse(nullptr) {} + ~GetReadingsResponse() override; + explicit PROTOBUF_CONSTEXPR GetReadingsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetReadingsResponse(const GetReadingsResponse& from); + GetReadingsResponse(GetReadingsResponse&& from) noexcept + : GetReadingsResponse() { + *this = ::std::move(from); + } + + inline GetReadingsResponse& operator=(const GetReadingsResponse& from) { + CopyFrom(from); + return *this; + } + inline GetReadingsResponse& operator=(GetReadingsResponse&& 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 GetReadingsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetReadingsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetReadingsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(GetReadingsResponse& a, GetReadingsResponse& b) { + a.Swap(&b); + } + inline void Swap(GetReadingsResponse* 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(GetReadingsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetReadingsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetReadingsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetReadingsResponse& from) { + GetReadingsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetReadingsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.sensor.v1.GetReadingsResponse"; + } + protected: + explicit GetReadingsResponse(::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 { + kReadingsFieldNumber = 1, + }; + // map readings = 1 [json_name = "readings"]; + int readings_size() const; + private: + int _internal_readings_size() const; + public: + void clear_readings(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& + _internal_readings() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* + _internal_mutable_readings(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& + readings() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* + mutable_readings(); + + // @@protoc_insertion_point(class_scope:viam.component.sensor.v1.GetReadingsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + GetReadingsResponse_ReadingsEntry_DoNotUse, + std::string, ::PROTOBUF_NAMESPACE_ID::Value, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> readings_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fsensor_2fv1_2fsensor_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// GetReadingsRequest + +// string name = 1 [json_name = "name"]; +inline void GetReadingsRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetReadingsRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.sensor.v1.GetReadingsRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetReadingsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.sensor.v1.GetReadingsRequest.name) +} +inline std::string* GetReadingsRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.sensor.v1.GetReadingsRequest.name) + return _s; +} +inline const std::string& GetReadingsRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetReadingsRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetReadingsRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetReadingsRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.sensor.v1.GetReadingsRequest.name) + return _impl_.name_.Release(); +} +inline void GetReadingsRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.sensor.v1.GetReadingsRequest.name) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// GetReadingsResponse + +// map readings = 1 [json_name = "readings"]; +inline int GetReadingsResponse::_internal_readings_size() const { + return _impl_.readings_.size(); +} +inline int GetReadingsResponse::readings_size() const { + return _internal_readings_size(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& +GetReadingsResponse::_internal_readings() const { + return _impl_.readings_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& +GetReadingsResponse::readings() const { + // @@protoc_insertion_point(field_map:viam.component.sensor.v1.GetReadingsResponse.readings) + return _internal_readings(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* +GetReadingsResponse::_internal_mutable_readings() { + return _impl_.readings_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* +GetReadingsResponse::mutable_readings() { + // @@protoc_insertion_point(field_mutable_map:viam.component.sensor.v1.GetReadingsResponse.readings) + return _internal_mutable_readings(); +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace sensor +} // namespace component +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fsensor_2fv1_2fsensor_2eproto diff --git a/src/gen/component/servo/v1/servo.grpc.pb.cc b/src/gen/component/servo/v1/servo.grpc.pb.cc new file mode 100644 index 000000000..851637329 --- /dev/null +++ b/src/gen/component/servo/v1/servo.grpc.pb.cc @@ -0,0 +1,176 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/servo/v1/servo.proto + +#include "component/servo/v1/servo.pb.h" +#include "component/servo/v1/servo.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace component { +namespace servo { +namespace v1 { + +static const char* ServoService_method_names[] = { + "/viam.component.servo.v1.ServoService/Move", + "/viam.component.servo.v1.ServoService/GetPosition", + "/viam.component.servo.v1.ServoService/Stop", +}; + +std::unique_ptr< ServoService::Stub> ServoService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< ServoService::Stub> stub(new ServoService::Stub(channel, options)); + return stub; +} + +ServoService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_Move_(ServoService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetPosition_(ServoService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Stop_(ServoService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status ServoService::Stub::Move(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::viam::component::servo::v1::MoveResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::servo::v1::MoveRequest, ::viam::component::servo::v1::MoveResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Move_, context, request, response); +} + +void ServoService::Stub::async::Move(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest* request, ::viam::component::servo::v1::MoveResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::servo::v1::MoveRequest, ::viam::component::servo::v1::MoveResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Move_, context, request, response, std::move(f)); +} + +void ServoService::Stub::async::Move(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest* request, ::viam::component::servo::v1::MoveResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Move_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::MoveResponse>* ServoService::Stub::PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::servo::v1::MoveResponse, ::viam::component::servo::v1::MoveRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Move_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::MoveResponse>* ServoService::Stub::AsyncMoveRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncMoveRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status ServoService::Stub::GetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest& request, ::viam::component::servo::v1::GetPositionResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::servo::v1::GetPositionRequest, ::viam::component::servo::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetPosition_, context, request, response); +} + +void ServoService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest* request, ::viam::component::servo::v1::GetPositionResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::servo::v1::GetPositionRequest, ::viam::component::servo::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); +} + +void ServoService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest* request, ::viam::component::servo::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::GetPositionResponse>* ServoService::Stub::PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::servo::v1::GetPositionResponse, ::viam::component::servo::v1::GetPositionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetPosition_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::GetPositionResponse>* ServoService::Stub::AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetPositionRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status ServoService::Stub::Stop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest& request, ::viam::component::servo::v1::StopResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::component::servo::v1::StopRequest, ::viam::component::servo::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Stop_, context, request, response); +} + +void ServoService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest* request, ::viam::component::servo::v1::StopResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::component::servo::v1::StopRequest, ::viam::component::servo::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); +} + +void ServoService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest* request, ::viam::component::servo::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::StopResponse>* ServoService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::servo::v1::StopResponse, ::viam::component::servo::v1::StopRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Stop_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::StopResponse>* ServoService::Stub::AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncStopRaw(context, request, cq); + result->StartCall(); + return result; +} + +ServoService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + ServoService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ServoService::Service, ::viam::component::servo::v1::MoveRequest, ::viam::component::servo::v1::MoveResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ServoService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::servo::v1::MoveRequest* req, + ::viam::component::servo::v1::MoveResponse* resp) { + return service->Move(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ServoService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ServoService::Service, ::viam::component::servo::v1::GetPositionRequest, ::viam::component::servo::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ServoService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::servo::v1::GetPositionRequest* req, + ::viam::component::servo::v1::GetPositionResponse* resp) { + return service->GetPosition(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ServoService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ServoService::Service, ::viam::component::servo::v1::StopRequest, ::viam::component::servo::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ServoService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::servo::v1::StopRequest* req, + ::viam::component::servo::v1::StopResponse* resp) { + return service->Stop(ctx, req, resp); + }, this))); +} + +ServoService::Service::~Service() { +} + +::grpc::Status ServoService::Service::Move(::grpc::ServerContext* context, const ::viam::component::servo::v1::MoveRequest* request, ::viam::component::servo::v1::MoveResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ServoService::Service::GetPosition(::grpc::ServerContext* context, const ::viam::component::servo::v1::GetPositionRequest* request, ::viam::component::servo::v1::GetPositionResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ServoService::Service::Stop(::grpc::ServerContext* context, const ::viam::component::servo::v1::StopRequest* request, ::viam::component::servo::v1::StopResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace component +} // namespace servo +} // namespace v1 + diff --git a/src/gen/component/servo/v1/servo.grpc.pb.h b/src/gen/component/servo/v1/servo.grpc.pb.h new file mode 100644 index 000000000..90305366a --- /dev/null +++ b/src/gen/component/servo/v1/servo.grpc.pb.h @@ -0,0 +1,573 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/servo/v1/servo.proto +#ifndef GRPC_component_2fservo_2fv1_2fservo_2eproto__INCLUDED +#define GRPC_component_2fservo_2fv1_2fservo_2eproto__INCLUDED + +#include "component/servo/v1/servo.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace component { +namespace servo { +namespace v1 { + +// A ServoService maintains all servos associated with a robot +class ServoService final { + public: + static constexpr char const* service_full_name() { + return "viam.component.servo.v1.ServoService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // Move requests the servo of the underlying robot to move. + // This will block until done or a new operation cancels this one + virtual ::grpc::Status Move(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::viam::component::servo::v1::MoveResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::servo::v1::MoveResponse>> AsyncMove(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::servo::v1::MoveResponse>>(AsyncMoveRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::servo::v1::MoveResponse>> PrepareAsyncMove(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::servo::v1::MoveResponse>>(PrepareAsyncMoveRaw(context, request, cq)); + } + // GetPosition returns the current set angle (degrees) of the servo of the underlying robot. + virtual ::grpc::Status GetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest& request, ::viam::component::servo::v1::GetPositionResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::servo::v1::GetPositionResponse>> AsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::servo::v1::GetPositionResponse>>(AsyncGetPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::servo::v1::GetPositionResponse>> PrepareAsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::servo::v1::GetPositionResponse>>(PrepareAsyncGetPositionRaw(context, request, cq)); + } + // Stop stops a robot's servo + virtual ::grpc::Status Stop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest& request, ::viam::component::servo::v1::StopResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::servo::v1::StopResponse>> AsyncStop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::servo::v1::StopResponse>>(AsyncStopRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::servo::v1::StopResponse>> PrepareAsyncStop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::servo::v1::StopResponse>>(PrepareAsyncStopRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // Move requests the servo of the underlying robot to move. + // This will block until done or a new operation cancels this one + virtual void Move(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest* request, ::viam::component::servo::v1::MoveResponse* response, std::function) = 0; + virtual void Move(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest* request, ::viam::component::servo::v1::MoveResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GetPosition returns the current set angle (degrees) of the servo of the underlying robot. + virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest* request, ::viam::component::servo::v1::GetPositionResponse* response, std::function) = 0; + virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest* request, ::viam::component::servo::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Stop stops a robot's servo + virtual void Stop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest* request, ::viam::component::servo::v1::StopResponse* response, std::function) = 0; + virtual void Stop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest* request, ::viam::component::servo::v1::StopResponse* 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::ClientAsyncResponseReaderInterface< ::viam::component::servo::v1::MoveResponse>* AsyncMoveRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::servo::v1::MoveResponse>* PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::servo::v1::GetPositionResponse>* AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::servo::v1::GetPositionResponse>* PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::servo::v1::StopResponse>* AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::servo::v1::StopResponse>* PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest& 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()); + ::grpc::Status Move(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::viam::component::servo::v1::MoveResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::MoveResponse>> AsyncMove(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::MoveResponse>>(AsyncMoveRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::MoveResponse>> PrepareAsyncMove(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::MoveResponse>>(PrepareAsyncMoveRaw(context, request, cq)); + } + ::grpc::Status GetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest& request, ::viam::component::servo::v1::GetPositionResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::GetPositionResponse>> AsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::GetPositionResponse>>(AsyncGetPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::GetPositionResponse>> PrepareAsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::GetPositionResponse>>(PrepareAsyncGetPositionRaw(context, request, cq)); + } + ::grpc::Status Stop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest& request, ::viam::component::servo::v1::StopResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::StopResponse>> AsyncStop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::StopResponse>>(AsyncStopRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::StopResponse>> PrepareAsyncStop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::StopResponse>>(PrepareAsyncStopRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void Move(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest* request, ::viam::component::servo::v1::MoveResponse* response, std::function) override; + void Move(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest* request, ::viam::component::servo::v1::MoveResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest* request, ::viam::component::servo::v1::GetPositionResponse* response, std::function) override; + void GetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest* request, ::viam::component::servo::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void Stop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest* request, ::viam::component::servo::v1::StopResponse* response, std::function) override; + void Stop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest* request, ::viam::component::servo::v1::StopResponse* 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::ClientAsyncResponseReader< ::viam::component::servo::v1::MoveResponse>* AsyncMoveRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::MoveResponse>* PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::GetPositionResponse>* AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::GetPositionResponse>* PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::StopResponse>* AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::StopResponse>* PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_Move_; + const ::grpc::internal::RpcMethod rpcmethod_GetPosition_; + const ::grpc::internal::RpcMethod rpcmethod_Stop_; + }; + 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(); + // Move requests the servo of the underlying robot to move. + // This will block until done or a new operation cancels this one + virtual ::grpc::Status Move(::grpc::ServerContext* context, const ::viam::component::servo::v1::MoveRequest* request, ::viam::component::servo::v1::MoveResponse* response); + // GetPosition returns the current set angle (degrees) of the servo of the underlying robot. + virtual ::grpc::Status GetPosition(::grpc::ServerContext* context, const ::viam::component::servo::v1::GetPositionRequest* request, ::viam::component::servo::v1::GetPositionResponse* response); + // Stop stops a robot's servo + virtual ::grpc::Status Stop(::grpc::ServerContext* context, const ::viam::component::servo::v1::StopRequest* request, ::viam::component::servo::v1::StopResponse* response); + }; + template + class WithAsyncMethod_Move : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Move() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_Move() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::viam::component::servo::v1::MoveRequest* /*request*/, ::viam::component::servo::v1::MoveResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestMove(::grpc::ServerContext* context, ::viam::component::servo::v1::MoveRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::servo::v1::MoveResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetPosition() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::servo::v1::GetPositionRequest* /*request*/, ::viam::component::servo::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetPosition(::grpc::ServerContext* context, ::viam::component::servo::v1::GetPositionRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::servo::v1::GetPositionResponse>* 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 WithAsyncMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Stop() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::servo::v1::StopRequest* /*request*/, ::viam::component::servo::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestStop(::grpc::ServerContext* context, ::viam::component::servo::v1::StopRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::servo::v1::StopResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_Move > > AsyncService; + template + class WithCallbackMethod_Move : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Move() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::servo::v1::MoveRequest, ::viam::component::servo::v1::MoveResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::servo::v1::MoveRequest* request, ::viam::component::servo::v1::MoveResponse* response) { return this->Move(context, request, response); }));} + void SetMessageAllocatorFor_Move( + ::grpc::MessageAllocator< ::viam::component::servo::v1::MoveRequest, ::viam::component::servo::v1::MoveResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::servo::v1::MoveRequest, ::viam::component::servo::v1::MoveResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Move() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::viam::component::servo::v1::MoveRequest* /*request*/, ::viam::component::servo::v1::MoveResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Move( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::servo::v1::MoveRequest* /*request*/, ::viam::component::servo::v1::MoveResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetPosition() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::servo::v1::GetPositionRequest, ::viam::component::servo::v1::GetPositionResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::servo::v1::GetPositionRequest* request, ::viam::component::servo::v1::GetPositionResponse* response) { return this->GetPosition(context, request, response); }));} + void SetMessageAllocatorFor_GetPosition( + ::grpc::MessageAllocator< ::viam::component::servo::v1::GetPositionRequest, ::viam::component::servo::v1::GetPositionResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::servo::v1::GetPositionRequest, ::viam::component::servo::v1::GetPositionResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::servo::v1::GetPositionRequest* /*request*/, ::viam::component::servo::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetPosition( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::servo::v1::GetPositionRequest* /*request*/, ::viam::component::servo::v1::GetPositionResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Stop() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::viam::component::servo::v1::StopRequest, ::viam::component::servo::v1::StopResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::component::servo::v1::StopRequest* request, ::viam::component::servo::v1::StopResponse* response) { return this->Stop(context, request, response); }));} + void SetMessageAllocatorFor_Stop( + ::grpc::MessageAllocator< ::viam::component::servo::v1::StopRequest, ::viam::component::servo::v1::StopResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::servo::v1::StopRequest, ::viam::component::servo::v1::StopResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::servo::v1::StopRequest* /*request*/, ::viam::component::servo::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Stop( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::servo::v1::StopRequest* /*request*/, ::viam::component::servo::v1::StopResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_Move > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_Move : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Move() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_Move() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::viam::component::servo::v1::MoveRequest* /*request*/, ::viam::component::servo::v1::MoveResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetPosition() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::servo::v1::GetPositionRequest* /*request*/, ::viam::component::servo::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Stop() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::servo::v1::StopRequest* /*request*/, ::viam::component::servo::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_Move : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Move() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_Move() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::viam::component::servo::v1::MoveRequest* /*request*/, ::viam::component::servo::v1::MoveResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestMove(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetPosition() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::servo::v1::GetPositionRequest* /*request*/, ::viam::component::servo::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetPosition(::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 WithRawMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Stop() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::servo::v1::StopRequest* /*request*/, ::viam::component::servo::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestStop(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_Move : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Move() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Move(context, request, response); })); + } + ~WithRawCallbackMethod_Move() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::viam::component::servo::v1::MoveRequest* /*request*/, ::viam::component::servo::v1::MoveResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Move( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetPosition() { + ::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->GetPosition(context, request, response); })); + } + ~WithRawCallbackMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::servo::v1::GetPositionRequest* /*request*/, ::viam::component::servo::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetPosition( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Stop() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Stop(context, request, response); })); + } + ~WithRawCallbackMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::servo::v1::StopRequest* /*request*/, ::viam::component::servo::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Stop( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_Move : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Move() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::servo::v1::MoveRequest, ::viam::component::servo::v1::MoveResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::servo::v1::MoveRequest, ::viam::component::servo::v1::MoveResponse>* streamer) { + return this->StreamedMove(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Move() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::viam::component::servo::v1::MoveRequest* /*request*/, ::viam::component::servo::v1::MoveResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedMove(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::servo::v1::MoveRequest,::viam::component::servo::v1::MoveResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetPosition() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::servo::v1::GetPositionRequest, ::viam::component::servo::v1::GetPositionResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::servo::v1::GetPositionRequest, ::viam::component::servo::v1::GetPositionResponse>* streamer) { + return this->StreamedGetPosition(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::servo::v1::GetPositionRequest* /*request*/, ::viam::component::servo::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetPosition(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::servo::v1::GetPositionRequest,::viam::component::servo::v1::GetPositionResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_Stop : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Stop() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::servo::v1::StopRequest, ::viam::component::servo::v1::StopResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::component::servo::v1::StopRequest, ::viam::component::servo::v1::StopResponse>* streamer) { + return this->StreamedStop(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Stop() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::viam::component::servo::v1::StopRequest* /*request*/, ::viam::component::servo::v1::StopResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedStop(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::servo::v1::StopRequest,::viam::component::servo::v1::StopResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_Move > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_Move > > StreamedService; +}; + +} // namespace v1 +} // namespace servo +} // namespace component +} // namespace viam + + +#endif // GRPC_component_2fservo_2fv1_2fservo_2eproto__INCLUDED diff --git a/src/gen/component/servo/v1/servo.pb.cc b/src/gen/component/servo/v1/servo.pb.cc new file mode 100644 index 000000000..806c09784 --- /dev/null +++ b/src/gen/component/servo/v1/servo.pb.cc @@ -0,0 +1,1385 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/servo/v1/servo.proto + +#include "component/servo/v1/servo.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 component { +namespace servo { +namespace v1 { +PROTOBUF_CONSTEXPR MoveRequest::MoveRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.angle_deg_)*/0u + , /*decltype(_impl_._cached_size_)*/{}} {} +struct MoveRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveRequestDefaultTypeInternal() {} + union { + MoveRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveRequestDefaultTypeInternal _MoveRequest_default_instance_; +PROTOBUF_CONSTEXPR MoveResponse::MoveResponse( + ::_pbi::ConstantInitialized) {} +struct MoveResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveResponseDefaultTypeInternal() {} + union { + MoveResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveResponseDefaultTypeInternal _MoveResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPositionRequest::GetPositionRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPositionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPositionRequestDefaultTypeInternal() {} + union { + GetPositionRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPositionResponse::GetPositionResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.position_deg_)*/0u + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPositionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPositionResponseDefaultTypeInternal() {} + union { + GetPositionResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR StopRequest::StopRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StopRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopRequestDefaultTypeInternal() {} + union { + StopRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopRequestDefaultTypeInternal _StopRequest_default_instance_; +PROTOBUF_CONSTEXPR StopResponse::StopResponse( + ::_pbi::ConstantInitialized) {} +struct StopResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopResponseDefaultTypeInternal() {} + union { + StopResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopResponseDefaultTypeInternal _StopResponse_default_instance_; +PROTOBUF_CONSTEXPR Status::Status( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.position_deg_)*/0u + , /*decltype(_impl_.is_moving_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StatusDefaultTypeInternal() {} + union { + Status _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; +} // namespace v1 +} // namespace servo +} // namespace component +} // namespace viam +static ::_pb::Metadata file_level_metadata_component_2fservo_2fv1_2fservo_2eproto[7]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fservo_2fv1_2fservo_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fservo_2fv1_2fservo_2eproto = nullptr; + +const uint32_t TableStruct_component_2fservo_2fv1_2fservo_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::MoveRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::MoveRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::MoveRequest, _impl_.angle_deg_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::MoveResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::GetPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::GetPositionRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::GetPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::GetPositionResponse, _impl_.position_deg_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::StopRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::StopRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::StopResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::Status, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::Status, _impl_.position_deg_), + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::Status, _impl_.is_moving_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::servo::v1::MoveRequest)}, + { 8, -1, -1, sizeof(::viam::component::servo::v1::MoveResponse)}, + { 14, -1, -1, sizeof(::viam::component::servo::v1::GetPositionRequest)}, + { 21, -1, -1, sizeof(::viam::component::servo::v1::GetPositionResponse)}, + { 28, -1, -1, sizeof(::viam::component::servo::v1::StopRequest)}, + { 35, -1, -1, sizeof(::viam::component::servo::v1::StopResponse)}, + { 41, -1, -1, sizeof(::viam::component::servo::v1::Status)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::component::servo::v1::_MoveRequest_default_instance_._instance, + &::viam::component::servo::v1::_MoveResponse_default_instance_._instance, + &::viam::component::servo::v1::_GetPositionRequest_default_instance_._instance, + &::viam::component::servo::v1::_GetPositionResponse_default_instance_._instance, + &::viam::component::servo::v1::_StopRequest_default_instance_._instance, + &::viam::component::servo::v1::_StopResponse_default_instance_._instance, + &::viam::component::servo::v1::_Status_default_instance_._instance, +}; + +const char descriptor_table_protodef_component_2fservo_2fv1_2fservo_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\036component/servo/v1/servo.proto\022\027viam.c" + "omponent.servo.v1\032\034google/api/annotation" + "s.proto\">\n\013MoveRequest\022\022\n\004name\030\001 \001(\tR\004na" + "me\022\033\n\tangle_deg\030\002 \001(\rR\010angleDeg\"\016\n\014MoveR" + "esponse\"(\n\022GetPositionRequest\022\022\n\004name\030\001 " + "\001(\tR\004name\"8\n\023GetPositionResponse\022!\n\014posi" + "tion_deg\030\001 \001(\rR\013positionDeg\"!\n\013StopReque" + "st\022\022\n\004name\030\001 \001(\tR\004name\"\016\n\014StopResponse\"H" + "\n\006Status\022!\n\014position_deg\030\001 \001(\rR\013position" + "Deg\022\033\n\tis_moving\030\002 \001(\010R\010isMoving2\277\003\n\014Ser" + "voService\022\205\001\n\004Move\022$.viam.component.serv" + "o.v1.MoveRequest\032%.viam.component.servo." + "v1.MoveResponse\"0\202\323\344\223\002*\032(/viam/api/v1/co" + "mponent/servo/{name}/move\022\236\001\n\013GetPositio" + "n\022+.viam.component.servo.v1.GetPositionR" + "equest\032,.viam.component.servo.v1.GetPosi" + "tionResponse\"4\202\323\344\223\002.\022,/viam/api/v1/compo" + "nent/servo/{name}/position\022\205\001\n\004Stop\022$.vi" + "am.component.servo.v1.StopRequest\032%.viam" + ".component.servo.v1.StopResponse\"0\202\323\344\223\002*" + "\"(/viam/api/v1/component/servo/{name}/st" + "opBA\n\033com.viam.component.servo.v1Z\"go.vi" + "am.com/api/component/servo/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fservo_2fv1_2fservo_2eproto_deps[1] = { + &::descriptor_table_google_2fapi_2fannotations_2eproto, +}; +static ::_pbi::once_flag descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_component_2fservo_2fv1_2fservo_2eproto = { + false, false, 917, descriptor_table_protodef_component_2fservo_2fv1_2fservo_2eproto, + "component/servo/v1/servo.proto", + &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once, descriptor_table_component_2fservo_2fv1_2fservo_2eproto_deps, 1, 7, + schemas, file_default_instances, TableStruct_component_2fservo_2fv1_2fservo_2eproto::offsets, + file_level_metadata_component_2fservo_2fv1_2fservo_2eproto, file_level_enum_descriptors_component_2fservo_2fv1_2fservo_2eproto, + file_level_service_descriptors_component_2fservo_2fv1_2fservo_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fservo_2fv1_2fservo_2eproto_getter() { + return &descriptor_table_component_2fservo_2fv1_2fservo_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fservo_2fv1_2fservo_2eproto(&descriptor_table_component_2fservo_2fv1_2fservo_2eproto); +namespace viam { +namespace component { +namespace servo { +namespace v1 { + +// =================================================================== + +class MoveRequest::_Internal { + public: +}; + +MoveRequest::MoveRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.servo.v1.MoveRequest) +} +MoveRequest::MoveRequest(const MoveRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + MoveRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.angle_deg_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _this->_impl_.angle_deg_ = from._impl_.angle_deg_; + // @@protoc_insertion_point(copy_constructor:viam.component.servo.v1.MoveRequest) +} + +inline void MoveRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.angle_deg_){0u} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +MoveRequest::~MoveRequest() { + // @@protoc_insertion_point(destructor:viam.component.servo.v1.MoveRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void MoveRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void MoveRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void MoveRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.servo.v1.MoveRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.angle_deg_ = 0u; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.servo.v1.MoveRequest.name")); + } else + goto handle_unusual; + continue; + // uint32 angle_deg = 2 [json_name = "angleDeg"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.angle_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* MoveRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.servo.v1.MoveRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.servo.v1.MoveRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // uint32 angle_deg = 2 [json_name = "angleDeg"]; + if (this->_internal_angle_deg() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_angle_deg(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.servo.v1.MoveRequest) + return target; +} + +size_t MoveRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.servo.v1.MoveRequest) + 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()); + } + + // uint32 angle_deg = 2 [json_name = "angleDeg"]; + if (this->_internal_angle_deg() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_angle_deg()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MoveRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveRequest::GetClassData() const { return &_class_data_; } + + +void MoveRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.servo.v1.MoveRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_angle_deg() != 0) { + _this->_internal_set_angle_deg(from._internal_angle_deg()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MoveRequest::CopyFrom(const MoveRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.servo.v1.MoveRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoveRequest::IsInitialized() const { + return true; +} + +void MoveRequest::InternalSwap(MoveRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.angle_deg_, other->_impl_.angle_deg_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MoveRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_getter, &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once, + file_level_metadata_component_2fservo_2fv1_2fservo_2eproto[0]); +} + +// =================================================================== + +class MoveResponse::_Internal { + public: +}; + +MoveResponse::MoveResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.servo.v1.MoveResponse) +} +MoveResponse::MoveResponse(const MoveResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + MoveResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.servo.v1.MoveResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata MoveResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_getter, &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once, + file_level_metadata_component_2fservo_2fv1_2fservo_2eproto[1]); +} + +// =================================================================== + +class GetPositionRequest::_Internal { + public: +}; + +GetPositionRequest::GetPositionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.servo.v1.GetPositionRequest) +} +GetPositionRequest::GetPositionRequest(const GetPositionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPositionRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.servo.v1.GetPositionRequest) +} + +inline void GetPositionRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetPositionRequest::~GetPositionRequest() { + // @@protoc_insertion_point(destructor:viam.component.servo.v1.GetPositionRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPositionRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void GetPositionRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPositionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.servo.v1.GetPositionRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.servo.v1.GetPositionRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.servo.v1.GetPositionRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.servo.v1.GetPositionRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.servo.v1.GetPositionRequest) + return target; +} + +size_t GetPositionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.servo.v1.GetPositionRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPositionRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionRequest::GetClassData() const { return &_class_data_; } + + +void GetPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.servo.v1.GetPositionRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPositionRequest::CopyFrom(const GetPositionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.servo.v1.GetPositionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPositionRequest::IsInitialized() const { + return true; +} + +void GetPositionRequest::InternalSwap(GetPositionRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_getter, &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once, + file_level_metadata_component_2fservo_2fv1_2fservo_2eproto[2]); +} + +// =================================================================== + +class GetPositionResponse::_Internal { + public: +}; + +GetPositionResponse::GetPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.servo.v1.GetPositionResponse) +} +GetPositionResponse::GetPositionResponse(const GetPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPositionResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.position_deg_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.position_deg_ = from._impl_.position_deg_; + // @@protoc_insertion_point(copy_constructor:viam.component.servo.v1.GetPositionResponse) +} + +inline void GetPositionResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.position_deg_){0u} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetPositionResponse::~GetPositionResponse() { + // @@protoc_insertion_point(destructor:viam.component.servo.v1.GetPositionResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPositionResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetPositionResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPositionResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.servo.v1.GetPositionResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.position_deg_ = 0u; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionResponse::_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) { + // uint32 position_deg = 1 [json_name = "positionDeg"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.position_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* GetPositionResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.servo.v1.GetPositionResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 position_deg = 1 [json_name = "positionDeg"]; + if (this->_internal_position_deg() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_position_deg(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.servo.v1.GetPositionResponse) + return target; +} + +size_t GetPositionResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.servo.v1.GetPositionResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint32 position_deg = 1 [json_name = "positionDeg"]; + if (this->_internal_position_deg() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_position_deg()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPositionResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionResponse::GetClassData() const { return &_class_data_; } + + +void GetPositionResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.servo.v1.GetPositionResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_position_deg() != 0) { + _this->_internal_set_position_deg(from._internal_position_deg()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPositionResponse::CopyFrom(const GetPositionResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.servo.v1.GetPositionResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPositionResponse::IsInitialized() const { + return true; +} + +void GetPositionResponse::InternalSwap(GetPositionResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.position_deg_, other->_impl_.position_deg_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_getter, &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once, + file_level_metadata_component_2fservo_2fv1_2fservo_2eproto[3]); +} + +// =================================================================== + +class StopRequest::_Internal { + public: +}; + +StopRequest::StopRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.servo.v1.StopRequest) +} +StopRequest::StopRequest(const StopRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + StopRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.component.servo.v1.StopRequest) +} + +inline void StopRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +StopRequest::~StopRequest() { + // @@protoc_insertion_point(destructor:viam.component.servo.v1.StopRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void StopRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void StopRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void StopRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.servo.v1.StopRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StopRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.servo.v1.StopRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* StopRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.servo.v1.StopRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.servo.v1.StopRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.servo.v1.StopRequest) + return target; +} + +size_t StopRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.servo.v1.StopRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + StopRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopRequest::GetClassData() const { return &_class_data_; } + + +void StopRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.servo.v1.StopRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void StopRequest::CopyFrom(const StopRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.servo.v1.StopRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StopRequest::IsInitialized() const { + return true; +} + +void StopRequest::InternalSwap(StopRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StopRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_getter, &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once, + file_level_metadata_component_2fservo_2fv1_2fservo_2eproto[4]); +} + +// =================================================================== + +class StopResponse::_Internal { + public: +}; + +StopResponse::StopResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.servo.v1.StopResponse) +} +StopResponse::StopResponse(const StopResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + StopResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.servo.v1.StopResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata StopResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_getter, &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once, + file_level_metadata_component_2fservo_2fv1_2fservo_2eproto[5]); +} + +// =================================================================== + +class Status::_Internal { + public: +}; + +Status::Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.component.servo.v1.Status) +} +Status::Status(const Status& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Status* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.position_deg_){} + , decltype(_impl_.is_moving_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.position_deg_, &from._impl_.position_deg_, + static_cast(reinterpret_cast(&_impl_.is_moving_) - + reinterpret_cast(&_impl_.position_deg_)) + sizeof(_impl_.is_moving_)); + // @@protoc_insertion_point(copy_constructor:viam.component.servo.v1.Status) +} + +inline void Status::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.position_deg_){0u} + , decltype(_impl_.is_moving_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Status::~Status() { + // @@protoc_insertion_point(destructor:viam.component.servo.v1.Status) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Status::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Status::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Status::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.servo.v1.Status) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.position_deg_, 0, static_cast( + reinterpret_cast(&_impl_.is_moving_) - + reinterpret_cast(&_impl_.position_deg_)) + sizeof(_impl_.is_moving_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Status::_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) { + // uint32 position_deg = 1 [json_name = "positionDeg"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.position_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool is_moving = 2 [json_name = "isMoving"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* Status::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.servo.v1.Status) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 position_deg = 1 [json_name = "positionDeg"]; + if (this->_internal_position_deg() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_position_deg(), target); + } + + // bool is_moving = 2 [json_name = "isMoving"]; + if (this->_internal_is_moving() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_is_moving(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.component.servo.v1.Status) + return target; +} + +size_t Status::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.servo.v1.Status) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint32 position_deg = 1 [json_name = "positionDeg"]; + if (this->_internal_position_deg() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_position_deg()); + } + + // bool is_moving = 2 [json_name = "isMoving"]; + if (this->_internal_is_moving() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Status::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Status::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Status::GetClassData() const { return &_class_data_; } + + +void Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.servo.v1.Status) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_position_deg() != 0) { + _this->_internal_set_position_deg(from._internal_position_deg()); + } + if (from._internal_is_moving() != 0) { + _this->_internal_set_is_moving(from._internal_is_moving()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Status::CopyFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.servo.v1.Status) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Status::IsInitialized() const { + return true; +} + +void Status::InternalSwap(Status* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Status, _impl_.is_moving_) + + sizeof(Status::_impl_.is_moving_) + - PROTOBUF_FIELD_OFFSET(Status, _impl_.position_deg_)>( + reinterpret_cast(&_impl_.position_deg_), + reinterpret_cast(&other->_impl_.position_deg_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_getter, &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once, + file_level_metadata_component_2fservo_2fv1_2fservo_2eproto[6]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace servo +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::servo::v1::MoveRequest* +Arena::CreateMaybeMessage< ::viam::component::servo::v1::MoveRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::servo::v1::MoveRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::servo::v1::MoveResponse* +Arena::CreateMaybeMessage< ::viam::component::servo::v1::MoveResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::servo::v1::MoveResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::servo::v1::GetPositionRequest* +Arena::CreateMaybeMessage< ::viam::component::servo::v1::GetPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::servo::v1::GetPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::servo::v1::GetPositionResponse* +Arena::CreateMaybeMessage< ::viam::component::servo::v1::GetPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::servo::v1::GetPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::servo::v1::StopRequest* +Arena::CreateMaybeMessage< ::viam::component::servo::v1::StopRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::servo::v1::StopRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::servo::v1::StopResponse* +Arena::CreateMaybeMessage< ::viam::component::servo::v1::StopResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::servo::v1::StopResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::servo::v1::Status* +Arena::CreateMaybeMessage< ::viam::component::servo::v1::Status >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::servo::v1::Status >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/component/servo/v1/servo.pb.h b/src/gen/component/servo/v1/servo.pb.h new file mode 100644 index 000000000..74bf77b98 --- /dev/null +++ b/src/gen/component/servo/v1/servo.pb.h @@ -0,0 +1,1396 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/servo/v1/servo.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fservo_2fv1_2fservo_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fservo_2fv1_2fservo_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "google/api/annotations.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_component_2fservo_2fv1_2fservo_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_component_2fservo_2fv1_2fservo_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fservo_2fv1_2fservo_2eproto; +namespace viam { +namespace component { +namespace servo { +namespace v1 { +class GetPositionRequest; +struct GetPositionRequestDefaultTypeInternal; +extern GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; +class GetPositionResponse; +struct GetPositionResponseDefaultTypeInternal; +extern GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; +class MoveRequest; +struct MoveRequestDefaultTypeInternal; +extern MoveRequestDefaultTypeInternal _MoveRequest_default_instance_; +class MoveResponse; +struct MoveResponseDefaultTypeInternal; +extern MoveResponseDefaultTypeInternal _MoveResponse_default_instance_; +class Status; +struct StatusDefaultTypeInternal; +extern StatusDefaultTypeInternal _Status_default_instance_; +class StopRequest; +struct StopRequestDefaultTypeInternal; +extern StopRequestDefaultTypeInternal _StopRequest_default_instance_; +class StopResponse; +struct StopResponseDefaultTypeInternal; +extern StopResponseDefaultTypeInternal _StopResponse_default_instance_; +} // namespace v1 +} // namespace servo +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::servo::v1::GetPositionRequest* Arena::CreateMaybeMessage<::viam::component::servo::v1::GetPositionRequest>(Arena*); +template<> ::viam::component::servo::v1::GetPositionResponse* Arena::CreateMaybeMessage<::viam::component::servo::v1::GetPositionResponse>(Arena*); +template<> ::viam::component::servo::v1::MoveRequest* Arena::CreateMaybeMessage<::viam::component::servo::v1::MoveRequest>(Arena*); +template<> ::viam::component::servo::v1::MoveResponse* Arena::CreateMaybeMessage<::viam::component::servo::v1::MoveResponse>(Arena*); +template<> ::viam::component::servo::v1::Status* Arena::CreateMaybeMessage<::viam::component::servo::v1::Status>(Arena*); +template<> ::viam::component::servo::v1::StopRequest* Arena::CreateMaybeMessage<::viam::component::servo::v1::StopRequest>(Arena*); +template<> ::viam::component::servo::v1::StopResponse* Arena::CreateMaybeMessage<::viam::component::servo::v1::StopResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace component { +namespace servo { +namespace v1 { + +// =================================================================== + +class MoveRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.MoveRequest) */ { + public: + inline MoveRequest() : MoveRequest(nullptr) {} + ~MoveRequest() override; + explicit PROTOBUF_CONSTEXPR MoveRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MoveRequest(const MoveRequest& from); + MoveRequest(MoveRequest&& from) noexcept + : MoveRequest() { + *this = ::std::move(from); + } + + inline MoveRequest& operator=(const MoveRequest& from) { + CopyFrom(from); + return *this; + } + inline MoveRequest& operator=(MoveRequest&& 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 MoveRequest& default_instance() { + return *internal_default_instance(); + } + static inline const MoveRequest* internal_default_instance() { + return reinterpret_cast( + &_MoveRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(MoveRequest& a, MoveRequest& b) { + a.Swap(&b); + } + inline void Swap(MoveRequest* 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(MoveRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MoveRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MoveRequest& from) { + MoveRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoveRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.servo.v1.MoveRequest"; + } + protected: + explicit MoveRequest(::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, + kAngleDegFieldNumber = 2, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // uint32 angle_deg = 2 [json_name = "angleDeg"]; + void clear_angle_deg(); + uint32_t angle_deg() const; + void set_angle_deg(uint32_t value); + private: + uint32_t _internal_angle_deg() const; + void _internal_set_angle_deg(uint32_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.servo.v1.MoveRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + uint32_t angle_deg_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fservo_2fv1_2fservo_2eproto; +}; +// ------------------------------------------------------------------- + +class MoveResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.MoveResponse) */ { + public: + inline MoveResponse() : MoveResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR MoveResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MoveResponse(const MoveResponse& from); + MoveResponse(MoveResponse&& from) noexcept + : MoveResponse() { + *this = ::std::move(from); + } + + inline MoveResponse& operator=(const MoveResponse& from) { + CopyFrom(from); + return *this; + } + inline MoveResponse& operator=(MoveResponse&& 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 MoveResponse& default_instance() { + return *internal_default_instance(); + } + static inline const MoveResponse* internal_default_instance() { + return reinterpret_cast( + &_MoveResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(MoveResponse& a, MoveResponse& b) { + a.Swap(&b); + } + inline void Swap(MoveResponse* 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(MoveResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MoveResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const MoveResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const MoveResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.servo.v1.MoveResponse"; + } + protected: + explicit MoveResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.servo.v1.MoveResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2fservo_2fv1_2fservo_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPositionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.GetPositionRequest) */ { + public: + inline GetPositionRequest() : GetPositionRequest(nullptr) {} + ~GetPositionRequest() override; + explicit PROTOBUF_CONSTEXPR GetPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPositionRequest(const GetPositionRequest& from); + GetPositionRequest(GetPositionRequest&& from) noexcept + : GetPositionRequest() { + *this = ::std::move(from); + } + + inline GetPositionRequest& operator=(const GetPositionRequest& from) { + CopyFrom(from); + return *this; + } + inline GetPositionRequest& operator=(GetPositionRequest&& 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 GetPositionRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetPositionRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPositionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(GetPositionRequest& a, GetPositionRequest& b) { + a.Swap(&b); + } + inline void Swap(GetPositionRequest* 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(GetPositionRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPositionRequest& from) { + GetPositionRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPositionRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.servo.v1.GetPositionRequest"; + } + protected: + explicit GetPositionRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.component.servo.v1.GetPositionRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fservo_2fv1_2fservo_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPositionResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.GetPositionResponse) */ { + public: + inline GetPositionResponse() : GetPositionResponse(nullptr) {} + ~GetPositionResponse() override; + explicit PROTOBUF_CONSTEXPR GetPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPositionResponse(const GetPositionResponse& from); + GetPositionResponse(GetPositionResponse&& from) noexcept + : GetPositionResponse() { + *this = ::std::move(from); + } + + inline GetPositionResponse& operator=(const GetPositionResponse& from) { + CopyFrom(from); + return *this; + } + inline GetPositionResponse& operator=(GetPositionResponse&& 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 GetPositionResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetPositionResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPositionResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(GetPositionResponse& a, GetPositionResponse& b) { + a.Swap(&b); + } + inline void Swap(GetPositionResponse* 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(GetPositionResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPositionResponse& from) { + GetPositionResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPositionResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.servo.v1.GetPositionResponse"; + } + protected: + explicit GetPositionResponse(::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 { + kPositionDegFieldNumber = 1, + }; + // uint32 position_deg = 1 [json_name = "positionDeg"]; + void clear_position_deg(); + uint32_t position_deg() const; + void set_position_deg(uint32_t value); + private: + uint32_t _internal_position_deg() const; + void _internal_set_position_deg(uint32_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.servo.v1.GetPositionResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + uint32_t position_deg_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fservo_2fv1_2fservo_2eproto; +}; +// ------------------------------------------------------------------- + +class StopRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.StopRequest) */ { + public: + inline StopRequest() : StopRequest(nullptr) {} + ~StopRequest() override; + explicit PROTOBUF_CONSTEXPR StopRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StopRequest(const StopRequest& from); + StopRequest(StopRequest&& from) noexcept + : StopRequest() { + *this = ::std::move(from); + } + + inline StopRequest& operator=(const StopRequest& from) { + CopyFrom(from); + return *this; + } + inline StopRequest& operator=(StopRequest&& 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 StopRequest& default_instance() { + return *internal_default_instance(); + } + static inline const StopRequest* internal_default_instance() { + return reinterpret_cast( + &_StopRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(StopRequest& a, StopRequest& b) { + a.Swap(&b); + } + inline void Swap(StopRequest* 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(StopRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StopRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StopRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const StopRequest& from) { + StopRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StopRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.servo.v1.StopRequest"; + } + protected: + explicit StopRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.component.servo.v1.StopRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fservo_2fv1_2fservo_2eproto; +}; +// ------------------------------------------------------------------- + +class StopResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.StopResponse) */ { + public: + inline StopResponse() : StopResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR StopResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StopResponse(const StopResponse& from); + StopResponse(StopResponse&& from) noexcept + : StopResponse() { + *this = ::std::move(from); + } + + inline StopResponse& operator=(const StopResponse& from) { + CopyFrom(from); + return *this; + } + inline StopResponse& operator=(StopResponse&& 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 StopResponse& default_instance() { + return *internal_default_instance(); + } + static inline const StopResponse* internal_default_instance() { + return reinterpret_cast( + &_StopResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(StopResponse& a, StopResponse& b) { + a.Swap(&b); + } + inline void Swap(StopResponse* 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(StopResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StopResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.servo.v1.StopResponse"; + } + protected: + explicit StopResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.servo.v1.StopResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_component_2fservo_2fv1_2fservo_2eproto; +}; +// ------------------------------------------------------------------- + +class Status final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.Status) */ { + public: + inline Status() : Status(nullptr) {} + ~Status() override; + explicit PROTOBUF_CONSTEXPR Status(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Status(const Status& from); + Status(Status&& from) noexcept + : Status() { + *this = ::std::move(from); + } + + inline Status& operator=(const Status& from) { + CopyFrom(from); + return *this; + } + inline Status& operator=(Status&& 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 Status& default_instance() { + return *internal_default_instance(); + } + static inline const Status* internal_default_instance() { + return reinterpret_cast( + &_Status_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(Status& a, Status& b) { + a.Swap(&b); + } + inline void Swap(Status* 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(Status* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Status& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Status& from) { + Status::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Status* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.servo.v1.Status"; + } + protected: + explicit Status(::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 { + kPositionDegFieldNumber = 1, + kIsMovingFieldNumber = 2, + }; + // uint32 position_deg = 1 [json_name = "positionDeg"]; + void clear_position_deg(); + uint32_t position_deg() const; + void set_position_deg(uint32_t value); + private: + uint32_t _internal_position_deg() const; + void _internal_set_position_deg(uint32_t value); + public: + + // bool is_moving = 2 [json_name = "isMoving"]; + void clear_is_moving(); + bool is_moving() const; + void set_is_moving(bool value); + private: + bool _internal_is_moving() const; + void _internal_set_is_moving(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.servo.v1.Status) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + uint32_t position_deg_; + bool is_moving_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_component_2fservo_2fv1_2fservo_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// MoveRequest + +// string name = 1 [json_name = "name"]; +inline void MoveRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& MoveRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.servo.v1.MoveRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void MoveRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.servo.v1.MoveRequest.name) +} +inline std::string* MoveRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.servo.v1.MoveRequest.name) + return _s; +} +inline const std::string& MoveRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void MoveRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* MoveRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* MoveRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.servo.v1.MoveRequest.name) + return _impl_.name_.Release(); +} +inline void MoveRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.servo.v1.MoveRequest.name) +} + +// uint32 angle_deg = 2 [json_name = "angleDeg"]; +inline void MoveRequest::clear_angle_deg() { + _impl_.angle_deg_ = 0u; +} +inline uint32_t MoveRequest::_internal_angle_deg() const { + return _impl_.angle_deg_; +} +inline uint32_t MoveRequest::angle_deg() const { + // @@protoc_insertion_point(field_get:viam.component.servo.v1.MoveRequest.angle_deg) + return _internal_angle_deg(); +} +inline void MoveRequest::_internal_set_angle_deg(uint32_t value) { + + _impl_.angle_deg_ = value; +} +inline void MoveRequest::set_angle_deg(uint32_t value) { + _internal_set_angle_deg(value); + // @@protoc_insertion_point(field_set:viam.component.servo.v1.MoveRequest.angle_deg) +} + +// ------------------------------------------------------------------- + +// MoveResponse + +// ------------------------------------------------------------------- + +// GetPositionRequest + +// string name = 1 [json_name = "name"]; +inline void GetPositionRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetPositionRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.servo.v1.GetPositionRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.servo.v1.GetPositionRequest.name) +} +inline std::string* GetPositionRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.servo.v1.GetPositionRequest.name) + return _s; +} +inline const std::string& GetPositionRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetPositionRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetPositionRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetPositionRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.servo.v1.GetPositionRequest.name) + return _impl_.name_.Release(); +} +inline void GetPositionRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.servo.v1.GetPositionRequest.name) +} + +// ------------------------------------------------------------------- + +// GetPositionResponse + +// uint32 position_deg = 1 [json_name = "positionDeg"]; +inline void GetPositionResponse::clear_position_deg() { + _impl_.position_deg_ = 0u; +} +inline uint32_t GetPositionResponse::_internal_position_deg() const { + return _impl_.position_deg_; +} +inline uint32_t GetPositionResponse::position_deg() const { + // @@protoc_insertion_point(field_get:viam.component.servo.v1.GetPositionResponse.position_deg) + return _internal_position_deg(); +} +inline void GetPositionResponse::_internal_set_position_deg(uint32_t value) { + + _impl_.position_deg_ = value; +} +inline void GetPositionResponse::set_position_deg(uint32_t value) { + _internal_set_position_deg(value); + // @@protoc_insertion_point(field_set:viam.component.servo.v1.GetPositionResponse.position_deg) +} + +// ------------------------------------------------------------------- + +// StopRequest + +// string name = 1 [json_name = "name"]; +inline void StopRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& StopRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.servo.v1.StopRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void StopRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.servo.v1.StopRequest.name) +} +inline std::string* StopRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.servo.v1.StopRequest.name) + return _s; +} +inline const std::string& StopRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void StopRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* StopRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* StopRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.servo.v1.StopRequest.name) + return _impl_.name_.Release(); +} +inline void StopRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.servo.v1.StopRequest.name) +} + +// ------------------------------------------------------------------- + +// StopResponse + +// ------------------------------------------------------------------- + +// Status + +// uint32 position_deg = 1 [json_name = "positionDeg"]; +inline void Status::clear_position_deg() { + _impl_.position_deg_ = 0u; +} +inline uint32_t Status::_internal_position_deg() const { + return _impl_.position_deg_; +} +inline uint32_t Status::position_deg() const { + // @@protoc_insertion_point(field_get:viam.component.servo.v1.Status.position_deg) + return _internal_position_deg(); +} +inline void Status::_internal_set_position_deg(uint32_t value) { + + _impl_.position_deg_ = value; +} +inline void Status::set_position_deg(uint32_t value) { + _internal_set_position_deg(value); + // @@protoc_insertion_point(field_set:viam.component.servo.v1.Status.position_deg) +} + +// bool is_moving = 2 [json_name = "isMoving"]; +inline void Status::clear_is_moving() { + _impl_.is_moving_ = false; +} +inline bool Status::_internal_is_moving() const { + return _impl_.is_moving_; +} +inline bool Status::is_moving() const { + // @@protoc_insertion_point(field_get:viam.component.servo.v1.Status.is_moving) + return _internal_is_moving(); +} +inline void Status::_internal_set_is_moving(bool value) { + + _impl_.is_moving_ = value; +} +inline void Status::set_is_moving(bool value) { + _internal_set_is_moving(value); + // @@protoc_insertion_point(field_set:viam.component.servo.v1.Status.is_moving) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace servo +} // namespace component +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fservo_2fv1_2fservo_2eproto diff --git a/src/gen/google/api/annotations.grpc.pb.cc b/src/gen/google/api/annotations.grpc.pb.cc new file mode 100644 index 000000000..eba217418 --- /dev/null +++ b/src/gen/google/api/annotations.grpc.pb.cc @@ -0,0 +1,27 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/annotations.proto + +#include "google/api/annotations.pb.h" +#include "google/api/annotations.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace api { + +} // namespace google +} // namespace api + diff --git a/src/gen/google/api/annotations.grpc.pb.h b/src/gen/google/api/annotations.grpc.pb.h new file mode 100644 index 000000000..900efba54 --- /dev/null +++ b/src/gen/google/api/annotations.grpc.pb.h @@ -0,0 +1,50 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/annotations.proto +// Original file comments: +// Copyright 2015 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_google_2fapi_2fannotations_2eproto__INCLUDED +#define GRPC_google_2fapi_2fannotations_2eproto__INCLUDED + +#include "google/api/annotations.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace api { + +} // namespace api +} // namespace google + + +#endif // GRPC_google_2fapi_2fannotations_2eproto__INCLUDED diff --git a/src/gen/google/api/annotations.pb.cc b/src/gen/google/api/annotations.pb.cc new file mode 100644 index 000000000..43b0e42dd --- /dev/null +++ b/src/gen/google/api/annotations.pb.cc @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/annotations.proto + +#include "google/api/annotations.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace api { +} // namespace api +} // namespace google +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fannotations_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fannotations_2eproto = nullptr; +const uint32_t TableStruct_google_2fapi_2fannotations_2eproto::offsets[1] = {}; +static constexpr ::_pbi::MigrationSchema* schemas = nullptr; +static constexpr ::_pb::Message* const* file_default_instances = nullptr; + +const char descriptor_table_protodef_google_2fapi_2fannotations_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\034google/api/annotations.proto\022\ngoogle.a" + "pi\032\025google/api/http.proto\032 google/protob" + "uf/descriptor.proto:K\n\004http\022\036.google.pro" + "tobuf.MethodOptions\030\260\312\274\" \001(\0132\024.google.ap" + "i.HttpRuleR\004httpBn\n\016com.google.apiB\020Anno" + "tationsProtoP\001ZAgoogle.golang.org/genpro" + "to/googleapis/api/annotations;annotation" + "s\242\002\004GAPIb\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fannotations_2eproto_deps[2] = { + &::descriptor_table_google_2fapi_2fhttp_2eproto, + &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, +}; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fannotations_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fannotations_2eproto = { + false, false, 296, descriptor_table_protodef_google_2fapi_2fannotations_2eproto, + "google/api/annotations.proto", + &descriptor_table_google_2fapi_2fannotations_2eproto_once, descriptor_table_google_2fapi_2fannotations_2eproto_deps, 2, 0, + schemas, file_default_instances, TableStruct_google_2fapi_2fannotations_2eproto::offsets, + nullptr, file_level_enum_descriptors_google_2fapi_2fannotations_2eproto, + file_level_service_descriptors_google_2fapi_2fannotations_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fannotations_2eproto_getter() { + return &descriptor_table_google_2fapi_2fannotations_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fannotations_2eproto(&descriptor_table_google_2fapi_2fannotations_2eproto); +namespace google { +namespace api { +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, false> + http(kHttpFieldNumber, ::google::api::HttpRule::default_instance(), nullptr); + +// @@protoc_insertion_point(namespace_scope) +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/google/api/annotations.pb.h b/src/gen/google/api/annotations.pb.h new file mode 100644 index 000000000..450e21634 --- /dev/null +++ b/src/gen/google/api/annotations.pb.h @@ -0,0 +1,80 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/annotations.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fannotations_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fannotations_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 // IWYU pragma: export +#include // IWYU pragma: export +#include "google/api/http.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fannotations_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2fapi_2fannotations_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fannotations_2eproto; +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace api { + +// =================================================================== + + +// =================================================================== + +static const int kHttpFieldNumber = 72295728; +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, false > + http; + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace api +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fannotations_2eproto diff --git a/src/gen/google/api/client.grpc.pb.cc b/src/gen/google/api/client.grpc.pb.cc new file mode 100644 index 000000000..bdf24ee43 --- /dev/null +++ b/src/gen/google/api/client.grpc.pb.cc @@ -0,0 +1,27 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/client.proto + +#include "google/api/client.pb.h" +#include "google/api/client.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace api { + +} // namespace google +} // namespace api + diff --git a/src/gen/google/api/client.grpc.pb.h b/src/gen/google/api/client.grpc.pb.h new file mode 100644 index 000000000..bbbed1e54 --- /dev/null +++ b/src/gen/google/api/client.grpc.pb.h @@ -0,0 +1,50 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/client.proto +// Original file comments: +// Copyright 2018 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_google_2fapi_2fclient_2eproto__INCLUDED +#define GRPC_google_2fapi_2fclient_2eproto__INCLUDED + +#include "google/api/client.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace api { + +} // namespace api +} // namespace google + + +#endif // GRPC_google_2fapi_2fclient_2eproto__INCLUDED diff --git a/src/gen/google/api/client.pb.cc b/src/gen/google/api/client.pb.cc new file mode 100644 index 000000000..6cae9609f --- /dev/null +++ b/src/gen/google/api/client.pb.cc @@ -0,0 +1,85 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/client.proto + +#include "google/api/client.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace api { +} // namespace api +} // namespace google +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fclient_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fclient_2eproto = nullptr; +const uint32_t TableStruct_google_2fapi_2fclient_2eproto::offsets[1] = {}; +static constexpr ::_pbi::MigrationSchema* schemas = nullptr; +static constexpr ::_pb::Message* const* file_default_instances = nullptr; + +const char descriptor_table_protodef_google_2fapi_2fclient_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\027google/api/client.proto\022\ngoogle.api\032 g" + "oogle/protobuf/descriptor.proto:J\n\020metho" + "d_signature\022\036.google.protobuf.MethodOpti" + "ons\030\233\010 \003(\tR\017methodSignature:C\n\014default_h" + "ost\022\037.google.protobuf.ServiceOptions\030\231\010 " + "\001(\tR\013defaultHost:C\n\014oauth_scopes\022\037.googl" + "e.protobuf.ServiceOptions\030\232\010 \001(\tR\013oauthS" + "copesBi\n\016com.google.apiB\013ClientProtoP\001ZA" + "google.golang.org/genproto/googleapis/ap" + "i/annotations;annotations\242\002\004GAPIb\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fclient_2eproto_deps[1] = { + &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, +}; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fclient_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fclient_2eproto = { + false, false, 400, descriptor_table_protodef_google_2fapi_2fclient_2eproto, + "google/api/client.proto", + &descriptor_table_google_2fapi_2fclient_2eproto_once, descriptor_table_google_2fapi_2fclient_2eproto_deps, 1, 0, + schemas, file_default_instances, TableStruct_google_2fapi_2fclient_2eproto::offsets, + nullptr, file_level_enum_descriptors_google_2fapi_2fclient_2eproto, + file_level_service_descriptors_google_2fapi_2fclient_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fclient_2eproto_getter() { + return &descriptor_table_google_2fapi_2fclient_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fclient_2eproto(&descriptor_table_google_2fapi_2fclient_2eproto); +namespace google { +namespace api { +const std::string method_signature_default(""); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, + ::PROTOBUF_NAMESPACE_ID::internal::RepeatedStringTypeTraits, 9, false> + method_signature(kMethodSignatureFieldNumber, method_signature_default, nullptr); +const std::string default_host_default(""); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::ServiceOptions, + ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false> + default_host(kDefaultHostFieldNumber, default_host_default, nullptr); +const std::string oauth_scopes_default(""); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::ServiceOptions, + ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false> + oauth_scopes(kOauthScopesFieldNumber, oauth_scopes_default, nullptr); + +// @@protoc_insertion_point(namespace_scope) +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/google/api/client.pb.h b/src/gen/google/api/client.pb.h new file mode 100644 index 000000000..de15bebaa --- /dev/null +++ b/src/gen/google/api/client.pb.h @@ -0,0 +1,87 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/client.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fclient_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fclient_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fclient_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2fapi_2fclient_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fclient_2eproto; +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace api { + +// =================================================================== + + +// =================================================================== + +static const int kMethodSignatureFieldNumber = 1051; +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, + ::PROTOBUF_NAMESPACE_ID::internal::RepeatedStringTypeTraits, 9, false > + method_signature; +static const int kDefaultHostFieldNumber = 1049; +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::ServiceOptions, + ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false > + default_host; +static const int kOauthScopesFieldNumber = 1050; +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::ServiceOptions, + ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false > + oauth_scopes; + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace api +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fclient_2eproto diff --git a/src/gen/google/api/expr/v1alpha1/checked.grpc.pb.cc b/src/gen/google/api/expr/v1alpha1/checked.grpc.pb.cc new file mode 100644 index 000000000..69ceebad4 --- /dev/null +++ b/src/gen/google/api/expr/v1alpha1/checked.grpc.pb.cc @@ -0,0 +1,31 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/expr/v1alpha1/checked.proto + +#include "google/api/expr/v1alpha1/checked.pb.h" +#include "google/api/expr/v1alpha1/checked.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { + +} // namespace google +} // namespace api +} // namespace expr +} // namespace v1alpha1 + diff --git a/src/gen/google/api/expr/v1alpha1/checked.grpc.pb.h b/src/gen/google/api/expr/v1alpha1/checked.grpc.pb.h new file mode 100644 index 000000000..660059881 --- /dev/null +++ b/src/gen/google/api/expr/v1alpha1/checked.grpc.pb.h @@ -0,0 +1,54 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/expr/v1alpha1/checked.proto +// Original file comments: +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto__INCLUDED +#define GRPC_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto__INCLUDED + +#include "google/api/expr/v1alpha1/checked.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { + +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google + + +#endif // GRPC_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto__INCLUDED diff --git a/src/gen/google/api/expr/v1alpha1/checked.pb.cc b/src/gen/google/api/expr/v1alpha1/checked.pb.cc new file mode 100644 index 000000000..3d49a4826 --- /dev/null +++ b/src/gen/google/api/expr/v1alpha1/checked.pb.cc @@ -0,0 +1,4290 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/expr/v1alpha1/checked.proto + +#include "google/api/expr/v1alpha1/checked.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { +PROTOBUF_CONSTEXPR CheckedExpr_ReferenceMapEntry_DoNotUse::CheckedExpr_ReferenceMapEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct CheckedExpr_ReferenceMapEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CheckedExpr_ReferenceMapEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CheckedExpr_ReferenceMapEntry_DoNotUseDefaultTypeInternal() {} + union { + CheckedExpr_ReferenceMapEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CheckedExpr_ReferenceMapEntry_DoNotUseDefaultTypeInternal _CheckedExpr_ReferenceMapEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR CheckedExpr_TypeMapEntry_DoNotUse::CheckedExpr_TypeMapEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct CheckedExpr_TypeMapEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CheckedExpr_TypeMapEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CheckedExpr_TypeMapEntry_DoNotUseDefaultTypeInternal() {} + union { + CheckedExpr_TypeMapEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CheckedExpr_TypeMapEntry_DoNotUseDefaultTypeInternal _CheckedExpr_TypeMapEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR CheckedExpr::CheckedExpr( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.reference_map_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.type_map_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.expr_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.expr_)*/nullptr + , /*decltype(_impl_.source_info_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct CheckedExprDefaultTypeInternal { + PROTOBUF_CONSTEXPR CheckedExprDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CheckedExprDefaultTypeInternal() {} + union { + CheckedExpr _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CheckedExprDefaultTypeInternal _CheckedExpr_default_instance_; +PROTOBUF_CONSTEXPR Type_ListType::Type_ListType( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.elem_type_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Type_ListTypeDefaultTypeInternal { + PROTOBUF_CONSTEXPR Type_ListTypeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Type_ListTypeDefaultTypeInternal() {} + union { + Type_ListType _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Type_ListTypeDefaultTypeInternal _Type_ListType_default_instance_; +PROTOBUF_CONSTEXPR Type_MapType::Type_MapType( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.key_type_)*/nullptr + , /*decltype(_impl_.value_type_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Type_MapTypeDefaultTypeInternal { + PROTOBUF_CONSTEXPR Type_MapTypeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Type_MapTypeDefaultTypeInternal() {} + union { + Type_MapType _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Type_MapTypeDefaultTypeInternal _Type_MapType_default_instance_; +PROTOBUF_CONSTEXPR Type_FunctionType::Type_FunctionType( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.arg_types_)*/{} + , /*decltype(_impl_.result_type_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Type_FunctionTypeDefaultTypeInternal { + PROTOBUF_CONSTEXPR Type_FunctionTypeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Type_FunctionTypeDefaultTypeInternal() {} + union { + Type_FunctionType _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Type_FunctionTypeDefaultTypeInternal _Type_FunctionType_default_instance_; +PROTOBUF_CONSTEXPR Type_AbstractType::Type_AbstractType( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.parameter_types_)*/{} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Type_AbstractTypeDefaultTypeInternal { + PROTOBUF_CONSTEXPR Type_AbstractTypeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Type_AbstractTypeDefaultTypeInternal() {} + union { + Type_AbstractType _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Type_AbstractTypeDefaultTypeInternal _Type_AbstractType_default_instance_; +PROTOBUF_CONSTEXPR Type::Type( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.type_kind_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct TypeDefaultTypeInternal { + PROTOBUF_CONSTEXPR TypeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TypeDefaultTypeInternal() {} + union { + Type _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TypeDefaultTypeInternal _Type_default_instance_; +PROTOBUF_CONSTEXPR Decl_IdentDecl::Decl_IdentDecl( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.doc_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.type_)*/nullptr + , /*decltype(_impl_.value_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Decl_IdentDeclDefaultTypeInternal { + PROTOBUF_CONSTEXPR Decl_IdentDeclDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Decl_IdentDeclDefaultTypeInternal() {} + union { + Decl_IdentDecl _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Decl_IdentDeclDefaultTypeInternal _Decl_IdentDecl_default_instance_; +PROTOBUF_CONSTEXPR Decl_FunctionDecl_Overload::Decl_FunctionDecl_Overload( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.params_)*/{} + , /*decltype(_impl_.type_params_)*/{} + , /*decltype(_impl_.overload_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.doc_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.result_type_)*/nullptr + , /*decltype(_impl_.is_instance_function_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Decl_FunctionDecl_OverloadDefaultTypeInternal { + PROTOBUF_CONSTEXPR Decl_FunctionDecl_OverloadDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Decl_FunctionDecl_OverloadDefaultTypeInternal() {} + union { + Decl_FunctionDecl_Overload _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Decl_FunctionDecl_OverloadDefaultTypeInternal _Decl_FunctionDecl_Overload_default_instance_; +PROTOBUF_CONSTEXPR Decl_FunctionDecl::Decl_FunctionDecl( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.overloads_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Decl_FunctionDeclDefaultTypeInternal { + PROTOBUF_CONSTEXPR Decl_FunctionDeclDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Decl_FunctionDeclDefaultTypeInternal() {} + union { + Decl_FunctionDecl _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Decl_FunctionDeclDefaultTypeInternal _Decl_FunctionDecl_default_instance_; +PROTOBUF_CONSTEXPR Decl::Decl( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.decl_kind_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct DeclDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeclDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeclDefaultTypeInternal() {} + union { + Decl _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeclDefaultTypeInternal _Decl_default_instance_; +PROTOBUF_CONSTEXPR Reference::Reference( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.overload_id_)*/{} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.value_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ReferenceDefaultTypeInternal { + PROTOBUF_CONSTEXPR ReferenceDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ReferenceDefaultTypeInternal() {} + union { + Reference _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReferenceDefaultTypeInternal _Reference_default_instance_; +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google +static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[13]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[2]; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr, _impl_.reference_map_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr, _impl_.type_map_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr, _impl_.source_info_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr, _impl_.expr_version_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr, _impl_.expr_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_ListType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_ListType, _impl_.elem_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_MapType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_MapType, _impl_.key_type_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_MapType, _impl_.value_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_FunctionType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_FunctionType, _impl_.result_type_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_FunctionType, _impl_.arg_types_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_AbstractType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_AbstractType, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_AbstractType, _impl_.parameter_types_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type, _impl_.type_kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_IdentDecl, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_IdentDecl, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_IdentDecl, _impl_.value_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_IdentDecl, _impl_.doc_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, _impl_.overload_id_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, _impl_.params_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, _impl_.type_params_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, _impl_.result_type_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, _impl_.is_instance_function_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, _impl_.doc_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl, _impl_.overloads_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl, _impl_.name_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl, _impl_.decl_kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Reference, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Reference, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Reference, _impl_.overload_id_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Reference, _impl_.value_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, 8, -1, sizeof(::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse)}, + { 10, 18, -1, sizeof(::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse)}, + { 20, -1, -1, sizeof(::google::api::expr::v1alpha1::CheckedExpr)}, + { 31, -1, -1, sizeof(::google::api::expr::v1alpha1::Type_ListType)}, + { 38, -1, -1, sizeof(::google::api::expr::v1alpha1::Type_MapType)}, + { 46, -1, -1, sizeof(::google::api::expr::v1alpha1::Type_FunctionType)}, + { 54, -1, -1, sizeof(::google::api::expr::v1alpha1::Type_AbstractType)}, + { 62, -1, -1, sizeof(::google::api::expr::v1alpha1::Type)}, + { 82, -1, -1, sizeof(::google::api::expr::v1alpha1::Decl_IdentDecl)}, + { 91, -1, -1, sizeof(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload)}, + { 103, -1, -1, sizeof(::google::api::expr::v1alpha1::Decl_FunctionDecl)}, + { 110, -1, -1, sizeof(::google::api::expr::v1alpha1::Decl)}, + { 120, -1, -1, sizeof(::google::api::expr::v1alpha1::Reference)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::google::api::expr::v1alpha1::_CheckedExpr_ReferenceMapEntry_DoNotUse_default_instance_._instance, + &::google::api::expr::v1alpha1::_CheckedExpr_TypeMapEntry_DoNotUse_default_instance_._instance, + &::google::api::expr::v1alpha1::_CheckedExpr_default_instance_._instance, + &::google::api::expr::v1alpha1::_Type_ListType_default_instance_._instance, + &::google::api::expr::v1alpha1::_Type_MapType_default_instance_._instance, + &::google::api::expr::v1alpha1::_Type_FunctionType_default_instance_._instance, + &::google::api::expr::v1alpha1::_Type_AbstractType_default_instance_._instance, + &::google::api::expr::v1alpha1::_Type_default_instance_._instance, + &::google::api::expr::v1alpha1::_Decl_IdentDecl_default_instance_._instance, + &::google::api::expr::v1alpha1::_Decl_FunctionDecl_Overload_default_instance_._instance, + &::google::api::expr::v1alpha1::_Decl_FunctionDecl_default_instance_._instance, + &::google::api::expr::v1alpha1::_Decl_default_instance_._instance, + &::google::api::expr::v1alpha1::_Reference_default_instance_._instance, +}; + +const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n&google/api/expr/v1alpha1/checked.proto" + "\022\030google.api.expr.v1alpha1\032%google/api/e" + "xpr/v1alpha1/syntax.proto\032\033google/protob" + "uf/empty.proto\032\034google/protobuf/struct.p" + "roto\"\232\004\n\013CheckedExpr\022\\\n\rreference_map\030\002 " + "\003(\01327.google.api.expr.v1alpha1.CheckedEx" + "pr.ReferenceMapEntryR\014referenceMap\022M\n\010ty" + "pe_map\030\003 \003(\01322.google.api.expr.v1alpha1." + "CheckedExpr.TypeMapEntryR\007typeMap\022E\n\013sou" + "rce_info\030\005 \001(\0132$.google.api.expr.v1alpha" + "1.SourceInfoR\nsourceInfo\022!\n\014expr_version" + "\030\006 \001(\tR\013exprVersion\0222\n\004expr\030\004 \001(\0132\036.goog" + "le.api.expr.v1alpha1.ExprR\004expr\032d\n\021Refer" + "enceMapEntry\022\020\n\003key\030\001 \001(\003R\003key\0229\n\005value\030" + "\002 \001(\0132#.google.api.expr.v1alpha1.Referen" + "ceR\005value:\0028\001\032Z\n\014TypeMapEntry\022\020\n\003key\030\001 \001" + "(\003R\003key\0224\n\005value\030\002 \001(\0132\036.google.api.expr" + ".v1alpha1.TypeR\005value:\0028\001\"\310\013\n\004Type\022*\n\003dy" + "n\030\001 \001(\0132\026.google.protobuf.EmptyH\000R\003dyn\0220" + "\n\004null\030\002 \001(\0162\032.google.protobuf.NullValue" + "H\000R\004null\022L\n\tprimitive\030\003 \001(\0162,.google.api" + ".expr.v1alpha1.Type.PrimitiveTypeH\000R\tpri" + "mitive\022H\n\007wrapper\030\004 \001(\0162,.google.api.exp" + "r.v1alpha1.Type.PrimitiveTypeH\000R\007wrapper" + "\022M\n\nwell_known\030\005 \001(\0162,.google.api.expr.v" + "1alpha1.Type.WellKnownTypeH\000R\twellKnown\022" + "F\n\tlist_type\030\006 \001(\0132\'.google.api.expr.v1a" + "lpha1.Type.ListTypeH\000R\010listType\022C\n\010map_t" + "ype\030\007 \001(\0132&.google.api.expr.v1alpha1.Typ" + "e.MapTypeH\000R\007mapType\022I\n\010function\030\010 \001(\0132+" + ".google.api.expr.v1alpha1.Type.FunctionT" + "ypeH\000R\010function\022#\n\014message_type\030\t \001(\tH\000R" + "\013messageType\022\037\n\ntype_param\030\n \001(\tH\000R\ttype" + "Param\0224\n\004type\030\013 \001(\0132\036.google.api.expr.v1" + "alpha1.TypeH\000R\004type\022.\n\005error\030\014 \001(\0132\026.goo" + "gle.protobuf.EmptyH\000R\005error\022R\n\rabstract_" + "type\030\016 \001(\0132+.google.api.expr.v1alpha1.Ty" + "pe.AbstractTypeH\000R\014abstractType\032G\n\010ListT" + "ype\022;\n\telem_type\030\001 \001(\0132\036.google.api.expr" + ".v1alpha1.TypeR\010elemType\032\203\001\n\007MapType\0229\n\010" + "key_type\030\001 \001(\0132\036.google.api.expr.v1alpha" + "1.TypeR\007keyType\022=\n\nvalue_type\030\002 \001(\0132\036.go" + "ogle.api.expr.v1alpha1.TypeR\tvalueType\032\214" + "\001\n\014FunctionType\022\?\n\013result_type\030\001 \001(\0132\036.g" + "oogle.api.expr.v1alpha1.TypeR\nresultType" + "\022;\n\targ_types\030\002 \003(\0132\036.google.api.expr.v1" + "alpha1.TypeR\010argTypes\032k\n\014AbstractType\022\022\n" + "\004name\030\001 \001(\tR\004name\022G\n\017parameter_types\030\002 \003" + "(\0132\036.google.api.expr.v1alpha1.TypeR\016para" + "meterTypes\"s\n\rPrimitiveType\022\036\n\032PRIMITIVE" + "_TYPE_UNSPECIFIED\020\000\022\010\n\004BOOL\020\001\022\t\n\005INT64\020\002" + "\022\n\n\006UINT64\020\003\022\n\n\006DOUBLE\020\004\022\n\n\006STRING\020\005\022\t\n\005" + "BYTES\020\006\"V\n\rWellKnownType\022\037\n\033WELL_KNOWN_T" + "YPE_UNSPECIFIED\020\000\022\007\n\003ANY\020\001\022\r\n\tTIMESTAMP\020" + "\002\022\014\n\010DURATION\020\003B\013\n\ttype_kind\"\263\005\n\004Decl\022\022\n" + "\004name\030\001 \001(\tR\004name\022@\n\005ident\030\002 \001(\0132(.googl" + "e.api.expr.v1alpha1.Decl.IdentDeclH\000R\005id" + "ent\022I\n\010function\030\003 \001(\0132+.google.api.expr." + "v1alpha1.Decl.FunctionDeclH\000R\010function\032\213" + "\001\n\tIdentDecl\0222\n\004type\030\001 \001(\0132\036.google.api." + "expr.v1alpha1.TypeR\004type\0228\n\005value\030\002 \001(\0132" + "\".google.api.expr.v1alpha1.ConstantR\005val" + "ue\022\020\n\003doc\030\003 \001(\tR\003doc\032\356\002\n\014FunctionDecl\022R\n" + "\toverloads\030\001 \003(\01324.google.api.expr.v1alp" + "ha1.Decl.FunctionDecl.OverloadR\toverload" + "s\032\211\002\n\010Overload\022\037\n\013overload_id\030\001 \001(\tR\nove" + "rloadId\0226\n\006params\030\002 \003(\0132\036.google.api.exp" + "r.v1alpha1.TypeR\006params\022\037\n\013type_params\030\003" + " \003(\tR\ntypeParams\022\?\n\013result_type\030\004 \001(\0132\036." + "google.api.expr.v1alpha1.TypeR\nresultTyp" + "e\0220\n\024is_instance_function\030\005 \001(\010R\022isInsta" + "nceFunction\022\020\n\003doc\030\006 \001(\tR\003docB\013\n\tdecl_ki" + "nd\"z\n\tReference\022\022\n\004name\030\001 \001(\tR\004name\022\037\n\013o" + "verload_id\030\003 \003(\tR\noverloadId\0228\n\005value\030\004 " + "\001(\0132\".google.api.expr.v1alpha1.ConstantR" + "\005valueBl\n\034com.google.api.expr.v1alpha1B\t" + "DeclProtoP\001Z= 1900 && _MSC_VER < 1912)) +constexpr Type_PrimitiveType Type::PRIMITIVE_TYPE_UNSPECIFIED; +constexpr Type_PrimitiveType Type::BOOL; +constexpr Type_PrimitiveType Type::INT64; +constexpr Type_PrimitiveType Type::UINT64; +constexpr Type_PrimitiveType Type::DOUBLE; +constexpr Type_PrimitiveType Type::STRING; +constexpr Type_PrimitiveType Type::BYTES; +constexpr Type_PrimitiveType Type::PrimitiveType_MIN; +constexpr Type_PrimitiveType Type::PrimitiveType_MAX; +constexpr int Type::PrimitiveType_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Type_WellKnownType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto); + return file_level_enum_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[1]; +} +bool Type_WellKnownType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +constexpr Type_WellKnownType Type::WELL_KNOWN_TYPE_UNSPECIFIED; +constexpr Type_WellKnownType Type::ANY; +constexpr Type_WellKnownType Type::TIMESTAMP; +constexpr Type_WellKnownType Type::DURATION; +constexpr Type_WellKnownType Type::WellKnownType_MIN; +constexpr Type_WellKnownType Type::WellKnownType_MAX; +constexpr int Type::WellKnownType_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) + +// =================================================================== + +CheckedExpr_ReferenceMapEntry_DoNotUse::CheckedExpr_ReferenceMapEntry_DoNotUse() {} +CheckedExpr_ReferenceMapEntry_DoNotUse::CheckedExpr_ReferenceMapEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void CheckedExpr_ReferenceMapEntry_DoNotUse::MergeFrom(const CheckedExpr_ReferenceMapEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata CheckedExpr_ReferenceMapEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[0]); +} + +// =================================================================== + +CheckedExpr_TypeMapEntry_DoNotUse::CheckedExpr_TypeMapEntry_DoNotUse() {} +CheckedExpr_TypeMapEntry_DoNotUse::CheckedExpr_TypeMapEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void CheckedExpr_TypeMapEntry_DoNotUse::MergeFrom(const CheckedExpr_TypeMapEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata CheckedExpr_TypeMapEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[1]); +} + +// =================================================================== + +class CheckedExpr::_Internal { + public: + static const ::google::api::expr::v1alpha1::SourceInfo& source_info(const CheckedExpr* msg); + static const ::google::api::expr::v1alpha1::Expr& expr(const CheckedExpr* msg); +}; + +const ::google::api::expr::v1alpha1::SourceInfo& +CheckedExpr::_Internal::source_info(const CheckedExpr* msg) { + return *msg->_impl_.source_info_; +} +const ::google::api::expr::v1alpha1::Expr& +CheckedExpr::_Internal::expr(const CheckedExpr* msg) { + return *msg->_impl_.expr_; +} +void CheckedExpr::clear_source_info() { + if (GetArenaForAllocation() == nullptr && _impl_.source_info_ != nullptr) { + delete _impl_.source_info_; + } + _impl_.source_info_ = nullptr; +} +void CheckedExpr::clear_expr() { + if (GetArenaForAllocation() == nullptr && _impl_.expr_ != nullptr) { + delete _impl_.expr_; + } + _impl_.expr_ = nullptr; +} +CheckedExpr::CheckedExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &CheckedExpr::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.CheckedExpr) +} +CheckedExpr::CheckedExpr(const CheckedExpr& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + CheckedExpr* const _this = this; (void)_this; + new (&_impl_) Impl_{ + /*decltype(_impl_.reference_map_)*/{} + , /*decltype(_impl_.type_map_)*/{} + , decltype(_impl_.expr_version_){} + , decltype(_impl_.expr_){nullptr} + , decltype(_impl_.source_info_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.reference_map_.MergeFrom(from._impl_.reference_map_); + _this->_impl_.type_map_.MergeFrom(from._impl_.type_map_); + _impl_.expr_version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.expr_version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_expr_version().empty()) { + _this->_impl_.expr_version_.Set(from._internal_expr_version(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_expr()) { + _this->_impl_.expr_ = new ::google::api::expr::v1alpha1::Expr(*from._impl_.expr_); + } + if (from._internal_has_source_info()) { + _this->_impl_.source_info_ = new ::google::api::expr::v1alpha1::SourceInfo(*from._impl_.source_info_); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.CheckedExpr) +} + +inline void CheckedExpr::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + /*decltype(_impl_.reference_map_)*/{::_pbi::ArenaInitialized(), arena} + , /*decltype(_impl_.type_map_)*/{::_pbi::ArenaInitialized(), arena} + , decltype(_impl_.expr_version_){} + , decltype(_impl_.expr_){nullptr} + , decltype(_impl_.source_info_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.expr_version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.expr_version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +CheckedExpr::~CheckedExpr() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.CheckedExpr) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void CheckedExpr::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.reference_map_.Destruct(); + _impl_.reference_map_.~MapField(); + _impl_.type_map_.Destruct(); + _impl_.type_map_.~MapField(); + _impl_.expr_version_.Destroy(); + if (this != internal_default_instance()) delete _impl_.expr_; + if (this != internal_default_instance()) delete _impl_.source_info_; +} + +void CheckedExpr::ArenaDtor(void* object) { + CheckedExpr* _this = reinterpret_cast< CheckedExpr* >(object); + _this->_impl_.reference_map_.Destruct(); + _this->_impl_.type_map_.Destruct(); +} +void CheckedExpr::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void CheckedExpr::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.CheckedExpr) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.reference_map_.Clear(); + _impl_.type_map_.Clear(); + _impl_.expr_version_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.expr_ != nullptr) { + delete _impl_.expr_; + } + _impl_.expr_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.source_info_ != nullptr) { + delete _impl_.source_info_; + } + _impl_.source_info_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CheckedExpr::_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 reference_map = 2 [json_name = "referenceMap"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.reference_map_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // map type_map = 3 [json_name = "typeMap"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.type_map_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_source_info(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string expr_version = 6 [json_name = "exprVersion"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_expr_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.CheckedExpr.expr_version")); + } 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* CheckedExpr::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.CheckedExpr) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // map reference_map = 2 [json_name = "referenceMap"]; + if (!this->_internal_reference_map().empty()) { + using MapType = ::_pb::Map; + using WireHelper = CheckedExpr_ReferenceMapEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_reference_map(); + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterFlat(map_field)) { + target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); + } + } + } + + // map type_map = 3 [json_name = "typeMap"]; + if (!this->_internal_type_map().empty()) { + using MapType = ::_pb::Map; + using WireHelper = CheckedExpr_TypeMapEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_type_map(); + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterFlat(map_field)) { + target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); + } + } + } + + // .google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"]; + if (this->_internal_has_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::expr(this), + _Internal::expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"]; + if (this->_internal_has_source_info()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::source_info(this), + _Internal::source_info(this).GetCachedSize(), target, stream); + } + + // string expr_version = 6 [json_name = "exprVersion"]; + if (!this->_internal_expr_version().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_expr_version().data(), static_cast(this->_internal_expr_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.CheckedExpr.expr_version"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_expr_version(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.CheckedExpr) + return target; +} + +size_t CheckedExpr::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.CheckedExpr) + 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 reference_map = 2 [json_name = "referenceMap"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_reference_map_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Reference >::const_iterator + it = this->_internal_reference_map().begin(); + it != this->_internal_reference_map().end(); ++it) { + total_size += CheckedExpr_ReferenceMapEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // map type_map = 3 [json_name = "typeMap"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_type_map_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Type >::const_iterator + it = this->_internal_type_map().begin(); + it != this->_internal_type_map().end(); ++it) { + total_size += CheckedExpr_TypeMapEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // string expr_version = 6 [json_name = "exprVersion"]; + if (!this->_internal_expr_version().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_expr_version()); + } + + // .google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"]; + if (this->_internal_has_expr()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.expr_); + } + + // .google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"]; + if (this->_internal_has_source_info()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.source_info_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CheckedExpr::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + CheckedExpr::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CheckedExpr::GetClassData() const { return &_class_data_; } + + +void CheckedExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.CheckedExpr) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.reference_map_.MergeFrom(from._impl_.reference_map_); + _this->_impl_.type_map_.MergeFrom(from._impl_.type_map_); + if (!from._internal_expr_version().empty()) { + _this->_internal_set_expr_version(from._internal_expr_version()); + } + if (from._internal_has_expr()) { + _this->_internal_mutable_expr()->::google::api::expr::v1alpha1::Expr::MergeFrom( + from._internal_expr()); + } + if (from._internal_has_source_info()) { + _this->_internal_mutable_source_info()->::google::api::expr::v1alpha1::SourceInfo::MergeFrom( + from._internal_source_info()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CheckedExpr::CopyFrom(const CheckedExpr& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.CheckedExpr) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CheckedExpr::IsInitialized() const { + return true; +} + +void CheckedExpr::InternalSwap(CheckedExpr* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.reference_map_.InternalSwap(&other->_impl_.reference_map_); + _impl_.type_map_.InternalSwap(&other->_impl_.type_map_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.expr_version_, lhs_arena, + &other->_impl_.expr_version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(CheckedExpr, _impl_.source_info_) + + sizeof(CheckedExpr::_impl_.source_info_) + - PROTOBUF_FIELD_OFFSET(CheckedExpr, _impl_.expr_)>( + reinterpret_cast(&_impl_.expr_), + reinterpret_cast(&other->_impl_.expr_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CheckedExpr::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[2]); +} + +// =================================================================== + +class Type_ListType::_Internal { + public: + static const ::google::api::expr::v1alpha1::Type& elem_type(const Type_ListType* msg); +}; + +const ::google::api::expr::v1alpha1::Type& +Type_ListType::_Internal::elem_type(const Type_ListType* msg) { + return *msg->_impl_.elem_type_; +} +Type_ListType::Type_ListType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Type.ListType) +} +Type_ListType::Type_ListType(const Type_ListType& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Type_ListType* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.elem_type_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_elem_type()) { + _this->_impl_.elem_type_ = new ::google::api::expr::v1alpha1::Type(*from._impl_.elem_type_); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Type.ListType) +} + +inline void Type_ListType::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.elem_type_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Type_ListType::~Type_ListType() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Type.ListType) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Type_ListType::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.elem_type_; +} + +void Type_ListType::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Type_ListType::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Type.ListType) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.elem_type_ != nullptr) { + delete _impl_.elem_type_; + } + _impl_.elem_type_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Type_ListType::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.api.expr.v1alpha1.Type elem_type = 1 [json_name = "elemType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_elem_type(), 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* Type_ListType::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Type.ListType) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.api.expr.v1alpha1.Type elem_type = 1 [json_name = "elemType"]; + if (this->_internal_has_elem_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::elem_type(this), + _Internal::elem_type(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:google.api.expr.v1alpha1.Type.ListType) + return target; +} + +size_t Type_ListType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Type.ListType) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.api.expr.v1alpha1.Type elem_type = 1 [json_name = "elemType"]; + if (this->_internal_has_elem_type()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.elem_type_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Type_ListType::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Type_ListType::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Type_ListType::GetClassData() const { return &_class_data_; } + + +void Type_ListType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Type.ListType) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_elem_type()) { + _this->_internal_mutable_elem_type()->::google::api::expr::v1alpha1::Type::MergeFrom( + from._internal_elem_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Type_ListType::CopyFrom(const Type_ListType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Type.ListType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Type_ListType::IsInitialized() const { + return true; +} + +void Type_ListType::InternalSwap(Type_ListType* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.elem_type_, other->_impl_.elem_type_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Type_ListType::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[3]); +} + +// =================================================================== + +class Type_MapType::_Internal { + public: + static const ::google::api::expr::v1alpha1::Type& key_type(const Type_MapType* msg); + static const ::google::api::expr::v1alpha1::Type& value_type(const Type_MapType* msg); +}; + +const ::google::api::expr::v1alpha1::Type& +Type_MapType::_Internal::key_type(const Type_MapType* msg) { + return *msg->_impl_.key_type_; +} +const ::google::api::expr::v1alpha1::Type& +Type_MapType::_Internal::value_type(const Type_MapType* msg) { + return *msg->_impl_.value_type_; +} +Type_MapType::Type_MapType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Type.MapType) +} +Type_MapType::Type_MapType(const Type_MapType& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Type_MapType* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.key_type_){nullptr} + , decltype(_impl_.value_type_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_key_type()) { + _this->_impl_.key_type_ = new ::google::api::expr::v1alpha1::Type(*from._impl_.key_type_); + } + if (from._internal_has_value_type()) { + _this->_impl_.value_type_ = new ::google::api::expr::v1alpha1::Type(*from._impl_.value_type_); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Type.MapType) +} + +inline void Type_MapType::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.key_type_){nullptr} + , decltype(_impl_.value_type_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Type_MapType::~Type_MapType() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Type.MapType) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Type_MapType::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.key_type_; + if (this != internal_default_instance()) delete _impl_.value_type_; +} + +void Type_MapType::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Type_MapType::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Type.MapType) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.key_type_ != nullptr) { + delete _impl_.key_type_; + } + _impl_.key_type_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.value_type_ != nullptr) { + delete _impl_.value_type_; + } + _impl_.value_type_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Type_MapType::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.api.expr.v1alpha1.Type key_type = 1 [json_name = "keyType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_key_type(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Type value_type = 2 [json_name = "valueType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_value_type(), 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* Type_MapType::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Type.MapType) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.api.expr.v1alpha1.Type key_type = 1 [json_name = "keyType"]; + if (this->_internal_has_key_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::key_type(this), + _Internal::key_type(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Type value_type = 2 [json_name = "valueType"]; + if (this->_internal_has_value_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::value_type(this), + _Internal::value_type(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:google.api.expr.v1alpha1.Type.MapType) + return target; +} + +size_t Type_MapType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Type.MapType) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.api.expr.v1alpha1.Type key_type = 1 [json_name = "keyType"]; + if (this->_internal_has_key_type()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.key_type_); + } + + // .google.api.expr.v1alpha1.Type value_type = 2 [json_name = "valueType"]; + if (this->_internal_has_value_type()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.value_type_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Type_MapType::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Type_MapType::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Type_MapType::GetClassData() const { return &_class_data_; } + + +void Type_MapType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Type.MapType) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_key_type()) { + _this->_internal_mutable_key_type()->::google::api::expr::v1alpha1::Type::MergeFrom( + from._internal_key_type()); + } + if (from._internal_has_value_type()) { + _this->_internal_mutable_value_type()->::google::api::expr::v1alpha1::Type::MergeFrom( + from._internal_value_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Type_MapType::CopyFrom(const Type_MapType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Type.MapType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Type_MapType::IsInitialized() const { + return true; +} + +void Type_MapType::InternalSwap(Type_MapType* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Type_MapType, _impl_.value_type_) + + sizeof(Type_MapType::_impl_.value_type_) + - PROTOBUF_FIELD_OFFSET(Type_MapType, _impl_.key_type_)>( + reinterpret_cast(&_impl_.key_type_), + reinterpret_cast(&other->_impl_.key_type_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Type_MapType::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[4]); +} + +// =================================================================== + +class Type_FunctionType::_Internal { + public: + static const ::google::api::expr::v1alpha1::Type& result_type(const Type_FunctionType* msg); +}; + +const ::google::api::expr::v1alpha1::Type& +Type_FunctionType::_Internal::result_type(const Type_FunctionType* msg) { + return *msg->_impl_.result_type_; +} +Type_FunctionType::Type_FunctionType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Type.FunctionType) +} +Type_FunctionType::Type_FunctionType(const Type_FunctionType& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Type_FunctionType* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.arg_types_){from._impl_.arg_types_} + , decltype(_impl_.result_type_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_result_type()) { + _this->_impl_.result_type_ = new ::google::api::expr::v1alpha1::Type(*from._impl_.result_type_); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Type.FunctionType) +} + +inline void Type_FunctionType::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.arg_types_){arena} + , decltype(_impl_.result_type_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Type_FunctionType::~Type_FunctionType() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Type.FunctionType) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Type_FunctionType::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.arg_types_.~RepeatedPtrField(); + if (this != internal_default_instance()) delete _impl_.result_type_; +} + +void Type_FunctionType::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Type_FunctionType::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Type.FunctionType) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.arg_types_.Clear(); + if (GetArenaForAllocation() == nullptr && _impl_.result_type_ != nullptr) { + delete _impl_.result_type_; + } + _impl_.result_type_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Type_FunctionType::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.api.expr.v1alpha1.Type result_type = 1 [json_name = "resultType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_result_type(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1alpha1.Type arg_types = 2 [json_name = "argTypes"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_arg_types(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* Type_FunctionType::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Type.FunctionType) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.api.expr.v1alpha1.Type result_type = 1 [json_name = "resultType"]; + if (this->_internal_has_result_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::result_type(this), + _Internal::result_type(this).GetCachedSize(), target, stream); + } + + // repeated .google.api.expr.v1alpha1.Type arg_types = 2 [json_name = "argTypes"]; + for (unsigned i = 0, + n = static_cast(this->_internal_arg_types_size()); i < n; i++) { + const auto& repfield = this->_internal_arg_types(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.Type.FunctionType) + return target; +} + +size_t Type_FunctionType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Type.FunctionType) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.expr.v1alpha1.Type arg_types = 2 [json_name = "argTypes"]; + total_size += 1UL * this->_internal_arg_types_size(); + for (const auto& msg : this->_impl_.arg_types_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // .google.api.expr.v1alpha1.Type result_type = 1 [json_name = "resultType"]; + if (this->_internal_has_result_type()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.result_type_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Type_FunctionType::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Type_FunctionType::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Type_FunctionType::GetClassData() const { return &_class_data_; } + + +void Type_FunctionType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Type.FunctionType) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.arg_types_.MergeFrom(from._impl_.arg_types_); + if (from._internal_has_result_type()) { + _this->_internal_mutable_result_type()->::google::api::expr::v1alpha1::Type::MergeFrom( + from._internal_result_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Type_FunctionType::CopyFrom(const Type_FunctionType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Type.FunctionType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Type_FunctionType::IsInitialized() const { + return true; +} + +void Type_FunctionType::InternalSwap(Type_FunctionType* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.arg_types_.InternalSwap(&other->_impl_.arg_types_); + swap(_impl_.result_type_, other->_impl_.result_type_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Type_FunctionType::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[5]); +} + +// =================================================================== + +class Type_AbstractType::_Internal { + public: +}; + +Type_AbstractType::Type_AbstractType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Type.AbstractType) +} +Type_AbstractType::Type_AbstractType(const Type_AbstractType& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Type_AbstractType* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.parameter_types_){from._impl_.parameter_types_} + , decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Type.AbstractType) +} + +inline void Type_AbstractType::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.parameter_types_){arena} + , decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Type_AbstractType::~Type_AbstractType() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Type.AbstractType) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Type_AbstractType::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.parameter_types_.~RepeatedPtrField(); + _impl_.name_.Destroy(); +} + +void Type_AbstractType::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Type_AbstractType::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Type.AbstractType) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.parameter_types_.Clear(); + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Type_AbstractType::_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, "google.api.expr.v1alpha1.Type.AbstractType.name")); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1alpha1.Type parameter_types = 2 [json_name = "parameterTypes"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_parameter_types(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* Type_AbstractType::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Type.AbstractType) + 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, + "google.api.expr.v1alpha1.Type.AbstractType.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // repeated .google.api.expr.v1alpha1.Type parameter_types = 2 [json_name = "parameterTypes"]; + for (unsigned i = 0, + n = static_cast(this->_internal_parameter_types_size()); i < n; i++) { + const auto& repfield = this->_internal_parameter_types(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.Type.AbstractType) + return target; +} + +size_t Type_AbstractType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Type.AbstractType) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.expr.v1alpha1.Type parameter_types = 2 [json_name = "parameterTypes"]; + total_size += 1UL * this->_internal_parameter_types_size(); + for (const auto& msg : this->_impl_.parameter_types_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Type_AbstractType::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Type_AbstractType::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Type_AbstractType::GetClassData() const { return &_class_data_; } + + +void Type_AbstractType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Type.AbstractType) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.parameter_types_.MergeFrom(from._impl_.parameter_types_); + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Type_AbstractType::CopyFrom(const Type_AbstractType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Type.AbstractType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Type_AbstractType::IsInitialized() const { + return true; +} + +void Type_AbstractType::InternalSwap(Type_AbstractType* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.parameter_types_.InternalSwap(&other->_impl_.parameter_types_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Type_AbstractType::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[6]); +} + +// =================================================================== + +class Type::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Empty& dyn(const Type* msg); + static const ::google::api::expr::v1alpha1::Type_ListType& list_type(const Type* msg); + static const ::google::api::expr::v1alpha1::Type_MapType& map_type(const Type* msg); + static const ::google::api::expr::v1alpha1::Type_FunctionType& function(const Type* msg); + static const ::google::api::expr::v1alpha1::Type& type(const Type* msg); + static const ::PROTOBUF_NAMESPACE_ID::Empty& error(const Type* msg); + static const ::google::api::expr::v1alpha1::Type_AbstractType& abstract_type(const Type* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Empty& +Type::_Internal::dyn(const Type* msg) { + return *msg->_impl_.type_kind_.dyn_; +} +const ::google::api::expr::v1alpha1::Type_ListType& +Type::_Internal::list_type(const Type* msg) { + return *msg->_impl_.type_kind_.list_type_; +} +const ::google::api::expr::v1alpha1::Type_MapType& +Type::_Internal::map_type(const Type* msg) { + return *msg->_impl_.type_kind_.map_type_; +} +const ::google::api::expr::v1alpha1::Type_FunctionType& +Type::_Internal::function(const Type* msg) { + return *msg->_impl_.type_kind_.function_; +} +const ::google::api::expr::v1alpha1::Type& +Type::_Internal::type(const Type* msg) { + return *msg->_impl_.type_kind_.type_; +} +const ::PROTOBUF_NAMESPACE_ID::Empty& +Type::_Internal::error(const Type* msg) { + return *msg->_impl_.type_kind_.error_; +} +const ::google::api::expr::v1alpha1::Type_AbstractType& +Type::_Internal::abstract_type(const Type* msg) { + return *msg->_impl_.type_kind_.abstract_type_; +} +void Type::set_allocated_dyn(::PROTOBUF_NAMESPACE_ID::Empty* dyn) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_type_kind(); + if (dyn) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(dyn)); + if (message_arena != submessage_arena) { + dyn = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, dyn, submessage_arena); + } + set_has_dyn(); + _impl_.type_kind_.dyn_ = dyn; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.dyn) +} +void Type::clear_dyn() { + if (_internal_has_dyn()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_kind_.dyn_; + } + clear_has_type_kind(); + } +} +void Type::set_allocated_list_type(::google::api::expr::v1alpha1::Type_ListType* list_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_type_kind(); + if (list_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(list_type); + if (message_arena != submessage_arena) { + list_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, list_type, submessage_arena); + } + set_has_list_type(); + _impl_.type_kind_.list_type_ = list_type; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.list_type) +} +void Type::set_allocated_map_type(::google::api::expr::v1alpha1::Type_MapType* map_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_type_kind(); + if (map_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(map_type); + if (message_arena != submessage_arena) { + map_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, map_type, submessage_arena); + } + set_has_map_type(); + _impl_.type_kind_.map_type_ = map_type; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.map_type) +} +void Type::set_allocated_function(::google::api::expr::v1alpha1::Type_FunctionType* function) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_type_kind(); + if (function) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(function); + if (message_arena != submessage_arena) { + function = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, function, submessage_arena); + } + set_has_function(); + _impl_.type_kind_.function_ = function; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.function) +} +void Type::set_allocated_type(::google::api::expr::v1alpha1::Type* type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_type_kind(); + if (type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(type); + if (message_arena != submessage_arena) { + type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, type, submessage_arena); + } + set_has_type(); + _impl_.type_kind_.type_ = type; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.type) +} +void Type::set_allocated_error(::PROTOBUF_NAMESPACE_ID::Empty* error) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_type_kind(); + if (error) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(error)); + if (message_arena != submessage_arena) { + error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + set_has_error(); + _impl_.type_kind_.error_ = error; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.error) +} +void Type::clear_error() { + if (_internal_has_error()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_kind_.error_; + } + clear_has_type_kind(); + } +} +void Type::set_allocated_abstract_type(::google::api::expr::v1alpha1::Type_AbstractType* abstract_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_type_kind(); + if (abstract_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(abstract_type); + if (message_arena != submessage_arena) { + abstract_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, abstract_type, submessage_arena); + } + set_has_abstract_type(); + _impl_.type_kind_.abstract_type_ = abstract_type; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.abstract_type) +} +Type::Type(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Type) +} +Type::Type(const Type& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Type* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.type_kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_type_kind(); + switch (from.type_kind_case()) { + case kDyn: { + _this->_internal_mutable_dyn()->::PROTOBUF_NAMESPACE_ID::Empty::MergeFrom( + from._internal_dyn()); + break; + } + case kNull: { + _this->_internal_set_null(from._internal_null()); + break; + } + case kPrimitive: { + _this->_internal_set_primitive(from._internal_primitive()); + break; + } + case kWrapper: { + _this->_internal_set_wrapper(from._internal_wrapper()); + break; + } + case kWellKnown: { + _this->_internal_set_well_known(from._internal_well_known()); + break; + } + case kListType: { + _this->_internal_mutable_list_type()->::google::api::expr::v1alpha1::Type_ListType::MergeFrom( + from._internal_list_type()); + break; + } + case kMapType: { + _this->_internal_mutable_map_type()->::google::api::expr::v1alpha1::Type_MapType::MergeFrom( + from._internal_map_type()); + break; + } + case kFunction: { + _this->_internal_mutable_function()->::google::api::expr::v1alpha1::Type_FunctionType::MergeFrom( + from._internal_function()); + break; + } + case kMessageType: { + _this->_internal_set_message_type(from._internal_message_type()); + break; + } + case kTypeParam: { + _this->_internal_set_type_param(from._internal_type_param()); + break; + } + case kType: { + _this->_internal_mutable_type()->::google::api::expr::v1alpha1::Type::MergeFrom( + from._internal_type()); + break; + } + case kError: { + _this->_internal_mutable_error()->::PROTOBUF_NAMESPACE_ID::Empty::MergeFrom( + from._internal_error()); + break; + } + case kAbstractType: { + _this->_internal_mutable_abstract_type()->::google::api::expr::v1alpha1::Type_AbstractType::MergeFrom( + from._internal_abstract_type()); + break; + } + case TYPE_KIND_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Type) +} + +inline void Type::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.type_kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_type_kind(); +} + +Type::~Type() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Type) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Type::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_type_kind()) { + clear_type_kind(); + } +} + +void Type::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Type::clear_type_kind() { +// @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1alpha1.Type) + switch (type_kind_case()) { + case kDyn: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_kind_.dyn_; + } + break; + } + case kNull: { + // No need to clear + break; + } + case kPrimitive: { + // No need to clear + break; + } + case kWrapper: { + // No need to clear + break; + } + case kWellKnown: { + // No need to clear + break; + } + case kListType: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_kind_.list_type_; + } + break; + } + case kMapType: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_kind_.map_type_; + } + break; + } + case kFunction: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_kind_.function_; + } + break; + } + case kMessageType: { + _impl_.type_kind_.message_type_.Destroy(); + break; + } + case kTypeParam: { + _impl_.type_kind_.type_param_.Destroy(); + break; + } + case kType: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_kind_.type_; + } + break; + } + case kError: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_kind_.error_; + } + break; + } + case kAbstractType: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_kind_.abstract_type_; + } + break; + } + case TYPE_KIND_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = TYPE_KIND_NOT_SET; +} + + +void Type::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Type) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_type_kind(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Type::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.protobuf.Empty dyn = 1 [json_name = "dyn"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_dyn(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.NullValue null = 2 [json_name = "null"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_null(static_cast<::PROTOBUF_NAMESPACE_ID::NullValue>(val)); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3 [json_name = "primitive"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_primitive(static_cast<::google::api::expr::v1alpha1::Type_PrimitiveType>(val)); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4 [json_name = "wrapper"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_wrapper(static_cast<::google::api::expr::v1alpha1::Type_PrimitiveType>(val)); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5 [json_name = "wellKnown"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_well_known(static_cast<::google::api::expr::v1alpha1::Type_WellKnownType>(val)); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Type.ListType list_type = 6 [json_name = "listType"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_list_type(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Type.MapType map_type = 7 [json_name = "mapType"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_map_type(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Type.FunctionType function = 8 [json_name = "function"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_function(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string message_type = 9 [json_name = "messageType"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + auto str = _internal_mutable_message_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Type.message_type")); + } else + goto handle_unusual; + continue; + // string type_param = 10 [json_name = "typeParam"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + auto str = _internal_mutable_type_param(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Type.type_param")); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Type type = 11 [json_name = "type"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + ptr = ctx->ParseMessage(_internal_mutable_type(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Empty error = 12 [json_name = "error"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + ptr = ctx->ParseMessage(_internal_mutable_error(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14 [json_name = "abstractType"]; + case 14: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 114)) { + ptr = ctx->ParseMessage(_internal_mutable_abstract_type(), 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* Type::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Type) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.Empty dyn = 1 [json_name = "dyn"]; + if (_internal_has_dyn()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::dyn(this), + _Internal::dyn(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.NullValue null = 2 [json_name = "null"]; + if (_internal_has_null()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_null(), target); + } + + // .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3 [json_name = "primitive"]; + if (_internal_has_primitive()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this->_internal_primitive(), target); + } + + // .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4 [json_name = "wrapper"]; + if (_internal_has_wrapper()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 4, this->_internal_wrapper(), target); + } + + // .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5 [json_name = "wellKnown"]; + if (_internal_has_well_known()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 5, this->_internal_well_known(), target); + } + + // .google.api.expr.v1alpha1.Type.ListType list_type = 6 [json_name = "listType"]; + if (_internal_has_list_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::list_type(this), + _Internal::list_type(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Type.MapType map_type = 7 [json_name = "mapType"]; + if (_internal_has_map_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::map_type(this), + _Internal::map_type(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Type.FunctionType function = 8 [json_name = "function"]; + if (_internal_has_function()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::function(this), + _Internal::function(this).GetCachedSize(), target, stream); + } + + // string message_type = 9 [json_name = "messageType"]; + if (_internal_has_message_type()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message_type().data(), static_cast(this->_internal_message_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Type.message_type"); + target = stream->WriteStringMaybeAliased( + 9, this->_internal_message_type(), target); + } + + // string type_param = 10 [json_name = "typeParam"]; + if (_internal_has_type_param()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type_param().data(), static_cast(this->_internal_type_param().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Type.type_param"); + target = stream->WriteStringMaybeAliased( + 10, this->_internal_type_param(), target); + } + + // .google.api.expr.v1alpha1.Type type = 11 [json_name = "type"]; + if (_internal_has_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(11, _Internal::type(this), + _Internal::type(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Empty error = 12 [json_name = "error"]; + if (_internal_has_error()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(12, _Internal::error(this), + _Internal::error(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14 [json_name = "abstractType"]; + if (_internal_has_abstract_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(14, _Internal::abstract_type(this), + _Internal::abstract_type(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:google.api.expr.v1alpha1.Type) + return target; +} + +size_t Type::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Type) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (type_kind_case()) { + // .google.protobuf.Empty dyn = 1 [json_name = "dyn"]; + case kDyn: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.type_kind_.dyn_); + break; + } + // .google.protobuf.NullValue null = 2 [json_name = "null"]; + case kNull: { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_null()); + break; + } + // .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3 [json_name = "primitive"]; + case kPrimitive: { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_primitive()); + break; + } + // .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4 [json_name = "wrapper"]; + case kWrapper: { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_wrapper()); + break; + } + // .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5 [json_name = "wellKnown"]; + case kWellKnown: { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_well_known()); + break; + } + // .google.api.expr.v1alpha1.Type.ListType list_type = 6 [json_name = "listType"]; + case kListType: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.type_kind_.list_type_); + break; + } + // .google.api.expr.v1alpha1.Type.MapType map_type = 7 [json_name = "mapType"]; + case kMapType: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.type_kind_.map_type_); + break; + } + // .google.api.expr.v1alpha1.Type.FunctionType function = 8 [json_name = "function"]; + case kFunction: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.type_kind_.function_); + break; + } + // string message_type = 9 [json_name = "messageType"]; + case kMessageType: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message_type()); + break; + } + // string type_param = 10 [json_name = "typeParam"]; + case kTypeParam: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type_param()); + break; + } + // .google.api.expr.v1alpha1.Type type = 11 [json_name = "type"]; + case kType: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.type_kind_.type_); + break; + } + // .google.protobuf.Empty error = 12 [json_name = "error"]; + case kError: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.type_kind_.error_); + break; + } + // .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14 [json_name = "abstractType"]; + case kAbstractType: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.type_kind_.abstract_type_); + break; + } + case TYPE_KIND_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Type::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Type::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Type::GetClassData() const { return &_class_data_; } + + +void Type::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Type) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.type_kind_case()) { + case kDyn: { + _this->_internal_mutable_dyn()->::PROTOBUF_NAMESPACE_ID::Empty::MergeFrom( + from._internal_dyn()); + break; + } + case kNull: { + _this->_internal_set_null(from._internal_null()); + break; + } + case kPrimitive: { + _this->_internal_set_primitive(from._internal_primitive()); + break; + } + case kWrapper: { + _this->_internal_set_wrapper(from._internal_wrapper()); + break; + } + case kWellKnown: { + _this->_internal_set_well_known(from._internal_well_known()); + break; + } + case kListType: { + _this->_internal_mutable_list_type()->::google::api::expr::v1alpha1::Type_ListType::MergeFrom( + from._internal_list_type()); + break; + } + case kMapType: { + _this->_internal_mutable_map_type()->::google::api::expr::v1alpha1::Type_MapType::MergeFrom( + from._internal_map_type()); + break; + } + case kFunction: { + _this->_internal_mutable_function()->::google::api::expr::v1alpha1::Type_FunctionType::MergeFrom( + from._internal_function()); + break; + } + case kMessageType: { + _this->_internal_set_message_type(from._internal_message_type()); + break; + } + case kTypeParam: { + _this->_internal_set_type_param(from._internal_type_param()); + break; + } + case kType: { + _this->_internal_mutable_type()->::google::api::expr::v1alpha1::Type::MergeFrom( + from._internal_type()); + break; + } + case kError: { + _this->_internal_mutable_error()->::PROTOBUF_NAMESPACE_ID::Empty::MergeFrom( + from._internal_error()); + break; + } + case kAbstractType: { + _this->_internal_mutable_abstract_type()->::google::api::expr::v1alpha1::Type_AbstractType::MergeFrom( + from._internal_abstract_type()); + break; + } + case TYPE_KIND_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Type::CopyFrom(const Type& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Type) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Type::IsInitialized() const { + return true; +} + +void Type::InternalSwap(Type* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.type_kind_, other->_impl_.type_kind_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Type::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[7]); +} + +// =================================================================== + +class Decl_IdentDecl::_Internal { + public: + static const ::google::api::expr::v1alpha1::Type& type(const Decl_IdentDecl* msg); + static const ::google::api::expr::v1alpha1::Constant& value(const Decl_IdentDecl* msg); +}; + +const ::google::api::expr::v1alpha1::Type& +Decl_IdentDecl::_Internal::type(const Decl_IdentDecl* msg) { + return *msg->_impl_.type_; +} +const ::google::api::expr::v1alpha1::Constant& +Decl_IdentDecl::_Internal::value(const Decl_IdentDecl* msg) { + return *msg->_impl_.value_; +} +void Decl_IdentDecl::clear_value() { + if (GetArenaForAllocation() == nullptr && _impl_.value_ != nullptr) { + delete _impl_.value_; + } + _impl_.value_ = nullptr; +} +Decl_IdentDecl::Decl_IdentDecl(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Decl.IdentDecl) +} +Decl_IdentDecl::Decl_IdentDecl(const Decl_IdentDecl& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Decl_IdentDecl* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.doc_){} + , decltype(_impl_.type_){nullptr} + , decltype(_impl_.value_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.doc_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.doc_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_doc().empty()) { + _this->_impl_.doc_.Set(from._internal_doc(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_type()) { + _this->_impl_.type_ = new ::google::api::expr::v1alpha1::Type(*from._impl_.type_); + } + if (from._internal_has_value()) { + _this->_impl_.value_ = new ::google::api::expr::v1alpha1::Constant(*from._impl_.value_); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Decl.IdentDecl) +} + +inline void Decl_IdentDecl::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.doc_){} + , decltype(_impl_.type_){nullptr} + , decltype(_impl_.value_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.doc_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.doc_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Decl_IdentDecl::~Decl_IdentDecl() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Decl.IdentDecl) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Decl_IdentDecl::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.doc_.Destroy(); + if (this != internal_default_instance()) delete _impl_.type_; + if (this != internal_default_instance()) delete _impl_.value_; +} + +void Decl_IdentDecl::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Decl_IdentDecl::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Decl.IdentDecl) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.doc_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.type_ != nullptr) { + delete _impl_.type_; + } + _impl_.type_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.value_ != nullptr) { + delete _impl_.value_; + } + _impl_.value_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Decl_IdentDecl::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_type(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string doc = 3 [json_name = "doc"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_doc(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Decl.IdentDecl.doc")); + } 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* Decl_IdentDecl::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Decl.IdentDecl) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"]; + if (this->_internal_has_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::type(this), + _Internal::type(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"]; + if (this->_internal_has_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::value(this), + _Internal::value(this).GetCachedSize(), target, stream); + } + + // string doc = 3 [json_name = "doc"]; + if (!this->_internal_doc().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_doc().data(), static_cast(this->_internal_doc().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Decl.IdentDecl.doc"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_doc(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.Decl.IdentDecl) + return target; +} + +size_t Decl_IdentDecl::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Decl.IdentDecl) + 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 doc = 3 [json_name = "doc"]; + if (!this->_internal_doc().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_doc()); + } + + // .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"]; + if (this->_internal_has_type()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.type_); + } + + // .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"]; + if (this->_internal_has_value()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.value_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Decl_IdentDecl::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Decl_IdentDecl::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Decl_IdentDecl::GetClassData() const { return &_class_data_; } + + +void Decl_IdentDecl::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Decl.IdentDecl) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_doc().empty()) { + _this->_internal_set_doc(from._internal_doc()); + } + if (from._internal_has_type()) { + _this->_internal_mutable_type()->::google::api::expr::v1alpha1::Type::MergeFrom( + from._internal_type()); + } + if (from._internal_has_value()) { + _this->_internal_mutable_value()->::google::api::expr::v1alpha1::Constant::MergeFrom( + from._internal_value()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Decl_IdentDecl::CopyFrom(const Decl_IdentDecl& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Decl.IdentDecl) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Decl_IdentDecl::IsInitialized() const { + return true; +} + +void Decl_IdentDecl::InternalSwap(Decl_IdentDecl* 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( + &_impl_.doc_, lhs_arena, + &other->_impl_.doc_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Decl_IdentDecl, _impl_.value_) + + sizeof(Decl_IdentDecl::_impl_.value_) + - PROTOBUF_FIELD_OFFSET(Decl_IdentDecl, _impl_.type_)>( + reinterpret_cast(&_impl_.type_), + reinterpret_cast(&other->_impl_.type_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Decl_IdentDecl::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[8]); +} + +// =================================================================== + +class Decl_FunctionDecl_Overload::_Internal { + public: + static const ::google::api::expr::v1alpha1::Type& result_type(const Decl_FunctionDecl_Overload* msg); +}; + +const ::google::api::expr::v1alpha1::Type& +Decl_FunctionDecl_Overload::_Internal::result_type(const Decl_FunctionDecl_Overload* msg) { + return *msg->_impl_.result_type_; +} +Decl_FunctionDecl_Overload::Decl_FunctionDecl_Overload(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) +} +Decl_FunctionDecl_Overload::Decl_FunctionDecl_Overload(const Decl_FunctionDecl_Overload& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Decl_FunctionDecl_Overload* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.params_){from._impl_.params_} + , decltype(_impl_.type_params_){from._impl_.type_params_} + , decltype(_impl_.overload_id_){} + , decltype(_impl_.doc_){} + , decltype(_impl_.result_type_){nullptr} + , decltype(_impl_.is_instance_function_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.overload_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.overload_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_overload_id().empty()) { + _this->_impl_.overload_id_.Set(from._internal_overload_id(), + _this->GetArenaForAllocation()); + } + _impl_.doc_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.doc_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_doc().empty()) { + _this->_impl_.doc_.Set(from._internal_doc(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_result_type()) { + _this->_impl_.result_type_ = new ::google::api::expr::v1alpha1::Type(*from._impl_.result_type_); + } + _this->_impl_.is_instance_function_ = from._impl_.is_instance_function_; + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) +} + +inline void Decl_FunctionDecl_Overload::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.params_){arena} + , decltype(_impl_.type_params_){arena} + , decltype(_impl_.overload_id_){} + , decltype(_impl_.doc_){} + , decltype(_impl_.result_type_){nullptr} + , decltype(_impl_.is_instance_function_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.overload_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.overload_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.doc_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.doc_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Decl_FunctionDecl_Overload::~Decl_FunctionDecl_Overload() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Decl_FunctionDecl_Overload::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.params_.~RepeatedPtrField(); + _impl_.type_params_.~RepeatedPtrField(); + _impl_.overload_id_.Destroy(); + _impl_.doc_.Destroy(); + if (this != internal_default_instance()) delete _impl_.result_type_; +} + +void Decl_FunctionDecl_Overload::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Decl_FunctionDecl_Overload::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.params_.Clear(); + _impl_.type_params_.Clear(); + _impl_.overload_id_.ClearToEmpty(); + _impl_.doc_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.result_type_ != nullptr) { + delete _impl_.result_type_; + } + _impl_.result_type_ = nullptr; + _impl_.is_instance_function_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Decl_FunctionDecl_Overload::_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 overload_id = 1 [json_name = "overloadId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_overload_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.overload_id")); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1alpha1.Type params = 2 [json_name = "params"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // repeated string type_params = 3 [json_name = "typeParams"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_type_params(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Type result_type = 4 [json_name = "resultType"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_result_type(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool is_instance_function = 5 [json_name = "isInstanceFunction"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + _impl_.is_instance_function_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string doc = 6 [json_name = "doc"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_doc(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.doc")); + } 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* Decl_FunctionDecl_Overload::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string overload_id = 1 [json_name = "overloadId"]; + if (!this->_internal_overload_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_overload_id().data(), static_cast(this->_internal_overload_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.overload_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_overload_id(), target); + } + + // repeated .google.api.expr.v1alpha1.Type params = 2 [json_name = "params"]; + for (unsigned i = 0, + n = static_cast(this->_internal_params_size()); i < n; i++) { + const auto& repfield = this->_internal_params(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + // repeated string type_params = 3 [json_name = "typeParams"]; + for (int i = 0, n = this->_internal_type_params_size(); i < n; i++) { + const auto& s = this->_internal_type_params(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params"); + target = stream->WriteString(3, s, target); + } + + // .google.api.expr.v1alpha1.Type result_type = 4 [json_name = "resultType"]; + if (this->_internal_has_result_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::result_type(this), + _Internal::result_type(this).GetCachedSize(), target, stream); + } + + // bool is_instance_function = 5 [json_name = "isInstanceFunction"]; + if (this->_internal_is_instance_function() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_is_instance_function(), target); + } + + // string doc = 6 [json_name = "doc"]; + if (!this->_internal_doc().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_doc().data(), static_cast(this->_internal_doc().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.doc"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_doc(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) + return target; +} + +size_t Decl_FunctionDecl_Overload::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.expr.v1alpha1.Type params = 2 [json_name = "params"]; + total_size += 1UL * this->_internal_params_size(); + for (const auto& msg : this->_impl_.params_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated string type_params = 3 [json_name = "typeParams"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.type_params_.size()); + for (int i = 0, n = _impl_.type_params_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.type_params_.Get(i)); + } + + // string overload_id = 1 [json_name = "overloadId"]; + if (!this->_internal_overload_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_overload_id()); + } + + // string doc = 6 [json_name = "doc"]; + if (!this->_internal_doc().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_doc()); + } + + // .google.api.expr.v1alpha1.Type result_type = 4 [json_name = "resultType"]; + if (this->_internal_has_result_type()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.result_type_); + } + + // bool is_instance_function = 5 [json_name = "isInstanceFunction"]; + if (this->_internal_is_instance_function() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Decl_FunctionDecl_Overload::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Decl_FunctionDecl_Overload::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Decl_FunctionDecl_Overload::GetClassData() const { return &_class_data_; } + + +void Decl_FunctionDecl_Overload::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.params_.MergeFrom(from._impl_.params_); + _this->_impl_.type_params_.MergeFrom(from._impl_.type_params_); + if (!from._internal_overload_id().empty()) { + _this->_internal_set_overload_id(from._internal_overload_id()); + } + if (!from._internal_doc().empty()) { + _this->_internal_set_doc(from._internal_doc()); + } + if (from._internal_has_result_type()) { + _this->_internal_mutable_result_type()->::google::api::expr::v1alpha1::Type::MergeFrom( + from._internal_result_type()); + } + if (from._internal_is_instance_function() != 0) { + _this->_internal_set_is_instance_function(from._internal_is_instance_function()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Decl_FunctionDecl_Overload::CopyFrom(const Decl_FunctionDecl_Overload& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Decl_FunctionDecl_Overload::IsInitialized() const { + return true; +} + +void Decl_FunctionDecl_Overload::InternalSwap(Decl_FunctionDecl_Overload* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.params_.InternalSwap(&other->_impl_.params_); + _impl_.type_params_.InternalSwap(&other->_impl_.type_params_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.overload_id_, lhs_arena, + &other->_impl_.overload_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.doc_, lhs_arena, + &other->_impl_.doc_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl_Overload, _impl_.is_instance_function_) + + sizeof(Decl_FunctionDecl_Overload::_impl_.is_instance_function_) + - PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl_Overload, _impl_.result_type_)>( + reinterpret_cast(&_impl_.result_type_), + reinterpret_cast(&other->_impl_.result_type_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Decl_FunctionDecl_Overload::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[9]); +} + +// =================================================================== + +class Decl_FunctionDecl::_Internal { + public: +}; + +Decl_FunctionDecl::Decl_FunctionDecl(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Decl.FunctionDecl) +} +Decl_FunctionDecl::Decl_FunctionDecl(const Decl_FunctionDecl& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Decl_FunctionDecl* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.overloads_){from._impl_.overloads_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Decl.FunctionDecl) +} + +inline void Decl_FunctionDecl::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.overloads_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Decl_FunctionDecl::~Decl_FunctionDecl() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Decl.FunctionDecl) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Decl_FunctionDecl::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.overloads_.~RepeatedPtrField(); +} + +void Decl_FunctionDecl::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Decl_FunctionDecl::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Decl.FunctionDecl) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.overloads_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Decl_FunctionDecl::_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) { + // repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_overloads(), 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* Decl_FunctionDecl::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Decl.FunctionDecl) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"]; + for (unsigned i = 0, + n = static_cast(this->_internal_overloads_size()); i < n; i++) { + const auto& repfield = this->_internal_overloads(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.Decl.FunctionDecl) + return target; +} + +size_t Decl_FunctionDecl::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Decl.FunctionDecl) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"]; + total_size += 1UL * this->_internal_overloads_size(); + for (const auto& msg : this->_impl_.overloads_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Decl_FunctionDecl::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Decl_FunctionDecl::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Decl_FunctionDecl::GetClassData() const { return &_class_data_; } + + +void Decl_FunctionDecl::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Decl.FunctionDecl) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.overloads_.MergeFrom(from._impl_.overloads_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Decl_FunctionDecl::CopyFrom(const Decl_FunctionDecl& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Decl.FunctionDecl) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Decl_FunctionDecl::IsInitialized() const { + return true; +} + +void Decl_FunctionDecl::InternalSwap(Decl_FunctionDecl* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.overloads_.InternalSwap(&other->_impl_.overloads_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Decl_FunctionDecl::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[10]); +} + +// =================================================================== + +class Decl::_Internal { + public: + static const ::google::api::expr::v1alpha1::Decl_IdentDecl& ident(const Decl* msg); + static const ::google::api::expr::v1alpha1::Decl_FunctionDecl& function(const Decl* msg); +}; + +const ::google::api::expr::v1alpha1::Decl_IdentDecl& +Decl::_Internal::ident(const Decl* msg) { + return *msg->_impl_.decl_kind_.ident_; +} +const ::google::api::expr::v1alpha1::Decl_FunctionDecl& +Decl::_Internal::function(const Decl* msg) { + return *msg->_impl_.decl_kind_.function_; +} +void Decl::set_allocated_ident(::google::api::expr::v1alpha1::Decl_IdentDecl* ident) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_decl_kind(); + if (ident) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(ident); + if (message_arena != submessage_arena) { + ident = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, ident, submessage_arena); + } + set_has_ident(); + _impl_.decl_kind_.ident_ = ident; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Decl.ident) +} +void Decl::set_allocated_function(::google::api::expr::v1alpha1::Decl_FunctionDecl* function) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_decl_kind(); + if (function) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(function); + if (message_arena != submessage_arena) { + function = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, function, submessage_arena); + } + set_has_function(); + _impl_.decl_kind_.function_ = function; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Decl.function) +} +Decl::Decl(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Decl) +} +Decl::Decl(const Decl& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Decl* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.decl_kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + clear_has_decl_kind(); + switch (from.decl_kind_case()) { + case kIdent: { + _this->_internal_mutable_ident()->::google::api::expr::v1alpha1::Decl_IdentDecl::MergeFrom( + from._internal_ident()); + break; + } + case kFunction: { + _this->_internal_mutable_function()->::google::api::expr::v1alpha1::Decl_FunctionDecl::MergeFrom( + from._internal_function()); + break; + } + case DECL_KIND_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Decl) +} + +inline void Decl::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.decl_kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + clear_has_decl_kind(); +} + +Decl::~Decl() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Decl) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Decl::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (has_decl_kind()) { + clear_decl_kind(); + } +} + +void Decl::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Decl::clear_decl_kind() { +// @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1alpha1.Decl) + switch (decl_kind_case()) { + case kIdent: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.decl_kind_.ident_; + } + break; + } + case kFunction: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.decl_kind_.function_; + } + break; + } + case DECL_KIND_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = DECL_KIND_NOT_SET; +} + + +void Decl::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Decl) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + clear_decl_kind(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Decl::_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, "google.api.expr.v1alpha1.Decl.name")); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_ident(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_function(), 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* Decl::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Decl) + 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, + "google.api.expr.v1alpha1.Decl.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"]; + if (_internal_has_ident()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::ident(this), + _Internal::ident(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"]; + if (_internal_has_function()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::function(this), + _Internal::function(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:google.api.expr.v1alpha1.Decl) + return target; +} + +size_t Decl::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Decl) + 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()); + } + + switch (decl_kind_case()) { + // .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"]; + case kIdent: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.decl_kind_.ident_); + break; + } + // .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"]; + case kFunction: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.decl_kind_.function_); + break; + } + case DECL_KIND_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Decl::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Decl::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Decl::GetClassData() const { return &_class_data_; } + + +void Decl::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Decl) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + switch (from.decl_kind_case()) { + case kIdent: { + _this->_internal_mutable_ident()->::google::api::expr::v1alpha1::Decl_IdentDecl::MergeFrom( + from._internal_ident()); + break; + } + case kFunction: { + _this->_internal_mutable_function()->::google::api::expr::v1alpha1::Decl_FunctionDecl::MergeFrom( + from._internal_function()); + break; + } + case DECL_KIND_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Decl::CopyFrom(const Decl& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Decl) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Decl::IsInitialized() const { + return true; +} + +void Decl::InternalSwap(Decl* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.decl_kind_, other->_impl_.decl_kind_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Decl::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[11]); +} + +// =================================================================== + +class Reference::_Internal { + public: + static const ::google::api::expr::v1alpha1::Constant& value(const Reference* msg); +}; + +const ::google::api::expr::v1alpha1::Constant& +Reference::_Internal::value(const Reference* msg) { + return *msg->_impl_.value_; +} +void Reference::clear_value() { + if (GetArenaForAllocation() == nullptr && _impl_.value_ != nullptr) { + delete _impl_.value_; + } + _impl_.value_ = nullptr; +} +Reference::Reference(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Reference) +} +Reference::Reference(const Reference& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Reference* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.overload_id_){from._impl_.overload_id_} + , decltype(_impl_.name_){} + , decltype(_impl_.value_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_value()) { + _this->_impl_.value_ = new ::google::api::expr::v1alpha1::Constant(*from._impl_.value_); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Reference) +} + +inline void Reference::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.overload_id_){arena} + , decltype(_impl_.name_){} + , decltype(_impl_.value_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Reference::~Reference() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Reference) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Reference::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.overload_id_.~RepeatedPtrField(); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.value_; +} + +void Reference::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Reference::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Reference) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.overload_id_.Clear(); + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.value_ != nullptr) { + delete _impl_.value_; + } + _impl_.value_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Reference::_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, "google.api.expr.v1alpha1.Reference.name")); + } else + goto handle_unusual; + continue; + // repeated string overload_id = 3 [json_name = "overloadId"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_overload_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Reference.overload_id")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_value(), 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* Reference::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Reference) + 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, + "google.api.expr.v1alpha1.Reference.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // repeated string overload_id = 3 [json_name = "overloadId"]; + for (int i = 0, n = this->_internal_overload_id_size(); i < n; i++) { + const auto& s = this->_internal_overload_id(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Reference.overload_id"); + target = stream->WriteString(3, s, target); + } + + // .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"]; + if (this->_internal_has_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::value(this), + _Internal::value(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:google.api.expr.v1alpha1.Reference) + return target; +} + +size_t Reference::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Reference) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string overload_id = 3 [json_name = "overloadId"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.overload_id_.size()); + for (int i = 0, n = _impl_.overload_id_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.overload_id_.Get(i)); + } + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"]; + if (this->_internal_has_value()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.value_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Reference::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Reference::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Reference::GetClassData() const { return &_class_data_; } + + +void Reference::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Reference) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.overload_id_.MergeFrom(from._impl_.overload_id_); + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_value()) { + _this->_internal_mutable_value()->::google::api::expr::v1alpha1::Constant::MergeFrom( + from._internal_value()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Reference::CopyFrom(const Reference& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Reference) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Reference::IsInitialized() const { + return true; +} + +void Reference::InternalSwap(Reference* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.overload_id_.InternalSwap(&other->_impl_.overload_id_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.value_, other->_impl_.value_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Reference::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[12]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::CheckedExpr* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::CheckedExpr >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::CheckedExpr >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Type_ListType* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Type_ListType >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Type_ListType >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Type_MapType* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Type_MapType >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Type_MapType >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Type_FunctionType* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Type_FunctionType >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Type_FunctionType >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Type_AbstractType* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Type_AbstractType >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Type_AbstractType >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Type* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Type >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Type >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Decl_IdentDecl* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Decl_IdentDecl >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Decl_IdentDecl >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Decl_FunctionDecl* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Decl_FunctionDecl >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Decl_FunctionDecl >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Decl* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Decl >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Decl >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Reference* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Reference >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Reference >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/google/api/expr/v1alpha1/checked.pb.h b/src/gen/google/api/expr/v1alpha1/checked.pb.h new file mode 100644 index 000000000..99125052f --- /dev/null +++ b/src/gen/google/api/expr/v1alpha1/checked.pb.h @@ -0,0 +1,5361 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/expr/v1alpha1/checked.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 // IWYU pragma: export +#include +#include +#include +#include +#include "google/api/expr/v1alpha1/syntax.pb.h" +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { +class CheckedExpr; +struct CheckedExprDefaultTypeInternal; +extern CheckedExprDefaultTypeInternal _CheckedExpr_default_instance_; +class CheckedExpr_ReferenceMapEntry_DoNotUse; +struct CheckedExpr_ReferenceMapEntry_DoNotUseDefaultTypeInternal; +extern CheckedExpr_ReferenceMapEntry_DoNotUseDefaultTypeInternal _CheckedExpr_ReferenceMapEntry_DoNotUse_default_instance_; +class CheckedExpr_TypeMapEntry_DoNotUse; +struct CheckedExpr_TypeMapEntry_DoNotUseDefaultTypeInternal; +extern CheckedExpr_TypeMapEntry_DoNotUseDefaultTypeInternal _CheckedExpr_TypeMapEntry_DoNotUse_default_instance_; +class Decl; +struct DeclDefaultTypeInternal; +extern DeclDefaultTypeInternal _Decl_default_instance_; +class Decl_FunctionDecl; +struct Decl_FunctionDeclDefaultTypeInternal; +extern Decl_FunctionDeclDefaultTypeInternal _Decl_FunctionDecl_default_instance_; +class Decl_FunctionDecl_Overload; +struct Decl_FunctionDecl_OverloadDefaultTypeInternal; +extern Decl_FunctionDecl_OverloadDefaultTypeInternal _Decl_FunctionDecl_Overload_default_instance_; +class Decl_IdentDecl; +struct Decl_IdentDeclDefaultTypeInternal; +extern Decl_IdentDeclDefaultTypeInternal _Decl_IdentDecl_default_instance_; +class Reference; +struct ReferenceDefaultTypeInternal; +extern ReferenceDefaultTypeInternal _Reference_default_instance_; +class Type; +struct TypeDefaultTypeInternal; +extern TypeDefaultTypeInternal _Type_default_instance_; +class Type_AbstractType; +struct Type_AbstractTypeDefaultTypeInternal; +extern Type_AbstractTypeDefaultTypeInternal _Type_AbstractType_default_instance_; +class Type_FunctionType; +struct Type_FunctionTypeDefaultTypeInternal; +extern Type_FunctionTypeDefaultTypeInternal _Type_FunctionType_default_instance_; +class Type_ListType; +struct Type_ListTypeDefaultTypeInternal; +extern Type_ListTypeDefaultTypeInternal _Type_ListType_default_instance_; +class Type_MapType; +struct Type_MapTypeDefaultTypeInternal; +extern Type_MapTypeDefaultTypeInternal _Type_MapType_default_instance_; +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::expr::v1alpha1::CheckedExpr* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::CheckedExpr>(Arena*); +template<> ::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse>(Arena*); +template<> ::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse>(Arena*); +template<> ::google::api::expr::v1alpha1::Decl* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Decl>(Arena*); +template<> ::google::api::expr::v1alpha1::Decl_FunctionDecl* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Decl_FunctionDecl>(Arena*); +template<> ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload>(Arena*); +template<> ::google::api::expr::v1alpha1::Decl_IdentDecl* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Decl_IdentDecl>(Arena*); +template<> ::google::api::expr::v1alpha1::Reference* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Reference>(Arena*); +template<> ::google::api::expr::v1alpha1::Type* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(Arena*); +template<> ::google::api::expr::v1alpha1::Type_AbstractType* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Type_AbstractType>(Arena*); +template<> ::google::api::expr::v1alpha1::Type_FunctionType* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Type_FunctionType>(Arena*); +template<> ::google::api::expr::v1alpha1::Type_ListType* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Type_ListType>(Arena*); +template<> ::google::api::expr::v1alpha1::Type_MapType* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Type_MapType>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { + +enum Type_PrimitiveType : int { + Type_PrimitiveType_PRIMITIVE_TYPE_UNSPECIFIED = 0, + Type_PrimitiveType_BOOL = 1, + Type_PrimitiveType_INT64 = 2, + Type_PrimitiveType_UINT64 = 3, + Type_PrimitiveType_DOUBLE = 4, + Type_PrimitiveType_STRING = 5, + Type_PrimitiveType_BYTES = 6, + Type_PrimitiveType_Type_PrimitiveType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + Type_PrimitiveType_Type_PrimitiveType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool Type_PrimitiveType_IsValid(int value); +constexpr Type_PrimitiveType Type_PrimitiveType_PrimitiveType_MIN = Type_PrimitiveType_PRIMITIVE_TYPE_UNSPECIFIED; +constexpr Type_PrimitiveType Type_PrimitiveType_PrimitiveType_MAX = Type_PrimitiveType_BYTES; +constexpr int Type_PrimitiveType_PrimitiveType_ARRAYSIZE = Type_PrimitiveType_PrimitiveType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Type_PrimitiveType_descriptor(); +template +inline const std::string& Type_PrimitiveType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Type_PrimitiveType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + Type_PrimitiveType_descriptor(), enum_t_value); +} +inline bool Type_PrimitiveType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Type_PrimitiveType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + Type_PrimitiveType_descriptor(), name, value); +} +enum Type_WellKnownType : int { + Type_WellKnownType_WELL_KNOWN_TYPE_UNSPECIFIED = 0, + Type_WellKnownType_ANY = 1, + Type_WellKnownType_TIMESTAMP = 2, + Type_WellKnownType_DURATION = 3, + Type_WellKnownType_Type_WellKnownType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + Type_WellKnownType_Type_WellKnownType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool Type_WellKnownType_IsValid(int value); +constexpr Type_WellKnownType Type_WellKnownType_WellKnownType_MIN = Type_WellKnownType_WELL_KNOWN_TYPE_UNSPECIFIED; +constexpr Type_WellKnownType Type_WellKnownType_WellKnownType_MAX = Type_WellKnownType_DURATION; +constexpr int Type_WellKnownType_WellKnownType_ARRAYSIZE = Type_WellKnownType_WellKnownType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Type_WellKnownType_descriptor(); +template +inline const std::string& Type_WellKnownType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Type_WellKnownType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + Type_WellKnownType_descriptor(), enum_t_value); +} +inline bool Type_WellKnownType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Type_WellKnownType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + Type_WellKnownType_descriptor(), name, value); +} +// =================================================================== + +class CheckedExpr_ReferenceMapEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + CheckedExpr_ReferenceMapEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR CheckedExpr_ReferenceMapEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit CheckedExpr_ReferenceMapEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const CheckedExpr_ReferenceMapEntry_DoNotUse& other); + static const CheckedExpr_ReferenceMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_CheckedExpr_ReferenceMapEntry_DoNotUse_default_instance_); } + static bool ValidateKey(void*) { return true; } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; +}; + +// ------------------------------------------------------------------- + +class CheckedExpr_TypeMapEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + CheckedExpr_TypeMapEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR CheckedExpr_TypeMapEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit CheckedExpr_TypeMapEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const CheckedExpr_TypeMapEntry_DoNotUse& other); + static const CheckedExpr_TypeMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_CheckedExpr_TypeMapEntry_DoNotUse_default_instance_); } + static bool ValidateKey(void*) { return true; } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; +}; + +// ------------------------------------------------------------------- + +class CheckedExpr final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.CheckedExpr) */ { + public: + inline CheckedExpr() : CheckedExpr(nullptr) {} + ~CheckedExpr() override; + explicit PROTOBUF_CONSTEXPR CheckedExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CheckedExpr(const CheckedExpr& from); + CheckedExpr(CheckedExpr&& from) noexcept + : CheckedExpr() { + *this = ::std::move(from); + } + + inline CheckedExpr& operator=(const CheckedExpr& from) { + CopyFrom(from); + return *this; + } + inline CheckedExpr& operator=(CheckedExpr&& 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 CheckedExpr& default_instance() { + return *internal_default_instance(); + } + static inline const CheckedExpr* internal_default_instance() { + return reinterpret_cast( + &_CheckedExpr_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(CheckedExpr& a, CheckedExpr& b) { + a.Swap(&b); + } + inline void Swap(CheckedExpr* 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(CheckedExpr* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CheckedExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CheckedExpr& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const CheckedExpr& from) { + CheckedExpr::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CheckedExpr* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.CheckedExpr"; + } + protected: + explicit CheckedExpr(::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 { + kReferenceMapFieldNumber = 2, + kTypeMapFieldNumber = 3, + kExprVersionFieldNumber = 6, + kExprFieldNumber = 4, + kSourceInfoFieldNumber = 5, + }; + // map reference_map = 2 [json_name = "referenceMap"]; + int reference_map_size() const; + private: + int _internal_reference_map_size() const; + public: + void clear_reference_map(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Reference >& + _internal_reference_map() const; + ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Reference >* + _internal_mutable_reference_map(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Reference >& + reference_map() const; + ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Reference >* + mutable_reference_map(); + + // map type_map = 3 [json_name = "typeMap"]; + int type_map_size() const; + private: + int _internal_type_map_size() const; + public: + void clear_type_map(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Type >& + _internal_type_map() const; + ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Type >* + _internal_mutable_type_map(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Type >& + type_map() const; + ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Type >* + mutable_type_map(); + + // string expr_version = 6 [json_name = "exprVersion"]; + void clear_expr_version(); + const std::string& expr_version() const; + template + void set_expr_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_expr_version(); + PROTOBUF_NODISCARD std::string* release_expr_version(); + void set_allocated_expr_version(std::string* expr_version); + private: + const std::string& _internal_expr_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_expr_version(const std::string& value); + std::string* _internal_mutable_expr_version(); + public: + + // .google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"]; + bool has_expr() const; + private: + bool _internal_has_expr() const; + public: + void clear_expr(); + const ::google::api::expr::v1alpha1::Expr& expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_expr(); + ::google::api::expr::v1alpha1::Expr* mutable_expr(); + void set_allocated_expr(::google::api::expr::v1alpha1::Expr* expr); + private: + const ::google::api::expr::v1alpha1::Expr& _internal_expr() const; + ::google::api::expr::v1alpha1::Expr* _internal_mutable_expr(); + public: + void unsafe_arena_set_allocated_expr( + ::google::api::expr::v1alpha1::Expr* expr); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_expr(); + + // .google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"]; + bool has_source_info() const; + private: + bool _internal_has_source_info() const; + public: + void clear_source_info(); + const ::google::api::expr::v1alpha1::SourceInfo& source_info() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::SourceInfo* release_source_info(); + ::google::api::expr::v1alpha1::SourceInfo* mutable_source_info(); + void set_allocated_source_info(::google::api::expr::v1alpha1::SourceInfo* source_info); + private: + const ::google::api::expr::v1alpha1::SourceInfo& _internal_source_info() const; + ::google::api::expr::v1alpha1::SourceInfo* _internal_mutable_source_info(); + public: + void unsafe_arena_set_allocated_source_info( + ::google::api::expr::v1alpha1::SourceInfo* source_info); + ::google::api::expr::v1alpha1::SourceInfo* unsafe_arena_release_source_info(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.CheckedExpr) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + CheckedExpr_ReferenceMapEntry_DoNotUse, + int64_t, ::google::api::expr::v1alpha1::Reference, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> reference_map_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + CheckedExpr_TypeMapEntry_DoNotUse, + int64_t, ::google::api::expr::v1alpha1::Type, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> type_map_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr expr_version_; + ::google::api::expr::v1alpha1::Expr* expr_; + ::google::api::expr::v1alpha1::SourceInfo* source_info_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; +}; +// ------------------------------------------------------------------- + +class Type_ListType final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Type.ListType) */ { + public: + inline Type_ListType() : Type_ListType(nullptr) {} + ~Type_ListType() override; + explicit PROTOBUF_CONSTEXPR Type_ListType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Type_ListType(const Type_ListType& from); + Type_ListType(Type_ListType&& from) noexcept + : Type_ListType() { + *this = ::std::move(from); + } + + inline Type_ListType& operator=(const Type_ListType& from) { + CopyFrom(from); + return *this; + } + inline Type_ListType& operator=(Type_ListType&& 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 Type_ListType& default_instance() { + return *internal_default_instance(); + } + static inline const Type_ListType* internal_default_instance() { + return reinterpret_cast( + &_Type_ListType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(Type_ListType& a, Type_ListType& b) { + a.Swap(&b); + } + inline void Swap(Type_ListType* 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(Type_ListType* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Type_ListType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Type_ListType& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Type_ListType& from) { + Type_ListType::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Type_ListType* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Type.ListType"; + } + protected: + explicit Type_ListType(::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 { + kElemTypeFieldNumber = 1, + }; + // .google.api.expr.v1alpha1.Type elem_type = 1 [json_name = "elemType"]; + bool has_elem_type() const; + private: + bool _internal_has_elem_type() const; + public: + void clear_elem_type(); + const ::google::api::expr::v1alpha1::Type& elem_type() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type* release_elem_type(); + ::google::api::expr::v1alpha1::Type* mutable_elem_type(); + void set_allocated_elem_type(::google::api::expr::v1alpha1::Type* elem_type); + private: + const ::google::api::expr::v1alpha1::Type& _internal_elem_type() const; + ::google::api::expr::v1alpha1::Type* _internal_mutable_elem_type(); + public: + void unsafe_arena_set_allocated_elem_type( + ::google::api::expr::v1alpha1::Type* elem_type); + ::google::api::expr::v1alpha1::Type* unsafe_arena_release_elem_type(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Type.ListType) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::api::expr::v1alpha1::Type* elem_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; +}; +// ------------------------------------------------------------------- + +class Type_MapType final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Type.MapType) */ { + public: + inline Type_MapType() : Type_MapType(nullptr) {} + ~Type_MapType() override; + explicit PROTOBUF_CONSTEXPR Type_MapType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Type_MapType(const Type_MapType& from); + Type_MapType(Type_MapType&& from) noexcept + : Type_MapType() { + *this = ::std::move(from); + } + + inline Type_MapType& operator=(const Type_MapType& from) { + CopyFrom(from); + return *this; + } + inline Type_MapType& operator=(Type_MapType&& 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 Type_MapType& default_instance() { + return *internal_default_instance(); + } + static inline const Type_MapType* internal_default_instance() { + return reinterpret_cast( + &_Type_MapType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(Type_MapType& a, Type_MapType& b) { + a.Swap(&b); + } + inline void Swap(Type_MapType* 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(Type_MapType* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Type_MapType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Type_MapType& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Type_MapType& from) { + Type_MapType::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Type_MapType* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Type.MapType"; + } + protected: + explicit Type_MapType(::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 { + kKeyTypeFieldNumber = 1, + kValueTypeFieldNumber = 2, + }; + // .google.api.expr.v1alpha1.Type key_type = 1 [json_name = "keyType"]; + bool has_key_type() const; + private: + bool _internal_has_key_type() const; + public: + void clear_key_type(); + const ::google::api::expr::v1alpha1::Type& key_type() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type* release_key_type(); + ::google::api::expr::v1alpha1::Type* mutable_key_type(); + void set_allocated_key_type(::google::api::expr::v1alpha1::Type* key_type); + private: + const ::google::api::expr::v1alpha1::Type& _internal_key_type() const; + ::google::api::expr::v1alpha1::Type* _internal_mutable_key_type(); + public: + void unsafe_arena_set_allocated_key_type( + ::google::api::expr::v1alpha1::Type* key_type); + ::google::api::expr::v1alpha1::Type* unsafe_arena_release_key_type(); + + // .google.api.expr.v1alpha1.Type value_type = 2 [json_name = "valueType"]; + bool has_value_type() const; + private: + bool _internal_has_value_type() const; + public: + void clear_value_type(); + const ::google::api::expr::v1alpha1::Type& value_type() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type* release_value_type(); + ::google::api::expr::v1alpha1::Type* mutable_value_type(); + void set_allocated_value_type(::google::api::expr::v1alpha1::Type* value_type); + private: + const ::google::api::expr::v1alpha1::Type& _internal_value_type() const; + ::google::api::expr::v1alpha1::Type* _internal_mutable_value_type(); + public: + void unsafe_arena_set_allocated_value_type( + ::google::api::expr::v1alpha1::Type* value_type); + ::google::api::expr::v1alpha1::Type* unsafe_arena_release_value_type(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Type.MapType) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::api::expr::v1alpha1::Type* key_type_; + ::google::api::expr::v1alpha1::Type* value_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; +}; +// ------------------------------------------------------------------- + +class Type_FunctionType final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Type.FunctionType) */ { + public: + inline Type_FunctionType() : Type_FunctionType(nullptr) {} + ~Type_FunctionType() override; + explicit PROTOBUF_CONSTEXPR Type_FunctionType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Type_FunctionType(const Type_FunctionType& from); + Type_FunctionType(Type_FunctionType&& from) noexcept + : Type_FunctionType() { + *this = ::std::move(from); + } + + inline Type_FunctionType& operator=(const Type_FunctionType& from) { + CopyFrom(from); + return *this; + } + inline Type_FunctionType& operator=(Type_FunctionType&& 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 Type_FunctionType& default_instance() { + return *internal_default_instance(); + } + static inline const Type_FunctionType* internal_default_instance() { + return reinterpret_cast( + &_Type_FunctionType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(Type_FunctionType& a, Type_FunctionType& b) { + a.Swap(&b); + } + inline void Swap(Type_FunctionType* 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(Type_FunctionType* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Type_FunctionType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Type_FunctionType& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Type_FunctionType& from) { + Type_FunctionType::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Type_FunctionType* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Type.FunctionType"; + } + protected: + explicit Type_FunctionType(::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 { + kArgTypesFieldNumber = 2, + kResultTypeFieldNumber = 1, + }; + // repeated .google.api.expr.v1alpha1.Type arg_types = 2 [json_name = "argTypes"]; + int arg_types_size() const; + private: + int _internal_arg_types_size() const; + public: + void clear_arg_types(); + ::google::api::expr::v1alpha1::Type* mutable_arg_types(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >* + mutable_arg_types(); + private: + const ::google::api::expr::v1alpha1::Type& _internal_arg_types(int index) const; + ::google::api::expr::v1alpha1::Type* _internal_add_arg_types(); + public: + const ::google::api::expr::v1alpha1::Type& arg_types(int index) const; + ::google::api::expr::v1alpha1::Type* add_arg_types(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >& + arg_types() const; + + // .google.api.expr.v1alpha1.Type result_type = 1 [json_name = "resultType"]; + bool has_result_type() const; + private: + bool _internal_has_result_type() const; + public: + void clear_result_type(); + const ::google::api::expr::v1alpha1::Type& result_type() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type* release_result_type(); + ::google::api::expr::v1alpha1::Type* mutable_result_type(); + void set_allocated_result_type(::google::api::expr::v1alpha1::Type* result_type); + private: + const ::google::api::expr::v1alpha1::Type& _internal_result_type() const; + ::google::api::expr::v1alpha1::Type* _internal_mutable_result_type(); + public: + void unsafe_arena_set_allocated_result_type( + ::google::api::expr::v1alpha1::Type* result_type); + ::google::api::expr::v1alpha1::Type* unsafe_arena_release_result_type(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Type.FunctionType) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type > arg_types_; + ::google::api::expr::v1alpha1::Type* result_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; +}; +// ------------------------------------------------------------------- + +class Type_AbstractType final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Type.AbstractType) */ { + public: + inline Type_AbstractType() : Type_AbstractType(nullptr) {} + ~Type_AbstractType() override; + explicit PROTOBUF_CONSTEXPR Type_AbstractType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Type_AbstractType(const Type_AbstractType& from); + Type_AbstractType(Type_AbstractType&& from) noexcept + : Type_AbstractType() { + *this = ::std::move(from); + } + + inline Type_AbstractType& operator=(const Type_AbstractType& from) { + CopyFrom(from); + return *this; + } + inline Type_AbstractType& operator=(Type_AbstractType&& 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 Type_AbstractType& default_instance() { + return *internal_default_instance(); + } + static inline const Type_AbstractType* internal_default_instance() { + return reinterpret_cast( + &_Type_AbstractType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(Type_AbstractType& a, Type_AbstractType& b) { + a.Swap(&b); + } + inline void Swap(Type_AbstractType* 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(Type_AbstractType* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Type_AbstractType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Type_AbstractType& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Type_AbstractType& from) { + Type_AbstractType::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Type_AbstractType* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Type.AbstractType"; + } + protected: + explicit Type_AbstractType(::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 { + kParameterTypesFieldNumber = 2, + kNameFieldNumber = 1, + }; + // repeated .google.api.expr.v1alpha1.Type parameter_types = 2 [json_name = "parameterTypes"]; + int parameter_types_size() const; + private: + int _internal_parameter_types_size() const; + public: + void clear_parameter_types(); + ::google::api::expr::v1alpha1::Type* mutable_parameter_types(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >* + mutable_parameter_types(); + private: + const ::google::api::expr::v1alpha1::Type& _internal_parameter_types(int index) const; + ::google::api::expr::v1alpha1::Type* _internal_add_parameter_types(); + public: + const ::google::api::expr::v1alpha1::Type& parameter_types(int index) const; + ::google::api::expr::v1alpha1::Type* add_parameter_types(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >& + parameter_types() const; + + // 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: + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Type.AbstractType) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type > parameter_types_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; +}; +// ------------------------------------------------------------------- + +class Type final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Type) */ { + public: + inline Type() : Type(nullptr) {} + ~Type() override; + explicit PROTOBUF_CONSTEXPR Type(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Type(const Type& from); + Type(Type&& from) noexcept + : Type() { + *this = ::std::move(from); + } + + inline Type& operator=(const Type& from) { + CopyFrom(from); + return *this; + } + inline Type& operator=(Type&& 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 Type& default_instance() { + return *internal_default_instance(); + } + enum TypeKindCase { + kDyn = 1, + kNull = 2, + kPrimitive = 3, + kWrapper = 4, + kWellKnown = 5, + kListType = 6, + kMapType = 7, + kFunction = 8, + kMessageType = 9, + kTypeParam = 10, + kType = 11, + kError = 12, + kAbstractType = 14, + TYPE_KIND_NOT_SET = 0, + }; + + static inline const Type* internal_default_instance() { + return reinterpret_cast( + &_Type_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(Type& a, Type& b) { + a.Swap(&b); + } + inline void Swap(Type* 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(Type* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Type* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Type& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Type& from) { + Type::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Type* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Type"; + } + protected: + explicit Type(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef Type_ListType ListType; + typedef Type_MapType MapType; + typedef Type_FunctionType FunctionType; + typedef Type_AbstractType AbstractType; + + typedef Type_PrimitiveType PrimitiveType; + static constexpr PrimitiveType PRIMITIVE_TYPE_UNSPECIFIED = + Type_PrimitiveType_PRIMITIVE_TYPE_UNSPECIFIED; + static constexpr PrimitiveType BOOL = + Type_PrimitiveType_BOOL; + static constexpr PrimitiveType INT64 = + Type_PrimitiveType_INT64; + static constexpr PrimitiveType UINT64 = + Type_PrimitiveType_UINT64; + static constexpr PrimitiveType DOUBLE = + Type_PrimitiveType_DOUBLE; + static constexpr PrimitiveType STRING = + Type_PrimitiveType_STRING; + static constexpr PrimitiveType BYTES = + Type_PrimitiveType_BYTES; + static inline bool PrimitiveType_IsValid(int value) { + return Type_PrimitiveType_IsValid(value); + } + static constexpr PrimitiveType PrimitiveType_MIN = + Type_PrimitiveType_PrimitiveType_MIN; + static constexpr PrimitiveType PrimitiveType_MAX = + Type_PrimitiveType_PrimitiveType_MAX; + static constexpr int PrimitiveType_ARRAYSIZE = + Type_PrimitiveType_PrimitiveType_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + PrimitiveType_descriptor() { + return Type_PrimitiveType_descriptor(); + } + template + static inline const std::string& PrimitiveType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PrimitiveType_Name."); + return Type_PrimitiveType_Name(enum_t_value); + } + static inline bool PrimitiveType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + PrimitiveType* value) { + return Type_PrimitiveType_Parse(name, value); + } + + typedef Type_WellKnownType WellKnownType; + static constexpr WellKnownType WELL_KNOWN_TYPE_UNSPECIFIED = + Type_WellKnownType_WELL_KNOWN_TYPE_UNSPECIFIED; + static constexpr WellKnownType ANY = + Type_WellKnownType_ANY; + static constexpr WellKnownType TIMESTAMP = + Type_WellKnownType_TIMESTAMP; + static constexpr WellKnownType DURATION = + Type_WellKnownType_DURATION; + static inline bool WellKnownType_IsValid(int value) { + return Type_WellKnownType_IsValid(value); + } + static constexpr WellKnownType WellKnownType_MIN = + Type_WellKnownType_WellKnownType_MIN; + static constexpr WellKnownType WellKnownType_MAX = + Type_WellKnownType_WellKnownType_MAX; + static constexpr int WellKnownType_ARRAYSIZE = + Type_WellKnownType_WellKnownType_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + WellKnownType_descriptor() { + return Type_WellKnownType_descriptor(); + } + template + static inline const std::string& WellKnownType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function WellKnownType_Name."); + return Type_WellKnownType_Name(enum_t_value); + } + static inline bool WellKnownType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + WellKnownType* value) { + return Type_WellKnownType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kDynFieldNumber = 1, + kNullFieldNumber = 2, + kPrimitiveFieldNumber = 3, + kWrapperFieldNumber = 4, + kWellKnownFieldNumber = 5, + kListTypeFieldNumber = 6, + kMapTypeFieldNumber = 7, + kFunctionFieldNumber = 8, + kMessageTypeFieldNumber = 9, + kTypeParamFieldNumber = 10, + kTypeFieldNumber = 11, + kErrorFieldNumber = 12, + kAbstractTypeFieldNumber = 14, + }; + // .google.protobuf.Empty dyn = 1 [json_name = "dyn"]; + bool has_dyn() const; + private: + bool _internal_has_dyn() const; + public: + void clear_dyn(); + const ::PROTOBUF_NAMESPACE_ID::Empty& dyn() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Empty* release_dyn(); + ::PROTOBUF_NAMESPACE_ID::Empty* mutable_dyn(); + void set_allocated_dyn(::PROTOBUF_NAMESPACE_ID::Empty* dyn); + private: + const ::PROTOBUF_NAMESPACE_ID::Empty& _internal_dyn() const; + ::PROTOBUF_NAMESPACE_ID::Empty* _internal_mutable_dyn(); + public: + void unsafe_arena_set_allocated_dyn( + ::PROTOBUF_NAMESPACE_ID::Empty* dyn); + ::PROTOBUF_NAMESPACE_ID::Empty* unsafe_arena_release_dyn(); + + // .google.protobuf.NullValue null = 2 [json_name = "null"]; + bool has_null() const; + private: + bool _internal_has_null() const; + public: + void clear_null(); + ::PROTOBUF_NAMESPACE_ID::NullValue null() const; + void set_null(::PROTOBUF_NAMESPACE_ID::NullValue value); + private: + ::PROTOBUF_NAMESPACE_ID::NullValue _internal_null() const; + void _internal_set_null(::PROTOBUF_NAMESPACE_ID::NullValue value); + public: + + // .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3 [json_name = "primitive"]; + bool has_primitive() const; + private: + bool _internal_has_primitive() const; + public: + void clear_primitive(); + ::google::api::expr::v1alpha1::Type_PrimitiveType primitive() const; + void set_primitive(::google::api::expr::v1alpha1::Type_PrimitiveType value); + private: + ::google::api::expr::v1alpha1::Type_PrimitiveType _internal_primitive() const; + void _internal_set_primitive(::google::api::expr::v1alpha1::Type_PrimitiveType value); + public: + + // .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4 [json_name = "wrapper"]; + bool has_wrapper() const; + private: + bool _internal_has_wrapper() const; + public: + void clear_wrapper(); + ::google::api::expr::v1alpha1::Type_PrimitiveType wrapper() const; + void set_wrapper(::google::api::expr::v1alpha1::Type_PrimitiveType value); + private: + ::google::api::expr::v1alpha1::Type_PrimitiveType _internal_wrapper() const; + void _internal_set_wrapper(::google::api::expr::v1alpha1::Type_PrimitiveType value); + public: + + // .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5 [json_name = "wellKnown"]; + bool has_well_known() const; + private: + bool _internal_has_well_known() const; + public: + void clear_well_known(); + ::google::api::expr::v1alpha1::Type_WellKnownType well_known() const; + void set_well_known(::google::api::expr::v1alpha1::Type_WellKnownType value); + private: + ::google::api::expr::v1alpha1::Type_WellKnownType _internal_well_known() const; + void _internal_set_well_known(::google::api::expr::v1alpha1::Type_WellKnownType value); + public: + + // .google.api.expr.v1alpha1.Type.ListType list_type = 6 [json_name = "listType"]; + bool has_list_type() const; + private: + bool _internal_has_list_type() const; + public: + void clear_list_type(); + const ::google::api::expr::v1alpha1::Type_ListType& list_type() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type_ListType* release_list_type(); + ::google::api::expr::v1alpha1::Type_ListType* mutable_list_type(); + void set_allocated_list_type(::google::api::expr::v1alpha1::Type_ListType* list_type); + private: + const ::google::api::expr::v1alpha1::Type_ListType& _internal_list_type() const; + ::google::api::expr::v1alpha1::Type_ListType* _internal_mutable_list_type(); + public: + void unsafe_arena_set_allocated_list_type( + ::google::api::expr::v1alpha1::Type_ListType* list_type); + ::google::api::expr::v1alpha1::Type_ListType* unsafe_arena_release_list_type(); + + // .google.api.expr.v1alpha1.Type.MapType map_type = 7 [json_name = "mapType"]; + bool has_map_type() const; + private: + bool _internal_has_map_type() const; + public: + void clear_map_type(); + const ::google::api::expr::v1alpha1::Type_MapType& map_type() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type_MapType* release_map_type(); + ::google::api::expr::v1alpha1::Type_MapType* mutable_map_type(); + void set_allocated_map_type(::google::api::expr::v1alpha1::Type_MapType* map_type); + private: + const ::google::api::expr::v1alpha1::Type_MapType& _internal_map_type() const; + ::google::api::expr::v1alpha1::Type_MapType* _internal_mutable_map_type(); + public: + void unsafe_arena_set_allocated_map_type( + ::google::api::expr::v1alpha1::Type_MapType* map_type); + ::google::api::expr::v1alpha1::Type_MapType* unsafe_arena_release_map_type(); + + // .google.api.expr.v1alpha1.Type.FunctionType function = 8 [json_name = "function"]; + bool has_function() const; + private: + bool _internal_has_function() const; + public: + void clear_function(); + const ::google::api::expr::v1alpha1::Type_FunctionType& function() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type_FunctionType* release_function(); + ::google::api::expr::v1alpha1::Type_FunctionType* mutable_function(); + void set_allocated_function(::google::api::expr::v1alpha1::Type_FunctionType* function); + private: + const ::google::api::expr::v1alpha1::Type_FunctionType& _internal_function() const; + ::google::api::expr::v1alpha1::Type_FunctionType* _internal_mutable_function(); + public: + void unsafe_arena_set_allocated_function( + ::google::api::expr::v1alpha1::Type_FunctionType* function); + ::google::api::expr::v1alpha1::Type_FunctionType* unsafe_arena_release_function(); + + // string message_type = 9 [json_name = "messageType"]; + bool has_message_type() const; + private: + bool _internal_has_message_type() const; + public: + void clear_message_type(); + const std::string& message_type() const; + template + void set_message_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_message_type(); + PROTOBUF_NODISCARD std::string* release_message_type(); + void set_allocated_message_type(std::string* message_type); + private: + const std::string& _internal_message_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message_type(const std::string& value); + std::string* _internal_mutable_message_type(); + public: + + // string type_param = 10 [json_name = "typeParam"]; + bool has_type_param() const; + private: + bool _internal_has_type_param() const; + public: + void clear_type_param(); + const std::string& type_param() const; + template + void set_type_param(ArgT0&& arg0, ArgT... args); + std::string* mutable_type_param(); + PROTOBUF_NODISCARD std::string* release_type_param(); + void set_allocated_type_param(std::string* type_param); + private: + const std::string& _internal_type_param() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_param(const std::string& value); + std::string* _internal_mutable_type_param(); + public: + + // .google.api.expr.v1alpha1.Type type = 11 [json_name = "type"]; + bool has_type() const; + private: + bool _internal_has_type() const; + public: + void clear_type(); + const ::google::api::expr::v1alpha1::Type& type() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type* release_type(); + ::google::api::expr::v1alpha1::Type* mutable_type(); + void set_allocated_type(::google::api::expr::v1alpha1::Type* type); + private: + const ::google::api::expr::v1alpha1::Type& _internal_type() const; + ::google::api::expr::v1alpha1::Type* _internal_mutable_type(); + public: + void unsafe_arena_set_allocated_type( + ::google::api::expr::v1alpha1::Type* type); + ::google::api::expr::v1alpha1::Type* unsafe_arena_release_type(); + + // .google.protobuf.Empty error = 12 [json_name = "error"]; + bool has_error() const; + private: + bool _internal_has_error() const; + public: + void clear_error(); + const ::PROTOBUF_NAMESPACE_ID::Empty& error() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Empty* release_error(); + ::PROTOBUF_NAMESPACE_ID::Empty* mutable_error(); + void set_allocated_error(::PROTOBUF_NAMESPACE_ID::Empty* error); + private: + const ::PROTOBUF_NAMESPACE_ID::Empty& _internal_error() const; + ::PROTOBUF_NAMESPACE_ID::Empty* _internal_mutable_error(); + public: + void unsafe_arena_set_allocated_error( + ::PROTOBUF_NAMESPACE_ID::Empty* error); + ::PROTOBUF_NAMESPACE_ID::Empty* unsafe_arena_release_error(); + + // .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14 [json_name = "abstractType"]; + bool has_abstract_type() const; + private: + bool _internal_has_abstract_type() const; + public: + void clear_abstract_type(); + const ::google::api::expr::v1alpha1::Type_AbstractType& abstract_type() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type_AbstractType* release_abstract_type(); + ::google::api::expr::v1alpha1::Type_AbstractType* mutable_abstract_type(); + void set_allocated_abstract_type(::google::api::expr::v1alpha1::Type_AbstractType* abstract_type); + private: + const ::google::api::expr::v1alpha1::Type_AbstractType& _internal_abstract_type() const; + ::google::api::expr::v1alpha1::Type_AbstractType* _internal_mutable_abstract_type(); + public: + void unsafe_arena_set_allocated_abstract_type( + ::google::api::expr::v1alpha1::Type_AbstractType* abstract_type); + ::google::api::expr::v1alpha1::Type_AbstractType* unsafe_arena_release_abstract_type(); + + void clear_type_kind(); + TypeKindCase type_kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Type) + private: + class _Internal; + void set_has_dyn(); + void set_has_null(); + void set_has_primitive(); + void set_has_wrapper(); + void set_has_well_known(); + void set_has_list_type(); + void set_has_map_type(); + void set_has_function(); + void set_has_message_type(); + void set_has_type_param(); + void set_has_type(); + void set_has_error(); + void set_has_abstract_type(); + + inline bool has_type_kind() const; + inline void clear_has_type_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + union TypeKindUnion { + constexpr TypeKindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::Empty* dyn_; + int null_; + int primitive_; + int wrapper_; + int well_known_; + ::google::api::expr::v1alpha1::Type_ListType* list_type_; + ::google::api::expr::v1alpha1::Type_MapType* map_type_; + ::google::api::expr::v1alpha1::Type_FunctionType* function_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_param_; + ::google::api::expr::v1alpha1::Type* type_; + ::PROTOBUF_NAMESPACE_ID::Empty* error_; + ::google::api::expr::v1alpha1::Type_AbstractType* abstract_type_; + } type_kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; +}; +// ------------------------------------------------------------------- + +class Decl_IdentDecl final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Decl.IdentDecl) */ { + public: + inline Decl_IdentDecl() : Decl_IdentDecl(nullptr) {} + ~Decl_IdentDecl() override; + explicit PROTOBUF_CONSTEXPR Decl_IdentDecl(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Decl_IdentDecl(const Decl_IdentDecl& from); + Decl_IdentDecl(Decl_IdentDecl&& from) noexcept + : Decl_IdentDecl() { + *this = ::std::move(from); + } + + inline Decl_IdentDecl& operator=(const Decl_IdentDecl& from) { + CopyFrom(from); + return *this; + } + inline Decl_IdentDecl& operator=(Decl_IdentDecl&& 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 Decl_IdentDecl& default_instance() { + return *internal_default_instance(); + } + static inline const Decl_IdentDecl* internal_default_instance() { + return reinterpret_cast( + &_Decl_IdentDecl_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(Decl_IdentDecl& a, Decl_IdentDecl& b) { + a.Swap(&b); + } + inline void Swap(Decl_IdentDecl* 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(Decl_IdentDecl* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Decl_IdentDecl* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Decl_IdentDecl& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Decl_IdentDecl& from) { + Decl_IdentDecl::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Decl_IdentDecl* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Decl.IdentDecl"; + } + protected: + explicit Decl_IdentDecl(::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 { + kDocFieldNumber = 3, + kTypeFieldNumber = 1, + kValueFieldNumber = 2, + }; + // string doc = 3 [json_name = "doc"]; + void clear_doc(); + const std::string& doc() const; + template + void set_doc(ArgT0&& arg0, ArgT... args); + std::string* mutable_doc(); + PROTOBUF_NODISCARD std::string* release_doc(); + void set_allocated_doc(std::string* doc); + private: + const std::string& _internal_doc() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc(const std::string& value); + std::string* _internal_mutable_doc(); + public: + + // .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"]; + bool has_type() const; + private: + bool _internal_has_type() const; + public: + void clear_type(); + const ::google::api::expr::v1alpha1::Type& type() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type* release_type(); + ::google::api::expr::v1alpha1::Type* mutable_type(); + void set_allocated_type(::google::api::expr::v1alpha1::Type* type); + private: + const ::google::api::expr::v1alpha1::Type& _internal_type() const; + ::google::api::expr::v1alpha1::Type* _internal_mutable_type(); + public: + void unsafe_arena_set_allocated_type( + ::google::api::expr::v1alpha1::Type* type); + ::google::api::expr::v1alpha1::Type* unsafe_arena_release_type(); + + // .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"]; + bool has_value() const; + private: + bool _internal_has_value() const; + public: + void clear_value(); + const ::google::api::expr::v1alpha1::Constant& value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Constant* release_value(); + ::google::api::expr::v1alpha1::Constant* mutable_value(); + void set_allocated_value(::google::api::expr::v1alpha1::Constant* value); + private: + const ::google::api::expr::v1alpha1::Constant& _internal_value() const; + ::google::api::expr::v1alpha1::Constant* _internal_mutable_value(); + public: + void unsafe_arena_set_allocated_value( + ::google::api::expr::v1alpha1::Constant* value); + ::google::api::expr::v1alpha1::Constant* unsafe_arena_release_value(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Decl.IdentDecl) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_; + ::google::api::expr::v1alpha1::Type* type_; + ::google::api::expr::v1alpha1::Constant* value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; +}; +// ------------------------------------------------------------------- + +class Decl_FunctionDecl_Overload final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) */ { + public: + inline Decl_FunctionDecl_Overload() : Decl_FunctionDecl_Overload(nullptr) {} + ~Decl_FunctionDecl_Overload() override; + explicit PROTOBUF_CONSTEXPR Decl_FunctionDecl_Overload(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Decl_FunctionDecl_Overload(const Decl_FunctionDecl_Overload& from); + Decl_FunctionDecl_Overload(Decl_FunctionDecl_Overload&& from) noexcept + : Decl_FunctionDecl_Overload() { + *this = ::std::move(from); + } + + inline Decl_FunctionDecl_Overload& operator=(const Decl_FunctionDecl_Overload& from) { + CopyFrom(from); + return *this; + } + inline Decl_FunctionDecl_Overload& operator=(Decl_FunctionDecl_Overload&& 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 Decl_FunctionDecl_Overload& default_instance() { + return *internal_default_instance(); + } + static inline const Decl_FunctionDecl_Overload* internal_default_instance() { + return reinterpret_cast( + &_Decl_FunctionDecl_Overload_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(Decl_FunctionDecl_Overload& a, Decl_FunctionDecl_Overload& b) { + a.Swap(&b); + } + inline void Swap(Decl_FunctionDecl_Overload* 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(Decl_FunctionDecl_Overload* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Decl_FunctionDecl_Overload* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Decl_FunctionDecl_Overload& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Decl_FunctionDecl_Overload& from) { + Decl_FunctionDecl_Overload::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Decl_FunctionDecl_Overload* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Decl.FunctionDecl.Overload"; + } + protected: + explicit Decl_FunctionDecl_Overload(::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 { + kParamsFieldNumber = 2, + kTypeParamsFieldNumber = 3, + kOverloadIdFieldNumber = 1, + kDocFieldNumber = 6, + kResultTypeFieldNumber = 4, + kIsInstanceFunctionFieldNumber = 5, + }; + // repeated .google.api.expr.v1alpha1.Type params = 2 [json_name = "params"]; + int params_size() const; + private: + int _internal_params_size() const; + public: + void clear_params(); + ::google::api::expr::v1alpha1::Type* mutable_params(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >* + mutable_params(); + private: + const ::google::api::expr::v1alpha1::Type& _internal_params(int index) const; + ::google::api::expr::v1alpha1::Type* _internal_add_params(); + public: + const ::google::api::expr::v1alpha1::Type& params(int index) const; + ::google::api::expr::v1alpha1::Type* add_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >& + params() const; + + // repeated string type_params = 3 [json_name = "typeParams"]; + int type_params_size() const; + private: + int _internal_type_params_size() const; + public: + void clear_type_params(); + const std::string& type_params(int index) const; + std::string* mutable_type_params(int index); + void set_type_params(int index, const std::string& value); + void set_type_params(int index, std::string&& value); + void set_type_params(int index, const char* value); + void set_type_params(int index, const char* value, size_t size); + std::string* add_type_params(); + void add_type_params(const std::string& value); + void add_type_params(std::string&& value); + void add_type_params(const char* value); + void add_type_params(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& type_params() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_type_params(); + private: + const std::string& _internal_type_params(int index) const; + std::string* _internal_add_type_params(); + public: + + // string overload_id = 1 [json_name = "overloadId"]; + void clear_overload_id(); + const std::string& overload_id() const; + template + void set_overload_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_overload_id(); + PROTOBUF_NODISCARD std::string* release_overload_id(); + void set_allocated_overload_id(std::string* overload_id); + private: + const std::string& _internal_overload_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_overload_id(const std::string& value); + std::string* _internal_mutable_overload_id(); + public: + + // string doc = 6 [json_name = "doc"]; + void clear_doc(); + const std::string& doc() const; + template + void set_doc(ArgT0&& arg0, ArgT... args); + std::string* mutable_doc(); + PROTOBUF_NODISCARD std::string* release_doc(); + void set_allocated_doc(std::string* doc); + private: + const std::string& _internal_doc() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc(const std::string& value); + std::string* _internal_mutable_doc(); + public: + + // .google.api.expr.v1alpha1.Type result_type = 4 [json_name = "resultType"]; + bool has_result_type() const; + private: + bool _internal_has_result_type() const; + public: + void clear_result_type(); + const ::google::api::expr::v1alpha1::Type& result_type() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type* release_result_type(); + ::google::api::expr::v1alpha1::Type* mutable_result_type(); + void set_allocated_result_type(::google::api::expr::v1alpha1::Type* result_type); + private: + const ::google::api::expr::v1alpha1::Type& _internal_result_type() const; + ::google::api::expr::v1alpha1::Type* _internal_mutable_result_type(); + public: + void unsafe_arena_set_allocated_result_type( + ::google::api::expr::v1alpha1::Type* result_type); + ::google::api::expr::v1alpha1::Type* unsafe_arena_release_result_type(); + + // bool is_instance_function = 5 [json_name = "isInstanceFunction"]; + void clear_is_instance_function(); + bool is_instance_function() const; + void set_is_instance_function(bool value); + private: + bool _internal_is_instance_function() const; + void _internal_set_is_instance_function(bool value); + public: + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type > params_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField type_params_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr overload_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_; + ::google::api::expr::v1alpha1::Type* result_type_; + bool is_instance_function_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; +}; +// ------------------------------------------------------------------- + +class Decl_FunctionDecl final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Decl.FunctionDecl) */ { + public: + inline Decl_FunctionDecl() : Decl_FunctionDecl(nullptr) {} + ~Decl_FunctionDecl() override; + explicit PROTOBUF_CONSTEXPR Decl_FunctionDecl(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Decl_FunctionDecl(const Decl_FunctionDecl& from); + Decl_FunctionDecl(Decl_FunctionDecl&& from) noexcept + : Decl_FunctionDecl() { + *this = ::std::move(from); + } + + inline Decl_FunctionDecl& operator=(const Decl_FunctionDecl& from) { + CopyFrom(from); + return *this; + } + inline Decl_FunctionDecl& operator=(Decl_FunctionDecl&& 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 Decl_FunctionDecl& default_instance() { + return *internal_default_instance(); + } + static inline const Decl_FunctionDecl* internal_default_instance() { + return reinterpret_cast( + &_Decl_FunctionDecl_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(Decl_FunctionDecl& a, Decl_FunctionDecl& b) { + a.Swap(&b); + } + inline void Swap(Decl_FunctionDecl* 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(Decl_FunctionDecl* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Decl_FunctionDecl* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Decl_FunctionDecl& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Decl_FunctionDecl& from) { + Decl_FunctionDecl::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Decl_FunctionDecl* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Decl.FunctionDecl"; + } + protected: + explicit Decl_FunctionDecl(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef Decl_FunctionDecl_Overload Overload; + + // accessors ------------------------------------------------------- + + enum : int { + kOverloadsFieldNumber = 1, + }; + // repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"]; + int overloads_size() const; + private: + int _internal_overloads_size() const; + public: + void clear_overloads(); + ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload* mutable_overloads(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload >* + mutable_overloads(); + private: + const ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload& _internal_overloads(int index) const; + ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload* _internal_add_overloads(); + public: + const ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload& overloads(int index) const; + ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload* add_overloads(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload >& + overloads() const; + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Decl.FunctionDecl) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload > overloads_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; +}; +// ------------------------------------------------------------------- + +class Decl final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Decl) */ { + public: + inline Decl() : Decl(nullptr) {} + ~Decl() override; + explicit PROTOBUF_CONSTEXPR Decl(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Decl(const Decl& from); + Decl(Decl&& from) noexcept + : Decl() { + *this = ::std::move(from); + } + + inline Decl& operator=(const Decl& from) { + CopyFrom(from); + return *this; + } + inline Decl& operator=(Decl&& 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 Decl& default_instance() { + return *internal_default_instance(); + } + enum DeclKindCase { + kIdent = 2, + kFunction = 3, + DECL_KIND_NOT_SET = 0, + }; + + static inline const Decl* internal_default_instance() { + return reinterpret_cast( + &_Decl_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(Decl& a, Decl& b) { + a.Swap(&b); + } + inline void Swap(Decl* 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(Decl* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Decl* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Decl& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Decl& from) { + Decl::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Decl* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Decl"; + } + protected: + explicit Decl(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef Decl_IdentDecl IdentDecl; + typedef Decl_FunctionDecl FunctionDecl; + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + kIdentFieldNumber = 2, + kFunctionFieldNumber = 3, + }; + // 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.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"]; + bool has_ident() const; + private: + bool _internal_has_ident() const; + public: + void clear_ident(); + const ::google::api::expr::v1alpha1::Decl_IdentDecl& ident() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Decl_IdentDecl* release_ident(); + ::google::api::expr::v1alpha1::Decl_IdentDecl* mutable_ident(); + void set_allocated_ident(::google::api::expr::v1alpha1::Decl_IdentDecl* ident); + private: + const ::google::api::expr::v1alpha1::Decl_IdentDecl& _internal_ident() const; + ::google::api::expr::v1alpha1::Decl_IdentDecl* _internal_mutable_ident(); + public: + void unsafe_arena_set_allocated_ident( + ::google::api::expr::v1alpha1::Decl_IdentDecl* ident); + ::google::api::expr::v1alpha1::Decl_IdentDecl* unsafe_arena_release_ident(); + + // .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"]; + bool has_function() const; + private: + bool _internal_has_function() const; + public: + void clear_function(); + const ::google::api::expr::v1alpha1::Decl_FunctionDecl& function() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Decl_FunctionDecl* release_function(); + ::google::api::expr::v1alpha1::Decl_FunctionDecl* mutable_function(); + void set_allocated_function(::google::api::expr::v1alpha1::Decl_FunctionDecl* function); + private: + const ::google::api::expr::v1alpha1::Decl_FunctionDecl& _internal_function() const; + ::google::api::expr::v1alpha1::Decl_FunctionDecl* _internal_mutable_function(); + public: + void unsafe_arena_set_allocated_function( + ::google::api::expr::v1alpha1::Decl_FunctionDecl* function); + ::google::api::expr::v1alpha1::Decl_FunctionDecl* unsafe_arena_release_function(); + + void clear_decl_kind(); + DeclKindCase decl_kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Decl) + private: + class _Internal; + void set_has_ident(); + void set_has_function(); + + inline bool has_decl_kind() const; + inline void clear_has_decl_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + union DeclKindUnion { + constexpr DeclKindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::google::api::expr::v1alpha1::Decl_IdentDecl* ident_; + ::google::api::expr::v1alpha1::Decl_FunctionDecl* function_; + } decl_kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; +}; +// ------------------------------------------------------------------- + +class Reference final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Reference) */ { + public: + inline Reference() : Reference(nullptr) {} + ~Reference() override; + explicit PROTOBUF_CONSTEXPR Reference(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Reference(const Reference& from); + Reference(Reference&& from) noexcept + : Reference() { + *this = ::std::move(from); + } + + inline Reference& operator=(const Reference& from) { + CopyFrom(from); + return *this; + } + inline Reference& operator=(Reference&& 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 Reference& default_instance() { + return *internal_default_instance(); + } + static inline const Reference* internal_default_instance() { + return reinterpret_cast( + &_Reference_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(Reference& a, Reference& b) { + a.Swap(&b); + } + inline void Swap(Reference* 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(Reference* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Reference* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Reference& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Reference& from) { + Reference::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Reference* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Reference"; + } + protected: + explicit Reference(::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 { + kOverloadIdFieldNumber = 3, + kNameFieldNumber = 1, + kValueFieldNumber = 4, + }; + // repeated string overload_id = 3 [json_name = "overloadId"]; + int overload_id_size() const; + private: + int _internal_overload_id_size() const; + public: + void clear_overload_id(); + const std::string& overload_id(int index) const; + std::string* mutable_overload_id(int index); + void set_overload_id(int index, const std::string& value); + void set_overload_id(int index, std::string&& value); + void set_overload_id(int index, const char* value); + void set_overload_id(int index, const char* value, size_t size); + std::string* add_overload_id(); + void add_overload_id(const std::string& value); + void add_overload_id(std::string&& value); + void add_overload_id(const char* value); + void add_overload_id(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& overload_id() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_overload_id(); + private: + const std::string& _internal_overload_id(int index) const; + std::string* _internal_add_overload_id(); + public: + + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"]; + bool has_value() const; + private: + bool _internal_has_value() const; + public: + void clear_value(); + const ::google::api::expr::v1alpha1::Constant& value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Constant* release_value(); + ::google::api::expr::v1alpha1::Constant* mutable_value(); + void set_allocated_value(::google::api::expr::v1alpha1::Constant* value); + private: + const ::google::api::expr::v1alpha1::Constant& _internal_value() const; + ::google::api::expr::v1alpha1::Constant* _internal_mutable_value(); + public: + void unsafe_arena_set_allocated_value( + ::google::api::expr::v1alpha1::Constant* value); + ::google::api::expr::v1alpha1::Constant* unsafe_arena_release_value(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Reference) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField overload_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::google::api::expr::v1alpha1::Constant* value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// CheckedExpr + +// map reference_map = 2 [json_name = "referenceMap"]; +inline int CheckedExpr::_internal_reference_map_size() const { + return _impl_.reference_map_.size(); +} +inline int CheckedExpr::reference_map_size() const { + return _internal_reference_map_size(); +} +inline void CheckedExpr::clear_reference_map() { + _impl_.reference_map_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Reference >& +CheckedExpr::_internal_reference_map() const { + return _impl_.reference_map_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Reference >& +CheckedExpr::reference_map() const { + // @@protoc_insertion_point(field_map:google.api.expr.v1alpha1.CheckedExpr.reference_map) + return _internal_reference_map(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Reference >* +CheckedExpr::_internal_mutable_reference_map() { + return _impl_.reference_map_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Reference >* +CheckedExpr::mutable_reference_map() { + // @@protoc_insertion_point(field_mutable_map:google.api.expr.v1alpha1.CheckedExpr.reference_map) + return _internal_mutable_reference_map(); +} + +// map type_map = 3 [json_name = "typeMap"]; +inline int CheckedExpr::_internal_type_map_size() const { + return _impl_.type_map_.size(); +} +inline int CheckedExpr::type_map_size() const { + return _internal_type_map_size(); +} +inline void CheckedExpr::clear_type_map() { + _impl_.type_map_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Type >& +CheckedExpr::_internal_type_map() const { + return _impl_.type_map_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Type >& +CheckedExpr::type_map() const { + // @@protoc_insertion_point(field_map:google.api.expr.v1alpha1.CheckedExpr.type_map) + return _internal_type_map(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Type >* +CheckedExpr::_internal_mutable_type_map() { + return _impl_.type_map_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Type >* +CheckedExpr::mutable_type_map() { + // @@protoc_insertion_point(field_mutable_map:google.api.expr.v1alpha1.CheckedExpr.type_map) + return _internal_mutable_type_map(); +} + +// .google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"]; +inline bool CheckedExpr::_internal_has_source_info() const { + return this != internal_default_instance() && _impl_.source_info_ != nullptr; +} +inline bool CheckedExpr::has_source_info() const { + return _internal_has_source_info(); +} +inline const ::google::api::expr::v1alpha1::SourceInfo& CheckedExpr::_internal_source_info() const { + const ::google::api::expr::v1alpha1::SourceInfo* p = _impl_.source_info_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_SourceInfo_default_instance_); +} +inline const ::google::api::expr::v1alpha1::SourceInfo& CheckedExpr::source_info() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.CheckedExpr.source_info) + return _internal_source_info(); +} +inline void CheckedExpr::unsafe_arena_set_allocated_source_info( + ::google::api::expr::v1alpha1::SourceInfo* source_info) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.source_info_); + } + _impl_.source_info_ = source_info; + if (source_info) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.CheckedExpr.source_info) +} +inline ::google::api::expr::v1alpha1::SourceInfo* CheckedExpr::release_source_info() { + + ::google::api::expr::v1alpha1::SourceInfo* temp = _impl_.source_info_; + _impl_.source_info_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::google::api::expr::v1alpha1::SourceInfo* CheckedExpr::unsafe_arena_release_source_info() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.CheckedExpr.source_info) + + ::google::api::expr::v1alpha1::SourceInfo* temp = _impl_.source_info_; + _impl_.source_info_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::SourceInfo* CheckedExpr::_internal_mutable_source_info() { + + if (_impl_.source_info_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo>(GetArenaForAllocation()); + _impl_.source_info_ = p; + } + return _impl_.source_info_; +} +inline ::google::api::expr::v1alpha1::SourceInfo* CheckedExpr::mutable_source_info() { + ::google::api::expr::v1alpha1::SourceInfo* _msg = _internal_mutable_source_info(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.CheckedExpr.source_info) + return _msg; +} +inline void CheckedExpr::set_allocated_source_info(::google::api::expr::v1alpha1::SourceInfo* source_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.source_info_); + } + if (source_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_info)); + if (message_arena != submessage_arena) { + source_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, source_info, submessage_arena); + } + + } else { + + } + _impl_.source_info_ = source_info; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.CheckedExpr.source_info) +} + +// string expr_version = 6 [json_name = "exprVersion"]; +inline void CheckedExpr::clear_expr_version() { + _impl_.expr_version_.ClearToEmpty(); +} +inline const std::string& CheckedExpr::expr_version() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.CheckedExpr.expr_version) + return _internal_expr_version(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CheckedExpr::set_expr_version(ArgT0&& arg0, ArgT... args) { + + _impl_.expr_version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.CheckedExpr.expr_version) +} +inline std::string* CheckedExpr::mutable_expr_version() { + std::string* _s = _internal_mutable_expr_version(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.CheckedExpr.expr_version) + return _s; +} +inline const std::string& CheckedExpr::_internal_expr_version() const { + return _impl_.expr_version_.Get(); +} +inline void CheckedExpr::_internal_set_expr_version(const std::string& value) { + + _impl_.expr_version_.Set(value, GetArenaForAllocation()); +} +inline std::string* CheckedExpr::_internal_mutable_expr_version() { + + return _impl_.expr_version_.Mutable(GetArenaForAllocation()); +} +inline std::string* CheckedExpr::release_expr_version() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.CheckedExpr.expr_version) + return _impl_.expr_version_.Release(); +} +inline void CheckedExpr::set_allocated_expr_version(std::string* expr_version) { + if (expr_version != nullptr) { + + } else { + + } + _impl_.expr_version_.SetAllocated(expr_version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.expr_version_.IsDefault()) { + _impl_.expr_version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.CheckedExpr.expr_version) +} + +// .google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"]; +inline bool CheckedExpr::_internal_has_expr() const { + return this != internal_default_instance() && _impl_.expr_ != nullptr; +} +inline bool CheckedExpr::has_expr() const { + return _internal_has_expr(); +} +inline const ::google::api::expr::v1alpha1::Expr& CheckedExpr::_internal_expr() const { + const ::google::api::expr::v1alpha1::Expr* p = _impl_.expr_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Expr& CheckedExpr::expr() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.CheckedExpr.expr) + return _internal_expr(); +} +inline void CheckedExpr::unsafe_arena_set_allocated_expr( + ::google::api::expr::v1alpha1::Expr* expr) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.expr_); + } + _impl_.expr_ = expr; + if (expr) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.CheckedExpr.expr) +} +inline ::google::api::expr::v1alpha1::Expr* CheckedExpr::release_expr() { + + ::google::api::expr::v1alpha1::Expr* temp = _impl_.expr_; + _impl_.expr_ = 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 ::google::api::expr::v1alpha1::Expr* CheckedExpr::unsafe_arena_release_expr() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.CheckedExpr.expr) + + ::google::api::expr::v1alpha1::Expr* temp = _impl_.expr_; + _impl_.expr_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::Expr* CheckedExpr::_internal_mutable_expr() { + + if (_impl_.expr_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArenaForAllocation()); + _impl_.expr_ = p; + } + return _impl_.expr_; +} +inline ::google::api::expr::v1alpha1::Expr* CheckedExpr::mutable_expr() { + ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_expr(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.CheckedExpr.expr) + return _msg; +} +inline void CheckedExpr::set_allocated_expr(::google::api::expr::v1alpha1::Expr* expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.expr_); + } + if (expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(expr)); + if (message_arena != submessage_arena) { + expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, expr, submessage_arena); + } + + } else { + + } + _impl_.expr_ = expr; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.CheckedExpr.expr) +} + +// ------------------------------------------------------------------- + +// Type_ListType + +// .google.api.expr.v1alpha1.Type elem_type = 1 [json_name = "elemType"]; +inline bool Type_ListType::_internal_has_elem_type() const { + return this != internal_default_instance() && _impl_.elem_type_ != nullptr; +} +inline bool Type_ListType::has_elem_type() const { + return _internal_has_elem_type(); +} +inline void Type_ListType::clear_elem_type() { + if (GetArenaForAllocation() == nullptr && _impl_.elem_type_ != nullptr) { + delete _impl_.elem_type_; + } + _impl_.elem_type_ = nullptr; +} +inline const ::google::api::expr::v1alpha1::Type& Type_ListType::_internal_elem_type() const { + const ::google::api::expr::v1alpha1::Type* p = _impl_.elem_type_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Type_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Type& Type_ListType::elem_type() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.ListType.elem_type) + return _internal_elem_type(); +} +inline void Type_ListType::unsafe_arena_set_allocated_elem_type( + ::google::api::expr::v1alpha1::Type* elem_type) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.elem_type_); + } + _impl_.elem_type_ = elem_type; + if (elem_type) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.ListType.elem_type) +} +inline ::google::api::expr::v1alpha1::Type* Type_ListType::release_elem_type() { + + ::google::api::expr::v1alpha1::Type* temp = _impl_.elem_type_; + _impl_.elem_type_ = 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 ::google::api::expr::v1alpha1::Type* Type_ListType::unsafe_arena_release_elem_type() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.ListType.elem_type) + + ::google::api::expr::v1alpha1::Type* temp = _impl_.elem_type_; + _impl_.elem_type_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::Type* Type_ListType::_internal_mutable_elem_type() { + + if (_impl_.elem_type_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(GetArenaForAllocation()); + _impl_.elem_type_ = p; + } + return _impl_.elem_type_; +} +inline ::google::api::expr::v1alpha1::Type* Type_ListType::mutable_elem_type() { + ::google::api::expr::v1alpha1::Type* _msg = _internal_mutable_elem_type(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.ListType.elem_type) + return _msg; +} +inline void Type_ListType::set_allocated_elem_type(::google::api::expr::v1alpha1::Type* elem_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.elem_type_; + } + if (elem_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(elem_type); + if (message_arena != submessage_arena) { + elem_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, elem_type, submessage_arena); + } + + } else { + + } + _impl_.elem_type_ = elem_type; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.ListType.elem_type) +} + +// ------------------------------------------------------------------- + +// Type_MapType + +// .google.api.expr.v1alpha1.Type key_type = 1 [json_name = "keyType"]; +inline bool Type_MapType::_internal_has_key_type() const { + return this != internal_default_instance() && _impl_.key_type_ != nullptr; +} +inline bool Type_MapType::has_key_type() const { + return _internal_has_key_type(); +} +inline void Type_MapType::clear_key_type() { + if (GetArenaForAllocation() == nullptr && _impl_.key_type_ != nullptr) { + delete _impl_.key_type_; + } + _impl_.key_type_ = nullptr; +} +inline const ::google::api::expr::v1alpha1::Type& Type_MapType::_internal_key_type() const { + const ::google::api::expr::v1alpha1::Type* p = _impl_.key_type_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Type_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Type& Type_MapType::key_type() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.MapType.key_type) + return _internal_key_type(); +} +inline void Type_MapType::unsafe_arena_set_allocated_key_type( + ::google::api::expr::v1alpha1::Type* key_type) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.key_type_); + } + _impl_.key_type_ = key_type; + if (key_type) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.MapType.key_type) +} +inline ::google::api::expr::v1alpha1::Type* Type_MapType::release_key_type() { + + ::google::api::expr::v1alpha1::Type* temp = _impl_.key_type_; + _impl_.key_type_ = 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 ::google::api::expr::v1alpha1::Type* Type_MapType::unsafe_arena_release_key_type() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.MapType.key_type) + + ::google::api::expr::v1alpha1::Type* temp = _impl_.key_type_; + _impl_.key_type_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::Type* Type_MapType::_internal_mutable_key_type() { + + if (_impl_.key_type_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(GetArenaForAllocation()); + _impl_.key_type_ = p; + } + return _impl_.key_type_; +} +inline ::google::api::expr::v1alpha1::Type* Type_MapType::mutable_key_type() { + ::google::api::expr::v1alpha1::Type* _msg = _internal_mutable_key_type(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.MapType.key_type) + return _msg; +} +inline void Type_MapType::set_allocated_key_type(::google::api::expr::v1alpha1::Type* key_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.key_type_; + } + if (key_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(key_type); + if (message_arena != submessage_arena) { + key_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, key_type, submessage_arena); + } + + } else { + + } + _impl_.key_type_ = key_type; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.MapType.key_type) +} + +// .google.api.expr.v1alpha1.Type value_type = 2 [json_name = "valueType"]; +inline bool Type_MapType::_internal_has_value_type() const { + return this != internal_default_instance() && _impl_.value_type_ != nullptr; +} +inline bool Type_MapType::has_value_type() const { + return _internal_has_value_type(); +} +inline void Type_MapType::clear_value_type() { + if (GetArenaForAllocation() == nullptr && _impl_.value_type_ != nullptr) { + delete _impl_.value_type_; + } + _impl_.value_type_ = nullptr; +} +inline const ::google::api::expr::v1alpha1::Type& Type_MapType::_internal_value_type() const { + const ::google::api::expr::v1alpha1::Type* p = _impl_.value_type_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Type_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Type& Type_MapType::value_type() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.MapType.value_type) + return _internal_value_type(); +} +inline void Type_MapType::unsafe_arena_set_allocated_value_type( + ::google::api::expr::v1alpha1::Type* value_type) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.value_type_); + } + _impl_.value_type_ = value_type; + if (value_type) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.MapType.value_type) +} +inline ::google::api::expr::v1alpha1::Type* Type_MapType::release_value_type() { + + ::google::api::expr::v1alpha1::Type* temp = _impl_.value_type_; + _impl_.value_type_ = 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 ::google::api::expr::v1alpha1::Type* Type_MapType::unsafe_arena_release_value_type() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.MapType.value_type) + + ::google::api::expr::v1alpha1::Type* temp = _impl_.value_type_; + _impl_.value_type_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::Type* Type_MapType::_internal_mutable_value_type() { + + if (_impl_.value_type_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(GetArenaForAllocation()); + _impl_.value_type_ = p; + } + return _impl_.value_type_; +} +inline ::google::api::expr::v1alpha1::Type* Type_MapType::mutable_value_type() { + ::google::api::expr::v1alpha1::Type* _msg = _internal_mutable_value_type(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.MapType.value_type) + return _msg; +} +inline void Type_MapType::set_allocated_value_type(::google::api::expr::v1alpha1::Type* value_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.value_type_; + } + if (value_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(value_type); + if (message_arena != submessage_arena) { + value_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value_type, submessage_arena); + } + + } else { + + } + _impl_.value_type_ = value_type; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.MapType.value_type) +} + +// ------------------------------------------------------------------- + +// Type_FunctionType + +// .google.api.expr.v1alpha1.Type result_type = 1 [json_name = "resultType"]; +inline bool Type_FunctionType::_internal_has_result_type() const { + return this != internal_default_instance() && _impl_.result_type_ != nullptr; +} +inline bool Type_FunctionType::has_result_type() const { + return _internal_has_result_type(); +} +inline void Type_FunctionType::clear_result_type() { + if (GetArenaForAllocation() == nullptr && _impl_.result_type_ != nullptr) { + delete _impl_.result_type_; + } + _impl_.result_type_ = nullptr; +} +inline const ::google::api::expr::v1alpha1::Type& Type_FunctionType::_internal_result_type() const { + const ::google::api::expr::v1alpha1::Type* p = _impl_.result_type_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Type_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Type& Type_FunctionType::result_type() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.FunctionType.result_type) + return _internal_result_type(); +} +inline void Type_FunctionType::unsafe_arena_set_allocated_result_type( + ::google::api::expr::v1alpha1::Type* result_type) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.result_type_); + } + _impl_.result_type_ = result_type; + if (result_type) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.FunctionType.result_type) +} +inline ::google::api::expr::v1alpha1::Type* Type_FunctionType::release_result_type() { + + ::google::api::expr::v1alpha1::Type* temp = _impl_.result_type_; + _impl_.result_type_ = 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 ::google::api::expr::v1alpha1::Type* Type_FunctionType::unsafe_arena_release_result_type() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.FunctionType.result_type) + + ::google::api::expr::v1alpha1::Type* temp = _impl_.result_type_; + _impl_.result_type_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::Type* Type_FunctionType::_internal_mutable_result_type() { + + if (_impl_.result_type_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(GetArenaForAllocation()); + _impl_.result_type_ = p; + } + return _impl_.result_type_; +} +inline ::google::api::expr::v1alpha1::Type* Type_FunctionType::mutable_result_type() { + ::google::api::expr::v1alpha1::Type* _msg = _internal_mutable_result_type(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.FunctionType.result_type) + return _msg; +} +inline void Type_FunctionType::set_allocated_result_type(::google::api::expr::v1alpha1::Type* result_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.result_type_; + } + if (result_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(result_type); + if (message_arena != submessage_arena) { + result_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, result_type, submessage_arena); + } + + } else { + + } + _impl_.result_type_ = result_type; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.FunctionType.result_type) +} + +// repeated .google.api.expr.v1alpha1.Type arg_types = 2 [json_name = "argTypes"]; +inline int Type_FunctionType::_internal_arg_types_size() const { + return _impl_.arg_types_.size(); +} +inline int Type_FunctionType::arg_types_size() const { + return _internal_arg_types_size(); +} +inline void Type_FunctionType::clear_arg_types() { + _impl_.arg_types_.Clear(); +} +inline ::google::api::expr::v1alpha1::Type* Type_FunctionType::mutable_arg_types(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.FunctionType.arg_types) + return _impl_.arg_types_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >* +Type_FunctionType::mutable_arg_types() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Type.FunctionType.arg_types) + return &_impl_.arg_types_; +} +inline const ::google::api::expr::v1alpha1::Type& Type_FunctionType::_internal_arg_types(int index) const { + return _impl_.arg_types_.Get(index); +} +inline const ::google::api::expr::v1alpha1::Type& Type_FunctionType::arg_types(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.FunctionType.arg_types) + return _internal_arg_types(index); +} +inline ::google::api::expr::v1alpha1::Type* Type_FunctionType::_internal_add_arg_types() { + return _impl_.arg_types_.Add(); +} +inline ::google::api::expr::v1alpha1::Type* Type_FunctionType::add_arg_types() { + ::google::api::expr::v1alpha1::Type* _add = _internal_add_arg_types(); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Type.FunctionType.arg_types) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >& +Type_FunctionType::arg_types() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Type.FunctionType.arg_types) + return _impl_.arg_types_; +} + +// ------------------------------------------------------------------- + +// Type_AbstractType + +// string name = 1 [json_name = "name"]; +inline void Type_AbstractType::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& Type_AbstractType::name() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.AbstractType.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Type_AbstractType::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Type.AbstractType.name) +} +inline std::string* Type_AbstractType::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.AbstractType.name) + return _s; +} +inline const std::string& Type_AbstractType::_internal_name() const { + return _impl_.name_.Get(); +} +inline void Type_AbstractType::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Type_AbstractType::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* Type_AbstractType::release_name() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.AbstractType.name) + return _impl_.name_.Release(); +} +inline void Type_AbstractType::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.AbstractType.name) +} + +// repeated .google.api.expr.v1alpha1.Type parameter_types = 2 [json_name = "parameterTypes"]; +inline int Type_AbstractType::_internal_parameter_types_size() const { + return _impl_.parameter_types_.size(); +} +inline int Type_AbstractType::parameter_types_size() const { + return _internal_parameter_types_size(); +} +inline void Type_AbstractType::clear_parameter_types() { + _impl_.parameter_types_.Clear(); +} +inline ::google::api::expr::v1alpha1::Type* Type_AbstractType::mutable_parameter_types(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.AbstractType.parameter_types) + return _impl_.parameter_types_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >* +Type_AbstractType::mutable_parameter_types() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Type.AbstractType.parameter_types) + return &_impl_.parameter_types_; +} +inline const ::google::api::expr::v1alpha1::Type& Type_AbstractType::_internal_parameter_types(int index) const { + return _impl_.parameter_types_.Get(index); +} +inline const ::google::api::expr::v1alpha1::Type& Type_AbstractType::parameter_types(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.AbstractType.parameter_types) + return _internal_parameter_types(index); +} +inline ::google::api::expr::v1alpha1::Type* Type_AbstractType::_internal_add_parameter_types() { + return _impl_.parameter_types_.Add(); +} +inline ::google::api::expr::v1alpha1::Type* Type_AbstractType::add_parameter_types() { + ::google::api::expr::v1alpha1::Type* _add = _internal_add_parameter_types(); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Type.AbstractType.parameter_types) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >& +Type_AbstractType::parameter_types() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Type.AbstractType.parameter_types) + return _impl_.parameter_types_; +} + +// ------------------------------------------------------------------- + +// Type + +// .google.protobuf.Empty dyn = 1 [json_name = "dyn"]; +inline bool Type::_internal_has_dyn() const { + return type_kind_case() == kDyn; +} +inline bool Type::has_dyn() const { + return _internal_has_dyn(); +} +inline void Type::set_has_dyn() { + _impl_._oneof_case_[0] = kDyn; +} +inline ::PROTOBUF_NAMESPACE_ID::Empty* Type::release_dyn() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.dyn) + if (_internal_has_dyn()) { + clear_has_type_kind(); + ::PROTOBUF_NAMESPACE_ID::Empty* temp = _impl_.type_kind_.dyn_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.type_kind_.dyn_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::PROTOBUF_NAMESPACE_ID::Empty& Type::_internal_dyn() const { + return _internal_has_dyn() + ? *_impl_.type_kind_.dyn_ + : reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::Empty&>(::PROTOBUF_NAMESPACE_ID::_Empty_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Empty& Type::dyn() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.dyn) + return _internal_dyn(); +} +inline ::PROTOBUF_NAMESPACE_ID::Empty* Type::unsafe_arena_release_dyn() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Type.dyn) + if (_internal_has_dyn()) { + clear_has_type_kind(); + ::PROTOBUF_NAMESPACE_ID::Empty* temp = _impl_.type_kind_.dyn_; + _impl_.type_kind_.dyn_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Type::unsafe_arena_set_allocated_dyn(::PROTOBUF_NAMESPACE_ID::Empty* dyn) { + clear_type_kind(); + if (dyn) { + set_has_dyn(); + _impl_.type_kind_.dyn_ = dyn; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.dyn) +} +inline ::PROTOBUF_NAMESPACE_ID::Empty* Type::_internal_mutable_dyn() { + if (!_internal_has_dyn()) { + clear_type_kind(); + set_has_dyn(); + _impl_.type_kind_.dyn_ = CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Empty >(GetArenaForAllocation()); + } + return _impl_.type_kind_.dyn_; +} +inline ::PROTOBUF_NAMESPACE_ID::Empty* Type::mutable_dyn() { + ::PROTOBUF_NAMESPACE_ID::Empty* _msg = _internal_mutable_dyn(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.dyn) + return _msg; +} + +// .google.protobuf.NullValue null = 2 [json_name = "null"]; +inline bool Type::_internal_has_null() const { + return type_kind_case() == kNull; +} +inline bool Type::has_null() const { + return _internal_has_null(); +} +inline void Type::set_has_null() { + _impl_._oneof_case_[0] = kNull; +} +inline void Type::clear_null() { + if (_internal_has_null()) { + _impl_.type_kind_.null_ = 0; + clear_has_type_kind(); + } +} +inline ::PROTOBUF_NAMESPACE_ID::NullValue Type::_internal_null() const { + if (_internal_has_null()) { + return static_cast< ::PROTOBUF_NAMESPACE_ID::NullValue >(_impl_.type_kind_.null_); + } + return static_cast< ::PROTOBUF_NAMESPACE_ID::NullValue >(0); +} +inline ::PROTOBUF_NAMESPACE_ID::NullValue Type::null() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.null) + return _internal_null(); +} +inline void Type::_internal_set_null(::PROTOBUF_NAMESPACE_ID::NullValue value) { + if (!_internal_has_null()) { + clear_type_kind(); + set_has_null(); + } + _impl_.type_kind_.null_ = value; +} +inline void Type::set_null(::PROTOBUF_NAMESPACE_ID::NullValue value) { + _internal_set_null(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Type.null) +} + +// .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3 [json_name = "primitive"]; +inline bool Type::_internal_has_primitive() const { + return type_kind_case() == kPrimitive; +} +inline bool Type::has_primitive() const { + return _internal_has_primitive(); +} +inline void Type::set_has_primitive() { + _impl_._oneof_case_[0] = kPrimitive; +} +inline void Type::clear_primitive() { + if (_internal_has_primitive()) { + _impl_.type_kind_.primitive_ = 0; + clear_has_type_kind(); + } +} +inline ::google::api::expr::v1alpha1::Type_PrimitiveType Type::_internal_primitive() const { + if (_internal_has_primitive()) { + return static_cast< ::google::api::expr::v1alpha1::Type_PrimitiveType >(_impl_.type_kind_.primitive_); + } + return static_cast< ::google::api::expr::v1alpha1::Type_PrimitiveType >(0); +} +inline ::google::api::expr::v1alpha1::Type_PrimitiveType Type::primitive() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.primitive) + return _internal_primitive(); +} +inline void Type::_internal_set_primitive(::google::api::expr::v1alpha1::Type_PrimitiveType value) { + if (!_internal_has_primitive()) { + clear_type_kind(); + set_has_primitive(); + } + _impl_.type_kind_.primitive_ = value; +} +inline void Type::set_primitive(::google::api::expr::v1alpha1::Type_PrimitiveType value) { + _internal_set_primitive(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Type.primitive) +} + +// .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4 [json_name = "wrapper"]; +inline bool Type::_internal_has_wrapper() const { + return type_kind_case() == kWrapper; +} +inline bool Type::has_wrapper() const { + return _internal_has_wrapper(); +} +inline void Type::set_has_wrapper() { + _impl_._oneof_case_[0] = kWrapper; +} +inline void Type::clear_wrapper() { + if (_internal_has_wrapper()) { + _impl_.type_kind_.wrapper_ = 0; + clear_has_type_kind(); + } +} +inline ::google::api::expr::v1alpha1::Type_PrimitiveType Type::_internal_wrapper() const { + if (_internal_has_wrapper()) { + return static_cast< ::google::api::expr::v1alpha1::Type_PrimitiveType >(_impl_.type_kind_.wrapper_); + } + return static_cast< ::google::api::expr::v1alpha1::Type_PrimitiveType >(0); +} +inline ::google::api::expr::v1alpha1::Type_PrimitiveType Type::wrapper() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.wrapper) + return _internal_wrapper(); +} +inline void Type::_internal_set_wrapper(::google::api::expr::v1alpha1::Type_PrimitiveType value) { + if (!_internal_has_wrapper()) { + clear_type_kind(); + set_has_wrapper(); + } + _impl_.type_kind_.wrapper_ = value; +} +inline void Type::set_wrapper(::google::api::expr::v1alpha1::Type_PrimitiveType value) { + _internal_set_wrapper(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Type.wrapper) +} + +// .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5 [json_name = "wellKnown"]; +inline bool Type::_internal_has_well_known() const { + return type_kind_case() == kWellKnown; +} +inline bool Type::has_well_known() const { + return _internal_has_well_known(); +} +inline void Type::set_has_well_known() { + _impl_._oneof_case_[0] = kWellKnown; +} +inline void Type::clear_well_known() { + if (_internal_has_well_known()) { + _impl_.type_kind_.well_known_ = 0; + clear_has_type_kind(); + } +} +inline ::google::api::expr::v1alpha1::Type_WellKnownType Type::_internal_well_known() const { + if (_internal_has_well_known()) { + return static_cast< ::google::api::expr::v1alpha1::Type_WellKnownType >(_impl_.type_kind_.well_known_); + } + return static_cast< ::google::api::expr::v1alpha1::Type_WellKnownType >(0); +} +inline ::google::api::expr::v1alpha1::Type_WellKnownType Type::well_known() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.well_known) + return _internal_well_known(); +} +inline void Type::_internal_set_well_known(::google::api::expr::v1alpha1::Type_WellKnownType value) { + if (!_internal_has_well_known()) { + clear_type_kind(); + set_has_well_known(); + } + _impl_.type_kind_.well_known_ = value; +} +inline void Type::set_well_known(::google::api::expr::v1alpha1::Type_WellKnownType value) { + _internal_set_well_known(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Type.well_known) +} + +// .google.api.expr.v1alpha1.Type.ListType list_type = 6 [json_name = "listType"]; +inline bool Type::_internal_has_list_type() const { + return type_kind_case() == kListType; +} +inline bool Type::has_list_type() const { + return _internal_has_list_type(); +} +inline void Type::set_has_list_type() { + _impl_._oneof_case_[0] = kListType; +} +inline void Type::clear_list_type() { + if (_internal_has_list_type()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_kind_.list_type_; + } + clear_has_type_kind(); + } +} +inline ::google::api::expr::v1alpha1::Type_ListType* Type::release_list_type() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.list_type) + if (_internal_has_list_type()) { + clear_has_type_kind(); + ::google::api::expr::v1alpha1::Type_ListType* temp = _impl_.type_kind_.list_type_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.type_kind_.list_type_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1alpha1::Type_ListType& Type::_internal_list_type() const { + return _internal_has_list_type() + ? *_impl_.type_kind_.list_type_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Type_ListType&>(::google::api::expr::v1alpha1::_Type_ListType_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Type_ListType& Type::list_type() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.list_type) + return _internal_list_type(); +} +inline ::google::api::expr::v1alpha1::Type_ListType* Type::unsafe_arena_release_list_type() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Type.list_type) + if (_internal_has_list_type()) { + clear_has_type_kind(); + ::google::api::expr::v1alpha1::Type_ListType* temp = _impl_.type_kind_.list_type_; + _impl_.type_kind_.list_type_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Type::unsafe_arena_set_allocated_list_type(::google::api::expr::v1alpha1::Type_ListType* list_type) { + clear_type_kind(); + if (list_type) { + set_has_list_type(); + _impl_.type_kind_.list_type_ = list_type; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.list_type) +} +inline ::google::api::expr::v1alpha1::Type_ListType* Type::_internal_mutable_list_type() { + if (!_internal_has_list_type()) { + clear_type_kind(); + set_has_list_type(); + _impl_.type_kind_.list_type_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Type_ListType >(GetArenaForAllocation()); + } + return _impl_.type_kind_.list_type_; +} +inline ::google::api::expr::v1alpha1::Type_ListType* Type::mutable_list_type() { + ::google::api::expr::v1alpha1::Type_ListType* _msg = _internal_mutable_list_type(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.list_type) + return _msg; +} + +// .google.api.expr.v1alpha1.Type.MapType map_type = 7 [json_name = "mapType"]; +inline bool Type::_internal_has_map_type() const { + return type_kind_case() == kMapType; +} +inline bool Type::has_map_type() const { + return _internal_has_map_type(); +} +inline void Type::set_has_map_type() { + _impl_._oneof_case_[0] = kMapType; +} +inline void Type::clear_map_type() { + if (_internal_has_map_type()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_kind_.map_type_; + } + clear_has_type_kind(); + } +} +inline ::google::api::expr::v1alpha1::Type_MapType* Type::release_map_type() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.map_type) + if (_internal_has_map_type()) { + clear_has_type_kind(); + ::google::api::expr::v1alpha1::Type_MapType* temp = _impl_.type_kind_.map_type_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.type_kind_.map_type_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1alpha1::Type_MapType& Type::_internal_map_type() const { + return _internal_has_map_type() + ? *_impl_.type_kind_.map_type_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Type_MapType&>(::google::api::expr::v1alpha1::_Type_MapType_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Type_MapType& Type::map_type() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.map_type) + return _internal_map_type(); +} +inline ::google::api::expr::v1alpha1::Type_MapType* Type::unsafe_arena_release_map_type() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Type.map_type) + if (_internal_has_map_type()) { + clear_has_type_kind(); + ::google::api::expr::v1alpha1::Type_MapType* temp = _impl_.type_kind_.map_type_; + _impl_.type_kind_.map_type_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Type::unsafe_arena_set_allocated_map_type(::google::api::expr::v1alpha1::Type_MapType* map_type) { + clear_type_kind(); + if (map_type) { + set_has_map_type(); + _impl_.type_kind_.map_type_ = map_type; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.map_type) +} +inline ::google::api::expr::v1alpha1::Type_MapType* Type::_internal_mutable_map_type() { + if (!_internal_has_map_type()) { + clear_type_kind(); + set_has_map_type(); + _impl_.type_kind_.map_type_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Type_MapType >(GetArenaForAllocation()); + } + return _impl_.type_kind_.map_type_; +} +inline ::google::api::expr::v1alpha1::Type_MapType* Type::mutable_map_type() { + ::google::api::expr::v1alpha1::Type_MapType* _msg = _internal_mutable_map_type(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.map_type) + return _msg; +} + +// .google.api.expr.v1alpha1.Type.FunctionType function = 8 [json_name = "function"]; +inline bool Type::_internal_has_function() const { + return type_kind_case() == kFunction; +} +inline bool Type::has_function() const { + return _internal_has_function(); +} +inline void Type::set_has_function() { + _impl_._oneof_case_[0] = kFunction; +} +inline void Type::clear_function() { + if (_internal_has_function()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_kind_.function_; + } + clear_has_type_kind(); + } +} +inline ::google::api::expr::v1alpha1::Type_FunctionType* Type::release_function() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.function) + if (_internal_has_function()) { + clear_has_type_kind(); + ::google::api::expr::v1alpha1::Type_FunctionType* temp = _impl_.type_kind_.function_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.type_kind_.function_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1alpha1::Type_FunctionType& Type::_internal_function() const { + return _internal_has_function() + ? *_impl_.type_kind_.function_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Type_FunctionType&>(::google::api::expr::v1alpha1::_Type_FunctionType_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Type_FunctionType& Type::function() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.function) + return _internal_function(); +} +inline ::google::api::expr::v1alpha1::Type_FunctionType* Type::unsafe_arena_release_function() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Type.function) + if (_internal_has_function()) { + clear_has_type_kind(); + ::google::api::expr::v1alpha1::Type_FunctionType* temp = _impl_.type_kind_.function_; + _impl_.type_kind_.function_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Type::unsafe_arena_set_allocated_function(::google::api::expr::v1alpha1::Type_FunctionType* function) { + clear_type_kind(); + if (function) { + set_has_function(); + _impl_.type_kind_.function_ = function; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.function) +} +inline ::google::api::expr::v1alpha1::Type_FunctionType* Type::_internal_mutable_function() { + if (!_internal_has_function()) { + clear_type_kind(); + set_has_function(); + _impl_.type_kind_.function_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Type_FunctionType >(GetArenaForAllocation()); + } + return _impl_.type_kind_.function_; +} +inline ::google::api::expr::v1alpha1::Type_FunctionType* Type::mutable_function() { + ::google::api::expr::v1alpha1::Type_FunctionType* _msg = _internal_mutable_function(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.function) + return _msg; +} + +// string message_type = 9 [json_name = "messageType"]; +inline bool Type::_internal_has_message_type() const { + return type_kind_case() == kMessageType; +} +inline bool Type::has_message_type() const { + return _internal_has_message_type(); +} +inline void Type::set_has_message_type() { + _impl_._oneof_case_[0] = kMessageType; +} +inline void Type::clear_message_type() { + if (_internal_has_message_type()) { + _impl_.type_kind_.message_type_.Destroy(); + clear_has_type_kind(); + } +} +inline const std::string& Type::message_type() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.message_type) + return _internal_message_type(); +} +template +inline void Type::set_message_type(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_message_type()) { + clear_type_kind(); + set_has_message_type(); + _impl_.type_kind_.message_type_.InitDefault(); + } + _impl_.type_kind_.message_type_.Set( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Type.message_type) +} +inline std::string* Type::mutable_message_type() { + std::string* _s = _internal_mutable_message_type(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.message_type) + return _s; +} +inline const std::string& Type::_internal_message_type() const { + if (_internal_has_message_type()) { + return _impl_.type_kind_.message_type_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void Type::_internal_set_message_type(const std::string& value) { + if (!_internal_has_message_type()) { + clear_type_kind(); + set_has_message_type(); + _impl_.type_kind_.message_type_.InitDefault(); + } + _impl_.type_kind_.message_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* Type::_internal_mutable_message_type() { + if (!_internal_has_message_type()) { + clear_type_kind(); + set_has_message_type(); + _impl_.type_kind_.message_type_.InitDefault(); + } + return _impl_.type_kind_.message_type_.Mutable( GetArenaForAllocation()); +} +inline std::string* Type::release_message_type() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.message_type) + if (_internal_has_message_type()) { + clear_has_type_kind(); + return _impl_.type_kind_.message_type_.Release(); + } else { + return nullptr; + } +} +inline void Type::set_allocated_message_type(std::string* message_type) { + if (has_type_kind()) { + clear_type_kind(); + } + if (message_type != nullptr) { + set_has_message_type(); + _impl_.type_kind_.message_type_.InitAllocated(message_type, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.message_type) +} + +// string type_param = 10 [json_name = "typeParam"]; +inline bool Type::_internal_has_type_param() const { + return type_kind_case() == kTypeParam; +} +inline bool Type::has_type_param() const { + return _internal_has_type_param(); +} +inline void Type::set_has_type_param() { + _impl_._oneof_case_[0] = kTypeParam; +} +inline void Type::clear_type_param() { + if (_internal_has_type_param()) { + _impl_.type_kind_.type_param_.Destroy(); + clear_has_type_kind(); + } +} +inline const std::string& Type::type_param() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.type_param) + return _internal_type_param(); +} +template +inline void Type::set_type_param(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_type_param()) { + clear_type_kind(); + set_has_type_param(); + _impl_.type_kind_.type_param_.InitDefault(); + } + _impl_.type_kind_.type_param_.Set( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Type.type_param) +} +inline std::string* Type::mutable_type_param() { + std::string* _s = _internal_mutable_type_param(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.type_param) + return _s; +} +inline const std::string& Type::_internal_type_param() const { + if (_internal_has_type_param()) { + return _impl_.type_kind_.type_param_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void Type::_internal_set_type_param(const std::string& value) { + if (!_internal_has_type_param()) { + clear_type_kind(); + set_has_type_param(); + _impl_.type_kind_.type_param_.InitDefault(); + } + _impl_.type_kind_.type_param_.Set(value, GetArenaForAllocation()); +} +inline std::string* Type::_internal_mutable_type_param() { + if (!_internal_has_type_param()) { + clear_type_kind(); + set_has_type_param(); + _impl_.type_kind_.type_param_.InitDefault(); + } + return _impl_.type_kind_.type_param_.Mutable( GetArenaForAllocation()); +} +inline std::string* Type::release_type_param() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.type_param) + if (_internal_has_type_param()) { + clear_has_type_kind(); + return _impl_.type_kind_.type_param_.Release(); + } else { + return nullptr; + } +} +inline void Type::set_allocated_type_param(std::string* type_param) { + if (has_type_kind()) { + clear_type_kind(); + } + if (type_param != nullptr) { + set_has_type_param(); + _impl_.type_kind_.type_param_.InitAllocated(type_param, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.type_param) +} + +// .google.api.expr.v1alpha1.Type type = 11 [json_name = "type"]; +inline bool Type::_internal_has_type() const { + return type_kind_case() == kType; +} +inline bool Type::has_type() const { + return _internal_has_type(); +} +inline void Type::set_has_type() { + _impl_._oneof_case_[0] = kType; +} +inline void Type::clear_type() { + if (_internal_has_type()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_kind_.type_; + } + clear_has_type_kind(); + } +} +inline ::google::api::expr::v1alpha1::Type* Type::release_type() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.type) + if (_internal_has_type()) { + clear_has_type_kind(); + ::google::api::expr::v1alpha1::Type* temp = _impl_.type_kind_.type_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.type_kind_.type_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1alpha1::Type& Type::_internal_type() const { + return _internal_has_type() + ? *_impl_.type_kind_.type_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Type&>(::google::api::expr::v1alpha1::_Type_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Type& Type::type() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.type) + return _internal_type(); +} +inline ::google::api::expr::v1alpha1::Type* Type::unsafe_arena_release_type() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Type.type) + if (_internal_has_type()) { + clear_has_type_kind(); + ::google::api::expr::v1alpha1::Type* temp = _impl_.type_kind_.type_; + _impl_.type_kind_.type_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Type::unsafe_arena_set_allocated_type(::google::api::expr::v1alpha1::Type* type) { + clear_type_kind(); + if (type) { + set_has_type(); + _impl_.type_kind_.type_ = type; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.type) +} +inline ::google::api::expr::v1alpha1::Type* Type::_internal_mutable_type() { + if (!_internal_has_type()) { + clear_type_kind(); + set_has_type(); + _impl_.type_kind_.type_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Type >(GetArenaForAllocation()); + } + return _impl_.type_kind_.type_; +} +inline ::google::api::expr::v1alpha1::Type* Type::mutable_type() { + ::google::api::expr::v1alpha1::Type* _msg = _internal_mutable_type(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.type) + return _msg; +} + +// .google.protobuf.Empty error = 12 [json_name = "error"]; +inline bool Type::_internal_has_error() const { + return type_kind_case() == kError; +} +inline bool Type::has_error() const { + return _internal_has_error(); +} +inline void Type::set_has_error() { + _impl_._oneof_case_[0] = kError; +} +inline ::PROTOBUF_NAMESPACE_ID::Empty* Type::release_error() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.error) + if (_internal_has_error()) { + clear_has_type_kind(); + ::PROTOBUF_NAMESPACE_ID::Empty* temp = _impl_.type_kind_.error_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.type_kind_.error_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::PROTOBUF_NAMESPACE_ID::Empty& Type::_internal_error() const { + return _internal_has_error() + ? *_impl_.type_kind_.error_ + : reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::Empty&>(::PROTOBUF_NAMESPACE_ID::_Empty_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Empty& Type::error() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.error) + return _internal_error(); +} +inline ::PROTOBUF_NAMESPACE_ID::Empty* Type::unsafe_arena_release_error() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Type.error) + if (_internal_has_error()) { + clear_has_type_kind(); + ::PROTOBUF_NAMESPACE_ID::Empty* temp = _impl_.type_kind_.error_; + _impl_.type_kind_.error_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Type::unsafe_arena_set_allocated_error(::PROTOBUF_NAMESPACE_ID::Empty* error) { + clear_type_kind(); + if (error) { + set_has_error(); + _impl_.type_kind_.error_ = error; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.error) +} +inline ::PROTOBUF_NAMESPACE_ID::Empty* Type::_internal_mutable_error() { + if (!_internal_has_error()) { + clear_type_kind(); + set_has_error(); + _impl_.type_kind_.error_ = CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Empty >(GetArenaForAllocation()); + } + return _impl_.type_kind_.error_; +} +inline ::PROTOBUF_NAMESPACE_ID::Empty* Type::mutable_error() { + ::PROTOBUF_NAMESPACE_ID::Empty* _msg = _internal_mutable_error(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.error) + return _msg; +} + +// .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14 [json_name = "abstractType"]; +inline bool Type::_internal_has_abstract_type() const { + return type_kind_case() == kAbstractType; +} +inline bool Type::has_abstract_type() const { + return _internal_has_abstract_type(); +} +inline void Type::set_has_abstract_type() { + _impl_._oneof_case_[0] = kAbstractType; +} +inline void Type::clear_abstract_type() { + if (_internal_has_abstract_type()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_kind_.abstract_type_; + } + clear_has_type_kind(); + } +} +inline ::google::api::expr::v1alpha1::Type_AbstractType* Type::release_abstract_type() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.abstract_type) + if (_internal_has_abstract_type()) { + clear_has_type_kind(); + ::google::api::expr::v1alpha1::Type_AbstractType* temp = _impl_.type_kind_.abstract_type_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.type_kind_.abstract_type_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1alpha1::Type_AbstractType& Type::_internal_abstract_type() const { + return _internal_has_abstract_type() + ? *_impl_.type_kind_.abstract_type_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Type_AbstractType&>(::google::api::expr::v1alpha1::_Type_AbstractType_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Type_AbstractType& Type::abstract_type() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.abstract_type) + return _internal_abstract_type(); +} +inline ::google::api::expr::v1alpha1::Type_AbstractType* Type::unsafe_arena_release_abstract_type() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Type.abstract_type) + if (_internal_has_abstract_type()) { + clear_has_type_kind(); + ::google::api::expr::v1alpha1::Type_AbstractType* temp = _impl_.type_kind_.abstract_type_; + _impl_.type_kind_.abstract_type_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Type::unsafe_arena_set_allocated_abstract_type(::google::api::expr::v1alpha1::Type_AbstractType* abstract_type) { + clear_type_kind(); + if (abstract_type) { + set_has_abstract_type(); + _impl_.type_kind_.abstract_type_ = abstract_type; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.abstract_type) +} +inline ::google::api::expr::v1alpha1::Type_AbstractType* Type::_internal_mutable_abstract_type() { + if (!_internal_has_abstract_type()) { + clear_type_kind(); + set_has_abstract_type(); + _impl_.type_kind_.abstract_type_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Type_AbstractType >(GetArenaForAllocation()); + } + return _impl_.type_kind_.abstract_type_; +} +inline ::google::api::expr::v1alpha1::Type_AbstractType* Type::mutable_abstract_type() { + ::google::api::expr::v1alpha1::Type_AbstractType* _msg = _internal_mutable_abstract_type(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.abstract_type) + return _msg; +} + +inline bool Type::has_type_kind() const { + return type_kind_case() != TYPE_KIND_NOT_SET; +} +inline void Type::clear_has_type_kind() { + _impl_._oneof_case_[0] = TYPE_KIND_NOT_SET; +} +inline Type::TypeKindCase Type::type_kind_case() const { + return Type::TypeKindCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// Decl_IdentDecl + +// .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"]; +inline bool Decl_IdentDecl::_internal_has_type() const { + return this != internal_default_instance() && _impl_.type_ != nullptr; +} +inline bool Decl_IdentDecl::has_type() const { + return _internal_has_type(); +} +inline void Decl_IdentDecl::clear_type() { + if (GetArenaForAllocation() == nullptr && _impl_.type_ != nullptr) { + delete _impl_.type_; + } + _impl_.type_ = nullptr; +} +inline const ::google::api::expr::v1alpha1::Type& Decl_IdentDecl::_internal_type() const { + const ::google::api::expr::v1alpha1::Type* p = _impl_.type_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Type_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Type& Decl_IdentDecl::type() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.IdentDecl.type) + return _internal_type(); +} +inline void Decl_IdentDecl::unsafe_arena_set_allocated_type( + ::google::api::expr::v1alpha1::Type* type) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.type_); + } + _impl_.type_ = type; + if (type) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Decl.IdentDecl.type) +} +inline ::google::api::expr::v1alpha1::Type* Decl_IdentDecl::release_type() { + + ::google::api::expr::v1alpha1::Type* temp = _impl_.type_; + _impl_.type_ = 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 ::google::api::expr::v1alpha1::Type* Decl_IdentDecl::unsafe_arena_release_type() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Decl.IdentDecl.type) + + ::google::api::expr::v1alpha1::Type* temp = _impl_.type_; + _impl_.type_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::Type* Decl_IdentDecl::_internal_mutable_type() { + + if (_impl_.type_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(GetArenaForAllocation()); + _impl_.type_ = p; + } + return _impl_.type_; +} +inline ::google::api::expr::v1alpha1::Type* Decl_IdentDecl::mutable_type() { + ::google::api::expr::v1alpha1::Type* _msg = _internal_mutable_type(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.IdentDecl.type) + return _msg; +} +inline void Decl_IdentDecl::set_allocated_type(::google::api::expr::v1alpha1::Type* type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.type_; + } + if (type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(type); + if (message_arena != submessage_arena) { + type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, type, submessage_arena); + } + + } else { + + } + _impl_.type_ = type; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Decl.IdentDecl.type) +} + +// .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"]; +inline bool Decl_IdentDecl::_internal_has_value() const { + return this != internal_default_instance() && _impl_.value_ != nullptr; +} +inline bool Decl_IdentDecl::has_value() const { + return _internal_has_value(); +} +inline const ::google::api::expr::v1alpha1::Constant& Decl_IdentDecl::_internal_value() const { + const ::google::api::expr::v1alpha1::Constant* p = _impl_.value_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Constant_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Constant& Decl_IdentDecl::value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.IdentDecl.value) + return _internal_value(); +} +inline void Decl_IdentDecl::unsafe_arena_set_allocated_value( + ::google::api::expr::v1alpha1::Constant* value) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.value_); + } + _impl_.value_ = value; + if (value) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Decl.IdentDecl.value) +} +inline ::google::api::expr::v1alpha1::Constant* Decl_IdentDecl::release_value() { + + ::google::api::expr::v1alpha1::Constant* temp = _impl_.value_; + _impl_.value_ = 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 ::google::api::expr::v1alpha1::Constant* Decl_IdentDecl::unsafe_arena_release_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Decl.IdentDecl.value) + + ::google::api::expr::v1alpha1::Constant* temp = _impl_.value_; + _impl_.value_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::Constant* Decl_IdentDecl::_internal_mutable_value() { + + if (_impl_.value_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Constant>(GetArenaForAllocation()); + _impl_.value_ = p; + } + return _impl_.value_; +} +inline ::google::api::expr::v1alpha1::Constant* Decl_IdentDecl::mutable_value() { + ::google::api::expr::v1alpha1::Constant* _msg = _internal_mutable_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.IdentDecl.value) + return _msg; +} +inline void Decl_IdentDecl::set_allocated_value(::google::api::expr::v1alpha1::Constant* value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.value_); + } + if (value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value)); + if (message_arena != submessage_arena) { + value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + + } else { + + } + _impl_.value_ = value; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Decl.IdentDecl.value) +} + +// string doc = 3 [json_name = "doc"]; +inline void Decl_IdentDecl::clear_doc() { + _impl_.doc_.ClearToEmpty(); +} +inline const std::string& Decl_IdentDecl::doc() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.IdentDecl.doc) + return _internal_doc(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Decl_IdentDecl::set_doc(ArgT0&& arg0, ArgT... args) { + + _impl_.doc_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Decl.IdentDecl.doc) +} +inline std::string* Decl_IdentDecl::mutable_doc() { + std::string* _s = _internal_mutable_doc(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.IdentDecl.doc) + return _s; +} +inline const std::string& Decl_IdentDecl::_internal_doc() const { + return _impl_.doc_.Get(); +} +inline void Decl_IdentDecl::_internal_set_doc(const std::string& value) { + + _impl_.doc_.Set(value, GetArenaForAllocation()); +} +inline std::string* Decl_IdentDecl::_internal_mutable_doc() { + + return _impl_.doc_.Mutable(GetArenaForAllocation()); +} +inline std::string* Decl_IdentDecl::release_doc() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Decl.IdentDecl.doc) + return _impl_.doc_.Release(); +} +inline void Decl_IdentDecl::set_allocated_doc(std::string* doc) { + if (doc != nullptr) { + + } else { + + } + _impl_.doc_.SetAllocated(doc, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.doc_.IsDefault()) { + _impl_.doc_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Decl.IdentDecl.doc) +} + +// ------------------------------------------------------------------- + +// Decl_FunctionDecl_Overload + +// string overload_id = 1 [json_name = "overloadId"]; +inline void Decl_FunctionDecl_Overload::clear_overload_id() { + _impl_.overload_id_.ClearToEmpty(); +} +inline const std::string& Decl_FunctionDecl_Overload::overload_id() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.overload_id) + return _internal_overload_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Decl_FunctionDecl_Overload::set_overload_id(ArgT0&& arg0, ArgT... args) { + + _impl_.overload_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.overload_id) +} +inline std::string* Decl_FunctionDecl_Overload::mutable_overload_id() { + std::string* _s = _internal_mutable_overload_id(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.overload_id) + return _s; +} +inline const std::string& Decl_FunctionDecl_Overload::_internal_overload_id() const { + return _impl_.overload_id_.Get(); +} +inline void Decl_FunctionDecl_Overload::_internal_set_overload_id(const std::string& value) { + + _impl_.overload_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* Decl_FunctionDecl_Overload::_internal_mutable_overload_id() { + + return _impl_.overload_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* Decl_FunctionDecl_Overload::release_overload_id() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.overload_id) + return _impl_.overload_id_.Release(); +} +inline void Decl_FunctionDecl_Overload::set_allocated_overload_id(std::string* overload_id) { + if (overload_id != nullptr) { + + } else { + + } + _impl_.overload_id_.SetAllocated(overload_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.overload_id_.IsDefault()) { + _impl_.overload_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.overload_id) +} + +// repeated .google.api.expr.v1alpha1.Type params = 2 [json_name = "params"]; +inline int Decl_FunctionDecl_Overload::_internal_params_size() const { + return _impl_.params_.size(); +} +inline int Decl_FunctionDecl_Overload::params_size() const { + return _internal_params_size(); +} +inline void Decl_FunctionDecl_Overload::clear_params() { + _impl_.params_.Clear(); +} +inline ::google::api::expr::v1alpha1::Type* Decl_FunctionDecl_Overload::mutable_params(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.params) + return _impl_.params_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >* +Decl_FunctionDecl_Overload::mutable_params() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.params) + return &_impl_.params_; +} +inline const ::google::api::expr::v1alpha1::Type& Decl_FunctionDecl_Overload::_internal_params(int index) const { + return _impl_.params_.Get(index); +} +inline const ::google::api::expr::v1alpha1::Type& Decl_FunctionDecl_Overload::params(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.params) + return _internal_params(index); +} +inline ::google::api::expr::v1alpha1::Type* Decl_FunctionDecl_Overload::_internal_add_params() { + return _impl_.params_.Add(); +} +inline ::google::api::expr::v1alpha1::Type* Decl_FunctionDecl_Overload::add_params() { + ::google::api::expr::v1alpha1::Type* _add = _internal_add_params(); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.params) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >& +Decl_FunctionDecl_Overload::params() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.params) + return _impl_.params_; +} + +// repeated string type_params = 3 [json_name = "typeParams"]; +inline int Decl_FunctionDecl_Overload::_internal_type_params_size() const { + return _impl_.type_params_.size(); +} +inline int Decl_FunctionDecl_Overload::type_params_size() const { + return _internal_type_params_size(); +} +inline void Decl_FunctionDecl_Overload::clear_type_params() { + _impl_.type_params_.Clear(); +} +inline std::string* Decl_FunctionDecl_Overload::add_type_params() { + std::string* _s = _internal_add_type_params(); + // @@protoc_insertion_point(field_add_mutable:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) + return _s; +} +inline const std::string& Decl_FunctionDecl_Overload::_internal_type_params(int index) const { + return _impl_.type_params_.Get(index); +} +inline const std::string& Decl_FunctionDecl_Overload::type_params(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) + return _internal_type_params(index); +} +inline std::string* Decl_FunctionDecl_Overload::mutable_type_params(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) + return _impl_.type_params_.Mutable(index); +} +inline void Decl_FunctionDecl_Overload::set_type_params(int index, const std::string& value) { + _impl_.type_params_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) +} +inline void Decl_FunctionDecl_Overload::set_type_params(int index, std::string&& value) { + _impl_.type_params_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) +} +inline void Decl_FunctionDecl_Overload::set_type_params(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.type_params_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) +} +inline void Decl_FunctionDecl_Overload::set_type_params(int index, const char* value, size_t size) { + _impl_.type_params_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) +} +inline std::string* Decl_FunctionDecl_Overload::_internal_add_type_params() { + return _impl_.type_params_.Add(); +} +inline void Decl_FunctionDecl_Overload::add_type_params(const std::string& value) { + _impl_.type_params_.Add()->assign(value); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) +} +inline void Decl_FunctionDecl_Overload::add_type_params(std::string&& value) { + _impl_.type_params_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) +} +inline void Decl_FunctionDecl_Overload::add_type_params(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.type_params_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) +} +inline void Decl_FunctionDecl_Overload::add_type_params(const char* value, size_t size) { + _impl_.type_params_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +Decl_FunctionDecl_Overload::type_params() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) + return _impl_.type_params_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +Decl_FunctionDecl_Overload::mutable_type_params() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) + return &_impl_.type_params_; +} + +// .google.api.expr.v1alpha1.Type result_type = 4 [json_name = "resultType"]; +inline bool Decl_FunctionDecl_Overload::_internal_has_result_type() const { + return this != internal_default_instance() && _impl_.result_type_ != nullptr; +} +inline bool Decl_FunctionDecl_Overload::has_result_type() const { + return _internal_has_result_type(); +} +inline void Decl_FunctionDecl_Overload::clear_result_type() { + if (GetArenaForAllocation() == nullptr && _impl_.result_type_ != nullptr) { + delete _impl_.result_type_; + } + _impl_.result_type_ = nullptr; +} +inline const ::google::api::expr::v1alpha1::Type& Decl_FunctionDecl_Overload::_internal_result_type() const { + const ::google::api::expr::v1alpha1::Type* p = _impl_.result_type_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Type_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Type& Decl_FunctionDecl_Overload::result_type() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.result_type) + return _internal_result_type(); +} +inline void Decl_FunctionDecl_Overload::unsafe_arena_set_allocated_result_type( + ::google::api::expr::v1alpha1::Type* result_type) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.result_type_); + } + _impl_.result_type_ = result_type; + if (result_type) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.result_type) +} +inline ::google::api::expr::v1alpha1::Type* Decl_FunctionDecl_Overload::release_result_type() { + + ::google::api::expr::v1alpha1::Type* temp = _impl_.result_type_; + _impl_.result_type_ = 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 ::google::api::expr::v1alpha1::Type* Decl_FunctionDecl_Overload::unsafe_arena_release_result_type() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.result_type) + + ::google::api::expr::v1alpha1::Type* temp = _impl_.result_type_; + _impl_.result_type_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::Type* Decl_FunctionDecl_Overload::_internal_mutable_result_type() { + + if (_impl_.result_type_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(GetArenaForAllocation()); + _impl_.result_type_ = p; + } + return _impl_.result_type_; +} +inline ::google::api::expr::v1alpha1::Type* Decl_FunctionDecl_Overload::mutable_result_type() { + ::google::api::expr::v1alpha1::Type* _msg = _internal_mutable_result_type(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.result_type) + return _msg; +} +inline void Decl_FunctionDecl_Overload::set_allocated_result_type(::google::api::expr::v1alpha1::Type* result_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.result_type_; + } + if (result_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(result_type); + if (message_arena != submessage_arena) { + result_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, result_type, submessage_arena); + } + + } else { + + } + _impl_.result_type_ = result_type; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.result_type) +} + +// bool is_instance_function = 5 [json_name = "isInstanceFunction"]; +inline void Decl_FunctionDecl_Overload::clear_is_instance_function() { + _impl_.is_instance_function_ = false; +} +inline bool Decl_FunctionDecl_Overload::_internal_is_instance_function() const { + return _impl_.is_instance_function_; +} +inline bool Decl_FunctionDecl_Overload::is_instance_function() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.is_instance_function) + return _internal_is_instance_function(); +} +inline void Decl_FunctionDecl_Overload::_internal_set_is_instance_function(bool value) { + + _impl_.is_instance_function_ = value; +} +inline void Decl_FunctionDecl_Overload::set_is_instance_function(bool value) { + _internal_set_is_instance_function(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.is_instance_function) +} + +// string doc = 6 [json_name = "doc"]; +inline void Decl_FunctionDecl_Overload::clear_doc() { + _impl_.doc_.ClearToEmpty(); +} +inline const std::string& Decl_FunctionDecl_Overload::doc() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.doc) + return _internal_doc(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Decl_FunctionDecl_Overload::set_doc(ArgT0&& arg0, ArgT... args) { + + _impl_.doc_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.doc) +} +inline std::string* Decl_FunctionDecl_Overload::mutable_doc() { + std::string* _s = _internal_mutable_doc(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.doc) + return _s; +} +inline const std::string& Decl_FunctionDecl_Overload::_internal_doc() const { + return _impl_.doc_.Get(); +} +inline void Decl_FunctionDecl_Overload::_internal_set_doc(const std::string& value) { + + _impl_.doc_.Set(value, GetArenaForAllocation()); +} +inline std::string* Decl_FunctionDecl_Overload::_internal_mutable_doc() { + + return _impl_.doc_.Mutable(GetArenaForAllocation()); +} +inline std::string* Decl_FunctionDecl_Overload::release_doc() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.doc) + return _impl_.doc_.Release(); +} +inline void Decl_FunctionDecl_Overload::set_allocated_doc(std::string* doc) { + if (doc != nullptr) { + + } else { + + } + _impl_.doc_.SetAllocated(doc, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.doc_.IsDefault()) { + _impl_.doc_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.doc) +} + +// ------------------------------------------------------------------- + +// Decl_FunctionDecl + +// repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"]; +inline int Decl_FunctionDecl::_internal_overloads_size() const { + return _impl_.overloads_.size(); +} +inline int Decl_FunctionDecl::overloads_size() const { + return _internal_overloads_size(); +} +inline void Decl_FunctionDecl::clear_overloads() { + _impl_.overloads_.Clear(); +} +inline ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload* Decl_FunctionDecl::mutable_overloads(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.FunctionDecl.overloads) + return _impl_.overloads_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload >* +Decl_FunctionDecl::mutable_overloads() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Decl.FunctionDecl.overloads) + return &_impl_.overloads_; +} +inline const ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload& Decl_FunctionDecl::_internal_overloads(int index) const { + return _impl_.overloads_.Get(index); +} +inline const ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload& Decl_FunctionDecl::overloads(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.FunctionDecl.overloads) + return _internal_overloads(index); +} +inline ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload* Decl_FunctionDecl::_internal_add_overloads() { + return _impl_.overloads_.Add(); +} +inline ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload* Decl_FunctionDecl::add_overloads() { + ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload* _add = _internal_add_overloads(); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Decl.FunctionDecl.overloads) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload >& +Decl_FunctionDecl::overloads() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Decl.FunctionDecl.overloads) + return _impl_.overloads_; +} + +// ------------------------------------------------------------------- + +// Decl + +// string name = 1 [json_name = "name"]; +inline void Decl::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& Decl::name() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Decl::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Decl.name) +} +inline std::string* Decl::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.name) + return _s; +} +inline const std::string& Decl::_internal_name() const { + return _impl_.name_.Get(); +} +inline void Decl::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Decl::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* Decl::release_name() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Decl.name) + return _impl_.name_.Release(); +} +inline void Decl::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Decl.name) +} + +// .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"]; +inline bool Decl::_internal_has_ident() const { + return decl_kind_case() == kIdent; +} +inline bool Decl::has_ident() const { + return _internal_has_ident(); +} +inline void Decl::set_has_ident() { + _impl_._oneof_case_[0] = kIdent; +} +inline void Decl::clear_ident() { + if (_internal_has_ident()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.decl_kind_.ident_; + } + clear_has_decl_kind(); + } +} +inline ::google::api::expr::v1alpha1::Decl_IdentDecl* Decl::release_ident() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Decl.ident) + if (_internal_has_ident()) { + clear_has_decl_kind(); + ::google::api::expr::v1alpha1::Decl_IdentDecl* temp = _impl_.decl_kind_.ident_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.decl_kind_.ident_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1alpha1::Decl_IdentDecl& Decl::_internal_ident() const { + return _internal_has_ident() + ? *_impl_.decl_kind_.ident_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Decl_IdentDecl&>(::google::api::expr::v1alpha1::_Decl_IdentDecl_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Decl_IdentDecl& Decl::ident() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.ident) + return _internal_ident(); +} +inline ::google::api::expr::v1alpha1::Decl_IdentDecl* Decl::unsafe_arena_release_ident() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Decl.ident) + if (_internal_has_ident()) { + clear_has_decl_kind(); + ::google::api::expr::v1alpha1::Decl_IdentDecl* temp = _impl_.decl_kind_.ident_; + _impl_.decl_kind_.ident_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Decl::unsafe_arena_set_allocated_ident(::google::api::expr::v1alpha1::Decl_IdentDecl* ident) { + clear_decl_kind(); + if (ident) { + set_has_ident(); + _impl_.decl_kind_.ident_ = ident; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Decl.ident) +} +inline ::google::api::expr::v1alpha1::Decl_IdentDecl* Decl::_internal_mutable_ident() { + if (!_internal_has_ident()) { + clear_decl_kind(); + set_has_ident(); + _impl_.decl_kind_.ident_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Decl_IdentDecl >(GetArenaForAllocation()); + } + return _impl_.decl_kind_.ident_; +} +inline ::google::api::expr::v1alpha1::Decl_IdentDecl* Decl::mutable_ident() { + ::google::api::expr::v1alpha1::Decl_IdentDecl* _msg = _internal_mutable_ident(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.ident) + return _msg; +} + +// .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"]; +inline bool Decl::_internal_has_function() const { + return decl_kind_case() == kFunction; +} +inline bool Decl::has_function() const { + return _internal_has_function(); +} +inline void Decl::set_has_function() { + _impl_._oneof_case_[0] = kFunction; +} +inline void Decl::clear_function() { + if (_internal_has_function()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.decl_kind_.function_; + } + clear_has_decl_kind(); + } +} +inline ::google::api::expr::v1alpha1::Decl_FunctionDecl* Decl::release_function() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Decl.function) + if (_internal_has_function()) { + clear_has_decl_kind(); + ::google::api::expr::v1alpha1::Decl_FunctionDecl* temp = _impl_.decl_kind_.function_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.decl_kind_.function_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1alpha1::Decl_FunctionDecl& Decl::_internal_function() const { + return _internal_has_function() + ? *_impl_.decl_kind_.function_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Decl_FunctionDecl&>(::google::api::expr::v1alpha1::_Decl_FunctionDecl_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Decl_FunctionDecl& Decl::function() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.function) + return _internal_function(); +} +inline ::google::api::expr::v1alpha1::Decl_FunctionDecl* Decl::unsafe_arena_release_function() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Decl.function) + if (_internal_has_function()) { + clear_has_decl_kind(); + ::google::api::expr::v1alpha1::Decl_FunctionDecl* temp = _impl_.decl_kind_.function_; + _impl_.decl_kind_.function_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Decl::unsafe_arena_set_allocated_function(::google::api::expr::v1alpha1::Decl_FunctionDecl* function) { + clear_decl_kind(); + if (function) { + set_has_function(); + _impl_.decl_kind_.function_ = function; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Decl.function) +} +inline ::google::api::expr::v1alpha1::Decl_FunctionDecl* Decl::_internal_mutable_function() { + if (!_internal_has_function()) { + clear_decl_kind(); + set_has_function(); + _impl_.decl_kind_.function_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Decl_FunctionDecl >(GetArenaForAllocation()); + } + return _impl_.decl_kind_.function_; +} +inline ::google::api::expr::v1alpha1::Decl_FunctionDecl* Decl::mutable_function() { + ::google::api::expr::v1alpha1::Decl_FunctionDecl* _msg = _internal_mutable_function(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.function) + return _msg; +} + +inline bool Decl::has_decl_kind() const { + return decl_kind_case() != DECL_KIND_NOT_SET; +} +inline void Decl::clear_has_decl_kind() { + _impl_._oneof_case_[0] = DECL_KIND_NOT_SET; +} +inline Decl::DeclKindCase Decl::decl_kind_case() const { + return Decl::DeclKindCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// Reference + +// string name = 1 [json_name = "name"]; +inline void Reference::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& Reference::name() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Reference.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Reference::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Reference.name) +} +inline std::string* Reference::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Reference.name) + return _s; +} +inline const std::string& Reference::_internal_name() const { + return _impl_.name_.Get(); +} +inline void Reference::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Reference::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* Reference::release_name() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Reference.name) + return _impl_.name_.Release(); +} +inline void Reference::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Reference.name) +} + +// repeated string overload_id = 3 [json_name = "overloadId"]; +inline int Reference::_internal_overload_id_size() const { + return _impl_.overload_id_.size(); +} +inline int Reference::overload_id_size() const { + return _internal_overload_id_size(); +} +inline void Reference::clear_overload_id() { + _impl_.overload_id_.Clear(); +} +inline std::string* Reference::add_overload_id() { + std::string* _s = _internal_add_overload_id(); + // @@protoc_insertion_point(field_add_mutable:google.api.expr.v1alpha1.Reference.overload_id) + return _s; +} +inline const std::string& Reference::_internal_overload_id(int index) const { + return _impl_.overload_id_.Get(index); +} +inline const std::string& Reference::overload_id(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Reference.overload_id) + return _internal_overload_id(index); +} +inline std::string* Reference::mutable_overload_id(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Reference.overload_id) + return _impl_.overload_id_.Mutable(index); +} +inline void Reference::set_overload_id(int index, const std::string& value) { + _impl_.overload_id_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Reference.overload_id) +} +inline void Reference::set_overload_id(int index, std::string&& value) { + _impl_.overload_id_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Reference.overload_id) +} +inline void Reference::set_overload_id(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.overload_id_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:google.api.expr.v1alpha1.Reference.overload_id) +} +inline void Reference::set_overload_id(int index, const char* value, size_t size) { + _impl_.overload_id_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:google.api.expr.v1alpha1.Reference.overload_id) +} +inline std::string* Reference::_internal_add_overload_id() { + return _impl_.overload_id_.Add(); +} +inline void Reference::add_overload_id(const std::string& value) { + _impl_.overload_id_.Add()->assign(value); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Reference.overload_id) +} +inline void Reference::add_overload_id(std::string&& value) { + _impl_.overload_id_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Reference.overload_id) +} +inline void Reference::add_overload_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.overload_id_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:google.api.expr.v1alpha1.Reference.overload_id) +} +inline void Reference::add_overload_id(const char* value, size_t size) { + _impl_.overload_id_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:google.api.expr.v1alpha1.Reference.overload_id) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +Reference::overload_id() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Reference.overload_id) + return _impl_.overload_id_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +Reference::mutable_overload_id() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Reference.overload_id) + return &_impl_.overload_id_; +} + +// .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"]; +inline bool Reference::_internal_has_value() const { + return this != internal_default_instance() && _impl_.value_ != nullptr; +} +inline bool Reference::has_value() const { + return _internal_has_value(); +} +inline const ::google::api::expr::v1alpha1::Constant& Reference::_internal_value() const { + const ::google::api::expr::v1alpha1::Constant* p = _impl_.value_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Constant_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Constant& Reference::value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Reference.value) + return _internal_value(); +} +inline void Reference::unsafe_arena_set_allocated_value( + ::google::api::expr::v1alpha1::Constant* value) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.value_); + } + _impl_.value_ = value; + if (value) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Reference.value) +} +inline ::google::api::expr::v1alpha1::Constant* Reference::release_value() { + + ::google::api::expr::v1alpha1::Constant* temp = _impl_.value_; + _impl_.value_ = 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 ::google::api::expr::v1alpha1::Constant* Reference::unsafe_arena_release_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Reference.value) + + ::google::api::expr::v1alpha1::Constant* temp = _impl_.value_; + _impl_.value_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::Constant* Reference::_internal_mutable_value() { + + if (_impl_.value_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Constant>(GetArenaForAllocation()); + _impl_.value_ = p; + } + return _impl_.value_; +} +inline ::google::api::expr::v1alpha1::Constant* Reference::mutable_value() { + ::google::api::expr::v1alpha1::Constant* _msg = _internal_mutable_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Reference.value) + return _msg; +} +inline void Reference::set_allocated_value(::google::api::expr::v1alpha1::Constant* value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.value_); + } + if (value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value)); + if (message_arena != submessage_arena) { + value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + + } else { + + } + _impl_.value_ = value; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Reference.value) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google + +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::google::api::expr::v1alpha1::Type_PrimitiveType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::google::api::expr::v1alpha1::Type_PrimitiveType>() { + return ::google::api::expr::v1alpha1::Type_PrimitiveType_descriptor(); +} +template <> struct is_proto_enum< ::google::api::expr::v1alpha1::Type_WellKnownType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::google::api::expr::v1alpha1::Type_WellKnownType>() { + return ::google::api::expr::v1alpha1::Type_WellKnownType_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto diff --git a/src/gen/google/api/expr/v1alpha1/eval.grpc.pb.cc b/src/gen/google/api/expr/v1alpha1/eval.grpc.pb.cc new file mode 100644 index 000000000..d43111af7 --- /dev/null +++ b/src/gen/google/api/expr/v1alpha1/eval.grpc.pb.cc @@ -0,0 +1,31 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/expr/v1alpha1/eval.proto + +#include "google/api/expr/v1alpha1/eval.pb.h" +#include "google/api/expr/v1alpha1/eval.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { + +} // namespace google +} // namespace api +} // namespace expr +} // namespace v1alpha1 + diff --git a/src/gen/google/api/expr/v1alpha1/eval.grpc.pb.h b/src/gen/google/api/expr/v1alpha1/eval.grpc.pb.h new file mode 100644 index 000000000..edb027f56 --- /dev/null +++ b/src/gen/google/api/expr/v1alpha1/eval.grpc.pb.h @@ -0,0 +1,54 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/expr/v1alpha1/eval.proto +// Original file comments: +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto__INCLUDED +#define GRPC_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto__INCLUDED + +#include "google/api/expr/v1alpha1/eval.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { + +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google + + +#endif // GRPC_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto__INCLUDED diff --git a/src/gen/google/api/expr/v1alpha1/eval.pb.cc b/src/gen/google/api/expr/v1alpha1/eval.pb.cc new file mode 100644 index 000000000..5fc89d69a --- /dev/null +++ b/src/gen/google/api/expr/v1alpha1/eval.pb.cc @@ -0,0 +1,1419 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/expr/v1alpha1/eval.proto + +#include "google/api/expr/v1alpha1/eval.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { +PROTOBUF_CONSTEXPR EvalState_Result::EvalState_Result( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.expr_)*/int64_t{0} + , /*decltype(_impl_.value_)*/int64_t{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct EvalState_ResultDefaultTypeInternal { + PROTOBUF_CONSTEXPR EvalState_ResultDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EvalState_ResultDefaultTypeInternal() {} + union { + EvalState_Result _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EvalState_ResultDefaultTypeInternal _EvalState_Result_default_instance_; +PROTOBUF_CONSTEXPR EvalState::EvalState( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.values_)*/{} + , /*decltype(_impl_.results_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct EvalStateDefaultTypeInternal { + PROTOBUF_CONSTEXPR EvalStateDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EvalStateDefaultTypeInternal() {} + union { + EvalState _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EvalStateDefaultTypeInternal _EvalState_default_instance_; +PROTOBUF_CONSTEXPR ExprValue::ExprValue( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.kind_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct ExprValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR ExprValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ExprValueDefaultTypeInternal() {} + union { + ExprValue _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExprValueDefaultTypeInternal _ExprValue_default_instance_; +PROTOBUF_CONSTEXPR ErrorSet::ErrorSet( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.errors_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ErrorSetDefaultTypeInternal { + PROTOBUF_CONSTEXPR ErrorSetDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ErrorSetDefaultTypeInternal() {} + union { + ErrorSet _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ErrorSetDefaultTypeInternal _ErrorSet_default_instance_; +PROTOBUF_CONSTEXPR UnknownSet::UnknownSet( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.exprs_)*/{} + , /*decltype(_impl_._exprs_cached_byte_size_)*/{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct UnknownSetDefaultTypeInternal { + PROTOBUF_CONSTEXPR UnknownSetDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UnknownSetDefaultTypeInternal() {} + union { + UnknownSet _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnknownSetDefaultTypeInternal _UnknownSet_default_instance_; +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google +static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto[5]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EvalState_Result, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EvalState_Result, _impl_.expr_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EvalState_Result, _impl_.value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EvalState, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EvalState, _impl_.values_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EvalState, _impl_.results_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ExprValue, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ExprValue, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ExprValue, _impl_.kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ErrorSet, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ErrorSet, _impl_.errors_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::UnknownSet, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::UnknownSet, _impl_.exprs_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::expr::v1alpha1::EvalState_Result)}, + { 8, -1, -1, sizeof(::google::api::expr::v1alpha1::EvalState)}, + { 16, -1, -1, sizeof(::google::api::expr::v1alpha1::ExprValue)}, + { 26, -1, -1, sizeof(::google::api::expr::v1alpha1::ErrorSet)}, + { 33, -1, -1, sizeof(::google::api::expr::v1alpha1::UnknownSet)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::google::api::expr::v1alpha1::_EvalState_Result_default_instance_._instance, + &::google::api::expr::v1alpha1::_EvalState_default_instance_._instance, + &::google::api::expr::v1alpha1::_ExprValue_default_instance_._instance, + &::google::api::expr::v1alpha1::_ErrorSet_default_instance_._instance, + &::google::api::expr::v1alpha1::_UnknownSet_default_instance_._instance, +}; + +const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n#google/api/expr/v1alpha1/eval.proto\022\030g" + "oogle.api.expr.v1alpha1\032$google/api/expr" + "/v1alpha1/value.proto\032\027google/rpc/status" + ".proto\"\302\001\n\tEvalState\022;\n\006values\030\001 \003(\0132#.g" + "oogle.api.expr.v1alpha1.ExprValueR\006value" + "s\022D\n\007results\030\003 \003(\0132*.google.api.expr.v1a" + "lpha1.EvalState.ResultR\007results\0322\n\006Resul" + "t\022\022\n\004expr\030\001 \001(\003R\004expr\022\024\n\005value\030\002 \001(\003R\005va" + "lue\"\312\001\n\tExprValue\0227\n\005value\030\001 \001(\0132\037.googl" + "e.api.expr.v1alpha1.ValueH\000R\005value\022:\n\005er" + "ror\030\002 \001(\0132\".google.api.expr.v1alpha1.Err" + "orSetH\000R\005error\022@\n\007unknown\030\003 \001(\0132$.google" + ".api.expr.v1alpha1.UnknownSetH\000R\007unknown" + "B\006\n\004kind\"6\n\010ErrorSet\022*\n\006errors\030\001 \003(\0132\022.g" + "oogle.rpc.StatusR\006errors\"\"\n\nUnknownSet\022\024" + "\n\005exprs\030\001 \003(\003R\005exprsBl\n\034com.google.api.e" + "xpr.v1alpha1B\tEvalProtoP\001Z(from._internal_metadata_); + ::memcpy(&_impl_.expr_, &from._impl_.expr_, + static_cast(reinterpret_cast(&_impl_.value_) - + reinterpret_cast(&_impl_.expr_)) + sizeof(_impl_.value_)); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.EvalState.Result) +} + +inline void EvalState_Result::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.expr_){int64_t{0}} + , decltype(_impl_.value_){int64_t{0}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +EvalState_Result::~EvalState_Result() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.EvalState.Result) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void EvalState_Result::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void EvalState_Result::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void EvalState_Result::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.EvalState.Result) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.expr_, 0, static_cast( + reinterpret_cast(&_impl_.value_) - + reinterpret_cast(&_impl_.expr_)) + sizeof(_impl_.value_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EvalState_Result::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int64 expr = 1 [json_name = "expr"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.expr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 value = 2 [json_name = "value"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* EvalState_Result::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.EvalState.Result) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int64 expr = 1 [json_name = "expr"]; + if (this->_internal_expr() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_expr(), target); + } + + // int64 value = 2 [json_name = "value"]; + if (this->_internal_value() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_value(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.EvalState.Result) + return target; +} + +size_t EvalState_Result::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.EvalState.Result) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 expr = 1 [json_name = "expr"]; + if (this->_internal_expr() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_expr()); + } + + // int64 value = 2 [json_name = "value"]; + if (this->_internal_value() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_value()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EvalState_Result::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + EvalState_Result::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EvalState_Result::GetClassData() const { return &_class_data_; } + + +void EvalState_Result::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.EvalState.Result) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_expr() != 0) { + _this->_internal_set_expr(from._internal_expr()); + } + if (from._internal_value() != 0) { + _this->_internal_set_value(from._internal_value()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void EvalState_Result::CopyFrom(const EvalState_Result& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.EvalState.Result) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EvalState_Result::IsInitialized() const { + return true; +} + +void EvalState_Result::InternalSwap(EvalState_Result* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(EvalState_Result, _impl_.value_) + + sizeof(EvalState_Result::_impl_.value_) + - PROTOBUF_FIELD_OFFSET(EvalState_Result, _impl_.expr_)>( + reinterpret_cast(&_impl_.expr_), + reinterpret_cast(&other->_impl_.expr_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata EvalState_Result::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto[0]); +} + +// =================================================================== + +class EvalState::_Internal { + public: +}; + +EvalState::EvalState(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.EvalState) +} +EvalState::EvalState(const EvalState& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + EvalState* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.values_){from._impl_.values_} + , decltype(_impl_.results_){from._impl_.results_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.EvalState) +} + +inline void EvalState::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.values_){arena} + , decltype(_impl_.results_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +EvalState::~EvalState() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.EvalState) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void EvalState::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.values_.~RepeatedPtrField(); + _impl_.results_.~RepeatedPtrField(); +} + +void EvalState::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void EvalState::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.EvalState) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.values_.Clear(); + _impl_.results_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EvalState::_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) { + // repeated .google.api.expr.v1alpha1.ExprValue values = 1 [json_name = "values"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_values(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1alpha1.EvalState.Result results = 3 [json_name = "results"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_results(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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* EvalState::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.EvalState) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.api.expr.v1alpha1.ExprValue values = 1 [json_name = "values"]; + for (unsigned i = 0, + n = static_cast(this->_internal_values_size()); i < n; i++) { + const auto& repfield = this->_internal_values(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + // repeated .google.api.expr.v1alpha1.EvalState.Result results = 3 [json_name = "results"]; + for (unsigned i = 0, + n = static_cast(this->_internal_results_size()); i < n; i++) { + const auto& repfield = this->_internal_results(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.EvalState) + return target; +} + +size_t EvalState::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.EvalState) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.expr.v1alpha1.ExprValue values = 1 [json_name = "values"]; + total_size += 1UL * this->_internal_values_size(); + for (const auto& msg : this->_impl_.values_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated .google.api.expr.v1alpha1.EvalState.Result results = 3 [json_name = "results"]; + total_size += 1UL * this->_internal_results_size(); + for (const auto& msg : this->_impl_.results_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EvalState::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + EvalState::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EvalState::GetClassData() const { return &_class_data_; } + + +void EvalState::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.EvalState) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.values_.MergeFrom(from._impl_.values_); + _this->_impl_.results_.MergeFrom(from._impl_.results_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void EvalState::CopyFrom(const EvalState& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.EvalState) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EvalState::IsInitialized() const { + return true; +} + +void EvalState::InternalSwap(EvalState* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.values_.InternalSwap(&other->_impl_.values_); + _impl_.results_.InternalSwap(&other->_impl_.results_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata EvalState::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto[1]); +} + +// =================================================================== + +class ExprValue::_Internal { + public: + static const ::google::api::expr::v1alpha1::Value& value(const ExprValue* msg); + static const ::google::api::expr::v1alpha1::ErrorSet& error(const ExprValue* msg); + static const ::google::api::expr::v1alpha1::UnknownSet& unknown(const ExprValue* msg); +}; + +const ::google::api::expr::v1alpha1::Value& +ExprValue::_Internal::value(const ExprValue* msg) { + return *msg->_impl_.kind_.value_; +} +const ::google::api::expr::v1alpha1::ErrorSet& +ExprValue::_Internal::error(const ExprValue* msg) { + return *msg->_impl_.kind_.error_; +} +const ::google::api::expr::v1alpha1::UnknownSet& +ExprValue::_Internal::unknown(const ExprValue* msg) { + return *msg->_impl_.kind_.unknown_; +} +void ExprValue::set_allocated_value(::google::api::expr::v1alpha1::Value* value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value)); + if (message_arena != submessage_arena) { + value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + set_has_value(); + _impl_.kind_.value_ = value; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.ExprValue.value) +} +void ExprValue::clear_value() { + if (_internal_has_value()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.value_; + } + clear_has_kind(); + } +} +void ExprValue::set_allocated_error(::google::api::expr::v1alpha1::ErrorSet* error) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (error) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(error); + if (message_arena != submessage_arena) { + error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + set_has_error(); + _impl_.kind_.error_ = error; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.ExprValue.error) +} +void ExprValue::set_allocated_unknown(::google::api::expr::v1alpha1::UnknownSet* unknown) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (unknown) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(unknown); + if (message_arena != submessage_arena) { + unknown = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, unknown, submessage_arena); + } + set_has_unknown(); + _impl_.kind_.unknown_ = unknown; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.ExprValue.unknown) +} +ExprValue::ExprValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.ExprValue) +} +ExprValue::ExprValue(const ExprValue& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ExprValue* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_kind(); + switch (from.kind_case()) { + case kValue: { + _this->_internal_mutable_value()->::google::api::expr::v1alpha1::Value::MergeFrom( + from._internal_value()); + break; + } + case kError: { + _this->_internal_mutable_error()->::google::api::expr::v1alpha1::ErrorSet::MergeFrom( + from._internal_error()); + break; + } + case kUnknown: { + _this->_internal_mutable_unknown()->::google::api::expr::v1alpha1::UnknownSet::MergeFrom( + from._internal_unknown()); + break; + } + case KIND_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.ExprValue) +} + +inline void ExprValue::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_kind(); +} + +ExprValue::~ExprValue() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.ExprValue) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ExprValue::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_kind()) { + clear_kind(); + } +} + +void ExprValue::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ExprValue::clear_kind() { +// @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1alpha1.ExprValue) + switch (kind_case()) { + case kValue: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.value_; + } + break; + } + case kError: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.error_; + } + break; + } + case kUnknown: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.unknown_; + } + break; + } + case KIND_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = KIND_NOT_SET; +} + + +void ExprValue::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.ExprValue) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_kind(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ExprValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.api.expr.v1alpha1.Value value = 1 [json_name = "value"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.ErrorSet error = 2 [json_name = "error"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_error(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.UnknownSet unknown = 3 [json_name = "unknown"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_unknown(), 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* ExprValue::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.ExprValue) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.api.expr.v1alpha1.Value value = 1 [json_name = "value"]; + if (_internal_has_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::value(this), + _Internal::value(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.ErrorSet error = 2 [json_name = "error"]; + if (_internal_has_error()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::error(this), + _Internal::error(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.UnknownSet unknown = 3 [json_name = "unknown"]; + if (_internal_has_unknown()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::unknown(this), + _Internal::unknown(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:google.api.expr.v1alpha1.ExprValue) + return target; +} + +size_t ExprValue::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.ExprValue) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (kind_case()) { + // .google.api.expr.v1alpha1.Value value = 1 [json_name = "value"]; + case kValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.value_); + break; + } + // .google.api.expr.v1alpha1.ErrorSet error = 2 [json_name = "error"]; + case kError: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.error_); + break; + } + // .google.api.expr.v1alpha1.UnknownSet unknown = 3 [json_name = "unknown"]; + case kUnknown: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.unknown_); + break; + } + case KIND_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ExprValue::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ExprValue::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ExprValue::GetClassData() const { return &_class_data_; } + + +void ExprValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.ExprValue) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.kind_case()) { + case kValue: { + _this->_internal_mutable_value()->::google::api::expr::v1alpha1::Value::MergeFrom( + from._internal_value()); + break; + } + case kError: { + _this->_internal_mutable_error()->::google::api::expr::v1alpha1::ErrorSet::MergeFrom( + from._internal_error()); + break; + } + case kUnknown: { + _this->_internal_mutable_unknown()->::google::api::expr::v1alpha1::UnknownSet::MergeFrom( + from._internal_unknown()); + break; + } + case KIND_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ExprValue::CopyFrom(const ExprValue& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.ExprValue) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExprValue::IsInitialized() const { + return true; +} + +void ExprValue::InternalSwap(ExprValue* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.kind_, other->_impl_.kind_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ExprValue::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto[2]); +} + +// =================================================================== + +class ErrorSet::_Internal { + public: +}; + +void ErrorSet::clear_errors() { + _impl_.errors_.Clear(); +} +ErrorSet::ErrorSet(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.ErrorSet) +} +ErrorSet::ErrorSet(const ErrorSet& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ErrorSet* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.errors_){from._impl_.errors_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.ErrorSet) +} + +inline void ErrorSet::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.errors_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +ErrorSet::~ErrorSet() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.ErrorSet) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ErrorSet::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.errors_.~RepeatedPtrField(); +} + +void ErrorSet::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ErrorSet::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.ErrorSet) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.errors_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ErrorSet::_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) { + // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_errors(), 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* ErrorSet::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.ErrorSet) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; + for (unsigned i = 0, + n = static_cast(this->_internal_errors_size()); i < n; i++) { + const auto& repfield = this->_internal_errors(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.ErrorSet) + return target; +} + +size_t ErrorSet::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.ErrorSet) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; + total_size += 1UL * this->_internal_errors_size(); + for (const auto& msg : this->_impl_.errors_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ErrorSet::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ErrorSet::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ErrorSet::GetClassData() const { return &_class_data_; } + + +void ErrorSet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.ErrorSet) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.errors_.MergeFrom(from._impl_.errors_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ErrorSet::CopyFrom(const ErrorSet& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.ErrorSet) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ErrorSet::IsInitialized() const { + return true; +} + +void ErrorSet::InternalSwap(ErrorSet* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.errors_.InternalSwap(&other->_impl_.errors_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ErrorSet::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto[3]); +} + +// =================================================================== + +class UnknownSet::_Internal { + public: +}; + +UnknownSet::UnknownSet(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.UnknownSet) +} +UnknownSet::UnknownSet(const UnknownSet& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + UnknownSet* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.exprs_){from._impl_.exprs_} + , /*decltype(_impl_._exprs_cached_byte_size_)*/{0} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.UnknownSet) +} + +inline void UnknownSet::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.exprs_){arena} + , /*decltype(_impl_._exprs_cached_byte_size_)*/{0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +UnknownSet::~UnknownSet() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.UnknownSet) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void UnknownSet::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.exprs_.~RepeatedField(); +} + +void UnknownSet::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void UnknownSet::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.UnknownSet) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.exprs_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UnknownSet::_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) { + // repeated int64 exprs = 1 [json_name = "exprs"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_exprs(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 8) { + _internal_add_exprs(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* UnknownSet::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.UnknownSet) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated int64 exprs = 1 [json_name = "exprs"]; + { + int byte_size = _impl_._exprs_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteInt64Packed( + 1, _internal_exprs(), byte_size, target); + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.UnknownSet) + return target; +} + +size_t UnknownSet::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.UnknownSet) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated int64 exprs = 1 [json_name = "exprs"]; + { + size_t data_size = ::_pbi::WireFormatLite:: + Int64Size(this->_impl_.exprs_); + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + int cached_size = ::_pbi::ToCachedSize(data_size); + _impl_._exprs_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UnknownSet::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + UnknownSet::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UnknownSet::GetClassData() const { return &_class_data_; } + + +void UnknownSet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.UnknownSet) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.exprs_.MergeFrom(from._impl_.exprs_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void UnknownSet::CopyFrom(const UnknownSet& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.UnknownSet) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UnknownSet::IsInitialized() const { + return true; +} + +void UnknownSet::InternalSwap(UnknownSet* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.exprs_.InternalSwap(&other->_impl_.exprs_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UnknownSet::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto[4]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::EvalState_Result* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::EvalState_Result >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::EvalState_Result >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::EvalState* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::EvalState >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::EvalState >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::ExprValue* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::ExprValue >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::ExprValue >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::ErrorSet* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::ErrorSet >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::ErrorSet >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::UnknownSet* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::UnknownSet >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::UnknownSet >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/google/api/expr/v1alpha1/eval.pb.h b/src/gen/google/api/expr/v1alpha1/eval.pb.h new file mode 100644 index 000000000..1d493f758 --- /dev/null +++ b/src/gen/google/api/expr/v1alpha1/eval.pb.h @@ -0,0 +1,1435 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/expr/v1alpha1/eval.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 "google/api/expr/v1alpha1/value.pb.h" +#include "google/rpc/status.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto; +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { +class ErrorSet; +struct ErrorSetDefaultTypeInternal; +extern ErrorSetDefaultTypeInternal _ErrorSet_default_instance_; +class EvalState; +struct EvalStateDefaultTypeInternal; +extern EvalStateDefaultTypeInternal _EvalState_default_instance_; +class EvalState_Result; +struct EvalState_ResultDefaultTypeInternal; +extern EvalState_ResultDefaultTypeInternal _EvalState_Result_default_instance_; +class ExprValue; +struct ExprValueDefaultTypeInternal; +extern ExprValueDefaultTypeInternal _ExprValue_default_instance_; +class UnknownSet; +struct UnknownSetDefaultTypeInternal; +extern UnknownSetDefaultTypeInternal _UnknownSet_default_instance_; +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::expr::v1alpha1::ErrorSet* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::ErrorSet>(Arena*); +template<> ::google::api::expr::v1alpha1::EvalState* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::EvalState>(Arena*); +template<> ::google::api::expr::v1alpha1::EvalState_Result* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::EvalState_Result>(Arena*); +template<> ::google::api::expr::v1alpha1::ExprValue* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::ExprValue>(Arena*); +template<> ::google::api::expr::v1alpha1::UnknownSet* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::UnknownSet>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { + +// =================================================================== + +class EvalState_Result final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.EvalState.Result) */ { + public: + inline EvalState_Result() : EvalState_Result(nullptr) {} + ~EvalState_Result() override; + explicit PROTOBUF_CONSTEXPR EvalState_Result(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + EvalState_Result(const EvalState_Result& from); + EvalState_Result(EvalState_Result&& from) noexcept + : EvalState_Result() { + *this = ::std::move(from); + } + + inline EvalState_Result& operator=(const EvalState_Result& from) { + CopyFrom(from); + return *this; + } + inline EvalState_Result& operator=(EvalState_Result&& 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 EvalState_Result& default_instance() { + return *internal_default_instance(); + } + static inline const EvalState_Result* internal_default_instance() { + return reinterpret_cast( + &_EvalState_Result_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(EvalState_Result& a, EvalState_Result& b) { + a.Swap(&b); + } + inline void Swap(EvalState_Result* 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(EvalState_Result* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + EvalState_Result* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EvalState_Result& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const EvalState_Result& from) { + EvalState_Result::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EvalState_Result* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.EvalState.Result"; + } + protected: + explicit EvalState_Result(::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 { + kExprFieldNumber = 1, + kValueFieldNumber = 2, + }; + // int64 expr = 1 [json_name = "expr"]; + void clear_expr(); + int64_t expr() const; + void set_expr(int64_t value); + private: + int64_t _internal_expr() const; + void _internal_set_expr(int64_t value); + public: + + // int64 value = 2 [json_name = "value"]; + void clear_value(); + int64_t value() const; + void set_value(int64_t value); + private: + int64_t _internal_value() const; + void _internal_set_value(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.EvalState.Result) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + int64_t expr_; + int64_t value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto; +}; +// ------------------------------------------------------------------- + +class EvalState final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.EvalState) */ { + public: + inline EvalState() : EvalState(nullptr) {} + ~EvalState() override; + explicit PROTOBUF_CONSTEXPR EvalState(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + EvalState(const EvalState& from); + EvalState(EvalState&& from) noexcept + : EvalState() { + *this = ::std::move(from); + } + + inline EvalState& operator=(const EvalState& from) { + CopyFrom(from); + return *this; + } + inline EvalState& operator=(EvalState&& 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 EvalState& default_instance() { + return *internal_default_instance(); + } + static inline const EvalState* internal_default_instance() { + return reinterpret_cast( + &_EvalState_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(EvalState& a, EvalState& b) { + a.Swap(&b); + } + inline void Swap(EvalState* 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(EvalState* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + EvalState* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EvalState& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const EvalState& from) { + EvalState::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EvalState* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.EvalState"; + } + protected: + explicit EvalState(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef EvalState_Result Result; + + // accessors ------------------------------------------------------- + + enum : int { + kValuesFieldNumber = 1, + kResultsFieldNumber = 3, + }; + // repeated .google.api.expr.v1alpha1.ExprValue values = 1 [json_name = "values"]; + int values_size() const; + private: + int _internal_values_size() const; + public: + void clear_values(); + ::google::api::expr::v1alpha1::ExprValue* mutable_values(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::ExprValue >* + mutable_values(); + private: + const ::google::api::expr::v1alpha1::ExprValue& _internal_values(int index) const; + ::google::api::expr::v1alpha1::ExprValue* _internal_add_values(); + public: + const ::google::api::expr::v1alpha1::ExprValue& values(int index) const; + ::google::api::expr::v1alpha1::ExprValue* add_values(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::ExprValue >& + values() const; + + // repeated .google.api.expr.v1alpha1.EvalState.Result results = 3 [json_name = "results"]; + int results_size() const; + private: + int _internal_results_size() const; + public: + void clear_results(); + ::google::api::expr::v1alpha1::EvalState_Result* mutable_results(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::EvalState_Result >* + mutable_results(); + private: + const ::google::api::expr::v1alpha1::EvalState_Result& _internal_results(int index) const; + ::google::api::expr::v1alpha1::EvalState_Result* _internal_add_results(); + public: + const ::google::api::expr::v1alpha1::EvalState_Result& results(int index) const; + ::google::api::expr::v1alpha1::EvalState_Result* add_results(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::EvalState_Result >& + results() const; + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.EvalState) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::ExprValue > values_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::EvalState_Result > results_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto; +}; +// ------------------------------------------------------------------- + +class ExprValue final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.ExprValue) */ { + public: + inline ExprValue() : ExprValue(nullptr) {} + ~ExprValue() override; + explicit PROTOBUF_CONSTEXPR ExprValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ExprValue(const ExprValue& from); + ExprValue(ExprValue&& from) noexcept + : ExprValue() { + *this = ::std::move(from); + } + + inline ExprValue& operator=(const ExprValue& from) { + CopyFrom(from); + return *this; + } + inline ExprValue& operator=(ExprValue&& 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 ExprValue& default_instance() { + return *internal_default_instance(); + } + enum KindCase { + kValue = 1, + kError = 2, + kUnknown = 3, + KIND_NOT_SET = 0, + }; + + static inline const ExprValue* internal_default_instance() { + return reinterpret_cast( + &_ExprValue_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(ExprValue& a, ExprValue& b) { + a.Swap(&b); + } + inline void Swap(ExprValue* 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(ExprValue* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ExprValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ExprValue& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ExprValue& from) { + ExprValue::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExprValue* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.ExprValue"; + } + protected: + explicit ExprValue(::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 { + kValueFieldNumber = 1, + kErrorFieldNumber = 2, + kUnknownFieldNumber = 3, + }; + // .google.api.expr.v1alpha1.Value value = 1 [json_name = "value"]; + bool has_value() const; + private: + bool _internal_has_value() const; + public: + void clear_value(); + const ::google::api::expr::v1alpha1::Value& value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Value* release_value(); + ::google::api::expr::v1alpha1::Value* mutable_value(); + void set_allocated_value(::google::api::expr::v1alpha1::Value* value); + private: + const ::google::api::expr::v1alpha1::Value& _internal_value() const; + ::google::api::expr::v1alpha1::Value* _internal_mutable_value(); + public: + void unsafe_arena_set_allocated_value( + ::google::api::expr::v1alpha1::Value* value); + ::google::api::expr::v1alpha1::Value* unsafe_arena_release_value(); + + // .google.api.expr.v1alpha1.ErrorSet error = 2 [json_name = "error"]; + bool has_error() const; + private: + bool _internal_has_error() const; + public: + void clear_error(); + const ::google::api::expr::v1alpha1::ErrorSet& error() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::ErrorSet* release_error(); + ::google::api::expr::v1alpha1::ErrorSet* mutable_error(); + void set_allocated_error(::google::api::expr::v1alpha1::ErrorSet* error); + private: + const ::google::api::expr::v1alpha1::ErrorSet& _internal_error() const; + ::google::api::expr::v1alpha1::ErrorSet* _internal_mutable_error(); + public: + void unsafe_arena_set_allocated_error( + ::google::api::expr::v1alpha1::ErrorSet* error); + ::google::api::expr::v1alpha1::ErrorSet* unsafe_arena_release_error(); + + // .google.api.expr.v1alpha1.UnknownSet unknown = 3 [json_name = "unknown"]; + bool has_unknown() const; + private: + bool _internal_has_unknown() const; + public: + void clear_unknown(); + const ::google::api::expr::v1alpha1::UnknownSet& unknown() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::UnknownSet* release_unknown(); + ::google::api::expr::v1alpha1::UnknownSet* mutable_unknown(); + void set_allocated_unknown(::google::api::expr::v1alpha1::UnknownSet* unknown); + private: + const ::google::api::expr::v1alpha1::UnknownSet& _internal_unknown() const; + ::google::api::expr::v1alpha1::UnknownSet* _internal_mutable_unknown(); + public: + void unsafe_arena_set_allocated_unknown( + ::google::api::expr::v1alpha1::UnknownSet* unknown); + ::google::api::expr::v1alpha1::UnknownSet* unsafe_arena_release_unknown(); + + void clear_kind(); + KindCase kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.ExprValue) + private: + class _Internal; + void set_has_value(); + void set_has_error(); + void set_has_unknown(); + + inline bool has_kind() const; + inline void clear_has_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + union KindUnion { + constexpr KindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::google::api::expr::v1alpha1::Value* value_; + ::google::api::expr::v1alpha1::ErrorSet* error_; + ::google::api::expr::v1alpha1::UnknownSet* unknown_; + } kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto; +}; +// ------------------------------------------------------------------- + +class ErrorSet final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.ErrorSet) */ { + public: + inline ErrorSet() : ErrorSet(nullptr) {} + ~ErrorSet() override; + explicit PROTOBUF_CONSTEXPR ErrorSet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ErrorSet(const ErrorSet& from); + ErrorSet(ErrorSet&& from) noexcept + : ErrorSet() { + *this = ::std::move(from); + } + + inline ErrorSet& operator=(const ErrorSet& from) { + CopyFrom(from); + return *this; + } + inline ErrorSet& operator=(ErrorSet&& 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 ErrorSet& default_instance() { + return *internal_default_instance(); + } + static inline const ErrorSet* internal_default_instance() { + return reinterpret_cast( + &_ErrorSet_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(ErrorSet& a, ErrorSet& b) { + a.Swap(&b); + } + inline void Swap(ErrorSet* 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(ErrorSet* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ErrorSet* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ErrorSet& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ErrorSet& from) { + ErrorSet::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ErrorSet* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.ErrorSet"; + } + protected: + explicit ErrorSet(::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 { + kErrorsFieldNumber = 1, + }; + // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; + int errors_size() const; + private: + int _internal_errors_size() const; + public: + void clear_errors(); + ::google::rpc::Status* mutable_errors(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Status >* + mutable_errors(); + private: + const ::google::rpc::Status& _internal_errors(int index) const; + ::google::rpc::Status* _internal_add_errors(); + public: + const ::google::rpc::Status& errors(int index) const; + ::google::rpc::Status* add_errors(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Status >& + errors() const; + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.ErrorSet) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Status > errors_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto; +}; +// ------------------------------------------------------------------- + +class UnknownSet final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.UnknownSet) */ { + public: + inline UnknownSet() : UnknownSet(nullptr) {} + ~UnknownSet() override; + explicit PROTOBUF_CONSTEXPR UnknownSet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UnknownSet(const UnknownSet& from); + UnknownSet(UnknownSet&& from) noexcept + : UnknownSet() { + *this = ::std::move(from); + } + + inline UnknownSet& operator=(const UnknownSet& from) { + CopyFrom(from); + return *this; + } + inline UnknownSet& operator=(UnknownSet&& 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 UnknownSet& default_instance() { + return *internal_default_instance(); + } + static inline const UnknownSet* internal_default_instance() { + return reinterpret_cast( + &_UnknownSet_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(UnknownSet& a, UnknownSet& b) { + a.Swap(&b); + } + inline void Swap(UnknownSet* 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(UnknownSet* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UnknownSet* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UnknownSet& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const UnknownSet& from) { + UnknownSet::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UnknownSet* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.UnknownSet"; + } + protected: + explicit UnknownSet(::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 { + kExprsFieldNumber = 1, + }; + // repeated int64 exprs = 1 [json_name = "exprs"]; + int exprs_size() const; + private: + int _internal_exprs_size() const; + public: + void clear_exprs(); + private: + int64_t _internal_exprs(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >& + _internal_exprs() const; + void _internal_add_exprs(int64_t value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >* + _internal_mutable_exprs(); + public: + int64_t exprs(int index) const; + void set_exprs(int index, int64_t value); + void add_exprs(int64_t value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >& + exprs() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >* + mutable_exprs(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.UnknownSet) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > exprs_; + mutable std::atomic _exprs_cached_byte_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// EvalState_Result + +// int64 expr = 1 [json_name = "expr"]; +inline void EvalState_Result::clear_expr() { + _impl_.expr_ = int64_t{0}; +} +inline int64_t EvalState_Result::_internal_expr() const { + return _impl_.expr_; +} +inline int64_t EvalState_Result::expr() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.EvalState.Result.expr) + return _internal_expr(); +} +inline void EvalState_Result::_internal_set_expr(int64_t value) { + + _impl_.expr_ = value; +} +inline void EvalState_Result::set_expr(int64_t value) { + _internal_set_expr(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.EvalState.Result.expr) +} + +// int64 value = 2 [json_name = "value"]; +inline void EvalState_Result::clear_value() { + _impl_.value_ = int64_t{0}; +} +inline int64_t EvalState_Result::_internal_value() const { + return _impl_.value_; +} +inline int64_t EvalState_Result::value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.EvalState.Result.value) + return _internal_value(); +} +inline void EvalState_Result::_internal_set_value(int64_t value) { + + _impl_.value_ = value; +} +inline void EvalState_Result::set_value(int64_t value) { + _internal_set_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.EvalState.Result.value) +} + +// ------------------------------------------------------------------- + +// EvalState + +// repeated .google.api.expr.v1alpha1.ExprValue values = 1 [json_name = "values"]; +inline int EvalState::_internal_values_size() const { + return _impl_.values_.size(); +} +inline int EvalState::values_size() const { + return _internal_values_size(); +} +inline void EvalState::clear_values() { + _impl_.values_.Clear(); +} +inline ::google::api::expr::v1alpha1::ExprValue* EvalState::mutable_values(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.EvalState.values) + return _impl_.values_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::ExprValue >* +EvalState::mutable_values() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.EvalState.values) + return &_impl_.values_; +} +inline const ::google::api::expr::v1alpha1::ExprValue& EvalState::_internal_values(int index) const { + return _impl_.values_.Get(index); +} +inline const ::google::api::expr::v1alpha1::ExprValue& EvalState::values(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.EvalState.values) + return _internal_values(index); +} +inline ::google::api::expr::v1alpha1::ExprValue* EvalState::_internal_add_values() { + return _impl_.values_.Add(); +} +inline ::google::api::expr::v1alpha1::ExprValue* EvalState::add_values() { + ::google::api::expr::v1alpha1::ExprValue* _add = _internal_add_values(); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.EvalState.values) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::ExprValue >& +EvalState::values() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.EvalState.values) + return _impl_.values_; +} + +// repeated .google.api.expr.v1alpha1.EvalState.Result results = 3 [json_name = "results"]; +inline int EvalState::_internal_results_size() const { + return _impl_.results_.size(); +} +inline int EvalState::results_size() const { + return _internal_results_size(); +} +inline void EvalState::clear_results() { + _impl_.results_.Clear(); +} +inline ::google::api::expr::v1alpha1::EvalState_Result* EvalState::mutable_results(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.EvalState.results) + return _impl_.results_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::EvalState_Result >* +EvalState::mutable_results() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.EvalState.results) + return &_impl_.results_; +} +inline const ::google::api::expr::v1alpha1::EvalState_Result& EvalState::_internal_results(int index) const { + return _impl_.results_.Get(index); +} +inline const ::google::api::expr::v1alpha1::EvalState_Result& EvalState::results(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.EvalState.results) + return _internal_results(index); +} +inline ::google::api::expr::v1alpha1::EvalState_Result* EvalState::_internal_add_results() { + return _impl_.results_.Add(); +} +inline ::google::api::expr::v1alpha1::EvalState_Result* EvalState::add_results() { + ::google::api::expr::v1alpha1::EvalState_Result* _add = _internal_add_results(); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.EvalState.results) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::EvalState_Result >& +EvalState::results() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.EvalState.results) + return _impl_.results_; +} + +// ------------------------------------------------------------------- + +// ExprValue + +// .google.api.expr.v1alpha1.Value value = 1 [json_name = "value"]; +inline bool ExprValue::_internal_has_value() const { + return kind_case() == kValue; +} +inline bool ExprValue::has_value() const { + return _internal_has_value(); +} +inline void ExprValue::set_has_value() { + _impl_._oneof_case_[0] = kValue; +} +inline ::google::api::expr::v1alpha1::Value* ExprValue::release_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.ExprValue.value) + if (_internal_has_value()) { + clear_has_kind(); + ::google::api::expr::v1alpha1::Value* temp = _impl_.kind_.value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1alpha1::Value& ExprValue::_internal_value() const { + return _internal_has_value() + ? *_impl_.kind_.value_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Value&>(::google::api::expr::v1alpha1::_Value_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Value& ExprValue::value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.ExprValue.value) + return _internal_value(); +} +inline ::google::api::expr::v1alpha1::Value* ExprValue::unsafe_arena_release_value() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.ExprValue.value) + if (_internal_has_value()) { + clear_has_kind(); + ::google::api::expr::v1alpha1::Value* temp = _impl_.kind_.value_; + _impl_.kind_.value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ExprValue::unsafe_arena_set_allocated_value(::google::api::expr::v1alpha1::Value* value) { + clear_kind(); + if (value) { + set_has_value(); + _impl_.kind_.value_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.ExprValue.value) +} +inline ::google::api::expr::v1alpha1::Value* ExprValue::_internal_mutable_value() { + if (!_internal_has_value()) { + clear_kind(); + set_has_value(); + _impl_.kind_.value_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Value >(GetArenaForAllocation()); + } + return _impl_.kind_.value_; +} +inline ::google::api::expr::v1alpha1::Value* ExprValue::mutable_value() { + ::google::api::expr::v1alpha1::Value* _msg = _internal_mutable_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.ExprValue.value) + return _msg; +} + +// .google.api.expr.v1alpha1.ErrorSet error = 2 [json_name = "error"]; +inline bool ExprValue::_internal_has_error() const { + return kind_case() == kError; +} +inline bool ExprValue::has_error() const { + return _internal_has_error(); +} +inline void ExprValue::set_has_error() { + _impl_._oneof_case_[0] = kError; +} +inline void ExprValue::clear_error() { + if (_internal_has_error()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.error_; + } + clear_has_kind(); + } +} +inline ::google::api::expr::v1alpha1::ErrorSet* ExprValue::release_error() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.ExprValue.error) + if (_internal_has_error()) { + clear_has_kind(); + ::google::api::expr::v1alpha1::ErrorSet* temp = _impl_.kind_.error_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.error_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1alpha1::ErrorSet& ExprValue::_internal_error() const { + return _internal_has_error() + ? *_impl_.kind_.error_ + : reinterpret_cast< ::google::api::expr::v1alpha1::ErrorSet&>(::google::api::expr::v1alpha1::_ErrorSet_default_instance_); +} +inline const ::google::api::expr::v1alpha1::ErrorSet& ExprValue::error() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.ExprValue.error) + return _internal_error(); +} +inline ::google::api::expr::v1alpha1::ErrorSet* ExprValue::unsafe_arena_release_error() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.ExprValue.error) + if (_internal_has_error()) { + clear_has_kind(); + ::google::api::expr::v1alpha1::ErrorSet* temp = _impl_.kind_.error_; + _impl_.kind_.error_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ExprValue::unsafe_arena_set_allocated_error(::google::api::expr::v1alpha1::ErrorSet* error) { + clear_kind(); + if (error) { + set_has_error(); + _impl_.kind_.error_ = error; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.ExprValue.error) +} +inline ::google::api::expr::v1alpha1::ErrorSet* ExprValue::_internal_mutable_error() { + if (!_internal_has_error()) { + clear_kind(); + set_has_error(); + _impl_.kind_.error_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::ErrorSet >(GetArenaForAllocation()); + } + return _impl_.kind_.error_; +} +inline ::google::api::expr::v1alpha1::ErrorSet* ExprValue::mutable_error() { + ::google::api::expr::v1alpha1::ErrorSet* _msg = _internal_mutable_error(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.ExprValue.error) + return _msg; +} + +// .google.api.expr.v1alpha1.UnknownSet unknown = 3 [json_name = "unknown"]; +inline bool ExprValue::_internal_has_unknown() const { + return kind_case() == kUnknown; +} +inline bool ExprValue::has_unknown() const { + return _internal_has_unknown(); +} +inline void ExprValue::set_has_unknown() { + _impl_._oneof_case_[0] = kUnknown; +} +inline void ExprValue::clear_unknown() { + if (_internal_has_unknown()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.unknown_; + } + clear_has_kind(); + } +} +inline ::google::api::expr::v1alpha1::UnknownSet* ExprValue::release_unknown() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.ExprValue.unknown) + if (_internal_has_unknown()) { + clear_has_kind(); + ::google::api::expr::v1alpha1::UnknownSet* temp = _impl_.kind_.unknown_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.unknown_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1alpha1::UnknownSet& ExprValue::_internal_unknown() const { + return _internal_has_unknown() + ? *_impl_.kind_.unknown_ + : reinterpret_cast< ::google::api::expr::v1alpha1::UnknownSet&>(::google::api::expr::v1alpha1::_UnknownSet_default_instance_); +} +inline const ::google::api::expr::v1alpha1::UnknownSet& ExprValue::unknown() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.ExprValue.unknown) + return _internal_unknown(); +} +inline ::google::api::expr::v1alpha1::UnknownSet* ExprValue::unsafe_arena_release_unknown() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.ExprValue.unknown) + if (_internal_has_unknown()) { + clear_has_kind(); + ::google::api::expr::v1alpha1::UnknownSet* temp = _impl_.kind_.unknown_; + _impl_.kind_.unknown_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ExprValue::unsafe_arena_set_allocated_unknown(::google::api::expr::v1alpha1::UnknownSet* unknown) { + clear_kind(); + if (unknown) { + set_has_unknown(); + _impl_.kind_.unknown_ = unknown; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.ExprValue.unknown) +} +inline ::google::api::expr::v1alpha1::UnknownSet* ExprValue::_internal_mutable_unknown() { + if (!_internal_has_unknown()) { + clear_kind(); + set_has_unknown(); + _impl_.kind_.unknown_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::UnknownSet >(GetArenaForAllocation()); + } + return _impl_.kind_.unknown_; +} +inline ::google::api::expr::v1alpha1::UnknownSet* ExprValue::mutable_unknown() { + ::google::api::expr::v1alpha1::UnknownSet* _msg = _internal_mutable_unknown(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.ExprValue.unknown) + return _msg; +} + +inline bool ExprValue::has_kind() const { + return kind_case() != KIND_NOT_SET; +} +inline void ExprValue::clear_has_kind() { + _impl_._oneof_case_[0] = KIND_NOT_SET; +} +inline ExprValue::KindCase ExprValue::kind_case() const { + return ExprValue::KindCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ErrorSet + +// repeated .google.rpc.Status errors = 1 [json_name = "errors"]; +inline int ErrorSet::_internal_errors_size() const { + return _impl_.errors_.size(); +} +inline int ErrorSet::errors_size() const { + return _internal_errors_size(); +} +inline ::google::rpc::Status* ErrorSet::mutable_errors(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.ErrorSet.errors) + return _impl_.errors_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Status >* +ErrorSet::mutable_errors() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.ErrorSet.errors) + return &_impl_.errors_; +} +inline const ::google::rpc::Status& ErrorSet::_internal_errors(int index) const { + return _impl_.errors_.Get(index); +} +inline const ::google::rpc::Status& ErrorSet::errors(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.ErrorSet.errors) + return _internal_errors(index); +} +inline ::google::rpc::Status* ErrorSet::_internal_add_errors() { + return _impl_.errors_.Add(); +} +inline ::google::rpc::Status* ErrorSet::add_errors() { + ::google::rpc::Status* _add = _internal_add_errors(); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.ErrorSet.errors) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Status >& +ErrorSet::errors() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.ErrorSet.errors) + return _impl_.errors_; +} + +// ------------------------------------------------------------------- + +// UnknownSet + +// repeated int64 exprs = 1 [json_name = "exprs"]; +inline int UnknownSet::_internal_exprs_size() const { + return _impl_.exprs_.size(); +} +inline int UnknownSet::exprs_size() const { + return _internal_exprs_size(); +} +inline void UnknownSet::clear_exprs() { + _impl_.exprs_.Clear(); +} +inline int64_t UnknownSet::_internal_exprs(int index) const { + return _impl_.exprs_.Get(index); +} +inline int64_t UnknownSet::exprs(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.UnknownSet.exprs) + return _internal_exprs(index); +} +inline void UnknownSet::set_exprs(int index, int64_t value) { + _impl_.exprs_.Set(index, value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.UnknownSet.exprs) +} +inline void UnknownSet::_internal_add_exprs(int64_t value) { + _impl_.exprs_.Add(value); +} +inline void UnknownSet::add_exprs(int64_t value) { + _internal_add_exprs(value); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.UnknownSet.exprs) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >& +UnknownSet::_internal_exprs() const { + return _impl_.exprs_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >& +UnknownSet::exprs() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.UnknownSet.exprs) + return _internal_exprs(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >* +UnknownSet::_internal_mutable_exprs() { + return &_impl_.exprs_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >* +UnknownSet::mutable_exprs() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.UnknownSet.exprs) + return _internal_mutable_exprs(); +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto diff --git a/src/gen/google/api/expr/v1alpha1/explain.grpc.pb.cc b/src/gen/google/api/expr/v1alpha1/explain.grpc.pb.cc new file mode 100644 index 000000000..748984b27 --- /dev/null +++ b/src/gen/google/api/expr/v1alpha1/explain.grpc.pb.cc @@ -0,0 +1,31 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/expr/v1alpha1/explain.proto + +#include "google/api/expr/v1alpha1/explain.pb.h" +#include "google/api/expr/v1alpha1/explain.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { + +} // namespace google +} // namespace api +} // namespace expr +} // namespace v1alpha1 + diff --git a/src/gen/google/api/expr/v1alpha1/explain.grpc.pb.h b/src/gen/google/api/expr/v1alpha1/explain.grpc.pb.h new file mode 100644 index 000000000..0f5059777 --- /dev/null +++ b/src/gen/google/api/expr/v1alpha1/explain.grpc.pb.h @@ -0,0 +1,54 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/expr/v1alpha1/explain.proto +// Original file comments: +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto__INCLUDED +#define GRPC_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto__INCLUDED + +#include "google/api/expr/v1alpha1/explain.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { + +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google + + +#endif // GRPC_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto__INCLUDED diff --git a/src/gen/google/api/expr/v1alpha1/explain.pb.cc b/src/gen/google/api/expr/v1alpha1/explain.pb.cc new file mode 100644 index 000000000..04edca8b7 --- /dev/null +++ b/src/gen/google/api/expr/v1alpha1/explain.pb.cc @@ -0,0 +1,577 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/expr/v1alpha1/explain.proto + +#include "google/api/expr/v1alpha1/explain.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { +PROTOBUF_CONSTEXPR Explain_ExprStep::Explain_ExprStep( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/int64_t{0} + , /*decltype(_impl_.value_index_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Explain_ExprStepDefaultTypeInternal { + PROTOBUF_CONSTEXPR Explain_ExprStepDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Explain_ExprStepDefaultTypeInternal() {} + union { + Explain_ExprStep _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Explain_ExprStepDefaultTypeInternal _Explain_ExprStep_default_instance_; +PROTOBUF_CONSTEXPR Explain::Explain( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.values_)*/{} + , /*decltype(_impl_.expr_steps_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ExplainDefaultTypeInternal { + PROTOBUF_CONSTEXPR ExplainDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ExplainDefaultTypeInternal() {} + union { + Explain _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExplainDefaultTypeInternal _Explain_default_instance_; +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google +static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto[2]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Explain_ExprStep, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Explain_ExprStep, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Explain_ExprStep, _impl_.value_index_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Explain, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Explain, _impl_.values_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Explain, _impl_.expr_steps_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::expr::v1alpha1::Explain_ExprStep)}, + { 8, -1, -1, sizeof(::google::api::expr::v1alpha1::Explain)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::google::api::expr::v1alpha1::_Explain_ExprStep_default_instance_._instance, + &::google::api::expr::v1alpha1::_Explain_default_instance_._instance, +}; + +const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n&google/api/expr/v1alpha1/explain.proto" + "\022\030google.api.expr.v1alpha1\032$google/api/e" + "xpr/v1alpha1/value.proto\"\316\001\n\007Explain\0227\n\006" + "values\030\001 \003(\0132\037.google.api.expr.v1alpha1." + "ValueR\006values\022I\n\nexpr_steps\030\002 \003(\0132*.goog" + "le.api.expr.v1alpha1.Explain.ExprStepR\te" + "xprSteps\032;\n\010ExprStep\022\016\n\002id\030\001 \001(\003R\002id\022\037\n\013" + "value_index\030\002 \001(\005R\nvalueIndex:\002\030\001Bo\n\034com" + ".google.api.expr.v1alpha1B\014ExplainProtoP" + "\001Z(from._internal_metadata_); + ::memcpy(&_impl_.id_, &from._impl_.id_, + static_cast(reinterpret_cast(&_impl_.value_index_) - + reinterpret_cast(&_impl_.id_)) + sizeof(_impl_.value_index_)); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Explain.ExprStep) +} + +inline void Explain_ExprStep::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){int64_t{0}} + , decltype(_impl_.value_index_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Explain_ExprStep::~Explain_ExprStep() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Explain.ExprStep) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Explain_ExprStep::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Explain_ExprStep::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Explain_ExprStep::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Explain.ExprStep) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.id_, 0, static_cast( + reinterpret_cast(&_impl_.value_index_) - + reinterpret_cast(&_impl_.id_)) + sizeof(_impl_.value_index_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Explain_ExprStep::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int64 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 value_index = 2 [json_name = "valueIndex"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.value_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* Explain_ExprStep::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Explain.ExprStep) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int64 id = 1 [json_name = "id"]; + if (this->_internal_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_id(), target); + } + + // int32 value_index = 2 [json_name = "valueIndex"]; + if (this->_internal_value_index() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_value_index(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.Explain.ExprStep) + return target; +} + +size_t Explain_ExprStep::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Explain.ExprStep) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 id = 1 [json_name = "id"]; + if (this->_internal_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_id()); + } + + // int32 value_index = 2 [json_name = "valueIndex"]; + if (this->_internal_value_index() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_value_index()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Explain_ExprStep::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Explain_ExprStep::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Explain_ExprStep::GetClassData() const { return &_class_data_; } + + +void Explain_ExprStep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Explain.ExprStep) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_id() != 0) { + _this->_internal_set_id(from._internal_id()); + } + if (from._internal_value_index() != 0) { + _this->_internal_set_value_index(from._internal_value_index()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Explain_ExprStep::CopyFrom(const Explain_ExprStep& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Explain.ExprStep) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Explain_ExprStep::IsInitialized() const { + return true; +} + +void Explain_ExprStep::InternalSwap(Explain_ExprStep* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Explain_ExprStep, _impl_.value_index_) + + sizeof(Explain_ExprStep::_impl_.value_index_) + - PROTOBUF_FIELD_OFFSET(Explain_ExprStep, _impl_.id_)>( + reinterpret_cast(&_impl_.id_), + reinterpret_cast(&other->_impl_.id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Explain_ExprStep::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto[0]); +} + +// =================================================================== + +class Explain::_Internal { + public: +}; + +void Explain::clear_values() { + _impl_.values_.Clear(); +} +Explain::Explain(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Explain) +} +Explain::Explain(const Explain& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Explain* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.values_){from._impl_.values_} + , decltype(_impl_.expr_steps_){from._impl_.expr_steps_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Explain) +} + +inline void Explain::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.values_){arena} + , decltype(_impl_.expr_steps_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Explain::~Explain() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Explain) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Explain::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.values_.~RepeatedPtrField(); + _impl_.expr_steps_.~RepeatedPtrField(); +} + +void Explain::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Explain::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Explain) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.values_.Clear(); + _impl_.expr_steps_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Explain::_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) { + // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_values(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2 [json_name = "exprSteps"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_expr_steps(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* Explain::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Explain) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; + for (unsigned i = 0, + n = static_cast(this->_internal_values_size()); i < n; i++) { + const auto& repfield = this->_internal_values(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + // repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2 [json_name = "exprSteps"]; + for (unsigned i = 0, + n = static_cast(this->_internal_expr_steps_size()); i < n; i++) { + const auto& repfield = this->_internal_expr_steps(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.Explain) + return target; +} + +size_t Explain::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Explain) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; + total_size += 1UL * this->_internal_values_size(); + for (const auto& msg : this->_impl_.values_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2 [json_name = "exprSteps"]; + total_size += 1UL * this->_internal_expr_steps_size(); + for (const auto& msg : this->_impl_.expr_steps_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Explain::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Explain::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Explain::GetClassData() const { return &_class_data_; } + + +void Explain::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Explain) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.values_.MergeFrom(from._impl_.values_); + _this->_impl_.expr_steps_.MergeFrom(from._impl_.expr_steps_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Explain::CopyFrom(const Explain& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Explain) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Explain::IsInitialized() const { + return true; +} + +void Explain::InternalSwap(Explain* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.values_.InternalSwap(&other->_impl_.values_); + _impl_.expr_steps_.InternalSwap(&other->_impl_.expr_steps_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Explain::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto[1]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Explain_ExprStep* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Explain_ExprStep >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Explain_ExprStep >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Explain* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Explain >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Explain >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/google/api/expr/v1alpha1/explain.pb.h b/src/gen/google/api/expr/v1alpha1/explain.pb.h new file mode 100644 index 000000000..4b6e5f6b5 --- /dev/null +++ b/src/gen/google/api/expr/v1alpha1/explain.pb.h @@ -0,0 +1,557 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/expr/v1alpha1/explain.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 "google/api/expr/v1alpha1/value.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto; +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { +class Explain; +struct ExplainDefaultTypeInternal; +extern ExplainDefaultTypeInternal _Explain_default_instance_; +class Explain_ExprStep; +struct Explain_ExprStepDefaultTypeInternal; +extern Explain_ExprStepDefaultTypeInternal _Explain_ExprStep_default_instance_; +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::expr::v1alpha1::Explain* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Explain>(Arena*); +template<> ::google::api::expr::v1alpha1::Explain_ExprStep* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Explain_ExprStep>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { + +// =================================================================== + +class Explain_ExprStep final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Explain.ExprStep) */ { + public: + inline Explain_ExprStep() : Explain_ExprStep(nullptr) {} + ~Explain_ExprStep() override; + explicit PROTOBUF_CONSTEXPR Explain_ExprStep(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Explain_ExprStep(const Explain_ExprStep& from); + Explain_ExprStep(Explain_ExprStep&& from) noexcept + : Explain_ExprStep() { + *this = ::std::move(from); + } + + inline Explain_ExprStep& operator=(const Explain_ExprStep& from) { + CopyFrom(from); + return *this; + } + inline Explain_ExprStep& operator=(Explain_ExprStep&& 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 Explain_ExprStep& default_instance() { + return *internal_default_instance(); + } + static inline const Explain_ExprStep* internal_default_instance() { + return reinterpret_cast( + &_Explain_ExprStep_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(Explain_ExprStep& a, Explain_ExprStep& b) { + a.Swap(&b); + } + inline void Swap(Explain_ExprStep* 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(Explain_ExprStep* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Explain_ExprStep* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Explain_ExprStep& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Explain_ExprStep& from) { + Explain_ExprStep::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Explain_ExprStep* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Explain.ExprStep"; + } + protected: + explicit Explain_ExprStep(::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 { + kIdFieldNumber = 1, + kValueIndexFieldNumber = 2, + }; + // int64 id = 1 [json_name = "id"]; + void clear_id(); + int64_t id() const; + void set_id(int64_t value); + private: + int64_t _internal_id() const; + void _internal_set_id(int64_t value); + public: + + // int32 value_index = 2 [json_name = "valueIndex"]; + void clear_value_index(); + int32_t value_index() const; + void set_value_index(int32_t value); + private: + int32_t _internal_value_index() const; + void _internal_set_value_index(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Explain.ExprStep) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + int64_t id_; + int32_t value_index_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto; +}; +// ------------------------------------------------------------------- + +class Explain final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Explain) */ { + public: + inline Explain() : Explain(nullptr) {} + ~Explain() override; + explicit PROTOBUF_CONSTEXPR Explain(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Explain(const Explain& from); + Explain(Explain&& from) noexcept + : Explain() { + *this = ::std::move(from); + } + + inline Explain& operator=(const Explain& from) { + CopyFrom(from); + return *this; + } + inline Explain& operator=(Explain&& 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 Explain& default_instance() { + return *internal_default_instance(); + } + static inline const Explain* internal_default_instance() { + return reinterpret_cast( + &_Explain_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(Explain& a, Explain& b) { + a.Swap(&b); + } + inline void Swap(Explain* 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(Explain* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Explain* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Explain& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Explain& from) { + Explain::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Explain* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Explain"; + } + protected: + explicit Explain(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef Explain_ExprStep ExprStep; + + // accessors ------------------------------------------------------- + + enum : int { + kValuesFieldNumber = 1, + kExprStepsFieldNumber = 2, + }; + // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; + int values_size() const; + private: + int _internal_values_size() const; + public: + void clear_values(); + ::google::api::expr::v1alpha1::Value* mutable_values(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Value >* + mutable_values(); + private: + const ::google::api::expr::v1alpha1::Value& _internal_values(int index) const; + ::google::api::expr::v1alpha1::Value* _internal_add_values(); + public: + const ::google::api::expr::v1alpha1::Value& values(int index) const; + ::google::api::expr::v1alpha1::Value* add_values(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Value >& + values() const; + + // repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2 [json_name = "exprSteps"]; + int expr_steps_size() const; + private: + int _internal_expr_steps_size() const; + public: + void clear_expr_steps(); + ::google::api::expr::v1alpha1::Explain_ExprStep* mutable_expr_steps(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Explain_ExprStep >* + mutable_expr_steps(); + private: + const ::google::api::expr::v1alpha1::Explain_ExprStep& _internal_expr_steps(int index) const; + ::google::api::expr::v1alpha1::Explain_ExprStep* _internal_add_expr_steps(); + public: + const ::google::api::expr::v1alpha1::Explain_ExprStep& expr_steps(int index) const; + ::google::api::expr::v1alpha1::Explain_ExprStep* add_expr_steps(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Explain_ExprStep >& + expr_steps() const; + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Explain) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Value > values_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Explain_ExprStep > expr_steps_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Explain_ExprStep + +// int64 id = 1 [json_name = "id"]; +inline void Explain_ExprStep::clear_id() { + _impl_.id_ = int64_t{0}; +} +inline int64_t Explain_ExprStep::_internal_id() const { + return _impl_.id_; +} +inline int64_t Explain_ExprStep::id() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Explain.ExprStep.id) + return _internal_id(); +} +inline void Explain_ExprStep::_internal_set_id(int64_t value) { + + _impl_.id_ = value; +} +inline void Explain_ExprStep::set_id(int64_t value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Explain.ExprStep.id) +} + +// int32 value_index = 2 [json_name = "valueIndex"]; +inline void Explain_ExprStep::clear_value_index() { + _impl_.value_index_ = 0; +} +inline int32_t Explain_ExprStep::_internal_value_index() const { + return _impl_.value_index_; +} +inline int32_t Explain_ExprStep::value_index() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Explain.ExprStep.value_index) + return _internal_value_index(); +} +inline void Explain_ExprStep::_internal_set_value_index(int32_t value) { + + _impl_.value_index_ = value; +} +inline void Explain_ExprStep::set_value_index(int32_t value) { + _internal_set_value_index(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Explain.ExprStep.value_index) +} + +// ------------------------------------------------------------------- + +// Explain + +// repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; +inline int Explain::_internal_values_size() const { + return _impl_.values_.size(); +} +inline int Explain::values_size() const { + return _internal_values_size(); +} +inline ::google::api::expr::v1alpha1::Value* Explain::mutable_values(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Explain.values) + return _impl_.values_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Value >* +Explain::mutable_values() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Explain.values) + return &_impl_.values_; +} +inline const ::google::api::expr::v1alpha1::Value& Explain::_internal_values(int index) const { + return _impl_.values_.Get(index); +} +inline const ::google::api::expr::v1alpha1::Value& Explain::values(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Explain.values) + return _internal_values(index); +} +inline ::google::api::expr::v1alpha1::Value* Explain::_internal_add_values() { + return _impl_.values_.Add(); +} +inline ::google::api::expr::v1alpha1::Value* Explain::add_values() { + ::google::api::expr::v1alpha1::Value* _add = _internal_add_values(); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Explain.values) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Value >& +Explain::values() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Explain.values) + return _impl_.values_; +} + +// repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2 [json_name = "exprSteps"]; +inline int Explain::_internal_expr_steps_size() const { + return _impl_.expr_steps_.size(); +} +inline int Explain::expr_steps_size() const { + return _internal_expr_steps_size(); +} +inline void Explain::clear_expr_steps() { + _impl_.expr_steps_.Clear(); +} +inline ::google::api::expr::v1alpha1::Explain_ExprStep* Explain::mutable_expr_steps(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Explain.expr_steps) + return _impl_.expr_steps_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Explain_ExprStep >* +Explain::mutable_expr_steps() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Explain.expr_steps) + return &_impl_.expr_steps_; +} +inline const ::google::api::expr::v1alpha1::Explain_ExprStep& Explain::_internal_expr_steps(int index) const { + return _impl_.expr_steps_.Get(index); +} +inline const ::google::api::expr::v1alpha1::Explain_ExprStep& Explain::expr_steps(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Explain.expr_steps) + return _internal_expr_steps(index); +} +inline ::google::api::expr::v1alpha1::Explain_ExprStep* Explain::_internal_add_expr_steps() { + return _impl_.expr_steps_.Add(); +} +inline ::google::api::expr::v1alpha1::Explain_ExprStep* Explain::add_expr_steps() { + ::google::api::expr::v1alpha1::Explain_ExprStep* _add = _internal_add_expr_steps(); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Explain.expr_steps) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Explain_ExprStep >& +Explain::expr_steps() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Explain.expr_steps) + return _impl_.expr_steps_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto diff --git a/src/gen/google/api/expr/v1alpha1/syntax.grpc.pb.cc b/src/gen/google/api/expr/v1alpha1/syntax.grpc.pb.cc new file mode 100644 index 000000000..d0ef274bc --- /dev/null +++ b/src/gen/google/api/expr/v1alpha1/syntax.grpc.pb.cc @@ -0,0 +1,31 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/expr/v1alpha1/syntax.proto + +#include "google/api/expr/v1alpha1/syntax.pb.h" +#include "google/api/expr/v1alpha1/syntax.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { + +} // namespace google +} // namespace api +} // namespace expr +} // namespace v1alpha1 + diff --git a/src/gen/google/api/expr/v1alpha1/syntax.grpc.pb.h b/src/gen/google/api/expr/v1alpha1/syntax.grpc.pb.h new file mode 100644 index 000000000..b8240e086 --- /dev/null +++ b/src/gen/google/api/expr/v1alpha1/syntax.grpc.pb.h @@ -0,0 +1,54 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/expr/v1alpha1/syntax.proto +// Original file comments: +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto__INCLUDED +#define GRPC_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto__INCLUDED + +#include "google/api/expr/v1alpha1/syntax.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { + +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google + + +#endif // GRPC_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto__INCLUDED diff --git a/src/gen/google/api/expr/v1alpha1/syntax.pb.cc b/src/gen/google/api/expr/v1alpha1/syntax.pb.cc new file mode 100644 index 000000000..73fc70db8 --- /dev/null +++ b/src/gen/google/api/expr/v1alpha1/syntax.pb.cc @@ -0,0 +1,4750 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/expr/v1alpha1/syntax.proto + +#include "google/api/expr/v1alpha1/syntax.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { +PROTOBUF_CONSTEXPR ParsedExpr::ParsedExpr( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.expr_)*/nullptr + , /*decltype(_impl_.source_info_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ParsedExprDefaultTypeInternal { + PROTOBUF_CONSTEXPR ParsedExprDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ParsedExprDefaultTypeInternal() {} + union { + ParsedExpr _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ParsedExprDefaultTypeInternal _ParsedExpr_default_instance_; +PROTOBUF_CONSTEXPR Expr_Ident::Expr_Ident( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Expr_IdentDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_IdentDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_IdentDefaultTypeInternal() {} + union { + Expr_Ident _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_IdentDefaultTypeInternal _Expr_Ident_default_instance_; +PROTOBUF_CONSTEXPR Expr_Select::Expr_Select( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.field_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.operand_)*/nullptr + , /*decltype(_impl_.test_only_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Expr_SelectDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_SelectDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_SelectDefaultTypeInternal() {} + union { + Expr_Select _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_SelectDefaultTypeInternal _Expr_Select_default_instance_; +PROTOBUF_CONSTEXPR Expr_Call::Expr_Call( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.args_)*/{} + , /*decltype(_impl_.function_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.target_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Expr_CallDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_CallDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_CallDefaultTypeInternal() {} + union { + Expr_Call _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CallDefaultTypeInternal _Expr_Call_default_instance_; +PROTOBUF_CONSTEXPR Expr_CreateList::Expr_CreateList( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.elements_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Expr_CreateListDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_CreateListDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_CreateListDefaultTypeInternal() {} + union { + Expr_CreateList _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CreateListDefaultTypeInternal _Expr_CreateList_default_instance_; +PROTOBUF_CONSTEXPR Expr_CreateStruct_Entry::Expr_CreateStruct_Entry( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.value_)*/nullptr + , /*decltype(_impl_.id_)*/int64_t{0} + , /*decltype(_impl_.optional_entry_)*/false + , /*decltype(_impl_.key_kind_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct Expr_CreateStruct_EntryDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_CreateStruct_EntryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_CreateStruct_EntryDefaultTypeInternal() {} + union { + Expr_CreateStruct_Entry _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CreateStruct_EntryDefaultTypeInternal _Expr_CreateStruct_Entry_default_instance_; +PROTOBUF_CONSTEXPR Expr_CreateStruct::Expr_CreateStruct( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.entries_)*/{} + , /*decltype(_impl_.message_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Expr_CreateStructDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_CreateStructDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_CreateStructDefaultTypeInternal() {} + union { + Expr_CreateStruct _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CreateStructDefaultTypeInternal _Expr_CreateStruct_default_instance_; +PROTOBUF_CONSTEXPR Expr_Comprehension::Expr_Comprehension( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.iter_var_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.accu_var_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.iter_range_)*/nullptr + , /*decltype(_impl_.accu_init_)*/nullptr + , /*decltype(_impl_.loop_condition_)*/nullptr + , /*decltype(_impl_.loop_step_)*/nullptr + , /*decltype(_impl_.result_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Expr_ComprehensionDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_ComprehensionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_ComprehensionDefaultTypeInternal() {} + union { + Expr_Comprehension _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_ComprehensionDefaultTypeInternal _Expr_Comprehension_default_instance_; +PROTOBUF_CONSTEXPR Expr::Expr( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/int64_t{0} + , /*decltype(_impl_.expr_kind_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct ExprDefaultTypeInternal { + PROTOBUF_CONSTEXPR ExprDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ExprDefaultTypeInternal() {} + union { + Expr _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExprDefaultTypeInternal _Expr_default_instance_; +PROTOBUF_CONSTEXPR Constant::Constant( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.constant_kind_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct ConstantDefaultTypeInternal { + PROTOBUF_CONSTEXPR ConstantDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ConstantDefaultTypeInternal() {} + union { + Constant _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConstantDefaultTypeInternal _Constant_default_instance_; +PROTOBUF_CONSTEXPR SourceInfo_PositionsEntry_DoNotUse::SourceInfo_PositionsEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal() {} + union { + SourceInfo_PositionsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal _SourceInfo_PositionsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR SourceInfo_MacroCallsEntry_DoNotUse::SourceInfo_MacroCallsEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct SourceInfo_MacroCallsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SourceInfo_MacroCallsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SourceInfo_MacroCallsEntry_DoNotUseDefaultTypeInternal() {} + union { + SourceInfo_MacroCallsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfo_MacroCallsEntry_DoNotUseDefaultTypeInternal _SourceInfo_MacroCallsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR SourceInfo::SourceInfo( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.line_offsets_)*/{} + , /*decltype(_impl_._line_offsets_cached_byte_size_)*/{0} + , /*decltype(_impl_.positions_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.macro_calls_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.syntax_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.location_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SourceInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR SourceInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SourceInfoDefaultTypeInternal() {} + union { + SourceInfo _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfoDefaultTypeInternal _SourceInfo_default_instance_; +PROTOBUF_CONSTEXPR SourcePosition::SourcePosition( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.location_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.offset_)*/0 + , /*decltype(_impl_.line_)*/0 + , /*decltype(_impl_.column_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SourcePositionDefaultTypeInternal { + PROTOBUF_CONSTEXPR SourcePositionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SourcePositionDefaultTypeInternal() {} + union { + SourcePosition _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourcePositionDefaultTypeInternal _SourcePosition_default_instance_; +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google +static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[14]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ParsedExpr, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ParsedExpr, _impl_.expr_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ParsedExpr, _impl_.source_info_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Ident, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Ident, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Select, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Select, _impl_.operand_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Select, _impl_.field_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Select, _impl_.test_only_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Call, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Call, _impl_.target_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Call, _impl_.function_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Call, _impl_.args_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateList, _impl_.elements_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry, _impl_.id_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry, _impl_.value_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry, _impl_.optional_entry_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry, _impl_.key_kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct, _impl_.message_name_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct, _impl_.entries_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, _impl_.iter_var_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, _impl_.iter_range_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, _impl_.accu_var_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, _impl_.accu_init_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, _impl_.loop_condition_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, _impl_.loop_step_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, _impl_.result_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr, _impl_.id_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr, _impl_.expr_kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Constant, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Constant, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Constant, _impl_.constant_kind_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, _impl_.syntax_version_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, _impl_.location_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, _impl_.line_offsets_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, _impl_.positions_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, _impl_.macro_calls_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourcePosition, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourcePosition, _impl_.location_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourcePosition, _impl_.offset_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourcePosition, _impl_.line_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourcePosition, _impl_.column_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::expr::v1alpha1::ParsedExpr)}, + { 8, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr_Ident)}, + { 15, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr_Select)}, + { 24, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr_Call)}, + { 33, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr_CreateList)}, + { 40, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry)}, + { 52, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr_CreateStruct)}, + { 60, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr_Comprehension)}, + { 73, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr)}, + { 88, -1, -1, sizeof(::google::api::expr::v1alpha1::Constant)}, + { 104, 112, -1, sizeof(::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse)}, + { 114, 122, -1, sizeof(::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse)}, + { 124, -1, -1, sizeof(::google::api::expr::v1alpha1::SourceInfo)}, + { 135, -1, -1, sizeof(::google::api::expr::v1alpha1::SourcePosition)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::google::api::expr::v1alpha1::_ParsedExpr_default_instance_._instance, + &::google::api::expr::v1alpha1::_Expr_Ident_default_instance_._instance, + &::google::api::expr::v1alpha1::_Expr_Select_default_instance_._instance, + &::google::api::expr::v1alpha1::_Expr_Call_default_instance_._instance, + &::google::api::expr::v1alpha1::_Expr_CreateList_default_instance_._instance, + &::google::api::expr::v1alpha1::_Expr_CreateStruct_Entry_default_instance_._instance, + &::google::api::expr::v1alpha1::_Expr_CreateStruct_default_instance_._instance, + &::google::api::expr::v1alpha1::_Expr_Comprehension_default_instance_._instance, + &::google::api::expr::v1alpha1::_Expr_default_instance_._instance, + &::google::api::expr::v1alpha1::_Constant_default_instance_._instance, + &::google::api::expr::v1alpha1::_SourceInfo_PositionsEntry_DoNotUse_default_instance_._instance, + &::google::api::expr::v1alpha1::_SourceInfo_MacroCallsEntry_DoNotUse_default_instance_._instance, + &::google::api::expr::v1alpha1::_SourceInfo_default_instance_._instance, + &::google::api::expr::v1alpha1::_SourcePosition_default_instance_._instance, +}; + +const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n%google/api/expr/v1alpha1/syntax.proto\022" + "\030google.api.expr.v1alpha1\032\036google/protob" + "uf/duration.proto\032\034google/protobuf/struc" + "t.proto\032\037google/protobuf/timestamp.proto" + "\"\207\001\n\nParsedExpr\0222\n\004expr\030\002 \001(\0132\036.google.a" + "pi.expr.v1alpha1.ExprR\004expr\022E\n\013source_in" + "fo\030\003 \001(\0132$.google.api.expr.v1alpha1.Sour" + "ceInfoR\nsourceInfo\"\203\r\n\004Expr\022\016\n\002id\030\002 \001(\003R" + "\002id\022C\n\nconst_expr\030\003 \001(\0132\".google.api.exp" + "r.v1alpha1.ConstantH\000R\tconstExpr\022E\n\niden" + "t_expr\030\004 \001(\0132$.google.api.expr.v1alpha1." + "Expr.IdentH\000R\tidentExpr\022H\n\013select_expr\030\005" + " \001(\0132%.google.api.expr.v1alpha1.Expr.Sel" + "ectH\000R\nselectExpr\022B\n\tcall_expr\030\006 \001(\0132#.g" + "oogle.api.expr.v1alpha1.Expr.CallH\000R\010cal" + "lExpr\022H\n\tlist_expr\030\007 \001(\0132).google.api.ex" + "pr.v1alpha1.Expr.CreateListH\000R\010listExpr\022" + "N\n\013struct_expr\030\010 \001(\0132+.google.api.expr.v" + "1alpha1.Expr.CreateStructH\000R\nstructExpr\022" + "]\n\022comprehension_expr\030\t \001(\0132,.google.api" + ".expr.v1alpha1.Expr.ComprehensionH\000R\021com" + "prehensionExpr\032\033\n\005Ident\022\022\n\004name\030\001 \001(\tR\004n" + "ame\032u\n\006Select\0228\n\007operand\030\001 \001(\0132\036.google." + "api.expr.v1alpha1.ExprR\007operand\022\024\n\005field" + "\030\002 \001(\tR\005field\022\033\n\ttest_only\030\003 \001(\010R\010testOn" + "ly\032\216\001\n\004Call\0226\n\006target\030\001 \001(\0132\036.google.api" + ".expr.v1alpha1.ExprR\006target\022\032\n\010function\030" + "\002 \001(\tR\010function\0222\n\004args\030\003 \003(\0132\036.google.a" + "pi.expr.v1alpha1.ExprR\004args\032H\n\nCreateLis" + "t\022:\n\010elements\030\001 \003(\0132\036.google.api.expr.v1" + "alpha1.ExprR\010elements\032\333\002\n\014CreateStruct\022!" + "\n\014message_name\030\001 \001(\tR\013messageName\022K\n\007ent" + "ries\030\002 \003(\01321.google.api.expr.v1alpha1.Ex" + "pr.CreateStruct.EntryR\007entries\032\332\001\n\005Entry" + "\022\016\n\002id\030\001 \001(\003R\002id\022\035\n\tfield_key\030\002 \001(\tH\000R\010f" + "ieldKey\0229\n\007map_key\030\003 \001(\0132\036.google.api.ex" + "pr.v1alpha1.ExprH\000R\006mapKey\0224\n\005value\030\004 \001(" + "\0132\036.google.api.expr.v1alpha1.ExprR\005value" + "\022%\n\016optional_entry\030\005 \001(\010R\roptionalEntryB" + "\n\n\010key_kind\032\375\002\n\rComprehension\022\031\n\010iter_va" + "r\030\001 \001(\tR\007iterVar\022=\n\niter_range\030\002 \001(\0132\036.g" + "oogle.api.expr.v1alpha1.ExprR\titerRange\022" + "\031\n\010accu_var\030\003 \001(\tR\007accuVar\022;\n\taccu_init\030" + "\004 \001(\0132\036.google.api.expr.v1alpha1.ExprR\010a" + "ccuInit\022E\n\016loop_condition\030\005 \001(\0132\036.google" + ".api.expr.v1alpha1.ExprR\rloopCondition\022;" + "\n\tloop_step\030\006 \001(\0132\036.google.api.expr.v1al" + "pha1.ExprR\010loopStep\0226\n\006result\030\007 \001(\0132\036.go" + "ogle.api.expr.v1alpha1.ExprR\006resultB\013\n\te" + "xpr_kind\"\301\003\n\010Constant\022;\n\nnull_value\030\001 \001(" + "\0162\032.google.protobuf.NullValueH\000R\tnullVal" + "ue\022\037\n\nbool_value\030\002 \001(\010H\000R\tboolValue\022!\n\013i" + "nt64_value\030\003 \001(\003H\000R\nint64Value\022#\n\014uint64" + "_value\030\004 \001(\004H\000R\013uint64Value\022#\n\014double_va" + "lue\030\005 \001(\001H\000R\013doubleValue\022#\n\014string_value" + "\030\006 \001(\tH\000R\013stringValue\022!\n\013bytes_value\030\007 \001" + "(\014H\000R\nbytesValue\022F\n\016duration_value\030\010 \001(\013" + "2\031.google.protobuf.DurationB\002\030\001H\000R\rdurat" + "ionValue\022I\n\017timestamp_value\030\t \001(\0132\032.goog" + "le.protobuf.TimestampB\002\030\001H\000R\016timestampVa" + "lueB\017\n\rconstant_kind\"\271\003\n\nSourceInfo\022%\n\016s" + "yntax_version\030\001 \001(\tR\rsyntaxVersion\022\032\n\010lo" + "cation\030\002 \001(\tR\010location\022!\n\014line_offsets\030\003" + " \003(\005R\013lineOffsets\022Q\n\tpositions\030\004 \003(\01323.g" + "oogle.api.expr.v1alpha1.SourceInfo.Posit" + "ionsEntryR\tpositions\022U\n\013macro_calls\030\005 \003(" + "\01324.google.api.expr.v1alpha1.SourceInfo." + "MacroCallsEntryR\nmacroCalls\032<\n\016Positions" + "Entry\022\020\n\003key\030\001 \001(\003R\003key\022\024\n\005value\030\002 \001(\005R\005" + "value:\0028\001\032]\n\017MacroCallsEntry\022\020\n\003key\030\001 \001(" + "\003R\003key\0224\n\005value\030\002 \001(\0132\036.google.api.expr." + "v1alpha1.ExprR\005value:\0028\001\"p\n\016SourcePositi" + "on\022\032\n\010location\030\001 \001(\tR\010location\022\026\n\006offset" + "\030\002 \001(\005R\006offset\022\022\n\004line\030\003 \001(\005R\004line\022\026\n\006co" + "lumn\030\004 \001(\005R\006columnBn\n\034com.google.api.exp" + "r.v1alpha1B\013SyntaxProtoP\001Z_impl_.expr_; +} +const ::google::api::expr::v1alpha1::SourceInfo& +ParsedExpr::_Internal::source_info(const ParsedExpr* msg) { + return *msg->_impl_.source_info_; +} +ParsedExpr::ParsedExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.ParsedExpr) +} +ParsedExpr::ParsedExpr(const ParsedExpr& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ParsedExpr* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.expr_){nullptr} + , decltype(_impl_.source_info_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_expr()) { + _this->_impl_.expr_ = new ::google::api::expr::v1alpha1::Expr(*from._impl_.expr_); + } + if (from._internal_has_source_info()) { + _this->_impl_.source_info_ = new ::google::api::expr::v1alpha1::SourceInfo(*from._impl_.source_info_); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.ParsedExpr) +} + +inline void ParsedExpr::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.expr_){nullptr} + , decltype(_impl_.source_info_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +ParsedExpr::~ParsedExpr() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.ParsedExpr) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ParsedExpr::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.expr_; + if (this != internal_default_instance()) delete _impl_.source_info_; +} + +void ParsedExpr::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ParsedExpr::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.ParsedExpr) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.expr_ != nullptr) { + delete _impl_.expr_; + } + _impl_.expr_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.source_info_ != nullptr) { + delete _impl_.source_info_; + } + _impl_.source_info_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ParsedExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.api.expr.v1alpha1.Expr expr = 2 [json_name = "expr"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_source_info(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ParsedExpr::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.ParsedExpr) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.api.expr.v1alpha1.Expr expr = 2 [json_name = "expr"]; + if (this->_internal_has_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::expr(this), + _Internal::expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; + if (this->_internal_has_source_info()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::source_info(this), + _Internal::source_info(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.ParsedExpr) + return target; +} + +size_t ParsedExpr::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.ParsedExpr) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.api.expr.v1alpha1.Expr expr = 2 [json_name = "expr"]; + if (this->_internal_has_expr()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.expr_); + } + + // .google.api.expr.v1alpha1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; + if (this->_internal_has_source_info()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.source_info_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ParsedExpr::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ParsedExpr::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ParsedExpr::GetClassData() const { return &_class_data_; } + + +void ParsedExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.ParsedExpr) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_expr()) { + _this->_internal_mutable_expr()->::google::api::expr::v1alpha1::Expr::MergeFrom( + from._internal_expr()); + } + if (from._internal_has_source_info()) { + _this->_internal_mutable_source_info()->::google::api::expr::v1alpha1::SourceInfo::MergeFrom( + from._internal_source_info()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ParsedExpr::CopyFrom(const ParsedExpr& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.ParsedExpr) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ParsedExpr::IsInitialized() const { + return true; +} + +void ParsedExpr::InternalSwap(ParsedExpr* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_.source_info_) + + sizeof(ParsedExpr::_impl_.source_info_) + - PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_.expr_)>( + reinterpret_cast(&_impl_.expr_), + reinterpret_cast(&other->_impl_.expr_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ParsedExpr::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[0]); +} + +// =================================================================== + +class Expr_Ident::_Internal { + public: +}; + +Expr_Ident::Expr_Ident(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Expr.Ident) +} +Expr_Ident::Expr_Ident(const Expr_Ident& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Expr_Ident* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Expr.Ident) +} + +inline void Expr_Ident::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Expr_Ident::~Expr_Ident() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Expr.Ident) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Expr_Ident::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void Expr_Ident::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Expr_Ident::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Expr.Ident) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_Ident::_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, "google.api.expr.v1alpha1.Expr.Ident.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* Expr_Ident::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Expr.Ident) + 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, + "google.api.expr.v1alpha1.Expr.Ident.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.Expr.Ident) + return target; +} + +size_t Expr_Ident::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Expr.Ident) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_Ident::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Expr_Ident::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_Ident::GetClassData() const { return &_class_data_; } + + +void Expr_Ident::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr.Ident) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Expr_Ident::CopyFrom(const Expr_Ident& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Expr.Ident) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Expr_Ident::IsInitialized() const { + return true; +} + +void Expr_Ident::InternalSwap(Expr_Ident* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr_Ident::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[1]); +} + +// =================================================================== + +class Expr_Select::_Internal { + public: + static const ::google::api::expr::v1alpha1::Expr& operand(const Expr_Select* msg); +}; + +const ::google::api::expr::v1alpha1::Expr& +Expr_Select::_Internal::operand(const Expr_Select* msg) { + return *msg->_impl_.operand_; +} +Expr_Select::Expr_Select(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Expr.Select) +} +Expr_Select::Expr_Select(const Expr_Select& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Expr_Select* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.field_){} + , decltype(_impl_.operand_){nullptr} + , decltype(_impl_.test_only_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.field_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.field_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_field().empty()) { + _this->_impl_.field_.Set(from._internal_field(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_operand()) { + _this->_impl_.operand_ = new ::google::api::expr::v1alpha1::Expr(*from._impl_.operand_); + } + _this->_impl_.test_only_ = from._impl_.test_only_; + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Expr.Select) +} + +inline void Expr_Select::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.field_){} + , decltype(_impl_.operand_){nullptr} + , decltype(_impl_.test_only_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.field_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.field_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Expr_Select::~Expr_Select() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Expr.Select) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Expr_Select::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.field_.Destroy(); + if (this != internal_default_instance()) delete _impl_.operand_; +} + +void Expr_Select::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Expr_Select::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Expr.Select) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.field_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.operand_ != nullptr) { + delete _impl_.operand_; + } + _impl_.operand_ = nullptr; + _impl_.test_only_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_Select::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.api.expr.v1alpha1.Expr operand = 1 [json_name = "operand"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_operand(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string field = 2 [json_name = "field"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_field(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Expr.Select.field")); + } else + goto handle_unusual; + continue; + // bool test_only = 3 [json_name = "testOnly"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.test_only_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* Expr_Select::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Expr.Select) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.api.expr.v1alpha1.Expr operand = 1 [json_name = "operand"]; + if (this->_internal_has_operand()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::operand(this), + _Internal::operand(this).GetCachedSize(), target, stream); + } + + // string field = 2 [json_name = "field"]; + if (!this->_internal_field().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_field().data(), static_cast(this->_internal_field().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Expr.Select.field"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_field(), target); + } + + // bool test_only = 3 [json_name = "testOnly"]; + if (this->_internal_test_only() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_test_only(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.Expr.Select) + return target; +} + +size_t Expr_Select::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Expr.Select) + 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 field = 2 [json_name = "field"]; + if (!this->_internal_field().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_field()); + } + + // .google.api.expr.v1alpha1.Expr operand = 1 [json_name = "operand"]; + if (this->_internal_has_operand()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.operand_); + } + + // bool test_only = 3 [json_name = "testOnly"]; + if (this->_internal_test_only() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_Select::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Expr_Select::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_Select::GetClassData() const { return &_class_data_; } + + +void Expr_Select::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr.Select) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_field().empty()) { + _this->_internal_set_field(from._internal_field()); + } + if (from._internal_has_operand()) { + _this->_internal_mutable_operand()->::google::api::expr::v1alpha1::Expr::MergeFrom( + from._internal_operand()); + } + if (from._internal_test_only() != 0) { + _this->_internal_set_test_only(from._internal_test_only()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Expr_Select::CopyFrom(const Expr_Select& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Expr.Select) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Expr_Select::IsInitialized() const { + return true; +} + +void Expr_Select::InternalSwap(Expr_Select* 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( + &_impl_.field_, lhs_arena, + &other->_impl_.field_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_.test_only_) + + sizeof(Expr_Select::_impl_.test_only_) + - PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_.operand_)>( + reinterpret_cast(&_impl_.operand_), + reinterpret_cast(&other->_impl_.operand_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr_Select::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[2]); +} + +// =================================================================== + +class Expr_Call::_Internal { + public: + static const ::google::api::expr::v1alpha1::Expr& target(const Expr_Call* msg); +}; + +const ::google::api::expr::v1alpha1::Expr& +Expr_Call::_Internal::target(const Expr_Call* msg) { + return *msg->_impl_.target_; +} +Expr_Call::Expr_Call(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Expr.Call) +} +Expr_Call::Expr_Call(const Expr_Call& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Expr_Call* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.args_){from._impl_.args_} + , decltype(_impl_.function_){} + , decltype(_impl_.target_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.function_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.function_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_function().empty()) { + _this->_impl_.function_.Set(from._internal_function(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_target()) { + _this->_impl_.target_ = new ::google::api::expr::v1alpha1::Expr(*from._impl_.target_); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Expr.Call) +} + +inline void Expr_Call::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.args_){arena} + , decltype(_impl_.function_){} + , decltype(_impl_.target_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.function_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.function_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Expr_Call::~Expr_Call() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Expr.Call) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Expr_Call::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.args_.~RepeatedPtrField(); + _impl_.function_.Destroy(); + if (this != internal_default_instance()) delete _impl_.target_; +} + +void Expr_Call::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Expr_Call::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Expr.Call) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.args_.Clear(); + _impl_.function_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.target_ != nullptr) { + delete _impl_.target_; + } + _impl_.target_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_Call::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.api.expr.v1alpha1.Expr target = 1 [json_name = "target"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_target(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string function = 2 [json_name = "function"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_function(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Expr.Call.function")); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1alpha1.Expr args = 3 [json_name = "args"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_args(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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* Expr_Call::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Expr.Call) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.api.expr.v1alpha1.Expr target = 1 [json_name = "target"]; + if (this->_internal_has_target()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::target(this), + _Internal::target(this).GetCachedSize(), target, stream); + } + + // string function = 2 [json_name = "function"]; + if (!this->_internal_function().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_function().data(), static_cast(this->_internal_function().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Expr.Call.function"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_function(), target); + } + + // repeated .google.api.expr.v1alpha1.Expr args = 3 [json_name = "args"]; + for (unsigned i = 0, + n = static_cast(this->_internal_args_size()); i < n; i++) { + const auto& repfield = this->_internal_args(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.Expr.Call) + return target; +} + +size_t Expr_Call::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Expr.Call) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.expr.v1alpha1.Expr args = 3 [json_name = "args"]; + total_size += 1UL * this->_internal_args_size(); + for (const auto& msg : this->_impl_.args_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string function = 2 [json_name = "function"]; + if (!this->_internal_function().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_function()); + } + + // .google.api.expr.v1alpha1.Expr target = 1 [json_name = "target"]; + if (this->_internal_has_target()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.target_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_Call::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Expr_Call::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_Call::GetClassData() const { return &_class_data_; } + + +void Expr_Call::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr.Call) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.args_.MergeFrom(from._impl_.args_); + if (!from._internal_function().empty()) { + _this->_internal_set_function(from._internal_function()); + } + if (from._internal_has_target()) { + _this->_internal_mutable_target()->::google::api::expr::v1alpha1::Expr::MergeFrom( + from._internal_target()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Expr_Call::CopyFrom(const Expr_Call& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Expr.Call) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Expr_Call::IsInitialized() const { + return true; +} + +void Expr_Call::InternalSwap(Expr_Call* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.args_.InternalSwap(&other->_impl_.args_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.function_, lhs_arena, + &other->_impl_.function_, rhs_arena + ); + swap(_impl_.target_, other->_impl_.target_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr_Call::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[3]); +} + +// =================================================================== + +class Expr_CreateList::_Internal { + public: +}; + +Expr_CreateList::Expr_CreateList(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Expr.CreateList) +} +Expr_CreateList::Expr_CreateList(const Expr_CreateList& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Expr_CreateList* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.elements_){from._impl_.elements_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Expr.CreateList) +} + +inline void Expr_CreateList::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.elements_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Expr_CreateList::~Expr_CreateList() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Expr.CreateList) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Expr_CreateList::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.elements_.~RepeatedPtrField(); +} + +void Expr_CreateList::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Expr_CreateList::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Expr.CreateList) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.elements_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_CreateList::_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) { + // repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_elements(), 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* Expr_CreateList::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Expr.CreateList) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; + for (unsigned i = 0, + n = static_cast(this->_internal_elements_size()); i < n; i++) { + const auto& repfield = this->_internal_elements(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.Expr.CreateList) + return target; +} + +size_t Expr_CreateList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Expr.CreateList) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; + total_size += 1UL * this->_internal_elements_size(); + for (const auto& msg : this->_impl_.elements_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_CreateList::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Expr_CreateList::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_CreateList::GetClassData() const { return &_class_data_; } + + +void Expr_CreateList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr.CreateList) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.elements_.MergeFrom(from._impl_.elements_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Expr_CreateList::CopyFrom(const Expr_CreateList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Expr.CreateList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Expr_CreateList::IsInitialized() const { + return true; +} + +void Expr_CreateList::InternalSwap(Expr_CreateList* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.elements_.InternalSwap(&other->_impl_.elements_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr_CreateList::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[4]); +} + +// =================================================================== + +class Expr_CreateStruct_Entry::_Internal { + public: + static const ::google::api::expr::v1alpha1::Expr& map_key(const Expr_CreateStruct_Entry* msg); + static const ::google::api::expr::v1alpha1::Expr& value(const Expr_CreateStruct_Entry* msg); +}; + +const ::google::api::expr::v1alpha1::Expr& +Expr_CreateStruct_Entry::_Internal::map_key(const Expr_CreateStruct_Entry* msg) { + return *msg->_impl_.key_kind_.map_key_; +} +const ::google::api::expr::v1alpha1::Expr& +Expr_CreateStruct_Entry::_Internal::value(const Expr_CreateStruct_Entry* msg) { + return *msg->_impl_.value_; +} +void Expr_CreateStruct_Entry::set_allocated_map_key(::google::api::expr::v1alpha1::Expr* map_key) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_key_kind(); + if (map_key) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(map_key); + if (message_arena != submessage_arena) { + map_key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, map_key, submessage_arena); + } + set_has_map_key(); + _impl_.key_kind_.map_key_ = map_key; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.map_key) +} +Expr_CreateStruct_Entry::Expr_CreateStruct_Entry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) +} +Expr_CreateStruct_Entry::Expr_CreateStruct_Entry(const Expr_CreateStruct_Entry& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Expr_CreateStruct_Entry* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.value_){nullptr} + , decltype(_impl_.id_){} + , decltype(_impl_.optional_entry_){} + , decltype(_impl_.key_kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_value()) { + _this->_impl_.value_ = new ::google::api::expr::v1alpha1::Expr(*from._impl_.value_); + } + ::memcpy(&_impl_.id_, &from._impl_.id_, + static_cast(reinterpret_cast(&_impl_.optional_entry_) - + reinterpret_cast(&_impl_.id_)) + sizeof(_impl_.optional_entry_)); + clear_has_key_kind(); + switch (from.key_kind_case()) { + case kFieldKey: { + _this->_internal_set_field_key(from._internal_field_key()); + break; + } + case kMapKey: { + _this->_internal_mutable_map_key()->::google::api::expr::v1alpha1::Expr::MergeFrom( + from._internal_map_key()); + break; + } + case KEY_KIND_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) +} + +inline void Expr_CreateStruct_Entry::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.value_){nullptr} + , decltype(_impl_.id_){int64_t{0}} + , decltype(_impl_.optional_entry_){false} + , decltype(_impl_.key_kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_key_kind(); +} + +Expr_CreateStruct_Entry::~Expr_CreateStruct_Entry() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Expr_CreateStruct_Entry::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.value_; + if (has_key_kind()) { + clear_key_kind(); + } +} + +void Expr_CreateStruct_Entry::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Expr_CreateStruct_Entry::clear_key_kind() { +// @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) + switch (key_kind_case()) { + case kFieldKey: { + _impl_.key_kind_.field_key_.Destroy(); + break; + } + case kMapKey: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.key_kind_.map_key_; + } + break; + } + case KEY_KIND_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = KEY_KIND_NOT_SET; +} + + +void Expr_CreateStruct_Entry::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.value_ != nullptr) { + delete _impl_.value_; + } + _impl_.value_ = nullptr; + ::memset(&_impl_.id_, 0, static_cast( + reinterpret_cast(&_impl_.optional_entry_) - + reinterpret_cast(&_impl_.id_)) + sizeof(_impl_.optional_entry_)); + clear_key_kind(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_CreateStruct_Entry::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int64 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string field_key = 2 [json_name = "fieldKey"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_field_key(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Expr.CreateStruct.Entry.field_key")); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr map_key = 3 [json_name = "mapKey"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_map_key(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool optional_entry = 5 [json_name = "optionalEntry"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + _impl_.optional_entry_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* Expr_CreateStruct_Entry::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int64 id = 1 [json_name = "id"]; + if (this->_internal_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_id(), target); + } + + // string field_key = 2 [json_name = "fieldKey"]; + if (_internal_has_field_key()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_field_key().data(), static_cast(this->_internal_field_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Expr.CreateStruct.Entry.field_key"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_field_key(), target); + } + + // .google.api.expr.v1alpha1.Expr map_key = 3 [json_name = "mapKey"]; + if (_internal_has_map_key()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::map_key(this), + _Internal::map_key(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"]; + if (this->_internal_has_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::value(this), + _Internal::value(this).GetCachedSize(), target, stream); + } + + // bool optional_entry = 5 [json_name = "optionalEntry"]; + if (this->_internal_optional_entry() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_optional_entry(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) + return target; +} + +size_t Expr_CreateStruct_Entry::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"]; + if (this->_internal_has_value()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.value_); + } + + // int64 id = 1 [json_name = "id"]; + if (this->_internal_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_id()); + } + + // bool optional_entry = 5 [json_name = "optionalEntry"]; + if (this->_internal_optional_entry() != 0) { + total_size += 1 + 1; + } + + switch (key_kind_case()) { + // string field_key = 2 [json_name = "fieldKey"]; + case kFieldKey: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_field_key()); + break; + } + // .google.api.expr.v1alpha1.Expr map_key = 3 [json_name = "mapKey"]; + case kMapKey: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.key_kind_.map_key_); + break; + } + case KEY_KIND_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_CreateStruct_Entry::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Expr_CreateStruct_Entry::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_CreateStruct_Entry::GetClassData() const { return &_class_data_; } + + +void Expr_CreateStruct_Entry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_value()) { + _this->_internal_mutable_value()->::google::api::expr::v1alpha1::Expr::MergeFrom( + from._internal_value()); + } + if (from._internal_id() != 0) { + _this->_internal_set_id(from._internal_id()); + } + if (from._internal_optional_entry() != 0) { + _this->_internal_set_optional_entry(from._internal_optional_entry()); + } + switch (from.key_kind_case()) { + case kFieldKey: { + _this->_internal_set_field_key(from._internal_field_key()); + break; + } + case kMapKey: { + _this->_internal_mutable_map_key()->::google::api::expr::v1alpha1::Expr::MergeFrom( + from._internal_map_key()); + break; + } + case KEY_KIND_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Expr_CreateStruct_Entry::CopyFrom(const Expr_CreateStruct_Entry& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Expr_CreateStruct_Entry::IsInitialized() const { + return true; +} + +void Expr_CreateStruct_Entry::InternalSwap(Expr_CreateStruct_Entry* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.optional_entry_) + + sizeof(Expr_CreateStruct_Entry::_impl_.optional_entry_) + - PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.value_)>( + reinterpret_cast(&_impl_.value_), + reinterpret_cast(&other->_impl_.value_)); + swap(_impl_.key_kind_, other->_impl_.key_kind_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr_CreateStruct_Entry::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[5]); +} + +// =================================================================== + +class Expr_CreateStruct::_Internal { + public: +}; + +Expr_CreateStruct::Expr_CreateStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Expr.CreateStruct) +} +Expr_CreateStruct::Expr_CreateStruct(const Expr_CreateStruct& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Expr_CreateStruct* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.entries_){from._impl_.entries_} + , decltype(_impl_.message_name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.message_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.message_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message_name().empty()) { + _this->_impl_.message_name_.Set(from._internal_message_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Expr.CreateStruct) +} + +inline void Expr_CreateStruct::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.entries_){arena} + , decltype(_impl_.message_name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.message_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.message_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Expr_CreateStruct::~Expr_CreateStruct() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Expr.CreateStruct) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Expr_CreateStruct::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.entries_.~RepeatedPtrField(); + _impl_.message_name_.Destroy(); +} + +void Expr_CreateStruct::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Expr_CreateStruct::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Expr.CreateStruct) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.entries_.Clear(); + _impl_.message_name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_CreateStruct::_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 message_name = 1 [json_name = "messageName"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_message_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Expr.CreateStruct.message_name")); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_entries(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* Expr_CreateStruct::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Expr.CreateStruct) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string message_name = 1 [json_name = "messageName"]; + if (!this->_internal_message_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message_name().data(), static_cast(this->_internal_message_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Expr.CreateStruct.message_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_message_name(), target); + } + + // repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; + for (unsigned i = 0, + n = static_cast(this->_internal_entries_size()); i < n; i++) { + const auto& repfield = this->_internal_entries(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.Expr.CreateStruct) + return target; +} + +size_t Expr_CreateStruct::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Expr.CreateStruct) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; + total_size += 1UL * this->_internal_entries_size(); + for (const auto& msg : this->_impl_.entries_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string message_name = 1 [json_name = "messageName"]; + if (!this->_internal_message_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_CreateStruct::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Expr_CreateStruct::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_CreateStruct::GetClassData() const { return &_class_data_; } + + +void Expr_CreateStruct::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr.CreateStruct) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.entries_.MergeFrom(from._impl_.entries_); + if (!from._internal_message_name().empty()) { + _this->_internal_set_message_name(from._internal_message_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Expr_CreateStruct::CopyFrom(const Expr_CreateStruct& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Expr.CreateStruct) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Expr_CreateStruct::IsInitialized() const { + return true; +} + +void Expr_CreateStruct::InternalSwap(Expr_CreateStruct* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.entries_.InternalSwap(&other->_impl_.entries_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.message_name_, lhs_arena, + &other->_impl_.message_name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr_CreateStruct::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[6]); +} + +// =================================================================== + +class Expr_Comprehension::_Internal { + public: + static const ::google::api::expr::v1alpha1::Expr& iter_range(const Expr_Comprehension* msg); + static const ::google::api::expr::v1alpha1::Expr& accu_init(const Expr_Comprehension* msg); + static const ::google::api::expr::v1alpha1::Expr& loop_condition(const Expr_Comprehension* msg); + static const ::google::api::expr::v1alpha1::Expr& loop_step(const Expr_Comprehension* msg); + static const ::google::api::expr::v1alpha1::Expr& result(const Expr_Comprehension* msg); +}; + +const ::google::api::expr::v1alpha1::Expr& +Expr_Comprehension::_Internal::iter_range(const Expr_Comprehension* msg) { + return *msg->_impl_.iter_range_; +} +const ::google::api::expr::v1alpha1::Expr& +Expr_Comprehension::_Internal::accu_init(const Expr_Comprehension* msg) { + return *msg->_impl_.accu_init_; +} +const ::google::api::expr::v1alpha1::Expr& +Expr_Comprehension::_Internal::loop_condition(const Expr_Comprehension* msg) { + return *msg->_impl_.loop_condition_; +} +const ::google::api::expr::v1alpha1::Expr& +Expr_Comprehension::_Internal::loop_step(const Expr_Comprehension* msg) { + return *msg->_impl_.loop_step_; +} +const ::google::api::expr::v1alpha1::Expr& +Expr_Comprehension::_Internal::result(const Expr_Comprehension* msg) { + return *msg->_impl_.result_; +} +Expr_Comprehension::Expr_Comprehension(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Expr.Comprehension) +} +Expr_Comprehension::Expr_Comprehension(const Expr_Comprehension& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Expr_Comprehension* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.iter_var_){} + , decltype(_impl_.accu_var_){} + , decltype(_impl_.iter_range_){nullptr} + , decltype(_impl_.accu_init_){nullptr} + , decltype(_impl_.loop_condition_){nullptr} + , decltype(_impl_.loop_step_){nullptr} + , decltype(_impl_.result_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.iter_var_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.iter_var_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_iter_var().empty()) { + _this->_impl_.iter_var_.Set(from._internal_iter_var(), + _this->GetArenaForAllocation()); + } + _impl_.accu_var_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.accu_var_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_accu_var().empty()) { + _this->_impl_.accu_var_.Set(from._internal_accu_var(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_iter_range()) { + _this->_impl_.iter_range_ = new ::google::api::expr::v1alpha1::Expr(*from._impl_.iter_range_); + } + if (from._internal_has_accu_init()) { + _this->_impl_.accu_init_ = new ::google::api::expr::v1alpha1::Expr(*from._impl_.accu_init_); + } + if (from._internal_has_loop_condition()) { + _this->_impl_.loop_condition_ = new ::google::api::expr::v1alpha1::Expr(*from._impl_.loop_condition_); + } + if (from._internal_has_loop_step()) { + _this->_impl_.loop_step_ = new ::google::api::expr::v1alpha1::Expr(*from._impl_.loop_step_); + } + if (from._internal_has_result()) { + _this->_impl_.result_ = new ::google::api::expr::v1alpha1::Expr(*from._impl_.result_); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Expr.Comprehension) +} + +inline void Expr_Comprehension::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.iter_var_){} + , decltype(_impl_.accu_var_){} + , decltype(_impl_.iter_range_){nullptr} + , decltype(_impl_.accu_init_){nullptr} + , decltype(_impl_.loop_condition_){nullptr} + , decltype(_impl_.loop_step_){nullptr} + , decltype(_impl_.result_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.iter_var_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.iter_var_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.accu_var_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.accu_var_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Expr_Comprehension::~Expr_Comprehension() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Expr.Comprehension) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Expr_Comprehension::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.iter_var_.Destroy(); + _impl_.accu_var_.Destroy(); + if (this != internal_default_instance()) delete _impl_.iter_range_; + if (this != internal_default_instance()) delete _impl_.accu_init_; + if (this != internal_default_instance()) delete _impl_.loop_condition_; + if (this != internal_default_instance()) delete _impl_.loop_step_; + if (this != internal_default_instance()) delete _impl_.result_; +} + +void Expr_Comprehension::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Expr_Comprehension::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Expr.Comprehension) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.iter_var_.ClearToEmpty(); + _impl_.accu_var_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.iter_range_ != nullptr) { + delete _impl_.iter_range_; + } + _impl_.iter_range_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.accu_init_ != nullptr) { + delete _impl_.accu_init_; + } + _impl_.accu_init_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.loop_condition_ != nullptr) { + delete _impl_.loop_condition_; + } + _impl_.loop_condition_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.loop_step_ != nullptr) { + delete _impl_.loop_step_; + } + _impl_.loop_step_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.result_ != nullptr) { + delete _impl_.result_; + } + _impl_.result_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_Comprehension::_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 iter_var = 1 [json_name = "iterVar"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_iter_var(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Expr.Comprehension.iter_var")); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr iter_range = 2 [json_name = "iterRange"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_iter_range(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string accu_var = 3 [json_name = "accuVar"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_accu_var(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Expr.Comprehension.accu_var")); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr accu_init = 4 [json_name = "accuInit"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_accu_init(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr loop_condition = 5 [json_name = "loopCondition"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_loop_condition(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr loop_step = 6 [json_name = "loopStep"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_loop_step(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr result = 7 [json_name = "result"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_result(), 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* Expr_Comprehension::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Expr.Comprehension) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string iter_var = 1 [json_name = "iterVar"]; + if (!this->_internal_iter_var().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_iter_var().data(), static_cast(this->_internal_iter_var().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Expr.Comprehension.iter_var"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_iter_var(), target); + } + + // .google.api.expr.v1alpha1.Expr iter_range = 2 [json_name = "iterRange"]; + if (this->_internal_has_iter_range()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::iter_range(this), + _Internal::iter_range(this).GetCachedSize(), target, stream); + } + + // string accu_var = 3 [json_name = "accuVar"]; + if (!this->_internal_accu_var().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_accu_var().data(), static_cast(this->_internal_accu_var().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Expr.Comprehension.accu_var"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_accu_var(), target); + } + + // .google.api.expr.v1alpha1.Expr accu_init = 4 [json_name = "accuInit"]; + if (this->_internal_has_accu_init()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::accu_init(this), + _Internal::accu_init(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Expr loop_condition = 5 [json_name = "loopCondition"]; + if (this->_internal_has_loop_condition()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::loop_condition(this), + _Internal::loop_condition(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Expr loop_step = 6 [json_name = "loopStep"]; + if (this->_internal_has_loop_step()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::loop_step(this), + _Internal::loop_step(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Expr result = 7 [json_name = "result"]; + if (this->_internal_has_result()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::result(this), + _Internal::result(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:google.api.expr.v1alpha1.Expr.Comprehension) + return target; +} + +size_t Expr_Comprehension::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Expr.Comprehension) + 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 iter_var = 1 [json_name = "iterVar"]; + if (!this->_internal_iter_var().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_iter_var()); + } + + // string accu_var = 3 [json_name = "accuVar"]; + if (!this->_internal_accu_var().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_accu_var()); + } + + // .google.api.expr.v1alpha1.Expr iter_range = 2 [json_name = "iterRange"]; + if (this->_internal_has_iter_range()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.iter_range_); + } + + // .google.api.expr.v1alpha1.Expr accu_init = 4 [json_name = "accuInit"]; + if (this->_internal_has_accu_init()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.accu_init_); + } + + // .google.api.expr.v1alpha1.Expr loop_condition = 5 [json_name = "loopCondition"]; + if (this->_internal_has_loop_condition()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.loop_condition_); + } + + // .google.api.expr.v1alpha1.Expr loop_step = 6 [json_name = "loopStep"]; + if (this->_internal_has_loop_step()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.loop_step_); + } + + // .google.api.expr.v1alpha1.Expr result = 7 [json_name = "result"]; + if (this->_internal_has_result()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.result_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_Comprehension::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Expr_Comprehension::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_Comprehension::GetClassData() const { return &_class_data_; } + + +void Expr_Comprehension::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr.Comprehension) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_iter_var().empty()) { + _this->_internal_set_iter_var(from._internal_iter_var()); + } + if (!from._internal_accu_var().empty()) { + _this->_internal_set_accu_var(from._internal_accu_var()); + } + if (from._internal_has_iter_range()) { + _this->_internal_mutable_iter_range()->::google::api::expr::v1alpha1::Expr::MergeFrom( + from._internal_iter_range()); + } + if (from._internal_has_accu_init()) { + _this->_internal_mutable_accu_init()->::google::api::expr::v1alpha1::Expr::MergeFrom( + from._internal_accu_init()); + } + if (from._internal_has_loop_condition()) { + _this->_internal_mutable_loop_condition()->::google::api::expr::v1alpha1::Expr::MergeFrom( + from._internal_loop_condition()); + } + if (from._internal_has_loop_step()) { + _this->_internal_mutable_loop_step()->::google::api::expr::v1alpha1::Expr::MergeFrom( + from._internal_loop_step()); + } + if (from._internal_has_result()) { + _this->_internal_mutable_result()->::google::api::expr::v1alpha1::Expr::MergeFrom( + from._internal_result()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Expr_Comprehension::CopyFrom(const Expr_Comprehension& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Expr.Comprehension) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Expr_Comprehension::IsInitialized() const { + return true; +} + +void Expr_Comprehension::InternalSwap(Expr_Comprehension* 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( + &_impl_.iter_var_, lhs_arena, + &other->_impl_.iter_var_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.accu_var_, lhs_arena, + &other->_impl_.accu_var_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.result_) + + sizeof(Expr_Comprehension::_impl_.result_) + - PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.iter_range_)>( + reinterpret_cast(&_impl_.iter_range_), + reinterpret_cast(&other->_impl_.iter_range_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr_Comprehension::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[7]); +} + +// =================================================================== + +class Expr::_Internal { + public: + static const ::google::api::expr::v1alpha1::Constant& const_expr(const Expr* msg); + static const ::google::api::expr::v1alpha1::Expr_Ident& ident_expr(const Expr* msg); + static const ::google::api::expr::v1alpha1::Expr_Select& select_expr(const Expr* msg); + static const ::google::api::expr::v1alpha1::Expr_Call& call_expr(const Expr* msg); + static const ::google::api::expr::v1alpha1::Expr_CreateList& list_expr(const Expr* msg); + static const ::google::api::expr::v1alpha1::Expr_CreateStruct& struct_expr(const Expr* msg); + static const ::google::api::expr::v1alpha1::Expr_Comprehension& comprehension_expr(const Expr* msg); +}; + +const ::google::api::expr::v1alpha1::Constant& +Expr::_Internal::const_expr(const Expr* msg) { + return *msg->_impl_.expr_kind_.const_expr_; +} +const ::google::api::expr::v1alpha1::Expr_Ident& +Expr::_Internal::ident_expr(const Expr* msg) { + return *msg->_impl_.expr_kind_.ident_expr_; +} +const ::google::api::expr::v1alpha1::Expr_Select& +Expr::_Internal::select_expr(const Expr* msg) { + return *msg->_impl_.expr_kind_.select_expr_; +} +const ::google::api::expr::v1alpha1::Expr_Call& +Expr::_Internal::call_expr(const Expr* msg) { + return *msg->_impl_.expr_kind_.call_expr_; +} +const ::google::api::expr::v1alpha1::Expr_CreateList& +Expr::_Internal::list_expr(const Expr* msg) { + return *msg->_impl_.expr_kind_.list_expr_; +} +const ::google::api::expr::v1alpha1::Expr_CreateStruct& +Expr::_Internal::struct_expr(const Expr* msg) { + return *msg->_impl_.expr_kind_.struct_expr_; +} +const ::google::api::expr::v1alpha1::Expr_Comprehension& +Expr::_Internal::comprehension_expr(const Expr* msg) { + return *msg->_impl_.expr_kind_.comprehension_expr_; +} +void Expr::set_allocated_const_expr(::google::api::expr::v1alpha1::Constant* const_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_expr_kind(); + if (const_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(const_expr); + if (message_arena != submessage_arena) { + const_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, const_expr, submessage_arena); + } + set_has_const_expr(); + _impl_.expr_kind_.const_expr_ = const_expr; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.const_expr) +} +void Expr::set_allocated_ident_expr(::google::api::expr::v1alpha1::Expr_Ident* ident_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_expr_kind(); + if (ident_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(ident_expr); + if (message_arena != submessage_arena) { + ident_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, ident_expr, submessage_arena); + } + set_has_ident_expr(); + _impl_.expr_kind_.ident_expr_ = ident_expr; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.ident_expr) +} +void Expr::set_allocated_select_expr(::google::api::expr::v1alpha1::Expr_Select* select_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_expr_kind(); + if (select_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(select_expr); + if (message_arena != submessage_arena) { + select_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, select_expr, submessage_arena); + } + set_has_select_expr(); + _impl_.expr_kind_.select_expr_ = select_expr; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.select_expr) +} +void Expr::set_allocated_call_expr(::google::api::expr::v1alpha1::Expr_Call* call_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_expr_kind(); + if (call_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(call_expr); + if (message_arena != submessage_arena) { + call_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, call_expr, submessage_arena); + } + set_has_call_expr(); + _impl_.expr_kind_.call_expr_ = call_expr; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.call_expr) +} +void Expr::set_allocated_list_expr(::google::api::expr::v1alpha1::Expr_CreateList* list_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_expr_kind(); + if (list_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(list_expr); + if (message_arena != submessage_arena) { + list_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, list_expr, submessage_arena); + } + set_has_list_expr(); + _impl_.expr_kind_.list_expr_ = list_expr; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.list_expr) +} +void Expr::set_allocated_struct_expr(::google::api::expr::v1alpha1::Expr_CreateStruct* struct_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_expr_kind(); + if (struct_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(struct_expr); + if (message_arena != submessage_arena) { + struct_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, struct_expr, submessage_arena); + } + set_has_struct_expr(); + _impl_.expr_kind_.struct_expr_ = struct_expr; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.struct_expr) +} +void Expr::set_allocated_comprehension_expr(::google::api::expr::v1alpha1::Expr_Comprehension* comprehension_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_expr_kind(); + if (comprehension_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(comprehension_expr); + if (message_arena != submessage_arena) { + comprehension_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, comprehension_expr, submessage_arena); + } + set_has_comprehension_expr(); + _impl_.expr_kind_.comprehension_expr_ = comprehension_expr; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.comprehension_expr) +} +Expr::Expr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Expr) +} +Expr::Expr(const Expr& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Expr* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.expr_kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.id_ = from._impl_.id_; + clear_has_expr_kind(); + switch (from.expr_kind_case()) { + case kConstExpr: { + _this->_internal_mutable_const_expr()->::google::api::expr::v1alpha1::Constant::MergeFrom( + from._internal_const_expr()); + break; + } + case kIdentExpr: { + _this->_internal_mutable_ident_expr()->::google::api::expr::v1alpha1::Expr_Ident::MergeFrom( + from._internal_ident_expr()); + break; + } + case kSelectExpr: { + _this->_internal_mutable_select_expr()->::google::api::expr::v1alpha1::Expr_Select::MergeFrom( + from._internal_select_expr()); + break; + } + case kCallExpr: { + _this->_internal_mutable_call_expr()->::google::api::expr::v1alpha1::Expr_Call::MergeFrom( + from._internal_call_expr()); + break; + } + case kListExpr: { + _this->_internal_mutable_list_expr()->::google::api::expr::v1alpha1::Expr_CreateList::MergeFrom( + from._internal_list_expr()); + break; + } + case kStructExpr: { + _this->_internal_mutable_struct_expr()->::google::api::expr::v1alpha1::Expr_CreateStruct::MergeFrom( + from._internal_struct_expr()); + break; + } + case kComprehensionExpr: { + _this->_internal_mutable_comprehension_expr()->::google::api::expr::v1alpha1::Expr_Comprehension::MergeFrom( + from._internal_comprehension_expr()); + break; + } + case EXPR_KIND_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Expr) +} + +inline void Expr::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){int64_t{0}} + , decltype(_impl_.expr_kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_expr_kind(); +} + +Expr::~Expr() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Expr) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Expr::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_expr_kind()) { + clear_expr_kind(); + } +} + +void Expr::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Expr::clear_expr_kind() { +// @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1alpha1.Expr) + switch (expr_kind_case()) { + case kConstExpr: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.const_expr_; + } + break; + } + case kIdentExpr: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.ident_expr_; + } + break; + } + case kSelectExpr: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.select_expr_; + } + break; + } + case kCallExpr: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.call_expr_; + } + break; + } + case kListExpr: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.list_expr_; + } + break; + } + case kStructExpr: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.struct_expr_; + } + break; + } + case kComprehensionExpr: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.comprehension_expr_; + } + break; + } + case EXPR_KIND_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = EXPR_KIND_NOT_SET; +} + + +void Expr::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Expr) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_ = int64_t{0}; + clear_expr_kind(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int64 id = 2 [json_name = "id"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Constant const_expr = 3 [json_name = "constExpr"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_const_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_ident_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_select_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr.Call call_expr = 6 [json_name = "callExpr"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_call_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_list_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_struct_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_comprehension_expr(), 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* Expr::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Expr) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int64 id = 2 [json_name = "id"]; + if (this->_internal_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_id(), target); + } + + // .google.api.expr.v1alpha1.Constant const_expr = 3 [json_name = "constExpr"]; + if (_internal_has_const_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::const_expr(this), + _Internal::const_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; + if (_internal_has_ident_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::ident_expr(this), + _Internal::ident_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; + if (_internal_has_select_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::select_expr(this), + _Internal::select_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Expr.Call call_expr = 6 [json_name = "callExpr"]; + if (_internal_has_call_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::call_expr(this), + _Internal::call_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; + if (_internal_has_list_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::list_expr(this), + _Internal::list_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; + if (_internal_has_struct_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::struct_expr(this), + _Internal::struct_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; + if (_internal_has_comprehension_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, _Internal::comprehension_expr(this), + _Internal::comprehension_expr(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:google.api.expr.v1alpha1.Expr) + return target; +} + +size_t Expr::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Expr) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 id = 2 [json_name = "id"]; + if (this->_internal_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_id()); + } + + switch (expr_kind_case()) { + // .google.api.expr.v1alpha1.Constant const_expr = 3 [json_name = "constExpr"]; + case kConstExpr: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.expr_kind_.const_expr_); + break; + } + // .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; + case kIdentExpr: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.expr_kind_.ident_expr_); + break; + } + // .google.api.expr.v1alpha1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; + case kSelectExpr: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.expr_kind_.select_expr_); + break; + } + // .google.api.expr.v1alpha1.Expr.Call call_expr = 6 [json_name = "callExpr"]; + case kCallExpr: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.expr_kind_.call_expr_); + break; + } + // .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; + case kListExpr: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.expr_kind_.list_expr_); + break; + } + // .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; + case kStructExpr: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.expr_kind_.struct_expr_); + break; + } + // .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; + case kComprehensionExpr: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.expr_kind_.comprehension_expr_); + break; + } + case EXPR_KIND_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Expr::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr::GetClassData() const { return &_class_data_; } + + +void Expr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_id() != 0) { + _this->_internal_set_id(from._internal_id()); + } + switch (from.expr_kind_case()) { + case kConstExpr: { + _this->_internal_mutable_const_expr()->::google::api::expr::v1alpha1::Constant::MergeFrom( + from._internal_const_expr()); + break; + } + case kIdentExpr: { + _this->_internal_mutable_ident_expr()->::google::api::expr::v1alpha1::Expr_Ident::MergeFrom( + from._internal_ident_expr()); + break; + } + case kSelectExpr: { + _this->_internal_mutable_select_expr()->::google::api::expr::v1alpha1::Expr_Select::MergeFrom( + from._internal_select_expr()); + break; + } + case kCallExpr: { + _this->_internal_mutable_call_expr()->::google::api::expr::v1alpha1::Expr_Call::MergeFrom( + from._internal_call_expr()); + break; + } + case kListExpr: { + _this->_internal_mutable_list_expr()->::google::api::expr::v1alpha1::Expr_CreateList::MergeFrom( + from._internal_list_expr()); + break; + } + case kStructExpr: { + _this->_internal_mutable_struct_expr()->::google::api::expr::v1alpha1::Expr_CreateStruct::MergeFrom( + from._internal_struct_expr()); + break; + } + case kComprehensionExpr: { + _this->_internal_mutable_comprehension_expr()->::google::api::expr::v1alpha1::Expr_Comprehension::MergeFrom( + from._internal_comprehension_expr()); + break; + } + case EXPR_KIND_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Expr::CopyFrom(const Expr& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Expr) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Expr::IsInitialized() const { + return true; +} + +void Expr::InternalSwap(Expr* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.id_, other->_impl_.id_); + swap(_impl_.expr_kind_, other->_impl_.expr_kind_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[8]); +} + +// =================================================================== + +class Constant::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Duration& duration_value(const Constant* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& timestamp_value(const Constant* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Duration& +Constant::_Internal::duration_value(const Constant* msg) { + return *msg->_impl_.constant_kind_.duration_value_; +} +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +Constant::_Internal::timestamp_value(const Constant* msg) { + return *msg->_impl_.constant_kind_.timestamp_value_; +} +void Constant::set_allocated_duration_value(::PROTOBUF_NAMESPACE_ID::Duration* duration_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_constant_kind(); + if (duration_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(duration_value)); + if (message_arena != submessage_arena) { + duration_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, duration_value, submessage_arena); + } + set_has_duration_value(); + _impl_.constant_kind_.duration_value_ = duration_value; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Constant.duration_value) +} +void Constant::clear_duration_value() { + if (_internal_has_duration_value()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.constant_kind_.duration_value_; + } + clear_has_constant_kind(); + } +} +void Constant::set_allocated_timestamp_value(::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_constant_kind(); + if (timestamp_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(timestamp_value)); + if (message_arena != submessage_arena) { + timestamp_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, timestamp_value, submessage_arena); + } + set_has_timestamp_value(); + _impl_.constant_kind_.timestamp_value_ = timestamp_value; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Constant.timestamp_value) +} +void Constant::clear_timestamp_value() { + if (_internal_has_timestamp_value()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.constant_kind_.timestamp_value_; + } + clear_has_constant_kind(); + } +} +Constant::Constant(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Constant) +} +Constant::Constant(const Constant& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Constant* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.constant_kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_constant_kind(); + switch (from.constant_kind_case()) { + case kNullValue: { + _this->_internal_set_null_value(from._internal_null_value()); + break; + } + case kBoolValue: { + _this->_internal_set_bool_value(from._internal_bool_value()); + break; + } + case kInt64Value: { + _this->_internal_set_int64_value(from._internal_int64_value()); + break; + } + case kUint64Value: { + _this->_internal_set_uint64_value(from._internal_uint64_value()); + break; + } + case kDoubleValue: { + _this->_internal_set_double_value(from._internal_double_value()); + break; + } + case kStringValue: { + _this->_internal_set_string_value(from._internal_string_value()); + break; + } + case kBytesValue: { + _this->_internal_set_bytes_value(from._internal_bytes_value()); + break; + } + case kDurationValue: { + _this->_internal_mutable_duration_value()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom( + from._internal_duration_value()); + break; + } + case kTimestampValue: { + _this->_internal_mutable_timestamp_value()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_timestamp_value()); + break; + } + case CONSTANT_KIND_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Constant) +} + +inline void Constant::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.constant_kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_constant_kind(); +} + +Constant::~Constant() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Constant) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Constant::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_constant_kind()) { + clear_constant_kind(); + } +} + +void Constant::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Constant::clear_constant_kind() { +// @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1alpha1.Constant) + switch (constant_kind_case()) { + case kNullValue: { + // No need to clear + break; + } + case kBoolValue: { + // No need to clear + break; + } + case kInt64Value: { + // No need to clear + break; + } + case kUint64Value: { + // No need to clear + break; + } + case kDoubleValue: { + // No need to clear + break; + } + case kStringValue: { + _impl_.constant_kind_.string_value_.Destroy(); + break; + } + case kBytesValue: { + _impl_.constant_kind_.bytes_value_.Destroy(); + break; + } + case kDurationValue: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.constant_kind_.duration_value_; + } + break; + } + case kTimestampValue: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.constant_kind_.timestamp_value_; + } + break; + } + case CONSTANT_KIND_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = CONSTANT_KIND_NOT_SET; +} + + +void Constant::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Constant) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_constant_kind(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Constant::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_null_value(static_cast<::PROTOBUF_NAMESPACE_ID::NullValue>(val)); + } else + goto handle_unusual; + continue; + // bool bool_value = 2 [json_name = "boolValue"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _internal_set_bool_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 int64_value = 3 [json_name = "int64Value"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _internal_set_int64_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _internal_set_uint64_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double double_value = 5 [json_name = "doubleValue"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 41)) { + _internal_set_double_value(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // string string_value = 6 [json_name = "stringValue"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_string_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Constant.string_value")); + } else + goto handle_unusual; + continue; + // bytes bytes_value = 7 [json_name = "bytesValue"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_bytes_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Duration duration_value = 8 [json_name = "durationValue", deprecated = true]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_duration_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp timestamp_value = 9 [json_name = "timestampValue", deprecated = true]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_timestamp_value(), 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* Constant::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Constant) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + if (_internal_has_null_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_null_value(), target); + } + + // bool bool_value = 2 [json_name = "boolValue"]; + if (_internal_has_bool_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_bool_value(), target); + } + + // int64 int64_value = 3 [json_name = "int64Value"]; + if (_internal_has_int64_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_int64_value(), target); + } + + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + if (_internal_has_uint64_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_uint64_value(), target); + } + + // double double_value = 5 [json_name = "doubleValue"]; + if (_internal_has_double_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_double_value(), target); + } + + // string string_value = 6 [json_name = "stringValue"]; + if (_internal_has_string_value()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_string_value().data(), static_cast(this->_internal_string_value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Constant.string_value"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_string_value(), target); + } + + // bytes bytes_value = 7 [json_name = "bytesValue"]; + if (_internal_has_bytes_value()) { + target = stream->WriteBytesMaybeAliased( + 7, this->_internal_bytes_value(), target); + } + + // .google.protobuf.Duration duration_value = 8 [json_name = "durationValue", deprecated = true]; + if (_internal_has_duration_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::duration_value(this), + _Internal::duration_value(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Timestamp timestamp_value = 9 [json_name = "timestampValue", deprecated = true]; + if (_internal_has_timestamp_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, _Internal::timestamp_value(this), + _Internal::timestamp_value(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:google.api.expr.v1alpha1.Constant) + return target; +} + +size_t Constant::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Constant) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (constant_kind_case()) { + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + case kNullValue: { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_null_value()); + break; + } + // bool bool_value = 2 [json_name = "boolValue"]; + case kBoolValue: { + total_size += 1 + 1; + break; + } + // int64 int64_value = 3 [json_name = "int64Value"]; + case kInt64Value: { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_int64_value()); + break; + } + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + case kUint64Value: { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_uint64_value()); + break; + } + // double double_value = 5 [json_name = "doubleValue"]; + case kDoubleValue: { + total_size += 1 + 8; + break; + } + // string string_value = 6 [json_name = "stringValue"]; + case kStringValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_string_value()); + break; + } + // bytes bytes_value = 7 [json_name = "bytesValue"]; + case kBytesValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_bytes_value()); + break; + } + // .google.protobuf.Duration duration_value = 8 [json_name = "durationValue", deprecated = true]; + case kDurationValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.constant_kind_.duration_value_); + break; + } + // .google.protobuf.Timestamp timestamp_value = 9 [json_name = "timestampValue", deprecated = true]; + case kTimestampValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.constant_kind_.timestamp_value_); + break; + } + case CONSTANT_KIND_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Constant::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Constant::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Constant::GetClassData() const { return &_class_data_; } + + +void Constant::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Constant) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.constant_kind_case()) { + case kNullValue: { + _this->_internal_set_null_value(from._internal_null_value()); + break; + } + case kBoolValue: { + _this->_internal_set_bool_value(from._internal_bool_value()); + break; + } + case kInt64Value: { + _this->_internal_set_int64_value(from._internal_int64_value()); + break; + } + case kUint64Value: { + _this->_internal_set_uint64_value(from._internal_uint64_value()); + break; + } + case kDoubleValue: { + _this->_internal_set_double_value(from._internal_double_value()); + break; + } + case kStringValue: { + _this->_internal_set_string_value(from._internal_string_value()); + break; + } + case kBytesValue: { + _this->_internal_set_bytes_value(from._internal_bytes_value()); + break; + } + case kDurationValue: { + _this->_internal_mutable_duration_value()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom( + from._internal_duration_value()); + break; + } + case kTimestampValue: { + _this->_internal_mutable_timestamp_value()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_timestamp_value()); + break; + } + case CONSTANT_KIND_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Constant::CopyFrom(const Constant& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Constant) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Constant::IsInitialized() const { + return true; +} + +void Constant::InternalSwap(Constant* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.constant_kind_, other->_impl_.constant_kind_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Constant::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[9]); +} + +// =================================================================== + +SourceInfo_PositionsEntry_DoNotUse::SourceInfo_PositionsEntry_DoNotUse() {} +SourceInfo_PositionsEntry_DoNotUse::SourceInfo_PositionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void SourceInfo_PositionsEntry_DoNotUse::MergeFrom(const SourceInfo_PositionsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata SourceInfo_PositionsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[10]); +} + +// =================================================================== + +SourceInfo_MacroCallsEntry_DoNotUse::SourceInfo_MacroCallsEntry_DoNotUse() {} +SourceInfo_MacroCallsEntry_DoNotUse::SourceInfo_MacroCallsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void SourceInfo_MacroCallsEntry_DoNotUse::MergeFrom(const SourceInfo_MacroCallsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata SourceInfo_MacroCallsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[11]); +} + +// =================================================================== + +class SourceInfo::_Internal { + public: +}; + +SourceInfo::SourceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &SourceInfo::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.SourceInfo) +} +SourceInfo::SourceInfo(const SourceInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + SourceInfo* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.line_offsets_){from._impl_.line_offsets_} + , /*decltype(_impl_._line_offsets_cached_byte_size_)*/{0} + , /*decltype(_impl_.positions_)*/{} + , /*decltype(_impl_.macro_calls_)*/{} + , decltype(_impl_.syntax_version_){} + , decltype(_impl_.location_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.positions_.MergeFrom(from._impl_.positions_); + _this->_impl_.macro_calls_.MergeFrom(from._impl_.macro_calls_); + _impl_.syntax_version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.syntax_version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_syntax_version().empty()) { + _this->_impl_.syntax_version_.Set(from._internal_syntax_version(), + _this->GetArenaForAllocation()); + } + _impl_.location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location().empty()) { + _this->_impl_.location_.Set(from._internal_location(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.SourceInfo) +} + +inline void SourceInfo::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.line_offsets_){arena} + , /*decltype(_impl_._line_offsets_cached_byte_size_)*/{0} + , /*decltype(_impl_.positions_)*/{::_pbi::ArenaInitialized(), arena} + , /*decltype(_impl_.macro_calls_)*/{::_pbi::ArenaInitialized(), arena} + , decltype(_impl_.syntax_version_){} + , decltype(_impl_.location_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.syntax_version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.syntax_version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +SourceInfo::~SourceInfo() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.SourceInfo) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void SourceInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.line_offsets_.~RepeatedField(); + _impl_.positions_.Destruct(); + _impl_.positions_.~MapField(); + _impl_.macro_calls_.Destruct(); + _impl_.macro_calls_.~MapField(); + _impl_.syntax_version_.Destroy(); + _impl_.location_.Destroy(); +} + +void SourceInfo::ArenaDtor(void* object) { + SourceInfo* _this = reinterpret_cast< SourceInfo* >(object); + _this->_impl_.positions_.Destruct(); + _this->_impl_.macro_calls_.Destruct(); +} +void SourceInfo::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SourceInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.SourceInfo) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.line_offsets_.Clear(); + _impl_.positions_.Clear(); + _impl_.macro_calls_.Clear(); + _impl_.syntax_version_.ClearToEmpty(); + _impl_.location_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SourceInfo::_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 syntax_version = 1 [json_name = "syntaxVersion"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_syntax_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.SourceInfo.syntax_version")); + } else + goto handle_unusual; + continue; + // string location = 2 [json_name = "location"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_location(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.SourceInfo.location")); + } else + goto handle_unusual; + continue; + // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_line_offsets(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 24) { + _internal_add_line_offsets(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map positions = 4 [json_name = "positions"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.positions_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + // map macro_calls = 5 [json_name = "macroCalls"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.macro_calls_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(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* SourceInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.SourceInfo) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string syntax_version = 1 [json_name = "syntaxVersion"]; + if (!this->_internal_syntax_version().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_syntax_version().data(), static_cast(this->_internal_syntax_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.SourceInfo.syntax_version"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_syntax_version(), target); + } + + // string location = 2 [json_name = "location"]; + if (!this->_internal_location().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location().data(), static_cast(this->_internal_location().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.SourceInfo.location"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_location(), target); + } + + // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; + { + int byte_size = _impl_._line_offsets_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteInt32Packed( + 3, _internal_line_offsets(), byte_size, target); + } + } + + // map positions = 4 [json_name = "positions"]; + if (!this->_internal_positions().empty()) { + using MapType = ::_pb::Map; + using WireHelper = SourceInfo_PositionsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_positions(); + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterFlat(map_field)) { + target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); + } + } + } + + // map macro_calls = 5 [json_name = "macroCalls"]; + if (!this->_internal_macro_calls().empty()) { + using MapType = ::_pb::Map; + using WireHelper = SourceInfo_MacroCallsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_macro_calls(); + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterFlat(map_field)) { + target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(5, entry.first, entry.second, 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:google.api.expr.v1alpha1.SourceInfo) + return target; +} + +size_t SourceInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.SourceInfo) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; + { + size_t data_size = ::_pbi::WireFormatLite:: + Int32Size(this->_impl_.line_offsets_); + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + int cached_size = ::_pbi::ToCachedSize(data_size); + _impl_._line_offsets_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // map positions = 4 [json_name = "positions"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_positions_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< int64_t, int32_t >::const_iterator + it = this->_internal_positions().begin(); + it != this->_internal_positions().end(); ++it) { + total_size += SourceInfo_PositionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // map macro_calls = 5 [json_name = "macroCalls"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_macro_calls_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Expr >::const_iterator + it = this->_internal_macro_calls().begin(); + it != this->_internal_macro_calls().end(); ++it) { + total_size += SourceInfo_MacroCallsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // string syntax_version = 1 [json_name = "syntaxVersion"]; + if (!this->_internal_syntax_version().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_syntax_version()); + } + + // string location = 2 [json_name = "location"]; + if (!this->_internal_location().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SourceInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SourceInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SourceInfo::GetClassData() const { return &_class_data_; } + + +void SourceInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.SourceInfo) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.line_offsets_.MergeFrom(from._impl_.line_offsets_); + _this->_impl_.positions_.MergeFrom(from._impl_.positions_); + _this->_impl_.macro_calls_.MergeFrom(from._impl_.macro_calls_); + if (!from._internal_syntax_version().empty()) { + _this->_internal_set_syntax_version(from._internal_syntax_version()); + } + if (!from._internal_location().empty()) { + _this->_internal_set_location(from._internal_location()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SourceInfo::CopyFrom(const SourceInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.SourceInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SourceInfo::IsInitialized() const { + return true; +} + +void SourceInfo::InternalSwap(SourceInfo* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.line_offsets_.InternalSwap(&other->_impl_.line_offsets_); + _impl_.positions_.InternalSwap(&other->_impl_.positions_); + _impl_.macro_calls_.InternalSwap(&other->_impl_.macro_calls_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.syntax_version_, lhs_arena, + &other->_impl_.syntax_version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.location_, lhs_arena, + &other->_impl_.location_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SourceInfo::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[12]); +} + +// =================================================================== + +class SourcePosition::_Internal { + public: +}; + +SourcePosition::SourcePosition(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.SourcePosition) +} +SourcePosition::SourcePosition(const SourcePosition& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + SourcePosition* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.location_){} + , decltype(_impl_.offset_){} + , decltype(_impl_.line_){} + , decltype(_impl_.column_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location().empty()) { + _this->_impl_.location_.Set(from._internal_location(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.offset_, &from._impl_.offset_, + static_cast(reinterpret_cast(&_impl_.column_) - + reinterpret_cast(&_impl_.offset_)) + sizeof(_impl_.column_)); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.SourcePosition) +} + +inline void SourcePosition::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.location_){} + , decltype(_impl_.offset_){0} + , decltype(_impl_.line_){0} + , decltype(_impl_.column_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +SourcePosition::~SourcePosition() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.SourcePosition) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SourcePosition::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.location_.Destroy(); +} + +void SourcePosition::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SourcePosition::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.SourcePosition) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.location_.ClearToEmpty(); + ::memset(&_impl_.offset_, 0, static_cast( + reinterpret_cast(&_impl_.column_) - + reinterpret_cast(&_impl_.offset_)) + sizeof(_impl_.column_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SourcePosition::_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 location = 1 [json_name = "location"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_location(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.SourcePosition.location")); + } else + goto handle_unusual; + continue; + // int32 offset = 2 [json_name = "offset"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.offset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 line = 3 [json_name = "line"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.line_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 column = 4 [json_name = "column"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.column_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* SourcePosition::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.SourcePosition) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string location = 1 [json_name = "location"]; + if (!this->_internal_location().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location().data(), static_cast(this->_internal_location().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.SourcePosition.location"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_location(), target); + } + + // int32 offset = 2 [json_name = "offset"]; + if (this->_internal_offset() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_offset(), target); + } + + // int32 line = 3 [json_name = "line"]; + if (this->_internal_line() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_line(), target); + } + + // int32 column = 4 [json_name = "column"]; + if (this->_internal_column() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_column(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.SourcePosition) + return target; +} + +size_t SourcePosition::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.SourcePosition) + 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 location = 1 [json_name = "location"]; + if (!this->_internal_location().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location()); + } + + // int32 offset = 2 [json_name = "offset"]; + if (this->_internal_offset() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_offset()); + } + + // int32 line = 3 [json_name = "line"]; + if (this->_internal_line() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_line()); + } + + // int32 column = 4 [json_name = "column"]; + if (this->_internal_column() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_column()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SourcePosition::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SourcePosition::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SourcePosition::GetClassData() const { return &_class_data_; } + + +void SourcePosition::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.SourcePosition) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_location().empty()) { + _this->_internal_set_location(from._internal_location()); + } + if (from._internal_offset() != 0) { + _this->_internal_set_offset(from._internal_offset()); + } + if (from._internal_line() != 0) { + _this->_internal_set_line(from._internal_line()); + } + if (from._internal_column() != 0) { + _this->_internal_set_column(from._internal_column()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SourcePosition::CopyFrom(const SourcePosition& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.SourcePosition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SourcePosition::IsInitialized() const { + return true; +} + +void SourcePosition::InternalSwap(SourcePosition* 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( + &_impl_.location_, lhs_arena, + &other->_impl_.location_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.column_) + + sizeof(SourcePosition::_impl_.column_) + - PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.offset_)>( + reinterpret_cast(&_impl_.offset_), + reinterpret_cast(&other->_impl_.offset_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SourcePosition::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[13]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::ParsedExpr* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::ParsedExpr >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::ParsedExpr >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Expr_Ident* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_Ident >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Expr_Ident >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Expr_Select* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_Select >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Expr_Select >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Expr_Call* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_Call >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Expr_Call >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Expr_CreateList* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_CreateList >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Expr_CreateList >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Expr_CreateStruct* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_CreateStruct >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Expr_CreateStruct >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Expr_Comprehension* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_Comprehension >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Expr_Comprehension >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Expr* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Expr >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Constant* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Constant >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Constant >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::SourceInfo* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::SourceInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::SourceInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::SourcePosition* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::SourcePosition >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::SourcePosition >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/google/api/expr/v1alpha1/syntax.pb.h b/src/gen/google/api/expr/v1alpha1/syntax.pb.h new file mode 100644 index 000000000..5e2133750 --- /dev/null +++ b/src/gen/google/api/expr/v1alpha1/syntax.pb.h @@ -0,0 +1,5782 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/expr/v1alpha1/syntax.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 // IWYU pragma: export +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { +class Constant; +struct ConstantDefaultTypeInternal; +extern ConstantDefaultTypeInternal _Constant_default_instance_; +class Expr; +struct ExprDefaultTypeInternal; +extern ExprDefaultTypeInternal _Expr_default_instance_; +class Expr_Call; +struct Expr_CallDefaultTypeInternal; +extern Expr_CallDefaultTypeInternal _Expr_Call_default_instance_; +class Expr_Comprehension; +struct Expr_ComprehensionDefaultTypeInternal; +extern Expr_ComprehensionDefaultTypeInternal _Expr_Comprehension_default_instance_; +class Expr_CreateList; +struct Expr_CreateListDefaultTypeInternal; +extern Expr_CreateListDefaultTypeInternal _Expr_CreateList_default_instance_; +class Expr_CreateStruct; +struct Expr_CreateStructDefaultTypeInternal; +extern Expr_CreateStructDefaultTypeInternal _Expr_CreateStruct_default_instance_; +class Expr_CreateStruct_Entry; +struct Expr_CreateStruct_EntryDefaultTypeInternal; +extern Expr_CreateStruct_EntryDefaultTypeInternal _Expr_CreateStruct_Entry_default_instance_; +class Expr_Ident; +struct Expr_IdentDefaultTypeInternal; +extern Expr_IdentDefaultTypeInternal _Expr_Ident_default_instance_; +class Expr_Select; +struct Expr_SelectDefaultTypeInternal; +extern Expr_SelectDefaultTypeInternal _Expr_Select_default_instance_; +class ParsedExpr; +struct ParsedExprDefaultTypeInternal; +extern ParsedExprDefaultTypeInternal _ParsedExpr_default_instance_; +class SourceInfo; +struct SourceInfoDefaultTypeInternal; +extern SourceInfoDefaultTypeInternal _SourceInfo_default_instance_; +class SourceInfo_MacroCallsEntry_DoNotUse; +struct SourceInfo_MacroCallsEntry_DoNotUseDefaultTypeInternal; +extern SourceInfo_MacroCallsEntry_DoNotUseDefaultTypeInternal _SourceInfo_MacroCallsEntry_DoNotUse_default_instance_; +class SourceInfo_PositionsEntry_DoNotUse; +struct SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal; +extern SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal _SourceInfo_PositionsEntry_DoNotUse_default_instance_; +class SourcePosition; +struct SourcePositionDefaultTypeInternal; +extern SourcePositionDefaultTypeInternal _SourcePosition_default_instance_; +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::expr::v1alpha1::Constant* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Constant>(Arena*); +template<> ::google::api::expr::v1alpha1::Expr* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(Arena*); +template<> ::google::api::expr::v1alpha1::Expr_Call* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_Call>(Arena*); +template<> ::google::api::expr::v1alpha1::Expr_Comprehension* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_Comprehension>(Arena*); +template<> ::google::api::expr::v1alpha1::Expr_CreateList* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_CreateList>(Arena*); +template<> ::google::api::expr::v1alpha1::Expr_CreateStruct* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_CreateStruct>(Arena*); +template<> ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_CreateStruct_Entry>(Arena*); +template<> ::google::api::expr::v1alpha1::Expr_Ident* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_Ident>(Arena*); +template<> ::google::api::expr::v1alpha1::Expr_Select* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_Select>(Arena*); +template<> ::google::api::expr::v1alpha1::ParsedExpr* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::ParsedExpr>(Arena*); +template<> ::google::api::expr::v1alpha1::SourceInfo* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo>(Arena*); +template<> ::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse>(Arena*); +template<> ::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse>(Arena*); +template<> ::google::api::expr::v1alpha1::SourcePosition* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::SourcePosition>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { + +// =================================================================== + +class ParsedExpr final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.ParsedExpr) */ { + public: + inline ParsedExpr() : ParsedExpr(nullptr) {} + ~ParsedExpr() override; + explicit PROTOBUF_CONSTEXPR ParsedExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ParsedExpr(const ParsedExpr& from); + ParsedExpr(ParsedExpr&& from) noexcept + : ParsedExpr() { + *this = ::std::move(from); + } + + inline ParsedExpr& operator=(const ParsedExpr& from) { + CopyFrom(from); + return *this; + } + inline ParsedExpr& operator=(ParsedExpr&& 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 ParsedExpr& default_instance() { + return *internal_default_instance(); + } + static inline const ParsedExpr* internal_default_instance() { + return reinterpret_cast( + &_ParsedExpr_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(ParsedExpr& a, ParsedExpr& b) { + a.Swap(&b); + } + inline void Swap(ParsedExpr* 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(ParsedExpr* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ParsedExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ParsedExpr& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ParsedExpr& from) { + ParsedExpr::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ParsedExpr* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.ParsedExpr"; + } + protected: + explicit ParsedExpr(::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 { + kExprFieldNumber = 2, + kSourceInfoFieldNumber = 3, + }; + // .google.api.expr.v1alpha1.Expr expr = 2 [json_name = "expr"]; + bool has_expr() const; + private: + bool _internal_has_expr() const; + public: + void clear_expr(); + const ::google::api::expr::v1alpha1::Expr& expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_expr(); + ::google::api::expr::v1alpha1::Expr* mutable_expr(); + void set_allocated_expr(::google::api::expr::v1alpha1::Expr* expr); + private: + const ::google::api::expr::v1alpha1::Expr& _internal_expr() const; + ::google::api::expr::v1alpha1::Expr* _internal_mutable_expr(); + public: + void unsafe_arena_set_allocated_expr( + ::google::api::expr::v1alpha1::Expr* expr); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_expr(); + + // .google.api.expr.v1alpha1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; + bool has_source_info() const; + private: + bool _internal_has_source_info() const; + public: + void clear_source_info(); + const ::google::api::expr::v1alpha1::SourceInfo& source_info() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::SourceInfo* release_source_info(); + ::google::api::expr::v1alpha1::SourceInfo* mutable_source_info(); + void set_allocated_source_info(::google::api::expr::v1alpha1::SourceInfo* source_info); + private: + const ::google::api::expr::v1alpha1::SourceInfo& _internal_source_info() const; + ::google::api::expr::v1alpha1::SourceInfo* _internal_mutable_source_info(); + public: + void unsafe_arena_set_allocated_source_info( + ::google::api::expr::v1alpha1::SourceInfo* source_info); + ::google::api::expr::v1alpha1::SourceInfo* unsafe_arena_release_source_info(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.ParsedExpr) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::api::expr::v1alpha1::Expr* expr_; + ::google::api::expr::v1alpha1::SourceInfo* source_info_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; +}; +// ------------------------------------------------------------------- + +class Expr_Ident final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr.Ident) */ { + public: + inline Expr_Ident() : Expr_Ident(nullptr) {} + ~Expr_Ident() override; + explicit PROTOBUF_CONSTEXPR Expr_Ident(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Expr_Ident(const Expr_Ident& from); + Expr_Ident(Expr_Ident&& from) noexcept + : Expr_Ident() { + *this = ::std::move(from); + } + + inline Expr_Ident& operator=(const Expr_Ident& from) { + CopyFrom(from); + return *this; + } + inline Expr_Ident& operator=(Expr_Ident&& 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 Expr_Ident& default_instance() { + return *internal_default_instance(); + } + static inline const Expr_Ident* internal_default_instance() { + return reinterpret_cast( + &_Expr_Ident_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(Expr_Ident& a, Expr_Ident& b) { + a.Swap(&b); + } + inline void Swap(Expr_Ident* 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(Expr_Ident* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Expr_Ident* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_Ident& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Expr_Ident& from) { + Expr_Ident::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_Ident* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Expr.Ident"; + } + protected: + explicit Expr_Ident(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.Ident) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; +}; +// ------------------------------------------------------------------- + +class Expr_Select final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr.Select) */ { + public: + inline Expr_Select() : Expr_Select(nullptr) {} + ~Expr_Select() override; + explicit PROTOBUF_CONSTEXPR Expr_Select(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Expr_Select(const Expr_Select& from); + Expr_Select(Expr_Select&& from) noexcept + : Expr_Select() { + *this = ::std::move(from); + } + + inline Expr_Select& operator=(const Expr_Select& from) { + CopyFrom(from); + return *this; + } + inline Expr_Select& operator=(Expr_Select&& 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 Expr_Select& default_instance() { + return *internal_default_instance(); + } + static inline const Expr_Select* internal_default_instance() { + return reinterpret_cast( + &_Expr_Select_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(Expr_Select& a, Expr_Select& b) { + a.Swap(&b); + } + inline void Swap(Expr_Select* 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(Expr_Select* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Expr_Select* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_Select& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Expr_Select& from) { + Expr_Select::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_Select* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Expr.Select"; + } + protected: + explicit Expr_Select(::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 { + kFieldFieldNumber = 2, + kOperandFieldNumber = 1, + kTestOnlyFieldNumber = 3, + }; + // string field = 2 [json_name = "field"]; + void clear_field(); + const std::string& field() const; + template + void set_field(ArgT0&& arg0, ArgT... args); + std::string* mutable_field(); + PROTOBUF_NODISCARD std::string* release_field(); + void set_allocated_field(std::string* field); + private: + const std::string& _internal_field() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_field(const std::string& value); + std::string* _internal_mutable_field(); + public: + + // .google.api.expr.v1alpha1.Expr operand = 1 [json_name = "operand"]; + bool has_operand() const; + private: + bool _internal_has_operand() const; + public: + void clear_operand(); + const ::google::api::expr::v1alpha1::Expr& operand() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_operand(); + ::google::api::expr::v1alpha1::Expr* mutable_operand(); + void set_allocated_operand(::google::api::expr::v1alpha1::Expr* operand); + private: + const ::google::api::expr::v1alpha1::Expr& _internal_operand() const; + ::google::api::expr::v1alpha1::Expr* _internal_mutable_operand(); + public: + void unsafe_arena_set_allocated_operand( + ::google::api::expr::v1alpha1::Expr* operand); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_operand(); + + // bool test_only = 3 [json_name = "testOnly"]; + void clear_test_only(); + bool test_only() const; + void set_test_only(bool value); + private: + bool _internal_test_only() const; + void _internal_set_test_only(bool value); + public: + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.Select) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_; + ::google::api::expr::v1alpha1::Expr* operand_; + bool test_only_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; +}; +// ------------------------------------------------------------------- + +class Expr_Call final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr.Call) */ { + public: + inline Expr_Call() : Expr_Call(nullptr) {} + ~Expr_Call() override; + explicit PROTOBUF_CONSTEXPR Expr_Call(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Expr_Call(const Expr_Call& from); + Expr_Call(Expr_Call&& from) noexcept + : Expr_Call() { + *this = ::std::move(from); + } + + inline Expr_Call& operator=(const Expr_Call& from) { + CopyFrom(from); + return *this; + } + inline Expr_Call& operator=(Expr_Call&& 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 Expr_Call& default_instance() { + return *internal_default_instance(); + } + static inline const Expr_Call* internal_default_instance() { + return reinterpret_cast( + &_Expr_Call_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(Expr_Call& a, Expr_Call& b) { + a.Swap(&b); + } + inline void Swap(Expr_Call* 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(Expr_Call* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Expr_Call* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_Call& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Expr_Call& from) { + Expr_Call::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_Call* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Expr.Call"; + } + protected: + explicit Expr_Call(::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 { + kArgsFieldNumber = 3, + kFunctionFieldNumber = 2, + kTargetFieldNumber = 1, + }; + // repeated .google.api.expr.v1alpha1.Expr args = 3 [json_name = "args"]; + int args_size() const; + private: + int _internal_args_size() const; + public: + void clear_args(); + ::google::api::expr::v1alpha1::Expr* mutable_args(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr >* + mutable_args(); + private: + const ::google::api::expr::v1alpha1::Expr& _internal_args(int index) const; + ::google::api::expr::v1alpha1::Expr* _internal_add_args(); + public: + const ::google::api::expr::v1alpha1::Expr& args(int index) const; + ::google::api::expr::v1alpha1::Expr* add_args(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr >& + args() const; + + // string function = 2 [json_name = "function"]; + void clear_function(); + const std::string& function() const; + template + void set_function(ArgT0&& arg0, ArgT... args); + std::string* mutable_function(); + PROTOBUF_NODISCARD std::string* release_function(); + void set_allocated_function(std::string* function); + private: + const std::string& _internal_function() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_function(const std::string& value); + std::string* _internal_mutable_function(); + public: + + // .google.api.expr.v1alpha1.Expr target = 1 [json_name = "target"]; + bool has_target() const; + private: + bool _internal_has_target() const; + public: + void clear_target(); + const ::google::api::expr::v1alpha1::Expr& target() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_target(); + ::google::api::expr::v1alpha1::Expr* mutable_target(); + void set_allocated_target(::google::api::expr::v1alpha1::Expr* target); + private: + const ::google::api::expr::v1alpha1::Expr& _internal_target() const; + ::google::api::expr::v1alpha1::Expr* _internal_mutable_target(); + public: + void unsafe_arena_set_allocated_target( + ::google::api::expr::v1alpha1::Expr* target); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_target(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.Call) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr > args_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr function_; + ::google::api::expr::v1alpha1::Expr* target_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; +}; +// ------------------------------------------------------------------- + +class Expr_CreateList final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr.CreateList) */ { + public: + inline Expr_CreateList() : Expr_CreateList(nullptr) {} + ~Expr_CreateList() override; + explicit PROTOBUF_CONSTEXPR Expr_CreateList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Expr_CreateList(const Expr_CreateList& from); + Expr_CreateList(Expr_CreateList&& from) noexcept + : Expr_CreateList() { + *this = ::std::move(from); + } + + inline Expr_CreateList& operator=(const Expr_CreateList& from) { + CopyFrom(from); + return *this; + } + inline Expr_CreateList& operator=(Expr_CreateList&& 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 Expr_CreateList& default_instance() { + return *internal_default_instance(); + } + static inline const Expr_CreateList* internal_default_instance() { + return reinterpret_cast( + &_Expr_CreateList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(Expr_CreateList& a, Expr_CreateList& b) { + a.Swap(&b); + } + inline void Swap(Expr_CreateList* 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(Expr_CreateList* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Expr_CreateList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_CreateList& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Expr_CreateList& from) { + Expr_CreateList::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_CreateList* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Expr.CreateList"; + } + protected: + explicit Expr_CreateList(::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 { + kElementsFieldNumber = 1, + }; + // repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; + int elements_size() const; + private: + int _internal_elements_size() const; + public: + void clear_elements(); + ::google::api::expr::v1alpha1::Expr* mutable_elements(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr >* + mutable_elements(); + private: + const ::google::api::expr::v1alpha1::Expr& _internal_elements(int index) const; + ::google::api::expr::v1alpha1::Expr* _internal_add_elements(); + public: + const ::google::api::expr::v1alpha1::Expr& elements(int index) const; + ::google::api::expr::v1alpha1::Expr* add_elements(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr >& + elements() const; + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.CreateList) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr > elements_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; +}; +// ------------------------------------------------------------------- + +class Expr_CreateStruct_Entry final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) */ { + public: + inline Expr_CreateStruct_Entry() : Expr_CreateStruct_Entry(nullptr) {} + ~Expr_CreateStruct_Entry() override; + explicit PROTOBUF_CONSTEXPR Expr_CreateStruct_Entry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Expr_CreateStruct_Entry(const Expr_CreateStruct_Entry& from); + Expr_CreateStruct_Entry(Expr_CreateStruct_Entry&& from) noexcept + : Expr_CreateStruct_Entry() { + *this = ::std::move(from); + } + + inline Expr_CreateStruct_Entry& operator=(const Expr_CreateStruct_Entry& from) { + CopyFrom(from); + return *this; + } + inline Expr_CreateStruct_Entry& operator=(Expr_CreateStruct_Entry&& 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 Expr_CreateStruct_Entry& default_instance() { + return *internal_default_instance(); + } + enum KeyKindCase { + kFieldKey = 2, + kMapKey = 3, + KEY_KIND_NOT_SET = 0, + }; + + static inline const Expr_CreateStruct_Entry* internal_default_instance() { + return reinterpret_cast( + &_Expr_CreateStruct_Entry_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(Expr_CreateStruct_Entry& a, Expr_CreateStruct_Entry& b) { + a.Swap(&b); + } + inline void Swap(Expr_CreateStruct_Entry* 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(Expr_CreateStruct_Entry* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Expr_CreateStruct_Entry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_CreateStruct_Entry& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Expr_CreateStruct_Entry& from) { + Expr_CreateStruct_Entry::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_CreateStruct_Entry* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Expr.CreateStruct.Entry"; + } + protected: + explicit Expr_CreateStruct_Entry(::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 { + kValueFieldNumber = 4, + kIdFieldNumber = 1, + kOptionalEntryFieldNumber = 5, + kFieldKeyFieldNumber = 2, + kMapKeyFieldNumber = 3, + }; + // .google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"]; + bool has_value() const; + private: + bool _internal_has_value() const; + public: + void clear_value(); + const ::google::api::expr::v1alpha1::Expr& value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_value(); + ::google::api::expr::v1alpha1::Expr* mutable_value(); + void set_allocated_value(::google::api::expr::v1alpha1::Expr* value); + private: + const ::google::api::expr::v1alpha1::Expr& _internal_value() const; + ::google::api::expr::v1alpha1::Expr* _internal_mutable_value(); + public: + void unsafe_arena_set_allocated_value( + ::google::api::expr::v1alpha1::Expr* value); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_value(); + + // int64 id = 1 [json_name = "id"]; + void clear_id(); + int64_t id() const; + void set_id(int64_t value); + private: + int64_t _internal_id() const; + void _internal_set_id(int64_t value); + public: + + // bool optional_entry = 5 [json_name = "optionalEntry"]; + void clear_optional_entry(); + bool optional_entry() const; + void set_optional_entry(bool value); + private: + bool _internal_optional_entry() const; + void _internal_set_optional_entry(bool value); + public: + + // string field_key = 2 [json_name = "fieldKey"]; + bool has_field_key() const; + private: + bool _internal_has_field_key() const; + public: + void clear_field_key(); + const std::string& field_key() const; + template + void set_field_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_field_key(); + PROTOBUF_NODISCARD std::string* release_field_key(); + void set_allocated_field_key(std::string* field_key); + private: + const std::string& _internal_field_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_field_key(const std::string& value); + std::string* _internal_mutable_field_key(); + public: + + // .google.api.expr.v1alpha1.Expr map_key = 3 [json_name = "mapKey"]; + bool has_map_key() const; + private: + bool _internal_has_map_key() const; + public: + void clear_map_key(); + const ::google::api::expr::v1alpha1::Expr& map_key() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_map_key(); + ::google::api::expr::v1alpha1::Expr* mutable_map_key(); + void set_allocated_map_key(::google::api::expr::v1alpha1::Expr* map_key); + private: + const ::google::api::expr::v1alpha1::Expr& _internal_map_key() const; + ::google::api::expr::v1alpha1::Expr* _internal_mutable_map_key(); + public: + void unsafe_arena_set_allocated_map_key( + ::google::api::expr::v1alpha1::Expr* map_key); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_map_key(); + + void clear_key_kind(); + KeyKindCase key_kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) + private: + class _Internal; + void set_has_field_key(); + void set_has_map_key(); + + inline bool has_key_kind() const; + inline void clear_has_key_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::api::expr::v1alpha1::Expr* value_; + int64_t id_; + bool optional_entry_; + union KeyKindUnion { + constexpr KeyKindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_key_; + ::google::api::expr::v1alpha1::Expr* map_key_; + } key_kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; +}; +// ------------------------------------------------------------------- + +class Expr_CreateStruct final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr.CreateStruct) */ { + public: + inline Expr_CreateStruct() : Expr_CreateStruct(nullptr) {} + ~Expr_CreateStruct() override; + explicit PROTOBUF_CONSTEXPR Expr_CreateStruct(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Expr_CreateStruct(const Expr_CreateStruct& from); + Expr_CreateStruct(Expr_CreateStruct&& from) noexcept + : Expr_CreateStruct() { + *this = ::std::move(from); + } + + inline Expr_CreateStruct& operator=(const Expr_CreateStruct& from) { + CopyFrom(from); + return *this; + } + inline Expr_CreateStruct& operator=(Expr_CreateStruct&& 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 Expr_CreateStruct& default_instance() { + return *internal_default_instance(); + } + static inline const Expr_CreateStruct* internal_default_instance() { + return reinterpret_cast( + &_Expr_CreateStruct_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(Expr_CreateStruct& a, Expr_CreateStruct& b) { + a.Swap(&b); + } + inline void Swap(Expr_CreateStruct* 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(Expr_CreateStruct* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Expr_CreateStruct* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_CreateStruct& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Expr_CreateStruct& from) { + Expr_CreateStruct::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_CreateStruct* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Expr.CreateStruct"; + } + protected: + explicit Expr_CreateStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef Expr_CreateStruct_Entry Entry; + + // accessors ------------------------------------------------------- + + enum : int { + kEntriesFieldNumber = 2, + kMessageNameFieldNumber = 1, + }; + // repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; + int entries_size() const; + private: + int _internal_entries_size() const; + public: + void clear_entries(); + ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* mutable_entries(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry >* + mutable_entries(); + private: + const ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry& _internal_entries(int index) const; + ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* _internal_add_entries(); + public: + const ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry& entries(int index) const; + ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* add_entries(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry >& + entries() const; + + // string message_name = 1 [json_name = "messageName"]; + void clear_message_name(); + const std::string& message_name() const; + template + void set_message_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_message_name(); + PROTOBUF_NODISCARD std::string* release_message_name(); + void set_allocated_message_name(std::string* message_name); + private: + const std::string& _internal_message_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message_name(const std::string& value); + std::string* _internal_mutable_message_name(); + public: + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.CreateStruct) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry > entries_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; +}; +// ------------------------------------------------------------------- + +class Expr_Comprehension final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr.Comprehension) */ { + public: + inline Expr_Comprehension() : Expr_Comprehension(nullptr) {} + ~Expr_Comprehension() override; + explicit PROTOBUF_CONSTEXPR Expr_Comprehension(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Expr_Comprehension(const Expr_Comprehension& from); + Expr_Comprehension(Expr_Comprehension&& from) noexcept + : Expr_Comprehension() { + *this = ::std::move(from); + } + + inline Expr_Comprehension& operator=(const Expr_Comprehension& from) { + CopyFrom(from); + return *this; + } + inline Expr_Comprehension& operator=(Expr_Comprehension&& 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 Expr_Comprehension& default_instance() { + return *internal_default_instance(); + } + static inline const Expr_Comprehension* internal_default_instance() { + return reinterpret_cast( + &_Expr_Comprehension_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(Expr_Comprehension& a, Expr_Comprehension& b) { + a.Swap(&b); + } + inline void Swap(Expr_Comprehension* 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(Expr_Comprehension* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Expr_Comprehension* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_Comprehension& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Expr_Comprehension& from) { + Expr_Comprehension::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_Comprehension* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Expr.Comprehension"; + } + protected: + explicit Expr_Comprehension(::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 { + kIterVarFieldNumber = 1, + kAccuVarFieldNumber = 3, + kIterRangeFieldNumber = 2, + kAccuInitFieldNumber = 4, + kLoopConditionFieldNumber = 5, + kLoopStepFieldNumber = 6, + kResultFieldNumber = 7, + }; + // string iter_var = 1 [json_name = "iterVar"]; + void clear_iter_var(); + const std::string& iter_var() const; + template + void set_iter_var(ArgT0&& arg0, ArgT... args); + std::string* mutable_iter_var(); + PROTOBUF_NODISCARD std::string* release_iter_var(); + void set_allocated_iter_var(std::string* iter_var); + private: + const std::string& _internal_iter_var() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_iter_var(const std::string& value); + std::string* _internal_mutable_iter_var(); + public: + + // string accu_var = 3 [json_name = "accuVar"]; + void clear_accu_var(); + const std::string& accu_var() const; + template + void set_accu_var(ArgT0&& arg0, ArgT... args); + std::string* mutable_accu_var(); + PROTOBUF_NODISCARD std::string* release_accu_var(); + void set_allocated_accu_var(std::string* accu_var); + private: + const std::string& _internal_accu_var() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_accu_var(const std::string& value); + std::string* _internal_mutable_accu_var(); + public: + + // .google.api.expr.v1alpha1.Expr iter_range = 2 [json_name = "iterRange"]; + bool has_iter_range() const; + private: + bool _internal_has_iter_range() const; + public: + void clear_iter_range(); + const ::google::api::expr::v1alpha1::Expr& iter_range() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_iter_range(); + ::google::api::expr::v1alpha1::Expr* mutable_iter_range(); + void set_allocated_iter_range(::google::api::expr::v1alpha1::Expr* iter_range); + private: + const ::google::api::expr::v1alpha1::Expr& _internal_iter_range() const; + ::google::api::expr::v1alpha1::Expr* _internal_mutable_iter_range(); + public: + void unsafe_arena_set_allocated_iter_range( + ::google::api::expr::v1alpha1::Expr* iter_range); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_iter_range(); + + // .google.api.expr.v1alpha1.Expr accu_init = 4 [json_name = "accuInit"]; + bool has_accu_init() const; + private: + bool _internal_has_accu_init() const; + public: + void clear_accu_init(); + const ::google::api::expr::v1alpha1::Expr& accu_init() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_accu_init(); + ::google::api::expr::v1alpha1::Expr* mutable_accu_init(); + void set_allocated_accu_init(::google::api::expr::v1alpha1::Expr* accu_init); + private: + const ::google::api::expr::v1alpha1::Expr& _internal_accu_init() const; + ::google::api::expr::v1alpha1::Expr* _internal_mutable_accu_init(); + public: + void unsafe_arena_set_allocated_accu_init( + ::google::api::expr::v1alpha1::Expr* accu_init); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_accu_init(); + + // .google.api.expr.v1alpha1.Expr loop_condition = 5 [json_name = "loopCondition"]; + bool has_loop_condition() const; + private: + bool _internal_has_loop_condition() const; + public: + void clear_loop_condition(); + const ::google::api::expr::v1alpha1::Expr& loop_condition() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_loop_condition(); + ::google::api::expr::v1alpha1::Expr* mutable_loop_condition(); + void set_allocated_loop_condition(::google::api::expr::v1alpha1::Expr* loop_condition); + private: + const ::google::api::expr::v1alpha1::Expr& _internal_loop_condition() const; + ::google::api::expr::v1alpha1::Expr* _internal_mutable_loop_condition(); + public: + void unsafe_arena_set_allocated_loop_condition( + ::google::api::expr::v1alpha1::Expr* loop_condition); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_loop_condition(); + + // .google.api.expr.v1alpha1.Expr loop_step = 6 [json_name = "loopStep"]; + bool has_loop_step() const; + private: + bool _internal_has_loop_step() const; + public: + void clear_loop_step(); + const ::google::api::expr::v1alpha1::Expr& loop_step() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_loop_step(); + ::google::api::expr::v1alpha1::Expr* mutable_loop_step(); + void set_allocated_loop_step(::google::api::expr::v1alpha1::Expr* loop_step); + private: + const ::google::api::expr::v1alpha1::Expr& _internal_loop_step() const; + ::google::api::expr::v1alpha1::Expr* _internal_mutable_loop_step(); + public: + void unsafe_arena_set_allocated_loop_step( + ::google::api::expr::v1alpha1::Expr* loop_step); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_loop_step(); + + // .google.api.expr.v1alpha1.Expr result = 7 [json_name = "result"]; + bool has_result() const; + private: + bool _internal_has_result() const; + public: + void clear_result(); + const ::google::api::expr::v1alpha1::Expr& result() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_result(); + ::google::api::expr::v1alpha1::Expr* mutable_result(); + void set_allocated_result(::google::api::expr::v1alpha1::Expr* result); + private: + const ::google::api::expr::v1alpha1::Expr& _internal_result() const; + ::google::api::expr::v1alpha1::Expr* _internal_mutable_result(); + public: + void unsafe_arena_set_allocated_result( + ::google::api::expr::v1alpha1::Expr* result); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_result(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.Comprehension) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr iter_var_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr accu_var_; + ::google::api::expr::v1alpha1::Expr* iter_range_; + ::google::api::expr::v1alpha1::Expr* accu_init_; + ::google::api::expr::v1alpha1::Expr* loop_condition_; + ::google::api::expr::v1alpha1::Expr* loop_step_; + ::google::api::expr::v1alpha1::Expr* result_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; +}; +// ------------------------------------------------------------------- + +class Expr final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr) */ { + public: + inline Expr() : Expr(nullptr) {} + ~Expr() override; + explicit PROTOBUF_CONSTEXPR Expr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Expr(const Expr& from); + Expr(Expr&& from) noexcept + : Expr() { + *this = ::std::move(from); + } + + inline Expr& operator=(const Expr& from) { + CopyFrom(from); + return *this; + } + inline Expr& operator=(Expr&& 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 Expr& default_instance() { + return *internal_default_instance(); + } + enum ExprKindCase { + kConstExpr = 3, + kIdentExpr = 4, + kSelectExpr = 5, + kCallExpr = 6, + kListExpr = 7, + kStructExpr = 8, + kComprehensionExpr = 9, + EXPR_KIND_NOT_SET = 0, + }; + + static inline const Expr* internal_default_instance() { + return reinterpret_cast( + &_Expr_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(Expr& a, Expr& b) { + a.Swap(&b); + } + inline void Swap(Expr* 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(Expr* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Expr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Expr& from) { + Expr::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Expr* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Expr"; + } + protected: + explicit Expr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef Expr_Ident Ident; + typedef Expr_Select Select; + typedef Expr_Call Call; + typedef Expr_CreateList CreateList; + typedef Expr_CreateStruct CreateStruct; + typedef Expr_Comprehension Comprehension; + + // accessors ------------------------------------------------------- + + enum : int { + kIdFieldNumber = 2, + kConstExprFieldNumber = 3, + kIdentExprFieldNumber = 4, + kSelectExprFieldNumber = 5, + kCallExprFieldNumber = 6, + kListExprFieldNumber = 7, + kStructExprFieldNumber = 8, + kComprehensionExprFieldNumber = 9, + }; + // int64 id = 2 [json_name = "id"]; + void clear_id(); + int64_t id() const; + void set_id(int64_t value); + private: + int64_t _internal_id() const; + void _internal_set_id(int64_t value); + public: + + // .google.api.expr.v1alpha1.Constant const_expr = 3 [json_name = "constExpr"]; + bool has_const_expr() const; + private: + bool _internal_has_const_expr() const; + public: + void clear_const_expr(); + const ::google::api::expr::v1alpha1::Constant& const_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Constant* release_const_expr(); + ::google::api::expr::v1alpha1::Constant* mutable_const_expr(); + void set_allocated_const_expr(::google::api::expr::v1alpha1::Constant* const_expr); + private: + const ::google::api::expr::v1alpha1::Constant& _internal_const_expr() const; + ::google::api::expr::v1alpha1::Constant* _internal_mutable_const_expr(); + public: + void unsafe_arena_set_allocated_const_expr( + ::google::api::expr::v1alpha1::Constant* const_expr); + ::google::api::expr::v1alpha1::Constant* unsafe_arena_release_const_expr(); + + // .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; + bool has_ident_expr() const; + private: + bool _internal_has_ident_expr() const; + public: + void clear_ident_expr(); + const ::google::api::expr::v1alpha1::Expr_Ident& ident_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr_Ident* release_ident_expr(); + ::google::api::expr::v1alpha1::Expr_Ident* mutable_ident_expr(); + void set_allocated_ident_expr(::google::api::expr::v1alpha1::Expr_Ident* ident_expr); + private: + const ::google::api::expr::v1alpha1::Expr_Ident& _internal_ident_expr() const; + ::google::api::expr::v1alpha1::Expr_Ident* _internal_mutable_ident_expr(); + public: + void unsafe_arena_set_allocated_ident_expr( + ::google::api::expr::v1alpha1::Expr_Ident* ident_expr); + ::google::api::expr::v1alpha1::Expr_Ident* unsafe_arena_release_ident_expr(); + + // .google.api.expr.v1alpha1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; + bool has_select_expr() const; + private: + bool _internal_has_select_expr() const; + public: + void clear_select_expr(); + const ::google::api::expr::v1alpha1::Expr_Select& select_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr_Select* release_select_expr(); + ::google::api::expr::v1alpha1::Expr_Select* mutable_select_expr(); + void set_allocated_select_expr(::google::api::expr::v1alpha1::Expr_Select* select_expr); + private: + const ::google::api::expr::v1alpha1::Expr_Select& _internal_select_expr() const; + ::google::api::expr::v1alpha1::Expr_Select* _internal_mutable_select_expr(); + public: + void unsafe_arena_set_allocated_select_expr( + ::google::api::expr::v1alpha1::Expr_Select* select_expr); + ::google::api::expr::v1alpha1::Expr_Select* unsafe_arena_release_select_expr(); + + // .google.api.expr.v1alpha1.Expr.Call call_expr = 6 [json_name = "callExpr"]; + bool has_call_expr() const; + private: + bool _internal_has_call_expr() const; + public: + void clear_call_expr(); + const ::google::api::expr::v1alpha1::Expr_Call& call_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr_Call* release_call_expr(); + ::google::api::expr::v1alpha1::Expr_Call* mutable_call_expr(); + void set_allocated_call_expr(::google::api::expr::v1alpha1::Expr_Call* call_expr); + private: + const ::google::api::expr::v1alpha1::Expr_Call& _internal_call_expr() const; + ::google::api::expr::v1alpha1::Expr_Call* _internal_mutable_call_expr(); + public: + void unsafe_arena_set_allocated_call_expr( + ::google::api::expr::v1alpha1::Expr_Call* call_expr); + ::google::api::expr::v1alpha1::Expr_Call* unsafe_arena_release_call_expr(); + + // .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; + bool has_list_expr() const; + private: + bool _internal_has_list_expr() const; + public: + void clear_list_expr(); + const ::google::api::expr::v1alpha1::Expr_CreateList& list_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr_CreateList* release_list_expr(); + ::google::api::expr::v1alpha1::Expr_CreateList* mutable_list_expr(); + void set_allocated_list_expr(::google::api::expr::v1alpha1::Expr_CreateList* list_expr); + private: + const ::google::api::expr::v1alpha1::Expr_CreateList& _internal_list_expr() const; + ::google::api::expr::v1alpha1::Expr_CreateList* _internal_mutable_list_expr(); + public: + void unsafe_arena_set_allocated_list_expr( + ::google::api::expr::v1alpha1::Expr_CreateList* list_expr); + ::google::api::expr::v1alpha1::Expr_CreateList* unsafe_arena_release_list_expr(); + + // .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; + bool has_struct_expr() const; + private: + bool _internal_has_struct_expr() const; + public: + void clear_struct_expr(); + const ::google::api::expr::v1alpha1::Expr_CreateStruct& struct_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr_CreateStruct* release_struct_expr(); + ::google::api::expr::v1alpha1::Expr_CreateStruct* mutable_struct_expr(); + void set_allocated_struct_expr(::google::api::expr::v1alpha1::Expr_CreateStruct* struct_expr); + private: + const ::google::api::expr::v1alpha1::Expr_CreateStruct& _internal_struct_expr() const; + ::google::api::expr::v1alpha1::Expr_CreateStruct* _internal_mutable_struct_expr(); + public: + void unsafe_arena_set_allocated_struct_expr( + ::google::api::expr::v1alpha1::Expr_CreateStruct* struct_expr); + ::google::api::expr::v1alpha1::Expr_CreateStruct* unsafe_arena_release_struct_expr(); + + // .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; + bool has_comprehension_expr() const; + private: + bool _internal_has_comprehension_expr() const; + public: + void clear_comprehension_expr(); + const ::google::api::expr::v1alpha1::Expr_Comprehension& comprehension_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr_Comprehension* release_comprehension_expr(); + ::google::api::expr::v1alpha1::Expr_Comprehension* mutable_comprehension_expr(); + void set_allocated_comprehension_expr(::google::api::expr::v1alpha1::Expr_Comprehension* comprehension_expr); + private: + const ::google::api::expr::v1alpha1::Expr_Comprehension& _internal_comprehension_expr() const; + ::google::api::expr::v1alpha1::Expr_Comprehension* _internal_mutable_comprehension_expr(); + public: + void unsafe_arena_set_allocated_comprehension_expr( + ::google::api::expr::v1alpha1::Expr_Comprehension* comprehension_expr); + ::google::api::expr::v1alpha1::Expr_Comprehension* unsafe_arena_release_comprehension_expr(); + + void clear_expr_kind(); + ExprKindCase expr_kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr) + private: + class _Internal; + void set_has_const_expr(); + void set_has_ident_expr(); + void set_has_select_expr(); + void set_has_call_expr(); + void set_has_list_expr(); + void set_has_struct_expr(); + void set_has_comprehension_expr(); + + inline bool has_expr_kind() const; + inline void clear_has_expr_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + int64_t id_; + union ExprKindUnion { + constexpr ExprKindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::google::api::expr::v1alpha1::Constant* const_expr_; + ::google::api::expr::v1alpha1::Expr_Ident* ident_expr_; + ::google::api::expr::v1alpha1::Expr_Select* select_expr_; + ::google::api::expr::v1alpha1::Expr_Call* call_expr_; + ::google::api::expr::v1alpha1::Expr_CreateList* list_expr_; + ::google::api::expr::v1alpha1::Expr_CreateStruct* struct_expr_; + ::google::api::expr::v1alpha1::Expr_Comprehension* comprehension_expr_; + } expr_kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; +}; +// ------------------------------------------------------------------- + +class Constant final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Constant) */ { + public: + inline Constant() : Constant(nullptr) {} + ~Constant() override; + explicit PROTOBUF_CONSTEXPR Constant(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Constant(const Constant& from); + Constant(Constant&& from) noexcept + : Constant() { + *this = ::std::move(from); + } + + inline Constant& operator=(const Constant& from) { + CopyFrom(from); + return *this; + } + inline Constant& operator=(Constant&& 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 Constant& default_instance() { + return *internal_default_instance(); + } + enum ConstantKindCase { + kNullValue = 1, + kBoolValue = 2, + kInt64Value = 3, + kUint64Value = 4, + kDoubleValue = 5, + kStringValue = 6, + kBytesValue = 7, + kDurationValue = 8, + kTimestampValue = 9, + CONSTANT_KIND_NOT_SET = 0, + }; + + static inline const Constant* internal_default_instance() { + return reinterpret_cast( + &_Constant_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(Constant& a, Constant& b) { + a.Swap(&b); + } + inline void Swap(Constant* 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(Constant* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Constant* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Constant& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Constant& from) { + Constant::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Constant* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Constant"; + } + protected: + explicit Constant(::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 { + kNullValueFieldNumber = 1, + kBoolValueFieldNumber = 2, + kInt64ValueFieldNumber = 3, + kUint64ValueFieldNumber = 4, + kDoubleValueFieldNumber = 5, + kStringValueFieldNumber = 6, + kBytesValueFieldNumber = 7, + kDurationValueFieldNumber = 8, + kTimestampValueFieldNumber = 9, + }; + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + bool has_null_value() const; + private: + bool _internal_has_null_value() const; + public: + void clear_null_value(); + ::PROTOBUF_NAMESPACE_ID::NullValue null_value() const; + void set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value); + private: + ::PROTOBUF_NAMESPACE_ID::NullValue _internal_null_value() const; + void _internal_set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value); + public: + + // bool bool_value = 2 [json_name = "boolValue"]; + bool has_bool_value() const; + private: + bool _internal_has_bool_value() const; + public: + void clear_bool_value(); + bool bool_value() const; + void set_bool_value(bool value); + private: + bool _internal_bool_value() const; + void _internal_set_bool_value(bool value); + public: + + // int64 int64_value = 3 [json_name = "int64Value"]; + bool has_int64_value() const; + private: + bool _internal_has_int64_value() const; + public: + void clear_int64_value(); + int64_t int64_value() const; + void set_int64_value(int64_t value); + private: + int64_t _internal_int64_value() const; + void _internal_set_int64_value(int64_t value); + public: + + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + bool has_uint64_value() const; + private: + bool _internal_has_uint64_value() const; + public: + void clear_uint64_value(); + uint64_t uint64_value() const; + void set_uint64_value(uint64_t value); + private: + uint64_t _internal_uint64_value() const; + void _internal_set_uint64_value(uint64_t value); + public: + + // double double_value = 5 [json_name = "doubleValue"]; + bool has_double_value() const; + private: + bool _internal_has_double_value() const; + public: + void clear_double_value(); + double double_value() const; + void set_double_value(double value); + private: + double _internal_double_value() const; + void _internal_set_double_value(double value); + public: + + // string string_value = 6 [json_name = "stringValue"]; + bool has_string_value() const; + private: + bool _internal_has_string_value() const; + public: + void clear_string_value(); + const std::string& string_value() const; + template + void set_string_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_string_value(); + PROTOBUF_NODISCARD std::string* release_string_value(); + void set_allocated_string_value(std::string* string_value); + private: + const std::string& _internal_string_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value(const std::string& value); + std::string* _internal_mutable_string_value(); + public: + + // bytes bytes_value = 7 [json_name = "bytesValue"]; + bool has_bytes_value() const; + private: + bool _internal_has_bytes_value() const; + public: + void clear_bytes_value(); + const std::string& bytes_value() const; + template + void set_bytes_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_bytes_value(); + PROTOBUF_NODISCARD std::string* release_bytes_value(); + void set_allocated_bytes_value(std::string* bytes_value); + private: + const std::string& _internal_bytes_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_bytes_value(const std::string& value); + std::string* _internal_mutable_bytes_value(); + public: + + // .google.protobuf.Duration duration_value = 8 [json_name = "durationValue", deprecated = true]; + PROTOBUF_DEPRECATED bool has_duration_value() const; + private: + bool _internal_has_duration_value() const; + public: + PROTOBUF_DEPRECATED void clear_duration_value(); + PROTOBUF_DEPRECATED const ::PROTOBUF_NAMESPACE_ID::Duration& duration_value() const; + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::Duration* release_duration_value(); + PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::Duration* mutable_duration_value(); + PROTOBUF_DEPRECATED void set_allocated_duration_value(::PROTOBUF_NAMESPACE_ID::Duration* duration_value); + private: + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_duration_value() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_duration_value(); + public: + PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_duration_value( + ::PROTOBUF_NAMESPACE_ID::Duration* duration_value); + PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_duration_value(); + + // .google.protobuf.Timestamp timestamp_value = 9 [json_name = "timestampValue", deprecated = true]; + PROTOBUF_DEPRECATED bool has_timestamp_value() const; + private: + bool _internal_has_timestamp_value() const; + public: + PROTOBUF_DEPRECATED void clear_timestamp_value(); + PROTOBUF_DEPRECATED const ::PROTOBUF_NAMESPACE_ID::Timestamp& timestamp_value() const; + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::Timestamp* release_timestamp_value(); + PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_timestamp_value(); + PROTOBUF_DEPRECATED void set_allocated_timestamp_value(::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp_value); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_timestamp_value() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_timestamp_value(); + public: + PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_timestamp_value( + ::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp_value); + PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_timestamp_value(); + + void clear_constant_kind(); + ConstantKindCase constant_kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Constant) + private: + class _Internal; + void set_has_null_value(); + void set_has_bool_value(); + void set_has_int64_value(); + void set_has_uint64_value(); + void set_has_double_value(); + void set_has_string_value(); + void set_has_bytes_value(); + void set_has_duration_value(); + void set_has_timestamp_value(); + + inline bool has_constant_kind() const; + inline void clear_has_constant_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + union ConstantKindUnion { + constexpr ConstantKindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + int null_value_; + bool bool_value_; + int64_t int64_value_; + uint64_t uint64_value_; + double double_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bytes_value_; + ::PROTOBUF_NAMESPACE_ID::Duration* duration_value_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp_value_; + } constant_kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; +}; +// ------------------------------------------------------------------- + +class SourceInfo_PositionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + SourceInfo_PositionsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR SourceInfo_PositionsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit SourceInfo_PositionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const SourceInfo_PositionsEntry_DoNotUse& other); + static const SourceInfo_PositionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_SourceInfo_PositionsEntry_DoNotUse_default_instance_); } + static bool ValidateKey(void*) { return true; } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; +}; + +// ------------------------------------------------------------------- + +class SourceInfo_MacroCallsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + SourceInfo_MacroCallsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR SourceInfo_MacroCallsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit SourceInfo_MacroCallsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const SourceInfo_MacroCallsEntry_DoNotUse& other); + static const SourceInfo_MacroCallsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_SourceInfo_MacroCallsEntry_DoNotUse_default_instance_); } + static bool ValidateKey(void*) { return true; } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; +}; + +// ------------------------------------------------------------------- + +class SourceInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.SourceInfo) */ { + public: + inline SourceInfo() : SourceInfo(nullptr) {} + ~SourceInfo() override; + explicit PROTOBUF_CONSTEXPR SourceInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SourceInfo(const SourceInfo& from); + SourceInfo(SourceInfo&& from) noexcept + : SourceInfo() { + *this = ::std::move(from); + } + + inline SourceInfo& operator=(const SourceInfo& from) { + CopyFrom(from); + return *this; + } + inline SourceInfo& operator=(SourceInfo&& 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 SourceInfo& default_instance() { + return *internal_default_instance(); + } + static inline const SourceInfo* internal_default_instance() { + return reinterpret_cast( + &_SourceInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(SourceInfo& a, SourceInfo& b) { + a.Swap(&b); + } + inline void Swap(SourceInfo* 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(SourceInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SourceInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SourceInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SourceInfo& from) { + SourceInfo::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SourceInfo* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.SourceInfo"; + } + protected: + explicit SourceInfo(::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 { + kLineOffsetsFieldNumber = 3, + kPositionsFieldNumber = 4, + kMacroCallsFieldNumber = 5, + kSyntaxVersionFieldNumber = 1, + kLocationFieldNumber = 2, + }; + // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; + int line_offsets_size() const; + private: + int _internal_line_offsets_size() const; + public: + void clear_line_offsets(); + private: + int32_t _internal_line_offsets(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& + _internal_line_offsets() const; + void _internal_add_line_offsets(int32_t value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* + _internal_mutable_line_offsets(); + public: + int32_t line_offsets(int index) const; + void set_line_offsets(int index, int32_t value); + void add_line_offsets(int32_t value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& + line_offsets() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* + mutable_line_offsets(); + + // map positions = 4 [json_name = "positions"]; + int positions_size() const; + private: + int _internal_positions_size() const; + public: + void clear_positions(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, int32_t >& + _internal_positions() const; + ::PROTOBUF_NAMESPACE_ID::Map< int64_t, int32_t >* + _internal_mutable_positions(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, int32_t >& + positions() const; + ::PROTOBUF_NAMESPACE_ID::Map< int64_t, int32_t >* + mutable_positions(); + + // map macro_calls = 5 [json_name = "macroCalls"]; + int macro_calls_size() const; + private: + int _internal_macro_calls_size() const; + public: + void clear_macro_calls(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Expr >& + _internal_macro_calls() const; + ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Expr >* + _internal_mutable_macro_calls(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Expr >& + macro_calls() const; + ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Expr >* + mutable_macro_calls(); + + // string syntax_version = 1 [json_name = "syntaxVersion"]; + void clear_syntax_version(); + const std::string& syntax_version() const; + template + void set_syntax_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_syntax_version(); + PROTOBUF_NODISCARD std::string* release_syntax_version(); + void set_allocated_syntax_version(std::string* syntax_version); + private: + const std::string& _internal_syntax_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_syntax_version(const std::string& value); + std::string* _internal_mutable_syntax_version(); + public: + + // string location = 2 [json_name = "location"]; + void clear_location(); + const std::string& location() const; + template + void set_location(ArgT0&& arg0, ArgT... args); + std::string* mutable_location(); + PROTOBUF_NODISCARD std::string* release_location(); + void set_allocated_location(std::string* location); + private: + const std::string& _internal_location() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location(const std::string& value); + std::string* _internal_mutable_location(); + public: + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.SourceInfo) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > line_offsets_; + mutable std::atomic _line_offsets_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + SourceInfo_PositionsEntry_DoNotUse, + int64_t, int32_t, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32> positions_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + SourceInfo_MacroCallsEntry_DoNotUse, + int64_t, ::google::api::expr::v1alpha1::Expr, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> macro_calls_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr syntax_version_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; +}; +// ------------------------------------------------------------------- + +class SourcePosition final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.SourcePosition) */ { + public: + inline SourcePosition() : SourcePosition(nullptr) {} + ~SourcePosition() override; + explicit PROTOBUF_CONSTEXPR SourcePosition(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SourcePosition(const SourcePosition& from); + SourcePosition(SourcePosition&& from) noexcept + : SourcePosition() { + *this = ::std::move(from); + } + + inline SourcePosition& operator=(const SourcePosition& from) { + CopyFrom(from); + return *this; + } + inline SourcePosition& operator=(SourcePosition&& 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 SourcePosition& default_instance() { + return *internal_default_instance(); + } + static inline const SourcePosition* internal_default_instance() { + return reinterpret_cast( + &_SourcePosition_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(SourcePosition& a, SourcePosition& b) { + a.Swap(&b); + } + inline void Swap(SourcePosition* 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(SourcePosition* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SourcePosition* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SourcePosition& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SourcePosition& from) { + SourcePosition::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SourcePosition* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.SourcePosition"; + } + protected: + explicit SourcePosition(::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 { + kLocationFieldNumber = 1, + kOffsetFieldNumber = 2, + kLineFieldNumber = 3, + kColumnFieldNumber = 4, + }; + // string location = 1 [json_name = "location"]; + void clear_location(); + const std::string& location() const; + template + void set_location(ArgT0&& arg0, ArgT... args); + std::string* mutable_location(); + PROTOBUF_NODISCARD std::string* release_location(); + void set_allocated_location(std::string* location); + private: + const std::string& _internal_location() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location(const std::string& value); + std::string* _internal_mutable_location(); + public: + + // int32 offset = 2 [json_name = "offset"]; + void clear_offset(); + int32_t offset() const; + void set_offset(int32_t value); + private: + int32_t _internal_offset() const; + void _internal_set_offset(int32_t value); + public: + + // int32 line = 3 [json_name = "line"]; + void clear_line(); + int32_t line() const; + void set_line(int32_t value); + private: + int32_t _internal_line() const; + void _internal_set_line(int32_t value); + public: + + // int32 column = 4 [json_name = "column"]; + void clear_column(); + int32_t column() const; + void set_column(int32_t value); + private: + int32_t _internal_column() const; + void _internal_set_column(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.SourcePosition) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_; + int32_t offset_; + int32_t line_; + int32_t column_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ParsedExpr + +// .google.api.expr.v1alpha1.Expr expr = 2 [json_name = "expr"]; +inline bool ParsedExpr::_internal_has_expr() const { + return this != internal_default_instance() && _impl_.expr_ != nullptr; +} +inline bool ParsedExpr::has_expr() const { + return _internal_has_expr(); +} +inline void ParsedExpr::clear_expr() { + if (GetArenaForAllocation() == nullptr && _impl_.expr_ != nullptr) { + delete _impl_.expr_; + } + _impl_.expr_ = nullptr; +} +inline const ::google::api::expr::v1alpha1::Expr& ParsedExpr::_internal_expr() const { + const ::google::api::expr::v1alpha1::Expr* p = _impl_.expr_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Expr& ParsedExpr::expr() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.ParsedExpr.expr) + return _internal_expr(); +} +inline void ParsedExpr::unsafe_arena_set_allocated_expr( + ::google::api::expr::v1alpha1::Expr* expr) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.expr_); + } + _impl_.expr_ = expr; + if (expr) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.ParsedExpr.expr) +} +inline ::google::api::expr::v1alpha1::Expr* ParsedExpr::release_expr() { + + ::google::api::expr::v1alpha1::Expr* temp = _impl_.expr_; + _impl_.expr_ = 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 ::google::api::expr::v1alpha1::Expr* ParsedExpr::unsafe_arena_release_expr() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.ParsedExpr.expr) + + ::google::api::expr::v1alpha1::Expr* temp = _impl_.expr_; + _impl_.expr_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::Expr* ParsedExpr::_internal_mutable_expr() { + + if (_impl_.expr_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArenaForAllocation()); + _impl_.expr_ = p; + } + return _impl_.expr_; +} +inline ::google::api::expr::v1alpha1::Expr* ParsedExpr::mutable_expr() { + ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_expr(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.ParsedExpr.expr) + return _msg; +} +inline void ParsedExpr::set_allocated_expr(::google::api::expr::v1alpha1::Expr* expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.expr_; + } + if (expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(expr); + if (message_arena != submessage_arena) { + expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, expr, submessage_arena); + } + + } else { + + } + _impl_.expr_ = expr; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.ParsedExpr.expr) +} + +// .google.api.expr.v1alpha1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; +inline bool ParsedExpr::_internal_has_source_info() const { + return this != internal_default_instance() && _impl_.source_info_ != nullptr; +} +inline bool ParsedExpr::has_source_info() const { + return _internal_has_source_info(); +} +inline void ParsedExpr::clear_source_info() { + if (GetArenaForAllocation() == nullptr && _impl_.source_info_ != nullptr) { + delete _impl_.source_info_; + } + _impl_.source_info_ = nullptr; +} +inline const ::google::api::expr::v1alpha1::SourceInfo& ParsedExpr::_internal_source_info() const { + const ::google::api::expr::v1alpha1::SourceInfo* p = _impl_.source_info_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_SourceInfo_default_instance_); +} +inline const ::google::api::expr::v1alpha1::SourceInfo& ParsedExpr::source_info() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.ParsedExpr.source_info) + return _internal_source_info(); +} +inline void ParsedExpr::unsafe_arena_set_allocated_source_info( + ::google::api::expr::v1alpha1::SourceInfo* source_info) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.source_info_); + } + _impl_.source_info_ = source_info; + if (source_info) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.ParsedExpr.source_info) +} +inline ::google::api::expr::v1alpha1::SourceInfo* ParsedExpr::release_source_info() { + + ::google::api::expr::v1alpha1::SourceInfo* temp = _impl_.source_info_; + _impl_.source_info_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::google::api::expr::v1alpha1::SourceInfo* ParsedExpr::unsafe_arena_release_source_info() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.ParsedExpr.source_info) + + ::google::api::expr::v1alpha1::SourceInfo* temp = _impl_.source_info_; + _impl_.source_info_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::SourceInfo* ParsedExpr::_internal_mutable_source_info() { + + if (_impl_.source_info_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo>(GetArenaForAllocation()); + _impl_.source_info_ = p; + } + return _impl_.source_info_; +} +inline ::google::api::expr::v1alpha1::SourceInfo* ParsedExpr::mutable_source_info() { + ::google::api::expr::v1alpha1::SourceInfo* _msg = _internal_mutable_source_info(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.ParsedExpr.source_info) + return _msg; +} +inline void ParsedExpr::set_allocated_source_info(::google::api::expr::v1alpha1::SourceInfo* source_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.source_info_; + } + if (source_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(source_info); + if (message_arena != submessage_arena) { + source_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, source_info, submessage_arena); + } + + } else { + + } + _impl_.source_info_ = source_info; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.ParsedExpr.source_info) +} + +// ------------------------------------------------------------------- + +// Expr_Ident + +// string name = 1 [json_name = "name"]; +inline void Expr_Ident::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& Expr_Ident::name() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Ident.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_Ident::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.Ident.name) +} +inline std::string* Expr_Ident::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Ident.name) + return _s; +} +inline const std::string& Expr_Ident::_internal_name() const { + return _impl_.name_.Get(); +} +inline void Expr_Ident::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Expr_Ident::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* Expr_Ident::release_name() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Ident.name) + return _impl_.name_.Release(); +} +inline void Expr_Ident::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Ident.name) +} + +// ------------------------------------------------------------------- + +// Expr_Select + +// .google.api.expr.v1alpha1.Expr operand = 1 [json_name = "operand"]; +inline bool Expr_Select::_internal_has_operand() const { + return this != internal_default_instance() && _impl_.operand_ != nullptr; +} +inline bool Expr_Select::has_operand() const { + return _internal_has_operand(); +} +inline void Expr_Select::clear_operand() { + if (GetArenaForAllocation() == nullptr && _impl_.operand_ != nullptr) { + delete _impl_.operand_; + } + _impl_.operand_ = nullptr; +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_Select::_internal_operand() const { + const ::google::api::expr::v1alpha1::Expr* p = _impl_.operand_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_Select::operand() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Select.operand) + return _internal_operand(); +} +inline void Expr_Select::unsafe_arena_set_allocated_operand( + ::google::api::expr::v1alpha1::Expr* operand) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.operand_); + } + _impl_.operand_ = operand; + if (operand) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.Select.operand) +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Select::release_operand() { + + ::google::api::expr::v1alpha1::Expr* temp = _impl_.operand_; + _impl_.operand_ = 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 ::google::api::expr::v1alpha1::Expr* Expr_Select::unsafe_arena_release_operand() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Select.operand) + + ::google::api::expr::v1alpha1::Expr* temp = _impl_.operand_; + _impl_.operand_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Select::_internal_mutable_operand() { + + if (_impl_.operand_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArenaForAllocation()); + _impl_.operand_ = p; + } + return _impl_.operand_; +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Select::mutable_operand() { + ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_operand(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Select.operand) + return _msg; +} +inline void Expr_Select::set_allocated_operand(::google::api::expr::v1alpha1::Expr* operand) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.operand_; + } + if (operand) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(operand); + if (message_arena != submessage_arena) { + operand = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, operand, submessage_arena); + } + + } else { + + } + _impl_.operand_ = operand; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Select.operand) +} + +// string field = 2 [json_name = "field"]; +inline void Expr_Select::clear_field() { + _impl_.field_.ClearToEmpty(); +} +inline const std::string& Expr_Select::field() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Select.field) + return _internal_field(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_Select::set_field(ArgT0&& arg0, ArgT... args) { + + _impl_.field_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.Select.field) +} +inline std::string* Expr_Select::mutable_field() { + std::string* _s = _internal_mutable_field(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Select.field) + return _s; +} +inline const std::string& Expr_Select::_internal_field() const { + return _impl_.field_.Get(); +} +inline void Expr_Select::_internal_set_field(const std::string& value) { + + _impl_.field_.Set(value, GetArenaForAllocation()); +} +inline std::string* Expr_Select::_internal_mutable_field() { + + return _impl_.field_.Mutable(GetArenaForAllocation()); +} +inline std::string* Expr_Select::release_field() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Select.field) + return _impl_.field_.Release(); +} +inline void Expr_Select::set_allocated_field(std::string* field) { + if (field != nullptr) { + + } else { + + } + _impl_.field_.SetAllocated(field, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.field_.IsDefault()) { + _impl_.field_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Select.field) +} + +// bool test_only = 3 [json_name = "testOnly"]; +inline void Expr_Select::clear_test_only() { + _impl_.test_only_ = false; +} +inline bool Expr_Select::_internal_test_only() const { + return _impl_.test_only_; +} +inline bool Expr_Select::test_only() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Select.test_only) + return _internal_test_only(); +} +inline void Expr_Select::_internal_set_test_only(bool value) { + + _impl_.test_only_ = value; +} +inline void Expr_Select::set_test_only(bool value) { + _internal_set_test_only(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.Select.test_only) +} + +// ------------------------------------------------------------------- + +// Expr_Call + +// .google.api.expr.v1alpha1.Expr target = 1 [json_name = "target"]; +inline bool Expr_Call::_internal_has_target() const { + return this != internal_default_instance() && _impl_.target_ != nullptr; +} +inline bool Expr_Call::has_target() const { + return _internal_has_target(); +} +inline void Expr_Call::clear_target() { + if (GetArenaForAllocation() == nullptr && _impl_.target_ != nullptr) { + delete _impl_.target_; + } + _impl_.target_ = nullptr; +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_Call::_internal_target() const { + const ::google::api::expr::v1alpha1::Expr* p = _impl_.target_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_Call::target() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Call.target) + return _internal_target(); +} +inline void Expr_Call::unsafe_arena_set_allocated_target( + ::google::api::expr::v1alpha1::Expr* target) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.target_); + } + _impl_.target_ = target; + if (target) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.Call.target) +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Call::release_target() { + + ::google::api::expr::v1alpha1::Expr* temp = _impl_.target_; + _impl_.target_ = 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 ::google::api::expr::v1alpha1::Expr* Expr_Call::unsafe_arena_release_target() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Call.target) + + ::google::api::expr::v1alpha1::Expr* temp = _impl_.target_; + _impl_.target_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Call::_internal_mutable_target() { + + if (_impl_.target_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArenaForAllocation()); + _impl_.target_ = p; + } + return _impl_.target_; +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Call::mutable_target() { + ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_target(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Call.target) + return _msg; +} +inline void Expr_Call::set_allocated_target(::google::api::expr::v1alpha1::Expr* target) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.target_; + } + if (target) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(target); + if (message_arena != submessage_arena) { + target = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, target, submessage_arena); + } + + } else { + + } + _impl_.target_ = target; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Call.target) +} + +// string function = 2 [json_name = "function"]; +inline void Expr_Call::clear_function() { + _impl_.function_.ClearToEmpty(); +} +inline const std::string& Expr_Call::function() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Call.function) + return _internal_function(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_Call::set_function(ArgT0&& arg0, ArgT... args) { + + _impl_.function_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.Call.function) +} +inline std::string* Expr_Call::mutable_function() { + std::string* _s = _internal_mutable_function(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Call.function) + return _s; +} +inline const std::string& Expr_Call::_internal_function() const { + return _impl_.function_.Get(); +} +inline void Expr_Call::_internal_set_function(const std::string& value) { + + _impl_.function_.Set(value, GetArenaForAllocation()); +} +inline std::string* Expr_Call::_internal_mutable_function() { + + return _impl_.function_.Mutable(GetArenaForAllocation()); +} +inline std::string* Expr_Call::release_function() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Call.function) + return _impl_.function_.Release(); +} +inline void Expr_Call::set_allocated_function(std::string* function) { + if (function != nullptr) { + + } else { + + } + _impl_.function_.SetAllocated(function, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.function_.IsDefault()) { + _impl_.function_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Call.function) +} + +// repeated .google.api.expr.v1alpha1.Expr args = 3 [json_name = "args"]; +inline int Expr_Call::_internal_args_size() const { + return _impl_.args_.size(); +} +inline int Expr_Call::args_size() const { + return _internal_args_size(); +} +inline void Expr_Call::clear_args() { + _impl_.args_.Clear(); +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Call::mutable_args(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Call.args) + return _impl_.args_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr >* +Expr_Call::mutable_args() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Expr.Call.args) + return &_impl_.args_; +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_Call::_internal_args(int index) const { + return _impl_.args_.Get(index); +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_Call::args(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Call.args) + return _internal_args(index); +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Call::_internal_add_args() { + return _impl_.args_.Add(); +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Call::add_args() { + ::google::api::expr::v1alpha1::Expr* _add = _internal_add_args(); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Expr.Call.args) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr >& +Expr_Call::args() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Expr.Call.args) + return _impl_.args_; +} + +// ------------------------------------------------------------------- + +// Expr_CreateList + +// repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; +inline int Expr_CreateList::_internal_elements_size() const { + return _impl_.elements_.size(); +} +inline int Expr_CreateList::elements_size() const { + return _internal_elements_size(); +} +inline void Expr_CreateList::clear_elements() { + _impl_.elements_.Clear(); +} +inline ::google::api::expr::v1alpha1::Expr* Expr_CreateList::mutable_elements(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.CreateList.elements) + return _impl_.elements_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr >* +Expr_CreateList::mutable_elements() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Expr.CreateList.elements) + return &_impl_.elements_; +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_CreateList::_internal_elements(int index) const { + return _impl_.elements_.Get(index); +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_CreateList::elements(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.CreateList.elements) + return _internal_elements(index); +} +inline ::google::api::expr::v1alpha1::Expr* Expr_CreateList::_internal_add_elements() { + return _impl_.elements_.Add(); +} +inline ::google::api::expr::v1alpha1::Expr* Expr_CreateList::add_elements() { + ::google::api::expr::v1alpha1::Expr* _add = _internal_add_elements(); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Expr.CreateList.elements) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr >& +Expr_CreateList::elements() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Expr.CreateList.elements) + return _impl_.elements_; +} + +// ------------------------------------------------------------------- + +// Expr_CreateStruct_Entry + +// int64 id = 1 [json_name = "id"]; +inline void Expr_CreateStruct_Entry::clear_id() { + _impl_.id_ = int64_t{0}; +} +inline int64_t Expr_CreateStruct_Entry::_internal_id() const { + return _impl_.id_; +} +inline int64_t Expr_CreateStruct_Entry::id() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.id) + return _internal_id(); +} +inline void Expr_CreateStruct_Entry::_internal_set_id(int64_t value) { + + _impl_.id_ = value; +} +inline void Expr_CreateStruct_Entry::set_id(int64_t value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.id) +} + +// string field_key = 2 [json_name = "fieldKey"]; +inline bool Expr_CreateStruct_Entry::_internal_has_field_key() const { + return key_kind_case() == kFieldKey; +} +inline bool Expr_CreateStruct_Entry::has_field_key() const { + return _internal_has_field_key(); +} +inline void Expr_CreateStruct_Entry::set_has_field_key() { + _impl_._oneof_case_[0] = kFieldKey; +} +inline void Expr_CreateStruct_Entry::clear_field_key() { + if (_internal_has_field_key()) { + _impl_.key_kind_.field_key_.Destroy(); + clear_has_key_kind(); + } +} +inline const std::string& Expr_CreateStruct_Entry::field_key() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.field_key) + return _internal_field_key(); +} +template +inline void Expr_CreateStruct_Entry::set_field_key(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_field_key()) { + clear_key_kind(); + set_has_field_key(); + _impl_.key_kind_.field_key_.InitDefault(); + } + _impl_.key_kind_.field_key_.Set( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.field_key) +} +inline std::string* Expr_CreateStruct_Entry::mutable_field_key() { + std::string* _s = _internal_mutable_field_key(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.field_key) + return _s; +} +inline const std::string& Expr_CreateStruct_Entry::_internal_field_key() const { + if (_internal_has_field_key()) { + return _impl_.key_kind_.field_key_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void Expr_CreateStruct_Entry::_internal_set_field_key(const std::string& value) { + if (!_internal_has_field_key()) { + clear_key_kind(); + set_has_field_key(); + _impl_.key_kind_.field_key_.InitDefault(); + } + _impl_.key_kind_.field_key_.Set(value, GetArenaForAllocation()); +} +inline std::string* Expr_CreateStruct_Entry::_internal_mutable_field_key() { + if (!_internal_has_field_key()) { + clear_key_kind(); + set_has_field_key(); + _impl_.key_kind_.field_key_.InitDefault(); + } + return _impl_.key_kind_.field_key_.Mutable( GetArenaForAllocation()); +} +inline std::string* Expr_CreateStruct_Entry::release_field_key() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.field_key) + if (_internal_has_field_key()) { + clear_has_key_kind(); + return _impl_.key_kind_.field_key_.Release(); + } else { + return nullptr; + } +} +inline void Expr_CreateStruct_Entry::set_allocated_field_key(std::string* field_key) { + if (has_key_kind()) { + clear_key_kind(); + } + if (field_key != nullptr) { + set_has_field_key(); + _impl_.key_kind_.field_key_.InitAllocated(field_key, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.field_key) +} + +// .google.api.expr.v1alpha1.Expr map_key = 3 [json_name = "mapKey"]; +inline bool Expr_CreateStruct_Entry::_internal_has_map_key() const { + return key_kind_case() == kMapKey; +} +inline bool Expr_CreateStruct_Entry::has_map_key() const { + return _internal_has_map_key(); +} +inline void Expr_CreateStruct_Entry::set_has_map_key() { + _impl_._oneof_case_[0] = kMapKey; +} +inline void Expr_CreateStruct_Entry::clear_map_key() { + if (_internal_has_map_key()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.key_kind_.map_key_; + } + clear_has_key_kind(); + } +} +inline ::google::api::expr::v1alpha1::Expr* Expr_CreateStruct_Entry::release_map_key() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.map_key) + if (_internal_has_map_key()) { + clear_has_key_kind(); + ::google::api::expr::v1alpha1::Expr* temp = _impl_.key_kind_.map_key_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.key_kind_.map_key_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_CreateStruct_Entry::_internal_map_key() const { + return _internal_has_map_key() + ? *_impl_.key_kind_.map_key_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Expr&>(::google::api::expr::v1alpha1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_CreateStruct_Entry::map_key() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.map_key) + return _internal_map_key(); +} +inline ::google::api::expr::v1alpha1::Expr* Expr_CreateStruct_Entry::unsafe_arena_release_map_key() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.map_key) + if (_internal_has_map_key()) { + clear_has_key_kind(); + ::google::api::expr::v1alpha1::Expr* temp = _impl_.key_kind_.map_key_; + _impl_.key_kind_.map_key_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Expr_CreateStruct_Entry::unsafe_arena_set_allocated_map_key(::google::api::expr::v1alpha1::Expr* map_key) { + clear_key_kind(); + if (map_key) { + set_has_map_key(); + _impl_.key_kind_.map_key_ = map_key; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.map_key) +} +inline ::google::api::expr::v1alpha1::Expr* Expr_CreateStruct_Entry::_internal_mutable_map_key() { + if (!_internal_has_map_key()) { + clear_key_kind(); + set_has_map_key(); + _impl_.key_kind_.map_key_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr >(GetArenaForAllocation()); + } + return _impl_.key_kind_.map_key_; +} +inline ::google::api::expr::v1alpha1::Expr* Expr_CreateStruct_Entry::mutable_map_key() { + ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_map_key(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.map_key) + return _msg; +} + +// .google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"]; +inline bool Expr_CreateStruct_Entry::_internal_has_value() const { + return this != internal_default_instance() && _impl_.value_ != nullptr; +} +inline bool Expr_CreateStruct_Entry::has_value() const { + return _internal_has_value(); +} +inline void Expr_CreateStruct_Entry::clear_value() { + if (GetArenaForAllocation() == nullptr && _impl_.value_ != nullptr) { + delete _impl_.value_; + } + _impl_.value_ = nullptr; +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_CreateStruct_Entry::_internal_value() const { + const ::google::api::expr::v1alpha1::Expr* p = _impl_.value_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_CreateStruct_Entry::value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.value) + return _internal_value(); +} +inline void Expr_CreateStruct_Entry::unsafe_arena_set_allocated_value( + ::google::api::expr::v1alpha1::Expr* value) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.value_); + } + _impl_.value_ = value; + if (value) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.value) +} +inline ::google::api::expr::v1alpha1::Expr* Expr_CreateStruct_Entry::release_value() { + + ::google::api::expr::v1alpha1::Expr* temp = _impl_.value_; + _impl_.value_ = 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 ::google::api::expr::v1alpha1::Expr* Expr_CreateStruct_Entry::unsafe_arena_release_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.value) + + ::google::api::expr::v1alpha1::Expr* temp = _impl_.value_; + _impl_.value_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::Expr* Expr_CreateStruct_Entry::_internal_mutable_value() { + + if (_impl_.value_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArenaForAllocation()); + _impl_.value_ = p; + } + return _impl_.value_; +} +inline ::google::api::expr::v1alpha1::Expr* Expr_CreateStruct_Entry::mutable_value() { + ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.value) + return _msg; +} +inline void Expr_CreateStruct_Entry::set_allocated_value(::google::api::expr::v1alpha1::Expr* value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.value_; + } + if (value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(value); + if (message_arena != submessage_arena) { + value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + + } else { + + } + _impl_.value_ = value; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.value) +} + +// bool optional_entry = 5 [json_name = "optionalEntry"]; +inline void Expr_CreateStruct_Entry::clear_optional_entry() { + _impl_.optional_entry_ = false; +} +inline bool Expr_CreateStruct_Entry::_internal_optional_entry() const { + return _impl_.optional_entry_; +} +inline bool Expr_CreateStruct_Entry::optional_entry() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.optional_entry) + return _internal_optional_entry(); +} +inline void Expr_CreateStruct_Entry::_internal_set_optional_entry(bool value) { + + _impl_.optional_entry_ = value; +} +inline void Expr_CreateStruct_Entry::set_optional_entry(bool value) { + _internal_set_optional_entry(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.optional_entry) +} + +inline bool Expr_CreateStruct_Entry::has_key_kind() const { + return key_kind_case() != KEY_KIND_NOT_SET; +} +inline void Expr_CreateStruct_Entry::clear_has_key_kind() { + _impl_._oneof_case_[0] = KEY_KIND_NOT_SET; +} +inline Expr_CreateStruct_Entry::KeyKindCase Expr_CreateStruct_Entry::key_kind_case() const { + return Expr_CreateStruct_Entry::KeyKindCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// Expr_CreateStruct + +// string message_name = 1 [json_name = "messageName"]; +inline void Expr_CreateStruct::clear_message_name() { + _impl_.message_name_.ClearToEmpty(); +} +inline const std::string& Expr_CreateStruct::message_name() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.CreateStruct.message_name) + return _internal_message_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_CreateStruct::set_message_name(ArgT0&& arg0, ArgT... args) { + + _impl_.message_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.CreateStruct.message_name) +} +inline std::string* Expr_CreateStruct::mutable_message_name() { + std::string* _s = _internal_mutable_message_name(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.CreateStruct.message_name) + return _s; +} +inline const std::string& Expr_CreateStruct::_internal_message_name() const { + return _impl_.message_name_.Get(); +} +inline void Expr_CreateStruct::_internal_set_message_name(const std::string& value) { + + _impl_.message_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Expr_CreateStruct::_internal_mutable_message_name() { + + return _impl_.message_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* Expr_CreateStruct::release_message_name() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.CreateStruct.message_name) + return _impl_.message_name_.Release(); +} +inline void Expr_CreateStruct::set_allocated_message_name(std::string* message_name) { + if (message_name != nullptr) { + + } else { + + } + _impl_.message_name_.SetAllocated(message_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.message_name_.IsDefault()) { + _impl_.message_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.CreateStruct.message_name) +} + +// repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; +inline int Expr_CreateStruct::_internal_entries_size() const { + return _impl_.entries_.size(); +} +inline int Expr_CreateStruct::entries_size() const { + return _internal_entries_size(); +} +inline void Expr_CreateStruct::clear_entries() { + _impl_.entries_.Clear(); +} +inline ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* Expr_CreateStruct::mutable_entries(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.CreateStruct.entries) + return _impl_.entries_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry >* +Expr_CreateStruct::mutable_entries() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Expr.CreateStruct.entries) + return &_impl_.entries_; +} +inline const ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry& Expr_CreateStruct::_internal_entries(int index) const { + return _impl_.entries_.Get(index); +} +inline const ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry& Expr_CreateStruct::entries(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.CreateStruct.entries) + return _internal_entries(index); +} +inline ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* Expr_CreateStruct::_internal_add_entries() { + return _impl_.entries_.Add(); +} +inline ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* Expr_CreateStruct::add_entries() { + ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* _add = _internal_add_entries(); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Expr.CreateStruct.entries) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry >& +Expr_CreateStruct::entries() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Expr.CreateStruct.entries) + return _impl_.entries_; +} + +// ------------------------------------------------------------------- + +// Expr_Comprehension + +// string iter_var = 1 [json_name = "iterVar"]; +inline void Expr_Comprehension::clear_iter_var() { + _impl_.iter_var_.ClearToEmpty(); +} +inline const std::string& Expr_Comprehension::iter_var() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Comprehension.iter_var) + return _internal_iter_var(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_Comprehension::set_iter_var(ArgT0&& arg0, ArgT... args) { + + _impl_.iter_var_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.Comprehension.iter_var) +} +inline std::string* Expr_Comprehension::mutable_iter_var() { + std::string* _s = _internal_mutable_iter_var(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Comprehension.iter_var) + return _s; +} +inline const std::string& Expr_Comprehension::_internal_iter_var() const { + return _impl_.iter_var_.Get(); +} +inline void Expr_Comprehension::_internal_set_iter_var(const std::string& value) { + + _impl_.iter_var_.Set(value, GetArenaForAllocation()); +} +inline std::string* Expr_Comprehension::_internal_mutable_iter_var() { + + return _impl_.iter_var_.Mutable(GetArenaForAllocation()); +} +inline std::string* Expr_Comprehension::release_iter_var() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Comprehension.iter_var) + return _impl_.iter_var_.Release(); +} +inline void Expr_Comprehension::set_allocated_iter_var(std::string* iter_var) { + if (iter_var != nullptr) { + + } else { + + } + _impl_.iter_var_.SetAllocated(iter_var, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.iter_var_.IsDefault()) { + _impl_.iter_var_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.iter_var) +} + +// .google.api.expr.v1alpha1.Expr iter_range = 2 [json_name = "iterRange"]; +inline bool Expr_Comprehension::_internal_has_iter_range() const { + return this != internal_default_instance() && _impl_.iter_range_ != nullptr; +} +inline bool Expr_Comprehension::has_iter_range() const { + return _internal_has_iter_range(); +} +inline void Expr_Comprehension::clear_iter_range() { + if (GetArenaForAllocation() == nullptr && _impl_.iter_range_ != nullptr) { + delete _impl_.iter_range_; + } + _impl_.iter_range_ = nullptr; +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::_internal_iter_range() const { + const ::google::api::expr::v1alpha1::Expr* p = _impl_.iter_range_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::iter_range() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Comprehension.iter_range) + return _internal_iter_range(); +} +inline void Expr_Comprehension::unsafe_arena_set_allocated_iter_range( + ::google::api::expr::v1alpha1::Expr* iter_range) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.iter_range_); + } + _impl_.iter_range_ = iter_range; + if (iter_range) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.iter_range) +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::release_iter_range() { + + ::google::api::expr::v1alpha1::Expr* temp = _impl_.iter_range_; + _impl_.iter_range_ = 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 ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::unsafe_arena_release_iter_range() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Comprehension.iter_range) + + ::google::api::expr::v1alpha1::Expr* temp = _impl_.iter_range_; + _impl_.iter_range_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::_internal_mutable_iter_range() { + + if (_impl_.iter_range_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArenaForAllocation()); + _impl_.iter_range_ = p; + } + return _impl_.iter_range_; +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::mutable_iter_range() { + ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_iter_range(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Comprehension.iter_range) + return _msg; +} +inline void Expr_Comprehension::set_allocated_iter_range(::google::api::expr::v1alpha1::Expr* iter_range) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.iter_range_; + } + if (iter_range) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(iter_range); + if (message_arena != submessage_arena) { + iter_range = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, iter_range, submessage_arena); + } + + } else { + + } + _impl_.iter_range_ = iter_range; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.iter_range) +} + +// string accu_var = 3 [json_name = "accuVar"]; +inline void Expr_Comprehension::clear_accu_var() { + _impl_.accu_var_.ClearToEmpty(); +} +inline const std::string& Expr_Comprehension::accu_var() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Comprehension.accu_var) + return _internal_accu_var(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_Comprehension::set_accu_var(ArgT0&& arg0, ArgT... args) { + + _impl_.accu_var_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.Comprehension.accu_var) +} +inline std::string* Expr_Comprehension::mutable_accu_var() { + std::string* _s = _internal_mutable_accu_var(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Comprehension.accu_var) + return _s; +} +inline const std::string& Expr_Comprehension::_internal_accu_var() const { + return _impl_.accu_var_.Get(); +} +inline void Expr_Comprehension::_internal_set_accu_var(const std::string& value) { + + _impl_.accu_var_.Set(value, GetArenaForAllocation()); +} +inline std::string* Expr_Comprehension::_internal_mutable_accu_var() { + + return _impl_.accu_var_.Mutable(GetArenaForAllocation()); +} +inline std::string* Expr_Comprehension::release_accu_var() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Comprehension.accu_var) + return _impl_.accu_var_.Release(); +} +inline void Expr_Comprehension::set_allocated_accu_var(std::string* accu_var) { + if (accu_var != nullptr) { + + } else { + + } + _impl_.accu_var_.SetAllocated(accu_var, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.accu_var_.IsDefault()) { + _impl_.accu_var_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.accu_var) +} + +// .google.api.expr.v1alpha1.Expr accu_init = 4 [json_name = "accuInit"]; +inline bool Expr_Comprehension::_internal_has_accu_init() const { + return this != internal_default_instance() && _impl_.accu_init_ != nullptr; +} +inline bool Expr_Comprehension::has_accu_init() const { + return _internal_has_accu_init(); +} +inline void Expr_Comprehension::clear_accu_init() { + if (GetArenaForAllocation() == nullptr && _impl_.accu_init_ != nullptr) { + delete _impl_.accu_init_; + } + _impl_.accu_init_ = nullptr; +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::_internal_accu_init() const { + const ::google::api::expr::v1alpha1::Expr* p = _impl_.accu_init_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::accu_init() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Comprehension.accu_init) + return _internal_accu_init(); +} +inline void Expr_Comprehension::unsafe_arena_set_allocated_accu_init( + ::google::api::expr::v1alpha1::Expr* accu_init) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.accu_init_); + } + _impl_.accu_init_ = accu_init; + if (accu_init) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.accu_init) +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::release_accu_init() { + + ::google::api::expr::v1alpha1::Expr* temp = _impl_.accu_init_; + _impl_.accu_init_ = 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 ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::unsafe_arena_release_accu_init() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Comprehension.accu_init) + + ::google::api::expr::v1alpha1::Expr* temp = _impl_.accu_init_; + _impl_.accu_init_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::_internal_mutable_accu_init() { + + if (_impl_.accu_init_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArenaForAllocation()); + _impl_.accu_init_ = p; + } + return _impl_.accu_init_; +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::mutable_accu_init() { + ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_accu_init(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Comprehension.accu_init) + return _msg; +} +inline void Expr_Comprehension::set_allocated_accu_init(::google::api::expr::v1alpha1::Expr* accu_init) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.accu_init_; + } + if (accu_init) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(accu_init); + if (message_arena != submessage_arena) { + accu_init = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, accu_init, submessage_arena); + } + + } else { + + } + _impl_.accu_init_ = accu_init; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.accu_init) +} + +// .google.api.expr.v1alpha1.Expr loop_condition = 5 [json_name = "loopCondition"]; +inline bool Expr_Comprehension::_internal_has_loop_condition() const { + return this != internal_default_instance() && _impl_.loop_condition_ != nullptr; +} +inline bool Expr_Comprehension::has_loop_condition() const { + return _internal_has_loop_condition(); +} +inline void Expr_Comprehension::clear_loop_condition() { + if (GetArenaForAllocation() == nullptr && _impl_.loop_condition_ != nullptr) { + delete _impl_.loop_condition_; + } + _impl_.loop_condition_ = nullptr; +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::_internal_loop_condition() const { + const ::google::api::expr::v1alpha1::Expr* p = _impl_.loop_condition_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::loop_condition() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Comprehension.loop_condition) + return _internal_loop_condition(); +} +inline void Expr_Comprehension::unsafe_arena_set_allocated_loop_condition( + ::google::api::expr::v1alpha1::Expr* loop_condition) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.loop_condition_); + } + _impl_.loop_condition_ = loop_condition; + if (loop_condition) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.loop_condition) +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::release_loop_condition() { + + ::google::api::expr::v1alpha1::Expr* temp = _impl_.loop_condition_; + _impl_.loop_condition_ = 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 ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::unsafe_arena_release_loop_condition() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Comprehension.loop_condition) + + ::google::api::expr::v1alpha1::Expr* temp = _impl_.loop_condition_; + _impl_.loop_condition_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::_internal_mutable_loop_condition() { + + if (_impl_.loop_condition_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArenaForAllocation()); + _impl_.loop_condition_ = p; + } + return _impl_.loop_condition_; +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::mutable_loop_condition() { + ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_loop_condition(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Comprehension.loop_condition) + return _msg; +} +inline void Expr_Comprehension::set_allocated_loop_condition(::google::api::expr::v1alpha1::Expr* loop_condition) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.loop_condition_; + } + if (loop_condition) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(loop_condition); + if (message_arena != submessage_arena) { + loop_condition = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, loop_condition, submessage_arena); + } + + } else { + + } + _impl_.loop_condition_ = loop_condition; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.loop_condition) +} + +// .google.api.expr.v1alpha1.Expr loop_step = 6 [json_name = "loopStep"]; +inline bool Expr_Comprehension::_internal_has_loop_step() const { + return this != internal_default_instance() && _impl_.loop_step_ != nullptr; +} +inline bool Expr_Comprehension::has_loop_step() const { + return _internal_has_loop_step(); +} +inline void Expr_Comprehension::clear_loop_step() { + if (GetArenaForAllocation() == nullptr && _impl_.loop_step_ != nullptr) { + delete _impl_.loop_step_; + } + _impl_.loop_step_ = nullptr; +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::_internal_loop_step() const { + const ::google::api::expr::v1alpha1::Expr* p = _impl_.loop_step_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::loop_step() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Comprehension.loop_step) + return _internal_loop_step(); +} +inline void Expr_Comprehension::unsafe_arena_set_allocated_loop_step( + ::google::api::expr::v1alpha1::Expr* loop_step) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.loop_step_); + } + _impl_.loop_step_ = loop_step; + if (loop_step) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.loop_step) +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::release_loop_step() { + + ::google::api::expr::v1alpha1::Expr* temp = _impl_.loop_step_; + _impl_.loop_step_ = 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 ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::unsafe_arena_release_loop_step() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Comprehension.loop_step) + + ::google::api::expr::v1alpha1::Expr* temp = _impl_.loop_step_; + _impl_.loop_step_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::_internal_mutable_loop_step() { + + if (_impl_.loop_step_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArenaForAllocation()); + _impl_.loop_step_ = p; + } + return _impl_.loop_step_; +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::mutable_loop_step() { + ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_loop_step(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Comprehension.loop_step) + return _msg; +} +inline void Expr_Comprehension::set_allocated_loop_step(::google::api::expr::v1alpha1::Expr* loop_step) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.loop_step_; + } + if (loop_step) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(loop_step); + if (message_arena != submessage_arena) { + loop_step = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, loop_step, submessage_arena); + } + + } else { + + } + _impl_.loop_step_ = loop_step; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.loop_step) +} + +// .google.api.expr.v1alpha1.Expr result = 7 [json_name = "result"]; +inline bool Expr_Comprehension::_internal_has_result() const { + return this != internal_default_instance() && _impl_.result_ != nullptr; +} +inline bool Expr_Comprehension::has_result() const { + return _internal_has_result(); +} +inline void Expr_Comprehension::clear_result() { + if (GetArenaForAllocation() == nullptr && _impl_.result_ != nullptr) { + delete _impl_.result_; + } + _impl_.result_ = nullptr; +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::_internal_result() const { + const ::google::api::expr::v1alpha1::Expr* p = _impl_.result_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::result() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Comprehension.result) + return _internal_result(); +} +inline void Expr_Comprehension::unsafe_arena_set_allocated_result( + ::google::api::expr::v1alpha1::Expr* result) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.result_); + } + _impl_.result_ = result; + if (result) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.result) +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::release_result() { + + ::google::api::expr::v1alpha1::Expr* temp = _impl_.result_; + _impl_.result_ = 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 ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::unsafe_arena_release_result() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Comprehension.result) + + ::google::api::expr::v1alpha1::Expr* temp = _impl_.result_; + _impl_.result_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::_internal_mutable_result() { + + if (_impl_.result_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArenaForAllocation()); + _impl_.result_ = p; + } + return _impl_.result_; +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::mutable_result() { + ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_result(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Comprehension.result) + return _msg; +} +inline void Expr_Comprehension::set_allocated_result(::google::api::expr::v1alpha1::Expr* result) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.result_; + } + if (result) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(result); + if (message_arena != submessage_arena) { + result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, result, submessage_arena); + } + + } else { + + } + _impl_.result_ = result; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.result) +} + +// ------------------------------------------------------------------- + +// Expr + +// int64 id = 2 [json_name = "id"]; +inline void Expr::clear_id() { + _impl_.id_ = int64_t{0}; +} +inline int64_t Expr::_internal_id() const { + return _impl_.id_; +} +inline int64_t Expr::id() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.id) + return _internal_id(); +} +inline void Expr::_internal_set_id(int64_t value) { + + _impl_.id_ = value; +} +inline void Expr::set_id(int64_t value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.id) +} + +// .google.api.expr.v1alpha1.Constant const_expr = 3 [json_name = "constExpr"]; +inline bool Expr::_internal_has_const_expr() const { + return expr_kind_case() == kConstExpr; +} +inline bool Expr::has_const_expr() const { + return _internal_has_const_expr(); +} +inline void Expr::set_has_const_expr() { + _impl_._oneof_case_[0] = kConstExpr; +} +inline void Expr::clear_const_expr() { + if (_internal_has_const_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.const_expr_; + } + clear_has_expr_kind(); + } +} +inline ::google::api::expr::v1alpha1::Constant* Expr::release_const_expr() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.const_expr) + if (_internal_has_const_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1alpha1::Constant* temp = _impl_.expr_kind_.const_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.expr_kind_.const_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1alpha1::Constant& Expr::_internal_const_expr() const { + return _internal_has_const_expr() + ? *_impl_.expr_kind_.const_expr_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Constant&>(::google::api::expr::v1alpha1::_Constant_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Constant& Expr::const_expr() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.const_expr) + return _internal_const_expr(); +} +inline ::google::api::expr::v1alpha1::Constant* Expr::unsafe_arena_release_const_expr() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Expr.const_expr) + if (_internal_has_const_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1alpha1::Constant* temp = _impl_.expr_kind_.const_expr_; + _impl_.expr_kind_.const_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Expr::unsafe_arena_set_allocated_const_expr(::google::api::expr::v1alpha1::Constant* const_expr) { + clear_expr_kind(); + if (const_expr) { + set_has_const_expr(); + _impl_.expr_kind_.const_expr_ = const_expr; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.const_expr) +} +inline ::google::api::expr::v1alpha1::Constant* Expr::_internal_mutable_const_expr() { + if (!_internal_has_const_expr()) { + clear_expr_kind(); + set_has_const_expr(); + _impl_.expr_kind_.const_expr_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Constant >(GetArenaForAllocation()); + } + return _impl_.expr_kind_.const_expr_; +} +inline ::google::api::expr::v1alpha1::Constant* Expr::mutable_const_expr() { + ::google::api::expr::v1alpha1::Constant* _msg = _internal_mutable_const_expr(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.const_expr) + return _msg; +} + +// .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; +inline bool Expr::_internal_has_ident_expr() const { + return expr_kind_case() == kIdentExpr; +} +inline bool Expr::has_ident_expr() const { + return _internal_has_ident_expr(); +} +inline void Expr::set_has_ident_expr() { + _impl_._oneof_case_[0] = kIdentExpr; +} +inline void Expr::clear_ident_expr() { + if (_internal_has_ident_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.ident_expr_; + } + clear_has_expr_kind(); + } +} +inline ::google::api::expr::v1alpha1::Expr_Ident* Expr::release_ident_expr() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.ident_expr) + if (_internal_has_ident_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1alpha1::Expr_Ident* temp = _impl_.expr_kind_.ident_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.expr_kind_.ident_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1alpha1::Expr_Ident& Expr::_internal_ident_expr() const { + return _internal_has_ident_expr() + ? *_impl_.expr_kind_.ident_expr_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Expr_Ident&>(::google::api::expr::v1alpha1::_Expr_Ident_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Expr_Ident& Expr::ident_expr() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.ident_expr) + return _internal_ident_expr(); +} +inline ::google::api::expr::v1alpha1::Expr_Ident* Expr::unsafe_arena_release_ident_expr() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Expr.ident_expr) + if (_internal_has_ident_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1alpha1::Expr_Ident* temp = _impl_.expr_kind_.ident_expr_; + _impl_.expr_kind_.ident_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Expr::unsafe_arena_set_allocated_ident_expr(::google::api::expr::v1alpha1::Expr_Ident* ident_expr) { + clear_expr_kind(); + if (ident_expr) { + set_has_ident_expr(); + _impl_.expr_kind_.ident_expr_ = ident_expr; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.ident_expr) +} +inline ::google::api::expr::v1alpha1::Expr_Ident* Expr::_internal_mutable_ident_expr() { + if (!_internal_has_ident_expr()) { + clear_expr_kind(); + set_has_ident_expr(); + _impl_.expr_kind_.ident_expr_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_Ident >(GetArenaForAllocation()); + } + return _impl_.expr_kind_.ident_expr_; +} +inline ::google::api::expr::v1alpha1::Expr_Ident* Expr::mutable_ident_expr() { + ::google::api::expr::v1alpha1::Expr_Ident* _msg = _internal_mutable_ident_expr(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.ident_expr) + return _msg; +} + +// .google.api.expr.v1alpha1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; +inline bool Expr::_internal_has_select_expr() const { + return expr_kind_case() == kSelectExpr; +} +inline bool Expr::has_select_expr() const { + return _internal_has_select_expr(); +} +inline void Expr::set_has_select_expr() { + _impl_._oneof_case_[0] = kSelectExpr; +} +inline void Expr::clear_select_expr() { + if (_internal_has_select_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.select_expr_; + } + clear_has_expr_kind(); + } +} +inline ::google::api::expr::v1alpha1::Expr_Select* Expr::release_select_expr() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.select_expr) + if (_internal_has_select_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1alpha1::Expr_Select* temp = _impl_.expr_kind_.select_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.expr_kind_.select_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1alpha1::Expr_Select& Expr::_internal_select_expr() const { + return _internal_has_select_expr() + ? *_impl_.expr_kind_.select_expr_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Expr_Select&>(::google::api::expr::v1alpha1::_Expr_Select_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Expr_Select& Expr::select_expr() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.select_expr) + return _internal_select_expr(); +} +inline ::google::api::expr::v1alpha1::Expr_Select* Expr::unsafe_arena_release_select_expr() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Expr.select_expr) + if (_internal_has_select_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1alpha1::Expr_Select* temp = _impl_.expr_kind_.select_expr_; + _impl_.expr_kind_.select_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Expr::unsafe_arena_set_allocated_select_expr(::google::api::expr::v1alpha1::Expr_Select* select_expr) { + clear_expr_kind(); + if (select_expr) { + set_has_select_expr(); + _impl_.expr_kind_.select_expr_ = select_expr; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.select_expr) +} +inline ::google::api::expr::v1alpha1::Expr_Select* Expr::_internal_mutable_select_expr() { + if (!_internal_has_select_expr()) { + clear_expr_kind(); + set_has_select_expr(); + _impl_.expr_kind_.select_expr_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_Select >(GetArenaForAllocation()); + } + return _impl_.expr_kind_.select_expr_; +} +inline ::google::api::expr::v1alpha1::Expr_Select* Expr::mutable_select_expr() { + ::google::api::expr::v1alpha1::Expr_Select* _msg = _internal_mutable_select_expr(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.select_expr) + return _msg; +} + +// .google.api.expr.v1alpha1.Expr.Call call_expr = 6 [json_name = "callExpr"]; +inline bool Expr::_internal_has_call_expr() const { + return expr_kind_case() == kCallExpr; +} +inline bool Expr::has_call_expr() const { + return _internal_has_call_expr(); +} +inline void Expr::set_has_call_expr() { + _impl_._oneof_case_[0] = kCallExpr; +} +inline void Expr::clear_call_expr() { + if (_internal_has_call_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.call_expr_; + } + clear_has_expr_kind(); + } +} +inline ::google::api::expr::v1alpha1::Expr_Call* Expr::release_call_expr() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.call_expr) + if (_internal_has_call_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1alpha1::Expr_Call* temp = _impl_.expr_kind_.call_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.expr_kind_.call_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1alpha1::Expr_Call& Expr::_internal_call_expr() const { + return _internal_has_call_expr() + ? *_impl_.expr_kind_.call_expr_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Expr_Call&>(::google::api::expr::v1alpha1::_Expr_Call_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Expr_Call& Expr::call_expr() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.call_expr) + return _internal_call_expr(); +} +inline ::google::api::expr::v1alpha1::Expr_Call* Expr::unsafe_arena_release_call_expr() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Expr.call_expr) + if (_internal_has_call_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1alpha1::Expr_Call* temp = _impl_.expr_kind_.call_expr_; + _impl_.expr_kind_.call_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Expr::unsafe_arena_set_allocated_call_expr(::google::api::expr::v1alpha1::Expr_Call* call_expr) { + clear_expr_kind(); + if (call_expr) { + set_has_call_expr(); + _impl_.expr_kind_.call_expr_ = call_expr; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.call_expr) +} +inline ::google::api::expr::v1alpha1::Expr_Call* Expr::_internal_mutable_call_expr() { + if (!_internal_has_call_expr()) { + clear_expr_kind(); + set_has_call_expr(); + _impl_.expr_kind_.call_expr_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_Call >(GetArenaForAllocation()); + } + return _impl_.expr_kind_.call_expr_; +} +inline ::google::api::expr::v1alpha1::Expr_Call* Expr::mutable_call_expr() { + ::google::api::expr::v1alpha1::Expr_Call* _msg = _internal_mutable_call_expr(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.call_expr) + return _msg; +} + +// .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; +inline bool Expr::_internal_has_list_expr() const { + return expr_kind_case() == kListExpr; +} +inline bool Expr::has_list_expr() const { + return _internal_has_list_expr(); +} +inline void Expr::set_has_list_expr() { + _impl_._oneof_case_[0] = kListExpr; +} +inline void Expr::clear_list_expr() { + if (_internal_has_list_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.list_expr_; + } + clear_has_expr_kind(); + } +} +inline ::google::api::expr::v1alpha1::Expr_CreateList* Expr::release_list_expr() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.list_expr) + if (_internal_has_list_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1alpha1::Expr_CreateList* temp = _impl_.expr_kind_.list_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.expr_kind_.list_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1alpha1::Expr_CreateList& Expr::_internal_list_expr() const { + return _internal_has_list_expr() + ? *_impl_.expr_kind_.list_expr_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Expr_CreateList&>(::google::api::expr::v1alpha1::_Expr_CreateList_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Expr_CreateList& Expr::list_expr() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.list_expr) + return _internal_list_expr(); +} +inline ::google::api::expr::v1alpha1::Expr_CreateList* Expr::unsafe_arena_release_list_expr() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Expr.list_expr) + if (_internal_has_list_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1alpha1::Expr_CreateList* temp = _impl_.expr_kind_.list_expr_; + _impl_.expr_kind_.list_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Expr::unsafe_arena_set_allocated_list_expr(::google::api::expr::v1alpha1::Expr_CreateList* list_expr) { + clear_expr_kind(); + if (list_expr) { + set_has_list_expr(); + _impl_.expr_kind_.list_expr_ = list_expr; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.list_expr) +} +inline ::google::api::expr::v1alpha1::Expr_CreateList* Expr::_internal_mutable_list_expr() { + if (!_internal_has_list_expr()) { + clear_expr_kind(); + set_has_list_expr(); + _impl_.expr_kind_.list_expr_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_CreateList >(GetArenaForAllocation()); + } + return _impl_.expr_kind_.list_expr_; +} +inline ::google::api::expr::v1alpha1::Expr_CreateList* Expr::mutable_list_expr() { + ::google::api::expr::v1alpha1::Expr_CreateList* _msg = _internal_mutable_list_expr(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.list_expr) + return _msg; +} + +// .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; +inline bool Expr::_internal_has_struct_expr() const { + return expr_kind_case() == kStructExpr; +} +inline bool Expr::has_struct_expr() const { + return _internal_has_struct_expr(); +} +inline void Expr::set_has_struct_expr() { + _impl_._oneof_case_[0] = kStructExpr; +} +inline void Expr::clear_struct_expr() { + if (_internal_has_struct_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.struct_expr_; + } + clear_has_expr_kind(); + } +} +inline ::google::api::expr::v1alpha1::Expr_CreateStruct* Expr::release_struct_expr() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.struct_expr) + if (_internal_has_struct_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1alpha1::Expr_CreateStruct* temp = _impl_.expr_kind_.struct_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.expr_kind_.struct_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1alpha1::Expr_CreateStruct& Expr::_internal_struct_expr() const { + return _internal_has_struct_expr() + ? *_impl_.expr_kind_.struct_expr_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Expr_CreateStruct&>(::google::api::expr::v1alpha1::_Expr_CreateStruct_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Expr_CreateStruct& Expr::struct_expr() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.struct_expr) + return _internal_struct_expr(); +} +inline ::google::api::expr::v1alpha1::Expr_CreateStruct* Expr::unsafe_arena_release_struct_expr() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Expr.struct_expr) + if (_internal_has_struct_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1alpha1::Expr_CreateStruct* temp = _impl_.expr_kind_.struct_expr_; + _impl_.expr_kind_.struct_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Expr::unsafe_arena_set_allocated_struct_expr(::google::api::expr::v1alpha1::Expr_CreateStruct* struct_expr) { + clear_expr_kind(); + if (struct_expr) { + set_has_struct_expr(); + _impl_.expr_kind_.struct_expr_ = struct_expr; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.struct_expr) +} +inline ::google::api::expr::v1alpha1::Expr_CreateStruct* Expr::_internal_mutable_struct_expr() { + if (!_internal_has_struct_expr()) { + clear_expr_kind(); + set_has_struct_expr(); + _impl_.expr_kind_.struct_expr_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_CreateStruct >(GetArenaForAllocation()); + } + return _impl_.expr_kind_.struct_expr_; +} +inline ::google::api::expr::v1alpha1::Expr_CreateStruct* Expr::mutable_struct_expr() { + ::google::api::expr::v1alpha1::Expr_CreateStruct* _msg = _internal_mutable_struct_expr(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.struct_expr) + return _msg; +} + +// .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; +inline bool Expr::_internal_has_comprehension_expr() const { + return expr_kind_case() == kComprehensionExpr; +} +inline bool Expr::has_comprehension_expr() const { + return _internal_has_comprehension_expr(); +} +inline void Expr::set_has_comprehension_expr() { + _impl_._oneof_case_[0] = kComprehensionExpr; +} +inline void Expr::clear_comprehension_expr() { + if (_internal_has_comprehension_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.comprehension_expr_; + } + clear_has_expr_kind(); + } +} +inline ::google::api::expr::v1alpha1::Expr_Comprehension* Expr::release_comprehension_expr() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.comprehension_expr) + if (_internal_has_comprehension_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1alpha1::Expr_Comprehension* temp = _impl_.expr_kind_.comprehension_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.expr_kind_.comprehension_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1alpha1::Expr_Comprehension& Expr::_internal_comprehension_expr() const { + return _internal_has_comprehension_expr() + ? *_impl_.expr_kind_.comprehension_expr_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Expr_Comprehension&>(::google::api::expr::v1alpha1::_Expr_Comprehension_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Expr_Comprehension& Expr::comprehension_expr() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.comprehension_expr) + return _internal_comprehension_expr(); +} +inline ::google::api::expr::v1alpha1::Expr_Comprehension* Expr::unsafe_arena_release_comprehension_expr() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Expr.comprehension_expr) + if (_internal_has_comprehension_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1alpha1::Expr_Comprehension* temp = _impl_.expr_kind_.comprehension_expr_; + _impl_.expr_kind_.comprehension_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Expr::unsafe_arena_set_allocated_comprehension_expr(::google::api::expr::v1alpha1::Expr_Comprehension* comprehension_expr) { + clear_expr_kind(); + if (comprehension_expr) { + set_has_comprehension_expr(); + _impl_.expr_kind_.comprehension_expr_ = comprehension_expr; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.comprehension_expr) +} +inline ::google::api::expr::v1alpha1::Expr_Comprehension* Expr::_internal_mutable_comprehension_expr() { + if (!_internal_has_comprehension_expr()) { + clear_expr_kind(); + set_has_comprehension_expr(); + _impl_.expr_kind_.comprehension_expr_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_Comprehension >(GetArenaForAllocation()); + } + return _impl_.expr_kind_.comprehension_expr_; +} +inline ::google::api::expr::v1alpha1::Expr_Comprehension* Expr::mutable_comprehension_expr() { + ::google::api::expr::v1alpha1::Expr_Comprehension* _msg = _internal_mutable_comprehension_expr(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.comprehension_expr) + return _msg; +} + +inline bool Expr::has_expr_kind() const { + return expr_kind_case() != EXPR_KIND_NOT_SET; +} +inline void Expr::clear_has_expr_kind() { + _impl_._oneof_case_[0] = EXPR_KIND_NOT_SET; +} +inline Expr::ExprKindCase Expr::expr_kind_case() const { + return Expr::ExprKindCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// Constant + +// .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; +inline bool Constant::_internal_has_null_value() const { + return constant_kind_case() == kNullValue; +} +inline bool Constant::has_null_value() const { + return _internal_has_null_value(); +} +inline void Constant::set_has_null_value() { + _impl_._oneof_case_[0] = kNullValue; +} +inline void Constant::clear_null_value() { + if (_internal_has_null_value()) { + _impl_.constant_kind_.null_value_ = 0; + clear_has_constant_kind(); + } +} +inline ::PROTOBUF_NAMESPACE_ID::NullValue Constant::_internal_null_value() const { + if (_internal_has_null_value()) { + return static_cast< ::PROTOBUF_NAMESPACE_ID::NullValue >(_impl_.constant_kind_.null_value_); + } + return static_cast< ::PROTOBUF_NAMESPACE_ID::NullValue >(0); +} +inline ::PROTOBUF_NAMESPACE_ID::NullValue Constant::null_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.null_value) + return _internal_null_value(); +} +inline void Constant::_internal_set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value) { + if (!_internal_has_null_value()) { + clear_constant_kind(); + set_has_null_value(); + } + _impl_.constant_kind_.null_value_ = value; +} +inline void Constant::set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value) { + _internal_set_null_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Constant.null_value) +} + +// bool bool_value = 2 [json_name = "boolValue"]; +inline bool Constant::_internal_has_bool_value() const { + return constant_kind_case() == kBoolValue; +} +inline bool Constant::has_bool_value() const { + return _internal_has_bool_value(); +} +inline void Constant::set_has_bool_value() { + _impl_._oneof_case_[0] = kBoolValue; +} +inline void Constant::clear_bool_value() { + if (_internal_has_bool_value()) { + _impl_.constant_kind_.bool_value_ = false; + clear_has_constant_kind(); + } +} +inline bool Constant::_internal_bool_value() const { + if (_internal_has_bool_value()) { + return _impl_.constant_kind_.bool_value_; + } + return false; +} +inline void Constant::_internal_set_bool_value(bool value) { + if (!_internal_has_bool_value()) { + clear_constant_kind(); + set_has_bool_value(); + } + _impl_.constant_kind_.bool_value_ = value; +} +inline bool Constant::bool_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.bool_value) + return _internal_bool_value(); +} +inline void Constant::set_bool_value(bool value) { + _internal_set_bool_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Constant.bool_value) +} + +// int64 int64_value = 3 [json_name = "int64Value"]; +inline bool Constant::_internal_has_int64_value() const { + return constant_kind_case() == kInt64Value; +} +inline bool Constant::has_int64_value() const { + return _internal_has_int64_value(); +} +inline void Constant::set_has_int64_value() { + _impl_._oneof_case_[0] = kInt64Value; +} +inline void Constant::clear_int64_value() { + if (_internal_has_int64_value()) { + _impl_.constant_kind_.int64_value_ = int64_t{0}; + clear_has_constant_kind(); + } +} +inline int64_t Constant::_internal_int64_value() const { + if (_internal_has_int64_value()) { + return _impl_.constant_kind_.int64_value_; + } + return int64_t{0}; +} +inline void Constant::_internal_set_int64_value(int64_t value) { + if (!_internal_has_int64_value()) { + clear_constant_kind(); + set_has_int64_value(); + } + _impl_.constant_kind_.int64_value_ = value; +} +inline int64_t Constant::int64_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.int64_value) + return _internal_int64_value(); +} +inline void Constant::set_int64_value(int64_t value) { + _internal_set_int64_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Constant.int64_value) +} + +// uint64 uint64_value = 4 [json_name = "uint64Value"]; +inline bool Constant::_internal_has_uint64_value() const { + return constant_kind_case() == kUint64Value; +} +inline bool Constant::has_uint64_value() const { + return _internal_has_uint64_value(); +} +inline void Constant::set_has_uint64_value() { + _impl_._oneof_case_[0] = kUint64Value; +} +inline void Constant::clear_uint64_value() { + if (_internal_has_uint64_value()) { + _impl_.constant_kind_.uint64_value_ = uint64_t{0u}; + clear_has_constant_kind(); + } +} +inline uint64_t Constant::_internal_uint64_value() const { + if (_internal_has_uint64_value()) { + return _impl_.constant_kind_.uint64_value_; + } + return uint64_t{0u}; +} +inline void Constant::_internal_set_uint64_value(uint64_t value) { + if (!_internal_has_uint64_value()) { + clear_constant_kind(); + set_has_uint64_value(); + } + _impl_.constant_kind_.uint64_value_ = value; +} +inline uint64_t Constant::uint64_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.uint64_value) + return _internal_uint64_value(); +} +inline void Constant::set_uint64_value(uint64_t value) { + _internal_set_uint64_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Constant.uint64_value) +} + +// double double_value = 5 [json_name = "doubleValue"]; +inline bool Constant::_internal_has_double_value() const { + return constant_kind_case() == kDoubleValue; +} +inline bool Constant::has_double_value() const { + return _internal_has_double_value(); +} +inline void Constant::set_has_double_value() { + _impl_._oneof_case_[0] = kDoubleValue; +} +inline void Constant::clear_double_value() { + if (_internal_has_double_value()) { + _impl_.constant_kind_.double_value_ = 0; + clear_has_constant_kind(); + } +} +inline double Constant::_internal_double_value() const { + if (_internal_has_double_value()) { + return _impl_.constant_kind_.double_value_; + } + return 0; +} +inline void Constant::_internal_set_double_value(double value) { + if (!_internal_has_double_value()) { + clear_constant_kind(); + set_has_double_value(); + } + _impl_.constant_kind_.double_value_ = value; +} +inline double Constant::double_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.double_value) + return _internal_double_value(); +} +inline void Constant::set_double_value(double value) { + _internal_set_double_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Constant.double_value) +} + +// string string_value = 6 [json_name = "stringValue"]; +inline bool Constant::_internal_has_string_value() const { + return constant_kind_case() == kStringValue; +} +inline bool Constant::has_string_value() const { + return _internal_has_string_value(); +} +inline void Constant::set_has_string_value() { + _impl_._oneof_case_[0] = kStringValue; +} +inline void Constant::clear_string_value() { + if (_internal_has_string_value()) { + _impl_.constant_kind_.string_value_.Destroy(); + clear_has_constant_kind(); + } +} +inline const std::string& Constant::string_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.string_value) + return _internal_string_value(); +} +template +inline void Constant::set_string_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_string_value()) { + clear_constant_kind(); + set_has_string_value(); + _impl_.constant_kind_.string_value_.InitDefault(); + } + _impl_.constant_kind_.string_value_.Set( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Constant.string_value) +} +inline std::string* Constant::mutable_string_value() { + std::string* _s = _internal_mutable_string_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Constant.string_value) + return _s; +} +inline const std::string& Constant::_internal_string_value() const { + if (_internal_has_string_value()) { + return _impl_.constant_kind_.string_value_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void Constant::_internal_set_string_value(const std::string& value) { + if (!_internal_has_string_value()) { + clear_constant_kind(); + set_has_string_value(); + _impl_.constant_kind_.string_value_.InitDefault(); + } + _impl_.constant_kind_.string_value_.Set(value, GetArenaForAllocation()); +} +inline std::string* Constant::_internal_mutable_string_value() { + if (!_internal_has_string_value()) { + clear_constant_kind(); + set_has_string_value(); + _impl_.constant_kind_.string_value_.InitDefault(); + } + return _impl_.constant_kind_.string_value_.Mutable( GetArenaForAllocation()); +} +inline std::string* Constant::release_string_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Constant.string_value) + if (_internal_has_string_value()) { + clear_has_constant_kind(); + return _impl_.constant_kind_.string_value_.Release(); + } else { + return nullptr; + } +} +inline void Constant::set_allocated_string_value(std::string* string_value) { + if (has_constant_kind()) { + clear_constant_kind(); + } + if (string_value != nullptr) { + set_has_string_value(); + _impl_.constant_kind_.string_value_.InitAllocated(string_value, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Constant.string_value) +} + +// bytes bytes_value = 7 [json_name = "bytesValue"]; +inline bool Constant::_internal_has_bytes_value() const { + return constant_kind_case() == kBytesValue; +} +inline bool Constant::has_bytes_value() const { + return _internal_has_bytes_value(); +} +inline void Constant::set_has_bytes_value() { + _impl_._oneof_case_[0] = kBytesValue; +} +inline void Constant::clear_bytes_value() { + if (_internal_has_bytes_value()) { + _impl_.constant_kind_.bytes_value_.Destroy(); + clear_has_constant_kind(); + } +} +inline const std::string& Constant::bytes_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.bytes_value) + return _internal_bytes_value(); +} +template +inline void Constant::set_bytes_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_bytes_value()) { + clear_constant_kind(); + set_has_bytes_value(); + _impl_.constant_kind_.bytes_value_.InitDefault(); + } + _impl_.constant_kind_.bytes_value_.SetBytes( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Constant.bytes_value) +} +inline std::string* Constant::mutable_bytes_value() { + std::string* _s = _internal_mutable_bytes_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Constant.bytes_value) + return _s; +} +inline const std::string& Constant::_internal_bytes_value() const { + if (_internal_has_bytes_value()) { + return _impl_.constant_kind_.bytes_value_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void Constant::_internal_set_bytes_value(const std::string& value) { + if (!_internal_has_bytes_value()) { + clear_constant_kind(); + set_has_bytes_value(); + _impl_.constant_kind_.bytes_value_.InitDefault(); + } + _impl_.constant_kind_.bytes_value_.Set(value, GetArenaForAllocation()); +} +inline std::string* Constant::_internal_mutable_bytes_value() { + if (!_internal_has_bytes_value()) { + clear_constant_kind(); + set_has_bytes_value(); + _impl_.constant_kind_.bytes_value_.InitDefault(); + } + return _impl_.constant_kind_.bytes_value_.Mutable( GetArenaForAllocation()); +} +inline std::string* Constant::release_bytes_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Constant.bytes_value) + if (_internal_has_bytes_value()) { + clear_has_constant_kind(); + return _impl_.constant_kind_.bytes_value_.Release(); + } else { + return nullptr; + } +} +inline void Constant::set_allocated_bytes_value(std::string* bytes_value) { + if (has_constant_kind()) { + clear_constant_kind(); + } + if (bytes_value != nullptr) { + set_has_bytes_value(); + _impl_.constant_kind_.bytes_value_.InitAllocated(bytes_value, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Constant.bytes_value) +} + +// .google.protobuf.Duration duration_value = 8 [json_name = "durationValue", deprecated = true]; +inline bool Constant::_internal_has_duration_value() const { + return constant_kind_case() == kDurationValue; +} +inline bool Constant::has_duration_value() const { + return _internal_has_duration_value(); +} +inline void Constant::set_has_duration_value() { + _impl_._oneof_case_[0] = kDurationValue; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* Constant::release_duration_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Constant.duration_value) + if (_internal_has_duration_value()) { + clear_has_constant_kind(); + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.constant_kind_.duration_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.constant_kind_.duration_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& Constant::_internal_duration_value() const { + return _internal_has_duration_value() + ? *_impl_.constant_kind_.duration_value_ + : reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::Duration&>(::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& Constant::duration_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.duration_value) + return _internal_duration_value(); +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* Constant::unsafe_arena_release_duration_value() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Constant.duration_value) + if (_internal_has_duration_value()) { + clear_has_constant_kind(); + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.constant_kind_.duration_value_; + _impl_.constant_kind_.duration_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Constant::unsafe_arena_set_allocated_duration_value(::PROTOBUF_NAMESPACE_ID::Duration* duration_value) { + clear_constant_kind(); + if (duration_value) { + set_has_duration_value(); + _impl_.constant_kind_.duration_value_ = duration_value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Constant.duration_value) +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* Constant::_internal_mutable_duration_value() { + if (!_internal_has_duration_value()) { + clear_constant_kind(); + set_has_duration_value(); + _impl_.constant_kind_.duration_value_ = CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Duration >(GetArenaForAllocation()); + } + return _impl_.constant_kind_.duration_value_; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* Constant::mutable_duration_value() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_duration_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Constant.duration_value) + return _msg; +} + +// .google.protobuf.Timestamp timestamp_value = 9 [json_name = "timestampValue", deprecated = true]; +inline bool Constant::_internal_has_timestamp_value() const { + return constant_kind_case() == kTimestampValue; +} +inline bool Constant::has_timestamp_value() const { + return _internal_has_timestamp_value(); +} +inline void Constant::set_has_timestamp_value() { + _impl_._oneof_case_[0] = kTimestampValue; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Constant::release_timestamp_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Constant.timestamp_value) + if (_internal_has_timestamp_value()) { + clear_has_constant_kind(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.constant_kind_.timestamp_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.constant_kind_.timestamp_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Constant::_internal_timestamp_value() const { + return _internal_has_timestamp_value() + ? *_impl_.constant_kind_.timestamp_value_ + : reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::Timestamp&>(::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Constant::timestamp_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.timestamp_value) + return _internal_timestamp_value(); +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Constant::unsafe_arena_release_timestamp_value() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Constant.timestamp_value) + if (_internal_has_timestamp_value()) { + clear_has_constant_kind(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.constant_kind_.timestamp_value_; + _impl_.constant_kind_.timestamp_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Constant::unsafe_arena_set_allocated_timestamp_value(::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp_value) { + clear_constant_kind(); + if (timestamp_value) { + set_has_timestamp_value(); + _impl_.constant_kind_.timestamp_value_ = timestamp_value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Constant.timestamp_value) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Constant::_internal_mutable_timestamp_value() { + if (!_internal_has_timestamp_value()) { + clear_constant_kind(); + set_has_timestamp_value(); + _impl_.constant_kind_.timestamp_value_ = CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Timestamp >(GetArenaForAllocation()); + } + return _impl_.constant_kind_.timestamp_value_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Constant::mutable_timestamp_value() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_timestamp_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Constant.timestamp_value) + return _msg; +} + +inline bool Constant::has_constant_kind() const { + return constant_kind_case() != CONSTANT_KIND_NOT_SET; +} +inline void Constant::clear_has_constant_kind() { + _impl_._oneof_case_[0] = CONSTANT_KIND_NOT_SET; +} +inline Constant::ConstantKindCase Constant::constant_kind_case() const { + return Constant::ConstantKindCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// SourceInfo + +// string syntax_version = 1 [json_name = "syntaxVersion"]; +inline void SourceInfo::clear_syntax_version() { + _impl_.syntax_version_.ClearToEmpty(); +} +inline const std::string& SourceInfo::syntax_version() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourceInfo.syntax_version) + return _internal_syntax_version(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SourceInfo::set_syntax_version(ArgT0&& arg0, ArgT... args) { + + _impl_.syntax_version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourceInfo.syntax_version) +} +inline std::string* SourceInfo::mutable_syntax_version() { + std::string* _s = _internal_mutable_syntax_version(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.SourceInfo.syntax_version) + return _s; +} +inline const std::string& SourceInfo::_internal_syntax_version() const { + return _impl_.syntax_version_.Get(); +} +inline void SourceInfo::_internal_set_syntax_version(const std::string& value) { + + _impl_.syntax_version_.Set(value, GetArenaForAllocation()); +} +inline std::string* SourceInfo::_internal_mutable_syntax_version() { + + return _impl_.syntax_version_.Mutable(GetArenaForAllocation()); +} +inline std::string* SourceInfo::release_syntax_version() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.SourceInfo.syntax_version) + return _impl_.syntax_version_.Release(); +} +inline void SourceInfo::set_allocated_syntax_version(std::string* syntax_version) { + if (syntax_version != nullptr) { + + } else { + + } + _impl_.syntax_version_.SetAllocated(syntax_version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.syntax_version_.IsDefault()) { + _impl_.syntax_version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.SourceInfo.syntax_version) +} + +// string location = 2 [json_name = "location"]; +inline void SourceInfo::clear_location() { + _impl_.location_.ClearToEmpty(); +} +inline const std::string& SourceInfo::location() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourceInfo.location) + return _internal_location(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SourceInfo::set_location(ArgT0&& arg0, ArgT... args) { + + _impl_.location_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourceInfo.location) +} +inline std::string* SourceInfo::mutable_location() { + std::string* _s = _internal_mutable_location(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.SourceInfo.location) + return _s; +} +inline const std::string& SourceInfo::_internal_location() const { + return _impl_.location_.Get(); +} +inline void SourceInfo::_internal_set_location(const std::string& value) { + + _impl_.location_.Set(value, GetArenaForAllocation()); +} +inline std::string* SourceInfo::_internal_mutable_location() { + + return _impl_.location_.Mutable(GetArenaForAllocation()); +} +inline std::string* SourceInfo::release_location() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.SourceInfo.location) + return _impl_.location_.Release(); +} +inline void SourceInfo::set_allocated_location(std::string* location) { + if (location != nullptr) { + + } else { + + } + _impl_.location_.SetAllocated(location, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.location_.IsDefault()) { + _impl_.location_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.SourceInfo.location) +} + +// repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; +inline int SourceInfo::_internal_line_offsets_size() const { + return _impl_.line_offsets_.size(); +} +inline int SourceInfo::line_offsets_size() const { + return _internal_line_offsets_size(); +} +inline void SourceInfo::clear_line_offsets() { + _impl_.line_offsets_.Clear(); +} +inline int32_t SourceInfo::_internal_line_offsets(int index) const { + return _impl_.line_offsets_.Get(index); +} +inline int32_t SourceInfo::line_offsets(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourceInfo.line_offsets) + return _internal_line_offsets(index); +} +inline void SourceInfo::set_line_offsets(int index, int32_t value) { + _impl_.line_offsets_.Set(index, value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourceInfo.line_offsets) +} +inline void SourceInfo::_internal_add_line_offsets(int32_t value) { + _impl_.line_offsets_.Add(value); +} +inline void SourceInfo::add_line_offsets(int32_t value) { + _internal_add_line_offsets(value); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.SourceInfo.line_offsets) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& +SourceInfo::_internal_line_offsets() const { + return _impl_.line_offsets_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& +SourceInfo::line_offsets() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.SourceInfo.line_offsets) + return _internal_line_offsets(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* +SourceInfo::_internal_mutable_line_offsets() { + return &_impl_.line_offsets_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* +SourceInfo::mutable_line_offsets() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.SourceInfo.line_offsets) + return _internal_mutable_line_offsets(); +} + +// map positions = 4 [json_name = "positions"]; +inline int SourceInfo::_internal_positions_size() const { + return _impl_.positions_.size(); +} +inline int SourceInfo::positions_size() const { + return _internal_positions_size(); +} +inline void SourceInfo::clear_positions() { + _impl_.positions_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, int32_t >& +SourceInfo::_internal_positions() const { + return _impl_.positions_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, int32_t >& +SourceInfo::positions() const { + // @@protoc_insertion_point(field_map:google.api.expr.v1alpha1.SourceInfo.positions) + return _internal_positions(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< int64_t, int32_t >* +SourceInfo::_internal_mutable_positions() { + return _impl_.positions_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< int64_t, int32_t >* +SourceInfo::mutable_positions() { + // @@protoc_insertion_point(field_mutable_map:google.api.expr.v1alpha1.SourceInfo.positions) + return _internal_mutable_positions(); +} + +// map macro_calls = 5 [json_name = "macroCalls"]; +inline int SourceInfo::_internal_macro_calls_size() const { + return _impl_.macro_calls_.size(); +} +inline int SourceInfo::macro_calls_size() const { + return _internal_macro_calls_size(); +} +inline void SourceInfo::clear_macro_calls() { + _impl_.macro_calls_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Expr >& +SourceInfo::_internal_macro_calls() const { + return _impl_.macro_calls_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Expr >& +SourceInfo::macro_calls() const { + // @@protoc_insertion_point(field_map:google.api.expr.v1alpha1.SourceInfo.macro_calls) + return _internal_macro_calls(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Expr >* +SourceInfo::_internal_mutable_macro_calls() { + return _impl_.macro_calls_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Expr >* +SourceInfo::mutable_macro_calls() { + // @@protoc_insertion_point(field_mutable_map:google.api.expr.v1alpha1.SourceInfo.macro_calls) + return _internal_mutable_macro_calls(); +} + +// ------------------------------------------------------------------- + +// SourcePosition + +// string location = 1 [json_name = "location"]; +inline void SourcePosition::clear_location() { + _impl_.location_.ClearToEmpty(); +} +inline const std::string& SourcePosition::location() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourcePosition.location) + return _internal_location(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SourcePosition::set_location(ArgT0&& arg0, ArgT... args) { + + _impl_.location_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourcePosition.location) +} +inline std::string* SourcePosition::mutable_location() { + std::string* _s = _internal_mutable_location(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.SourcePosition.location) + return _s; +} +inline const std::string& SourcePosition::_internal_location() const { + return _impl_.location_.Get(); +} +inline void SourcePosition::_internal_set_location(const std::string& value) { + + _impl_.location_.Set(value, GetArenaForAllocation()); +} +inline std::string* SourcePosition::_internal_mutable_location() { + + return _impl_.location_.Mutable(GetArenaForAllocation()); +} +inline std::string* SourcePosition::release_location() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.SourcePosition.location) + return _impl_.location_.Release(); +} +inline void SourcePosition::set_allocated_location(std::string* location) { + if (location != nullptr) { + + } else { + + } + _impl_.location_.SetAllocated(location, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.location_.IsDefault()) { + _impl_.location_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.SourcePosition.location) +} + +// int32 offset = 2 [json_name = "offset"]; +inline void SourcePosition::clear_offset() { + _impl_.offset_ = 0; +} +inline int32_t SourcePosition::_internal_offset() const { + return _impl_.offset_; +} +inline int32_t SourcePosition::offset() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourcePosition.offset) + return _internal_offset(); +} +inline void SourcePosition::_internal_set_offset(int32_t value) { + + _impl_.offset_ = value; +} +inline void SourcePosition::set_offset(int32_t value) { + _internal_set_offset(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourcePosition.offset) +} + +// int32 line = 3 [json_name = "line"]; +inline void SourcePosition::clear_line() { + _impl_.line_ = 0; +} +inline int32_t SourcePosition::_internal_line() const { + return _impl_.line_; +} +inline int32_t SourcePosition::line() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourcePosition.line) + return _internal_line(); +} +inline void SourcePosition::_internal_set_line(int32_t value) { + + _impl_.line_ = value; +} +inline void SourcePosition::set_line(int32_t value) { + _internal_set_line(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourcePosition.line) +} + +// int32 column = 4 [json_name = "column"]; +inline void SourcePosition::clear_column() { + _impl_.column_ = 0; +} +inline int32_t SourcePosition::_internal_column() const { + return _impl_.column_; +} +inline int32_t SourcePosition::column() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourcePosition.column) + return _internal_column(); +} +inline void SourcePosition::_internal_set_column(int32_t value) { + + _impl_.column_ = value; +} +inline void SourcePosition::set_column(int32_t value) { + _internal_set_column(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourcePosition.column) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto diff --git a/src/gen/google/api/expr/v1alpha1/value.grpc.pb.cc b/src/gen/google/api/expr/v1alpha1/value.grpc.pb.cc new file mode 100644 index 000000000..dcc5e1930 --- /dev/null +++ b/src/gen/google/api/expr/v1alpha1/value.grpc.pb.cc @@ -0,0 +1,31 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/expr/v1alpha1/value.proto + +#include "google/api/expr/v1alpha1/value.pb.h" +#include "google/api/expr/v1alpha1/value.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { + +} // namespace google +} // namespace api +} // namespace expr +} // namespace v1alpha1 + diff --git a/src/gen/google/api/expr/v1alpha1/value.grpc.pb.h b/src/gen/google/api/expr/v1alpha1/value.grpc.pb.h new file mode 100644 index 000000000..3e3d68edb --- /dev/null +++ b/src/gen/google/api/expr/v1alpha1/value.grpc.pb.h @@ -0,0 +1,54 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/expr/v1alpha1/value.proto +// Original file comments: +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto__INCLUDED +#define GRPC_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto__INCLUDED + +#include "google/api/expr/v1alpha1/value.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { + +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google + + +#endif // GRPC_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto__INCLUDED diff --git a/src/gen/google/api/expr/v1alpha1/value.pb.cc b/src/gen/google/api/expr/v1alpha1/value.pb.cc new file mode 100644 index 000000000..98ee9c70f --- /dev/null +++ b/src/gen/google/api/expr/v1alpha1/value.pb.cc @@ -0,0 +1,1793 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/expr/v1alpha1/value.proto + +#include "google/api/expr/v1alpha1/value.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { +PROTOBUF_CONSTEXPR Value::Value( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.kind_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct ValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR ValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ValueDefaultTypeInternal() {} + union { + Value _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValueDefaultTypeInternal _Value_default_instance_; +PROTOBUF_CONSTEXPR EnumValue::EnumValue( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.value_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct EnumValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR EnumValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EnumValueDefaultTypeInternal() {} + union { + EnumValue _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnumValueDefaultTypeInternal _EnumValue_default_instance_; +PROTOBUF_CONSTEXPR ListValue::ListValue( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.values_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ListValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListValueDefaultTypeInternal() {} + union { + ListValue _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListValueDefaultTypeInternal _ListValue_default_instance_; +PROTOBUF_CONSTEXPR MapValue_Entry::MapValue_Entry( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.key_)*/nullptr + , /*decltype(_impl_.value_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct MapValue_EntryDefaultTypeInternal { + PROTOBUF_CONSTEXPR MapValue_EntryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MapValue_EntryDefaultTypeInternal() {} + union { + MapValue_Entry _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MapValue_EntryDefaultTypeInternal _MapValue_Entry_default_instance_; +PROTOBUF_CONSTEXPR MapValue::MapValue( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.entries_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct MapValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR MapValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MapValueDefaultTypeInternal() {} + union { + MapValue _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MapValueDefaultTypeInternal _MapValue_default_instance_; +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google +static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto[5]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Value, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Value, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Value, _impl_.kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EnumValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EnumValue, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EnumValue, _impl_.value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ListValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ListValue, _impl_.values_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::MapValue_Entry, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::MapValue_Entry, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::MapValue_Entry, _impl_.value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::MapValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::MapValue, _impl_.entries_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::expr::v1alpha1::Value)}, + { 19, -1, -1, sizeof(::google::api::expr::v1alpha1::EnumValue)}, + { 27, -1, -1, sizeof(::google::api::expr::v1alpha1::ListValue)}, + { 34, -1, -1, sizeof(::google::api::expr::v1alpha1::MapValue_Entry)}, + { 42, -1, -1, sizeof(::google::api::expr::v1alpha1::MapValue)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::google::api::expr::v1alpha1::_Value_default_instance_._instance, + &::google::api::expr::v1alpha1::_EnumValue_default_instance_._instance, + &::google::api::expr::v1alpha1::_ListValue_default_instance_._instance, + &::google::api::expr::v1alpha1::_MapValue_Entry_default_instance_._instance, + &::google::api::expr::v1alpha1::_MapValue_default_instance_._instance, +}; + +const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n$google/api/expr/v1alpha1/value.proto\022\030" + "google.api.expr.v1alpha1\032\031google/protobu" + "f/any.proto\032\034google/protobuf/struct.prot" + "o\"\315\004\n\005Value\022;\n\nnull_value\030\001 \001(\0162\032.google" + ".protobuf.NullValueH\000R\tnullValue\022\037\n\nbool" + "_value\030\002 \001(\010H\000R\tboolValue\022!\n\013int64_value" + "\030\003 \001(\003H\000R\nint64Value\022#\n\014uint64_value\030\004 \001" + "(\004H\000R\013uint64Value\022#\n\014double_value\030\005 \001(\001H" + "\000R\013doubleValue\022#\n\014string_value\030\006 \001(\tH\000R\013" + "stringValue\022!\n\013bytes_value\030\007 \001(\014H\000R\nbyte" + "sValue\022D\n\nenum_value\030\t \001(\0132#.google.api." + "expr.v1alpha1.EnumValueH\000R\tenumValue\0229\n\014" + "object_value\030\n \001(\0132\024.google.protobuf.Any" + "H\000R\013objectValue\022A\n\tmap_value\030\013 \001(\0132\".goo" + "gle.api.expr.v1alpha1.MapValueH\000R\010mapVal" + "ue\022D\n\nlist_value\030\014 \001(\0132#.google.api.expr" + ".v1alpha1.ListValueH\000R\tlistValue\022\037\n\ntype" + "_value\030\017 \001(\tH\000R\ttypeValueB\006\n\004kind\"5\n\tEnu" + "mValue\022\022\n\004type\030\001 \001(\tR\004type\022\024\n\005value\030\002 \001(" + "\005R\005value\"D\n\tListValue\0227\n\006values\030\001 \003(\0132\037." + "google.api.expr.v1alpha1.ValueR\006values\"\301" + "\001\n\010MapValue\022B\n\007entries\030\001 \003(\0132(.google.ap" + "i.expr.v1alpha1.MapValue.EntryR\007entries\032" + "q\n\005Entry\0221\n\003key\030\001 \001(\0132\037.google.api.expr." + "v1alpha1.ValueR\003key\0225\n\005value\030\002 \001(\0132\037.goo" + "gle.api.expr.v1alpha1.ValueR\005valueBm\n\034co" + "m.google.api.expr.v1alpha1B\nValueProtoP\001" + "Z_impl_.kind_.enum_value_; +} +const ::PROTOBUF_NAMESPACE_ID::Any& +Value::_Internal::object_value(const Value* msg) { + return *msg->_impl_.kind_.object_value_; +} +const ::google::api::expr::v1alpha1::MapValue& +Value::_Internal::map_value(const Value* msg) { + return *msg->_impl_.kind_.map_value_; +} +const ::google::api::expr::v1alpha1::ListValue& +Value::_Internal::list_value(const Value* msg) { + return *msg->_impl_.kind_.list_value_; +} +void Value::set_allocated_enum_value(::google::api::expr::v1alpha1::EnumValue* enum_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (enum_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(enum_value); + if (message_arena != submessage_arena) { + enum_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, enum_value, submessage_arena); + } + set_has_enum_value(); + _impl_.kind_.enum_value_ = enum_value; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Value.enum_value) +} +void Value::set_allocated_object_value(::PROTOBUF_NAMESPACE_ID::Any* object_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (object_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(object_value)); + if (message_arena != submessage_arena) { + object_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, object_value, submessage_arena); + } + set_has_object_value(); + _impl_.kind_.object_value_ = object_value; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Value.object_value) +} +void Value::clear_object_value() { + if (_internal_has_object_value()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.object_value_; + } + clear_has_kind(); + } +} +void Value::set_allocated_map_value(::google::api::expr::v1alpha1::MapValue* map_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (map_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(map_value); + if (message_arena != submessage_arena) { + map_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, map_value, submessage_arena); + } + set_has_map_value(); + _impl_.kind_.map_value_ = map_value; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Value.map_value) +} +void Value::set_allocated_list_value(::google::api::expr::v1alpha1::ListValue* list_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (list_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(list_value); + if (message_arena != submessage_arena) { + list_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, list_value, submessage_arena); + } + set_has_list_value(); + _impl_.kind_.list_value_ = list_value; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Value.list_value) +} +Value::Value(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Value) +} +Value::Value(const Value& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Value* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_kind(); + switch (from.kind_case()) { + case kNullValue: { + _this->_internal_set_null_value(from._internal_null_value()); + break; + } + case kBoolValue: { + _this->_internal_set_bool_value(from._internal_bool_value()); + break; + } + case kInt64Value: { + _this->_internal_set_int64_value(from._internal_int64_value()); + break; + } + case kUint64Value: { + _this->_internal_set_uint64_value(from._internal_uint64_value()); + break; + } + case kDoubleValue: { + _this->_internal_set_double_value(from._internal_double_value()); + break; + } + case kStringValue: { + _this->_internal_set_string_value(from._internal_string_value()); + break; + } + case kBytesValue: { + _this->_internal_set_bytes_value(from._internal_bytes_value()); + break; + } + case kEnumValue: { + _this->_internal_mutable_enum_value()->::google::api::expr::v1alpha1::EnumValue::MergeFrom( + from._internal_enum_value()); + break; + } + case kObjectValue: { + _this->_internal_mutable_object_value()->::PROTOBUF_NAMESPACE_ID::Any::MergeFrom( + from._internal_object_value()); + break; + } + case kMapValue: { + _this->_internal_mutable_map_value()->::google::api::expr::v1alpha1::MapValue::MergeFrom( + from._internal_map_value()); + break; + } + case kListValue: { + _this->_internal_mutable_list_value()->::google::api::expr::v1alpha1::ListValue::MergeFrom( + from._internal_list_value()); + break; + } + case kTypeValue: { + _this->_internal_set_type_value(from._internal_type_value()); + break; + } + case KIND_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Value) +} + +inline void Value::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_kind(); +} + +Value::~Value() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Value) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Value::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_kind()) { + clear_kind(); + } +} + +void Value::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Value::clear_kind() { +// @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1alpha1.Value) + switch (kind_case()) { + case kNullValue: { + // No need to clear + break; + } + case kBoolValue: { + // No need to clear + break; + } + case kInt64Value: { + // No need to clear + break; + } + case kUint64Value: { + // No need to clear + break; + } + case kDoubleValue: { + // No need to clear + break; + } + case kStringValue: { + _impl_.kind_.string_value_.Destroy(); + break; + } + case kBytesValue: { + _impl_.kind_.bytes_value_.Destroy(); + break; + } + case kEnumValue: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.enum_value_; + } + break; + } + case kObjectValue: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.object_value_; + } + break; + } + case kMapValue: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.map_value_; + } + break; + } + case kListValue: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.list_value_; + } + break; + } + case kTypeValue: { + _impl_.kind_.type_value_.Destroy(); + break; + } + case KIND_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = KIND_NOT_SET; +} + + +void Value::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Value) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_kind(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Value::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_null_value(static_cast<::PROTOBUF_NAMESPACE_ID::NullValue>(val)); + } else + goto handle_unusual; + continue; + // bool bool_value = 2 [json_name = "boolValue"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _internal_set_bool_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 int64_value = 3 [json_name = "int64Value"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _internal_set_int64_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _internal_set_uint64_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double double_value = 5 [json_name = "doubleValue"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 41)) { + _internal_set_double_value(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // string string_value = 6 [json_name = "stringValue"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_string_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Value.string_value")); + } else + goto handle_unusual; + continue; + // bytes bytes_value = 7 [json_name = "bytesValue"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_bytes_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.EnumValue enum_value = 9 [json_name = "enumValue"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_enum_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + ptr = ctx->ParseMessage(_internal_mutable_object_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.MapValue map_value = 11 [json_name = "mapValue"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + ptr = ctx->ParseMessage(_internal_mutable_map_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.ListValue list_value = 12 [json_name = "listValue"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + ptr = ctx->ParseMessage(_internal_mutable_list_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string type_value = 15 [json_name = "typeValue"]; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { + auto str = _internal_mutable_type_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Value.type_value")); + } 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* Value::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Value) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + if (_internal_has_null_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_null_value(), target); + } + + // bool bool_value = 2 [json_name = "boolValue"]; + if (_internal_has_bool_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_bool_value(), target); + } + + // int64 int64_value = 3 [json_name = "int64Value"]; + if (_internal_has_int64_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_int64_value(), target); + } + + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + if (_internal_has_uint64_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_uint64_value(), target); + } + + // double double_value = 5 [json_name = "doubleValue"]; + if (_internal_has_double_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_double_value(), target); + } + + // string string_value = 6 [json_name = "stringValue"]; + if (_internal_has_string_value()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_string_value().data(), static_cast(this->_internal_string_value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Value.string_value"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_string_value(), target); + } + + // bytes bytes_value = 7 [json_name = "bytesValue"]; + if (_internal_has_bytes_value()) { + target = stream->WriteBytesMaybeAliased( + 7, this->_internal_bytes_value(), target); + } + + // .google.api.expr.v1alpha1.EnumValue enum_value = 9 [json_name = "enumValue"]; + if (_internal_has_enum_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, _Internal::enum_value(this), + _Internal::enum_value(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; + if (_internal_has_object_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(10, _Internal::object_value(this), + _Internal::object_value(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.MapValue map_value = 11 [json_name = "mapValue"]; + if (_internal_has_map_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(11, _Internal::map_value(this), + _Internal::map_value(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.ListValue list_value = 12 [json_name = "listValue"]; + if (_internal_has_list_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(12, _Internal::list_value(this), + _Internal::list_value(this).GetCachedSize(), target, stream); + } + + // string type_value = 15 [json_name = "typeValue"]; + if (_internal_has_type_value()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type_value().data(), static_cast(this->_internal_type_value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Value.type_value"); + target = stream->WriteStringMaybeAliased( + 15, this->_internal_type_value(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.Value) + return target; +} + +size_t Value::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Value) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (kind_case()) { + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + case kNullValue: { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_null_value()); + break; + } + // bool bool_value = 2 [json_name = "boolValue"]; + case kBoolValue: { + total_size += 1 + 1; + break; + } + // int64 int64_value = 3 [json_name = "int64Value"]; + case kInt64Value: { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_int64_value()); + break; + } + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + case kUint64Value: { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_uint64_value()); + break; + } + // double double_value = 5 [json_name = "doubleValue"]; + case kDoubleValue: { + total_size += 1 + 8; + break; + } + // string string_value = 6 [json_name = "stringValue"]; + case kStringValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_string_value()); + break; + } + // bytes bytes_value = 7 [json_name = "bytesValue"]; + case kBytesValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_bytes_value()); + break; + } + // .google.api.expr.v1alpha1.EnumValue enum_value = 9 [json_name = "enumValue"]; + case kEnumValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.enum_value_); + break; + } + // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; + case kObjectValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.object_value_); + break; + } + // .google.api.expr.v1alpha1.MapValue map_value = 11 [json_name = "mapValue"]; + case kMapValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.map_value_); + break; + } + // .google.api.expr.v1alpha1.ListValue list_value = 12 [json_name = "listValue"]; + case kListValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.list_value_); + break; + } + // string type_value = 15 [json_name = "typeValue"]; + case kTypeValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type_value()); + break; + } + case KIND_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Value::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Value::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Value::GetClassData() const { return &_class_data_; } + + +void Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Value) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.kind_case()) { + case kNullValue: { + _this->_internal_set_null_value(from._internal_null_value()); + break; + } + case kBoolValue: { + _this->_internal_set_bool_value(from._internal_bool_value()); + break; + } + case kInt64Value: { + _this->_internal_set_int64_value(from._internal_int64_value()); + break; + } + case kUint64Value: { + _this->_internal_set_uint64_value(from._internal_uint64_value()); + break; + } + case kDoubleValue: { + _this->_internal_set_double_value(from._internal_double_value()); + break; + } + case kStringValue: { + _this->_internal_set_string_value(from._internal_string_value()); + break; + } + case kBytesValue: { + _this->_internal_set_bytes_value(from._internal_bytes_value()); + break; + } + case kEnumValue: { + _this->_internal_mutable_enum_value()->::google::api::expr::v1alpha1::EnumValue::MergeFrom( + from._internal_enum_value()); + break; + } + case kObjectValue: { + _this->_internal_mutable_object_value()->::PROTOBUF_NAMESPACE_ID::Any::MergeFrom( + from._internal_object_value()); + break; + } + case kMapValue: { + _this->_internal_mutable_map_value()->::google::api::expr::v1alpha1::MapValue::MergeFrom( + from._internal_map_value()); + break; + } + case kListValue: { + _this->_internal_mutable_list_value()->::google::api::expr::v1alpha1::ListValue::MergeFrom( + from._internal_list_value()); + break; + } + case kTypeValue: { + _this->_internal_set_type_value(from._internal_type_value()); + break; + } + case KIND_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Value::CopyFrom(const Value& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.Value) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Value::IsInitialized() const { + return true; +} + +void Value::InternalSwap(Value* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.kind_, other->_impl_.kind_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Value::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto[0]); +} + +// =================================================================== + +class EnumValue::_Internal { + public: +}; + +EnumValue::EnumValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.EnumValue) +} +EnumValue::EnumValue(const EnumValue& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + EnumValue* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.type_){} + , decltype(_impl_.value_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_type().empty()) { + _this->_impl_.type_.Set(from._internal_type(), + _this->GetArenaForAllocation()); + } + _this->_impl_.value_ = from._impl_.value_; + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.EnumValue) +} + +inline void EnumValue::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.type_){} + , decltype(_impl_.value_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +EnumValue::~EnumValue() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.EnumValue) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void EnumValue::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.type_.Destroy(); +} + +void EnumValue::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void EnumValue::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.EnumValue) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.type_.ClearToEmpty(); + _impl_.value_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EnumValue::_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 type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.EnumValue.type")); + } else + goto handle_unusual; + continue; + // int32 value = 2 [json_name = "value"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* EnumValue::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.EnumValue) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string type = 1 [json_name = "type"]; + if (!this->_internal_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.EnumValue.type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_type(), target); + } + + // int32 value = 2 [json_name = "value"]; + if (this->_internal_value() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_value(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.EnumValue) + return target; +} + +size_t EnumValue::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.EnumValue) + 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 type = 1 [json_name = "type"]; + if (!this->_internal_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); + } + + // int32 value = 2 [json_name = "value"]; + if (this->_internal_value() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_value()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EnumValue::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + EnumValue::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EnumValue::GetClassData() const { return &_class_data_; } + + +void EnumValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.EnumValue) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } + if (from._internal_value() != 0) { + _this->_internal_set_value(from._internal_value()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void EnumValue::CopyFrom(const EnumValue& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.EnumValue) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EnumValue::IsInitialized() const { + return true; +} + +void EnumValue::InternalSwap(EnumValue* 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( + &_impl_.type_, lhs_arena, + &other->_impl_.type_, rhs_arena + ); + swap(_impl_.value_, other->_impl_.value_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata EnumValue::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto[1]); +} + +// =================================================================== + +class ListValue::_Internal { + public: +}; + +ListValue::ListValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.ListValue) +} +ListValue::ListValue(const ListValue& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ListValue* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.values_){from._impl_.values_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.ListValue) +} + +inline void ListValue::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.values_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +ListValue::~ListValue() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.ListValue) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ListValue::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.values_.~RepeatedPtrField(); +} + +void ListValue::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ListValue::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.ListValue) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.values_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListValue::_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) { + // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_values(), 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* ListValue::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.ListValue) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; + for (unsigned i = 0, + n = static_cast(this->_internal_values_size()); i < n; i++) { + const auto& repfield = this->_internal_values(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.ListValue) + return target; +} + +size_t ListValue::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.ListValue) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; + total_size += 1UL * this->_internal_values_size(); + for (const auto& msg : this->_impl_.values_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListValue::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ListValue::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListValue::GetClassData() const { return &_class_data_; } + + +void ListValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.ListValue) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.values_.MergeFrom(from._impl_.values_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ListValue::CopyFrom(const ListValue& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.ListValue) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListValue::IsInitialized() const { + return true; +} + +void ListValue::InternalSwap(ListValue* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.values_.InternalSwap(&other->_impl_.values_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListValue::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto[2]); +} + +// =================================================================== + +class MapValue_Entry::_Internal { + public: + static const ::google::api::expr::v1alpha1::Value& key(const MapValue_Entry* msg); + static const ::google::api::expr::v1alpha1::Value& value(const MapValue_Entry* msg); +}; + +const ::google::api::expr::v1alpha1::Value& +MapValue_Entry::_Internal::key(const MapValue_Entry* msg) { + return *msg->_impl_.key_; +} +const ::google::api::expr::v1alpha1::Value& +MapValue_Entry::_Internal::value(const MapValue_Entry* msg) { + return *msg->_impl_.value_; +} +MapValue_Entry::MapValue_Entry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.MapValue.Entry) +} +MapValue_Entry::MapValue_Entry(const MapValue_Entry& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + MapValue_Entry* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.key_){nullptr} + , decltype(_impl_.value_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_key()) { + _this->_impl_.key_ = new ::google::api::expr::v1alpha1::Value(*from._impl_.key_); + } + if (from._internal_has_value()) { + _this->_impl_.value_ = new ::google::api::expr::v1alpha1::Value(*from._impl_.value_); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.MapValue.Entry) +} + +inline void MapValue_Entry::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.key_){nullptr} + , decltype(_impl_.value_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +MapValue_Entry::~MapValue_Entry() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.MapValue.Entry) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void MapValue_Entry::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.key_; + if (this != internal_default_instance()) delete _impl_.value_; +} + +void MapValue_Entry::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void MapValue_Entry::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.MapValue.Entry) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.key_ != nullptr) { + delete _impl_.key_; + } + _impl_.key_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.value_ != nullptr) { + delete _impl_.value_; + } + _impl_.value_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MapValue_Entry::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.api.expr.v1alpha1.Value key = 1 [json_name = "key"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_key(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Value value = 2 [json_name = "value"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_value(), 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* MapValue_Entry::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.MapValue.Entry) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.api.expr.v1alpha1.Value key = 1 [json_name = "key"]; + if (this->_internal_has_key()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::key(this), + _Internal::key(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Value value = 2 [json_name = "value"]; + if (this->_internal_has_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::value(this), + _Internal::value(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:google.api.expr.v1alpha1.MapValue.Entry) + return target; +} + +size_t MapValue_Entry::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.MapValue.Entry) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.api.expr.v1alpha1.Value key = 1 [json_name = "key"]; + if (this->_internal_has_key()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.key_); + } + + // .google.api.expr.v1alpha1.Value value = 2 [json_name = "value"]; + if (this->_internal_has_value()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.value_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MapValue_Entry::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MapValue_Entry::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MapValue_Entry::GetClassData() const { return &_class_data_; } + + +void MapValue_Entry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.MapValue.Entry) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_key()) { + _this->_internal_mutable_key()->::google::api::expr::v1alpha1::Value::MergeFrom( + from._internal_key()); + } + if (from._internal_has_value()) { + _this->_internal_mutable_value()->::google::api::expr::v1alpha1::Value::MergeFrom( + from._internal_value()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MapValue_Entry::CopyFrom(const MapValue_Entry& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.MapValue.Entry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MapValue_Entry::IsInitialized() const { + return true; +} + +void MapValue_Entry::InternalSwap(MapValue_Entry* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MapValue_Entry, _impl_.value_) + + sizeof(MapValue_Entry::_impl_.value_) + - PROTOBUF_FIELD_OFFSET(MapValue_Entry, _impl_.key_)>( + reinterpret_cast(&_impl_.key_), + reinterpret_cast(&other->_impl_.key_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MapValue_Entry::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto[3]); +} + +// =================================================================== + +class MapValue::_Internal { + public: +}; + +MapValue::MapValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.MapValue) +} +MapValue::MapValue(const MapValue& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + MapValue* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.entries_){from._impl_.entries_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.MapValue) +} + +inline void MapValue::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.entries_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +MapValue::~MapValue() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.MapValue) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void MapValue::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.entries_.~RepeatedPtrField(); +} + +void MapValue::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void MapValue::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.MapValue) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.entries_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MapValue::_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) { + // repeated .google.api.expr.v1alpha1.MapValue.Entry entries = 1 [json_name = "entries"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_entries(), 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* MapValue::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.MapValue) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.api.expr.v1alpha1.MapValue.Entry entries = 1 [json_name = "entries"]; + for (unsigned i = 0, + n = static_cast(this->_internal_entries_size()); i < n; i++) { + const auto& repfield = this->_internal_entries(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.MapValue) + return target; +} + +size_t MapValue::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.MapValue) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.expr.v1alpha1.MapValue.Entry entries = 1 [json_name = "entries"]; + total_size += 1UL * this->_internal_entries_size(); + for (const auto& msg : this->_impl_.entries_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MapValue::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MapValue::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MapValue::GetClassData() const { return &_class_data_; } + + +void MapValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.MapValue) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.entries_.MergeFrom(from._impl_.entries_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MapValue::CopyFrom(const MapValue& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.MapValue) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MapValue::IsInitialized() const { + return true; +} + +void MapValue::InternalSwap(MapValue* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.entries_.InternalSwap(&other->_impl_.entries_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MapValue::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto[4]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Value* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Value >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Value >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::EnumValue* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::EnumValue >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::EnumValue >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::ListValue* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::ListValue >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::ListValue >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::MapValue_Entry* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::MapValue_Entry >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::MapValue_Entry >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::MapValue* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::MapValue >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::MapValue >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/google/api/expr/v1alpha1/value.pb.h b/src/gen/google/api/expr/v1alpha1/value.pb.h new file mode 100644 index 000000000..7cdffd7c6 --- /dev/null +++ b/src/gen/google/api/expr/v1alpha1/value.pb.h @@ -0,0 +1,2229 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/expr/v1alpha1/value.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto; +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { +class EnumValue; +struct EnumValueDefaultTypeInternal; +extern EnumValueDefaultTypeInternal _EnumValue_default_instance_; +class ListValue; +struct ListValueDefaultTypeInternal; +extern ListValueDefaultTypeInternal _ListValue_default_instance_; +class MapValue; +struct MapValueDefaultTypeInternal; +extern MapValueDefaultTypeInternal _MapValue_default_instance_; +class MapValue_Entry; +struct MapValue_EntryDefaultTypeInternal; +extern MapValue_EntryDefaultTypeInternal _MapValue_Entry_default_instance_; +class Value; +struct ValueDefaultTypeInternal; +extern ValueDefaultTypeInternal _Value_default_instance_; +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::expr::v1alpha1::EnumValue* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::EnumValue>(Arena*); +template<> ::google::api::expr::v1alpha1::ListValue* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::ListValue>(Arena*); +template<> ::google::api::expr::v1alpha1::MapValue* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::MapValue>(Arena*); +template<> ::google::api::expr::v1alpha1::MapValue_Entry* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::MapValue_Entry>(Arena*); +template<> ::google::api::expr::v1alpha1::Value* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Value>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace api { +namespace expr { +namespace v1alpha1 { + +// =================================================================== + +class Value final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Value) */ { + public: + inline Value() : Value(nullptr) {} + ~Value() override; + explicit PROTOBUF_CONSTEXPR Value(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Value(const Value& from); + Value(Value&& from) noexcept + : Value() { + *this = ::std::move(from); + } + + inline Value& operator=(const Value& from) { + CopyFrom(from); + return *this; + } + inline Value& operator=(Value&& 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 Value& default_instance() { + return *internal_default_instance(); + } + enum KindCase { + kNullValue = 1, + kBoolValue = 2, + kInt64Value = 3, + kUint64Value = 4, + kDoubleValue = 5, + kStringValue = 6, + kBytesValue = 7, + kEnumValue = 9, + kObjectValue = 10, + kMapValue = 11, + kListValue = 12, + kTypeValue = 15, + KIND_NOT_SET = 0, + }; + + static inline const Value* internal_default_instance() { + return reinterpret_cast( + &_Value_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(Value& a, Value& b) { + a.Swap(&b); + } + inline void Swap(Value* 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(Value* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Value* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Value& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Value& from) { + Value::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Value* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Value"; + } + protected: + explicit Value(::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 { + kNullValueFieldNumber = 1, + kBoolValueFieldNumber = 2, + kInt64ValueFieldNumber = 3, + kUint64ValueFieldNumber = 4, + kDoubleValueFieldNumber = 5, + kStringValueFieldNumber = 6, + kBytesValueFieldNumber = 7, + kEnumValueFieldNumber = 9, + kObjectValueFieldNumber = 10, + kMapValueFieldNumber = 11, + kListValueFieldNumber = 12, + kTypeValueFieldNumber = 15, + }; + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + bool has_null_value() const; + private: + bool _internal_has_null_value() const; + public: + void clear_null_value(); + ::PROTOBUF_NAMESPACE_ID::NullValue null_value() const; + void set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value); + private: + ::PROTOBUF_NAMESPACE_ID::NullValue _internal_null_value() const; + void _internal_set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value); + public: + + // bool bool_value = 2 [json_name = "boolValue"]; + bool has_bool_value() const; + private: + bool _internal_has_bool_value() const; + public: + void clear_bool_value(); + bool bool_value() const; + void set_bool_value(bool value); + private: + bool _internal_bool_value() const; + void _internal_set_bool_value(bool value); + public: + + // int64 int64_value = 3 [json_name = "int64Value"]; + bool has_int64_value() const; + private: + bool _internal_has_int64_value() const; + public: + void clear_int64_value(); + int64_t int64_value() const; + void set_int64_value(int64_t value); + private: + int64_t _internal_int64_value() const; + void _internal_set_int64_value(int64_t value); + public: + + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + bool has_uint64_value() const; + private: + bool _internal_has_uint64_value() const; + public: + void clear_uint64_value(); + uint64_t uint64_value() const; + void set_uint64_value(uint64_t value); + private: + uint64_t _internal_uint64_value() const; + void _internal_set_uint64_value(uint64_t value); + public: + + // double double_value = 5 [json_name = "doubleValue"]; + bool has_double_value() const; + private: + bool _internal_has_double_value() const; + public: + void clear_double_value(); + double double_value() const; + void set_double_value(double value); + private: + double _internal_double_value() const; + void _internal_set_double_value(double value); + public: + + // string string_value = 6 [json_name = "stringValue"]; + bool has_string_value() const; + private: + bool _internal_has_string_value() const; + public: + void clear_string_value(); + const std::string& string_value() const; + template + void set_string_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_string_value(); + PROTOBUF_NODISCARD std::string* release_string_value(); + void set_allocated_string_value(std::string* string_value); + private: + const std::string& _internal_string_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value(const std::string& value); + std::string* _internal_mutable_string_value(); + public: + + // bytes bytes_value = 7 [json_name = "bytesValue"]; + bool has_bytes_value() const; + private: + bool _internal_has_bytes_value() const; + public: + void clear_bytes_value(); + const std::string& bytes_value() const; + template + void set_bytes_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_bytes_value(); + PROTOBUF_NODISCARD std::string* release_bytes_value(); + void set_allocated_bytes_value(std::string* bytes_value); + private: + const std::string& _internal_bytes_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_bytes_value(const std::string& value); + std::string* _internal_mutable_bytes_value(); + public: + + // .google.api.expr.v1alpha1.EnumValue enum_value = 9 [json_name = "enumValue"]; + bool has_enum_value() const; + private: + bool _internal_has_enum_value() const; + public: + void clear_enum_value(); + const ::google::api::expr::v1alpha1::EnumValue& enum_value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::EnumValue* release_enum_value(); + ::google::api::expr::v1alpha1::EnumValue* mutable_enum_value(); + void set_allocated_enum_value(::google::api::expr::v1alpha1::EnumValue* enum_value); + private: + const ::google::api::expr::v1alpha1::EnumValue& _internal_enum_value() const; + ::google::api::expr::v1alpha1::EnumValue* _internal_mutable_enum_value(); + public: + void unsafe_arena_set_allocated_enum_value( + ::google::api::expr::v1alpha1::EnumValue* enum_value); + ::google::api::expr::v1alpha1::EnumValue* unsafe_arena_release_enum_value(); + + // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; + bool has_object_value() const; + private: + bool _internal_has_object_value() const; + public: + void clear_object_value(); + const ::PROTOBUF_NAMESPACE_ID::Any& object_value() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Any* release_object_value(); + ::PROTOBUF_NAMESPACE_ID::Any* mutable_object_value(); + void set_allocated_object_value(::PROTOBUF_NAMESPACE_ID::Any* object_value); + private: + const ::PROTOBUF_NAMESPACE_ID::Any& _internal_object_value() const; + ::PROTOBUF_NAMESPACE_ID::Any* _internal_mutable_object_value(); + public: + void unsafe_arena_set_allocated_object_value( + ::PROTOBUF_NAMESPACE_ID::Any* object_value); + ::PROTOBUF_NAMESPACE_ID::Any* unsafe_arena_release_object_value(); + + // .google.api.expr.v1alpha1.MapValue map_value = 11 [json_name = "mapValue"]; + bool has_map_value() const; + private: + bool _internal_has_map_value() const; + public: + void clear_map_value(); + const ::google::api::expr::v1alpha1::MapValue& map_value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::MapValue* release_map_value(); + ::google::api::expr::v1alpha1::MapValue* mutable_map_value(); + void set_allocated_map_value(::google::api::expr::v1alpha1::MapValue* map_value); + private: + const ::google::api::expr::v1alpha1::MapValue& _internal_map_value() const; + ::google::api::expr::v1alpha1::MapValue* _internal_mutable_map_value(); + public: + void unsafe_arena_set_allocated_map_value( + ::google::api::expr::v1alpha1::MapValue* map_value); + ::google::api::expr::v1alpha1::MapValue* unsafe_arena_release_map_value(); + + // .google.api.expr.v1alpha1.ListValue list_value = 12 [json_name = "listValue"]; + bool has_list_value() const; + private: + bool _internal_has_list_value() const; + public: + void clear_list_value(); + const ::google::api::expr::v1alpha1::ListValue& list_value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::ListValue* release_list_value(); + ::google::api::expr::v1alpha1::ListValue* mutable_list_value(); + void set_allocated_list_value(::google::api::expr::v1alpha1::ListValue* list_value); + private: + const ::google::api::expr::v1alpha1::ListValue& _internal_list_value() const; + ::google::api::expr::v1alpha1::ListValue* _internal_mutable_list_value(); + public: + void unsafe_arena_set_allocated_list_value( + ::google::api::expr::v1alpha1::ListValue* list_value); + ::google::api::expr::v1alpha1::ListValue* unsafe_arena_release_list_value(); + + // string type_value = 15 [json_name = "typeValue"]; + bool has_type_value() const; + private: + bool _internal_has_type_value() const; + public: + void clear_type_value(); + const std::string& type_value() const; + template + void set_type_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_type_value(); + PROTOBUF_NODISCARD std::string* release_type_value(); + void set_allocated_type_value(std::string* type_value); + private: + const std::string& _internal_type_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_value(const std::string& value); + std::string* _internal_mutable_type_value(); + public: + + void clear_kind(); + KindCase kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Value) + private: + class _Internal; + void set_has_null_value(); + void set_has_bool_value(); + void set_has_int64_value(); + void set_has_uint64_value(); + void set_has_double_value(); + void set_has_string_value(); + void set_has_bytes_value(); + void set_has_enum_value(); + void set_has_object_value(); + void set_has_map_value(); + void set_has_list_value(); + void set_has_type_value(); + + inline bool has_kind() const; + inline void clear_has_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + union KindUnion { + constexpr KindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + int null_value_; + bool bool_value_; + int64_t int64_value_; + uint64_t uint64_value_; + double double_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bytes_value_; + ::google::api::expr::v1alpha1::EnumValue* enum_value_; + ::PROTOBUF_NAMESPACE_ID::Any* object_value_; + ::google::api::expr::v1alpha1::MapValue* map_value_; + ::google::api::expr::v1alpha1::ListValue* list_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_value_; + } kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto; +}; +// ------------------------------------------------------------------- + +class EnumValue final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.EnumValue) */ { + public: + inline EnumValue() : EnumValue(nullptr) {} + ~EnumValue() override; + explicit PROTOBUF_CONSTEXPR EnumValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + EnumValue(const EnumValue& from); + EnumValue(EnumValue&& from) noexcept + : EnumValue() { + *this = ::std::move(from); + } + + inline EnumValue& operator=(const EnumValue& from) { + CopyFrom(from); + return *this; + } + inline EnumValue& operator=(EnumValue&& 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 EnumValue& default_instance() { + return *internal_default_instance(); + } + static inline const EnumValue* internal_default_instance() { + return reinterpret_cast( + &_EnumValue_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(EnumValue& a, EnumValue& b) { + a.Swap(&b); + } + inline void Swap(EnumValue* 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(EnumValue* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + EnumValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EnumValue& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const EnumValue& from) { + EnumValue::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EnumValue* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.EnumValue"; + } + protected: + explicit EnumValue(::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 { + kTypeFieldNumber = 1, + kValueFieldNumber = 2, + }; + // string type = 1 [json_name = "type"]; + void clear_type(); + const std::string& type() const; + template + void set_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_type(); + PROTOBUF_NODISCARD std::string* release_type(); + void set_allocated_type(std::string* type); + private: + const std::string& _internal_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); + std::string* _internal_mutable_type(); + public: + + // int32 value = 2 [json_name = "value"]; + void clear_value(); + int32_t value() const; + void set_value(int32_t value); + private: + int32_t _internal_value() const; + void _internal_set_value(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.EnumValue) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + int32_t value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto; +}; +// ------------------------------------------------------------------- + +class ListValue final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.ListValue) */ { + public: + inline ListValue() : ListValue(nullptr) {} + ~ListValue() override; + explicit PROTOBUF_CONSTEXPR ListValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListValue(const ListValue& from); + ListValue(ListValue&& from) noexcept + : ListValue() { + *this = ::std::move(from); + } + + inline ListValue& operator=(const ListValue& from) { + CopyFrom(from); + return *this; + } + inline ListValue& operator=(ListValue&& 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 ListValue& default_instance() { + return *internal_default_instance(); + } + static inline const ListValue* internal_default_instance() { + return reinterpret_cast( + &_ListValue_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(ListValue& a, ListValue& b) { + a.Swap(&b); + } + inline void Swap(ListValue* 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(ListValue* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListValue& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ListValue& from) { + ListValue::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListValue* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.ListValue"; + } + protected: + explicit ListValue(::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 { + kValuesFieldNumber = 1, + }; + // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; + int values_size() const; + private: + int _internal_values_size() const; + public: + void clear_values(); + ::google::api::expr::v1alpha1::Value* mutable_values(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Value >* + mutable_values(); + private: + const ::google::api::expr::v1alpha1::Value& _internal_values(int index) const; + ::google::api::expr::v1alpha1::Value* _internal_add_values(); + public: + const ::google::api::expr::v1alpha1::Value& values(int index) const; + ::google::api::expr::v1alpha1::Value* add_values(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Value >& + values() const; + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.ListValue) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Value > values_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto; +}; +// ------------------------------------------------------------------- + +class MapValue_Entry final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.MapValue.Entry) */ { + public: + inline MapValue_Entry() : MapValue_Entry(nullptr) {} + ~MapValue_Entry() override; + explicit PROTOBUF_CONSTEXPR MapValue_Entry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MapValue_Entry(const MapValue_Entry& from); + MapValue_Entry(MapValue_Entry&& from) noexcept + : MapValue_Entry() { + *this = ::std::move(from); + } + + inline MapValue_Entry& operator=(const MapValue_Entry& from) { + CopyFrom(from); + return *this; + } + inline MapValue_Entry& operator=(MapValue_Entry&& 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 MapValue_Entry& default_instance() { + return *internal_default_instance(); + } + static inline const MapValue_Entry* internal_default_instance() { + return reinterpret_cast( + &_MapValue_Entry_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(MapValue_Entry& a, MapValue_Entry& b) { + a.Swap(&b); + } + inline void Swap(MapValue_Entry* 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(MapValue_Entry* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MapValue_Entry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MapValue_Entry& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MapValue_Entry& from) { + MapValue_Entry::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MapValue_Entry* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.MapValue.Entry"; + } + protected: + explicit MapValue_Entry(::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 { + kKeyFieldNumber = 1, + kValueFieldNumber = 2, + }; + // .google.api.expr.v1alpha1.Value key = 1 [json_name = "key"]; + bool has_key() const; + private: + bool _internal_has_key() const; + public: + void clear_key(); + const ::google::api::expr::v1alpha1::Value& key() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Value* release_key(); + ::google::api::expr::v1alpha1::Value* mutable_key(); + void set_allocated_key(::google::api::expr::v1alpha1::Value* key); + private: + const ::google::api::expr::v1alpha1::Value& _internal_key() const; + ::google::api::expr::v1alpha1::Value* _internal_mutable_key(); + public: + void unsafe_arena_set_allocated_key( + ::google::api::expr::v1alpha1::Value* key); + ::google::api::expr::v1alpha1::Value* unsafe_arena_release_key(); + + // .google.api.expr.v1alpha1.Value value = 2 [json_name = "value"]; + bool has_value() const; + private: + bool _internal_has_value() const; + public: + void clear_value(); + const ::google::api::expr::v1alpha1::Value& value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Value* release_value(); + ::google::api::expr::v1alpha1::Value* mutable_value(); + void set_allocated_value(::google::api::expr::v1alpha1::Value* value); + private: + const ::google::api::expr::v1alpha1::Value& _internal_value() const; + ::google::api::expr::v1alpha1::Value* _internal_mutable_value(); + public: + void unsafe_arena_set_allocated_value( + ::google::api::expr::v1alpha1::Value* value); + ::google::api::expr::v1alpha1::Value* unsafe_arena_release_value(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.MapValue.Entry) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::api::expr::v1alpha1::Value* key_; + ::google::api::expr::v1alpha1::Value* value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto; +}; +// ------------------------------------------------------------------- + +class MapValue final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.MapValue) */ { + public: + inline MapValue() : MapValue(nullptr) {} + ~MapValue() override; + explicit PROTOBUF_CONSTEXPR MapValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MapValue(const MapValue& from); + MapValue(MapValue&& from) noexcept + : MapValue() { + *this = ::std::move(from); + } + + inline MapValue& operator=(const MapValue& from) { + CopyFrom(from); + return *this; + } + inline MapValue& operator=(MapValue&& 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 MapValue& default_instance() { + return *internal_default_instance(); + } + static inline const MapValue* internal_default_instance() { + return reinterpret_cast( + &_MapValue_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(MapValue& a, MapValue& b) { + a.Swap(&b); + } + inline void Swap(MapValue* 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(MapValue* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MapValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MapValue& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MapValue& from) { + MapValue::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MapValue* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.MapValue"; + } + protected: + explicit MapValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef MapValue_Entry Entry; + + // accessors ------------------------------------------------------- + + enum : int { + kEntriesFieldNumber = 1, + }; + // repeated .google.api.expr.v1alpha1.MapValue.Entry entries = 1 [json_name = "entries"]; + int entries_size() const; + private: + int _internal_entries_size() const; + public: + void clear_entries(); + ::google::api::expr::v1alpha1::MapValue_Entry* mutable_entries(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::MapValue_Entry >* + mutable_entries(); + private: + const ::google::api::expr::v1alpha1::MapValue_Entry& _internal_entries(int index) const; + ::google::api::expr::v1alpha1::MapValue_Entry* _internal_add_entries(); + public: + const ::google::api::expr::v1alpha1::MapValue_Entry& entries(int index) const; + ::google::api::expr::v1alpha1::MapValue_Entry* add_entries(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::MapValue_Entry >& + entries() const; + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.MapValue) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::MapValue_Entry > entries_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Value + +// .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; +inline bool Value::_internal_has_null_value() const { + return kind_case() == kNullValue; +} +inline bool Value::has_null_value() const { + return _internal_has_null_value(); +} +inline void Value::set_has_null_value() { + _impl_._oneof_case_[0] = kNullValue; +} +inline void Value::clear_null_value() { + if (_internal_has_null_value()) { + _impl_.kind_.null_value_ = 0; + clear_has_kind(); + } +} +inline ::PROTOBUF_NAMESPACE_ID::NullValue Value::_internal_null_value() const { + if (_internal_has_null_value()) { + return static_cast< ::PROTOBUF_NAMESPACE_ID::NullValue >(_impl_.kind_.null_value_); + } + return static_cast< ::PROTOBUF_NAMESPACE_ID::NullValue >(0); +} +inline ::PROTOBUF_NAMESPACE_ID::NullValue Value::null_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.null_value) + return _internal_null_value(); +} +inline void Value::_internal_set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value) { + if (!_internal_has_null_value()) { + clear_kind(); + set_has_null_value(); + } + _impl_.kind_.null_value_ = value; +} +inline void Value::set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value) { + _internal_set_null_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Value.null_value) +} + +// bool bool_value = 2 [json_name = "boolValue"]; +inline bool Value::_internal_has_bool_value() const { + return kind_case() == kBoolValue; +} +inline bool Value::has_bool_value() const { + return _internal_has_bool_value(); +} +inline void Value::set_has_bool_value() { + _impl_._oneof_case_[0] = kBoolValue; +} +inline void Value::clear_bool_value() { + if (_internal_has_bool_value()) { + _impl_.kind_.bool_value_ = false; + clear_has_kind(); + } +} +inline bool Value::_internal_bool_value() const { + if (_internal_has_bool_value()) { + return _impl_.kind_.bool_value_; + } + return false; +} +inline void Value::_internal_set_bool_value(bool value) { + if (!_internal_has_bool_value()) { + clear_kind(); + set_has_bool_value(); + } + _impl_.kind_.bool_value_ = value; +} +inline bool Value::bool_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.bool_value) + return _internal_bool_value(); +} +inline void Value::set_bool_value(bool value) { + _internal_set_bool_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Value.bool_value) +} + +// int64 int64_value = 3 [json_name = "int64Value"]; +inline bool Value::_internal_has_int64_value() const { + return kind_case() == kInt64Value; +} +inline bool Value::has_int64_value() const { + return _internal_has_int64_value(); +} +inline void Value::set_has_int64_value() { + _impl_._oneof_case_[0] = kInt64Value; +} +inline void Value::clear_int64_value() { + if (_internal_has_int64_value()) { + _impl_.kind_.int64_value_ = int64_t{0}; + clear_has_kind(); + } +} +inline int64_t Value::_internal_int64_value() const { + if (_internal_has_int64_value()) { + return _impl_.kind_.int64_value_; + } + return int64_t{0}; +} +inline void Value::_internal_set_int64_value(int64_t value) { + if (!_internal_has_int64_value()) { + clear_kind(); + set_has_int64_value(); + } + _impl_.kind_.int64_value_ = value; +} +inline int64_t Value::int64_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.int64_value) + return _internal_int64_value(); +} +inline void Value::set_int64_value(int64_t value) { + _internal_set_int64_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Value.int64_value) +} + +// uint64 uint64_value = 4 [json_name = "uint64Value"]; +inline bool Value::_internal_has_uint64_value() const { + return kind_case() == kUint64Value; +} +inline bool Value::has_uint64_value() const { + return _internal_has_uint64_value(); +} +inline void Value::set_has_uint64_value() { + _impl_._oneof_case_[0] = kUint64Value; +} +inline void Value::clear_uint64_value() { + if (_internal_has_uint64_value()) { + _impl_.kind_.uint64_value_ = uint64_t{0u}; + clear_has_kind(); + } +} +inline uint64_t Value::_internal_uint64_value() const { + if (_internal_has_uint64_value()) { + return _impl_.kind_.uint64_value_; + } + return uint64_t{0u}; +} +inline void Value::_internal_set_uint64_value(uint64_t value) { + if (!_internal_has_uint64_value()) { + clear_kind(); + set_has_uint64_value(); + } + _impl_.kind_.uint64_value_ = value; +} +inline uint64_t Value::uint64_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.uint64_value) + return _internal_uint64_value(); +} +inline void Value::set_uint64_value(uint64_t value) { + _internal_set_uint64_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Value.uint64_value) +} + +// double double_value = 5 [json_name = "doubleValue"]; +inline bool Value::_internal_has_double_value() const { + return kind_case() == kDoubleValue; +} +inline bool Value::has_double_value() const { + return _internal_has_double_value(); +} +inline void Value::set_has_double_value() { + _impl_._oneof_case_[0] = kDoubleValue; +} +inline void Value::clear_double_value() { + if (_internal_has_double_value()) { + _impl_.kind_.double_value_ = 0; + clear_has_kind(); + } +} +inline double Value::_internal_double_value() const { + if (_internal_has_double_value()) { + return _impl_.kind_.double_value_; + } + return 0; +} +inline void Value::_internal_set_double_value(double value) { + if (!_internal_has_double_value()) { + clear_kind(); + set_has_double_value(); + } + _impl_.kind_.double_value_ = value; +} +inline double Value::double_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.double_value) + return _internal_double_value(); +} +inline void Value::set_double_value(double value) { + _internal_set_double_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Value.double_value) +} + +// string string_value = 6 [json_name = "stringValue"]; +inline bool Value::_internal_has_string_value() const { + return kind_case() == kStringValue; +} +inline bool Value::has_string_value() const { + return _internal_has_string_value(); +} +inline void Value::set_has_string_value() { + _impl_._oneof_case_[0] = kStringValue; +} +inline void Value::clear_string_value() { + if (_internal_has_string_value()) { + _impl_.kind_.string_value_.Destroy(); + clear_has_kind(); + } +} +inline const std::string& Value::string_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.string_value) + return _internal_string_value(); +} +template +inline void Value::set_string_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_string_value()) { + clear_kind(); + set_has_string_value(); + _impl_.kind_.string_value_.InitDefault(); + } + _impl_.kind_.string_value_.Set( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Value.string_value) +} +inline std::string* Value::mutable_string_value() { + std::string* _s = _internal_mutable_string_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Value.string_value) + return _s; +} +inline const std::string& Value::_internal_string_value() const { + if (_internal_has_string_value()) { + return _impl_.kind_.string_value_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void Value::_internal_set_string_value(const std::string& value) { + if (!_internal_has_string_value()) { + clear_kind(); + set_has_string_value(); + _impl_.kind_.string_value_.InitDefault(); + } + _impl_.kind_.string_value_.Set(value, GetArenaForAllocation()); +} +inline std::string* Value::_internal_mutable_string_value() { + if (!_internal_has_string_value()) { + clear_kind(); + set_has_string_value(); + _impl_.kind_.string_value_.InitDefault(); + } + return _impl_.kind_.string_value_.Mutable( GetArenaForAllocation()); +} +inline std::string* Value::release_string_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Value.string_value) + if (_internal_has_string_value()) { + clear_has_kind(); + return _impl_.kind_.string_value_.Release(); + } else { + return nullptr; + } +} +inline void Value::set_allocated_string_value(std::string* string_value) { + if (has_kind()) { + clear_kind(); + } + if (string_value != nullptr) { + set_has_string_value(); + _impl_.kind_.string_value_.InitAllocated(string_value, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Value.string_value) +} + +// bytes bytes_value = 7 [json_name = "bytesValue"]; +inline bool Value::_internal_has_bytes_value() const { + return kind_case() == kBytesValue; +} +inline bool Value::has_bytes_value() const { + return _internal_has_bytes_value(); +} +inline void Value::set_has_bytes_value() { + _impl_._oneof_case_[0] = kBytesValue; +} +inline void Value::clear_bytes_value() { + if (_internal_has_bytes_value()) { + _impl_.kind_.bytes_value_.Destroy(); + clear_has_kind(); + } +} +inline const std::string& Value::bytes_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.bytes_value) + return _internal_bytes_value(); +} +template +inline void Value::set_bytes_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_bytes_value()) { + clear_kind(); + set_has_bytes_value(); + _impl_.kind_.bytes_value_.InitDefault(); + } + _impl_.kind_.bytes_value_.SetBytes( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Value.bytes_value) +} +inline std::string* Value::mutable_bytes_value() { + std::string* _s = _internal_mutable_bytes_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Value.bytes_value) + return _s; +} +inline const std::string& Value::_internal_bytes_value() const { + if (_internal_has_bytes_value()) { + return _impl_.kind_.bytes_value_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void Value::_internal_set_bytes_value(const std::string& value) { + if (!_internal_has_bytes_value()) { + clear_kind(); + set_has_bytes_value(); + _impl_.kind_.bytes_value_.InitDefault(); + } + _impl_.kind_.bytes_value_.Set(value, GetArenaForAllocation()); +} +inline std::string* Value::_internal_mutable_bytes_value() { + if (!_internal_has_bytes_value()) { + clear_kind(); + set_has_bytes_value(); + _impl_.kind_.bytes_value_.InitDefault(); + } + return _impl_.kind_.bytes_value_.Mutable( GetArenaForAllocation()); +} +inline std::string* Value::release_bytes_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Value.bytes_value) + if (_internal_has_bytes_value()) { + clear_has_kind(); + return _impl_.kind_.bytes_value_.Release(); + } else { + return nullptr; + } +} +inline void Value::set_allocated_bytes_value(std::string* bytes_value) { + if (has_kind()) { + clear_kind(); + } + if (bytes_value != nullptr) { + set_has_bytes_value(); + _impl_.kind_.bytes_value_.InitAllocated(bytes_value, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Value.bytes_value) +} + +// .google.api.expr.v1alpha1.EnumValue enum_value = 9 [json_name = "enumValue"]; +inline bool Value::_internal_has_enum_value() const { + return kind_case() == kEnumValue; +} +inline bool Value::has_enum_value() const { + return _internal_has_enum_value(); +} +inline void Value::set_has_enum_value() { + _impl_._oneof_case_[0] = kEnumValue; +} +inline void Value::clear_enum_value() { + if (_internal_has_enum_value()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.enum_value_; + } + clear_has_kind(); + } +} +inline ::google::api::expr::v1alpha1::EnumValue* Value::release_enum_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Value.enum_value) + if (_internal_has_enum_value()) { + clear_has_kind(); + ::google::api::expr::v1alpha1::EnumValue* temp = _impl_.kind_.enum_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.enum_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1alpha1::EnumValue& Value::_internal_enum_value() const { + return _internal_has_enum_value() + ? *_impl_.kind_.enum_value_ + : reinterpret_cast< ::google::api::expr::v1alpha1::EnumValue&>(::google::api::expr::v1alpha1::_EnumValue_default_instance_); +} +inline const ::google::api::expr::v1alpha1::EnumValue& Value::enum_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.enum_value) + return _internal_enum_value(); +} +inline ::google::api::expr::v1alpha1::EnumValue* Value::unsafe_arena_release_enum_value() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Value.enum_value) + if (_internal_has_enum_value()) { + clear_has_kind(); + ::google::api::expr::v1alpha1::EnumValue* temp = _impl_.kind_.enum_value_; + _impl_.kind_.enum_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Value::unsafe_arena_set_allocated_enum_value(::google::api::expr::v1alpha1::EnumValue* enum_value) { + clear_kind(); + if (enum_value) { + set_has_enum_value(); + _impl_.kind_.enum_value_ = enum_value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Value.enum_value) +} +inline ::google::api::expr::v1alpha1::EnumValue* Value::_internal_mutable_enum_value() { + if (!_internal_has_enum_value()) { + clear_kind(); + set_has_enum_value(); + _impl_.kind_.enum_value_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::EnumValue >(GetArenaForAllocation()); + } + return _impl_.kind_.enum_value_; +} +inline ::google::api::expr::v1alpha1::EnumValue* Value::mutable_enum_value() { + ::google::api::expr::v1alpha1::EnumValue* _msg = _internal_mutable_enum_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Value.enum_value) + return _msg; +} + +// .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; +inline bool Value::_internal_has_object_value() const { + return kind_case() == kObjectValue; +} +inline bool Value::has_object_value() const { + return _internal_has_object_value(); +} +inline void Value::set_has_object_value() { + _impl_._oneof_case_[0] = kObjectValue; +} +inline ::PROTOBUF_NAMESPACE_ID::Any* Value::release_object_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Value.object_value) + if (_internal_has_object_value()) { + clear_has_kind(); + ::PROTOBUF_NAMESPACE_ID::Any* temp = _impl_.kind_.object_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.object_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::PROTOBUF_NAMESPACE_ID::Any& Value::_internal_object_value() const { + return _internal_has_object_value() + ? *_impl_.kind_.object_value_ + : reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::Any&>(::PROTOBUF_NAMESPACE_ID::_Any_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Any& Value::object_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.object_value) + return _internal_object_value(); +} +inline ::PROTOBUF_NAMESPACE_ID::Any* Value::unsafe_arena_release_object_value() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Value.object_value) + if (_internal_has_object_value()) { + clear_has_kind(); + ::PROTOBUF_NAMESPACE_ID::Any* temp = _impl_.kind_.object_value_; + _impl_.kind_.object_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Value::unsafe_arena_set_allocated_object_value(::PROTOBUF_NAMESPACE_ID::Any* object_value) { + clear_kind(); + if (object_value) { + set_has_object_value(); + _impl_.kind_.object_value_ = object_value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Value.object_value) +} +inline ::PROTOBUF_NAMESPACE_ID::Any* Value::_internal_mutable_object_value() { + if (!_internal_has_object_value()) { + clear_kind(); + set_has_object_value(); + _impl_.kind_.object_value_ = CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Any >(GetArenaForAllocation()); + } + return _impl_.kind_.object_value_; +} +inline ::PROTOBUF_NAMESPACE_ID::Any* Value::mutable_object_value() { + ::PROTOBUF_NAMESPACE_ID::Any* _msg = _internal_mutable_object_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Value.object_value) + return _msg; +} + +// .google.api.expr.v1alpha1.MapValue map_value = 11 [json_name = "mapValue"]; +inline bool Value::_internal_has_map_value() const { + return kind_case() == kMapValue; +} +inline bool Value::has_map_value() const { + return _internal_has_map_value(); +} +inline void Value::set_has_map_value() { + _impl_._oneof_case_[0] = kMapValue; +} +inline void Value::clear_map_value() { + if (_internal_has_map_value()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.map_value_; + } + clear_has_kind(); + } +} +inline ::google::api::expr::v1alpha1::MapValue* Value::release_map_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Value.map_value) + if (_internal_has_map_value()) { + clear_has_kind(); + ::google::api::expr::v1alpha1::MapValue* temp = _impl_.kind_.map_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.map_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1alpha1::MapValue& Value::_internal_map_value() const { + return _internal_has_map_value() + ? *_impl_.kind_.map_value_ + : reinterpret_cast< ::google::api::expr::v1alpha1::MapValue&>(::google::api::expr::v1alpha1::_MapValue_default_instance_); +} +inline const ::google::api::expr::v1alpha1::MapValue& Value::map_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.map_value) + return _internal_map_value(); +} +inline ::google::api::expr::v1alpha1::MapValue* Value::unsafe_arena_release_map_value() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Value.map_value) + if (_internal_has_map_value()) { + clear_has_kind(); + ::google::api::expr::v1alpha1::MapValue* temp = _impl_.kind_.map_value_; + _impl_.kind_.map_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Value::unsafe_arena_set_allocated_map_value(::google::api::expr::v1alpha1::MapValue* map_value) { + clear_kind(); + if (map_value) { + set_has_map_value(); + _impl_.kind_.map_value_ = map_value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Value.map_value) +} +inline ::google::api::expr::v1alpha1::MapValue* Value::_internal_mutable_map_value() { + if (!_internal_has_map_value()) { + clear_kind(); + set_has_map_value(); + _impl_.kind_.map_value_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::MapValue >(GetArenaForAllocation()); + } + return _impl_.kind_.map_value_; +} +inline ::google::api::expr::v1alpha1::MapValue* Value::mutable_map_value() { + ::google::api::expr::v1alpha1::MapValue* _msg = _internal_mutable_map_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Value.map_value) + return _msg; +} + +// .google.api.expr.v1alpha1.ListValue list_value = 12 [json_name = "listValue"]; +inline bool Value::_internal_has_list_value() const { + return kind_case() == kListValue; +} +inline bool Value::has_list_value() const { + return _internal_has_list_value(); +} +inline void Value::set_has_list_value() { + _impl_._oneof_case_[0] = kListValue; +} +inline void Value::clear_list_value() { + if (_internal_has_list_value()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.list_value_; + } + clear_has_kind(); + } +} +inline ::google::api::expr::v1alpha1::ListValue* Value::release_list_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Value.list_value) + if (_internal_has_list_value()) { + clear_has_kind(); + ::google::api::expr::v1alpha1::ListValue* temp = _impl_.kind_.list_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.list_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1alpha1::ListValue& Value::_internal_list_value() const { + return _internal_has_list_value() + ? *_impl_.kind_.list_value_ + : reinterpret_cast< ::google::api::expr::v1alpha1::ListValue&>(::google::api::expr::v1alpha1::_ListValue_default_instance_); +} +inline const ::google::api::expr::v1alpha1::ListValue& Value::list_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.list_value) + return _internal_list_value(); +} +inline ::google::api::expr::v1alpha1::ListValue* Value::unsafe_arena_release_list_value() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Value.list_value) + if (_internal_has_list_value()) { + clear_has_kind(); + ::google::api::expr::v1alpha1::ListValue* temp = _impl_.kind_.list_value_; + _impl_.kind_.list_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Value::unsafe_arena_set_allocated_list_value(::google::api::expr::v1alpha1::ListValue* list_value) { + clear_kind(); + if (list_value) { + set_has_list_value(); + _impl_.kind_.list_value_ = list_value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Value.list_value) +} +inline ::google::api::expr::v1alpha1::ListValue* Value::_internal_mutable_list_value() { + if (!_internal_has_list_value()) { + clear_kind(); + set_has_list_value(); + _impl_.kind_.list_value_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::ListValue >(GetArenaForAllocation()); + } + return _impl_.kind_.list_value_; +} +inline ::google::api::expr::v1alpha1::ListValue* Value::mutable_list_value() { + ::google::api::expr::v1alpha1::ListValue* _msg = _internal_mutable_list_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Value.list_value) + return _msg; +} + +// string type_value = 15 [json_name = "typeValue"]; +inline bool Value::_internal_has_type_value() const { + return kind_case() == kTypeValue; +} +inline bool Value::has_type_value() const { + return _internal_has_type_value(); +} +inline void Value::set_has_type_value() { + _impl_._oneof_case_[0] = kTypeValue; +} +inline void Value::clear_type_value() { + if (_internal_has_type_value()) { + _impl_.kind_.type_value_.Destroy(); + clear_has_kind(); + } +} +inline const std::string& Value::type_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.type_value) + return _internal_type_value(); +} +template +inline void Value::set_type_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_type_value()) { + clear_kind(); + set_has_type_value(); + _impl_.kind_.type_value_.InitDefault(); + } + _impl_.kind_.type_value_.Set( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Value.type_value) +} +inline std::string* Value::mutable_type_value() { + std::string* _s = _internal_mutable_type_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Value.type_value) + return _s; +} +inline const std::string& Value::_internal_type_value() const { + if (_internal_has_type_value()) { + return _impl_.kind_.type_value_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void Value::_internal_set_type_value(const std::string& value) { + if (!_internal_has_type_value()) { + clear_kind(); + set_has_type_value(); + _impl_.kind_.type_value_.InitDefault(); + } + _impl_.kind_.type_value_.Set(value, GetArenaForAllocation()); +} +inline std::string* Value::_internal_mutable_type_value() { + if (!_internal_has_type_value()) { + clear_kind(); + set_has_type_value(); + _impl_.kind_.type_value_.InitDefault(); + } + return _impl_.kind_.type_value_.Mutable( GetArenaForAllocation()); +} +inline std::string* Value::release_type_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Value.type_value) + if (_internal_has_type_value()) { + clear_has_kind(); + return _impl_.kind_.type_value_.Release(); + } else { + return nullptr; + } +} +inline void Value::set_allocated_type_value(std::string* type_value) { + if (has_kind()) { + clear_kind(); + } + if (type_value != nullptr) { + set_has_type_value(); + _impl_.kind_.type_value_.InitAllocated(type_value, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Value.type_value) +} + +inline bool Value::has_kind() const { + return kind_case() != KIND_NOT_SET; +} +inline void Value::clear_has_kind() { + _impl_._oneof_case_[0] = KIND_NOT_SET; +} +inline Value::KindCase Value::kind_case() const { + return Value::KindCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// EnumValue + +// string type = 1 [json_name = "type"]; +inline void EnumValue::clear_type() { + _impl_.type_.ClearToEmpty(); +} +inline const std::string& EnumValue::type() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.EnumValue.type) + return _internal_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void EnumValue::set_type(ArgT0&& arg0, ArgT... args) { + + _impl_.type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.EnumValue.type) +} +inline std::string* EnumValue::mutable_type() { + std::string* _s = _internal_mutable_type(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.EnumValue.type) + return _s; +} +inline const std::string& EnumValue::_internal_type() const { + return _impl_.type_.Get(); +} +inline void EnumValue::_internal_set_type(const std::string& value) { + + _impl_.type_.Set(value, GetArenaForAllocation()); +} +inline std::string* EnumValue::_internal_mutable_type() { + + return _impl_.type_.Mutable(GetArenaForAllocation()); +} +inline std::string* EnumValue::release_type() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.EnumValue.type) + return _impl_.type_.Release(); +} +inline void EnumValue::set_allocated_type(std::string* type) { + if (type != nullptr) { + + } else { + + } + _impl_.type_.SetAllocated(type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.type_.IsDefault()) { + _impl_.type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.EnumValue.type) +} + +// int32 value = 2 [json_name = "value"]; +inline void EnumValue::clear_value() { + _impl_.value_ = 0; +} +inline int32_t EnumValue::_internal_value() const { + return _impl_.value_; +} +inline int32_t EnumValue::value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.EnumValue.value) + return _internal_value(); +} +inline void EnumValue::_internal_set_value(int32_t value) { + + _impl_.value_ = value; +} +inline void EnumValue::set_value(int32_t value) { + _internal_set_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.EnumValue.value) +} + +// ------------------------------------------------------------------- + +// ListValue + +// repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; +inline int ListValue::_internal_values_size() const { + return _impl_.values_.size(); +} +inline int ListValue::values_size() const { + return _internal_values_size(); +} +inline void ListValue::clear_values() { + _impl_.values_.Clear(); +} +inline ::google::api::expr::v1alpha1::Value* ListValue::mutable_values(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.ListValue.values) + return _impl_.values_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Value >* +ListValue::mutable_values() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.ListValue.values) + return &_impl_.values_; +} +inline const ::google::api::expr::v1alpha1::Value& ListValue::_internal_values(int index) const { + return _impl_.values_.Get(index); +} +inline const ::google::api::expr::v1alpha1::Value& ListValue::values(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.ListValue.values) + return _internal_values(index); +} +inline ::google::api::expr::v1alpha1::Value* ListValue::_internal_add_values() { + return _impl_.values_.Add(); +} +inline ::google::api::expr::v1alpha1::Value* ListValue::add_values() { + ::google::api::expr::v1alpha1::Value* _add = _internal_add_values(); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.ListValue.values) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Value >& +ListValue::values() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.ListValue.values) + return _impl_.values_; +} + +// ------------------------------------------------------------------- + +// MapValue_Entry + +// .google.api.expr.v1alpha1.Value key = 1 [json_name = "key"]; +inline bool MapValue_Entry::_internal_has_key() const { + return this != internal_default_instance() && _impl_.key_ != nullptr; +} +inline bool MapValue_Entry::has_key() const { + return _internal_has_key(); +} +inline void MapValue_Entry::clear_key() { + if (GetArenaForAllocation() == nullptr && _impl_.key_ != nullptr) { + delete _impl_.key_; + } + _impl_.key_ = nullptr; +} +inline const ::google::api::expr::v1alpha1::Value& MapValue_Entry::_internal_key() const { + const ::google::api::expr::v1alpha1::Value* p = _impl_.key_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Value_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Value& MapValue_Entry::key() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.MapValue.Entry.key) + return _internal_key(); +} +inline void MapValue_Entry::unsafe_arena_set_allocated_key( + ::google::api::expr::v1alpha1::Value* key) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.key_); + } + _impl_.key_ = key; + if (key) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.MapValue.Entry.key) +} +inline ::google::api::expr::v1alpha1::Value* MapValue_Entry::release_key() { + + ::google::api::expr::v1alpha1::Value* temp = _impl_.key_; + _impl_.key_ = 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 ::google::api::expr::v1alpha1::Value* MapValue_Entry::unsafe_arena_release_key() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.MapValue.Entry.key) + + ::google::api::expr::v1alpha1::Value* temp = _impl_.key_; + _impl_.key_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::Value* MapValue_Entry::_internal_mutable_key() { + + if (_impl_.key_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Value>(GetArenaForAllocation()); + _impl_.key_ = p; + } + return _impl_.key_; +} +inline ::google::api::expr::v1alpha1::Value* MapValue_Entry::mutable_key() { + ::google::api::expr::v1alpha1::Value* _msg = _internal_mutable_key(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.MapValue.Entry.key) + return _msg; +} +inline void MapValue_Entry::set_allocated_key(::google::api::expr::v1alpha1::Value* key) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.key_; + } + if (key) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(key); + if (message_arena != submessage_arena) { + key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, key, submessage_arena); + } + + } else { + + } + _impl_.key_ = key; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.MapValue.Entry.key) +} + +// .google.api.expr.v1alpha1.Value value = 2 [json_name = "value"]; +inline bool MapValue_Entry::_internal_has_value() const { + return this != internal_default_instance() && _impl_.value_ != nullptr; +} +inline bool MapValue_Entry::has_value() const { + return _internal_has_value(); +} +inline void MapValue_Entry::clear_value() { + if (GetArenaForAllocation() == nullptr && _impl_.value_ != nullptr) { + delete _impl_.value_; + } + _impl_.value_ = nullptr; +} +inline const ::google::api::expr::v1alpha1::Value& MapValue_Entry::_internal_value() const { + const ::google::api::expr::v1alpha1::Value* p = _impl_.value_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Value_default_instance_); +} +inline const ::google::api::expr::v1alpha1::Value& MapValue_Entry::value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.MapValue.Entry.value) + return _internal_value(); +} +inline void MapValue_Entry::unsafe_arena_set_allocated_value( + ::google::api::expr::v1alpha1::Value* value) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.value_); + } + _impl_.value_ = value; + if (value) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.MapValue.Entry.value) +} +inline ::google::api::expr::v1alpha1::Value* MapValue_Entry::release_value() { + + ::google::api::expr::v1alpha1::Value* temp = _impl_.value_; + _impl_.value_ = 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 ::google::api::expr::v1alpha1::Value* MapValue_Entry::unsafe_arena_release_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.MapValue.Entry.value) + + ::google::api::expr::v1alpha1::Value* temp = _impl_.value_; + _impl_.value_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::Value* MapValue_Entry::_internal_mutable_value() { + + if (_impl_.value_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Value>(GetArenaForAllocation()); + _impl_.value_ = p; + } + return _impl_.value_; +} +inline ::google::api::expr::v1alpha1::Value* MapValue_Entry::mutable_value() { + ::google::api::expr::v1alpha1::Value* _msg = _internal_mutable_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.MapValue.Entry.value) + return _msg; +} +inline void MapValue_Entry::set_allocated_value(::google::api::expr::v1alpha1::Value* value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.value_; + } + if (value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(value); + if (message_arena != submessage_arena) { + value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + + } else { + + } + _impl_.value_ = value; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.MapValue.Entry.value) +} + +// ------------------------------------------------------------------- + +// MapValue + +// repeated .google.api.expr.v1alpha1.MapValue.Entry entries = 1 [json_name = "entries"]; +inline int MapValue::_internal_entries_size() const { + return _impl_.entries_.size(); +} +inline int MapValue::entries_size() const { + return _internal_entries_size(); +} +inline void MapValue::clear_entries() { + _impl_.entries_.Clear(); +} +inline ::google::api::expr::v1alpha1::MapValue_Entry* MapValue::mutable_entries(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.MapValue.entries) + return _impl_.entries_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::MapValue_Entry >* +MapValue::mutable_entries() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.MapValue.entries) + return &_impl_.entries_; +} +inline const ::google::api::expr::v1alpha1::MapValue_Entry& MapValue::_internal_entries(int index) const { + return _impl_.entries_.Get(index); +} +inline const ::google::api::expr::v1alpha1::MapValue_Entry& MapValue::entries(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.MapValue.entries) + return _internal_entries(index); +} +inline ::google::api::expr::v1alpha1::MapValue_Entry* MapValue::_internal_add_entries() { + return _impl_.entries_.Add(); +} +inline ::google::api::expr::v1alpha1::MapValue_Entry* MapValue::add_entries() { + ::google::api::expr::v1alpha1::MapValue_Entry* _add = _internal_add_entries(); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.MapValue.entries) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::MapValue_Entry >& +MapValue::entries() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.MapValue.entries) + return _impl_.entries_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1alpha1 +} // namespace expr +} // namespace api +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto diff --git a/src/gen/google/api/expr/v1beta1/decl.grpc.pb.cc b/src/gen/google/api/expr/v1beta1/decl.grpc.pb.cc new file mode 100644 index 000000000..42e91e261 --- /dev/null +++ b/src/gen/google/api/expr/v1beta1/decl.grpc.pb.cc @@ -0,0 +1,31 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/expr/v1beta1/decl.proto + +#include "google/api/expr/v1beta1/decl.pb.h" +#include "google/api/expr/v1beta1/decl.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { + +} // namespace google +} // namespace api +} // namespace expr +} // namespace v1beta1 + diff --git a/src/gen/google/api/expr/v1beta1/decl.grpc.pb.h b/src/gen/google/api/expr/v1beta1/decl.grpc.pb.h new file mode 100644 index 000000000..bc0c455a6 --- /dev/null +++ b/src/gen/google/api/expr/v1beta1/decl.grpc.pb.h @@ -0,0 +1,55 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/expr/v1beta1/decl.proto +// Original file comments: +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +#ifndef GRPC_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto__INCLUDED +#define GRPC_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto__INCLUDED + +#include "google/api/expr/v1beta1/decl.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { + +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google + + +#endif // GRPC_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto__INCLUDED diff --git a/src/gen/google/api/expr/v1beta1/decl.pb.cc b/src/gen/google/api/expr/v1beta1/decl.pb.cc new file mode 100644 index 000000000..ca0702051 --- /dev/null +++ b/src/gen/google/api/expr/v1beta1/decl.pb.cc @@ -0,0 +1,1422 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/expr/v1beta1/decl.proto + +#include "google/api/expr/v1beta1/decl.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { +PROTOBUF_CONSTEXPR Decl::Decl( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.doc_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.id_)*/0 + , /*decltype(_impl_.kind_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct DeclDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeclDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeclDefaultTypeInternal() {} + union { + Decl _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeclDefaultTypeInternal _Decl_default_instance_; +PROTOBUF_CONSTEXPR DeclType::DeclType( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.type_params_)*/{} + , /*decltype(_impl_.type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.id_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DeclTypeDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeclTypeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeclTypeDefaultTypeInternal() {} + union { + DeclType _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeclTypeDefaultTypeInternal _DeclType_default_instance_; +PROTOBUF_CONSTEXPR IdentDecl::IdentDecl( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.type_)*/nullptr + , /*decltype(_impl_.value_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct IdentDeclDefaultTypeInternal { + PROTOBUF_CONSTEXPR IdentDeclDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IdentDeclDefaultTypeInternal() {} + union { + IdentDecl _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IdentDeclDefaultTypeInternal _IdentDecl_default_instance_; +PROTOBUF_CONSTEXPR FunctionDecl::FunctionDecl( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.args_)*/{} + , /*decltype(_impl_.return_type_)*/nullptr + , /*decltype(_impl_.receiver_function_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct FunctionDeclDefaultTypeInternal { + PROTOBUF_CONSTEXPR FunctionDeclDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FunctionDeclDefaultTypeInternal() {} + union { + FunctionDecl _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FunctionDeclDefaultTypeInternal _FunctionDecl_default_instance_; +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google +static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto[4]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Decl, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Decl, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Decl, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Decl, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Decl, _impl_.doc_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Decl, _impl_.kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::DeclType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::DeclType, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::DeclType, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::DeclType, _impl_.type_params_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::IdentDecl, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::IdentDecl, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::IdentDecl, _impl_.value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::FunctionDecl, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::FunctionDecl, _impl_.args_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::FunctionDecl, _impl_.return_type_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::FunctionDecl, _impl_.receiver_function_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::expr::v1beta1::Decl)}, + { 12, -1, -1, sizeof(::google::api::expr::v1beta1::DeclType)}, + { 21, -1, -1, sizeof(::google::api::expr::v1beta1::IdentDecl)}, + { 29, -1, -1, sizeof(::google::api::expr::v1beta1::FunctionDecl)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::google::api::expr::v1beta1::_Decl_default_instance_._instance, + &::google::api::expr::v1beta1::_DeclType_default_instance_._instance, + &::google::api::expr::v1beta1::_IdentDecl_default_instance_._instance, + &::google::api::expr::v1beta1::_FunctionDecl_default_instance_._instance, +}; + +const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\"google/api/expr/v1beta1/decl.proto\022\027go" + "ogle.api.expr.v1beta1\032\"google/api/expr/v" + "1beta1/expr.proto\"\305\001\n\004Decl\022\016\n\002id\030\001 \001(\005R\002" + "id\022\022\n\004name\030\002 \001(\tR\004name\022\020\n\003doc\030\003 \001(\tR\003doc" + "\022:\n\005ident\030\004 \001(\0132\".google.api.expr.v1beta" + "1.IdentDeclH\000R\005ident\022C\n\010function\030\005 \001(\0132%" + ".google.api.expr.v1beta1.FunctionDeclH\000R" + "\010functionB\006\n\004kind\"r\n\010DeclType\022\016\n\002id\030\001 \001(" + "\005R\002id\022\022\n\004type\030\002 \001(\tR\004type\022B\n\013type_params" + "\030\004 \003(\0132!.google.api.expr.v1beta1.DeclTyp" + "eR\ntypeParams\"w\n\tIdentDecl\0225\n\004type\030\003 \001(\013" + "2!.google.api.expr.v1beta1.DeclTypeR\004typ" + "e\0223\n\005value\030\004 \001(\0132\035.google.api.expr.v1bet" + "a1.ExprR\005value\"\267\001\n\014FunctionDecl\0226\n\004args\030" + "\001 \003(\0132\".google.api.expr.v1beta1.IdentDec" + "lR\004args\022B\n\013return_type\030\002 \001(\0132!.google.ap" + "i.expr.v1beta1.DeclTypeR\nreturnType\022+\n\021r" + "eceiver_function\030\003 \001(\010R\020receiverFunction" + "Bj\n\033com.google.api.expr.v1beta1B\tDeclPro" + "toP\001Z;google.golang.org/genproto/googlea" + "pis/api/expr/v1beta1;expr\370\001\001b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_deps[1] = { + &::descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto, +}; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto = { + false, false, 836, descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto, + "google/api/expr/v1beta1/decl.proto", + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_once, descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_deps, 1, 4, + schemas, file_default_instances, TableStruct_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto::offsets, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto, file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto, + file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_getter() { + return &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto); +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { + +// =================================================================== + +class Decl::_Internal { + public: + static const ::google::api::expr::v1beta1::IdentDecl& ident(const Decl* msg); + static const ::google::api::expr::v1beta1::FunctionDecl& function(const Decl* msg); +}; + +const ::google::api::expr::v1beta1::IdentDecl& +Decl::_Internal::ident(const Decl* msg) { + return *msg->_impl_.kind_.ident_; +} +const ::google::api::expr::v1beta1::FunctionDecl& +Decl::_Internal::function(const Decl* msg) { + return *msg->_impl_.kind_.function_; +} +void Decl::set_allocated_ident(::google::api::expr::v1beta1::IdentDecl* ident) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (ident) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(ident); + if (message_arena != submessage_arena) { + ident = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, ident, submessage_arena); + } + set_has_ident(); + _impl_.kind_.ident_ = ident; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Decl.ident) +} +void Decl::set_allocated_function(::google::api::expr::v1beta1::FunctionDecl* function) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (function) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(function); + if (message_arena != submessage_arena) { + function = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, function, submessage_arena); + } + set_has_function(); + _impl_.kind_.function_ = function; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Decl.function) +} +Decl::Decl(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Decl) +} +Decl::Decl(const Decl& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Decl* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.doc_){} + , decltype(_impl_.id_){} + , decltype(_impl_.kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.doc_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.doc_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_doc().empty()) { + _this->_impl_.doc_.Set(from._internal_doc(), + _this->GetArenaForAllocation()); + } + _this->_impl_.id_ = from._impl_.id_; + clear_has_kind(); + switch (from.kind_case()) { + case kIdent: { + _this->_internal_mutable_ident()->::google::api::expr::v1beta1::IdentDecl::MergeFrom( + from._internal_ident()); + break; + } + case kFunction: { + _this->_internal_mutable_function()->::google::api::expr::v1beta1::FunctionDecl::MergeFrom( + from._internal_function()); + break; + } + case KIND_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Decl) +} + +inline void Decl::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.doc_){} + , decltype(_impl_.id_){0} + , decltype(_impl_.kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.doc_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.doc_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + clear_has_kind(); +} + +Decl::~Decl() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Decl) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Decl::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.doc_.Destroy(); + if (has_kind()) { + clear_kind(); + } +} + +void Decl::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Decl::clear_kind() { +// @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1beta1.Decl) + switch (kind_case()) { + case kIdent: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.ident_; + } + break; + } + case kFunction: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.function_; + } + break; + } + case KIND_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = KIND_NOT_SET; +} + + +void Decl::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Decl) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.doc_.ClearToEmpty(); + _impl_.id_ = 0; + clear_kind(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Decl::_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) { + // int32 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Decl.name")); + } else + goto handle_unusual; + continue; + // string doc = 3 [json_name = "doc"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_doc(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Decl.doc")); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_ident(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_function(), 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* Decl::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Decl) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int32 id = 1 [json_name = "id"]; + if (this->_internal_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_id(), target); + } + + // string name = 2 [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, + "google.api.expr.v1beta1.Decl.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); + } + + // string doc = 3 [json_name = "doc"]; + if (!this->_internal_doc().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_doc().data(), static_cast(this->_internal_doc().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Decl.doc"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_doc(), target); + } + + // .google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"]; + if (_internal_has_ident()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::ident(this), + _Internal::ident(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"]; + if (_internal_has_function()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::function(this), + _Internal::function(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:google.api.expr.v1beta1.Decl) + return target; +} + +size_t Decl::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Decl) + 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 = 2 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // string doc = 3 [json_name = "doc"]; + if (!this->_internal_doc().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_doc()); + } + + // int32 id = 1 [json_name = "id"]; + if (this->_internal_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_id()); + } + + switch (kind_case()) { + // .google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"]; + case kIdent: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.ident_); + break; + } + // .google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"]; + case kFunction: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.function_); + break; + } + case KIND_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Decl::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Decl::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Decl::GetClassData() const { return &_class_data_; } + + +void Decl::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Decl) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_doc().empty()) { + _this->_internal_set_doc(from._internal_doc()); + } + if (from._internal_id() != 0) { + _this->_internal_set_id(from._internal_id()); + } + switch (from.kind_case()) { + case kIdent: { + _this->_internal_mutable_ident()->::google::api::expr::v1beta1::IdentDecl::MergeFrom( + from._internal_ident()); + break; + } + case kFunction: { + _this->_internal_mutable_function()->::google::api::expr::v1beta1::FunctionDecl::MergeFrom( + from._internal_function()); + break; + } + case KIND_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Decl::CopyFrom(const Decl& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.Decl) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Decl::IsInitialized() const { + return true; +} + +void Decl::InternalSwap(Decl* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.doc_, lhs_arena, + &other->_impl_.doc_, rhs_arena + ); + swap(_impl_.id_, other->_impl_.id_); + swap(_impl_.kind_, other->_impl_.kind_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Decl::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto[0]); +} + +// =================================================================== + +class DeclType::_Internal { + public: +}; + +DeclType::DeclType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.DeclType) +} +DeclType::DeclType(const DeclType& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DeclType* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.type_params_){from._impl_.type_params_} + , decltype(_impl_.type_){} + , decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_type().empty()) { + _this->_impl_.type_.Set(from._internal_type(), + _this->GetArenaForAllocation()); + } + _this->_impl_.id_ = from._impl_.id_; + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.DeclType) +} + +inline void DeclType::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.type_params_){arena} + , decltype(_impl_.type_){} + , decltype(_impl_.id_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +DeclType::~DeclType() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.DeclType) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DeclType::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.type_params_.~RepeatedPtrField(); + _impl_.type_.Destroy(); +} + +void DeclType::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DeclType::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.DeclType) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.type_params_.Clear(); + _impl_.type_.ClearToEmpty(); + _impl_.id_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeclType::_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) { + // int32 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string type = 2 [json_name = "type"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.DeclType.type")); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_type_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + 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* DeclType::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.DeclType) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int32 id = 1 [json_name = "id"]; + if (this->_internal_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_id(), target); + } + + // string type = 2 [json_name = "type"]; + if (!this->_internal_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.DeclType.type"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_type(), target); + } + + // repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"]; + for (unsigned i = 0, + n = static_cast(this->_internal_type_params_size()); i < n; i++) { + const auto& repfield = this->_internal_type_params(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1beta1.DeclType) + return target; +} + +size_t DeclType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.DeclType) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"]; + total_size += 1UL * this->_internal_type_params_size(); + for (const auto& msg : this->_impl_.type_params_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string type = 2 [json_name = "type"]; + if (!this->_internal_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); + } + + // int32 id = 1 [json_name = "id"]; + if (this->_internal_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeclType::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DeclType::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeclType::GetClassData() const { return &_class_data_; } + + +void DeclType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.DeclType) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.type_params_.MergeFrom(from._impl_.type_params_); + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } + if (from._internal_id() != 0) { + _this->_internal_set_id(from._internal_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DeclType::CopyFrom(const DeclType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.DeclType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeclType::IsInitialized() const { + return true; +} + +void DeclType::InternalSwap(DeclType* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.type_params_.InternalSwap(&other->_impl_.type_params_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.type_, lhs_arena, + &other->_impl_.type_, rhs_arena + ); + swap(_impl_.id_, other->_impl_.id_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DeclType::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto[1]); +} + +// =================================================================== + +class IdentDecl::_Internal { + public: + static const ::google::api::expr::v1beta1::DeclType& type(const IdentDecl* msg); + static const ::google::api::expr::v1beta1::Expr& value(const IdentDecl* msg); +}; + +const ::google::api::expr::v1beta1::DeclType& +IdentDecl::_Internal::type(const IdentDecl* msg) { + return *msg->_impl_.type_; +} +const ::google::api::expr::v1beta1::Expr& +IdentDecl::_Internal::value(const IdentDecl* msg) { + return *msg->_impl_.value_; +} +void IdentDecl::clear_value() { + if (GetArenaForAllocation() == nullptr && _impl_.value_ != nullptr) { + delete _impl_.value_; + } + _impl_.value_ = nullptr; +} +IdentDecl::IdentDecl(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.IdentDecl) +} +IdentDecl::IdentDecl(const IdentDecl& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + IdentDecl* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.type_){nullptr} + , decltype(_impl_.value_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_type()) { + _this->_impl_.type_ = new ::google::api::expr::v1beta1::DeclType(*from._impl_.type_); + } + if (from._internal_has_value()) { + _this->_impl_.value_ = new ::google::api::expr::v1beta1::Expr(*from._impl_.value_); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.IdentDecl) +} + +inline void IdentDecl::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.type_){nullptr} + , decltype(_impl_.value_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +IdentDecl::~IdentDecl() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.IdentDecl) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void IdentDecl::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.type_; + if (this != internal_default_instance()) delete _impl_.value_; +} + +void IdentDecl::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void IdentDecl::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.IdentDecl) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.type_ != nullptr) { + delete _impl_.type_; + } + _impl_.type_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.value_ != nullptr) { + delete _impl_.value_; + } + _impl_.value_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IdentDecl::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.api.expr.v1beta1.DeclType type = 3 [json_name = "type"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_type(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_value(), 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* IdentDecl::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.IdentDecl) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.api.expr.v1beta1.DeclType type = 3 [json_name = "type"]; + if (this->_internal_has_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::type(this), + _Internal::type(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; + if (this->_internal_has_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::value(this), + _Internal::value(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:google.api.expr.v1beta1.IdentDecl) + return target; +} + +size_t IdentDecl::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.IdentDecl) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.api.expr.v1beta1.DeclType type = 3 [json_name = "type"]; + if (this->_internal_has_type()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.type_); + } + + // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; + if (this->_internal_has_value()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.value_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IdentDecl::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + IdentDecl::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IdentDecl::GetClassData() const { return &_class_data_; } + + +void IdentDecl::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.IdentDecl) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_type()) { + _this->_internal_mutable_type()->::google::api::expr::v1beta1::DeclType::MergeFrom( + from._internal_type()); + } + if (from._internal_has_value()) { + _this->_internal_mutable_value()->::google::api::expr::v1beta1::Expr::MergeFrom( + from._internal_value()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void IdentDecl::CopyFrom(const IdentDecl& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.IdentDecl) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IdentDecl::IsInitialized() const { + return true; +} + +void IdentDecl::InternalSwap(IdentDecl* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(IdentDecl, _impl_.value_) + + sizeof(IdentDecl::_impl_.value_) + - PROTOBUF_FIELD_OFFSET(IdentDecl, _impl_.type_)>( + reinterpret_cast(&_impl_.type_), + reinterpret_cast(&other->_impl_.type_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata IdentDecl::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto[2]); +} + +// =================================================================== + +class FunctionDecl::_Internal { + public: + static const ::google::api::expr::v1beta1::DeclType& return_type(const FunctionDecl* msg); +}; + +const ::google::api::expr::v1beta1::DeclType& +FunctionDecl::_Internal::return_type(const FunctionDecl* msg) { + return *msg->_impl_.return_type_; +} +FunctionDecl::FunctionDecl(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.FunctionDecl) +} +FunctionDecl::FunctionDecl(const FunctionDecl& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + FunctionDecl* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.args_){from._impl_.args_} + , decltype(_impl_.return_type_){nullptr} + , decltype(_impl_.receiver_function_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_return_type()) { + _this->_impl_.return_type_ = new ::google::api::expr::v1beta1::DeclType(*from._impl_.return_type_); + } + _this->_impl_.receiver_function_ = from._impl_.receiver_function_; + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.FunctionDecl) +} + +inline void FunctionDecl::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.args_){arena} + , decltype(_impl_.return_type_){nullptr} + , decltype(_impl_.receiver_function_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +FunctionDecl::~FunctionDecl() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.FunctionDecl) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void FunctionDecl::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.args_.~RepeatedPtrField(); + if (this != internal_default_instance()) delete _impl_.return_type_; +} + +void FunctionDecl::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void FunctionDecl::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.FunctionDecl) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.args_.Clear(); + if (GetArenaForAllocation() == nullptr && _impl_.return_type_ != nullptr) { + delete _impl_.return_type_; + } + _impl_.return_type_ = nullptr; + _impl_.receiver_function_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FunctionDecl::_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) { + // repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_args(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.DeclType return_type = 2 [json_name = "returnType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_return_type(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool receiver_function = 3 [json_name = "receiverFunction"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.receiver_function_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* FunctionDecl::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.FunctionDecl) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"]; + for (unsigned i = 0, + n = static_cast(this->_internal_args_size()); i < n; i++) { + const auto& repfield = this->_internal_args(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.DeclType return_type = 2 [json_name = "returnType"]; + if (this->_internal_has_return_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::return_type(this), + _Internal::return_type(this).GetCachedSize(), target, stream); + } + + // bool receiver_function = 3 [json_name = "receiverFunction"]; + if (this->_internal_receiver_function() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_receiver_function(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1beta1.FunctionDecl) + return target; +} + +size_t FunctionDecl::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.FunctionDecl) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"]; + total_size += 1UL * this->_internal_args_size(); + for (const auto& msg : this->_impl_.args_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // .google.api.expr.v1beta1.DeclType return_type = 2 [json_name = "returnType"]; + if (this->_internal_has_return_type()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.return_type_); + } + + // bool receiver_function = 3 [json_name = "receiverFunction"]; + if (this->_internal_receiver_function() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FunctionDecl::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + FunctionDecl::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FunctionDecl::GetClassData() const { return &_class_data_; } + + +void FunctionDecl::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.FunctionDecl) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.args_.MergeFrom(from._impl_.args_); + if (from._internal_has_return_type()) { + _this->_internal_mutable_return_type()->::google::api::expr::v1beta1::DeclType::MergeFrom( + from._internal_return_type()); + } + if (from._internal_receiver_function() != 0) { + _this->_internal_set_receiver_function(from._internal_receiver_function()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void FunctionDecl::CopyFrom(const FunctionDecl& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.FunctionDecl) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FunctionDecl::IsInitialized() const { + return true; +} + +void FunctionDecl::InternalSwap(FunctionDecl* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.args_.InternalSwap(&other->_impl_.args_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(FunctionDecl, _impl_.receiver_function_) + + sizeof(FunctionDecl::_impl_.receiver_function_) + - PROTOBUF_FIELD_OFFSET(FunctionDecl, _impl_.return_type_)>( + reinterpret_cast(&_impl_.return_type_), + reinterpret_cast(&other->_impl_.return_type_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FunctionDecl::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto[3]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Decl* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Decl >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Decl >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::DeclType* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::DeclType >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::DeclType >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::IdentDecl* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::IdentDecl >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::IdentDecl >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::FunctionDecl* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::FunctionDecl >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::FunctionDecl >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/google/api/expr/v1beta1/decl.pb.h b/src/gen/google/api/expr/v1beta1/decl.pb.h new file mode 100644 index 000000000..214d74a86 --- /dev/null +++ b/src/gen/google/api/expr/v1beta1/decl.pb.h @@ -0,0 +1,1622 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/expr/v1beta1/decl.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 "google/api/expr/v1beta1/expr.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto; +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { +class Decl; +struct DeclDefaultTypeInternal; +extern DeclDefaultTypeInternal _Decl_default_instance_; +class DeclType; +struct DeclTypeDefaultTypeInternal; +extern DeclTypeDefaultTypeInternal _DeclType_default_instance_; +class FunctionDecl; +struct FunctionDeclDefaultTypeInternal; +extern FunctionDeclDefaultTypeInternal _FunctionDecl_default_instance_; +class IdentDecl; +struct IdentDeclDefaultTypeInternal; +extern IdentDeclDefaultTypeInternal _IdentDecl_default_instance_; +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::expr::v1beta1::Decl* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Decl>(Arena*); +template<> ::google::api::expr::v1beta1::DeclType* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::DeclType>(Arena*); +template<> ::google::api::expr::v1beta1::FunctionDecl* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::FunctionDecl>(Arena*); +template<> ::google::api::expr::v1beta1::IdentDecl* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::IdentDecl>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { + +// =================================================================== + +class Decl final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Decl) */ { + public: + inline Decl() : Decl(nullptr) {} + ~Decl() override; + explicit PROTOBUF_CONSTEXPR Decl(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Decl(const Decl& from); + Decl(Decl&& from) noexcept + : Decl() { + *this = ::std::move(from); + } + + inline Decl& operator=(const Decl& from) { + CopyFrom(from); + return *this; + } + inline Decl& operator=(Decl&& 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 Decl& default_instance() { + return *internal_default_instance(); + } + enum KindCase { + kIdent = 4, + kFunction = 5, + KIND_NOT_SET = 0, + }; + + static inline const Decl* internal_default_instance() { + return reinterpret_cast( + &_Decl_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(Decl& a, Decl& b) { + a.Swap(&b); + } + inline void Swap(Decl* 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(Decl* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Decl* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Decl& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Decl& from) { + Decl::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Decl* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.Decl"; + } + protected: + explicit Decl(::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 = 2, + kDocFieldNumber = 3, + kIdFieldNumber = 1, + kIdentFieldNumber = 4, + kFunctionFieldNumber = 5, + }; + // string name = 2 [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 doc = 3 [json_name = "doc"]; + void clear_doc(); + const std::string& doc() const; + template + void set_doc(ArgT0&& arg0, ArgT... args); + std::string* mutable_doc(); + PROTOBUF_NODISCARD std::string* release_doc(); + void set_allocated_doc(std::string* doc); + private: + const std::string& _internal_doc() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc(const std::string& value); + std::string* _internal_mutable_doc(); + public: + + // int32 id = 1 [json_name = "id"]; + void clear_id(); + int32_t id() const; + void set_id(int32_t value); + private: + int32_t _internal_id() const; + void _internal_set_id(int32_t value); + public: + + // .google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"]; + bool has_ident() const; + private: + bool _internal_has_ident() const; + public: + void clear_ident(); + const ::google::api::expr::v1beta1::IdentDecl& ident() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::IdentDecl* release_ident(); + ::google::api::expr::v1beta1::IdentDecl* mutable_ident(); + void set_allocated_ident(::google::api::expr::v1beta1::IdentDecl* ident); + private: + const ::google::api::expr::v1beta1::IdentDecl& _internal_ident() const; + ::google::api::expr::v1beta1::IdentDecl* _internal_mutable_ident(); + public: + void unsafe_arena_set_allocated_ident( + ::google::api::expr::v1beta1::IdentDecl* ident); + ::google::api::expr::v1beta1::IdentDecl* unsafe_arena_release_ident(); + + // .google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"]; + bool has_function() const; + private: + bool _internal_has_function() const; + public: + void clear_function(); + const ::google::api::expr::v1beta1::FunctionDecl& function() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::FunctionDecl* release_function(); + ::google::api::expr::v1beta1::FunctionDecl* mutable_function(); + void set_allocated_function(::google::api::expr::v1beta1::FunctionDecl* function); + private: + const ::google::api::expr::v1beta1::FunctionDecl& _internal_function() const; + ::google::api::expr::v1beta1::FunctionDecl* _internal_mutable_function(); + public: + void unsafe_arena_set_allocated_function( + ::google::api::expr::v1beta1::FunctionDecl* function); + ::google::api::expr::v1beta1::FunctionDecl* unsafe_arena_release_function(); + + void clear_kind(); + KindCase kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Decl) + private: + class _Internal; + void set_has_ident(); + void set_has_function(); + + inline bool has_kind() const; + inline void clear_has_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_; + int32_t id_; + union KindUnion { + constexpr KindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::google::api::expr::v1beta1::IdentDecl* ident_; + ::google::api::expr::v1beta1::FunctionDecl* function_; + } kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto; +}; +// ------------------------------------------------------------------- + +class DeclType final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.DeclType) */ { + public: + inline DeclType() : DeclType(nullptr) {} + ~DeclType() override; + explicit PROTOBUF_CONSTEXPR DeclType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeclType(const DeclType& from); + DeclType(DeclType&& from) noexcept + : DeclType() { + *this = ::std::move(from); + } + + inline DeclType& operator=(const DeclType& from) { + CopyFrom(from); + return *this; + } + inline DeclType& operator=(DeclType&& 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 DeclType& default_instance() { + return *internal_default_instance(); + } + static inline const DeclType* internal_default_instance() { + return reinterpret_cast( + &_DeclType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(DeclType& a, DeclType& b) { + a.Swap(&b); + } + inline void Swap(DeclType* 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(DeclType* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeclType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeclType& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DeclType& from) { + DeclType::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeclType* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.DeclType"; + } + protected: + explicit DeclType(::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 { + kTypeParamsFieldNumber = 4, + kTypeFieldNumber = 2, + kIdFieldNumber = 1, + }; + // repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"]; + int type_params_size() const; + private: + int _internal_type_params_size() const; + public: + void clear_type_params(); + ::google::api::expr::v1beta1::DeclType* mutable_type_params(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::DeclType >* + mutable_type_params(); + private: + const ::google::api::expr::v1beta1::DeclType& _internal_type_params(int index) const; + ::google::api::expr::v1beta1::DeclType* _internal_add_type_params(); + public: + const ::google::api::expr::v1beta1::DeclType& type_params(int index) const; + ::google::api::expr::v1beta1::DeclType* add_type_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::DeclType >& + type_params() const; + + // string type = 2 [json_name = "type"]; + void clear_type(); + const std::string& type() const; + template + void set_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_type(); + PROTOBUF_NODISCARD std::string* release_type(); + void set_allocated_type(std::string* type); + private: + const std::string& _internal_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); + std::string* _internal_mutable_type(); + public: + + // int32 id = 1 [json_name = "id"]; + void clear_id(); + int32_t id() const; + void set_id(int32_t value); + private: + int32_t _internal_id() const; + void _internal_set_id(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.DeclType) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::DeclType > type_params_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + int32_t id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto; +}; +// ------------------------------------------------------------------- + +class IdentDecl final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.IdentDecl) */ { + public: + inline IdentDecl() : IdentDecl(nullptr) {} + ~IdentDecl() override; + explicit PROTOBUF_CONSTEXPR IdentDecl(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + IdentDecl(const IdentDecl& from); + IdentDecl(IdentDecl&& from) noexcept + : IdentDecl() { + *this = ::std::move(from); + } + + inline IdentDecl& operator=(const IdentDecl& from) { + CopyFrom(from); + return *this; + } + inline IdentDecl& operator=(IdentDecl&& 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 IdentDecl& default_instance() { + return *internal_default_instance(); + } + static inline const IdentDecl* internal_default_instance() { + return reinterpret_cast( + &_IdentDecl_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(IdentDecl& a, IdentDecl& b) { + a.Swap(&b); + } + inline void Swap(IdentDecl* 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(IdentDecl* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + IdentDecl* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IdentDecl& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const IdentDecl& from) { + IdentDecl::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IdentDecl* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.IdentDecl"; + } + protected: + explicit IdentDecl(::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 { + kTypeFieldNumber = 3, + kValueFieldNumber = 4, + }; + // .google.api.expr.v1beta1.DeclType type = 3 [json_name = "type"]; + bool has_type() const; + private: + bool _internal_has_type() const; + public: + void clear_type(); + const ::google::api::expr::v1beta1::DeclType& type() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::DeclType* release_type(); + ::google::api::expr::v1beta1::DeclType* mutable_type(); + void set_allocated_type(::google::api::expr::v1beta1::DeclType* type); + private: + const ::google::api::expr::v1beta1::DeclType& _internal_type() const; + ::google::api::expr::v1beta1::DeclType* _internal_mutable_type(); + public: + void unsafe_arena_set_allocated_type( + ::google::api::expr::v1beta1::DeclType* type); + ::google::api::expr::v1beta1::DeclType* unsafe_arena_release_type(); + + // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; + bool has_value() const; + private: + bool _internal_has_value() const; + public: + void clear_value(); + const ::google::api::expr::v1beta1::Expr& value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_value(); + ::google::api::expr::v1beta1::Expr* mutable_value(); + void set_allocated_value(::google::api::expr::v1beta1::Expr* value); + private: + const ::google::api::expr::v1beta1::Expr& _internal_value() const; + ::google::api::expr::v1beta1::Expr* _internal_mutable_value(); + public: + void unsafe_arena_set_allocated_value( + ::google::api::expr::v1beta1::Expr* value); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_value(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.IdentDecl) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::api::expr::v1beta1::DeclType* type_; + ::google::api::expr::v1beta1::Expr* value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto; +}; +// ------------------------------------------------------------------- + +class FunctionDecl final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.FunctionDecl) */ { + public: + inline FunctionDecl() : FunctionDecl(nullptr) {} + ~FunctionDecl() override; + explicit PROTOBUF_CONSTEXPR FunctionDecl(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + FunctionDecl(const FunctionDecl& from); + FunctionDecl(FunctionDecl&& from) noexcept + : FunctionDecl() { + *this = ::std::move(from); + } + + inline FunctionDecl& operator=(const FunctionDecl& from) { + CopyFrom(from); + return *this; + } + inline FunctionDecl& operator=(FunctionDecl&& 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 FunctionDecl& default_instance() { + return *internal_default_instance(); + } + static inline const FunctionDecl* internal_default_instance() { + return reinterpret_cast( + &_FunctionDecl_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(FunctionDecl& a, FunctionDecl& b) { + a.Swap(&b); + } + inline void Swap(FunctionDecl* 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(FunctionDecl* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + FunctionDecl* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FunctionDecl& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const FunctionDecl& from) { + FunctionDecl::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FunctionDecl* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.FunctionDecl"; + } + protected: + explicit FunctionDecl(::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 { + kArgsFieldNumber = 1, + kReturnTypeFieldNumber = 2, + kReceiverFunctionFieldNumber = 3, + }; + // repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"]; + int args_size() const; + private: + int _internal_args_size() const; + public: + void clear_args(); + ::google::api::expr::v1beta1::IdentDecl* mutable_args(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::IdentDecl >* + mutable_args(); + private: + const ::google::api::expr::v1beta1::IdentDecl& _internal_args(int index) const; + ::google::api::expr::v1beta1::IdentDecl* _internal_add_args(); + public: + const ::google::api::expr::v1beta1::IdentDecl& args(int index) const; + ::google::api::expr::v1beta1::IdentDecl* add_args(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::IdentDecl >& + args() const; + + // .google.api.expr.v1beta1.DeclType return_type = 2 [json_name = "returnType"]; + bool has_return_type() const; + private: + bool _internal_has_return_type() const; + public: + void clear_return_type(); + const ::google::api::expr::v1beta1::DeclType& return_type() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::DeclType* release_return_type(); + ::google::api::expr::v1beta1::DeclType* mutable_return_type(); + void set_allocated_return_type(::google::api::expr::v1beta1::DeclType* return_type); + private: + const ::google::api::expr::v1beta1::DeclType& _internal_return_type() const; + ::google::api::expr::v1beta1::DeclType* _internal_mutable_return_type(); + public: + void unsafe_arena_set_allocated_return_type( + ::google::api::expr::v1beta1::DeclType* return_type); + ::google::api::expr::v1beta1::DeclType* unsafe_arena_release_return_type(); + + // bool receiver_function = 3 [json_name = "receiverFunction"]; + void clear_receiver_function(); + bool receiver_function() const; + void set_receiver_function(bool value); + private: + bool _internal_receiver_function() const; + void _internal_set_receiver_function(bool value); + public: + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.FunctionDecl) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::IdentDecl > args_; + ::google::api::expr::v1beta1::DeclType* return_type_; + bool receiver_function_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Decl + +// int32 id = 1 [json_name = "id"]; +inline void Decl::clear_id() { + _impl_.id_ = 0; +} +inline int32_t Decl::_internal_id() const { + return _impl_.id_; +} +inline int32_t Decl::id() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Decl.id) + return _internal_id(); +} +inline void Decl::_internal_set_id(int32_t value) { + + _impl_.id_ = value; +} +inline void Decl::set_id(int32_t value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Decl.id) +} + +// string name = 2 [json_name = "name"]; +inline void Decl::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& Decl::name() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Decl.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Decl::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Decl.name) +} +inline std::string* Decl::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Decl.name) + return _s; +} +inline const std::string& Decl::_internal_name() const { + return _impl_.name_.Get(); +} +inline void Decl::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Decl::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* Decl::release_name() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Decl.name) + return _impl_.name_.Release(); +} +inline void Decl::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Decl.name) +} + +// string doc = 3 [json_name = "doc"]; +inline void Decl::clear_doc() { + _impl_.doc_.ClearToEmpty(); +} +inline const std::string& Decl::doc() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Decl.doc) + return _internal_doc(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Decl::set_doc(ArgT0&& arg0, ArgT... args) { + + _impl_.doc_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Decl.doc) +} +inline std::string* Decl::mutable_doc() { + std::string* _s = _internal_mutable_doc(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Decl.doc) + return _s; +} +inline const std::string& Decl::_internal_doc() const { + return _impl_.doc_.Get(); +} +inline void Decl::_internal_set_doc(const std::string& value) { + + _impl_.doc_.Set(value, GetArenaForAllocation()); +} +inline std::string* Decl::_internal_mutable_doc() { + + return _impl_.doc_.Mutable(GetArenaForAllocation()); +} +inline std::string* Decl::release_doc() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Decl.doc) + return _impl_.doc_.Release(); +} +inline void Decl::set_allocated_doc(std::string* doc) { + if (doc != nullptr) { + + } else { + + } + _impl_.doc_.SetAllocated(doc, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.doc_.IsDefault()) { + _impl_.doc_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Decl.doc) +} + +// .google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"]; +inline bool Decl::_internal_has_ident() const { + return kind_case() == kIdent; +} +inline bool Decl::has_ident() const { + return _internal_has_ident(); +} +inline void Decl::set_has_ident() { + _impl_._oneof_case_[0] = kIdent; +} +inline void Decl::clear_ident() { + if (_internal_has_ident()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.ident_; + } + clear_has_kind(); + } +} +inline ::google::api::expr::v1beta1::IdentDecl* Decl::release_ident() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Decl.ident) + if (_internal_has_ident()) { + clear_has_kind(); + ::google::api::expr::v1beta1::IdentDecl* temp = _impl_.kind_.ident_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.ident_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1beta1::IdentDecl& Decl::_internal_ident() const { + return _internal_has_ident() + ? *_impl_.kind_.ident_ + : reinterpret_cast< ::google::api::expr::v1beta1::IdentDecl&>(::google::api::expr::v1beta1::_IdentDecl_default_instance_); +} +inline const ::google::api::expr::v1beta1::IdentDecl& Decl::ident() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Decl.ident) + return _internal_ident(); +} +inline ::google::api::expr::v1beta1::IdentDecl* Decl::unsafe_arena_release_ident() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Decl.ident) + if (_internal_has_ident()) { + clear_has_kind(); + ::google::api::expr::v1beta1::IdentDecl* temp = _impl_.kind_.ident_; + _impl_.kind_.ident_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Decl::unsafe_arena_set_allocated_ident(::google::api::expr::v1beta1::IdentDecl* ident) { + clear_kind(); + if (ident) { + set_has_ident(); + _impl_.kind_.ident_ = ident; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Decl.ident) +} +inline ::google::api::expr::v1beta1::IdentDecl* Decl::_internal_mutable_ident() { + if (!_internal_has_ident()) { + clear_kind(); + set_has_ident(); + _impl_.kind_.ident_ = CreateMaybeMessage< ::google::api::expr::v1beta1::IdentDecl >(GetArenaForAllocation()); + } + return _impl_.kind_.ident_; +} +inline ::google::api::expr::v1beta1::IdentDecl* Decl::mutable_ident() { + ::google::api::expr::v1beta1::IdentDecl* _msg = _internal_mutable_ident(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Decl.ident) + return _msg; +} + +// .google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"]; +inline bool Decl::_internal_has_function() const { + return kind_case() == kFunction; +} +inline bool Decl::has_function() const { + return _internal_has_function(); +} +inline void Decl::set_has_function() { + _impl_._oneof_case_[0] = kFunction; +} +inline void Decl::clear_function() { + if (_internal_has_function()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.function_; + } + clear_has_kind(); + } +} +inline ::google::api::expr::v1beta1::FunctionDecl* Decl::release_function() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Decl.function) + if (_internal_has_function()) { + clear_has_kind(); + ::google::api::expr::v1beta1::FunctionDecl* temp = _impl_.kind_.function_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.function_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1beta1::FunctionDecl& Decl::_internal_function() const { + return _internal_has_function() + ? *_impl_.kind_.function_ + : reinterpret_cast< ::google::api::expr::v1beta1::FunctionDecl&>(::google::api::expr::v1beta1::_FunctionDecl_default_instance_); +} +inline const ::google::api::expr::v1beta1::FunctionDecl& Decl::function() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Decl.function) + return _internal_function(); +} +inline ::google::api::expr::v1beta1::FunctionDecl* Decl::unsafe_arena_release_function() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Decl.function) + if (_internal_has_function()) { + clear_has_kind(); + ::google::api::expr::v1beta1::FunctionDecl* temp = _impl_.kind_.function_; + _impl_.kind_.function_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Decl::unsafe_arena_set_allocated_function(::google::api::expr::v1beta1::FunctionDecl* function) { + clear_kind(); + if (function) { + set_has_function(); + _impl_.kind_.function_ = function; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Decl.function) +} +inline ::google::api::expr::v1beta1::FunctionDecl* Decl::_internal_mutable_function() { + if (!_internal_has_function()) { + clear_kind(); + set_has_function(); + _impl_.kind_.function_ = CreateMaybeMessage< ::google::api::expr::v1beta1::FunctionDecl >(GetArenaForAllocation()); + } + return _impl_.kind_.function_; +} +inline ::google::api::expr::v1beta1::FunctionDecl* Decl::mutable_function() { + ::google::api::expr::v1beta1::FunctionDecl* _msg = _internal_mutable_function(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Decl.function) + return _msg; +} + +inline bool Decl::has_kind() const { + return kind_case() != KIND_NOT_SET; +} +inline void Decl::clear_has_kind() { + _impl_._oneof_case_[0] = KIND_NOT_SET; +} +inline Decl::KindCase Decl::kind_case() const { + return Decl::KindCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// DeclType + +// int32 id = 1 [json_name = "id"]; +inline void DeclType::clear_id() { + _impl_.id_ = 0; +} +inline int32_t DeclType::_internal_id() const { + return _impl_.id_; +} +inline int32_t DeclType::id() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.DeclType.id) + return _internal_id(); +} +inline void DeclType::_internal_set_id(int32_t value) { + + _impl_.id_ = value; +} +inline void DeclType::set_id(int32_t value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.DeclType.id) +} + +// string type = 2 [json_name = "type"]; +inline void DeclType::clear_type() { + _impl_.type_.ClearToEmpty(); +} +inline const std::string& DeclType::type() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.DeclType.type) + return _internal_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DeclType::set_type(ArgT0&& arg0, ArgT... args) { + + _impl_.type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.DeclType.type) +} +inline std::string* DeclType::mutable_type() { + std::string* _s = _internal_mutable_type(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.DeclType.type) + return _s; +} +inline const std::string& DeclType::_internal_type() const { + return _impl_.type_.Get(); +} +inline void DeclType::_internal_set_type(const std::string& value) { + + _impl_.type_.Set(value, GetArenaForAllocation()); +} +inline std::string* DeclType::_internal_mutable_type() { + + return _impl_.type_.Mutable(GetArenaForAllocation()); +} +inline std::string* DeclType::release_type() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.DeclType.type) + return _impl_.type_.Release(); +} +inline void DeclType::set_allocated_type(std::string* type) { + if (type != nullptr) { + + } else { + + } + _impl_.type_.SetAllocated(type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.type_.IsDefault()) { + _impl_.type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.DeclType.type) +} + +// repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"]; +inline int DeclType::_internal_type_params_size() const { + return _impl_.type_params_.size(); +} +inline int DeclType::type_params_size() const { + return _internal_type_params_size(); +} +inline void DeclType::clear_type_params() { + _impl_.type_params_.Clear(); +} +inline ::google::api::expr::v1beta1::DeclType* DeclType::mutable_type_params(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.DeclType.type_params) + return _impl_.type_params_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::DeclType >* +DeclType::mutable_type_params() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.DeclType.type_params) + return &_impl_.type_params_; +} +inline const ::google::api::expr::v1beta1::DeclType& DeclType::_internal_type_params(int index) const { + return _impl_.type_params_.Get(index); +} +inline const ::google::api::expr::v1beta1::DeclType& DeclType::type_params(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.DeclType.type_params) + return _internal_type_params(index); +} +inline ::google::api::expr::v1beta1::DeclType* DeclType::_internal_add_type_params() { + return _impl_.type_params_.Add(); +} +inline ::google::api::expr::v1beta1::DeclType* DeclType::add_type_params() { + ::google::api::expr::v1beta1::DeclType* _add = _internal_add_type_params(); + // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.DeclType.type_params) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::DeclType >& +DeclType::type_params() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.DeclType.type_params) + return _impl_.type_params_; +} + +// ------------------------------------------------------------------- + +// IdentDecl + +// .google.api.expr.v1beta1.DeclType type = 3 [json_name = "type"]; +inline bool IdentDecl::_internal_has_type() const { + return this != internal_default_instance() && _impl_.type_ != nullptr; +} +inline bool IdentDecl::has_type() const { + return _internal_has_type(); +} +inline void IdentDecl::clear_type() { + if (GetArenaForAllocation() == nullptr && _impl_.type_ != nullptr) { + delete _impl_.type_; + } + _impl_.type_ = nullptr; +} +inline const ::google::api::expr::v1beta1::DeclType& IdentDecl::_internal_type() const { + const ::google::api::expr::v1beta1::DeclType* p = _impl_.type_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_DeclType_default_instance_); +} +inline const ::google::api::expr::v1beta1::DeclType& IdentDecl::type() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.IdentDecl.type) + return _internal_type(); +} +inline void IdentDecl::unsafe_arena_set_allocated_type( + ::google::api::expr::v1beta1::DeclType* type) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.type_); + } + _impl_.type_ = type; + if (type) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.IdentDecl.type) +} +inline ::google::api::expr::v1beta1::DeclType* IdentDecl::release_type() { + + ::google::api::expr::v1beta1::DeclType* temp = _impl_.type_; + _impl_.type_ = 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 ::google::api::expr::v1beta1::DeclType* IdentDecl::unsafe_arena_release_type() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.IdentDecl.type) + + ::google::api::expr::v1beta1::DeclType* temp = _impl_.type_; + _impl_.type_ = nullptr; + return temp; +} +inline ::google::api::expr::v1beta1::DeclType* IdentDecl::_internal_mutable_type() { + + if (_impl_.type_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::DeclType>(GetArenaForAllocation()); + _impl_.type_ = p; + } + return _impl_.type_; +} +inline ::google::api::expr::v1beta1::DeclType* IdentDecl::mutable_type() { + ::google::api::expr::v1beta1::DeclType* _msg = _internal_mutable_type(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.IdentDecl.type) + return _msg; +} +inline void IdentDecl::set_allocated_type(::google::api::expr::v1beta1::DeclType* type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.type_; + } + if (type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(type); + if (message_arena != submessage_arena) { + type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, type, submessage_arena); + } + + } else { + + } + _impl_.type_ = type; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.IdentDecl.type) +} + +// .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; +inline bool IdentDecl::_internal_has_value() const { + return this != internal_default_instance() && _impl_.value_ != nullptr; +} +inline bool IdentDecl::has_value() const { + return _internal_has_value(); +} +inline const ::google::api::expr::v1beta1::Expr& IdentDecl::_internal_value() const { + const ::google::api::expr::v1beta1::Expr* p = _impl_.value_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1beta1::Expr& IdentDecl::value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.IdentDecl.value) + return _internal_value(); +} +inline void IdentDecl::unsafe_arena_set_allocated_value( + ::google::api::expr::v1beta1::Expr* value) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.value_); + } + _impl_.value_ = value; + if (value) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.IdentDecl.value) +} +inline ::google::api::expr::v1beta1::Expr* IdentDecl::release_value() { + + ::google::api::expr::v1beta1::Expr* temp = _impl_.value_; + _impl_.value_ = 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 ::google::api::expr::v1beta1::Expr* IdentDecl::unsafe_arena_release_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.IdentDecl.value) + + ::google::api::expr::v1beta1::Expr* temp = _impl_.value_; + _impl_.value_ = nullptr; + return temp; +} +inline ::google::api::expr::v1beta1::Expr* IdentDecl::_internal_mutable_value() { + + if (_impl_.value_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArenaForAllocation()); + _impl_.value_ = p; + } + return _impl_.value_; +} +inline ::google::api::expr::v1beta1::Expr* IdentDecl::mutable_value() { + ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.IdentDecl.value) + return _msg; +} +inline void IdentDecl::set_allocated_value(::google::api::expr::v1beta1::Expr* value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.value_); + } + if (value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value)); + if (message_arena != submessage_arena) { + value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + + } else { + + } + _impl_.value_ = value; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.IdentDecl.value) +} + +// ------------------------------------------------------------------- + +// FunctionDecl + +// repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"]; +inline int FunctionDecl::_internal_args_size() const { + return _impl_.args_.size(); +} +inline int FunctionDecl::args_size() const { + return _internal_args_size(); +} +inline void FunctionDecl::clear_args() { + _impl_.args_.Clear(); +} +inline ::google::api::expr::v1beta1::IdentDecl* FunctionDecl::mutable_args(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.FunctionDecl.args) + return _impl_.args_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::IdentDecl >* +FunctionDecl::mutable_args() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.FunctionDecl.args) + return &_impl_.args_; +} +inline const ::google::api::expr::v1beta1::IdentDecl& FunctionDecl::_internal_args(int index) const { + return _impl_.args_.Get(index); +} +inline const ::google::api::expr::v1beta1::IdentDecl& FunctionDecl::args(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.FunctionDecl.args) + return _internal_args(index); +} +inline ::google::api::expr::v1beta1::IdentDecl* FunctionDecl::_internal_add_args() { + return _impl_.args_.Add(); +} +inline ::google::api::expr::v1beta1::IdentDecl* FunctionDecl::add_args() { + ::google::api::expr::v1beta1::IdentDecl* _add = _internal_add_args(); + // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.FunctionDecl.args) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::IdentDecl >& +FunctionDecl::args() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.FunctionDecl.args) + return _impl_.args_; +} + +// .google.api.expr.v1beta1.DeclType return_type = 2 [json_name = "returnType"]; +inline bool FunctionDecl::_internal_has_return_type() const { + return this != internal_default_instance() && _impl_.return_type_ != nullptr; +} +inline bool FunctionDecl::has_return_type() const { + return _internal_has_return_type(); +} +inline void FunctionDecl::clear_return_type() { + if (GetArenaForAllocation() == nullptr && _impl_.return_type_ != nullptr) { + delete _impl_.return_type_; + } + _impl_.return_type_ = nullptr; +} +inline const ::google::api::expr::v1beta1::DeclType& FunctionDecl::_internal_return_type() const { + const ::google::api::expr::v1beta1::DeclType* p = _impl_.return_type_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_DeclType_default_instance_); +} +inline const ::google::api::expr::v1beta1::DeclType& FunctionDecl::return_type() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.FunctionDecl.return_type) + return _internal_return_type(); +} +inline void FunctionDecl::unsafe_arena_set_allocated_return_type( + ::google::api::expr::v1beta1::DeclType* return_type) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.return_type_); + } + _impl_.return_type_ = return_type; + if (return_type) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.FunctionDecl.return_type) +} +inline ::google::api::expr::v1beta1::DeclType* FunctionDecl::release_return_type() { + + ::google::api::expr::v1beta1::DeclType* temp = _impl_.return_type_; + _impl_.return_type_ = 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 ::google::api::expr::v1beta1::DeclType* FunctionDecl::unsafe_arena_release_return_type() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.FunctionDecl.return_type) + + ::google::api::expr::v1beta1::DeclType* temp = _impl_.return_type_; + _impl_.return_type_ = nullptr; + return temp; +} +inline ::google::api::expr::v1beta1::DeclType* FunctionDecl::_internal_mutable_return_type() { + + if (_impl_.return_type_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::DeclType>(GetArenaForAllocation()); + _impl_.return_type_ = p; + } + return _impl_.return_type_; +} +inline ::google::api::expr::v1beta1::DeclType* FunctionDecl::mutable_return_type() { + ::google::api::expr::v1beta1::DeclType* _msg = _internal_mutable_return_type(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.FunctionDecl.return_type) + return _msg; +} +inline void FunctionDecl::set_allocated_return_type(::google::api::expr::v1beta1::DeclType* return_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.return_type_; + } + if (return_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(return_type); + if (message_arena != submessage_arena) { + return_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, return_type, submessage_arena); + } + + } else { + + } + _impl_.return_type_ = return_type; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.FunctionDecl.return_type) +} + +// bool receiver_function = 3 [json_name = "receiverFunction"]; +inline void FunctionDecl::clear_receiver_function() { + _impl_.receiver_function_ = false; +} +inline bool FunctionDecl::_internal_receiver_function() const { + return _impl_.receiver_function_; +} +inline bool FunctionDecl::receiver_function() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.FunctionDecl.receiver_function) + return _internal_receiver_function(); +} +inline void FunctionDecl::_internal_set_receiver_function(bool value) { + + _impl_.receiver_function_ = value; +} +inline void FunctionDecl::set_receiver_function(bool value) { + _internal_set_receiver_function(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.FunctionDecl.receiver_function) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto diff --git a/src/gen/google/api/expr/v1beta1/eval.grpc.pb.cc b/src/gen/google/api/expr/v1beta1/eval.grpc.pb.cc new file mode 100644 index 000000000..458a0995c --- /dev/null +++ b/src/gen/google/api/expr/v1beta1/eval.grpc.pb.cc @@ -0,0 +1,31 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/expr/v1beta1/eval.proto + +#include "google/api/expr/v1beta1/eval.pb.h" +#include "google/api/expr/v1beta1/eval.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { + +} // namespace google +} // namespace api +} // namespace expr +} // namespace v1beta1 + diff --git a/src/gen/google/api/expr/v1beta1/eval.grpc.pb.h b/src/gen/google/api/expr/v1beta1/eval.grpc.pb.h new file mode 100644 index 000000000..418ae9ea7 --- /dev/null +++ b/src/gen/google/api/expr/v1beta1/eval.grpc.pb.h @@ -0,0 +1,55 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/expr/v1beta1/eval.proto +// Original file comments: +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +#ifndef GRPC_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto__INCLUDED +#define GRPC_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto__INCLUDED + +#include "google/api/expr/v1beta1/eval.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { + +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google + + +#endif // GRPC_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto__INCLUDED diff --git a/src/gen/google/api/expr/v1beta1/eval.pb.cc b/src/gen/google/api/expr/v1beta1/eval.pb.cc new file mode 100644 index 000000000..bf0ba4751 --- /dev/null +++ b/src/gen/google/api/expr/v1beta1/eval.pb.cc @@ -0,0 +1,1629 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/expr/v1beta1/eval.proto + +#include "google/api/expr/v1beta1/eval.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { +PROTOBUF_CONSTEXPR EvalState_Result::EvalState_Result( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.expr_)*/nullptr + , /*decltype(_impl_.value_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct EvalState_ResultDefaultTypeInternal { + PROTOBUF_CONSTEXPR EvalState_ResultDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EvalState_ResultDefaultTypeInternal() {} + union { + EvalState_Result _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EvalState_ResultDefaultTypeInternal _EvalState_Result_default_instance_; +PROTOBUF_CONSTEXPR EvalState::EvalState( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.values_)*/{} + , /*decltype(_impl_.results_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct EvalStateDefaultTypeInternal { + PROTOBUF_CONSTEXPR EvalStateDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EvalStateDefaultTypeInternal() {} + union { + EvalState _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EvalStateDefaultTypeInternal _EvalState_default_instance_; +PROTOBUF_CONSTEXPR ExprValue::ExprValue( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.kind_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct ExprValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR ExprValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ExprValueDefaultTypeInternal() {} + union { + ExprValue _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExprValueDefaultTypeInternal _ExprValue_default_instance_; +PROTOBUF_CONSTEXPR ErrorSet::ErrorSet( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.errors_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ErrorSetDefaultTypeInternal { + PROTOBUF_CONSTEXPR ErrorSetDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ErrorSetDefaultTypeInternal() {} + union { + ErrorSet _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ErrorSetDefaultTypeInternal _ErrorSet_default_instance_; +PROTOBUF_CONSTEXPR UnknownSet::UnknownSet( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.exprs_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct UnknownSetDefaultTypeInternal { + PROTOBUF_CONSTEXPR UnknownSetDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UnknownSetDefaultTypeInternal() {} + union { + UnknownSet _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnknownSetDefaultTypeInternal _UnknownSet_default_instance_; +PROTOBUF_CONSTEXPR IdRef::IdRef( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct IdRefDefaultTypeInternal { + PROTOBUF_CONSTEXPR IdRefDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IdRefDefaultTypeInternal() {} + union { + IdRef _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IdRefDefaultTypeInternal _IdRef_default_instance_; +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google +static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto[6]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EvalState_Result, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EvalState_Result, _impl_.expr_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EvalState_Result, _impl_.value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EvalState, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EvalState, _impl_.values_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EvalState, _impl_.results_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ExprValue, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ExprValue, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ExprValue, _impl_.kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ErrorSet, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ErrorSet, _impl_.errors_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::UnknownSet, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::UnknownSet, _impl_.exprs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::IdRef, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::IdRef, _impl_.id_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::expr::v1beta1::EvalState_Result)}, + { 8, -1, -1, sizeof(::google::api::expr::v1beta1::EvalState)}, + { 16, -1, -1, sizeof(::google::api::expr::v1beta1::ExprValue)}, + { 26, -1, -1, sizeof(::google::api::expr::v1beta1::ErrorSet)}, + { 33, -1, -1, sizeof(::google::api::expr::v1beta1::UnknownSet)}, + { 40, -1, -1, sizeof(::google::api::expr::v1beta1::IdRef)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::google::api::expr::v1beta1::_EvalState_Result_default_instance_._instance, + &::google::api::expr::v1beta1::_EvalState_default_instance_._instance, + &::google::api::expr::v1beta1::_ExprValue_default_instance_._instance, + &::google::api::expr::v1beta1::_ErrorSet_default_instance_._instance, + &::google::api::expr::v1beta1::_UnknownSet_default_instance_._instance, + &::google::api::expr::v1beta1::_IdRef_default_instance_._instance, +}; + +const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\"google/api/expr/v1beta1/eval.proto\022\027go" + "ogle.api.expr.v1beta1\032#google/api/expr/v" + "1beta1/value.proto\032\027google/rpc/status.pr" + "oto\"\340\001\n\tEvalState\022:\n\006values\030\001 \003(\0132\".goog" + "le.api.expr.v1beta1.ExprValueR\006values\022C\n" + "\007results\030\003 \003(\0132).google.api.expr.v1beta1" + ".EvalState.ResultR\007results\032R\n\006Result\0222\n\004" + "expr\030\001 \001(\0132\036.google.api.expr.v1beta1.IdR" + "efR\004expr\022\024\n\005value\030\002 \001(\005R\005value\"\307\001\n\tExprV" + "alue\0226\n\005value\030\001 \001(\0132\036.google.api.expr.v1" + "beta1.ValueH\000R\005value\0229\n\005error\030\002 \001(\0132!.go" + "ogle.api.expr.v1beta1.ErrorSetH\000R\005error\022" + "\?\n\007unknown\030\003 \001(\0132#.google.api.expr.v1bet" + "a1.UnknownSetH\000R\007unknownB\006\n\004kind\"6\n\010Erro" + "rSet\022*\n\006errors\030\001 \003(\0132\022.google.rpc.Status" + "R\006errors\"B\n\nUnknownSet\0224\n\005exprs\030\001 \003(\0132\036." + "google.api.expr.v1beta1.IdRefR\005exprs\"\027\n\005" + "IdRef\022\016\n\002id\030\001 \001(\005R\002idBj\n\033com.google.api." + "expr.v1beta1B\tEvalProtoP\001Z;google.golang" + ".org/genproto/googleapis/api/expr/v1beta" + "1;expr\370\001\001b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_deps[2] = { + &::descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto, + &::descriptor_table_google_2frpc_2fstatus_2eproto, +}; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto = { + false, false, 817, descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto, + "google/api/expr/v1beta1/eval.proto", + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_once, descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_deps, 2, 6, + schemas, file_default_instances, TableStruct_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto::offsets, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto, file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto, + file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_getter() { + return &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto); +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { + +// =================================================================== + +class EvalState_Result::_Internal { + public: + static const ::google::api::expr::v1beta1::IdRef& expr(const EvalState_Result* msg); +}; + +const ::google::api::expr::v1beta1::IdRef& +EvalState_Result::_Internal::expr(const EvalState_Result* msg) { + return *msg->_impl_.expr_; +} +EvalState_Result::EvalState_Result(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.EvalState.Result) +} +EvalState_Result::EvalState_Result(const EvalState_Result& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + EvalState_Result* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.expr_){nullptr} + , decltype(_impl_.value_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_expr()) { + _this->_impl_.expr_ = new ::google::api::expr::v1beta1::IdRef(*from._impl_.expr_); + } + _this->_impl_.value_ = from._impl_.value_; + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.EvalState.Result) +} + +inline void EvalState_Result::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.expr_){nullptr} + , decltype(_impl_.value_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +EvalState_Result::~EvalState_Result() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.EvalState.Result) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void EvalState_Result::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.expr_; +} + +void EvalState_Result::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void EvalState_Result::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.EvalState.Result) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.expr_ != nullptr) { + delete _impl_.expr_; + } + _impl_.expr_ = nullptr; + _impl_.value_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EvalState_Result::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 value = 2 [json_name = "value"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* EvalState_Result::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.EvalState.Result) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"]; + if (this->_internal_has_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::expr(this), + _Internal::expr(this).GetCachedSize(), target, stream); + } + + // int32 value = 2 [json_name = "value"]; + if (this->_internal_value() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_value(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1beta1.EvalState.Result) + return target; +} + +size_t EvalState_Result::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.EvalState.Result) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"]; + if (this->_internal_has_expr()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.expr_); + } + + // int32 value = 2 [json_name = "value"]; + if (this->_internal_value() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_value()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EvalState_Result::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + EvalState_Result::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EvalState_Result::GetClassData() const { return &_class_data_; } + + +void EvalState_Result::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.EvalState.Result) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_expr()) { + _this->_internal_mutable_expr()->::google::api::expr::v1beta1::IdRef::MergeFrom( + from._internal_expr()); + } + if (from._internal_value() != 0) { + _this->_internal_set_value(from._internal_value()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void EvalState_Result::CopyFrom(const EvalState_Result& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.EvalState.Result) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EvalState_Result::IsInitialized() const { + return true; +} + +void EvalState_Result::InternalSwap(EvalState_Result* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(EvalState_Result, _impl_.value_) + + sizeof(EvalState_Result::_impl_.value_) + - PROTOBUF_FIELD_OFFSET(EvalState_Result, _impl_.expr_)>( + reinterpret_cast(&_impl_.expr_), + reinterpret_cast(&other->_impl_.expr_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata EvalState_Result::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto[0]); +} + +// =================================================================== + +class EvalState::_Internal { + public: +}; + +EvalState::EvalState(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.EvalState) +} +EvalState::EvalState(const EvalState& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + EvalState* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.values_){from._impl_.values_} + , decltype(_impl_.results_){from._impl_.results_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.EvalState) +} + +inline void EvalState::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.values_){arena} + , decltype(_impl_.results_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +EvalState::~EvalState() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.EvalState) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void EvalState::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.values_.~RepeatedPtrField(); + _impl_.results_.~RepeatedPtrField(); +} + +void EvalState::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void EvalState::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.EvalState) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.values_.Clear(); + _impl_.results_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EvalState::_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) { + // repeated .google.api.expr.v1beta1.ExprValue values = 1 [json_name = "values"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_values(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1beta1.EvalState.Result results = 3 [json_name = "results"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_results(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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* EvalState::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.EvalState) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.api.expr.v1beta1.ExprValue values = 1 [json_name = "values"]; + for (unsigned i = 0, + n = static_cast(this->_internal_values_size()); i < n; i++) { + const auto& repfield = this->_internal_values(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + // repeated .google.api.expr.v1beta1.EvalState.Result results = 3 [json_name = "results"]; + for (unsigned i = 0, + n = static_cast(this->_internal_results_size()); i < n; i++) { + const auto& repfield = this->_internal_results(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1beta1.EvalState) + return target; +} + +size_t EvalState::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.EvalState) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.expr.v1beta1.ExprValue values = 1 [json_name = "values"]; + total_size += 1UL * this->_internal_values_size(); + for (const auto& msg : this->_impl_.values_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated .google.api.expr.v1beta1.EvalState.Result results = 3 [json_name = "results"]; + total_size += 1UL * this->_internal_results_size(); + for (const auto& msg : this->_impl_.results_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EvalState::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + EvalState::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EvalState::GetClassData() const { return &_class_data_; } + + +void EvalState::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.EvalState) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.values_.MergeFrom(from._impl_.values_); + _this->_impl_.results_.MergeFrom(from._impl_.results_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void EvalState::CopyFrom(const EvalState& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.EvalState) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EvalState::IsInitialized() const { + return true; +} + +void EvalState::InternalSwap(EvalState* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.values_.InternalSwap(&other->_impl_.values_); + _impl_.results_.InternalSwap(&other->_impl_.results_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata EvalState::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto[1]); +} + +// =================================================================== + +class ExprValue::_Internal { + public: + static const ::google::api::expr::v1beta1::Value& value(const ExprValue* msg); + static const ::google::api::expr::v1beta1::ErrorSet& error(const ExprValue* msg); + static const ::google::api::expr::v1beta1::UnknownSet& unknown(const ExprValue* msg); +}; + +const ::google::api::expr::v1beta1::Value& +ExprValue::_Internal::value(const ExprValue* msg) { + return *msg->_impl_.kind_.value_; +} +const ::google::api::expr::v1beta1::ErrorSet& +ExprValue::_Internal::error(const ExprValue* msg) { + return *msg->_impl_.kind_.error_; +} +const ::google::api::expr::v1beta1::UnknownSet& +ExprValue::_Internal::unknown(const ExprValue* msg) { + return *msg->_impl_.kind_.unknown_; +} +void ExprValue::set_allocated_value(::google::api::expr::v1beta1::Value* value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value)); + if (message_arena != submessage_arena) { + value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + set_has_value(); + _impl_.kind_.value_ = value; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.ExprValue.value) +} +void ExprValue::clear_value() { + if (_internal_has_value()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.value_; + } + clear_has_kind(); + } +} +void ExprValue::set_allocated_error(::google::api::expr::v1beta1::ErrorSet* error) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (error) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(error); + if (message_arena != submessage_arena) { + error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + set_has_error(); + _impl_.kind_.error_ = error; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.ExprValue.error) +} +void ExprValue::set_allocated_unknown(::google::api::expr::v1beta1::UnknownSet* unknown) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (unknown) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(unknown); + if (message_arena != submessage_arena) { + unknown = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, unknown, submessage_arena); + } + set_has_unknown(); + _impl_.kind_.unknown_ = unknown; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.ExprValue.unknown) +} +ExprValue::ExprValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.ExprValue) +} +ExprValue::ExprValue(const ExprValue& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ExprValue* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_kind(); + switch (from.kind_case()) { + case kValue: { + _this->_internal_mutable_value()->::google::api::expr::v1beta1::Value::MergeFrom( + from._internal_value()); + break; + } + case kError: { + _this->_internal_mutable_error()->::google::api::expr::v1beta1::ErrorSet::MergeFrom( + from._internal_error()); + break; + } + case kUnknown: { + _this->_internal_mutable_unknown()->::google::api::expr::v1beta1::UnknownSet::MergeFrom( + from._internal_unknown()); + break; + } + case KIND_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.ExprValue) +} + +inline void ExprValue::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_kind(); +} + +ExprValue::~ExprValue() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.ExprValue) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ExprValue::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_kind()) { + clear_kind(); + } +} + +void ExprValue::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ExprValue::clear_kind() { +// @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1beta1.ExprValue) + switch (kind_case()) { + case kValue: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.value_; + } + break; + } + case kError: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.error_; + } + break; + } + case kUnknown: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.unknown_; + } + break; + } + case KIND_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = KIND_NOT_SET; +} + + +void ExprValue::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.ExprValue) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_kind(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ExprValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.api.expr.v1beta1.Value value = 1 [json_name = "value"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.ErrorSet error = 2 [json_name = "error"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_error(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.UnknownSet unknown = 3 [json_name = "unknown"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_unknown(), 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* ExprValue::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.ExprValue) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.api.expr.v1beta1.Value value = 1 [json_name = "value"]; + if (_internal_has_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::value(this), + _Internal::value(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.ErrorSet error = 2 [json_name = "error"]; + if (_internal_has_error()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::error(this), + _Internal::error(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.UnknownSet unknown = 3 [json_name = "unknown"]; + if (_internal_has_unknown()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::unknown(this), + _Internal::unknown(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:google.api.expr.v1beta1.ExprValue) + return target; +} + +size_t ExprValue::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.ExprValue) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (kind_case()) { + // .google.api.expr.v1beta1.Value value = 1 [json_name = "value"]; + case kValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.value_); + break; + } + // .google.api.expr.v1beta1.ErrorSet error = 2 [json_name = "error"]; + case kError: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.error_); + break; + } + // .google.api.expr.v1beta1.UnknownSet unknown = 3 [json_name = "unknown"]; + case kUnknown: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.unknown_); + break; + } + case KIND_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ExprValue::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ExprValue::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ExprValue::GetClassData() const { return &_class_data_; } + + +void ExprValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.ExprValue) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.kind_case()) { + case kValue: { + _this->_internal_mutable_value()->::google::api::expr::v1beta1::Value::MergeFrom( + from._internal_value()); + break; + } + case kError: { + _this->_internal_mutable_error()->::google::api::expr::v1beta1::ErrorSet::MergeFrom( + from._internal_error()); + break; + } + case kUnknown: { + _this->_internal_mutable_unknown()->::google::api::expr::v1beta1::UnknownSet::MergeFrom( + from._internal_unknown()); + break; + } + case KIND_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ExprValue::CopyFrom(const ExprValue& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.ExprValue) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExprValue::IsInitialized() const { + return true; +} + +void ExprValue::InternalSwap(ExprValue* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.kind_, other->_impl_.kind_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ExprValue::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto[2]); +} + +// =================================================================== + +class ErrorSet::_Internal { + public: +}; + +void ErrorSet::clear_errors() { + _impl_.errors_.Clear(); +} +ErrorSet::ErrorSet(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.ErrorSet) +} +ErrorSet::ErrorSet(const ErrorSet& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ErrorSet* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.errors_){from._impl_.errors_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.ErrorSet) +} + +inline void ErrorSet::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.errors_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +ErrorSet::~ErrorSet() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.ErrorSet) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ErrorSet::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.errors_.~RepeatedPtrField(); +} + +void ErrorSet::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ErrorSet::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.ErrorSet) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.errors_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ErrorSet::_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) { + // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_errors(), 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* ErrorSet::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.ErrorSet) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; + for (unsigned i = 0, + n = static_cast(this->_internal_errors_size()); i < n; i++) { + const auto& repfield = this->_internal_errors(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1beta1.ErrorSet) + return target; +} + +size_t ErrorSet::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.ErrorSet) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; + total_size += 1UL * this->_internal_errors_size(); + for (const auto& msg : this->_impl_.errors_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ErrorSet::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ErrorSet::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ErrorSet::GetClassData() const { return &_class_data_; } + + +void ErrorSet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.ErrorSet) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.errors_.MergeFrom(from._impl_.errors_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ErrorSet::CopyFrom(const ErrorSet& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.ErrorSet) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ErrorSet::IsInitialized() const { + return true; +} + +void ErrorSet::InternalSwap(ErrorSet* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.errors_.InternalSwap(&other->_impl_.errors_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ErrorSet::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto[3]); +} + +// =================================================================== + +class UnknownSet::_Internal { + public: +}; + +UnknownSet::UnknownSet(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.UnknownSet) +} +UnknownSet::UnknownSet(const UnknownSet& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + UnknownSet* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.exprs_){from._impl_.exprs_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.UnknownSet) +} + +inline void UnknownSet::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.exprs_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +UnknownSet::~UnknownSet() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.UnknownSet) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void UnknownSet::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.exprs_.~RepeatedPtrField(); +} + +void UnknownSet::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void UnknownSet::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.UnknownSet) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.exprs_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UnknownSet::_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) { + // repeated .google.api.expr.v1beta1.IdRef exprs = 1 [json_name = "exprs"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_exprs(), 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* UnknownSet::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.UnknownSet) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.api.expr.v1beta1.IdRef exprs = 1 [json_name = "exprs"]; + for (unsigned i = 0, + n = static_cast(this->_internal_exprs_size()); i < n; i++) { + const auto& repfield = this->_internal_exprs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1beta1.UnknownSet) + return target; +} + +size_t UnknownSet::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.UnknownSet) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.expr.v1beta1.IdRef exprs = 1 [json_name = "exprs"]; + total_size += 1UL * this->_internal_exprs_size(); + for (const auto& msg : this->_impl_.exprs_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UnknownSet::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + UnknownSet::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UnknownSet::GetClassData() const { return &_class_data_; } + + +void UnknownSet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.UnknownSet) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.exprs_.MergeFrom(from._impl_.exprs_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void UnknownSet::CopyFrom(const UnknownSet& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.UnknownSet) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UnknownSet::IsInitialized() const { + return true; +} + +void UnknownSet::InternalSwap(UnknownSet* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.exprs_.InternalSwap(&other->_impl_.exprs_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UnknownSet::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto[4]); +} + +// =================================================================== + +class IdRef::_Internal { + public: +}; + +IdRef::IdRef(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.IdRef) +} +IdRef::IdRef(const IdRef& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + IdRef* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.id_ = from._impl_.id_; + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.IdRef) +} + +inline void IdRef::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +IdRef::~IdRef() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.IdRef) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void IdRef::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void IdRef::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void IdRef::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.IdRef) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IdRef::_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) { + // int32 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* IdRef::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.IdRef) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int32 id = 1 [json_name = "id"]; + if (this->_internal_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_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:google.api.expr.v1beta1.IdRef) + return target; +} + +size_t IdRef::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.IdRef) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int32 id = 1 [json_name = "id"]; + if (this->_internal_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IdRef::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + IdRef::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IdRef::GetClassData() const { return &_class_data_; } + + +void IdRef::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.IdRef) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_id() != 0) { + _this->_internal_set_id(from._internal_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void IdRef::CopyFrom(const IdRef& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.IdRef) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IdRef::IsInitialized() const { + return true; +} + +void IdRef::InternalSwap(IdRef* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.id_, other->_impl_.id_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata IdRef::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto[5]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::EvalState_Result* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::EvalState_Result >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::EvalState_Result >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::EvalState* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::EvalState >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::EvalState >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::ExprValue* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::ExprValue >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::ExprValue >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::ErrorSet* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::ErrorSet >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::ErrorSet >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::UnknownSet* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::UnknownSet >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::UnknownSet >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::IdRef* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::IdRef >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::IdRef >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/google/api/expr/v1beta1/eval.pb.h b/src/gen/google/api/expr/v1beta1/eval.pb.h new file mode 100644 index 000000000..035b3643e --- /dev/null +++ b/src/gen/google/api/expr/v1beta1/eval.pb.h @@ -0,0 +1,1680 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/expr/v1beta1/eval.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 "google/api/expr/v1beta1/value.pb.h" +#include "google/rpc/status.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto; +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { +class ErrorSet; +struct ErrorSetDefaultTypeInternal; +extern ErrorSetDefaultTypeInternal _ErrorSet_default_instance_; +class EvalState; +struct EvalStateDefaultTypeInternal; +extern EvalStateDefaultTypeInternal _EvalState_default_instance_; +class EvalState_Result; +struct EvalState_ResultDefaultTypeInternal; +extern EvalState_ResultDefaultTypeInternal _EvalState_Result_default_instance_; +class ExprValue; +struct ExprValueDefaultTypeInternal; +extern ExprValueDefaultTypeInternal _ExprValue_default_instance_; +class IdRef; +struct IdRefDefaultTypeInternal; +extern IdRefDefaultTypeInternal _IdRef_default_instance_; +class UnknownSet; +struct UnknownSetDefaultTypeInternal; +extern UnknownSetDefaultTypeInternal _UnknownSet_default_instance_; +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::expr::v1beta1::ErrorSet* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::ErrorSet>(Arena*); +template<> ::google::api::expr::v1beta1::EvalState* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::EvalState>(Arena*); +template<> ::google::api::expr::v1beta1::EvalState_Result* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::EvalState_Result>(Arena*); +template<> ::google::api::expr::v1beta1::ExprValue* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::ExprValue>(Arena*); +template<> ::google::api::expr::v1beta1::IdRef* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::IdRef>(Arena*); +template<> ::google::api::expr::v1beta1::UnknownSet* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::UnknownSet>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { + +// =================================================================== + +class EvalState_Result final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.EvalState.Result) */ { + public: + inline EvalState_Result() : EvalState_Result(nullptr) {} + ~EvalState_Result() override; + explicit PROTOBUF_CONSTEXPR EvalState_Result(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + EvalState_Result(const EvalState_Result& from); + EvalState_Result(EvalState_Result&& from) noexcept + : EvalState_Result() { + *this = ::std::move(from); + } + + inline EvalState_Result& operator=(const EvalState_Result& from) { + CopyFrom(from); + return *this; + } + inline EvalState_Result& operator=(EvalState_Result&& 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 EvalState_Result& default_instance() { + return *internal_default_instance(); + } + static inline const EvalState_Result* internal_default_instance() { + return reinterpret_cast( + &_EvalState_Result_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(EvalState_Result& a, EvalState_Result& b) { + a.Swap(&b); + } + inline void Swap(EvalState_Result* 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(EvalState_Result* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + EvalState_Result* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EvalState_Result& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const EvalState_Result& from) { + EvalState_Result::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EvalState_Result* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.EvalState.Result"; + } + protected: + explicit EvalState_Result(::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 { + kExprFieldNumber = 1, + kValueFieldNumber = 2, + }; + // .google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"]; + bool has_expr() const; + private: + bool _internal_has_expr() const; + public: + void clear_expr(); + const ::google::api::expr::v1beta1::IdRef& expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::IdRef* release_expr(); + ::google::api::expr::v1beta1::IdRef* mutable_expr(); + void set_allocated_expr(::google::api::expr::v1beta1::IdRef* expr); + private: + const ::google::api::expr::v1beta1::IdRef& _internal_expr() const; + ::google::api::expr::v1beta1::IdRef* _internal_mutable_expr(); + public: + void unsafe_arena_set_allocated_expr( + ::google::api::expr::v1beta1::IdRef* expr); + ::google::api::expr::v1beta1::IdRef* unsafe_arena_release_expr(); + + // int32 value = 2 [json_name = "value"]; + void clear_value(); + int32_t value() const; + void set_value(int32_t value); + private: + int32_t _internal_value() const; + void _internal_set_value(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.EvalState.Result) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::api::expr::v1beta1::IdRef* expr_; + int32_t value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto; +}; +// ------------------------------------------------------------------- + +class EvalState final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.EvalState) */ { + public: + inline EvalState() : EvalState(nullptr) {} + ~EvalState() override; + explicit PROTOBUF_CONSTEXPR EvalState(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + EvalState(const EvalState& from); + EvalState(EvalState&& from) noexcept + : EvalState() { + *this = ::std::move(from); + } + + inline EvalState& operator=(const EvalState& from) { + CopyFrom(from); + return *this; + } + inline EvalState& operator=(EvalState&& 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 EvalState& default_instance() { + return *internal_default_instance(); + } + static inline const EvalState* internal_default_instance() { + return reinterpret_cast( + &_EvalState_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(EvalState& a, EvalState& b) { + a.Swap(&b); + } + inline void Swap(EvalState* 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(EvalState* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + EvalState* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EvalState& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const EvalState& from) { + EvalState::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EvalState* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.EvalState"; + } + protected: + explicit EvalState(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef EvalState_Result Result; + + // accessors ------------------------------------------------------- + + enum : int { + kValuesFieldNumber = 1, + kResultsFieldNumber = 3, + }; + // repeated .google.api.expr.v1beta1.ExprValue values = 1 [json_name = "values"]; + int values_size() const; + private: + int _internal_values_size() const; + public: + void clear_values(); + ::google::api::expr::v1beta1::ExprValue* mutable_values(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::ExprValue >* + mutable_values(); + private: + const ::google::api::expr::v1beta1::ExprValue& _internal_values(int index) const; + ::google::api::expr::v1beta1::ExprValue* _internal_add_values(); + public: + const ::google::api::expr::v1beta1::ExprValue& values(int index) const; + ::google::api::expr::v1beta1::ExprValue* add_values(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::ExprValue >& + values() const; + + // repeated .google.api.expr.v1beta1.EvalState.Result results = 3 [json_name = "results"]; + int results_size() const; + private: + int _internal_results_size() const; + public: + void clear_results(); + ::google::api::expr::v1beta1::EvalState_Result* mutable_results(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::EvalState_Result >* + mutable_results(); + private: + const ::google::api::expr::v1beta1::EvalState_Result& _internal_results(int index) const; + ::google::api::expr::v1beta1::EvalState_Result* _internal_add_results(); + public: + const ::google::api::expr::v1beta1::EvalState_Result& results(int index) const; + ::google::api::expr::v1beta1::EvalState_Result* add_results(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::EvalState_Result >& + results() const; + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.EvalState) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::ExprValue > values_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::EvalState_Result > results_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto; +}; +// ------------------------------------------------------------------- + +class ExprValue final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.ExprValue) */ { + public: + inline ExprValue() : ExprValue(nullptr) {} + ~ExprValue() override; + explicit PROTOBUF_CONSTEXPR ExprValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ExprValue(const ExprValue& from); + ExprValue(ExprValue&& from) noexcept + : ExprValue() { + *this = ::std::move(from); + } + + inline ExprValue& operator=(const ExprValue& from) { + CopyFrom(from); + return *this; + } + inline ExprValue& operator=(ExprValue&& 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 ExprValue& default_instance() { + return *internal_default_instance(); + } + enum KindCase { + kValue = 1, + kError = 2, + kUnknown = 3, + KIND_NOT_SET = 0, + }; + + static inline const ExprValue* internal_default_instance() { + return reinterpret_cast( + &_ExprValue_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(ExprValue& a, ExprValue& b) { + a.Swap(&b); + } + inline void Swap(ExprValue* 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(ExprValue* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ExprValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ExprValue& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ExprValue& from) { + ExprValue::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExprValue* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.ExprValue"; + } + protected: + explicit ExprValue(::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 { + kValueFieldNumber = 1, + kErrorFieldNumber = 2, + kUnknownFieldNumber = 3, + }; + // .google.api.expr.v1beta1.Value value = 1 [json_name = "value"]; + bool has_value() const; + private: + bool _internal_has_value() const; + public: + void clear_value(); + const ::google::api::expr::v1beta1::Value& value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Value* release_value(); + ::google::api::expr::v1beta1::Value* mutable_value(); + void set_allocated_value(::google::api::expr::v1beta1::Value* value); + private: + const ::google::api::expr::v1beta1::Value& _internal_value() const; + ::google::api::expr::v1beta1::Value* _internal_mutable_value(); + public: + void unsafe_arena_set_allocated_value( + ::google::api::expr::v1beta1::Value* value); + ::google::api::expr::v1beta1::Value* unsafe_arena_release_value(); + + // .google.api.expr.v1beta1.ErrorSet error = 2 [json_name = "error"]; + bool has_error() const; + private: + bool _internal_has_error() const; + public: + void clear_error(); + const ::google::api::expr::v1beta1::ErrorSet& error() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::ErrorSet* release_error(); + ::google::api::expr::v1beta1::ErrorSet* mutable_error(); + void set_allocated_error(::google::api::expr::v1beta1::ErrorSet* error); + private: + const ::google::api::expr::v1beta1::ErrorSet& _internal_error() const; + ::google::api::expr::v1beta1::ErrorSet* _internal_mutable_error(); + public: + void unsafe_arena_set_allocated_error( + ::google::api::expr::v1beta1::ErrorSet* error); + ::google::api::expr::v1beta1::ErrorSet* unsafe_arena_release_error(); + + // .google.api.expr.v1beta1.UnknownSet unknown = 3 [json_name = "unknown"]; + bool has_unknown() const; + private: + bool _internal_has_unknown() const; + public: + void clear_unknown(); + const ::google::api::expr::v1beta1::UnknownSet& unknown() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::UnknownSet* release_unknown(); + ::google::api::expr::v1beta1::UnknownSet* mutable_unknown(); + void set_allocated_unknown(::google::api::expr::v1beta1::UnknownSet* unknown); + private: + const ::google::api::expr::v1beta1::UnknownSet& _internal_unknown() const; + ::google::api::expr::v1beta1::UnknownSet* _internal_mutable_unknown(); + public: + void unsafe_arena_set_allocated_unknown( + ::google::api::expr::v1beta1::UnknownSet* unknown); + ::google::api::expr::v1beta1::UnknownSet* unsafe_arena_release_unknown(); + + void clear_kind(); + KindCase kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.ExprValue) + private: + class _Internal; + void set_has_value(); + void set_has_error(); + void set_has_unknown(); + + inline bool has_kind() const; + inline void clear_has_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + union KindUnion { + constexpr KindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::google::api::expr::v1beta1::Value* value_; + ::google::api::expr::v1beta1::ErrorSet* error_; + ::google::api::expr::v1beta1::UnknownSet* unknown_; + } kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto; +}; +// ------------------------------------------------------------------- + +class ErrorSet final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.ErrorSet) */ { + public: + inline ErrorSet() : ErrorSet(nullptr) {} + ~ErrorSet() override; + explicit PROTOBUF_CONSTEXPR ErrorSet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ErrorSet(const ErrorSet& from); + ErrorSet(ErrorSet&& from) noexcept + : ErrorSet() { + *this = ::std::move(from); + } + + inline ErrorSet& operator=(const ErrorSet& from) { + CopyFrom(from); + return *this; + } + inline ErrorSet& operator=(ErrorSet&& 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 ErrorSet& default_instance() { + return *internal_default_instance(); + } + static inline const ErrorSet* internal_default_instance() { + return reinterpret_cast( + &_ErrorSet_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(ErrorSet& a, ErrorSet& b) { + a.Swap(&b); + } + inline void Swap(ErrorSet* 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(ErrorSet* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ErrorSet* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ErrorSet& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ErrorSet& from) { + ErrorSet::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ErrorSet* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.ErrorSet"; + } + protected: + explicit ErrorSet(::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 { + kErrorsFieldNumber = 1, + }; + // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; + int errors_size() const; + private: + int _internal_errors_size() const; + public: + void clear_errors(); + ::google::rpc::Status* mutable_errors(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Status >* + mutable_errors(); + private: + const ::google::rpc::Status& _internal_errors(int index) const; + ::google::rpc::Status* _internal_add_errors(); + public: + const ::google::rpc::Status& errors(int index) const; + ::google::rpc::Status* add_errors(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Status >& + errors() const; + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.ErrorSet) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Status > errors_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto; +}; +// ------------------------------------------------------------------- + +class UnknownSet final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.UnknownSet) */ { + public: + inline UnknownSet() : UnknownSet(nullptr) {} + ~UnknownSet() override; + explicit PROTOBUF_CONSTEXPR UnknownSet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UnknownSet(const UnknownSet& from); + UnknownSet(UnknownSet&& from) noexcept + : UnknownSet() { + *this = ::std::move(from); + } + + inline UnknownSet& operator=(const UnknownSet& from) { + CopyFrom(from); + return *this; + } + inline UnknownSet& operator=(UnknownSet&& 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 UnknownSet& default_instance() { + return *internal_default_instance(); + } + static inline const UnknownSet* internal_default_instance() { + return reinterpret_cast( + &_UnknownSet_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(UnknownSet& a, UnknownSet& b) { + a.Swap(&b); + } + inline void Swap(UnknownSet* 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(UnknownSet* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UnknownSet* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UnknownSet& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const UnknownSet& from) { + UnknownSet::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UnknownSet* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.UnknownSet"; + } + protected: + explicit UnknownSet(::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 { + kExprsFieldNumber = 1, + }; + // repeated .google.api.expr.v1beta1.IdRef exprs = 1 [json_name = "exprs"]; + int exprs_size() const; + private: + int _internal_exprs_size() const; + public: + void clear_exprs(); + ::google::api::expr::v1beta1::IdRef* mutable_exprs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::IdRef >* + mutable_exprs(); + private: + const ::google::api::expr::v1beta1::IdRef& _internal_exprs(int index) const; + ::google::api::expr::v1beta1::IdRef* _internal_add_exprs(); + public: + const ::google::api::expr::v1beta1::IdRef& exprs(int index) const; + ::google::api::expr::v1beta1::IdRef* add_exprs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::IdRef >& + exprs() const; + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.UnknownSet) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::IdRef > exprs_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto; +}; +// ------------------------------------------------------------------- + +class IdRef final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.IdRef) */ { + public: + inline IdRef() : IdRef(nullptr) {} + ~IdRef() override; + explicit PROTOBUF_CONSTEXPR IdRef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + IdRef(const IdRef& from); + IdRef(IdRef&& from) noexcept + : IdRef() { + *this = ::std::move(from); + } + + inline IdRef& operator=(const IdRef& from) { + CopyFrom(from); + return *this; + } + inline IdRef& operator=(IdRef&& 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 IdRef& default_instance() { + return *internal_default_instance(); + } + static inline const IdRef* internal_default_instance() { + return reinterpret_cast( + &_IdRef_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(IdRef& a, IdRef& b) { + a.Swap(&b); + } + inline void Swap(IdRef* 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(IdRef* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + IdRef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IdRef& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const IdRef& from) { + IdRef::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IdRef* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.IdRef"; + } + protected: + explicit IdRef(::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 { + kIdFieldNumber = 1, + }; + // int32 id = 1 [json_name = "id"]; + void clear_id(); + int32_t id() const; + void set_id(int32_t value); + private: + int32_t _internal_id() const; + void _internal_set_id(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.IdRef) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + int32_t id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// EvalState_Result + +// .google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"]; +inline bool EvalState_Result::_internal_has_expr() const { + return this != internal_default_instance() && _impl_.expr_ != nullptr; +} +inline bool EvalState_Result::has_expr() const { + return _internal_has_expr(); +} +inline void EvalState_Result::clear_expr() { + if (GetArenaForAllocation() == nullptr && _impl_.expr_ != nullptr) { + delete _impl_.expr_; + } + _impl_.expr_ = nullptr; +} +inline const ::google::api::expr::v1beta1::IdRef& EvalState_Result::_internal_expr() const { + const ::google::api::expr::v1beta1::IdRef* p = _impl_.expr_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_IdRef_default_instance_); +} +inline const ::google::api::expr::v1beta1::IdRef& EvalState_Result::expr() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.EvalState.Result.expr) + return _internal_expr(); +} +inline void EvalState_Result::unsafe_arena_set_allocated_expr( + ::google::api::expr::v1beta1::IdRef* expr) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.expr_); + } + _impl_.expr_ = expr; + if (expr) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.EvalState.Result.expr) +} +inline ::google::api::expr::v1beta1::IdRef* EvalState_Result::release_expr() { + + ::google::api::expr::v1beta1::IdRef* temp = _impl_.expr_; + _impl_.expr_ = 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 ::google::api::expr::v1beta1::IdRef* EvalState_Result::unsafe_arena_release_expr() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.EvalState.Result.expr) + + ::google::api::expr::v1beta1::IdRef* temp = _impl_.expr_; + _impl_.expr_ = nullptr; + return temp; +} +inline ::google::api::expr::v1beta1::IdRef* EvalState_Result::_internal_mutable_expr() { + + if (_impl_.expr_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::IdRef>(GetArenaForAllocation()); + _impl_.expr_ = p; + } + return _impl_.expr_; +} +inline ::google::api::expr::v1beta1::IdRef* EvalState_Result::mutable_expr() { + ::google::api::expr::v1beta1::IdRef* _msg = _internal_mutable_expr(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.EvalState.Result.expr) + return _msg; +} +inline void EvalState_Result::set_allocated_expr(::google::api::expr::v1beta1::IdRef* expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.expr_; + } + if (expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(expr); + if (message_arena != submessage_arena) { + expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, expr, submessage_arena); + } + + } else { + + } + _impl_.expr_ = expr; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.EvalState.Result.expr) +} + +// int32 value = 2 [json_name = "value"]; +inline void EvalState_Result::clear_value() { + _impl_.value_ = 0; +} +inline int32_t EvalState_Result::_internal_value() const { + return _impl_.value_; +} +inline int32_t EvalState_Result::value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.EvalState.Result.value) + return _internal_value(); +} +inline void EvalState_Result::_internal_set_value(int32_t value) { + + _impl_.value_ = value; +} +inline void EvalState_Result::set_value(int32_t value) { + _internal_set_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.EvalState.Result.value) +} + +// ------------------------------------------------------------------- + +// EvalState + +// repeated .google.api.expr.v1beta1.ExprValue values = 1 [json_name = "values"]; +inline int EvalState::_internal_values_size() const { + return _impl_.values_.size(); +} +inline int EvalState::values_size() const { + return _internal_values_size(); +} +inline void EvalState::clear_values() { + _impl_.values_.Clear(); +} +inline ::google::api::expr::v1beta1::ExprValue* EvalState::mutable_values(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.EvalState.values) + return _impl_.values_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::ExprValue >* +EvalState::mutable_values() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.EvalState.values) + return &_impl_.values_; +} +inline const ::google::api::expr::v1beta1::ExprValue& EvalState::_internal_values(int index) const { + return _impl_.values_.Get(index); +} +inline const ::google::api::expr::v1beta1::ExprValue& EvalState::values(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.EvalState.values) + return _internal_values(index); +} +inline ::google::api::expr::v1beta1::ExprValue* EvalState::_internal_add_values() { + return _impl_.values_.Add(); +} +inline ::google::api::expr::v1beta1::ExprValue* EvalState::add_values() { + ::google::api::expr::v1beta1::ExprValue* _add = _internal_add_values(); + // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.EvalState.values) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::ExprValue >& +EvalState::values() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.EvalState.values) + return _impl_.values_; +} + +// repeated .google.api.expr.v1beta1.EvalState.Result results = 3 [json_name = "results"]; +inline int EvalState::_internal_results_size() const { + return _impl_.results_.size(); +} +inline int EvalState::results_size() const { + return _internal_results_size(); +} +inline void EvalState::clear_results() { + _impl_.results_.Clear(); +} +inline ::google::api::expr::v1beta1::EvalState_Result* EvalState::mutable_results(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.EvalState.results) + return _impl_.results_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::EvalState_Result >* +EvalState::mutable_results() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.EvalState.results) + return &_impl_.results_; +} +inline const ::google::api::expr::v1beta1::EvalState_Result& EvalState::_internal_results(int index) const { + return _impl_.results_.Get(index); +} +inline const ::google::api::expr::v1beta1::EvalState_Result& EvalState::results(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.EvalState.results) + return _internal_results(index); +} +inline ::google::api::expr::v1beta1::EvalState_Result* EvalState::_internal_add_results() { + return _impl_.results_.Add(); +} +inline ::google::api::expr::v1beta1::EvalState_Result* EvalState::add_results() { + ::google::api::expr::v1beta1::EvalState_Result* _add = _internal_add_results(); + // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.EvalState.results) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::EvalState_Result >& +EvalState::results() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.EvalState.results) + return _impl_.results_; +} + +// ------------------------------------------------------------------- + +// ExprValue + +// .google.api.expr.v1beta1.Value value = 1 [json_name = "value"]; +inline bool ExprValue::_internal_has_value() const { + return kind_case() == kValue; +} +inline bool ExprValue::has_value() const { + return _internal_has_value(); +} +inline void ExprValue::set_has_value() { + _impl_._oneof_case_[0] = kValue; +} +inline ::google::api::expr::v1beta1::Value* ExprValue::release_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.ExprValue.value) + if (_internal_has_value()) { + clear_has_kind(); + ::google::api::expr::v1beta1::Value* temp = _impl_.kind_.value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1beta1::Value& ExprValue::_internal_value() const { + return _internal_has_value() + ? *_impl_.kind_.value_ + : reinterpret_cast< ::google::api::expr::v1beta1::Value&>(::google::api::expr::v1beta1::_Value_default_instance_); +} +inline const ::google::api::expr::v1beta1::Value& ExprValue::value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.ExprValue.value) + return _internal_value(); +} +inline ::google::api::expr::v1beta1::Value* ExprValue::unsafe_arena_release_value() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.ExprValue.value) + if (_internal_has_value()) { + clear_has_kind(); + ::google::api::expr::v1beta1::Value* temp = _impl_.kind_.value_; + _impl_.kind_.value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ExprValue::unsafe_arena_set_allocated_value(::google::api::expr::v1beta1::Value* value) { + clear_kind(); + if (value) { + set_has_value(); + _impl_.kind_.value_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.ExprValue.value) +} +inline ::google::api::expr::v1beta1::Value* ExprValue::_internal_mutable_value() { + if (!_internal_has_value()) { + clear_kind(); + set_has_value(); + _impl_.kind_.value_ = CreateMaybeMessage< ::google::api::expr::v1beta1::Value >(GetArenaForAllocation()); + } + return _impl_.kind_.value_; +} +inline ::google::api::expr::v1beta1::Value* ExprValue::mutable_value() { + ::google::api::expr::v1beta1::Value* _msg = _internal_mutable_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.ExprValue.value) + return _msg; +} + +// .google.api.expr.v1beta1.ErrorSet error = 2 [json_name = "error"]; +inline bool ExprValue::_internal_has_error() const { + return kind_case() == kError; +} +inline bool ExprValue::has_error() const { + return _internal_has_error(); +} +inline void ExprValue::set_has_error() { + _impl_._oneof_case_[0] = kError; +} +inline void ExprValue::clear_error() { + if (_internal_has_error()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.error_; + } + clear_has_kind(); + } +} +inline ::google::api::expr::v1beta1::ErrorSet* ExprValue::release_error() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.ExprValue.error) + if (_internal_has_error()) { + clear_has_kind(); + ::google::api::expr::v1beta1::ErrorSet* temp = _impl_.kind_.error_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.error_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1beta1::ErrorSet& ExprValue::_internal_error() const { + return _internal_has_error() + ? *_impl_.kind_.error_ + : reinterpret_cast< ::google::api::expr::v1beta1::ErrorSet&>(::google::api::expr::v1beta1::_ErrorSet_default_instance_); +} +inline const ::google::api::expr::v1beta1::ErrorSet& ExprValue::error() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.ExprValue.error) + return _internal_error(); +} +inline ::google::api::expr::v1beta1::ErrorSet* ExprValue::unsafe_arena_release_error() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.ExprValue.error) + if (_internal_has_error()) { + clear_has_kind(); + ::google::api::expr::v1beta1::ErrorSet* temp = _impl_.kind_.error_; + _impl_.kind_.error_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ExprValue::unsafe_arena_set_allocated_error(::google::api::expr::v1beta1::ErrorSet* error) { + clear_kind(); + if (error) { + set_has_error(); + _impl_.kind_.error_ = error; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.ExprValue.error) +} +inline ::google::api::expr::v1beta1::ErrorSet* ExprValue::_internal_mutable_error() { + if (!_internal_has_error()) { + clear_kind(); + set_has_error(); + _impl_.kind_.error_ = CreateMaybeMessage< ::google::api::expr::v1beta1::ErrorSet >(GetArenaForAllocation()); + } + return _impl_.kind_.error_; +} +inline ::google::api::expr::v1beta1::ErrorSet* ExprValue::mutable_error() { + ::google::api::expr::v1beta1::ErrorSet* _msg = _internal_mutable_error(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.ExprValue.error) + return _msg; +} + +// .google.api.expr.v1beta1.UnknownSet unknown = 3 [json_name = "unknown"]; +inline bool ExprValue::_internal_has_unknown() const { + return kind_case() == kUnknown; +} +inline bool ExprValue::has_unknown() const { + return _internal_has_unknown(); +} +inline void ExprValue::set_has_unknown() { + _impl_._oneof_case_[0] = kUnknown; +} +inline void ExprValue::clear_unknown() { + if (_internal_has_unknown()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.unknown_; + } + clear_has_kind(); + } +} +inline ::google::api::expr::v1beta1::UnknownSet* ExprValue::release_unknown() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.ExprValue.unknown) + if (_internal_has_unknown()) { + clear_has_kind(); + ::google::api::expr::v1beta1::UnknownSet* temp = _impl_.kind_.unknown_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.unknown_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1beta1::UnknownSet& ExprValue::_internal_unknown() const { + return _internal_has_unknown() + ? *_impl_.kind_.unknown_ + : reinterpret_cast< ::google::api::expr::v1beta1::UnknownSet&>(::google::api::expr::v1beta1::_UnknownSet_default_instance_); +} +inline const ::google::api::expr::v1beta1::UnknownSet& ExprValue::unknown() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.ExprValue.unknown) + return _internal_unknown(); +} +inline ::google::api::expr::v1beta1::UnknownSet* ExprValue::unsafe_arena_release_unknown() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.ExprValue.unknown) + if (_internal_has_unknown()) { + clear_has_kind(); + ::google::api::expr::v1beta1::UnknownSet* temp = _impl_.kind_.unknown_; + _impl_.kind_.unknown_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ExprValue::unsafe_arena_set_allocated_unknown(::google::api::expr::v1beta1::UnknownSet* unknown) { + clear_kind(); + if (unknown) { + set_has_unknown(); + _impl_.kind_.unknown_ = unknown; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.ExprValue.unknown) +} +inline ::google::api::expr::v1beta1::UnknownSet* ExprValue::_internal_mutable_unknown() { + if (!_internal_has_unknown()) { + clear_kind(); + set_has_unknown(); + _impl_.kind_.unknown_ = CreateMaybeMessage< ::google::api::expr::v1beta1::UnknownSet >(GetArenaForAllocation()); + } + return _impl_.kind_.unknown_; +} +inline ::google::api::expr::v1beta1::UnknownSet* ExprValue::mutable_unknown() { + ::google::api::expr::v1beta1::UnknownSet* _msg = _internal_mutable_unknown(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.ExprValue.unknown) + return _msg; +} + +inline bool ExprValue::has_kind() const { + return kind_case() != KIND_NOT_SET; +} +inline void ExprValue::clear_has_kind() { + _impl_._oneof_case_[0] = KIND_NOT_SET; +} +inline ExprValue::KindCase ExprValue::kind_case() const { + return ExprValue::KindCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ErrorSet + +// repeated .google.rpc.Status errors = 1 [json_name = "errors"]; +inline int ErrorSet::_internal_errors_size() const { + return _impl_.errors_.size(); +} +inline int ErrorSet::errors_size() const { + return _internal_errors_size(); +} +inline ::google::rpc::Status* ErrorSet::mutable_errors(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.ErrorSet.errors) + return _impl_.errors_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Status >* +ErrorSet::mutable_errors() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.ErrorSet.errors) + return &_impl_.errors_; +} +inline const ::google::rpc::Status& ErrorSet::_internal_errors(int index) const { + return _impl_.errors_.Get(index); +} +inline const ::google::rpc::Status& ErrorSet::errors(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.ErrorSet.errors) + return _internal_errors(index); +} +inline ::google::rpc::Status* ErrorSet::_internal_add_errors() { + return _impl_.errors_.Add(); +} +inline ::google::rpc::Status* ErrorSet::add_errors() { + ::google::rpc::Status* _add = _internal_add_errors(); + // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.ErrorSet.errors) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Status >& +ErrorSet::errors() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.ErrorSet.errors) + return _impl_.errors_; +} + +// ------------------------------------------------------------------- + +// UnknownSet + +// repeated .google.api.expr.v1beta1.IdRef exprs = 1 [json_name = "exprs"]; +inline int UnknownSet::_internal_exprs_size() const { + return _impl_.exprs_.size(); +} +inline int UnknownSet::exprs_size() const { + return _internal_exprs_size(); +} +inline void UnknownSet::clear_exprs() { + _impl_.exprs_.Clear(); +} +inline ::google::api::expr::v1beta1::IdRef* UnknownSet::mutable_exprs(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.UnknownSet.exprs) + return _impl_.exprs_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::IdRef >* +UnknownSet::mutable_exprs() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.UnknownSet.exprs) + return &_impl_.exprs_; +} +inline const ::google::api::expr::v1beta1::IdRef& UnknownSet::_internal_exprs(int index) const { + return _impl_.exprs_.Get(index); +} +inline const ::google::api::expr::v1beta1::IdRef& UnknownSet::exprs(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.UnknownSet.exprs) + return _internal_exprs(index); +} +inline ::google::api::expr::v1beta1::IdRef* UnknownSet::_internal_add_exprs() { + return _impl_.exprs_.Add(); +} +inline ::google::api::expr::v1beta1::IdRef* UnknownSet::add_exprs() { + ::google::api::expr::v1beta1::IdRef* _add = _internal_add_exprs(); + // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.UnknownSet.exprs) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::IdRef >& +UnknownSet::exprs() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.UnknownSet.exprs) + return _impl_.exprs_; +} + +// ------------------------------------------------------------------- + +// IdRef + +// int32 id = 1 [json_name = "id"]; +inline void IdRef::clear_id() { + _impl_.id_ = 0; +} +inline int32_t IdRef::_internal_id() const { + return _impl_.id_; +} +inline int32_t IdRef::id() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.IdRef.id) + return _internal_id(); +} +inline void IdRef::_internal_set_id(int32_t value) { + + _impl_.id_ = value; +} +inline void IdRef::set_id(int32_t value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.IdRef.id) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto diff --git a/src/gen/google/api/expr/v1beta1/expr.grpc.pb.cc b/src/gen/google/api/expr/v1beta1/expr.grpc.pb.cc new file mode 100644 index 000000000..a422ae259 --- /dev/null +++ b/src/gen/google/api/expr/v1beta1/expr.grpc.pb.cc @@ -0,0 +1,31 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/expr/v1beta1/expr.proto + +#include "google/api/expr/v1beta1/expr.pb.h" +#include "google/api/expr/v1beta1/expr.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { + +} // namespace google +} // namespace api +} // namespace expr +} // namespace v1beta1 + diff --git a/src/gen/google/api/expr/v1beta1/expr.grpc.pb.h b/src/gen/google/api/expr/v1beta1/expr.grpc.pb.h new file mode 100644 index 000000000..c1cb88914 --- /dev/null +++ b/src/gen/google/api/expr/v1beta1/expr.grpc.pb.h @@ -0,0 +1,55 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/expr/v1beta1/expr.proto +// Original file comments: +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +#ifndef GRPC_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto__INCLUDED +#define GRPC_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto__INCLUDED + +#include "google/api/expr/v1beta1/expr.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { + +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google + + +#endif // GRPC_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto__INCLUDED diff --git a/src/gen/google/api/expr/v1beta1/expr.pb.cc b/src/gen/google/api/expr/v1beta1/expr.pb.cc new file mode 100644 index 000000000..0b85a7b60 --- /dev/null +++ b/src/gen/google/api/expr/v1beta1/expr.pb.cc @@ -0,0 +1,3790 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/expr/v1beta1/expr.proto + +#include "google/api/expr/v1beta1/expr.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { +PROTOBUF_CONSTEXPR ParsedExpr::ParsedExpr( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.syntax_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.expr_)*/nullptr + , /*decltype(_impl_.source_info_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ParsedExprDefaultTypeInternal { + PROTOBUF_CONSTEXPR ParsedExprDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ParsedExprDefaultTypeInternal() {} + union { + ParsedExpr _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ParsedExprDefaultTypeInternal _ParsedExpr_default_instance_; +PROTOBUF_CONSTEXPR Expr_Ident::Expr_Ident( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Expr_IdentDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_IdentDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_IdentDefaultTypeInternal() {} + union { + Expr_Ident _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_IdentDefaultTypeInternal _Expr_Ident_default_instance_; +PROTOBUF_CONSTEXPR Expr_Select::Expr_Select( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.field_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.operand_)*/nullptr + , /*decltype(_impl_.test_only_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Expr_SelectDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_SelectDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_SelectDefaultTypeInternal() {} + union { + Expr_Select _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_SelectDefaultTypeInternal _Expr_Select_default_instance_; +PROTOBUF_CONSTEXPR Expr_Call::Expr_Call( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.args_)*/{} + , /*decltype(_impl_.function_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.target_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Expr_CallDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_CallDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_CallDefaultTypeInternal() {} + union { + Expr_Call _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CallDefaultTypeInternal _Expr_Call_default_instance_; +PROTOBUF_CONSTEXPR Expr_CreateList::Expr_CreateList( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.elements_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Expr_CreateListDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_CreateListDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_CreateListDefaultTypeInternal() {} + union { + Expr_CreateList _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CreateListDefaultTypeInternal _Expr_CreateList_default_instance_; +PROTOBUF_CONSTEXPR Expr_CreateStruct_Entry::Expr_CreateStruct_Entry( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.value_)*/nullptr + , /*decltype(_impl_.id_)*/0 + , /*decltype(_impl_.key_kind_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct Expr_CreateStruct_EntryDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_CreateStruct_EntryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_CreateStruct_EntryDefaultTypeInternal() {} + union { + Expr_CreateStruct_Entry _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CreateStruct_EntryDefaultTypeInternal _Expr_CreateStruct_Entry_default_instance_; +PROTOBUF_CONSTEXPR Expr_CreateStruct::Expr_CreateStruct( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.entries_)*/{} + , /*decltype(_impl_.type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Expr_CreateStructDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_CreateStructDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_CreateStructDefaultTypeInternal() {} + union { + Expr_CreateStruct _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CreateStructDefaultTypeInternal _Expr_CreateStruct_default_instance_; +PROTOBUF_CONSTEXPR Expr_Comprehension::Expr_Comprehension( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.iter_var_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.accu_var_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.iter_range_)*/nullptr + , /*decltype(_impl_.accu_init_)*/nullptr + , /*decltype(_impl_.loop_condition_)*/nullptr + , /*decltype(_impl_.loop_step_)*/nullptr + , /*decltype(_impl_.result_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Expr_ComprehensionDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_ComprehensionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_ComprehensionDefaultTypeInternal() {} + union { + Expr_Comprehension _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_ComprehensionDefaultTypeInternal _Expr_Comprehension_default_instance_; +PROTOBUF_CONSTEXPR Expr::Expr( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/0 + , /*decltype(_impl_.expr_kind_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct ExprDefaultTypeInternal { + PROTOBUF_CONSTEXPR ExprDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ExprDefaultTypeInternal() {} + union { + Expr _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExprDefaultTypeInternal _Expr_default_instance_; +PROTOBUF_CONSTEXPR Literal::Literal( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.constant_kind_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct LiteralDefaultTypeInternal { + PROTOBUF_CONSTEXPR LiteralDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LiteralDefaultTypeInternal() {} + union { + Literal _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LiteralDefaultTypeInternal _Literal_default_instance_; +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google +static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[10]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ParsedExpr, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ParsedExpr, _impl_.expr_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ParsedExpr, _impl_.source_info_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ParsedExpr, _impl_.syntax_version_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Ident, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Ident, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Select, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Select, _impl_.operand_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Select, _impl_.field_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Select, _impl_.test_only_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Call, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Call, _impl_.target_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Call, _impl_.function_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Call, _impl_.args_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateList, _impl_.elements_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct_Entry, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct_Entry, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct_Entry, _impl_.id_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct_Entry, _impl_.value_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct_Entry, _impl_.key_kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct, _impl_.entries_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, _impl_.iter_var_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, _impl_.iter_range_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, _impl_.accu_var_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, _impl_.accu_init_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, _impl_.loop_condition_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, _impl_.loop_step_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, _impl_.result_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr, _impl_.id_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr, _impl_.expr_kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Literal, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Literal, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Literal, _impl_.constant_kind_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::expr::v1beta1::ParsedExpr)}, + { 9, -1, -1, sizeof(::google::api::expr::v1beta1::Expr_Ident)}, + { 16, -1, -1, sizeof(::google::api::expr::v1beta1::Expr_Select)}, + { 25, -1, -1, sizeof(::google::api::expr::v1beta1::Expr_Call)}, + { 34, -1, -1, sizeof(::google::api::expr::v1beta1::Expr_CreateList)}, + { 41, -1, -1, sizeof(::google::api::expr::v1beta1::Expr_CreateStruct_Entry)}, + { 52, -1, -1, sizeof(::google::api::expr::v1beta1::Expr_CreateStruct)}, + { 60, -1, -1, sizeof(::google::api::expr::v1beta1::Expr_Comprehension)}, + { 73, -1, -1, sizeof(::google::api::expr::v1beta1::Expr)}, + { 88, -1, -1, sizeof(::google::api::expr::v1beta1::Literal)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::google::api::expr::v1beta1::_ParsedExpr_default_instance_._instance, + &::google::api::expr::v1beta1::_Expr_Ident_default_instance_._instance, + &::google::api::expr::v1beta1::_Expr_Select_default_instance_._instance, + &::google::api::expr::v1beta1::_Expr_Call_default_instance_._instance, + &::google::api::expr::v1beta1::_Expr_CreateList_default_instance_._instance, + &::google::api::expr::v1beta1::_Expr_CreateStruct_Entry_default_instance_._instance, + &::google::api::expr::v1beta1::_Expr_CreateStruct_default_instance_._instance, + &::google::api::expr::v1beta1::_Expr_Comprehension_default_instance_._instance, + &::google::api::expr::v1beta1::_Expr_default_instance_._instance, + &::google::api::expr::v1beta1::_Literal_default_instance_._instance, +}; + +const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\"google/api/expr/v1beta1/expr.proto\022\027go" + "ogle.api.expr.v1beta1\032$google/api/expr/v" + "1beta1/source.proto\032\034google/protobuf/str" + "uct.proto\"\254\001\n\nParsedExpr\0221\n\004expr\030\002 \001(\0132\035" + ".google.api.expr.v1beta1.ExprR\004expr\022D\n\013s" + "ource_info\030\003 \001(\0132#.google.api.expr.v1bet" + "a1.SourceInfoR\nsourceInfo\022%\n\016syntax_vers" + "ion\030\004 \001(\tR\rsyntaxVersion\"\275\014\n\004Expr\022\016\n\002id\030" + "\002 \001(\005R\002id\022E\n\014literal_expr\030\003 \001(\0132 .google" + ".api.expr.v1beta1.LiteralH\000R\013literalExpr" + "\022D\n\nident_expr\030\004 \001(\0132#.google.api.expr.v" + "1beta1.Expr.IdentH\000R\tidentExpr\022G\n\013select" + "_expr\030\005 \001(\0132$.google.api.expr.v1beta1.Ex" + "pr.SelectH\000R\nselectExpr\022A\n\tcall_expr\030\006 \001" + "(\0132\".google.api.expr.v1beta1.Expr.CallH\000" + "R\010callExpr\022G\n\tlist_expr\030\007 \001(\0132(.google.a" + "pi.expr.v1beta1.Expr.CreateListH\000R\010listE" + "xpr\022M\n\013struct_expr\030\010 \001(\0132*.google.api.ex" + "pr.v1beta1.Expr.CreateStructH\000R\nstructEx" + "pr\022\\\n\022comprehension_expr\030\t \001(\0132+.google." + "api.expr.v1beta1.Expr.ComprehensionH\000R\021c" + "omprehensionExpr\032\033\n\005Ident\022\022\n\004name\030\001 \001(\tR" + "\004name\032t\n\006Select\0227\n\007operand\030\001 \001(\0132\035.googl" + "e.api.expr.v1beta1.ExprR\007operand\022\024\n\005fiel" + "d\030\002 \001(\tR\005field\022\033\n\ttest_only\030\003 \001(\010R\010testO" + "nly\032\214\001\n\004Call\0225\n\006target\030\001 \001(\0132\035.google.ap" + "i.expr.v1beta1.ExprR\006target\022\032\n\010function\030" + "\002 \001(\tR\010function\0221\n\004args\030\003 \003(\0132\035.google.a" + "pi.expr.v1beta1.ExprR\004args\032G\n\nCreateList" + "\0229\n\010elements\030\001 \003(\0132\035.google.api.expr.v1b" + "eta1.ExprR\010elements\032\242\002\n\014CreateStruct\022\022\n\004" + "type\030\001 \001(\tR\004type\022J\n\007entries\030\002 \003(\01320.goog" + "le.api.expr.v1beta1.Expr.CreateStruct.En" + "tryR\007entries\032\261\001\n\005Entry\022\016\n\002id\030\001 \001(\005R\002id\022\035" + "\n\tfield_key\030\002 \001(\tH\000R\010fieldKey\0228\n\007map_key" + "\030\003 \001(\0132\035.google.api.expr.v1beta1.ExprH\000R" + "\006mapKey\0223\n\005value\030\004 \001(\0132\035.google.api.expr" + ".v1beta1.ExprR\005valueB\n\n\010key_kind\032\370\002\n\rCom" + "prehension\022\031\n\010iter_var\030\001 \001(\tR\007iterVar\022<\n" + "\niter_range\030\002 \001(\0132\035.google.api.expr.v1be" + "ta1.ExprR\titerRange\022\031\n\010accu_var\030\003 \001(\tR\007a" + "ccuVar\022:\n\taccu_init\030\004 \001(\0132\035.google.api.e" + "xpr.v1beta1.ExprR\010accuInit\022D\n\016loop_condi" + "tion\030\005 \001(\0132\035.google.api.expr.v1beta1.Exp" + "rR\rloopCondition\022:\n\tloop_step\030\006 \001(\0132\035.go" + "ogle.api.expr.v1beta1.ExprR\010loopStep\0225\n\006" + "result\030\007 \001(\0132\035.google.api.expr.v1beta1.E" + "xprR\006resultB\013\n\texpr_kind\"\255\002\n\007Literal\022;\n\n" + "null_value\030\001 \001(\0162\032.google.protobuf.NullV" + "alueH\000R\tnullValue\022\037\n\nbool_value\030\002 \001(\010H\000R" + "\tboolValue\022!\n\013int64_value\030\003 \001(\003H\000R\nint64" + "Value\022#\n\014uint64_value\030\004 \001(\004H\000R\013uint64Val" + "ue\022#\n\014double_value\030\005 \001(\001H\000R\013doubleValue\022" + "#\n\014string_value\030\006 \001(\tH\000R\013stringValue\022!\n\013" + "bytes_value\030\007 \001(\014H\000R\nbytesValueB\017\n\rconst" + "ant_kindBj\n\033com.google.api.expr.v1beta1B" + "\tExprProtoP\001Z;google.golang.org/genproto" + "/googleapis/api/expr/v1beta1;expr\370\001\001b\006pr" + "oto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_deps[2] = { + &::descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, +}; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto = { + false, false, 2324, descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto, + "google/api/expr/v1beta1/expr.proto", + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_deps, 2, 10, + schemas, file_default_instances, TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto::offsets, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto, file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto, + file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter() { + return &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto); +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { + +// =================================================================== + +class ParsedExpr::_Internal { + public: + static const ::google::api::expr::v1beta1::Expr& expr(const ParsedExpr* msg); + static const ::google::api::expr::v1beta1::SourceInfo& source_info(const ParsedExpr* msg); +}; + +const ::google::api::expr::v1beta1::Expr& +ParsedExpr::_Internal::expr(const ParsedExpr* msg) { + return *msg->_impl_.expr_; +} +const ::google::api::expr::v1beta1::SourceInfo& +ParsedExpr::_Internal::source_info(const ParsedExpr* msg) { + return *msg->_impl_.source_info_; +} +void ParsedExpr::clear_source_info() { + if (GetArenaForAllocation() == nullptr && _impl_.source_info_ != nullptr) { + delete _impl_.source_info_; + } + _impl_.source_info_ = nullptr; +} +ParsedExpr::ParsedExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.ParsedExpr) +} +ParsedExpr::ParsedExpr(const ParsedExpr& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ParsedExpr* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.syntax_version_){} + , decltype(_impl_.expr_){nullptr} + , decltype(_impl_.source_info_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.syntax_version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.syntax_version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_syntax_version().empty()) { + _this->_impl_.syntax_version_.Set(from._internal_syntax_version(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_expr()) { + _this->_impl_.expr_ = new ::google::api::expr::v1beta1::Expr(*from._impl_.expr_); + } + if (from._internal_has_source_info()) { + _this->_impl_.source_info_ = new ::google::api::expr::v1beta1::SourceInfo(*from._impl_.source_info_); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.ParsedExpr) +} + +inline void ParsedExpr::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.syntax_version_){} + , decltype(_impl_.expr_){nullptr} + , decltype(_impl_.source_info_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.syntax_version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.syntax_version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ParsedExpr::~ParsedExpr() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.ParsedExpr) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ParsedExpr::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.syntax_version_.Destroy(); + if (this != internal_default_instance()) delete _impl_.expr_; + if (this != internal_default_instance()) delete _impl_.source_info_; +} + +void ParsedExpr::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ParsedExpr::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.ParsedExpr) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.syntax_version_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.expr_ != nullptr) { + delete _impl_.expr_; + } + _impl_.expr_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.source_info_ != nullptr) { + delete _impl_.source_info_; + } + _impl_.source_info_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ParsedExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.api.expr.v1beta1.Expr expr = 2 [json_name = "expr"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_source_info(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string syntax_version = 4 [json_name = "syntaxVersion"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_syntax_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.ParsedExpr.syntax_version")); + } 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* ParsedExpr::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.ParsedExpr) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.api.expr.v1beta1.Expr expr = 2 [json_name = "expr"]; + if (this->_internal_has_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::expr(this), + _Internal::expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; + if (this->_internal_has_source_info()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::source_info(this), + _Internal::source_info(this).GetCachedSize(), target, stream); + } + + // string syntax_version = 4 [json_name = "syntaxVersion"]; + if (!this->_internal_syntax_version().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_syntax_version().data(), static_cast(this->_internal_syntax_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.ParsedExpr.syntax_version"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_syntax_version(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1beta1.ParsedExpr) + return target; +} + +size_t ParsedExpr::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.ParsedExpr) + 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 syntax_version = 4 [json_name = "syntaxVersion"]; + if (!this->_internal_syntax_version().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_syntax_version()); + } + + // .google.api.expr.v1beta1.Expr expr = 2 [json_name = "expr"]; + if (this->_internal_has_expr()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.expr_); + } + + // .google.api.expr.v1beta1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; + if (this->_internal_has_source_info()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.source_info_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ParsedExpr::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ParsedExpr::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ParsedExpr::GetClassData() const { return &_class_data_; } + + +void ParsedExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.ParsedExpr) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_syntax_version().empty()) { + _this->_internal_set_syntax_version(from._internal_syntax_version()); + } + if (from._internal_has_expr()) { + _this->_internal_mutable_expr()->::google::api::expr::v1beta1::Expr::MergeFrom( + from._internal_expr()); + } + if (from._internal_has_source_info()) { + _this->_internal_mutable_source_info()->::google::api::expr::v1beta1::SourceInfo::MergeFrom( + from._internal_source_info()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ParsedExpr::CopyFrom(const ParsedExpr& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.ParsedExpr) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ParsedExpr::IsInitialized() const { + return true; +} + +void ParsedExpr::InternalSwap(ParsedExpr* 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( + &_impl_.syntax_version_, lhs_arena, + &other->_impl_.syntax_version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_.source_info_) + + sizeof(ParsedExpr::_impl_.source_info_) + - PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_.expr_)>( + reinterpret_cast(&_impl_.expr_), + reinterpret_cast(&other->_impl_.expr_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ParsedExpr::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[0]); +} + +// =================================================================== + +class Expr_Ident::_Internal { + public: +}; + +Expr_Ident::Expr_Ident(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Expr.Ident) +} +Expr_Ident::Expr_Ident(const Expr_Ident& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Expr_Ident* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Expr.Ident) +} + +inline void Expr_Ident::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Expr_Ident::~Expr_Ident() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Expr.Ident) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Expr_Ident::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void Expr_Ident::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Expr_Ident::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Expr.Ident) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_Ident::_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, "google.api.expr.v1beta1.Expr.Ident.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* Expr_Ident::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Expr.Ident) + 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, + "google.api.expr.v1beta1.Expr.Ident.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1beta1.Expr.Ident) + return target; +} + +size_t Expr_Ident::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Expr.Ident) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_Ident::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Expr_Ident::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_Ident::GetClassData() const { return &_class_data_; } + + +void Expr_Ident::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr.Ident) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Expr_Ident::CopyFrom(const Expr_Ident& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.Expr.Ident) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Expr_Ident::IsInitialized() const { + return true; +} + +void Expr_Ident::InternalSwap(Expr_Ident* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr_Ident::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[1]); +} + +// =================================================================== + +class Expr_Select::_Internal { + public: + static const ::google::api::expr::v1beta1::Expr& operand(const Expr_Select* msg); +}; + +const ::google::api::expr::v1beta1::Expr& +Expr_Select::_Internal::operand(const Expr_Select* msg) { + return *msg->_impl_.operand_; +} +Expr_Select::Expr_Select(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Expr.Select) +} +Expr_Select::Expr_Select(const Expr_Select& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Expr_Select* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.field_){} + , decltype(_impl_.operand_){nullptr} + , decltype(_impl_.test_only_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.field_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.field_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_field().empty()) { + _this->_impl_.field_.Set(from._internal_field(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_operand()) { + _this->_impl_.operand_ = new ::google::api::expr::v1beta1::Expr(*from._impl_.operand_); + } + _this->_impl_.test_only_ = from._impl_.test_only_; + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Expr.Select) +} + +inline void Expr_Select::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.field_){} + , decltype(_impl_.operand_){nullptr} + , decltype(_impl_.test_only_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.field_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.field_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Expr_Select::~Expr_Select() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Expr.Select) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Expr_Select::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.field_.Destroy(); + if (this != internal_default_instance()) delete _impl_.operand_; +} + +void Expr_Select::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Expr_Select::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Expr.Select) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.field_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.operand_ != nullptr) { + delete _impl_.operand_; + } + _impl_.operand_ = nullptr; + _impl_.test_only_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_Select::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_operand(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string field = 2 [json_name = "field"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_field(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Expr.Select.field")); + } else + goto handle_unusual; + continue; + // bool test_only = 3 [json_name = "testOnly"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.test_only_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* Expr_Select::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Expr.Select) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"]; + if (this->_internal_has_operand()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::operand(this), + _Internal::operand(this).GetCachedSize(), target, stream); + } + + // string field = 2 [json_name = "field"]; + if (!this->_internal_field().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_field().data(), static_cast(this->_internal_field().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Expr.Select.field"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_field(), target); + } + + // bool test_only = 3 [json_name = "testOnly"]; + if (this->_internal_test_only() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_test_only(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1beta1.Expr.Select) + return target; +} + +size_t Expr_Select::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Expr.Select) + 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 field = 2 [json_name = "field"]; + if (!this->_internal_field().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_field()); + } + + // .google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"]; + if (this->_internal_has_operand()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.operand_); + } + + // bool test_only = 3 [json_name = "testOnly"]; + if (this->_internal_test_only() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_Select::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Expr_Select::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_Select::GetClassData() const { return &_class_data_; } + + +void Expr_Select::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr.Select) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_field().empty()) { + _this->_internal_set_field(from._internal_field()); + } + if (from._internal_has_operand()) { + _this->_internal_mutable_operand()->::google::api::expr::v1beta1::Expr::MergeFrom( + from._internal_operand()); + } + if (from._internal_test_only() != 0) { + _this->_internal_set_test_only(from._internal_test_only()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Expr_Select::CopyFrom(const Expr_Select& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.Expr.Select) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Expr_Select::IsInitialized() const { + return true; +} + +void Expr_Select::InternalSwap(Expr_Select* 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( + &_impl_.field_, lhs_arena, + &other->_impl_.field_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_.test_only_) + + sizeof(Expr_Select::_impl_.test_only_) + - PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_.operand_)>( + reinterpret_cast(&_impl_.operand_), + reinterpret_cast(&other->_impl_.operand_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr_Select::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[2]); +} + +// =================================================================== + +class Expr_Call::_Internal { + public: + static const ::google::api::expr::v1beta1::Expr& target(const Expr_Call* msg); +}; + +const ::google::api::expr::v1beta1::Expr& +Expr_Call::_Internal::target(const Expr_Call* msg) { + return *msg->_impl_.target_; +} +Expr_Call::Expr_Call(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Expr.Call) +} +Expr_Call::Expr_Call(const Expr_Call& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Expr_Call* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.args_){from._impl_.args_} + , decltype(_impl_.function_){} + , decltype(_impl_.target_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.function_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.function_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_function().empty()) { + _this->_impl_.function_.Set(from._internal_function(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_target()) { + _this->_impl_.target_ = new ::google::api::expr::v1beta1::Expr(*from._impl_.target_); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Expr.Call) +} + +inline void Expr_Call::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.args_){arena} + , decltype(_impl_.function_){} + , decltype(_impl_.target_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.function_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.function_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Expr_Call::~Expr_Call() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Expr.Call) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Expr_Call::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.args_.~RepeatedPtrField(); + _impl_.function_.Destroy(); + if (this != internal_default_instance()) delete _impl_.target_; +} + +void Expr_Call::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Expr_Call::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Expr.Call) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.args_.Clear(); + _impl_.function_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.target_ != nullptr) { + delete _impl_.target_; + } + _impl_.target_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_Call::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.api.expr.v1beta1.Expr target = 1 [json_name = "target"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_target(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string function = 2 [json_name = "function"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_function(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Expr.Call.function")); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1beta1.Expr args = 3 [json_name = "args"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_args(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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* Expr_Call::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Expr.Call) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.api.expr.v1beta1.Expr target = 1 [json_name = "target"]; + if (this->_internal_has_target()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::target(this), + _Internal::target(this).GetCachedSize(), target, stream); + } + + // string function = 2 [json_name = "function"]; + if (!this->_internal_function().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_function().data(), static_cast(this->_internal_function().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Expr.Call.function"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_function(), target); + } + + // repeated .google.api.expr.v1beta1.Expr args = 3 [json_name = "args"]; + for (unsigned i = 0, + n = static_cast(this->_internal_args_size()); i < n; i++) { + const auto& repfield = this->_internal_args(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1beta1.Expr.Call) + return target; +} + +size_t Expr_Call::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Expr.Call) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.expr.v1beta1.Expr args = 3 [json_name = "args"]; + total_size += 1UL * this->_internal_args_size(); + for (const auto& msg : this->_impl_.args_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string function = 2 [json_name = "function"]; + if (!this->_internal_function().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_function()); + } + + // .google.api.expr.v1beta1.Expr target = 1 [json_name = "target"]; + if (this->_internal_has_target()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.target_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_Call::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Expr_Call::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_Call::GetClassData() const { return &_class_data_; } + + +void Expr_Call::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr.Call) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.args_.MergeFrom(from._impl_.args_); + if (!from._internal_function().empty()) { + _this->_internal_set_function(from._internal_function()); + } + if (from._internal_has_target()) { + _this->_internal_mutable_target()->::google::api::expr::v1beta1::Expr::MergeFrom( + from._internal_target()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Expr_Call::CopyFrom(const Expr_Call& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.Expr.Call) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Expr_Call::IsInitialized() const { + return true; +} + +void Expr_Call::InternalSwap(Expr_Call* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.args_.InternalSwap(&other->_impl_.args_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.function_, lhs_arena, + &other->_impl_.function_, rhs_arena + ); + swap(_impl_.target_, other->_impl_.target_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr_Call::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[3]); +} + +// =================================================================== + +class Expr_CreateList::_Internal { + public: +}; + +Expr_CreateList::Expr_CreateList(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Expr.CreateList) +} +Expr_CreateList::Expr_CreateList(const Expr_CreateList& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Expr_CreateList* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.elements_){from._impl_.elements_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Expr.CreateList) +} + +inline void Expr_CreateList::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.elements_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Expr_CreateList::~Expr_CreateList() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Expr.CreateList) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Expr_CreateList::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.elements_.~RepeatedPtrField(); +} + +void Expr_CreateList::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Expr_CreateList::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Expr.CreateList) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.elements_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_CreateList::_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) { + // repeated .google.api.expr.v1beta1.Expr elements = 1 [json_name = "elements"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_elements(), 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* Expr_CreateList::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Expr.CreateList) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.api.expr.v1beta1.Expr elements = 1 [json_name = "elements"]; + for (unsigned i = 0, + n = static_cast(this->_internal_elements_size()); i < n; i++) { + const auto& repfield = this->_internal_elements(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1beta1.Expr.CreateList) + return target; +} + +size_t Expr_CreateList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Expr.CreateList) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.expr.v1beta1.Expr elements = 1 [json_name = "elements"]; + total_size += 1UL * this->_internal_elements_size(); + for (const auto& msg : this->_impl_.elements_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_CreateList::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Expr_CreateList::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_CreateList::GetClassData() const { return &_class_data_; } + + +void Expr_CreateList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr.CreateList) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.elements_.MergeFrom(from._impl_.elements_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Expr_CreateList::CopyFrom(const Expr_CreateList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.Expr.CreateList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Expr_CreateList::IsInitialized() const { + return true; +} + +void Expr_CreateList::InternalSwap(Expr_CreateList* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.elements_.InternalSwap(&other->_impl_.elements_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr_CreateList::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[4]); +} + +// =================================================================== + +class Expr_CreateStruct_Entry::_Internal { + public: + static const ::google::api::expr::v1beta1::Expr& map_key(const Expr_CreateStruct_Entry* msg); + static const ::google::api::expr::v1beta1::Expr& value(const Expr_CreateStruct_Entry* msg); +}; + +const ::google::api::expr::v1beta1::Expr& +Expr_CreateStruct_Entry::_Internal::map_key(const Expr_CreateStruct_Entry* msg) { + return *msg->_impl_.key_kind_.map_key_; +} +const ::google::api::expr::v1beta1::Expr& +Expr_CreateStruct_Entry::_Internal::value(const Expr_CreateStruct_Entry* msg) { + return *msg->_impl_.value_; +} +void Expr_CreateStruct_Entry::set_allocated_map_key(::google::api::expr::v1beta1::Expr* map_key) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_key_kind(); + if (map_key) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(map_key); + if (message_arena != submessage_arena) { + map_key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, map_key, submessage_arena); + } + set_has_map_key(); + _impl_.key_kind_.map_key_ = map_key; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.CreateStruct.Entry.map_key) +} +Expr_CreateStruct_Entry::Expr_CreateStruct_Entry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Expr.CreateStruct.Entry) +} +Expr_CreateStruct_Entry::Expr_CreateStruct_Entry(const Expr_CreateStruct_Entry& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Expr_CreateStruct_Entry* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.value_){nullptr} + , decltype(_impl_.id_){} + , decltype(_impl_.key_kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_value()) { + _this->_impl_.value_ = new ::google::api::expr::v1beta1::Expr(*from._impl_.value_); + } + _this->_impl_.id_ = from._impl_.id_; + clear_has_key_kind(); + switch (from.key_kind_case()) { + case kFieldKey: { + _this->_internal_set_field_key(from._internal_field_key()); + break; + } + case kMapKey: { + _this->_internal_mutable_map_key()->::google::api::expr::v1beta1::Expr::MergeFrom( + from._internal_map_key()); + break; + } + case KEY_KIND_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Expr.CreateStruct.Entry) +} + +inline void Expr_CreateStruct_Entry::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.value_){nullptr} + , decltype(_impl_.id_){0} + , decltype(_impl_.key_kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_key_kind(); +} + +Expr_CreateStruct_Entry::~Expr_CreateStruct_Entry() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Expr.CreateStruct.Entry) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Expr_CreateStruct_Entry::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.value_; + if (has_key_kind()) { + clear_key_kind(); + } +} + +void Expr_CreateStruct_Entry::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Expr_CreateStruct_Entry::clear_key_kind() { +// @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1beta1.Expr.CreateStruct.Entry) + switch (key_kind_case()) { + case kFieldKey: { + _impl_.key_kind_.field_key_.Destroy(); + break; + } + case kMapKey: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.key_kind_.map_key_; + } + break; + } + case KEY_KIND_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = KEY_KIND_NOT_SET; +} + + +void Expr_CreateStruct_Entry::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Expr.CreateStruct.Entry) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.value_ != nullptr) { + delete _impl_.value_; + } + _impl_.value_ = nullptr; + _impl_.id_ = 0; + clear_key_kind(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_CreateStruct_Entry::_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) { + // int32 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string field_key = 2 [json_name = "fieldKey"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_field_key(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Expr.CreateStruct.Entry.field_key")); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr map_key = 3 [json_name = "mapKey"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_map_key(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_value(), 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* Expr_CreateStruct_Entry::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Expr.CreateStruct.Entry) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int32 id = 1 [json_name = "id"]; + if (this->_internal_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_id(), target); + } + + // string field_key = 2 [json_name = "fieldKey"]; + if (_internal_has_field_key()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_field_key().data(), static_cast(this->_internal_field_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Expr.CreateStruct.Entry.field_key"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_field_key(), target); + } + + // .google.api.expr.v1beta1.Expr map_key = 3 [json_name = "mapKey"]; + if (_internal_has_map_key()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::map_key(this), + _Internal::map_key(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; + if (this->_internal_has_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::value(this), + _Internal::value(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:google.api.expr.v1beta1.Expr.CreateStruct.Entry) + return target; +} + +size_t Expr_CreateStruct_Entry::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Expr.CreateStruct.Entry) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; + if (this->_internal_has_value()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.value_); + } + + // int32 id = 1 [json_name = "id"]; + if (this->_internal_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_id()); + } + + switch (key_kind_case()) { + // string field_key = 2 [json_name = "fieldKey"]; + case kFieldKey: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_field_key()); + break; + } + // .google.api.expr.v1beta1.Expr map_key = 3 [json_name = "mapKey"]; + case kMapKey: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.key_kind_.map_key_); + break; + } + case KEY_KIND_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_CreateStruct_Entry::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Expr_CreateStruct_Entry::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_CreateStruct_Entry::GetClassData() const { return &_class_data_; } + + +void Expr_CreateStruct_Entry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr.CreateStruct.Entry) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_value()) { + _this->_internal_mutable_value()->::google::api::expr::v1beta1::Expr::MergeFrom( + from._internal_value()); + } + if (from._internal_id() != 0) { + _this->_internal_set_id(from._internal_id()); + } + switch (from.key_kind_case()) { + case kFieldKey: { + _this->_internal_set_field_key(from._internal_field_key()); + break; + } + case kMapKey: { + _this->_internal_mutable_map_key()->::google::api::expr::v1beta1::Expr::MergeFrom( + from._internal_map_key()); + break; + } + case KEY_KIND_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Expr_CreateStruct_Entry::CopyFrom(const Expr_CreateStruct_Entry& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.Expr.CreateStruct.Entry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Expr_CreateStruct_Entry::IsInitialized() const { + return true; +} + +void Expr_CreateStruct_Entry::InternalSwap(Expr_CreateStruct_Entry* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.id_) + + sizeof(Expr_CreateStruct_Entry::_impl_.id_) + - PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.value_)>( + reinterpret_cast(&_impl_.value_), + reinterpret_cast(&other->_impl_.value_)); + swap(_impl_.key_kind_, other->_impl_.key_kind_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr_CreateStruct_Entry::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[5]); +} + +// =================================================================== + +class Expr_CreateStruct::_Internal { + public: +}; + +Expr_CreateStruct::Expr_CreateStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Expr.CreateStruct) +} +Expr_CreateStruct::Expr_CreateStruct(const Expr_CreateStruct& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Expr_CreateStruct* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.entries_){from._impl_.entries_} + , decltype(_impl_.type_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_type().empty()) { + _this->_impl_.type_.Set(from._internal_type(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Expr.CreateStruct) +} + +inline void Expr_CreateStruct::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.entries_){arena} + , decltype(_impl_.type_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Expr_CreateStruct::~Expr_CreateStruct() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Expr.CreateStruct) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Expr_CreateStruct::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.entries_.~RepeatedPtrField(); + _impl_.type_.Destroy(); +} + +void Expr_CreateStruct::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Expr_CreateStruct::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Expr.CreateStruct) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.entries_.Clear(); + _impl_.type_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_CreateStruct::_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 type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Expr.CreateStruct.type")); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_entries(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* Expr_CreateStruct::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Expr.CreateStruct) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string type = 1 [json_name = "type"]; + if (!this->_internal_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Expr.CreateStruct.type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_type(), target); + } + + // repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; + for (unsigned i = 0, + n = static_cast(this->_internal_entries_size()); i < n; i++) { + const auto& repfield = this->_internal_entries(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1beta1.Expr.CreateStruct) + return target; +} + +size_t Expr_CreateStruct::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Expr.CreateStruct) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; + total_size += 1UL * this->_internal_entries_size(); + for (const auto& msg : this->_impl_.entries_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string type = 1 [json_name = "type"]; + if (!this->_internal_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_CreateStruct::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Expr_CreateStruct::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_CreateStruct::GetClassData() const { return &_class_data_; } + + +void Expr_CreateStruct::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr.CreateStruct) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.entries_.MergeFrom(from._impl_.entries_); + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Expr_CreateStruct::CopyFrom(const Expr_CreateStruct& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.Expr.CreateStruct) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Expr_CreateStruct::IsInitialized() const { + return true; +} + +void Expr_CreateStruct::InternalSwap(Expr_CreateStruct* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.entries_.InternalSwap(&other->_impl_.entries_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.type_, lhs_arena, + &other->_impl_.type_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr_CreateStruct::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[6]); +} + +// =================================================================== + +class Expr_Comprehension::_Internal { + public: + static const ::google::api::expr::v1beta1::Expr& iter_range(const Expr_Comprehension* msg); + static const ::google::api::expr::v1beta1::Expr& accu_init(const Expr_Comprehension* msg); + static const ::google::api::expr::v1beta1::Expr& loop_condition(const Expr_Comprehension* msg); + static const ::google::api::expr::v1beta1::Expr& loop_step(const Expr_Comprehension* msg); + static const ::google::api::expr::v1beta1::Expr& result(const Expr_Comprehension* msg); +}; + +const ::google::api::expr::v1beta1::Expr& +Expr_Comprehension::_Internal::iter_range(const Expr_Comprehension* msg) { + return *msg->_impl_.iter_range_; +} +const ::google::api::expr::v1beta1::Expr& +Expr_Comprehension::_Internal::accu_init(const Expr_Comprehension* msg) { + return *msg->_impl_.accu_init_; +} +const ::google::api::expr::v1beta1::Expr& +Expr_Comprehension::_Internal::loop_condition(const Expr_Comprehension* msg) { + return *msg->_impl_.loop_condition_; +} +const ::google::api::expr::v1beta1::Expr& +Expr_Comprehension::_Internal::loop_step(const Expr_Comprehension* msg) { + return *msg->_impl_.loop_step_; +} +const ::google::api::expr::v1beta1::Expr& +Expr_Comprehension::_Internal::result(const Expr_Comprehension* msg) { + return *msg->_impl_.result_; +} +Expr_Comprehension::Expr_Comprehension(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Expr.Comprehension) +} +Expr_Comprehension::Expr_Comprehension(const Expr_Comprehension& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Expr_Comprehension* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.iter_var_){} + , decltype(_impl_.accu_var_){} + , decltype(_impl_.iter_range_){nullptr} + , decltype(_impl_.accu_init_){nullptr} + , decltype(_impl_.loop_condition_){nullptr} + , decltype(_impl_.loop_step_){nullptr} + , decltype(_impl_.result_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.iter_var_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.iter_var_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_iter_var().empty()) { + _this->_impl_.iter_var_.Set(from._internal_iter_var(), + _this->GetArenaForAllocation()); + } + _impl_.accu_var_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.accu_var_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_accu_var().empty()) { + _this->_impl_.accu_var_.Set(from._internal_accu_var(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_iter_range()) { + _this->_impl_.iter_range_ = new ::google::api::expr::v1beta1::Expr(*from._impl_.iter_range_); + } + if (from._internal_has_accu_init()) { + _this->_impl_.accu_init_ = new ::google::api::expr::v1beta1::Expr(*from._impl_.accu_init_); + } + if (from._internal_has_loop_condition()) { + _this->_impl_.loop_condition_ = new ::google::api::expr::v1beta1::Expr(*from._impl_.loop_condition_); + } + if (from._internal_has_loop_step()) { + _this->_impl_.loop_step_ = new ::google::api::expr::v1beta1::Expr(*from._impl_.loop_step_); + } + if (from._internal_has_result()) { + _this->_impl_.result_ = new ::google::api::expr::v1beta1::Expr(*from._impl_.result_); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Expr.Comprehension) +} + +inline void Expr_Comprehension::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.iter_var_){} + , decltype(_impl_.accu_var_){} + , decltype(_impl_.iter_range_){nullptr} + , decltype(_impl_.accu_init_){nullptr} + , decltype(_impl_.loop_condition_){nullptr} + , decltype(_impl_.loop_step_){nullptr} + , decltype(_impl_.result_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.iter_var_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.iter_var_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.accu_var_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.accu_var_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Expr_Comprehension::~Expr_Comprehension() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Expr.Comprehension) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Expr_Comprehension::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.iter_var_.Destroy(); + _impl_.accu_var_.Destroy(); + if (this != internal_default_instance()) delete _impl_.iter_range_; + if (this != internal_default_instance()) delete _impl_.accu_init_; + if (this != internal_default_instance()) delete _impl_.loop_condition_; + if (this != internal_default_instance()) delete _impl_.loop_step_; + if (this != internal_default_instance()) delete _impl_.result_; +} + +void Expr_Comprehension::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Expr_Comprehension::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Expr.Comprehension) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.iter_var_.ClearToEmpty(); + _impl_.accu_var_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.iter_range_ != nullptr) { + delete _impl_.iter_range_; + } + _impl_.iter_range_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.accu_init_ != nullptr) { + delete _impl_.accu_init_; + } + _impl_.accu_init_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.loop_condition_ != nullptr) { + delete _impl_.loop_condition_; + } + _impl_.loop_condition_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.loop_step_ != nullptr) { + delete _impl_.loop_step_; + } + _impl_.loop_step_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.result_ != nullptr) { + delete _impl_.result_; + } + _impl_.result_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_Comprehension::_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 iter_var = 1 [json_name = "iterVar"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_iter_var(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Expr.Comprehension.iter_var")); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr iter_range = 2 [json_name = "iterRange"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_iter_range(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string accu_var = 3 [json_name = "accuVar"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_accu_var(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Expr.Comprehension.accu_var")); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr accu_init = 4 [json_name = "accuInit"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_accu_init(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr loop_condition = 5 [json_name = "loopCondition"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_loop_condition(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr loop_step = 6 [json_name = "loopStep"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_loop_step(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr result = 7 [json_name = "result"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_result(), 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* Expr_Comprehension::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Expr.Comprehension) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string iter_var = 1 [json_name = "iterVar"]; + if (!this->_internal_iter_var().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_iter_var().data(), static_cast(this->_internal_iter_var().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Expr.Comprehension.iter_var"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_iter_var(), target); + } + + // .google.api.expr.v1beta1.Expr iter_range = 2 [json_name = "iterRange"]; + if (this->_internal_has_iter_range()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::iter_range(this), + _Internal::iter_range(this).GetCachedSize(), target, stream); + } + + // string accu_var = 3 [json_name = "accuVar"]; + if (!this->_internal_accu_var().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_accu_var().data(), static_cast(this->_internal_accu_var().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Expr.Comprehension.accu_var"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_accu_var(), target); + } + + // .google.api.expr.v1beta1.Expr accu_init = 4 [json_name = "accuInit"]; + if (this->_internal_has_accu_init()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::accu_init(this), + _Internal::accu_init(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.Expr loop_condition = 5 [json_name = "loopCondition"]; + if (this->_internal_has_loop_condition()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::loop_condition(this), + _Internal::loop_condition(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.Expr loop_step = 6 [json_name = "loopStep"]; + if (this->_internal_has_loop_step()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::loop_step(this), + _Internal::loop_step(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.Expr result = 7 [json_name = "result"]; + if (this->_internal_has_result()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::result(this), + _Internal::result(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:google.api.expr.v1beta1.Expr.Comprehension) + return target; +} + +size_t Expr_Comprehension::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Expr.Comprehension) + 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 iter_var = 1 [json_name = "iterVar"]; + if (!this->_internal_iter_var().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_iter_var()); + } + + // string accu_var = 3 [json_name = "accuVar"]; + if (!this->_internal_accu_var().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_accu_var()); + } + + // .google.api.expr.v1beta1.Expr iter_range = 2 [json_name = "iterRange"]; + if (this->_internal_has_iter_range()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.iter_range_); + } + + // .google.api.expr.v1beta1.Expr accu_init = 4 [json_name = "accuInit"]; + if (this->_internal_has_accu_init()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.accu_init_); + } + + // .google.api.expr.v1beta1.Expr loop_condition = 5 [json_name = "loopCondition"]; + if (this->_internal_has_loop_condition()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.loop_condition_); + } + + // .google.api.expr.v1beta1.Expr loop_step = 6 [json_name = "loopStep"]; + if (this->_internal_has_loop_step()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.loop_step_); + } + + // .google.api.expr.v1beta1.Expr result = 7 [json_name = "result"]; + if (this->_internal_has_result()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.result_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_Comprehension::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Expr_Comprehension::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_Comprehension::GetClassData() const { return &_class_data_; } + + +void Expr_Comprehension::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr.Comprehension) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_iter_var().empty()) { + _this->_internal_set_iter_var(from._internal_iter_var()); + } + if (!from._internal_accu_var().empty()) { + _this->_internal_set_accu_var(from._internal_accu_var()); + } + if (from._internal_has_iter_range()) { + _this->_internal_mutable_iter_range()->::google::api::expr::v1beta1::Expr::MergeFrom( + from._internal_iter_range()); + } + if (from._internal_has_accu_init()) { + _this->_internal_mutable_accu_init()->::google::api::expr::v1beta1::Expr::MergeFrom( + from._internal_accu_init()); + } + if (from._internal_has_loop_condition()) { + _this->_internal_mutable_loop_condition()->::google::api::expr::v1beta1::Expr::MergeFrom( + from._internal_loop_condition()); + } + if (from._internal_has_loop_step()) { + _this->_internal_mutable_loop_step()->::google::api::expr::v1beta1::Expr::MergeFrom( + from._internal_loop_step()); + } + if (from._internal_has_result()) { + _this->_internal_mutable_result()->::google::api::expr::v1beta1::Expr::MergeFrom( + from._internal_result()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Expr_Comprehension::CopyFrom(const Expr_Comprehension& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.Expr.Comprehension) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Expr_Comprehension::IsInitialized() const { + return true; +} + +void Expr_Comprehension::InternalSwap(Expr_Comprehension* 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( + &_impl_.iter_var_, lhs_arena, + &other->_impl_.iter_var_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.accu_var_, lhs_arena, + &other->_impl_.accu_var_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.result_) + + sizeof(Expr_Comprehension::_impl_.result_) + - PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.iter_range_)>( + reinterpret_cast(&_impl_.iter_range_), + reinterpret_cast(&other->_impl_.iter_range_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr_Comprehension::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[7]); +} + +// =================================================================== + +class Expr::_Internal { + public: + static const ::google::api::expr::v1beta1::Literal& literal_expr(const Expr* msg); + static const ::google::api::expr::v1beta1::Expr_Ident& ident_expr(const Expr* msg); + static const ::google::api::expr::v1beta1::Expr_Select& select_expr(const Expr* msg); + static const ::google::api::expr::v1beta1::Expr_Call& call_expr(const Expr* msg); + static const ::google::api::expr::v1beta1::Expr_CreateList& list_expr(const Expr* msg); + static const ::google::api::expr::v1beta1::Expr_CreateStruct& struct_expr(const Expr* msg); + static const ::google::api::expr::v1beta1::Expr_Comprehension& comprehension_expr(const Expr* msg); +}; + +const ::google::api::expr::v1beta1::Literal& +Expr::_Internal::literal_expr(const Expr* msg) { + return *msg->_impl_.expr_kind_.literal_expr_; +} +const ::google::api::expr::v1beta1::Expr_Ident& +Expr::_Internal::ident_expr(const Expr* msg) { + return *msg->_impl_.expr_kind_.ident_expr_; +} +const ::google::api::expr::v1beta1::Expr_Select& +Expr::_Internal::select_expr(const Expr* msg) { + return *msg->_impl_.expr_kind_.select_expr_; +} +const ::google::api::expr::v1beta1::Expr_Call& +Expr::_Internal::call_expr(const Expr* msg) { + return *msg->_impl_.expr_kind_.call_expr_; +} +const ::google::api::expr::v1beta1::Expr_CreateList& +Expr::_Internal::list_expr(const Expr* msg) { + return *msg->_impl_.expr_kind_.list_expr_; +} +const ::google::api::expr::v1beta1::Expr_CreateStruct& +Expr::_Internal::struct_expr(const Expr* msg) { + return *msg->_impl_.expr_kind_.struct_expr_; +} +const ::google::api::expr::v1beta1::Expr_Comprehension& +Expr::_Internal::comprehension_expr(const Expr* msg) { + return *msg->_impl_.expr_kind_.comprehension_expr_; +} +void Expr::set_allocated_literal_expr(::google::api::expr::v1beta1::Literal* literal_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_expr_kind(); + if (literal_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(literal_expr); + if (message_arena != submessage_arena) { + literal_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, literal_expr, submessage_arena); + } + set_has_literal_expr(); + _impl_.expr_kind_.literal_expr_ = literal_expr; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.literal_expr) +} +void Expr::set_allocated_ident_expr(::google::api::expr::v1beta1::Expr_Ident* ident_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_expr_kind(); + if (ident_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(ident_expr); + if (message_arena != submessage_arena) { + ident_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, ident_expr, submessage_arena); + } + set_has_ident_expr(); + _impl_.expr_kind_.ident_expr_ = ident_expr; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.ident_expr) +} +void Expr::set_allocated_select_expr(::google::api::expr::v1beta1::Expr_Select* select_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_expr_kind(); + if (select_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(select_expr); + if (message_arena != submessage_arena) { + select_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, select_expr, submessage_arena); + } + set_has_select_expr(); + _impl_.expr_kind_.select_expr_ = select_expr; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.select_expr) +} +void Expr::set_allocated_call_expr(::google::api::expr::v1beta1::Expr_Call* call_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_expr_kind(); + if (call_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(call_expr); + if (message_arena != submessage_arena) { + call_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, call_expr, submessage_arena); + } + set_has_call_expr(); + _impl_.expr_kind_.call_expr_ = call_expr; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.call_expr) +} +void Expr::set_allocated_list_expr(::google::api::expr::v1beta1::Expr_CreateList* list_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_expr_kind(); + if (list_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(list_expr); + if (message_arena != submessage_arena) { + list_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, list_expr, submessage_arena); + } + set_has_list_expr(); + _impl_.expr_kind_.list_expr_ = list_expr; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.list_expr) +} +void Expr::set_allocated_struct_expr(::google::api::expr::v1beta1::Expr_CreateStruct* struct_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_expr_kind(); + if (struct_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(struct_expr); + if (message_arena != submessage_arena) { + struct_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, struct_expr, submessage_arena); + } + set_has_struct_expr(); + _impl_.expr_kind_.struct_expr_ = struct_expr; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.struct_expr) +} +void Expr::set_allocated_comprehension_expr(::google::api::expr::v1beta1::Expr_Comprehension* comprehension_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_expr_kind(); + if (comprehension_expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(comprehension_expr); + if (message_arena != submessage_arena) { + comprehension_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, comprehension_expr, submessage_arena); + } + set_has_comprehension_expr(); + _impl_.expr_kind_.comprehension_expr_ = comprehension_expr; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.comprehension_expr) +} +Expr::Expr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Expr) +} +Expr::Expr(const Expr& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Expr* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.expr_kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.id_ = from._impl_.id_; + clear_has_expr_kind(); + switch (from.expr_kind_case()) { + case kLiteralExpr: { + _this->_internal_mutable_literal_expr()->::google::api::expr::v1beta1::Literal::MergeFrom( + from._internal_literal_expr()); + break; + } + case kIdentExpr: { + _this->_internal_mutable_ident_expr()->::google::api::expr::v1beta1::Expr_Ident::MergeFrom( + from._internal_ident_expr()); + break; + } + case kSelectExpr: { + _this->_internal_mutable_select_expr()->::google::api::expr::v1beta1::Expr_Select::MergeFrom( + from._internal_select_expr()); + break; + } + case kCallExpr: { + _this->_internal_mutable_call_expr()->::google::api::expr::v1beta1::Expr_Call::MergeFrom( + from._internal_call_expr()); + break; + } + case kListExpr: { + _this->_internal_mutable_list_expr()->::google::api::expr::v1beta1::Expr_CreateList::MergeFrom( + from._internal_list_expr()); + break; + } + case kStructExpr: { + _this->_internal_mutable_struct_expr()->::google::api::expr::v1beta1::Expr_CreateStruct::MergeFrom( + from._internal_struct_expr()); + break; + } + case kComprehensionExpr: { + _this->_internal_mutable_comprehension_expr()->::google::api::expr::v1beta1::Expr_Comprehension::MergeFrom( + from._internal_comprehension_expr()); + break; + } + case EXPR_KIND_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Expr) +} + +inline void Expr::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){0} + , decltype(_impl_.expr_kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_expr_kind(); +} + +Expr::~Expr() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Expr) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Expr::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_expr_kind()) { + clear_expr_kind(); + } +} + +void Expr::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Expr::clear_expr_kind() { +// @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1beta1.Expr) + switch (expr_kind_case()) { + case kLiteralExpr: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.literal_expr_; + } + break; + } + case kIdentExpr: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.ident_expr_; + } + break; + } + case kSelectExpr: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.select_expr_; + } + break; + } + case kCallExpr: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.call_expr_; + } + break; + } + case kListExpr: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.list_expr_; + } + break; + } + case kStructExpr: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.struct_expr_; + } + break; + } + case kComprehensionExpr: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.comprehension_expr_; + } + break; + } + case EXPR_KIND_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = EXPR_KIND_NOT_SET; +} + + +void Expr::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Expr) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_ = 0; + clear_expr_kind(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr::_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) { + // int32 id = 2 [json_name = "id"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Literal literal_expr = 3 [json_name = "literalExpr"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_literal_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_ident_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_select_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr.Call call_expr = 6 [json_name = "callExpr"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_call_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_list_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_struct_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_comprehension_expr(), 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* Expr::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Expr) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int32 id = 2 [json_name = "id"]; + if (this->_internal_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_id(), target); + } + + // .google.api.expr.v1beta1.Literal literal_expr = 3 [json_name = "literalExpr"]; + if (_internal_has_literal_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::literal_expr(this), + _Internal::literal_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; + if (_internal_has_ident_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::ident_expr(this), + _Internal::ident_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; + if (_internal_has_select_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::select_expr(this), + _Internal::select_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.Expr.Call call_expr = 6 [json_name = "callExpr"]; + if (_internal_has_call_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::call_expr(this), + _Internal::call_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; + if (_internal_has_list_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::list_expr(this), + _Internal::list_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; + if (_internal_has_struct_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::struct_expr(this), + _Internal::struct_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; + if (_internal_has_comprehension_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, _Internal::comprehension_expr(this), + _Internal::comprehension_expr(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:google.api.expr.v1beta1.Expr) + return target; +} + +size_t Expr::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Expr) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int32 id = 2 [json_name = "id"]; + if (this->_internal_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_id()); + } + + switch (expr_kind_case()) { + // .google.api.expr.v1beta1.Literal literal_expr = 3 [json_name = "literalExpr"]; + case kLiteralExpr: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.expr_kind_.literal_expr_); + break; + } + // .google.api.expr.v1beta1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; + case kIdentExpr: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.expr_kind_.ident_expr_); + break; + } + // .google.api.expr.v1beta1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; + case kSelectExpr: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.expr_kind_.select_expr_); + break; + } + // .google.api.expr.v1beta1.Expr.Call call_expr = 6 [json_name = "callExpr"]; + case kCallExpr: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.expr_kind_.call_expr_); + break; + } + // .google.api.expr.v1beta1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; + case kListExpr: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.expr_kind_.list_expr_); + break; + } + // .google.api.expr.v1beta1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; + case kStructExpr: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.expr_kind_.struct_expr_); + break; + } + // .google.api.expr.v1beta1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; + case kComprehensionExpr: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.expr_kind_.comprehension_expr_); + break; + } + case EXPR_KIND_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Expr::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr::GetClassData() const { return &_class_data_; } + + +void Expr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_id() != 0) { + _this->_internal_set_id(from._internal_id()); + } + switch (from.expr_kind_case()) { + case kLiteralExpr: { + _this->_internal_mutable_literal_expr()->::google::api::expr::v1beta1::Literal::MergeFrom( + from._internal_literal_expr()); + break; + } + case kIdentExpr: { + _this->_internal_mutable_ident_expr()->::google::api::expr::v1beta1::Expr_Ident::MergeFrom( + from._internal_ident_expr()); + break; + } + case kSelectExpr: { + _this->_internal_mutable_select_expr()->::google::api::expr::v1beta1::Expr_Select::MergeFrom( + from._internal_select_expr()); + break; + } + case kCallExpr: { + _this->_internal_mutable_call_expr()->::google::api::expr::v1beta1::Expr_Call::MergeFrom( + from._internal_call_expr()); + break; + } + case kListExpr: { + _this->_internal_mutable_list_expr()->::google::api::expr::v1beta1::Expr_CreateList::MergeFrom( + from._internal_list_expr()); + break; + } + case kStructExpr: { + _this->_internal_mutable_struct_expr()->::google::api::expr::v1beta1::Expr_CreateStruct::MergeFrom( + from._internal_struct_expr()); + break; + } + case kComprehensionExpr: { + _this->_internal_mutable_comprehension_expr()->::google::api::expr::v1beta1::Expr_Comprehension::MergeFrom( + from._internal_comprehension_expr()); + break; + } + case EXPR_KIND_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Expr::CopyFrom(const Expr& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.Expr) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Expr::IsInitialized() const { + return true; +} + +void Expr::InternalSwap(Expr* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.id_, other->_impl_.id_); + swap(_impl_.expr_kind_, other->_impl_.expr_kind_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[8]); +} + +// =================================================================== + +class Literal::_Internal { + public: +}; + +Literal::Literal(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Literal) +} +Literal::Literal(const Literal& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Literal* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.constant_kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_constant_kind(); + switch (from.constant_kind_case()) { + case kNullValue: { + _this->_internal_set_null_value(from._internal_null_value()); + break; + } + case kBoolValue: { + _this->_internal_set_bool_value(from._internal_bool_value()); + break; + } + case kInt64Value: { + _this->_internal_set_int64_value(from._internal_int64_value()); + break; + } + case kUint64Value: { + _this->_internal_set_uint64_value(from._internal_uint64_value()); + break; + } + case kDoubleValue: { + _this->_internal_set_double_value(from._internal_double_value()); + break; + } + case kStringValue: { + _this->_internal_set_string_value(from._internal_string_value()); + break; + } + case kBytesValue: { + _this->_internal_set_bytes_value(from._internal_bytes_value()); + break; + } + case CONSTANT_KIND_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Literal) +} + +inline void Literal::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.constant_kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_constant_kind(); +} + +Literal::~Literal() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Literal) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Literal::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_constant_kind()) { + clear_constant_kind(); + } +} + +void Literal::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Literal::clear_constant_kind() { +// @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1beta1.Literal) + switch (constant_kind_case()) { + case kNullValue: { + // No need to clear + break; + } + case kBoolValue: { + // No need to clear + break; + } + case kInt64Value: { + // No need to clear + break; + } + case kUint64Value: { + // No need to clear + break; + } + case kDoubleValue: { + // No need to clear + break; + } + case kStringValue: { + _impl_.constant_kind_.string_value_.Destroy(); + break; + } + case kBytesValue: { + _impl_.constant_kind_.bytes_value_.Destroy(); + break; + } + case CONSTANT_KIND_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = CONSTANT_KIND_NOT_SET; +} + + +void Literal::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Literal) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_constant_kind(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Literal::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_null_value(static_cast<::PROTOBUF_NAMESPACE_ID::NullValue>(val)); + } else + goto handle_unusual; + continue; + // bool bool_value = 2 [json_name = "boolValue"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _internal_set_bool_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 int64_value = 3 [json_name = "int64Value"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _internal_set_int64_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _internal_set_uint64_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double double_value = 5 [json_name = "doubleValue"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 41)) { + _internal_set_double_value(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // string string_value = 6 [json_name = "stringValue"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_string_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Literal.string_value")); + } else + goto handle_unusual; + continue; + // bytes bytes_value = 7 [json_name = "bytesValue"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_bytes_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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* Literal::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Literal) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + if (_internal_has_null_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_null_value(), target); + } + + // bool bool_value = 2 [json_name = "boolValue"]; + if (_internal_has_bool_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_bool_value(), target); + } + + // int64 int64_value = 3 [json_name = "int64Value"]; + if (_internal_has_int64_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_int64_value(), target); + } + + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + if (_internal_has_uint64_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_uint64_value(), target); + } + + // double double_value = 5 [json_name = "doubleValue"]; + if (_internal_has_double_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_double_value(), target); + } + + // string string_value = 6 [json_name = "stringValue"]; + if (_internal_has_string_value()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_string_value().data(), static_cast(this->_internal_string_value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Literal.string_value"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_string_value(), target); + } + + // bytes bytes_value = 7 [json_name = "bytesValue"]; + if (_internal_has_bytes_value()) { + target = stream->WriteBytesMaybeAliased( + 7, this->_internal_bytes_value(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1beta1.Literal) + return target; +} + +size_t Literal::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Literal) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (constant_kind_case()) { + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + case kNullValue: { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_null_value()); + break; + } + // bool bool_value = 2 [json_name = "boolValue"]; + case kBoolValue: { + total_size += 1 + 1; + break; + } + // int64 int64_value = 3 [json_name = "int64Value"]; + case kInt64Value: { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_int64_value()); + break; + } + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + case kUint64Value: { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_uint64_value()); + break; + } + // double double_value = 5 [json_name = "doubleValue"]; + case kDoubleValue: { + total_size += 1 + 8; + break; + } + // string string_value = 6 [json_name = "stringValue"]; + case kStringValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_string_value()); + break; + } + // bytes bytes_value = 7 [json_name = "bytesValue"]; + case kBytesValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_bytes_value()); + break; + } + case CONSTANT_KIND_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Literal::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Literal::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Literal::GetClassData() const { return &_class_data_; } + + +void Literal::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Literal) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.constant_kind_case()) { + case kNullValue: { + _this->_internal_set_null_value(from._internal_null_value()); + break; + } + case kBoolValue: { + _this->_internal_set_bool_value(from._internal_bool_value()); + break; + } + case kInt64Value: { + _this->_internal_set_int64_value(from._internal_int64_value()); + break; + } + case kUint64Value: { + _this->_internal_set_uint64_value(from._internal_uint64_value()); + break; + } + case kDoubleValue: { + _this->_internal_set_double_value(from._internal_double_value()); + break; + } + case kStringValue: { + _this->_internal_set_string_value(from._internal_string_value()); + break; + } + case kBytesValue: { + _this->_internal_set_bytes_value(from._internal_bytes_value()); + break; + } + case CONSTANT_KIND_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Literal::CopyFrom(const Literal& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.Literal) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Literal::IsInitialized() const { + return true; +} + +void Literal::InternalSwap(Literal* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.constant_kind_, other->_impl_.constant_kind_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Literal::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[9]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::ParsedExpr* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::ParsedExpr >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::ParsedExpr >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Expr_Ident* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_Ident >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Expr_Ident >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Expr_Select* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_Select >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Expr_Select >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Expr_Call* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_Call >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Expr_Call >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Expr_CreateList* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_CreateList >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Expr_CreateList >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Expr_CreateStruct_Entry* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_CreateStruct_Entry >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Expr_CreateStruct_Entry >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Expr_CreateStruct* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_CreateStruct >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Expr_CreateStruct >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Expr_Comprehension* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_Comprehension >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Expr_Comprehension >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Expr* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Expr >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Expr >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Literal* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Literal >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Literal >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/google/api/expr/v1beta1/expr.pb.h b/src/gen/google/api/expr/v1beta1/expr.pb.h new file mode 100644 index 000000000..610d061b5 --- /dev/null +++ b/src/gen/google/api/expr/v1beta1/expr.pb.h @@ -0,0 +1,4804 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/expr/v1beta1/expr.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 "google/api/expr/v1beta1/source.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { +class Expr; +struct ExprDefaultTypeInternal; +extern ExprDefaultTypeInternal _Expr_default_instance_; +class Expr_Call; +struct Expr_CallDefaultTypeInternal; +extern Expr_CallDefaultTypeInternal _Expr_Call_default_instance_; +class Expr_Comprehension; +struct Expr_ComprehensionDefaultTypeInternal; +extern Expr_ComprehensionDefaultTypeInternal _Expr_Comprehension_default_instance_; +class Expr_CreateList; +struct Expr_CreateListDefaultTypeInternal; +extern Expr_CreateListDefaultTypeInternal _Expr_CreateList_default_instance_; +class Expr_CreateStruct; +struct Expr_CreateStructDefaultTypeInternal; +extern Expr_CreateStructDefaultTypeInternal _Expr_CreateStruct_default_instance_; +class Expr_CreateStruct_Entry; +struct Expr_CreateStruct_EntryDefaultTypeInternal; +extern Expr_CreateStruct_EntryDefaultTypeInternal _Expr_CreateStruct_Entry_default_instance_; +class Expr_Ident; +struct Expr_IdentDefaultTypeInternal; +extern Expr_IdentDefaultTypeInternal _Expr_Ident_default_instance_; +class Expr_Select; +struct Expr_SelectDefaultTypeInternal; +extern Expr_SelectDefaultTypeInternal _Expr_Select_default_instance_; +class Literal; +struct LiteralDefaultTypeInternal; +extern LiteralDefaultTypeInternal _Literal_default_instance_; +class ParsedExpr; +struct ParsedExprDefaultTypeInternal; +extern ParsedExprDefaultTypeInternal _ParsedExpr_default_instance_; +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::expr::v1beta1::Expr* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(Arena*); +template<> ::google::api::expr::v1beta1::Expr_Call* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Expr_Call>(Arena*); +template<> ::google::api::expr::v1beta1::Expr_Comprehension* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Expr_Comprehension>(Arena*); +template<> ::google::api::expr::v1beta1::Expr_CreateList* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Expr_CreateList>(Arena*); +template<> ::google::api::expr::v1beta1::Expr_CreateStruct* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Expr_CreateStruct>(Arena*); +template<> ::google::api::expr::v1beta1::Expr_CreateStruct_Entry* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Expr_CreateStruct_Entry>(Arena*); +template<> ::google::api::expr::v1beta1::Expr_Ident* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Expr_Ident>(Arena*); +template<> ::google::api::expr::v1beta1::Expr_Select* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Expr_Select>(Arena*); +template<> ::google::api::expr::v1beta1::Literal* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Literal>(Arena*); +template<> ::google::api::expr::v1beta1::ParsedExpr* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::ParsedExpr>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { + +// =================================================================== + +class ParsedExpr final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.ParsedExpr) */ { + public: + inline ParsedExpr() : ParsedExpr(nullptr) {} + ~ParsedExpr() override; + explicit PROTOBUF_CONSTEXPR ParsedExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ParsedExpr(const ParsedExpr& from); + ParsedExpr(ParsedExpr&& from) noexcept + : ParsedExpr() { + *this = ::std::move(from); + } + + inline ParsedExpr& operator=(const ParsedExpr& from) { + CopyFrom(from); + return *this; + } + inline ParsedExpr& operator=(ParsedExpr&& 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 ParsedExpr& default_instance() { + return *internal_default_instance(); + } + static inline const ParsedExpr* internal_default_instance() { + return reinterpret_cast( + &_ParsedExpr_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(ParsedExpr& a, ParsedExpr& b) { + a.Swap(&b); + } + inline void Swap(ParsedExpr* 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(ParsedExpr* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ParsedExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ParsedExpr& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ParsedExpr& from) { + ParsedExpr::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ParsedExpr* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.ParsedExpr"; + } + protected: + explicit ParsedExpr(::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 { + kSyntaxVersionFieldNumber = 4, + kExprFieldNumber = 2, + kSourceInfoFieldNumber = 3, + }; + // string syntax_version = 4 [json_name = "syntaxVersion"]; + void clear_syntax_version(); + const std::string& syntax_version() const; + template + void set_syntax_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_syntax_version(); + PROTOBUF_NODISCARD std::string* release_syntax_version(); + void set_allocated_syntax_version(std::string* syntax_version); + private: + const std::string& _internal_syntax_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_syntax_version(const std::string& value); + std::string* _internal_mutable_syntax_version(); + public: + + // .google.api.expr.v1beta1.Expr expr = 2 [json_name = "expr"]; + bool has_expr() const; + private: + bool _internal_has_expr() const; + public: + void clear_expr(); + const ::google::api::expr::v1beta1::Expr& expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_expr(); + ::google::api::expr::v1beta1::Expr* mutable_expr(); + void set_allocated_expr(::google::api::expr::v1beta1::Expr* expr); + private: + const ::google::api::expr::v1beta1::Expr& _internal_expr() const; + ::google::api::expr::v1beta1::Expr* _internal_mutable_expr(); + public: + void unsafe_arena_set_allocated_expr( + ::google::api::expr::v1beta1::Expr* expr); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_expr(); + + // .google.api.expr.v1beta1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; + bool has_source_info() const; + private: + bool _internal_has_source_info() const; + public: + void clear_source_info(); + const ::google::api::expr::v1beta1::SourceInfo& source_info() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::SourceInfo* release_source_info(); + ::google::api::expr::v1beta1::SourceInfo* mutable_source_info(); + void set_allocated_source_info(::google::api::expr::v1beta1::SourceInfo* source_info); + private: + const ::google::api::expr::v1beta1::SourceInfo& _internal_source_info() const; + ::google::api::expr::v1beta1::SourceInfo* _internal_mutable_source_info(); + public: + void unsafe_arena_set_allocated_source_info( + ::google::api::expr::v1beta1::SourceInfo* source_info); + ::google::api::expr::v1beta1::SourceInfo* unsafe_arena_release_source_info(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.ParsedExpr) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr syntax_version_; + ::google::api::expr::v1beta1::Expr* expr_; + ::google::api::expr::v1beta1::SourceInfo* source_info_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; +}; +// ------------------------------------------------------------------- + +class Expr_Ident final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr.Ident) */ { + public: + inline Expr_Ident() : Expr_Ident(nullptr) {} + ~Expr_Ident() override; + explicit PROTOBUF_CONSTEXPR Expr_Ident(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Expr_Ident(const Expr_Ident& from); + Expr_Ident(Expr_Ident&& from) noexcept + : Expr_Ident() { + *this = ::std::move(from); + } + + inline Expr_Ident& operator=(const Expr_Ident& from) { + CopyFrom(from); + return *this; + } + inline Expr_Ident& operator=(Expr_Ident&& 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 Expr_Ident& default_instance() { + return *internal_default_instance(); + } + static inline const Expr_Ident* internal_default_instance() { + return reinterpret_cast( + &_Expr_Ident_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(Expr_Ident& a, Expr_Ident& b) { + a.Swap(&b); + } + inline void Swap(Expr_Ident* 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(Expr_Ident* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Expr_Ident* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_Ident& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Expr_Ident& from) { + Expr_Ident::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_Ident* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.Expr.Ident"; + } + protected: + explicit Expr_Ident(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Expr.Ident) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; +}; +// ------------------------------------------------------------------- + +class Expr_Select final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr.Select) */ { + public: + inline Expr_Select() : Expr_Select(nullptr) {} + ~Expr_Select() override; + explicit PROTOBUF_CONSTEXPR Expr_Select(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Expr_Select(const Expr_Select& from); + Expr_Select(Expr_Select&& from) noexcept + : Expr_Select() { + *this = ::std::move(from); + } + + inline Expr_Select& operator=(const Expr_Select& from) { + CopyFrom(from); + return *this; + } + inline Expr_Select& operator=(Expr_Select&& 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 Expr_Select& default_instance() { + return *internal_default_instance(); + } + static inline const Expr_Select* internal_default_instance() { + return reinterpret_cast( + &_Expr_Select_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(Expr_Select& a, Expr_Select& b) { + a.Swap(&b); + } + inline void Swap(Expr_Select* 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(Expr_Select* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Expr_Select* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_Select& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Expr_Select& from) { + Expr_Select::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_Select* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.Expr.Select"; + } + protected: + explicit Expr_Select(::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 { + kFieldFieldNumber = 2, + kOperandFieldNumber = 1, + kTestOnlyFieldNumber = 3, + }; + // string field = 2 [json_name = "field"]; + void clear_field(); + const std::string& field() const; + template + void set_field(ArgT0&& arg0, ArgT... args); + std::string* mutable_field(); + PROTOBUF_NODISCARD std::string* release_field(); + void set_allocated_field(std::string* field); + private: + const std::string& _internal_field() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_field(const std::string& value); + std::string* _internal_mutable_field(); + public: + + // .google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"]; + bool has_operand() const; + private: + bool _internal_has_operand() const; + public: + void clear_operand(); + const ::google::api::expr::v1beta1::Expr& operand() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_operand(); + ::google::api::expr::v1beta1::Expr* mutable_operand(); + void set_allocated_operand(::google::api::expr::v1beta1::Expr* operand); + private: + const ::google::api::expr::v1beta1::Expr& _internal_operand() const; + ::google::api::expr::v1beta1::Expr* _internal_mutable_operand(); + public: + void unsafe_arena_set_allocated_operand( + ::google::api::expr::v1beta1::Expr* operand); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_operand(); + + // bool test_only = 3 [json_name = "testOnly"]; + void clear_test_only(); + bool test_only() const; + void set_test_only(bool value); + private: + bool _internal_test_only() const; + void _internal_set_test_only(bool value); + public: + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Expr.Select) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_; + ::google::api::expr::v1beta1::Expr* operand_; + bool test_only_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; +}; +// ------------------------------------------------------------------- + +class Expr_Call final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr.Call) */ { + public: + inline Expr_Call() : Expr_Call(nullptr) {} + ~Expr_Call() override; + explicit PROTOBUF_CONSTEXPR Expr_Call(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Expr_Call(const Expr_Call& from); + Expr_Call(Expr_Call&& from) noexcept + : Expr_Call() { + *this = ::std::move(from); + } + + inline Expr_Call& operator=(const Expr_Call& from) { + CopyFrom(from); + return *this; + } + inline Expr_Call& operator=(Expr_Call&& 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 Expr_Call& default_instance() { + return *internal_default_instance(); + } + static inline const Expr_Call* internal_default_instance() { + return reinterpret_cast( + &_Expr_Call_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(Expr_Call& a, Expr_Call& b) { + a.Swap(&b); + } + inline void Swap(Expr_Call* 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(Expr_Call* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Expr_Call* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_Call& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Expr_Call& from) { + Expr_Call::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_Call* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.Expr.Call"; + } + protected: + explicit Expr_Call(::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 { + kArgsFieldNumber = 3, + kFunctionFieldNumber = 2, + kTargetFieldNumber = 1, + }; + // repeated .google.api.expr.v1beta1.Expr args = 3 [json_name = "args"]; + int args_size() const; + private: + int _internal_args_size() const; + public: + void clear_args(); + ::google::api::expr::v1beta1::Expr* mutable_args(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr >* + mutable_args(); + private: + const ::google::api::expr::v1beta1::Expr& _internal_args(int index) const; + ::google::api::expr::v1beta1::Expr* _internal_add_args(); + public: + const ::google::api::expr::v1beta1::Expr& args(int index) const; + ::google::api::expr::v1beta1::Expr* add_args(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr >& + args() const; + + // string function = 2 [json_name = "function"]; + void clear_function(); + const std::string& function() const; + template + void set_function(ArgT0&& arg0, ArgT... args); + std::string* mutable_function(); + PROTOBUF_NODISCARD std::string* release_function(); + void set_allocated_function(std::string* function); + private: + const std::string& _internal_function() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_function(const std::string& value); + std::string* _internal_mutable_function(); + public: + + // .google.api.expr.v1beta1.Expr target = 1 [json_name = "target"]; + bool has_target() const; + private: + bool _internal_has_target() const; + public: + void clear_target(); + const ::google::api::expr::v1beta1::Expr& target() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_target(); + ::google::api::expr::v1beta1::Expr* mutable_target(); + void set_allocated_target(::google::api::expr::v1beta1::Expr* target); + private: + const ::google::api::expr::v1beta1::Expr& _internal_target() const; + ::google::api::expr::v1beta1::Expr* _internal_mutable_target(); + public: + void unsafe_arena_set_allocated_target( + ::google::api::expr::v1beta1::Expr* target); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_target(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Expr.Call) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr > args_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr function_; + ::google::api::expr::v1beta1::Expr* target_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; +}; +// ------------------------------------------------------------------- + +class Expr_CreateList final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr.CreateList) */ { + public: + inline Expr_CreateList() : Expr_CreateList(nullptr) {} + ~Expr_CreateList() override; + explicit PROTOBUF_CONSTEXPR Expr_CreateList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Expr_CreateList(const Expr_CreateList& from); + Expr_CreateList(Expr_CreateList&& from) noexcept + : Expr_CreateList() { + *this = ::std::move(from); + } + + inline Expr_CreateList& operator=(const Expr_CreateList& from) { + CopyFrom(from); + return *this; + } + inline Expr_CreateList& operator=(Expr_CreateList&& 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 Expr_CreateList& default_instance() { + return *internal_default_instance(); + } + static inline const Expr_CreateList* internal_default_instance() { + return reinterpret_cast( + &_Expr_CreateList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(Expr_CreateList& a, Expr_CreateList& b) { + a.Swap(&b); + } + inline void Swap(Expr_CreateList* 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(Expr_CreateList* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Expr_CreateList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_CreateList& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Expr_CreateList& from) { + Expr_CreateList::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_CreateList* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.Expr.CreateList"; + } + protected: + explicit Expr_CreateList(::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 { + kElementsFieldNumber = 1, + }; + // repeated .google.api.expr.v1beta1.Expr elements = 1 [json_name = "elements"]; + int elements_size() const; + private: + int _internal_elements_size() const; + public: + void clear_elements(); + ::google::api::expr::v1beta1::Expr* mutable_elements(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr >* + mutable_elements(); + private: + const ::google::api::expr::v1beta1::Expr& _internal_elements(int index) const; + ::google::api::expr::v1beta1::Expr* _internal_add_elements(); + public: + const ::google::api::expr::v1beta1::Expr& elements(int index) const; + ::google::api::expr::v1beta1::Expr* add_elements(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr >& + elements() const; + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Expr.CreateList) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr > elements_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; +}; +// ------------------------------------------------------------------- + +class Expr_CreateStruct_Entry final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr.CreateStruct.Entry) */ { + public: + inline Expr_CreateStruct_Entry() : Expr_CreateStruct_Entry(nullptr) {} + ~Expr_CreateStruct_Entry() override; + explicit PROTOBUF_CONSTEXPR Expr_CreateStruct_Entry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Expr_CreateStruct_Entry(const Expr_CreateStruct_Entry& from); + Expr_CreateStruct_Entry(Expr_CreateStruct_Entry&& from) noexcept + : Expr_CreateStruct_Entry() { + *this = ::std::move(from); + } + + inline Expr_CreateStruct_Entry& operator=(const Expr_CreateStruct_Entry& from) { + CopyFrom(from); + return *this; + } + inline Expr_CreateStruct_Entry& operator=(Expr_CreateStruct_Entry&& 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 Expr_CreateStruct_Entry& default_instance() { + return *internal_default_instance(); + } + enum KeyKindCase { + kFieldKey = 2, + kMapKey = 3, + KEY_KIND_NOT_SET = 0, + }; + + static inline const Expr_CreateStruct_Entry* internal_default_instance() { + return reinterpret_cast( + &_Expr_CreateStruct_Entry_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(Expr_CreateStruct_Entry& a, Expr_CreateStruct_Entry& b) { + a.Swap(&b); + } + inline void Swap(Expr_CreateStruct_Entry* 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(Expr_CreateStruct_Entry* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Expr_CreateStruct_Entry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_CreateStruct_Entry& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Expr_CreateStruct_Entry& from) { + Expr_CreateStruct_Entry::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_CreateStruct_Entry* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.Expr.CreateStruct.Entry"; + } + protected: + explicit Expr_CreateStruct_Entry(::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 { + kValueFieldNumber = 4, + kIdFieldNumber = 1, + kFieldKeyFieldNumber = 2, + kMapKeyFieldNumber = 3, + }; + // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; + bool has_value() const; + private: + bool _internal_has_value() const; + public: + void clear_value(); + const ::google::api::expr::v1beta1::Expr& value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_value(); + ::google::api::expr::v1beta1::Expr* mutable_value(); + void set_allocated_value(::google::api::expr::v1beta1::Expr* value); + private: + const ::google::api::expr::v1beta1::Expr& _internal_value() const; + ::google::api::expr::v1beta1::Expr* _internal_mutable_value(); + public: + void unsafe_arena_set_allocated_value( + ::google::api::expr::v1beta1::Expr* value); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_value(); + + // int32 id = 1 [json_name = "id"]; + void clear_id(); + int32_t id() const; + void set_id(int32_t value); + private: + int32_t _internal_id() const; + void _internal_set_id(int32_t value); + public: + + // string field_key = 2 [json_name = "fieldKey"]; + bool has_field_key() const; + private: + bool _internal_has_field_key() const; + public: + void clear_field_key(); + const std::string& field_key() const; + template + void set_field_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_field_key(); + PROTOBUF_NODISCARD std::string* release_field_key(); + void set_allocated_field_key(std::string* field_key); + private: + const std::string& _internal_field_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_field_key(const std::string& value); + std::string* _internal_mutable_field_key(); + public: + + // .google.api.expr.v1beta1.Expr map_key = 3 [json_name = "mapKey"]; + bool has_map_key() const; + private: + bool _internal_has_map_key() const; + public: + void clear_map_key(); + const ::google::api::expr::v1beta1::Expr& map_key() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_map_key(); + ::google::api::expr::v1beta1::Expr* mutable_map_key(); + void set_allocated_map_key(::google::api::expr::v1beta1::Expr* map_key); + private: + const ::google::api::expr::v1beta1::Expr& _internal_map_key() const; + ::google::api::expr::v1beta1::Expr* _internal_mutable_map_key(); + public: + void unsafe_arena_set_allocated_map_key( + ::google::api::expr::v1beta1::Expr* map_key); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_map_key(); + + void clear_key_kind(); + KeyKindCase key_kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Expr.CreateStruct.Entry) + private: + class _Internal; + void set_has_field_key(); + void set_has_map_key(); + + inline bool has_key_kind() const; + inline void clear_has_key_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::api::expr::v1beta1::Expr* value_; + int32_t id_; + union KeyKindUnion { + constexpr KeyKindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_key_; + ::google::api::expr::v1beta1::Expr* map_key_; + } key_kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; +}; +// ------------------------------------------------------------------- + +class Expr_CreateStruct final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr.CreateStruct) */ { + public: + inline Expr_CreateStruct() : Expr_CreateStruct(nullptr) {} + ~Expr_CreateStruct() override; + explicit PROTOBUF_CONSTEXPR Expr_CreateStruct(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Expr_CreateStruct(const Expr_CreateStruct& from); + Expr_CreateStruct(Expr_CreateStruct&& from) noexcept + : Expr_CreateStruct() { + *this = ::std::move(from); + } + + inline Expr_CreateStruct& operator=(const Expr_CreateStruct& from) { + CopyFrom(from); + return *this; + } + inline Expr_CreateStruct& operator=(Expr_CreateStruct&& 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 Expr_CreateStruct& default_instance() { + return *internal_default_instance(); + } + static inline const Expr_CreateStruct* internal_default_instance() { + return reinterpret_cast( + &_Expr_CreateStruct_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(Expr_CreateStruct& a, Expr_CreateStruct& b) { + a.Swap(&b); + } + inline void Swap(Expr_CreateStruct* 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(Expr_CreateStruct* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Expr_CreateStruct* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_CreateStruct& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Expr_CreateStruct& from) { + Expr_CreateStruct::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_CreateStruct* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.Expr.CreateStruct"; + } + protected: + explicit Expr_CreateStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef Expr_CreateStruct_Entry Entry; + + // accessors ------------------------------------------------------- + + enum : int { + kEntriesFieldNumber = 2, + kTypeFieldNumber = 1, + }; + // repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; + int entries_size() const; + private: + int _internal_entries_size() const; + public: + void clear_entries(); + ::google::api::expr::v1beta1::Expr_CreateStruct_Entry* mutable_entries(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr_CreateStruct_Entry >* + mutable_entries(); + private: + const ::google::api::expr::v1beta1::Expr_CreateStruct_Entry& _internal_entries(int index) const; + ::google::api::expr::v1beta1::Expr_CreateStruct_Entry* _internal_add_entries(); + public: + const ::google::api::expr::v1beta1::Expr_CreateStruct_Entry& entries(int index) const; + ::google::api::expr::v1beta1::Expr_CreateStruct_Entry* add_entries(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr_CreateStruct_Entry >& + entries() const; + + // string type = 1 [json_name = "type"]; + void clear_type(); + const std::string& type() const; + template + void set_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_type(); + PROTOBUF_NODISCARD std::string* release_type(); + void set_allocated_type(std::string* type); + private: + const std::string& _internal_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); + std::string* _internal_mutable_type(); + public: + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Expr.CreateStruct) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr_CreateStruct_Entry > entries_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; +}; +// ------------------------------------------------------------------- + +class Expr_Comprehension final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr.Comprehension) */ { + public: + inline Expr_Comprehension() : Expr_Comprehension(nullptr) {} + ~Expr_Comprehension() override; + explicit PROTOBUF_CONSTEXPR Expr_Comprehension(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Expr_Comprehension(const Expr_Comprehension& from); + Expr_Comprehension(Expr_Comprehension&& from) noexcept + : Expr_Comprehension() { + *this = ::std::move(from); + } + + inline Expr_Comprehension& operator=(const Expr_Comprehension& from) { + CopyFrom(from); + return *this; + } + inline Expr_Comprehension& operator=(Expr_Comprehension&& 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 Expr_Comprehension& default_instance() { + return *internal_default_instance(); + } + static inline const Expr_Comprehension* internal_default_instance() { + return reinterpret_cast( + &_Expr_Comprehension_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(Expr_Comprehension& a, Expr_Comprehension& b) { + a.Swap(&b); + } + inline void Swap(Expr_Comprehension* 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(Expr_Comprehension* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Expr_Comprehension* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_Comprehension& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Expr_Comprehension& from) { + Expr_Comprehension::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_Comprehension* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.Expr.Comprehension"; + } + protected: + explicit Expr_Comprehension(::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 { + kIterVarFieldNumber = 1, + kAccuVarFieldNumber = 3, + kIterRangeFieldNumber = 2, + kAccuInitFieldNumber = 4, + kLoopConditionFieldNumber = 5, + kLoopStepFieldNumber = 6, + kResultFieldNumber = 7, + }; + // string iter_var = 1 [json_name = "iterVar"]; + void clear_iter_var(); + const std::string& iter_var() const; + template + void set_iter_var(ArgT0&& arg0, ArgT... args); + std::string* mutable_iter_var(); + PROTOBUF_NODISCARD std::string* release_iter_var(); + void set_allocated_iter_var(std::string* iter_var); + private: + const std::string& _internal_iter_var() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_iter_var(const std::string& value); + std::string* _internal_mutable_iter_var(); + public: + + // string accu_var = 3 [json_name = "accuVar"]; + void clear_accu_var(); + const std::string& accu_var() const; + template + void set_accu_var(ArgT0&& arg0, ArgT... args); + std::string* mutable_accu_var(); + PROTOBUF_NODISCARD std::string* release_accu_var(); + void set_allocated_accu_var(std::string* accu_var); + private: + const std::string& _internal_accu_var() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_accu_var(const std::string& value); + std::string* _internal_mutable_accu_var(); + public: + + // .google.api.expr.v1beta1.Expr iter_range = 2 [json_name = "iterRange"]; + bool has_iter_range() const; + private: + bool _internal_has_iter_range() const; + public: + void clear_iter_range(); + const ::google::api::expr::v1beta1::Expr& iter_range() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_iter_range(); + ::google::api::expr::v1beta1::Expr* mutable_iter_range(); + void set_allocated_iter_range(::google::api::expr::v1beta1::Expr* iter_range); + private: + const ::google::api::expr::v1beta1::Expr& _internal_iter_range() const; + ::google::api::expr::v1beta1::Expr* _internal_mutable_iter_range(); + public: + void unsafe_arena_set_allocated_iter_range( + ::google::api::expr::v1beta1::Expr* iter_range); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_iter_range(); + + // .google.api.expr.v1beta1.Expr accu_init = 4 [json_name = "accuInit"]; + bool has_accu_init() const; + private: + bool _internal_has_accu_init() const; + public: + void clear_accu_init(); + const ::google::api::expr::v1beta1::Expr& accu_init() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_accu_init(); + ::google::api::expr::v1beta1::Expr* mutable_accu_init(); + void set_allocated_accu_init(::google::api::expr::v1beta1::Expr* accu_init); + private: + const ::google::api::expr::v1beta1::Expr& _internal_accu_init() const; + ::google::api::expr::v1beta1::Expr* _internal_mutable_accu_init(); + public: + void unsafe_arena_set_allocated_accu_init( + ::google::api::expr::v1beta1::Expr* accu_init); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_accu_init(); + + // .google.api.expr.v1beta1.Expr loop_condition = 5 [json_name = "loopCondition"]; + bool has_loop_condition() const; + private: + bool _internal_has_loop_condition() const; + public: + void clear_loop_condition(); + const ::google::api::expr::v1beta1::Expr& loop_condition() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_loop_condition(); + ::google::api::expr::v1beta1::Expr* mutable_loop_condition(); + void set_allocated_loop_condition(::google::api::expr::v1beta1::Expr* loop_condition); + private: + const ::google::api::expr::v1beta1::Expr& _internal_loop_condition() const; + ::google::api::expr::v1beta1::Expr* _internal_mutable_loop_condition(); + public: + void unsafe_arena_set_allocated_loop_condition( + ::google::api::expr::v1beta1::Expr* loop_condition); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_loop_condition(); + + // .google.api.expr.v1beta1.Expr loop_step = 6 [json_name = "loopStep"]; + bool has_loop_step() const; + private: + bool _internal_has_loop_step() const; + public: + void clear_loop_step(); + const ::google::api::expr::v1beta1::Expr& loop_step() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_loop_step(); + ::google::api::expr::v1beta1::Expr* mutable_loop_step(); + void set_allocated_loop_step(::google::api::expr::v1beta1::Expr* loop_step); + private: + const ::google::api::expr::v1beta1::Expr& _internal_loop_step() const; + ::google::api::expr::v1beta1::Expr* _internal_mutable_loop_step(); + public: + void unsafe_arena_set_allocated_loop_step( + ::google::api::expr::v1beta1::Expr* loop_step); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_loop_step(); + + // .google.api.expr.v1beta1.Expr result = 7 [json_name = "result"]; + bool has_result() const; + private: + bool _internal_has_result() const; + public: + void clear_result(); + const ::google::api::expr::v1beta1::Expr& result() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_result(); + ::google::api::expr::v1beta1::Expr* mutable_result(); + void set_allocated_result(::google::api::expr::v1beta1::Expr* result); + private: + const ::google::api::expr::v1beta1::Expr& _internal_result() const; + ::google::api::expr::v1beta1::Expr* _internal_mutable_result(); + public: + void unsafe_arena_set_allocated_result( + ::google::api::expr::v1beta1::Expr* result); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_result(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Expr.Comprehension) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr iter_var_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr accu_var_; + ::google::api::expr::v1beta1::Expr* iter_range_; + ::google::api::expr::v1beta1::Expr* accu_init_; + ::google::api::expr::v1beta1::Expr* loop_condition_; + ::google::api::expr::v1beta1::Expr* loop_step_; + ::google::api::expr::v1beta1::Expr* result_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; +}; +// ------------------------------------------------------------------- + +class Expr final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr) */ { + public: + inline Expr() : Expr(nullptr) {} + ~Expr() override; + explicit PROTOBUF_CONSTEXPR Expr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Expr(const Expr& from); + Expr(Expr&& from) noexcept + : Expr() { + *this = ::std::move(from); + } + + inline Expr& operator=(const Expr& from) { + CopyFrom(from); + return *this; + } + inline Expr& operator=(Expr&& 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 Expr& default_instance() { + return *internal_default_instance(); + } + enum ExprKindCase { + kLiteralExpr = 3, + kIdentExpr = 4, + kSelectExpr = 5, + kCallExpr = 6, + kListExpr = 7, + kStructExpr = 8, + kComprehensionExpr = 9, + EXPR_KIND_NOT_SET = 0, + }; + + static inline const Expr* internal_default_instance() { + return reinterpret_cast( + &_Expr_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(Expr& a, Expr& b) { + a.Swap(&b); + } + inline void Swap(Expr* 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(Expr* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Expr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Expr& from) { + Expr::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Expr* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.Expr"; + } + protected: + explicit Expr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef Expr_Ident Ident; + typedef Expr_Select Select; + typedef Expr_Call Call; + typedef Expr_CreateList CreateList; + typedef Expr_CreateStruct CreateStruct; + typedef Expr_Comprehension Comprehension; + + // accessors ------------------------------------------------------- + + enum : int { + kIdFieldNumber = 2, + kLiteralExprFieldNumber = 3, + kIdentExprFieldNumber = 4, + kSelectExprFieldNumber = 5, + kCallExprFieldNumber = 6, + kListExprFieldNumber = 7, + kStructExprFieldNumber = 8, + kComprehensionExprFieldNumber = 9, + }; + // int32 id = 2 [json_name = "id"]; + void clear_id(); + int32_t id() const; + void set_id(int32_t value); + private: + int32_t _internal_id() const; + void _internal_set_id(int32_t value); + public: + + // .google.api.expr.v1beta1.Literal literal_expr = 3 [json_name = "literalExpr"]; + bool has_literal_expr() const; + private: + bool _internal_has_literal_expr() const; + public: + void clear_literal_expr(); + const ::google::api::expr::v1beta1::Literal& literal_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Literal* release_literal_expr(); + ::google::api::expr::v1beta1::Literal* mutable_literal_expr(); + void set_allocated_literal_expr(::google::api::expr::v1beta1::Literal* literal_expr); + private: + const ::google::api::expr::v1beta1::Literal& _internal_literal_expr() const; + ::google::api::expr::v1beta1::Literal* _internal_mutable_literal_expr(); + public: + void unsafe_arena_set_allocated_literal_expr( + ::google::api::expr::v1beta1::Literal* literal_expr); + ::google::api::expr::v1beta1::Literal* unsafe_arena_release_literal_expr(); + + // .google.api.expr.v1beta1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; + bool has_ident_expr() const; + private: + bool _internal_has_ident_expr() const; + public: + void clear_ident_expr(); + const ::google::api::expr::v1beta1::Expr_Ident& ident_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr_Ident* release_ident_expr(); + ::google::api::expr::v1beta1::Expr_Ident* mutable_ident_expr(); + void set_allocated_ident_expr(::google::api::expr::v1beta1::Expr_Ident* ident_expr); + private: + const ::google::api::expr::v1beta1::Expr_Ident& _internal_ident_expr() const; + ::google::api::expr::v1beta1::Expr_Ident* _internal_mutable_ident_expr(); + public: + void unsafe_arena_set_allocated_ident_expr( + ::google::api::expr::v1beta1::Expr_Ident* ident_expr); + ::google::api::expr::v1beta1::Expr_Ident* unsafe_arena_release_ident_expr(); + + // .google.api.expr.v1beta1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; + bool has_select_expr() const; + private: + bool _internal_has_select_expr() const; + public: + void clear_select_expr(); + const ::google::api::expr::v1beta1::Expr_Select& select_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr_Select* release_select_expr(); + ::google::api::expr::v1beta1::Expr_Select* mutable_select_expr(); + void set_allocated_select_expr(::google::api::expr::v1beta1::Expr_Select* select_expr); + private: + const ::google::api::expr::v1beta1::Expr_Select& _internal_select_expr() const; + ::google::api::expr::v1beta1::Expr_Select* _internal_mutable_select_expr(); + public: + void unsafe_arena_set_allocated_select_expr( + ::google::api::expr::v1beta1::Expr_Select* select_expr); + ::google::api::expr::v1beta1::Expr_Select* unsafe_arena_release_select_expr(); + + // .google.api.expr.v1beta1.Expr.Call call_expr = 6 [json_name = "callExpr"]; + bool has_call_expr() const; + private: + bool _internal_has_call_expr() const; + public: + void clear_call_expr(); + const ::google::api::expr::v1beta1::Expr_Call& call_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr_Call* release_call_expr(); + ::google::api::expr::v1beta1::Expr_Call* mutable_call_expr(); + void set_allocated_call_expr(::google::api::expr::v1beta1::Expr_Call* call_expr); + private: + const ::google::api::expr::v1beta1::Expr_Call& _internal_call_expr() const; + ::google::api::expr::v1beta1::Expr_Call* _internal_mutable_call_expr(); + public: + void unsafe_arena_set_allocated_call_expr( + ::google::api::expr::v1beta1::Expr_Call* call_expr); + ::google::api::expr::v1beta1::Expr_Call* unsafe_arena_release_call_expr(); + + // .google.api.expr.v1beta1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; + bool has_list_expr() const; + private: + bool _internal_has_list_expr() const; + public: + void clear_list_expr(); + const ::google::api::expr::v1beta1::Expr_CreateList& list_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr_CreateList* release_list_expr(); + ::google::api::expr::v1beta1::Expr_CreateList* mutable_list_expr(); + void set_allocated_list_expr(::google::api::expr::v1beta1::Expr_CreateList* list_expr); + private: + const ::google::api::expr::v1beta1::Expr_CreateList& _internal_list_expr() const; + ::google::api::expr::v1beta1::Expr_CreateList* _internal_mutable_list_expr(); + public: + void unsafe_arena_set_allocated_list_expr( + ::google::api::expr::v1beta1::Expr_CreateList* list_expr); + ::google::api::expr::v1beta1::Expr_CreateList* unsafe_arena_release_list_expr(); + + // .google.api.expr.v1beta1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; + bool has_struct_expr() const; + private: + bool _internal_has_struct_expr() const; + public: + void clear_struct_expr(); + const ::google::api::expr::v1beta1::Expr_CreateStruct& struct_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr_CreateStruct* release_struct_expr(); + ::google::api::expr::v1beta1::Expr_CreateStruct* mutable_struct_expr(); + void set_allocated_struct_expr(::google::api::expr::v1beta1::Expr_CreateStruct* struct_expr); + private: + const ::google::api::expr::v1beta1::Expr_CreateStruct& _internal_struct_expr() const; + ::google::api::expr::v1beta1::Expr_CreateStruct* _internal_mutable_struct_expr(); + public: + void unsafe_arena_set_allocated_struct_expr( + ::google::api::expr::v1beta1::Expr_CreateStruct* struct_expr); + ::google::api::expr::v1beta1::Expr_CreateStruct* unsafe_arena_release_struct_expr(); + + // .google.api.expr.v1beta1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; + bool has_comprehension_expr() const; + private: + bool _internal_has_comprehension_expr() const; + public: + void clear_comprehension_expr(); + const ::google::api::expr::v1beta1::Expr_Comprehension& comprehension_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr_Comprehension* release_comprehension_expr(); + ::google::api::expr::v1beta1::Expr_Comprehension* mutable_comprehension_expr(); + void set_allocated_comprehension_expr(::google::api::expr::v1beta1::Expr_Comprehension* comprehension_expr); + private: + const ::google::api::expr::v1beta1::Expr_Comprehension& _internal_comprehension_expr() const; + ::google::api::expr::v1beta1::Expr_Comprehension* _internal_mutable_comprehension_expr(); + public: + void unsafe_arena_set_allocated_comprehension_expr( + ::google::api::expr::v1beta1::Expr_Comprehension* comprehension_expr); + ::google::api::expr::v1beta1::Expr_Comprehension* unsafe_arena_release_comprehension_expr(); + + void clear_expr_kind(); + ExprKindCase expr_kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Expr) + private: + class _Internal; + void set_has_literal_expr(); + void set_has_ident_expr(); + void set_has_select_expr(); + void set_has_call_expr(); + void set_has_list_expr(); + void set_has_struct_expr(); + void set_has_comprehension_expr(); + + inline bool has_expr_kind() const; + inline void clear_has_expr_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + int32_t id_; + union ExprKindUnion { + constexpr ExprKindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::google::api::expr::v1beta1::Literal* literal_expr_; + ::google::api::expr::v1beta1::Expr_Ident* ident_expr_; + ::google::api::expr::v1beta1::Expr_Select* select_expr_; + ::google::api::expr::v1beta1::Expr_Call* call_expr_; + ::google::api::expr::v1beta1::Expr_CreateList* list_expr_; + ::google::api::expr::v1beta1::Expr_CreateStruct* struct_expr_; + ::google::api::expr::v1beta1::Expr_Comprehension* comprehension_expr_; + } expr_kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; +}; +// ------------------------------------------------------------------- + +class Literal final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Literal) */ { + public: + inline Literal() : Literal(nullptr) {} + ~Literal() override; + explicit PROTOBUF_CONSTEXPR Literal(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Literal(const Literal& from); + Literal(Literal&& from) noexcept + : Literal() { + *this = ::std::move(from); + } + + inline Literal& operator=(const Literal& from) { + CopyFrom(from); + return *this; + } + inline Literal& operator=(Literal&& 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 Literal& default_instance() { + return *internal_default_instance(); + } + enum ConstantKindCase { + kNullValue = 1, + kBoolValue = 2, + kInt64Value = 3, + kUint64Value = 4, + kDoubleValue = 5, + kStringValue = 6, + kBytesValue = 7, + CONSTANT_KIND_NOT_SET = 0, + }; + + static inline const Literal* internal_default_instance() { + return reinterpret_cast( + &_Literal_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(Literal& a, Literal& b) { + a.Swap(&b); + } + inline void Swap(Literal* 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(Literal* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Literal* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Literal& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Literal& from) { + Literal::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Literal* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.Literal"; + } + protected: + explicit Literal(::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 { + kNullValueFieldNumber = 1, + kBoolValueFieldNumber = 2, + kInt64ValueFieldNumber = 3, + kUint64ValueFieldNumber = 4, + kDoubleValueFieldNumber = 5, + kStringValueFieldNumber = 6, + kBytesValueFieldNumber = 7, + }; + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + bool has_null_value() const; + private: + bool _internal_has_null_value() const; + public: + void clear_null_value(); + ::PROTOBUF_NAMESPACE_ID::NullValue null_value() const; + void set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value); + private: + ::PROTOBUF_NAMESPACE_ID::NullValue _internal_null_value() const; + void _internal_set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value); + public: + + // bool bool_value = 2 [json_name = "boolValue"]; + bool has_bool_value() const; + private: + bool _internal_has_bool_value() const; + public: + void clear_bool_value(); + bool bool_value() const; + void set_bool_value(bool value); + private: + bool _internal_bool_value() const; + void _internal_set_bool_value(bool value); + public: + + // int64 int64_value = 3 [json_name = "int64Value"]; + bool has_int64_value() const; + private: + bool _internal_has_int64_value() const; + public: + void clear_int64_value(); + int64_t int64_value() const; + void set_int64_value(int64_t value); + private: + int64_t _internal_int64_value() const; + void _internal_set_int64_value(int64_t value); + public: + + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + bool has_uint64_value() const; + private: + bool _internal_has_uint64_value() const; + public: + void clear_uint64_value(); + uint64_t uint64_value() const; + void set_uint64_value(uint64_t value); + private: + uint64_t _internal_uint64_value() const; + void _internal_set_uint64_value(uint64_t value); + public: + + // double double_value = 5 [json_name = "doubleValue"]; + bool has_double_value() const; + private: + bool _internal_has_double_value() const; + public: + void clear_double_value(); + double double_value() const; + void set_double_value(double value); + private: + double _internal_double_value() const; + void _internal_set_double_value(double value); + public: + + // string string_value = 6 [json_name = "stringValue"]; + bool has_string_value() const; + private: + bool _internal_has_string_value() const; + public: + void clear_string_value(); + const std::string& string_value() const; + template + void set_string_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_string_value(); + PROTOBUF_NODISCARD std::string* release_string_value(); + void set_allocated_string_value(std::string* string_value); + private: + const std::string& _internal_string_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value(const std::string& value); + std::string* _internal_mutable_string_value(); + public: + + // bytes bytes_value = 7 [json_name = "bytesValue"]; + bool has_bytes_value() const; + private: + bool _internal_has_bytes_value() const; + public: + void clear_bytes_value(); + const std::string& bytes_value() const; + template + void set_bytes_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_bytes_value(); + PROTOBUF_NODISCARD std::string* release_bytes_value(); + void set_allocated_bytes_value(std::string* bytes_value); + private: + const std::string& _internal_bytes_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_bytes_value(const std::string& value); + std::string* _internal_mutable_bytes_value(); + public: + + void clear_constant_kind(); + ConstantKindCase constant_kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Literal) + private: + class _Internal; + void set_has_null_value(); + void set_has_bool_value(); + void set_has_int64_value(); + void set_has_uint64_value(); + void set_has_double_value(); + void set_has_string_value(); + void set_has_bytes_value(); + + inline bool has_constant_kind() const; + inline void clear_has_constant_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + union ConstantKindUnion { + constexpr ConstantKindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + int null_value_; + bool bool_value_; + int64_t int64_value_; + uint64_t uint64_value_; + double double_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bytes_value_; + } constant_kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ParsedExpr + +// .google.api.expr.v1beta1.Expr expr = 2 [json_name = "expr"]; +inline bool ParsedExpr::_internal_has_expr() const { + return this != internal_default_instance() && _impl_.expr_ != nullptr; +} +inline bool ParsedExpr::has_expr() const { + return _internal_has_expr(); +} +inline void ParsedExpr::clear_expr() { + if (GetArenaForAllocation() == nullptr && _impl_.expr_ != nullptr) { + delete _impl_.expr_; + } + _impl_.expr_ = nullptr; +} +inline const ::google::api::expr::v1beta1::Expr& ParsedExpr::_internal_expr() const { + const ::google::api::expr::v1beta1::Expr* p = _impl_.expr_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1beta1::Expr& ParsedExpr::expr() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.ParsedExpr.expr) + return _internal_expr(); +} +inline void ParsedExpr::unsafe_arena_set_allocated_expr( + ::google::api::expr::v1beta1::Expr* expr) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.expr_); + } + _impl_.expr_ = expr; + if (expr) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.ParsedExpr.expr) +} +inline ::google::api::expr::v1beta1::Expr* ParsedExpr::release_expr() { + + ::google::api::expr::v1beta1::Expr* temp = _impl_.expr_; + _impl_.expr_ = 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 ::google::api::expr::v1beta1::Expr* ParsedExpr::unsafe_arena_release_expr() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.ParsedExpr.expr) + + ::google::api::expr::v1beta1::Expr* temp = _impl_.expr_; + _impl_.expr_ = nullptr; + return temp; +} +inline ::google::api::expr::v1beta1::Expr* ParsedExpr::_internal_mutable_expr() { + + if (_impl_.expr_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArenaForAllocation()); + _impl_.expr_ = p; + } + return _impl_.expr_; +} +inline ::google::api::expr::v1beta1::Expr* ParsedExpr::mutable_expr() { + ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_expr(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.ParsedExpr.expr) + return _msg; +} +inline void ParsedExpr::set_allocated_expr(::google::api::expr::v1beta1::Expr* expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.expr_; + } + if (expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(expr); + if (message_arena != submessage_arena) { + expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, expr, submessage_arena); + } + + } else { + + } + _impl_.expr_ = expr; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.ParsedExpr.expr) +} + +// .google.api.expr.v1beta1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; +inline bool ParsedExpr::_internal_has_source_info() const { + return this != internal_default_instance() && _impl_.source_info_ != nullptr; +} +inline bool ParsedExpr::has_source_info() const { + return _internal_has_source_info(); +} +inline const ::google::api::expr::v1beta1::SourceInfo& ParsedExpr::_internal_source_info() const { + const ::google::api::expr::v1beta1::SourceInfo* p = _impl_.source_info_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_SourceInfo_default_instance_); +} +inline const ::google::api::expr::v1beta1::SourceInfo& ParsedExpr::source_info() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.ParsedExpr.source_info) + return _internal_source_info(); +} +inline void ParsedExpr::unsafe_arena_set_allocated_source_info( + ::google::api::expr::v1beta1::SourceInfo* source_info) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.source_info_); + } + _impl_.source_info_ = source_info; + if (source_info) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.ParsedExpr.source_info) +} +inline ::google::api::expr::v1beta1::SourceInfo* ParsedExpr::release_source_info() { + + ::google::api::expr::v1beta1::SourceInfo* temp = _impl_.source_info_; + _impl_.source_info_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::google::api::expr::v1beta1::SourceInfo* ParsedExpr::unsafe_arena_release_source_info() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.ParsedExpr.source_info) + + ::google::api::expr::v1beta1::SourceInfo* temp = _impl_.source_info_; + _impl_.source_info_ = nullptr; + return temp; +} +inline ::google::api::expr::v1beta1::SourceInfo* ParsedExpr::_internal_mutable_source_info() { + + if (_impl_.source_info_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::SourceInfo>(GetArenaForAllocation()); + _impl_.source_info_ = p; + } + return _impl_.source_info_; +} +inline ::google::api::expr::v1beta1::SourceInfo* ParsedExpr::mutable_source_info() { + ::google::api::expr::v1beta1::SourceInfo* _msg = _internal_mutable_source_info(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.ParsedExpr.source_info) + return _msg; +} +inline void ParsedExpr::set_allocated_source_info(::google::api::expr::v1beta1::SourceInfo* source_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.source_info_); + } + if (source_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_info)); + if (message_arena != submessage_arena) { + source_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, source_info, submessage_arena); + } + + } else { + + } + _impl_.source_info_ = source_info; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.ParsedExpr.source_info) +} + +// string syntax_version = 4 [json_name = "syntaxVersion"]; +inline void ParsedExpr::clear_syntax_version() { + _impl_.syntax_version_.ClearToEmpty(); +} +inline const std::string& ParsedExpr::syntax_version() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.ParsedExpr.syntax_version) + return _internal_syntax_version(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ParsedExpr::set_syntax_version(ArgT0&& arg0, ArgT... args) { + + _impl_.syntax_version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.ParsedExpr.syntax_version) +} +inline std::string* ParsedExpr::mutable_syntax_version() { + std::string* _s = _internal_mutable_syntax_version(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.ParsedExpr.syntax_version) + return _s; +} +inline const std::string& ParsedExpr::_internal_syntax_version() const { + return _impl_.syntax_version_.Get(); +} +inline void ParsedExpr::_internal_set_syntax_version(const std::string& value) { + + _impl_.syntax_version_.Set(value, GetArenaForAllocation()); +} +inline std::string* ParsedExpr::_internal_mutable_syntax_version() { + + return _impl_.syntax_version_.Mutable(GetArenaForAllocation()); +} +inline std::string* ParsedExpr::release_syntax_version() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.ParsedExpr.syntax_version) + return _impl_.syntax_version_.Release(); +} +inline void ParsedExpr::set_allocated_syntax_version(std::string* syntax_version) { + if (syntax_version != nullptr) { + + } else { + + } + _impl_.syntax_version_.SetAllocated(syntax_version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.syntax_version_.IsDefault()) { + _impl_.syntax_version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.ParsedExpr.syntax_version) +} + +// ------------------------------------------------------------------- + +// Expr_Ident + +// string name = 1 [json_name = "name"]; +inline void Expr_Ident::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& Expr_Ident::name() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Ident.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_Ident::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Expr.Ident.name) +} +inline std::string* Expr_Ident::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Ident.name) + return _s; +} +inline const std::string& Expr_Ident::_internal_name() const { + return _impl_.name_.Get(); +} +inline void Expr_Ident::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Expr_Ident::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* Expr_Ident::release_name() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Ident.name) + return _impl_.name_.Release(); +} +inline void Expr_Ident::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Ident.name) +} + +// ------------------------------------------------------------------- + +// Expr_Select + +// .google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"]; +inline bool Expr_Select::_internal_has_operand() const { + return this != internal_default_instance() && _impl_.operand_ != nullptr; +} +inline bool Expr_Select::has_operand() const { + return _internal_has_operand(); +} +inline void Expr_Select::clear_operand() { + if (GetArenaForAllocation() == nullptr && _impl_.operand_ != nullptr) { + delete _impl_.operand_; + } + _impl_.operand_ = nullptr; +} +inline const ::google::api::expr::v1beta1::Expr& Expr_Select::_internal_operand() const { + const ::google::api::expr::v1beta1::Expr* p = _impl_.operand_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1beta1::Expr& Expr_Select::operand() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Select.operand) + return _internal_operand(); +} +inline void Expr_Select::unsafe_arena_set_allocated_operand( + ::google::api::expr::v1beta1::Expr* operand) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.operand_); + } + _impl_.operand_ = operand; + if (operand) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.Select.operand) +} +inline ::google::api::expr::v1beta1::Expr* Expr_Select::release_operand() { + + ::google::api::expr::v1beta1::Expr* temp = _impl_.operand_; + _impl_.operand_ = 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 ::google::api::expr::v1beta1::Expr* Expr_Select::unsafe_arena_release_operand() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Select.operand) + + ::google::api::expr::v1beta1::Expr* temp = _impl_.operand_; + _impl_.operand_ = nullptr; + return temp; +} +inline ::google::api::expr::v1beta1::Expr* Expr_Select::_internal_mutable_operand() { + + if (_impl_.operand_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArenaForAllocation()); + _impl_.operand_ = p; + } + return _impl_.operand_; +} +inline ::google::api::expr::v1beta1::Expr* Expr_Select::mutable_operand() { + ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_operand(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Select.operand) + return _msg; +} +inline void Expr_Select::set_allocated_operand(::google::api::expr::v1beta1::Expr* operand) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.operand_; + } + if (operand) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(operand); + if (message_arena != submessage_arena) { + operand = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, operand, submessage_arena); + } + + } else { + + } + _impl_.operand_ = operand; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Select.operand) +} + +// string field = 2 [json_name = "field"]; +inline void Expr_Select::clear_field() { + _impl_.field_.ClearToEmpty(); +} +inline const std::string& Expr_Select::field() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Select.field) + return _internal_field(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_Select::set_field(ArgT0&& arg0, ArgT... args) { + + _impl_.field_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Expr.Select.field) +} +inline std::string* Expr_Select::mutable_field() { + std::string* _s = _internal_mutable_field(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Select.field) + return _s; +} +inline const std::string& Expr_Select::_internal_field() const { + return _impl_.field_.Get(); +} +inline void Expr_Select::_internal_set_field(const std::string& value) { + + _impl_.field_.Set(value, GetArenaForAllocation()); +} +inline std::string* Expr_Select::_internal_mutable_field() { + + return _impl_.field_.Mutable(GetArenaForAllocation()); +} +inline std::string* Expr_Select::release_field() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Select.field) + return _impl_.field_.Release(); +} +inline void Expr_Select::set_allocated_field(std::string* field) { + if (field != nullptr) { + + } else { + + } + _impl_.field_.SetAllocated(field, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.field_.IsDefault()) { + _impl_.field_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Select.field) +} + +// bool test_only = 3 [json_name = "testOnly"]; +inline void Expr_Select::clear_test_only() { + _impl_.test_only_ = false; +} +inline bool Expr_Select::_internal_test_only() const { + return _impl_.test_only_; +} +inline bool Expr_Select::test_only() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Select.test_only) + return _internal_test_only(); +} +inline void Expr_Select::_internal_set_test_only(bool value) { + + _impl_.test_only_ = value; +} +inline void Expr_Select::set_test_only(bool value) { + _internal_set_test_only(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Expr.Select.test_only) +} + +// ------------------------------------------------------------------- + +// Expr_Call + +// .google.api.expr.v1beta1.Expr target = 1 [json_name = "target"]; +inline bool Expr_Call::_internal_has_target() const { + return this != internal_default_instance() && _impl_.target_ != nullptr; +} +inline bool Expr_Call::has_target() const { + return _internal_has_target(); +} +inline void Expr_Call::clear_target() { + if (GetArenaForAllocation() == nullptr && _impl_.target_ != nullptr) { + delete _impl_.target_; + } + _impl_.target_ = nullptr; +} +inline const ::google::api::expr::v1beta1::Expr& Expr_Call::_internal_target() const { + const ::google::api::expr::v1beta1::Expr* p = _impl_.target_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1beta1::Expr& Expr_Call::target() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Call.target) + return _internal_target(); +} +inline void Expr_Call::unsafe_arena_set_allocated_target( + ::google::api::expr::v1beta1::Expr* target) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.target_); + } + _impl_.target_ = target; + if (target) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.Call.target) +} +inline ::google::api::expr::v1beta1::Expr* Expr_Call::release_target() { + + ::google::api::expr::v1beta1::Expr* temp = _impl_.target_; + _impl_.target_ = 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 ::google::api::expr::v1beta1::Expr* Expr_Call::unsafe_arena_release_target() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Call.target) + + ::google::api::expr::v1beta1::Expr* temp = _impl_.target_; + _impl_.target_ = nullptr; + return temp; +} +inline ::google::api::expr::v1beta1::Expr* Expr_Call::_internal_mutable_target() { + + if (_impl_.target_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArenaForAllocation()); + _impl_.target_ = p; + } + return _impl_.target_; +} +inline ::google::api::expr::v1beta1::Expr* Expr_Call::mutable_target() { + ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_target(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Call.target) + return _msg; +} +inline void Expr_Call::set_allocated_target(::google::api::expr::v1beta1::Expr* target) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.target_; + } + if (target) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(target); + if (message_arena != submessage_arena) { + target = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, target, submessage_arena); + } + + } else { + + } + _impl_.target_ = target; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Call.target) +} + +// string function = 2 [json_name = "function"]; +inline void Expr_Call::clear_function() { + _impl_.function_.ClearToEmpty(); +} +inline const std::string& Expr_Call::function() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Call.function) + return _internal_function(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_Call::set_function(ArgT0&& arg0, ArgT... args) { + + _impl_.function_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Expr.Call.function) +} +inline std::string* Expr_Call::mutable_function() { + std::string* _s = _internal_mutable_function(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Call.function) + return _s; +} +inline const std::string& Expr_Call::_internal_function() const { + return _impl_.function_.Get(); +} +inline void Expr_Call::_internal_set_function(const std::string& value) { + + _impl_.function_.Set(value, GetArenaForAllocation()); +} +inline std::string* Expr_Call::_internal_mutable_function() { + + return _impl_.function_.Mutable(GetArenaForAllocation()); +} +inline std::string* Expr_Call::release_function() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Call.function) + return _impl_.function_.Release(); +} +inline void Expr_Call::set_allocated_function(std::string* function) { + if (function != nullptr) { + + } else { + + } + _impl_.function_.SetAllocated(function, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.function_.IsDefault()) { + _impl_.function_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Call.function) +} + +// repeated .google.api.expr.v1beta1.Expr args = 3 [json_name = "args"]; +inline int Expr_Call::_internal_args_size() const { + return _impl_.args_.size(); +} +inline int Expr_Call::args_size() const { + return _internal_args_size(); +} +inline void Expr_Call::clear_args() { + _impl_.args_.Clear(); +} +inline ::google::api::expr::v1beta1::Expr* Expr_Call::mutable_args(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Call.args) + return _impl_.args_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr >* +Expr_Call::mutable_args() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.Expr.Call.args) + return &_impl_.args_; +} +inline const ::google::api::expr::v1beta1::Expr& Expr_Call::_internal_args(int index) const { + return _impl_.args_.Get(index); +} +inline const ::google::api::expr::v1beta1::Expr& Expr_Call::args(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Call.args) + return _internal_args(index); +} +inline ::google::api::expr::v1beta1::Expr* Expr_Call::_internal_add_args() { + return _impl_.args_.Add(); +} +inline ::google::api::expr::v1beta1::Expr* Expr_Call::add_args() { + ::google::api::expr::v1beta1::Expr* _add = _internal_add_args(); + // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.Expr.Call.args) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr >& +Expr_Call::args() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.Expr.Call.args) + return _impl_.args_; +} + +// ------------------------------------------------------------------- + +// Expr_CreateList + +// repeated .google.api.expr.v1beta1.Expr elements = 1 [json_name = "elements"]; +inline int Expr_CreateList::_internal_elements_size() const { + return _impl_.elements_.size(); +} +inline int Expr_CreateList::elements_size() const { + return _internal_elements_size(); +} +inline void Expr_CreateList::clear_elements() { + _impl_.elements_.Clear(); +} +inline ::google::api::expr::v1beta1::Expr* Expr_CreateList::mutable_elements(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.CreateList.elements) + return _impl_.elements_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr >* +Expr_CreateList::mutable_elements() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.Expr.CreateList.elements) + return &_impl_.elements_; +} +inline const ::google::api::expr::v1beta1::Expr& Expr_CreateList::_internal_elements(int index) const { + return _impl_.elements_.Get(index); +} +inline const ::google::api::expr::v1beta1::Expr& Expr_CreateList::elements(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.CreateList.elements) + return _internal_elements(index); +} +inline ::google::api::expr::v1beta1::Expr* Expr_CreateList::_internal_add_elements() { + return _impl_.elements_.Add(); +} +inline ::google::api::expr::v1beta1::Expr* Expr_CreateList::add_elements() { + ::google::api::expr::v1beta1::Expr* _add = _internal_add_elements(); + // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.Expr.CreateList.elements) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr >& +Expr_CreateList::elements() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.Expr.CreateList.elements) + return _impl_.elements_; +} + +// ------------------------------------------------------------------- + +// Expr_CreateStruct_Entry + +// int32 id = 1 [json_name = "id"]; +inline void Expr_CreateStruct_Entry::clear_id() { + _impl_.id_ = 0; +} +inline int32_t Expr_CreateStruct_Entry::_internal_id() const { + return _impl_.id_; +} +inline int32_t Expr_CreateStruct_Entry::id() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.CreateStruct.Entry.id) + return _internal_id(); +} +inline void Expr_CreateStruct_Entry::_internal_set_id(int32_t value) { + + _impl_.id_ = value; +} +inline void Expr_CreateStruct_Entry::set_id(int32_t value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Expr.CreateStruct.Entry.id) +} + +// string field_key = 2 [json_name = "fieldKey"]; +inline bool Expr_CreateStruct_Entry::_internal_has_field_key() const { + return key_kind_case() == kFieldKey; +} +inline bool Expr_CreateStruct_Entry::has_field_key() const { + return _internal_has_field_key(); +} +inline void Expr_CreateStruct_Entry::set_has_field_key() { + _impl_._oneof_case_[0] = kFieldKey; +} +inline void Expr_CreateStruct_Entry::clear_field_key() { + if (_internal_has_field_key()) { + _impl_.key_kind_.field_key_.Destroy(); + clear_has_key_kind(); + } +} +inline const std::string& Expr_CreateStruct_Entry::field_key() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.CreateStruct.Entry.field_key) + return _internal_field_key(); +} +template +inline void Expr_CreateStruct_Entry::set_field_key(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_field_key()) { + clear_key_kind(); + set_has_field_key(); + _impl_.key_kind_.field_key_.InitDefault(); + } + _impl_.key_kind_.field_key_.Set( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Expr.CreateStruct.Entry.field_key) +} +inline std::string* Expr_CreateStruct_Entry::mutable_field_key() { + std::string* _s = _internal_mutable_field_key(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.CreateStruct.Entry.field_key) + return _s; +} +inline const std::string& Expr_CreateStruct_Entry::_internal_field_key() const { + if (_internal_has_field_key()) { + return _impl_.key_kind_.field_key_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void Expr_CreateStruct_Entry::_internal_set_field_key(const std::string& value) { + if (!_internal_has_field_key()) { + clear_key_kind(); + set_has_field_key(); + _impl_.key_kind_.field_key_.InitDefault(); + } + _impl_.key_kind_.field_key_.Set(value, GetArenaForAllocation()); +} +inline std::string* Expr_CreateStruct_Entry::_internal_mutable_field_key() { + if (!_internal_has_field_key()) { + clear_key_kind(); + set_has_field_key(); + _impl_.key_kind_.field_key_.InitDefault(); + } + return _impl_.key_kind_.field_key_.Mutable( GetArenaForAllocation()); +} +inline std::string* Expr_CreateStruct_Entry::release_field_key() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.CreateStruct.Entry.field_key) + if (_internal_has_field_key()) { + clear_has_key_kind(); + return _impl_.key_kind_.field_key_.Release(); + } else { + return nullptr; + } +} +inline void Expr_CreateStruct_Entry::set_allocated_field_key(std::string* field_key) { + if (has_key_kind()) { + clear_key_kind(); + } + if (field_key != nullptr) { + set_has_field_key(); + _impl_.key_kind_.field_key_.InitAllocated(field_key, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.CreateStruct.Entry.field_key) +} + +// .google.api.expr.v1beta1.Expr map_key = 3 [json_name = "mapKey"]; +inline bool Expr_CreateStruct_Entry::_internal_has_map_key() const { + return key_kind_case() == kMapKey; +} +inline bool Expr_CreateStruct_Entry::has_map_key() const { + return _internal_has_map_key(); +} +inline void Expr_CreateStruct_Entry::set_has_map_key() { + _impl_._oneof_case_[0] = kMapKey; +} +inline void Expr_CreateStruct_Entry::clear_map_key() { + if (_internal_has_map_key()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.key_kind_.map_key_; + } + clear_has_key_kind(); + } +} +inline ::google::api::expr::v1beta1::Expr* Expr_CreateStruct_Entry::release_map_key() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.CreateStruct.Entry.map_key) + if (_internal_has_map_key()) { + clear_has_key_kind(); + ::google::api::expr::v1beta1::Expr* temp = _impl_.key_kind_.map_key_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.key_kind_.map_key_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1beta1::Expr& Expr_CreateStruct_Entry::_internal_map_key() const { + return _internal_has_map_key() + ? *_impl_.key_kind_.map_key_ + : reinterpret_cast< ::google::api::expr::v1beta1::Expr&>(::google::api::expr::v1beta1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1beta1::Expr& Expr_CreateStruct_Entry::map_key() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.CreateStruct.Entry.map_key) + return _internal_map_key(); +} +inline ::google::api::expr::v1beta1::Expr* Expr_CreateStruct_Entry::unsafe_arena_release_map_key() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Expr.CreateStruct.Entry.map_key) + if (_internal_has_map_key()) { + clear_has_key_kind(); + ::google::api::expr::v1beta1::Expr* temp = _impl_.key_kind_.map_key_; + _impl_.key_kind_.map_key_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Expr_CreateStruct_Entry::unsafe_arena_set_allocated_map_key(::google::api::expr::v1beta1::Expr* map_key) { + clear_key_kind(); + if (map_key) { + set_has_map_key(); + _impl_.key_kind_.map_key_ = map_key; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.CreateStruct.Entry.map_key) +} +inline ::google::api::expr::v1beta1::Expr* Expr_CreateStruct_Entry::_internal_mutable_map_key() { + if (!_internal_has_map_key()) { + clear_key_kind(); + set_has_map_key(); + _impl_.key_kind_.map_key_ = CreateMaybeMessage< ::google::api::expr::v1beta1::Expr >(GetArenaForAllocation()); + } + return _impl_.key_kind_.map_key_; +} +inline ::google::api::expr::v1beta1::Expr* Expr_CreateStruct_Entry::mutable_map_key() { + ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_map_key(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.CreateStruct.Entry.map_key) + return _msg; +} + +// .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; +inline bool Expr_CreateStruct_Entry::_internal_has_value() const { + return this != internal_default_instance() && _impl_.value_ != nullptr; +} +inline bool Expr_CreateStruct_Entry::has_value() const { + return _internal_has_value(); +} +inline void Expr_CreateStruct_Entry::clear_value() { + if (GetArenaForAllocation() == nullptr && _impl_.value_ != nullptr) { + delete _impl_.value_; + } + _impl_.value_ = nullptr; +} +inline const ::google::api::expr::v1beta1::Expr& Expr_CreateStruct_Entry::_internal_value() const { + const ::google::api::expr::v1beta1::Expr* p = _impl_.value_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1beta1::Expr& Expr_CreateStruct_Entry::value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.CreateStruct.Entry.value) + return _internal_value(); +} +inline void Expr_CreateStruct_Entry::unsafe_arena_set_allocated_value( + ::google::api::expr::v1beta1::Expr* value) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.value_); + } + _impl_.value_ = value; + if (value) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.CreateStruct.Entry.value) +} +inline ::google::api::expr::v1beta1::Expr* Expr_CreateStruct_Entry::release_value() { + + ::google::api::expr::v1beta1::Expr* temp = _impl_.value_; + _impl_.value_ = 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 ::google::api::expr::v1beta1::Expr* Expr_CreateStruct_Entry::unsafe_arena_release_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.CreateStruct.Entry.value) + + ::google::api::expr::v1beta1::Expr* temp = _impl_.value_; + _impl_.value_ = nullptr; + return temp; +} +inline ::google::api::expr::v1beta1::Expr* Expr_CreateStruct_Entry::_internal_mutable_value() { + + if (_impl_.value_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArenaForAllocation()); + _impl_.value_ = p; + } + return _impl_.value_; +} +inline ::google::api::expr::v1beta1::Expr* Expr_CreateStruct_Entry::mutable_value() { + ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.CreateStruct.Entry.value) + return _msg; +} +inline void Expr_CreateStruct_Entry::set_allocated_value(::google::api::expr::v1beta1::Expr* value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.value_; + } + if (value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(value); + if (message_arena != submessage_arena) { + value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + + } else { + + } + _impl_.value_ = value; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.CreateStruct.Entry.value) +} + +inline bool Expr_CreateStruct_Entry::has_key_kind() const { + return key_kind_case() != KEY_KIND_NOT_SET; +} +inline void Expr_CreateStruct_Entry::clear_has_key_kind() { + _impl_._oneof_case_[0] = KEY_KIND_NOT_SET; +} +inline Expr_CreateStruct_Entry::KeyKindCase Expr_CreateStruct_Entry::key_kind_case() const { + return Expr_CreateStruct_Entry::KeyKindCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// Expr_CreateStruct + +// string type = 1 [json_name = "type"]; +inline void Expr_CreateStruct::clear_type() { + _impl_.type_.ClearToEmpty(); +} +inline const std::string& Expr_CreateStruct::type() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.CreateStruct.type) + return _internal_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_CreateStruct::set_type(ArgT0&& arg0, ArgT... args) { + + _impl_.type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Expr.CreateStruct.type) +} +inline std::string* Expr_CreateStruct::mutable_type() { + std::string* _s = _internal_mutable_type(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.CreateStruct.type) + return _s; +} +inline const std::string& Expr_CreateStruct::_internal_type() const { + return _impl_.type_.Get(); +} +inline void Expr_CreateStruct::_internal_set_type(const std::string& value) { + + _impl_.type_.Set(value, GetArenaForAllocation()); +} +inline std::string* Expr_CreateStruct::_internal_mutable_type() { + + return _impl_.type_.Mutable(GetArenaForAllocation()); +} +inline std::string* Expr_CreateStruct::release_type() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.CreateStruct.type) + return _impl_.type_.Release(); +} +inline void Expr_CreateStruct::set_allocated_type(std::string* type) { + if (type != nullptr) { + + } else { + + } + _impl_.type_.SetAllocated(type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.type_.IsDefault()) { + _impl_.type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.CreateStruct.type) +} + +// repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; +inline int Expr_CreateStruct::_internal_entries_size() const { + return _impl_.entries_.size(); +} +inline int Expr_CreateStruct::entries_size() const { + return _internal_entries_size(); +} +inline void Expr_CreateStruct::clear_entries() { + _impl_.entries_.Clear(); +} +inline ::google::api::expr::v1beta1::Expr_CreateStruct_Entry* Expr_CreateStruct::mutable_entries(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.CreateStruct.entries) + return _impl_.entries_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr_CreateStruct_Entry >* +Expr_CreateStruct::mutable_entries() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.Expr.CreateStruct.entries) + return &_impl_.entries_; +} +inline const ::google::api::expr::v1beta1::Expr_CreateStruct_Entry& Expr_CreateStruct::_internal_entries(int index) const { + return _impl_.entries_.Get(index); +} +inline const ::google::api::expr::v1beta1::Expr_CreateStruct_Entry& Expr_CreateStruct::entries(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.CreateStruct.entries) + return _internal_entries(index); +} +inline ::google::api::expr::v1beta1::Expr_CreateStruct_Entry* Expr_CreateStruct::_internal_add_entries() { + return _impl_.entries_.Add(); +} +inline ::google::api::expr::v1beta1::Expr_CreateStruct_Entry* Expr_CreateStruct::add_entries() { + ::google::api::expr::v1beta1::Expr_CreateStruct_Entry* _add = _internal_add_entries(); + // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.Expr.CreateStruct.entries) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr_CreateStruct_Entry >& +Expr_CreateStruct::entries() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.Expr.CreateStruct.entries) + return _impl_.entries_; +} + +// ------------------------------------------------------------------- + +// Expr_Comprehension + +// string iter_var = 1 [json_name = "iterVar"]; +inline void Expr_Comprehension::clear_iter_var() { + _impl_.iter_var_.ClearToEmpty(); +} +inline const std::string& Expr_Comprehension::iter_var() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Comprehension.iter_var) + return _internal_iter_var(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_Comprehension::set_iter_var(ArgT0&& arg0, ArgT... args) { + + _impl_.iter_var_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Expr.Comprehension.iter_var) +} +inline std::string* Expr_Comprehension::mutable_iter_var() { + std::string* _s = _internal_mutable_iter_var(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Comprehension.iter_var) + return _s; +} +inline const std::string& Expr_Comprehension::_internal_iter_var() const { + return _impl_.iter_var_.Get(); +} +inline void Expr_Comprehension::_internal_set_iter_var(const std::string& value) { + + _impl_.iter_var_.Set(value, GetArenaForAllocation()); +} +inline std::string* Expr_Comprehension::_internal_mutable_iter_var() { + + return _impl_.iter_var_.Mutable(GetArenaForAllocation()); +} +inline std::string* Expr_Comprehension::release_iter_var() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Comprehension.iter_var) + return _impl_.iter_var_.Release(); +} +inline void Expr_Comprehension::set_allocated_iter_var(std::string* iter_var) { + if (iter_var != nullptr) { + + } else { + + } + _impl_.iter_var_.SetAllocated(iter_var, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.iter_var_.IsDefault()) { + _impl_.iter_var_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.iter_var) +} + +// .google.api.expr.v1beta1.Expr iter_range = 2 [json_name = "iterRange"]; +inline bool Expr_Comprehension::_internal_has_iter_range() const { + return this != internal_default_instance() && _impl_.iter_range_ != nullptr; +} +inline bool Expr_Comprehension::has_iter_range() const { + return _internal_has_iter_range(); +} +inline void Expr_Comprehension::clear_iter_range() { + if (GetArenaForAllocation() == nullptr && _impl_.iter_range_ != nullptr) { + delete _impl_.iter_range_; + } + _impl_.iter_range_ = nullptr; +} +inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::_internal_iter_range() const { + const ::google::api::expr::v1beta1::Expr* p = _impl_.iter_range_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::iter_range() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Comprehension.iter_range) + return _internal_iter_range(); +} +inline void Expr_Comprehension::unsafe_arena_set_allocated_iter_range( + ::google::api::expr::v1beta1::Expr* iter_range) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.iter_range_); + } + _impl_.iter_range_ = iter_range; + if (iter_range) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.iter_range) +} +inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::release_iter_range() { + + ::google::api::expr::v1beta1::Expr* temp = _impl_.iter_range_; + _impl_.iter_range_ = 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 ::google::api::expr::v1beta1::Expr* Expr_Comprehension::unsafe_arena_release_iter_range() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Comprehension.iter_range) + + ::google::api::expr::v1beta1::Expr* temp = _impl_.iter_range_; + _impl_.iter_range_ = nullptr; + return temp; +} +inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::_internal_mutable_iter_range() { + + if (_impl_.iter_range_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArenaForAllocation()); + _impl_.iter_range_ = p; + } + return _impl_.iter_range_; +} +inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::mutable_iter_range() { + ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_iter_range(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Comprehension.iter_range) + return _msg; +} +inline void Expr_Comprehension::set_allocated_iter_range(::google::api::expr::v1beta1::Expr* iter_range) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.iter_range_; + } + if (iter_range) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(iter_range); + if (message_arena != submessage_arena) { + iter_range = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, iter_range, submessage_arena); + } + + } else { + + } + _impl_.iter_range_ = iter_range; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.iter_range) +} + +// string accu_var = 3 [json_name = "accuVar"]; +inline void Expr_Comprehension::clear_accu_var() { + _impl_.accu_var_.ClearToEmpty(); +} +inline const std::string& Expr_Comprehension::accu_var() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Comprehension.accu_var) + return _internal_accu_var(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_Comprehension::set_accu_var(ArgT0&& arg0, ArgT... args) { + + _impl_.accu_var_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Expr.Comprehension.accu_var) +} +inline std::string* Expr_Comprehension::mutable_accu_var() { + std::string* _s = _internal_mutable_accu_var(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Comprehension.accu_var) + return _s; +} +inline const std::string& Expr_Comprehension::_internal_accu_var() const { + return _impl_.accu_var_.Get(); +} +inline void Expr_Comprehension::_internal_set_accu_var(const std::string& value) { + + _impl_.accu_var_.Set(value, GetArenaForAllocation()); +} +inline std::string* Expr_Comprehension::_internal_mutable_accu_var() { + + return _impl_.accu_var_.Mutable(GetArenaForAllocation()); +} +inline std::string* Expr_Comprehension::release_accu_var() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Comprehension.accu_var) + return _impl_.accu_var_.Release(); +} +inline void Expr_Comprehension::set_allocated_accu_var(std::string* accu_var) { + if (accu_var != nullptr) { + + } else { + + } + _impl_.accu_var_.SetAllocated(accu_var, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.accu_var_.IsDefault()) { + _impl_.accu_var_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.accu_var) +} + +// .google.api.expr.v1beta1.Expr accu_init = 4 [json_name = "accuInit"]; +inline bool Expr_Comprehension::_internal_has_accu_init() const { + return this != internal_default_instance() && _impl_.accu_init_ != nullptr; +} +inline bool Expr_Comprehension::has_accu_init() const { + return _internal_has_accu_init(); +} +inline void Expr_Comprehension::clear_accu_init() { + if (GetArenaForAllocation() == nullptr && _impl_.accu_init_ != nullptr) { + delete _impl_.accu_init_; + } + _impl_.accu_init_ = nullptr; +} +inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::_internal_accu_init() const { + const ::google::api::expr::v1beta1::Expr* p = _impl_.accu_init_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::accu_init() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Comprehension.accu_init) + return _internal_accu_init(); +} +inline void Expr_Comprehension::unsafe_arena_set_allocated_accu_init( + ::google::api::expr::v1beta1::Expr* accu_init) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.accu_init_); + } + _impl_.accu_init_ = accu_init; + if (accu_init) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.accu_init) +} +inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::release_accu_init() { + + ::google::api::expr::v1beta1::Expr* temp = _impl_.accu_init_; + _impl_.accu_init_ = 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 ::google::api::expr::v1beta1::Expr* Expr_Comprehension::unsafe_arena_release_accu_init() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Comprehension.accu_init) + + ::google::api::expr::v1beta1::Expr* temp = _impl_.accu_init_; + _impl_.accu_init_ = nullptr; + return temp; +} +inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::_internal_mutable_accu_init() { + + if (_impl_.accu_init_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArenaForAllocation()); + _impl_.accu_init_ = p; + } + return _impl_.accu_init_; +} +inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::mutable_accu_init() { + ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_accu_init(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Comprehension.accu_init) + return _msg; +} +inline void Expr_Comprehension::set_allocated_accu_init(::google::api::expr::v1beta1::Expr* accu_init) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.accu_init_; + } + if (accu_init) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(accu_init); + if (message_arena != submessage_arena) { + accu_init = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, accu_init, submessage_arena); + } + + } else { + + } + _impl_.accu_init_ = accu_init; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.accu_init) +} + +// .google.api.expr.v1beta1.Expr loop_condition = 5 [json_name = "loopCondition"]; +inline bool Expr_Comprehension::_internal_has_loop_condition() const { + return this != internal_default_instance() && _impl_.loop_condition_ != nullptr; +} +inline bool Expr_Comprehension::has_loop_condition() const { + return _internal_has_loop_condition(); +} +inline void Expr_Comprehension::clear_loop_condition() { + if (GetArenaForAllocation() == nullptr && _impl_.loop_condition_ != nullptr) { + delete _impl_.loop_condition_; + } + _impl_.loop_condition_ = nullptr; +} +inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::_internal_loop_condition() const { + const ::google::api::expr::v1beta1::Expr* p = _impl_.loop_condition_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::loop_condition() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Comprehension.loop_condition) + return _internal_loop_condition(); +} +inline void Expr_Comprehension::unsafe_arena_set_allocated_loop_condition( + ::google::api::expr::v1beta1::Expr* loop_condition) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.loop_condition_); + } + _impl_.loop_condition_ = loop_condition; + if (loop_condition) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.loop_condition) +} +inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::release_loop_condition() { + + ::google::api::expr::v1beta1::Expr* temp = _impl_.loop_condition_; + _impl_.loop_condition_ = 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 ::google::api::expr::v1beta1::Expr* Expr_Comprehension::unsafe_arena_release_loop_condition() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Comprehension.loop_condition) + + ::google::api::expr::v1beta1::Expr* temp = _impl_.loop_condition_; + _impl_.loop_condition_ = nullptr; + return temp; +} +inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::_internal_mutable_loop_condition() { + + if (_impl_.loop_condition_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArenaForAllocation()); + _impl_.loop_condition_ = p; + } + return _impl_.loop_condition_; +} +inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::mutable_loop_condition() { + ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_loop_condition(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Comprehension.loop_condition) + return _msg; +} +inline void Expr_Comprehension::set_allocated_loop_condition(::google::api::expr::v1beta1::Expr* loop_condition) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.loop_condition_; + } + if (loop_condition) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(loop_condition); + if (message_arena != submessage_arena) { + loop_condition = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, loop_condition, submessage_arena); + } + + } else { + + } + _impl_.loop_condition_ = loop_condition; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.loop_condition) +} + +// .google.api.expr.v1beta1.Expr loop_step = 6 [json_name = "loopStep"]; +inline bool Expr_Comprehension::_internal_has_loop_step() const { + return this != internal_default_instance() && _impl_.loop_step_ != nullptr; +} +inline bool Expr_Comprehension::has_loop_step() const { + return _internal_has_loop_step(); +} +inline void Expr_Comprehension::clear_loop_step() { + if (GetArenaForAllocation() == nullptr && _impl_.loop_step_ != nullptr) { + delete _impl_.loop_step_; + } + _impl_.loop_step_ = nullptr; +} +inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::_internal_loop_step() const { + const ::google::api::expr::v1beta1::Expr* p = _impl_.loop_step_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::loop_step() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Comprehension.loop_step) + return _internal_loop_step(); +} +inline void Expr_Comprehension::unsafe_arena_set_allocated_loop_step( + ::google::api::expr::v1beta1::Expr* loop_step) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.loop_step_); + } + _impl_.loop_step_ = loop_step; + if (loop_step) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.loop_step) +} +inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::release_loop_step() { + + ::google::api::expr::v1beta1::Expr* temp = _impl_.loop_step_; + _impl_.loop_step_ = 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 ::google::api::expr::v1beta1::Expr* Expr_Comprehension::unsafe_arena_release_loop_step() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Comprehension.loop_step) + + ::google::api::expr::v1beta1::Expr* temp = _impl_.loop_step_; + _impl_.loop_step_ = nullptr; + return temp; +} +inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::_internal_mutable_loop_step() { + + if (_impl_.loop_step_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArenaForAllocation()); + _impl_.loop_step_ = p; + } + return _impl_.loop_step_; +} +inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::mutable_loop_step() { + ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_loop_step(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Comprehension.loop_step) + return _msg; +} +inline void Expr_Comprehension::set_allocated_loop_step(::google::api::expr::v1beta1::Expr* loop_step) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.loop_step_; + } + if (loop_step) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(loop_step); + if (message_arena != submessage_arena) { + loop_step = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, loop_step, submessage_arena); + } + + } else { + + } + _impl_.loop_step_ = loop_step; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.loop_step) +} + +// .google.api.expr.v1beta1.Expr result = 7 [json_name = "result"]; +inline bool Expr_Comprehension::_internal_has_result() const { + return this != internal_default_instance() && _impl_.result_ != nullptr; +} +inline bool Expr_Comprehension::has_result() const { + return _internal_has_result(); +} +inline void Expr_Comprehension::clear_result() { + if (GetArenaForAllocation() == nullptr && _impl_.result_ != nullptr) { + delete _impl_.result_; + } + _impl_.result_ = nullptr; +} +inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::_internal_result() const { + const ::google::api::expr::v1beta1::Expr* p = _impl_.result_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Expr_default_instance_); +} +inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::result() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Comprehension.result) + return _internal_result(); +} +inline void Expr_Comprehension::unsafe_arena_set_allocated_result( + ::google::api::expr::v1beta1::Expr* result) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.result_); + } + _impl_.result_ = result; + if (result) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.result) +} +inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::release_result() { + + ::google::api::expr::v1beta1::Expr* temp = _impl_.result_; + _impl_.result_ = 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 ::google::api::expr::v1beta1::Expr* Expr_Comprehension::unsafe_arena_release_result() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Comprehension.result) + + ::google::api::expr::v1beta1::Expr* temp = _impl_.result_; + _impl_.result_ = nullptr; + return temp; +} +inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::_internal_mutable_result() { + + if (_impl_.result_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArenaForAllocation()); + _impl_.result_ = p; + } + return _impl_.result_; +} +inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::mutable_result() { + ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_result(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Comprehension.result) + return _msg; +} +inline void Expr_Comprehension::set_allocated_result(::google::api::expr::v1beta1::Expr* result) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.result_; + } + if (result) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(result); + if (message_arena != submessage_arena) { + result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, result, submessage_arena); + } + + } else { + + } + _impl_.result_ = result; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.result) +} + +// ------------------------------------------------------------------- + +// Expr + +// int32 id = 2 [json_name = "id"]; +inline void Expr::clear_id() { + _impl_.id_ = 0; +} +inline int32_t Expr::_internal_id() const { + return _impl_.id_; +} +inline int32_t Expr::id() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.id) + return _internal_id(); +} +inline void Expr::_internal_set_id(int32_t value) { + + _impl_.id_ = value; +} +inline void Expr::set_id(int32_t value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Expr.id) +} + +// .google.api.expr.v1beta1.Literal literal_expr = 3 [json_name = "literalExpr"]; +inline bool Expr::_internal_has_literal_expr() const { + return expr_kind_case() == kLiteralExpr; +} +inline bool Expr::has_literal_expr() const { + return _internal_has_literal_expr(); +} +inline void Expr::set_has_literal_expr() { + _impl_._oneof_case_[0] = kLiteralExpr; +} +inline void Expr::clear_literal_expr() { + if (_internal_has_literal_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.literal_expr_; + } + clear_has_expr_kind(); + } +} +inline ::google::api::expr::v1beta1::Literal* Expr::release_literal_expr() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.literal_expr) + if (_internal_has_literal_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1beta1::Literal* temp = _impl_.expr_kind_.literal_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.expr_kind_.literal_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1beta1::Literal& Expr::_internal_literal_expr() const { + return _internal_has_literal_expr() + ? *_impl_.expr_kind_.literal_expr_ + : reinterpret_cast< ::google::api::expr::v1beta1::Literal&>(::google::api::expr::v1beta1::_Literal_default_instance_); +} +inline const ::google::api::expr::v1beta1::Literal& Expr::literal_expr() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.literal_expr) + return _internal_literal_expr(); +} +inline ::google::api::expr::v1beta1::Literal* Expr::unsafe_arena_release_literal_expr() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Expr.literal_expr) + if (_internal_has_literal_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1beta1::Literal* temp = _impl_.expr_kind_.literal_expr_; + _impl_.expr_kind_.literal_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Expr::unsafe_arena_set_allocated_literal_expr(::google::api::expr::v1beta1::Literal* literal_expr) { + clear_expr_kind(); + if (literal_expr) { + set_has_literal_expr(); + _impl_.expr_kind_.literal_expr_ = literal_expr; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.literal_expr) +} +inline ::google::api::expr::v1beta1::Literal* Expr::_internal_mutable_literal_expr() { + if (!_internal_has_literal_expr()) { + clear_expr_kind(); + set_has_literal_expr(); + _impl_.expr_kind_.literal_expr_ = CreateMaybeMessage< ::google::api::expr::v1beta1::Literal >(GetArenaForAllocation()); + } + return _impl_.expr_kind_.literal_expr_; +} +inline ::google::api::expr::v1beta1::Literal* Expr::mutable_literal_expr() { + ::google::api::expr::v1beta1::Literal* _msg = _internal_mutable_literal_expr(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.literal_expr) + return _msg; +} + +// .google.api.expr.v1beta1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; +inline bool Expr::_internal_has_ident_expr() const { + return expr_kind_case() == kIdentExpr; +} +inline bool Expr::has_ident_expr() const { + return _internal_has_ident_expr(); +} +inline void Expr::set_has_ident_expr() { + _impl_._oneof_case_[0] = kIdentExpr; +} +inline void Expr::clear_ident_expr() { + if (_internal_has_ident_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.ident_expr_; + } + clear_has_expr_kind(); + } +} +inline ::google::api::expr::v1beta1::Expr_Ident* Expr::release_ident_expr() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.ident_expr) + if (_internal_has_ident_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1beta1::Expr_Ident* temp = _impl_.expr_kind_.ident_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.expr_kind_.ident_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1beta1::Expr_Ident& Expr::_internal_ident_expr() const { + return _internal_has_ident_expr() + ? *_impl_.expr_kind_.ident_expr_ + : reinterpret_cast< ::google::api::expr::v1beta1::Expr_Ident&>(::google::api::expr::v1beta1::_Expr_Ident_default_instance_); +} +inline const ::google::api::expr::v1beta1::Expr_Ident& Expr::ident_expr() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.ident_expr) + return _internal_ident_expr(); +} +inline ::google::api::expr::v1beta1::Expr_Ident* Expr::unsafe_arena_release_ident_expr() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Expr.ident_expr) + if (_internal_has_ident_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1beta1::Expr_Ident* temp = _impl_.expr_kind_.ident_expr_; + _impl_.expr_kind_.ident_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Expr::unsafe_arena_set_allocated_ident_expr(::google::api::expr::v1beta1::Expr_Ident* ident_expr) { + clear_expr_kind(); + if (ident_expr) { + set_has_ident_expr(); + _impl_.expr_kind_.ident_expr_ = ident_expr; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.ident_expr) +} +inline ::google::api::expr::v1beta1::Expr_Ident* Expr::_internal_mutable_ident_expr() { + if (!_internal_has_ident_expr()) { + clear_expr_kind(); + set_has_ident_expr(); + _impl_.expr_kind_.ident_expr_ = CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_Ident >(GetArenaForAllocation()); + } + return _impl_.expr_kind_.ident_expr_; +} +inline ::google::api::expr::v1beta1::Expr_Ident* Expr::mutable_ident_expr() { + ::google::api::expr::v1beta1::Expr_Ident* _msg = _internal_mutable_ident_expr(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.ident_expr) + return _msg; +} + +// .google.api.expr.v1beta1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; +inline bool Expr::_internal_has_select_expr() const { + return expr_kind_case() == kSelectExpr; +} +inline bool Expr::has_select_expr() const { + return _internal_has_select_expr(); +} +inline void Expr::set_has_select_expr() { + _impl_._oneof_case_[0] = kSelectExpr; +} +inline void Expr::clear_select_expr() { + if (_internal_has_select_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.select_expr_; + } + clear_has_expr_kind(); + } +} +inline ::google::api::expr::v1beta1::Expr_Select* Expr::release_select_expr() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.select_expr) + if (_internal_has_select_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1beta1::Expr_Select* temp = _impl_.expr_kind_.select_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.expr_kind_.select_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1beta1::Expr_Select& Expr::_internal_select_expr() const { + return _internal_has_select_expr() + ? *_impl_.expr_kind_.select_expr_ + : reinterpret_cast< ::google::api::expr::v1beta1::Expr_Select&>(::google::api::expr::v1beta1::_Expr_Select_default_instance_); +} +inline const ::google::api::expr::v1beta1::Expr_Select& Expr::select_expr() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.select_expr) + return _internal_select_expr(); +} +inline ::google::api::expr::v1beta1::Expr_Select* Expr::unsafe_arena_release_select_expr() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Expr.select_expr) + if (_internal_has_select_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1beta1::Expr_Select* temp = _impl_.expr_kind_.select_expr_; + _impl_.expr_kind_.select_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Expr::unsafe_arena_set_allocated_select_expr(::google::api::expr::v1beta1::Expr_Select* select_expr) { + clear_expr_kind(); + if (select_expr) { + set_has_select_expr(); + _impl_.expr_kind_.select_expr_ = select_expr; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.select_expr) +} +inline ::google::api::expr::v1beta1::Expr_Select* Expr::_internal_mutable_select_expr() { + if (!_internal_has_select_expr()) { + clear_expr_kind(); + set_has_select_expr(); + _impl_.expr_kind_.select_expr_ = CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_Select >(GetArenaForAllocation()); + } + return _impl_.expr_kind_.select_expr_; +} +inline ::google::api::expr::v1beta1::Expr_Select* Expr::mutable_select_expr() { + ::google::api::expr::v1beta1::Expr_Select* _msg = _internal_mutable_select_expr(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.select_expr) + return _msg; +} + +// .google.api.expr.v1beta1.Expr.Call call_expr = 6 [json_name = "callExpr"]; +inline bool Expr::_internal_has_call_expr() const { + return expr_kind_case() == kCallExpr; +} +inline bool Expr::has_call_expr() const { + return _internal_has_call_expr(); +} +inline void Expr::set_has_call_expr() { + _impl_._oneof_case_[0] = kCallExpr; +} +inline void Expr::clear_call_expr() { + if (_internal_has_call_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.call_expr_; + } + clear_has_expr_kind(); + } +} +inline ::google::api::expr::v1beta1::Expr_Call* Expr::release_call_expr() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.call_expr) + if (_internal_has_call_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1beta1::Expr_Call* temp = _impl_.expr_kind_.call_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.expr_kind_.call_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1beta1::Expr_Call& Expr::_internal_call_expr() const { + return _internal_has_call_expr() + ? *_impl_.expr_kind_.call_expr_ + : reinterpret_cast< ::google::api::expr::v1beta1::Expr_Call&>(::google::api::expr::v1beta1::_Expr_Call_default_instance_); +} +inline const ::google::api::expr::v1beta1::Expr_Call& Expr::call_expr() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.call_expr) + return _internal_call_expr(); +} +inline ::google::api::expr::v1beta1::Expr_Call* Expr::unsafe_arena_release_call_expr() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Expr.call_expr) + if (_internal_has_call_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1beta1::Expr_Call* temp = _impl_.expr_kind_.call_expr_; + _impl_.expr_kind_.call_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Expr::unsafe_arena_set_allocated_call_expr(::google::api::expr::v1beta1::Expr_Call* call_expr) { + clear_expr_kind(); + if (call_expr) { + set_has_call_expr(); + _impl_.expr_kind_.call_expr_ = call_expr; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.call_expr) +} +inline ::google::api::expr::v1beta1::Expr_Call* Expr::_internal_mutable_call_expr() { + if (!_internal_has_call_expr()) { + clear_expr_kind(); + set_has_call_expr(); + _impl_.expr_kind_.call_expr_ = CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_Call >(GetArenaForAllocation()); + } + return _impl_.expr_kind_.call_expr_; +} +inline ::google::api::expr::v1beta1::Expr_Call* Expr::mutable_call_expr() { + ::google::api::expr::v1beta1::Expr_Call* _msg = _internal_mutable_call_expr(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.call_expr) + return _msg; +} + +// .google.api.expr.v1beta1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; +inline bool Expr::_internal_has_list_expr() const { + return expr_kind_case() == kListExpr; +} +inline bool Expr::has_list_expr() const { + return _internal_has_list_expr(); +} +inline void Expr::set_has_list_expr() { + _impl_._oneof_case_[0] = kListExpr; +} +inline void Expr::clear_list_expr() { + if (_internal_has_list_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.list_expr_; + } + clear_has_expr_kind(); + } +} +inline ::google::api::expr::v1beta1::Expr_CreateList* Expr::release_list_expr() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.list_expr) + if (_internal_has_list_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1beta1::Expr_CreateList* temp = _impl_.expr_kind_.list_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.expr_kind_.list_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1beta1::Expr_CreateList& Expr::_internal_list_expr() const { + return _internal_has_list_expr() + ? *_impl_.expr_kind_.list_expr_ + : reinterpret_cast< ::google::api::expr::v1beta1::Expr_CreateList&>(::google::api::expr::v1beta1::_Expr_CreateList_default_instance_); +} +inline const ::google::api::expr::v1beta1::Expr_CreateList& Expr::list_expr() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.list_expr) + return _internal_list_expr(); +} +inline ::google::api::expr::v1beta1::Expr_CreateList* Expr::unsafe_arena_release_list_expr() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Expr.list_expr) + if (_internal_has_list_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1beta1::Expr_CreateList* temp = _impl_.expr_kind_.list_expr_; + _impl_.expr_kind_.list_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Expr::unsafe_arena_set_allocated_list_expr(::google::api::expr::v1beta1::Expr_CreateList* list_expr) { + clear_expr_kind(); + if (list_expr) { + set_has_list_expr(); + _impl_.expr_kind_.list_expr_ = list_expr; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.list_expr) +} +inline ::google::api::expr::v1beta1::Expr_CreateList* Expr::_internal_mutable_list_expr() { + if (!_internal_has_list_expr()) { + clear_expr_kind(); + set_has_list_expr(); + _impl_.expr_kind_.list_expr_ = CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_CreateList >(GetArenaForAllocation()); + } + return _impl_.expr_kind_.list_expr_; +} +inline ::google::api::expr::v1beta1::Expr_CreateList* Expr::mutable_list_expr() { + ::google::api::expr::v1beta1::Expr_CreateList* _msg = _internal_mutable_list_expr(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.list_expr) + return _msg; +} + +// .google.api.expr.v1beta1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; +inline bool Expr::_internal_has_struct_expr() const { + return expr_kind_case() == kStructExpr; +} +inline bool Expr::has_struct_expr() const { + return _internal_has_struct_expr(); +} +inline void Expr::set_has_struct_expr() { + _impl_._oneof_case_[0] = kStructExpr; +} +inline void Expr::clear_struct_expr() { + if (_internal_has_struct_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.struct_expr_; + } + clear_has_expr_kind(); + } +} +inline ::google::api::expr::v1beta1::Expr_CreateStruct* Expr::release_struct_expr() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.struct_expr) + if (_internal_has_struct_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1beta1::Expr_CreateStruct* temp = _impl_.expr_kind_.struct_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.expr_kind_.struct_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1beta1::Expr_CreateStruct& Expr::_internal_struct_expr() const { + return _internal_has_struct_expr() + ? *_impl_.expr_kind_.struct_expr_ + : reinterpret_cast< ::google::api::expr::v1beta1::Expr_CreateStruct&>(::google::api::expr::v1beta1::_Expr_CreateStruct_default_instance_); +} +inline const ::google::api::expr::v1beta1::Expr_CreateStruct& Expr::struct_expr() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.struct_expr) + return _internal_struct_expr(); +} +inline ::google::api::expr::v1beta1::Expr_CreateStruct* Expr::unsafe_arena_release_struct_expr() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Expr.struct_expr) + if (_internal_has_struct_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1beta1::Expr_CreateStruct* temp = _impl_.expr_kind_.struct_expr_; + _impl_.expr_kind_.struct_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Expr::unsafe_arena_set_allocated_struct_expr(::google::api::expr::v1beta1::Expr_CreateStruct* struct_expr) { + clear_expr_kind(); + if (struct_expr) { + set_has_struct_expr(); + _impl_.expr_kind_.struct_expr_ = struct_expr; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.struct_expr) +} +inline ::google::api::expr::v1beta1::Expr_CreateStruct* Expr::_internal_mutable_struct_expr() { + if (!_internal_has_struct_expr()) { + clear_expr_kind(); + set_has_struct_expr(); + _impl_.expr_kind_.struct_expr_ = CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_CreateStruct >(GetArenaForAllocation()); + } + return _impl_.expr_kind_.struct_expr_; +} +inline ::google::api::expr::v1beta1::Expr_CreateStruct* Expr::mutable_struct_expr() { + ::google::api::expr::v1beta1::Expr_CreateStruct* _msg = _internal_mutable_struct_expr(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.struct_expr) + return _msg; +} + +// .google.api.expr.v1beta1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; +inline bool Expr::_internal_has_comprehension_expr() const { + return expr_kind_case() == kComprehensionExpr; +} +inline bool Expr::has_comprehension_expr() const { + return _internal_has_comprehension_expr(); +} +inline void Expr::set_has_comprehension_expr() { + _impl_._oneof_case_[0] = kComprehensionExpr; +} +inline void Expr::clear_comprehension_expr() { + if (_internal_has_comprehension_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_kind_.comprehension_expr_; + } + clear_has_expr_kind(); + } +} +inline ::google::api::expr::v1beta1::Expr_Comprehension* Expr::release_comprehension_expr() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.comprehension_expr) + if (_internal_has_comprehension_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1beta1::Expr_Comprehension* temp = _impl_.expr_kind_.comprehension_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.expr_kind_.comprehension_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1beta1::Expr_Comprehension& Expr::_internal_comprehension_expr() const { + return _internal_has_comprehension_expr() + ? *_impl_.expr_kind_.comprehension_expr_ + : reinterpret_cast< ::google::api::expr::v1beta1::Expr_Comprehension&>(::google::api::expr::v1beta1::_Expr_Comprehension_default_instance_); +} +inline const ::google::api::expr::v1beta1::Expr_Comprehension& Expr::comprehension_expr() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.comprehension_expr) + return _internal_comprehension_expr(); +} +inline ::google::api::expr::v1beta1::Expr_Comprehension* Expr::unsafe_arena_release_comprehension_expr() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Expr.comprehension_expr) + if (_internal_has_comprehension_expr()) { + clear_has_expr_kind(); + ::google::api::expr::v1beta1::Expr_Comprehension* temp = _impl_.expr_kind_.comprehension_expr_; + _impl_.expr_kind_.comprehension_expr_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Expr::unsafe_arena_set_allocated_comprehension_expr(::google::api::expr::v1beta1::Expr_Comprehension* comprehension_expr) { + clear_expr_kind(); + if (comprehension_expr) { + set_has_comprehension_expr(); + _impl_.expr_kind_.comprehension_expr_ = comprehension_expr; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.comprehension_expr) +} +inline ::google::api::expr::v1beta1::Expr_Comprehension* Expr::_internal_mutable_comprehension_expr() { + if (!_internal_has_comprehension_expr()) { + clear_expr_kind(); + set_has_comprehension_expr(); + _impl_.expr_kind_.comprehension_expr_ = CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_Comprehension >(GetArenaForAllocation()); + } + return _impl_.expr_kind_.comprehension_expr_; +} +inline ::google::api::expr::v1beta1::Expr_Comprehension* Expr::mutable_comprehension_expr() { + ::google::api::expr::v1beta1::Expr_Comprehension* _msg = _internal_mutable_comprehension_expr(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.comprehension_expr) + return _msg; +} + +inline bool Expr::has_expr_kind() const { + return expr_kind_case() != EXPR_KIND_NOT_SET; +} +inline void Expr::clear_has_expr_kind() { + _impl_._oneof_case_[0] = EXPR_KIND_NOT_SET; +} +inline Expr::ExprKindCase Expr::expr_kind_case() const { + return Expr::ExprKindCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// Literal + +// .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; +inline bool Literal::_internal_has_null_value() const { + return constant_kind_case() == kNullValue; +} +inline bool Literal::has_null_value() const { + return _internal_has_null_value(); +} +inline void Literal::set_has_null_value() { + _impl_._oneof_case_[0] = kNullValue; +} +inline void Literal::clear_null_value() { + if (_internal_has_null_value()) { + _impl_.constant_kind_.null_value_ = 0; + clear_has_constant_kind(); + } +} +inline ::PROTOBUF_NAMESPACE_ID::NullValue Literal::_internal_null_value() const { + if (_internal_has_null_value()) { + return static_cast< ::PROTOBUF_NAMESPACE_ID::NullValue >(_impl_.constant_kind_.null_value_); + } + return static_cast< ::PROTOBUF_NAMESPACE_ID::NullValue >(0); +} +inline ::PROTOBUF_NAMESPACE_ID::NullValue Literal::null_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Literal.null_value) + return _internal_null_value(); +} +inline void Literal::_internal_set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value) { + if (!_internal_has_null_value()) { + clear_constant_kind(); + set_has_null_value(); + } + _impl_.constant_kind_.null_value_ = value; +} +inline void Literal::set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value) { + _internal_set_null_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Literal.null_value) +} + +// bool bool_value = 2 [json_name = "boolValue"]; +inline bool Literal::_internal_has_bool_value() const { + return constant_kind_case() == kBoolValue; +} +inline bool Literal::has_bool_value() const { + return _internal_has_bool_value(); +} +inline void Literal::set_has_bool_value() { + _impl_._oneof_case_[0] = kBoolValue; +} +inline void Literal::clear_bool_value() { + if (_internal_has_bool_value()) { + _impl_.constant_kind_.bool_value_ = false; + clear_has_constant_kind(); + } +} +inline bool Literal::_internal_bool_value() const { + if (_internal_has_bool_value()) { + return _impl_.constant_kind_.bool_value_; + } + return false; +} +inline void Literal::_internal_set_bool_value(bool value) { + if (!_internal_has_bool_value()) { + clear_constant_kind(); + set_has_bool_value(); + } + _impl_.constant_kind_.bool_value_ = value; +} +inline bool Literal::bool_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Literal.bool_value) + return _internal_bool_value(); +} +inline void Literal::set_bool_value(bool value) { + _internal_set_bool_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Literal.bool_value) +} + +// int64 int64_value = 3 [json_name = "int64Value"]; +inline bool Literal::_internal_has_int64_value() const { + return constant_kind_case() == kInt64Value; +} +inline bool Literal::has_int64_value() const { + return _internal_has_int64_value(); +} +inline void Literal::set_has_int64_value() { + _impl_._oneof_case_[0] = kInt64Value; +} +inline void Literal::clear_int64_value() { + if (_internal_has_int64_value()) { + _impl_.constant_kind_.int64_value_ = int64_t{0}; + clear_has_constant_kind(); + } +} +inline int64_t Literal::_internal_int64_value() const { + if (_internal_has_int64_value()) { + return _impl_.constant_kind_.int64_value_; + } + return int64_t{0}; +} +inline void Literal::_internal_set_int64_value(int64_t value) { + if (!_internal_has_int64_value()) { + clear_constant_kind(); + set_has_int64_value(); + } + _impl_.constant_kind_.int64_value_ = value; +} +inline int64_t Literal::int64_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Literal.int64_value) + return _internal_int64_value(); +} +inline void Literal::set_int64_value(int64_t value) { + _internal_set_int64_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Literal.int64_value) +} + +// uint64 uint64_value = 4 [json_name = "uint64Value"]; +inline bool Literal::_internal_has_uint64_value() const { + return constant_kind_case() == kUint64Value; +} +inline bool Literal::has_uint64_value() const { + return _internal_has_uint64_value(); +} +inline void Literal::set_has_uint64_value() { + _impl_._oneof_case_[0] = kUint64Value; +} +inline void Literal::clear_uint64_value() { + if (_internal_has_uint64_value()) { + _impl_.constant_kind_.uint64_value_ = uint64_t{0u}; + clear_has_constant_kind(); + } +} +inline uint64_t Literal::_internal_uint64_value() const { + if (_internal_has_uint64_value()) { + return _impl_.constant_kind_.uint64_value_; + } + return uint64_t{0u}; +} +inline void Literal::_internal_set_uint64_value(uint64_t value) { + if (!_internal_has_uint64_value()) { + clear_constant_kind(); + set_has_uint64_value(); + } + _impl_.constant_kind_.uint64_value_ = value; +} +inline uint64_t Literal::uint64_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Literal.uint64_value) + return _internal_uint64_value(); +} +inline void Literal::set_uint64_value(uint64_t value) { + _internal_set_uint64_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Literal.uint64_value) +} + +// double double_value = 5 [json_name = "doubleValue"]; +inline bool Literal::_internal_has_double_value() const { + return constant_kind_case() == kDoubleValue; +} +inline bool Literal::has_double_value() const { + return _internal_has_double_value(); +} +inline void Literal::set_has_double_value() { + _impl_._oneof_case_[0] = kDoubleValue; +} +inline void Literal::clear_double_value() { + if (_internal_has_double_value()) { + _impl_.constant_kind_.double_value_ = 0; + clear_has_constant_kind(); + } +} +inline double Literal::_internal_double_value() const { + if (_internal_has_double_value()) { + return _impl_.constant_kind_.double_value_; + } + return 0; +} +inline void Literal::_internal_set_double_value(double value) { + if (!_internal_has_double_value()) { + clear_constant_kind(); + set_has_double_value(); + } + _impl_.constant_kind_.double_value_ = value; +} +inline double Literal::double_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Literal.double_value) + return _internal_double_value(); +} +inline void Literal::set_double_value(double value) { + _internal_set_double_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Literal.double_value) +} + +// string string_value = 6 [json_name = "stringValue"]; +inline bool Literal::_internal_has_string_value() const { + return constant_kind_case() == kStringValue; +} +inline bool Literal::has_string_value() const { + return _internal_has_string_value(); +} +inline void Literal::set_has_string_value() { + _impl_._oneof_case_[0] = kStringValue; +} +inline void Literal::clear_string_value() { + if (_internal_has_string_value()) { + _impl_.constant_kind_.string_value_.Destroy(); + clear_has_constant_kind(); + } +} +inline const std::string& Literal::string_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Literal.string_value) + return _internal_string_value(); +} +template +inline void Literal::set_string_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_string_value()) { + clear_constant_kind(); + set_has_string_value(); + _impl_.constant_kind_.string_value_.InitDefault(); + } + _impl_.constant_kind_.string_value_.Set( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Literal.string_value) +} +inline std::string* Literal::mutable_string_value() { + std::string* _s = _internal_mutable_string_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Literal.string_value) + return _s; +} +inline const std::string& Literal::_internal_string_value() const { + if (_internal_has_string_value()) { + return _impl_.constant_kind_.string_value_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void Literal::_internal_set_string_value(const std::string& value) { + if (!_internal_has_string_value()) { + clear_constant_kind(); + set_has_string_value(); + _impl_.constant_kind_.string_value_.InitDefault(); + } + _impl_.constant_kind_.string_value_.Set(value, GetArenaForAllocation()); +} +inline std::string* Literal::_internal_mutable_string_value() { + if (!_internal_has_string_value()) { + clear_constant_kind(); + set_has_string_value(); + _impl_.constant_kind_.string_value_.InitDefault(); + } + return _impl_.constant_kind_.string_value_.Mutable( GetArenaForAllocation()); +} +inline std::string* Literal::release_string_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Literal.string_value) + if (_internal_has_string_value()) { + clear_has_constant_kind(); + return _impl_.constant_kind_.string_value_.Release(); + } else { + return nullptr; + } +} +inline void Literal::set_allocated_string_value(std::string* string_value) { + if (has_constant_kind()) { + clear_constant_kind(); + } + if (string_value != nullptr) { + set_has_string_value(); + _impl_.constant_kind_.string_value_.InitAllocated(string_value, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Literal.string_value) +} + +// bytes bytes_value = 7 [json_name = "bytesValue"]; +inline bool Literal::_internal_has_bytes_value() const { + return constant_kind_case() == kBytesValue; +} +inline bool Literal::has_bytes_value() const { + return _internal_has_bytes_value(); +} +inline void Literal::set_has_bytes_value() { + _impl_._oneof_case_[0] = kBytesValue; +} +inline void Literal::clear_bytes_value() { + if (_internal_has_bytes_value()) { + _impl_.constant_kind_.bytes_value_.Destroy(); + clear_has_constant_kind(); + } +} +inline const std::string& Literal::bytes_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Literal.bytes_value) + return _internal_bytes_value(); +} +template +inline void Literal::set_bytes_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_bytes_value()) { + clear_constant_kind(); + set_has_bytes_value(); + _impl_.constant_kind_.bytes_value_.InitDefault(); + } + _impl_.constant_kind_.bytes_value_.SetBytes( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Literal.bytes_value) +} +inline std::string* Literal::mutable_bytes_value() { + std::string* _s = _internal_mutable_bytes_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Literal.bytes_value) + return _s; +} +inline const std::string& Literal::_internal_bytes_value() const { + if (_internal_has_bytes_value()) { + return _impl_.constant_kind_.bytes_value_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void Literal::_internal_set_bytes_value(const std::string& value) { + if (!_internal_has_bytes_value()) { + clear_constant_kind(); + set_has_bytes_value(); + _impl_.constant_kind_.bytes_value_.InitDefault(); + } + _impl_.constant_kind_.bytes_value_.Set(value, GetArenaForAllocation()); +} +inline std::string* Literal::_internal_mutable_bytes_value() { + if (!_internal_has_bytes_value()) { + clear_constant_kind(); + set_has_bytes_value(); + _impl_.constant_kind_.bytes_value_.InitDefault(); + } + return _impl_.constant_kind_.bytes_value_.Mutable( GetArenaForAllocation()); +} +inline std::string* Literal::release_bytes_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Literal.bytes_value) + if (_internal_has_bytes_value()) { + clear_has_constant_kind(); + return _impl_.constant_kind_.bytes_value_.Release(); + } else { + return nullptr; + } +} +inline void Literal::set_allocated_bytes_value(std::string* bytes_value) { + if (has_constant_kind()) { + clear_constant_kind(); + } + if (bytes_value != nullptr) { + set_has_bytes_value(); + _impl_.constant_kind_.bytes_value_.InitAllocated(bytes_value, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Literal.bytes_value) +} + +inline bool Literal::has_constant_kind() const { + return constant_kind_case() != CONSTANT_KIND_NOT_SET; +} +inline void Literal::clear_has_constant_kind() { + _impl_._oneof_case_[0] = CONSTANT_KIND_NOT_SET; +} +inline Literal::ConstantKindCase Literal::constant_kind_case() const { + return Literal::ConstantKindCase(_impl_._oneof_case_[0]); +} +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto diff --git a/src/gen/google/api/expr/v1beta1/source.grpc.pb.cc b/src/gen/google/api/expr/v1beta1/source.grpc.pb.cc new file mode 100644 index 000000000..82b6ac2c5 --- /dev/null +++ b/src/gen/google/api/expr/v1beta1/source.grpc.pb.cc @@ -0,0 +1,31 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/expr/v1beta1/source.proto + +#include "google/api/expr/v1beta1/source.pb.h" +#include "google/api/expr/v1beta1/source.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { + +} // namespace google +} // namespace api +} // namespace expr +} // namespace v1beta1 + diff --git a/src/gen/google/api/expr/v1beta1/source.grpc.pb.h b/src/gen/google/api/expr/v1beta1/source.grpc.pb.h new file mode 100644 index 000000000..b8ff82e2a --- /dev/null +++ b/src/gen/google/api/expr/v1beta1/source.grpc.pb.h @@ -0,0 +1,55 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/expr/v1beta1/source.proto +// Original file comments: +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +#ifndef GRPC_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto__INCLUDED +#define GRPC_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto__INCLUDED + +#include "google/api/expr/v1beta1/source.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { + +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google + + +#endif // GRPC_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto__INCLUDED diff --git a/src/gen/google/api/expr/v1beta1/source.pb.cc b/src/gen/google/api/expr/v1beta1/source.pb.cc new file mode 100644 index 000000000..a255e8017 --- /dev/null +++ b/src/gen/google/api/expr/v1beta1/source.pb.cc @@ -0,0 +1,778 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/expr/v1beta1/source.proto + +#include "google/api/expr/v1beta1/source.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { +PROTOBUF_CONSTEXPR SourceInfo_PositionsEntry_DoNotUse::SourceInfo_PositionsEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal() {} + union { + SourceInfo_PositionsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal _SourceInfo_PositionsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR SourceInfo::SourceInfo( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.line_offsets_)*/{} + , /*decltype(_impl_._line_offsets_cached_byte_size_)*/{0} + , /*decltype(_impl_.positions_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.location_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SourceInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR SourceInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SourceInfoDefaultTypeInternal() {} + union { + SourceInfo _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfoDefaultTypeInternal _SourceInfo_default_instance_; +PROTOBUF_CONSTEXPR SourcePosition::SourcePosition( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.location_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.offset_)*/0 + , /*decltype(_impl_.line_)*/0 + , /*decltype(_impl_.column_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SourcePositionDefaultTypeInternal { + PROTOBUF_CONSTEXPR SourcePositionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SourcePositionDefaultTypeInternal() {} + union { + SourcePosition _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourcePositionDefaultTypeInternal _SourcePosition_default_instance_; +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google +static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto[3]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo, _impl_.location_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo, _impl_.line_offsets_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo, _impl_.positions_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourcePosition, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourcePosition, _impl_.location_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourcePosition, _impl_.offset_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourcePosition, _impl_.line_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourcePosition, _impl_.column_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, 8, -1, sizeof(::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse)}, + { 10, -1, -1, sizeof(::google::api::expr::v1beta1::SourceInfo)}, + { 19, -1, -1, sizeof(::google::api::expr::v1beta1::SourcePosition)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::google::api::expr::v1beta1::_SourceInfo_PositionsEntry_DoNotUse_default_instance_._instance, + &::google::api::expr::v1beta1::_SourceInfo_default_instance_._instance, + &::google::api::expr::v1beta1::_SourcePosition_default_instance_._instance, +}; + +const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n$google/api/expr/v1beta1/source.proto\022\027" + "google.api.expr.v1beta1\"\333\001\n\nSourceInfo\022\032" + "\n\010location\030\002 \001(\tR\010location\022!\n\014line_offse" + "ts\030\003 \003(\005R\013lineOffsets\022P\n\tpositions\030\004 \003(\013" + "22.google.api.expr.v1beta1.SourceInfo.Po" + "sitionsEntryR\tpositions\032<\n\016PositionsEntr" + "y\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005valu" + "e:\0028\001\"p\n\016SourcePosition\022\032\n\010location\030\001 \001(" + "\tR\010location\022\026\n\006offset\030\002 \001(\005R\006offset\022\022\n\004l" + "ine\030\003 \001(\005R\004line\022\026\n\006column\030\004 \001(\005R\006columnB" + "l\n\033com.google.api.expr.v1beta1B\013SourcePr" + "otoP\001Z;google.golang.org/genproto/google" + "apis/api/expr/v1beta1;expr\370\001\001b\006proto3" + ; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto = { + false, false, 517, descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto, + "google/api/expr/v1beta1/source.proto", + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_once, nullptr, 0, 3, + schemas, file_default_instances, TableStruct_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto::offsets, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto, file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto, + file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_getter() { + return &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto); +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { + +// =================================================================== + +SourceInfo_PositionsEntry_DoNotUse::SourceInfo_PositionsEntry_DoNotUse() {} +SourceInfo_PositionsEntry_DoNotUse::SourceInfo_PositionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void SourceInfo_PositionsEntry_DoNotUse::MergeFrom(const SourceInfo_PositionsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata SourceInfo_PositionsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto[0]); +} + +// =================================================================== + +class SourceInfo::_Internal { + public: +}; + +SourceInfo::SourceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &SourceInfo::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.SourceInfo) +} +SourceInfo::SourceInfo(const SourceInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + SourceInfo* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.line_offsets_){from._impl_.line_offsets_} + , /*decltype(_impl_._line_offsets_cached_byte_size_)*/{0} + , /*decltype(_impl_.positions_)*/{} + , decltype(_impl_.location_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.positions_.MergeFrom(from._impl_.positions_); + _impl_.location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location().empty()) { + _this->_impl_.location_.Set(from._internal_location(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.SourceInfo) +} + +inline void SourceInfo::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.line_offsets_){arena} + , /*decltype(_impl_._line_offsets_cached_byte_size_)*/{0} + , /*decltype(_impl_.positions_)*/{::_pbi::ArenaInitialized(), arena} + , decltype(_impl_.location_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +SourceInfo::~SourceInfo() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.SourceInfo) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void SourceInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.line_offsets_.~RepeatedField(); + _impl_.positions_.Destruct(); + _impl_.positions_.~MapField(); + _impl_.location_.Destroy(); +} + +void SourceInfo::ArenaDtor(void* object) { + SourceInfo* _this = reinterpret_cast< SourceInfo* >(object); + _this->_impl_.positions_.Destruct(); +} +void SourceInfo::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SourceInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.SourceInfo) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.line_offsets_.Clear(); + _impl_.positions_.Clear(); + _impl_.location_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SourceInfo::_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 location = 2 [json_name = "location"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_location(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.SourceInfo.location")); + } else + goto handle_unusual; + continue; + // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_line_offsets(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 24) { + _internal_add_line_offsets(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map positions = 4 [json_name = "positions"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.positions_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + 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* SourceInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.SourceInfo) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string location = 2 [json_name = "location"]; + if (!this->_internal_location().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location().data(), static_cast(this->_internal_location().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.SourceInfo.location"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_location(), target); + } + + // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; + { + int byte_size = _impl_._line_offsets_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteInt32Packed( + 3, _internal_line_offsets(), byte_size, target); + } + } + + // map positions = 4 [json_name = "positions"]; + if (!this->_internal_positions().empty()) { + using MapType = ::_pb::Map; + using WireHelper = SourceInfo_PositionsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_positions(); + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterFlat(map_field)) { + target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(4, entry.first, entry.second, 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:google.api.expr.v1beta1.SourceInfo) + return target; +} + +size_t SourceInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.SourceInfo) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; + { + size_t data_size = ::_pbi::WireFormatLite:: + Int32Size(this->_impl_.line_offsets_); + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + int cached_size = ::_pbi::ToCachedSize(data_size); + _impl_._line_offsets_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // map positions = 4 [json_name = "positions"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_positions_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< int32_t, int32_t >::const_iterator + it = this->_internal_positions().begin(); + it != this->_internal_positions().end(); ++it) { + total_size += SourceInfo_PositionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // string location = 2 [json_name = "location"]; + if (!this->_internal_location().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SourceInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SourceInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SourceInfo::GetClassData() const { return &_class_data_; } + + +void SourceInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.SourceInfo) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.line_offsets_.MergeFrom(from._impl_.line_offsets_); + _this->_impl_.positions_.MergeFrom(from._impl_.positions_); + if (!from._internal_location().empty()) { + _this->_internal_set_location(from._internal_location()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SourceInfo::CopyFrom(const SourceInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.SourceInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SourceInfo::IsInitialized() const { + return true; +} + +void SourceInfo::InternalSwap(SourceInfo* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.line_offsets_.InternalSwap(&other->_impl_.line_offsets_); + _impl_.positions_.InternalSwap(&other->_impl_.positions_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.location_, lhs_arena, + &other->_impl_.location_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SourceInfo::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto[1]); +} + +// =================================================================== + +class SourcePosition::_Internal { + public: +}; + +SourcePosition::SourcePosition(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.SourcePosition) +} +SourcePosition::SourcePosition(const SourcePosition& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + SourcePosition* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.location_){} + , decltype(_impl_.offset_){} + , decltype(_impl_.line_){} + , decltype(_impl_.column_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location().empty()) { + _this->_impl_.location_.Set(from._internal_location(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.offset_, &from._impl_.offset_, + static_cast(reinterpret_cast(&_impl_.column_) - + reinterpret_cast(&_impl_.offset_)) + sizeof(_impl_.column_)); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.SourcePosition) +} + +inline void SourcePosition::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.location_){} + , decltype(_impl_.offset_){0} + , decltype(_impl_.line_){0} + , decltype(_impl_.column_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +SourcePosition::~SourcePosition() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.SourcePosition) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SourcePosition::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.location_.Destroy(); +} + +void SourcePosition::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SourcePosition::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.SourcePosition) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.location_.ClearToEmpty(); + ::memset(&_impl_.offset_, 0, static_cast( + reinterpret_cast(&_impl_.column_) - + reinterpret_cast(&_impl_.offset_)) + sizeof(_impl_.column_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SourcePosition::_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 location = 1 [json_name = "location"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_location(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.SourcePosition.location")); + } else + goto handle_unusual; + continue; + // int32 offset = 2 [json_name = "offset"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.offset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 line = 3 [json_name = "line"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.line_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 column = 4 [json_name = "column"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.column_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* SourcePosition::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.SourcePosition) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string location = 1 [json_name = "location"]; + if (!this->_internal_location().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location().data(), static_cast(this->_internal_location().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.SourcePosition.location"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_location(), target); + } + + // int32 offset = 2 [json_name = "offset"]; + if (this->_internal_offset() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_offset(), target); + } + + // int32 line = 3 [json_name = "line"]; + if (this->_internal_line() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_line(), target); + } + + // int32 column = 4 [json_name = "column"]; + if (this->_internal_column() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_column(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1beta1.SourcePosition) + return target; +} + +size_t SourcePosition::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.SourcePosition) + 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 location = 1 [json_name = "location"]; + if (!this->_internal_location().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location()); + } + + // int32 offset = 2 [json_name = "offset"]; + if (this->_internal_offset() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_offset()); + } + + // int32 line = 3 [json_name = "line"]; + if (this->_internal_line() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_line()); + } + + // int32 column = 4 [json_name = "column"]; + if (this->_internal_column() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_column()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SourcePosition::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SourcePosition::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SourcePosition::GetClassData() const { return &_class_data_; } + + +void SourcePosition::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.SourcePosition) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_location().empty()) { + _this->_internal_set_location(from._internal_location()); + } + if (from._internal_offset() != 0) { + _this->_internal_set_offset(from._internal_offset()); + } + if (from._internal_line() != 0) { + _this->_internal_set_line(from._internal_line()); + } + if (from._internal_column() != 0) { + _this->_internal_set_column(from._internal_column()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SourcePosition::CopyFrom(const SourcePosition& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.SourcePosition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SourcePosition::IsInitialized() const { + return true; +} + +void SourcePosition::InternalSwap(SourcePosition* 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( + &_impl_.location_, lhs_arena, + &other->_impl_.location_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.column_) + + sizeof(SourcePosition::_impl_.column_) + - PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.offset_)>( + reinterpret_cast(&_impl_.offset_), + reinterpret_cast(&other->_impl_.offset_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SourcePosition::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto[2]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::SourceInfo* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::SourceInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::SourceInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::SourcePosition* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::SourcePosition >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::SourcePosition >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/google/api/expr/v1beta1/source.pb.h b/src/gen/google/api/expr/v1beta1/source.pb.h new file mode 100644 index 000000000..120da2a49 --- /dev/null +++ b/src/gen/google/api/expr/v1beta1/source.pb.h @@ -0,0 +1,762 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/expr/v1beta1/source.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 // IWYU pragma: export +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto; +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { +class SourceInfo; +struct SourceInfoDefaultTypeInternal; +extern SourceInfoDefaultTypeInternal _SourceInfo_default_instance_; +class SourceInfo_PositionsEntry_DoNotUse; +struct SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal; +extern SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal _SourceInfo_PositionsEntry_DoNotUse_default_instance_; +class SourcePosition; +struct SourcePositionDefaultTypeInternal; +extern SourcePositionDefaultTypeInternal _SourcePosition_default_instance_; +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::expr::v1beta1::SourceInfo* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::SourceInfo>(Arena*); +template<> ::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse>(Arena*); +template<> ::google::api::expr::v1beta1::SourcePosition* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::SourcePosition>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { + +// =================================================================== + +class SourceInfo_PositionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + SourceInfo_PositionsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR SourceInfo_PositionsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit SourceInfo_PositionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const SourceInfo_PositionsEntry_DoNotUse& other); + static const SourceInfo_PositionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_SourceInfo_PositionsEntry_DoNotUse_default_instance_); } + static bool ValidateKey(void*) { return true; } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto; +}; + +// ------------------------------------------------------------------- + +class SourceInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.SourceInfo) */ { + public: + inline SourceInfo() : SourceInfo(nullptr) {} + ~SourceInfo() override; + explicit PROTOBUF_CONSTEXPR SourceInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SourceInfo(const SourceInfo& from); + SourceInfo(SourceInfo&& from) noexcept + : SourceInfo() { + *this = ::std::move(from); + } + + inline SourceInfo& operator=(const SourceInfo& from) { + CopyFrom(from); + return *this; + } + inline SourceInfo& operator=(SourceInfo&& 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 SourceInfo& default_instance() { + return *internal_default_instance(); + } + static inline const SourceInfo* internal_default_instance() { + return reinterpret_cast( + &_SourceInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(SourceInfo& a, SourceInfo& b) { + a.Swap(&b); + } + inline void Swap(SourceInfo* 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(SourceInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SourceInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SourceInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SourceInfo& from) { + SourceInfo::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SourceInfo* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.SourceInfo"; + } + protected: + explicit SourceInfo(::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 { + kLineOffsetsFieldNumber = 3, + kPositionsFieldNumber = 4, + kLocationFieldNumber = 2, + }; + // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; + int line_offsets_size() const; + private: + int _internal_line_offsets_size() const; + public: + void clear_line_offsets(); + private: + int32_t _internal_line_offsets(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& + _internal_line_offsets() const; + void _internal_add_line_offsets(int32_t value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* + _internal_mutable_line_offsets(); + public: + int32_t line_offsets(int index) const; + void set_line_offsets(int index, int32_t value); + void add_line_offsets(int32_t value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& + line_offsets() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* + mutable_line_offsets(); + + // map positions = 4 [json_name = "positions"]; + int positions_size() const; + private: + int _internal_positions_size() const; + public: + void clear_positions(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< int32_t, int32_t >& + _internal_positions() const; + ::PROTOBUF_NAMESPACE_ID::Map< int32_t, int32_t >* + _internal_mutable_positions(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< int32_t, int32_t >& + positions() const; + ::PROTOBUF_NAMESPACE_ID::Map< int32_t, int32_t >* + mutable_positions(); + + // string location = 2 [json_name = "location"]; + void clear_location(); + const std::string& location() const; + template + void set_location(ArgT0&& arg0, ArgT... args); + std::string* mutable_location(); + PROTOBUF_NODISCARD std::string* release_location(); + void set_allocated_location(std::string* location); + private: + const std::string& _internal_location() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location(const std::string& value); + std::string* _internal_mutable_location(); + public: + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.SourceInfo) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > line_offsets_; + mutable std::atomic _line_offsets_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + SourceInfo_PositionsEntry_DoNotUse, + int32_t, int32_t, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32> positions_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto; +}; +// ------------------------------------------------------------------- + +class SourcePosition final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.SourcePosition) */ { + public: + inline SourcePosition() : SourcePosition(nullptr) {} + ~SourcePosition() override; + explicit PROTOBUF_CONSTEXPR SourcePosition(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SourcePosition(const SourcePosition& from); + SourcePosition(SourcePosition&& from) noexcept + : SourcePosition() { + *this = ::std::move(from); + } + + inline SourcePosition& operator=(const SourcePosition& from) { + CopyFrom(from); + return *this; + } + inline SourcePosition& operator=(SourcePosition&& 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 SourcePosition& default_instance() { + return *internal_default_instance(); + } + static inline const SourcePosition* internal_default_instance() { + return reinterpret_cast( + &_SourcePosition_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(SourcePosition& a, SourcePosition& b) { + a.Swap(&b); + } + inline void Swap(SourcePosition* 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(SourcePosition* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SourcePosition* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SourcePosition& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SourcePosition& from) { + SourcePosition::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SourcePosition* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.SourcePosition"; + } + protected: + explicit SourcePosition(::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 { + kLocationFieldNumber = 1, + kOffsetFieldNumber = 2, + kLineFieldNumber = 3, + kColumnFieldNumber = 4, + }; + // string location = 1 [json_name = "location"]; + void clear_location(); + const std::string& location() const; + template + void set_location(ArgT0&& arg0, ArgT... args); + std::string* mutable_location(); + PROTOBUF_NODISCARD std::string* release_location(); + void set_allocated_location(std::string* location); + private: + const std::string& _internal_location() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location(const std::string& value); + std::string* _internal_mutable_location(); + public: + + // int32 offset = 2 [json_name = "offset"]; + void clear_offset(); + int32_t offset() const; + void set_offset(int32_t value); + private: + int32_t _internal_offset() const; + void _internal_set_offset(int32_t value); + public: + + // int32 line = 3 [json_name = "line"]; + void clear_line(); + int32_t line() const; + void set_line(int32_t value); + private: + int32_t _internal_line() const; + void _internal_set_line(int32_t value); + public: + + // int32 column = 4 [json_name = "column"]; + void clear_column(); + int32_t column() const; + void set_column(int32_t value); + private: + int32_t _internal_column() const; + void _internal_set_column(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.SourcePosition) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_; + int32_t offset_; + int32_t line_; + int32_t column_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// SourceInfo + +// string location = 2 [json_name = "location"]; +inline void SourceInfo::clear_location() { + _impl_.location_.ClearToEmpty(); +} +inline const std::string& SourceInfo::location() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.SourceInfo.location) + return _internal_location(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SourceInfo::set_location(ArgT0&& arg0, ArgT... args) { + + _impl_.location_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.SourceInfo.location) +} +inline std::string* SourceInfo::mutable_location() { + std::string* _s = _internal_mutable_location(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.SourceInfo.location) + return _s; +} +inline const std::string& SourceInfo::_internal_location() const { + return _impl_.location_.Get(); +} +inline void SourceInfo::_internal_set_location(const std::string& value) { + + _impl_.location_.Set(value, GetArenaForAllocation()); +} +inline std::string* SourceInfo::_internal_mutable_location() { + + return _impl_.location_.Mutable(GetArenaForAllocation()); +} +inline std::string* SourceInfo::release_location() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.SourceInfo.location) + return _impl_.location_.Release(); +} +inline void SourceInfo::set_allocated_location(std::string* location) { + if (location != nullptr) { + + } else { + + } + _impl_.location_.SetAllocated(location, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.location_.IsDefault()) { + _impl_.location_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.SourceInfo.location) +} + +// repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; +inline int SourceInfo::_internal_line_offsets_size() const { + return _impl_.line_offsets_.size(); +} +inline int SourceInfo::line_offsets_size() const { + return _internal_line_offsets_size(); +} +inline void SourceInfo::clear_line_offsets() { + _impl_.line_offsets_.Clear(); +} +inline int32_t SourceInfo::_internal_line_offsets(int index) const { + return _impl_.line_offsets_.Get(index); +} +inline int32_t SourceInfo::line_offsets(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.SourceInfo.line_offsets) + return _internal_line_offsets(index); +} +inline void SourceInfo::set_line_offsets(int index, int32_t value) { + _impl_.line_offsets_.Set(index, value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.SourceInfo.line_offsets) +} +inline void SourceInfo::_internal_add_line_offsets(int32_t value) { + _impl_.line_offsets_.Add(value); +} +inline void SourceInfo::add_line_offsets(int32_t value) { + _internal_add_line_offsets(value); + // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.SourceInfo.line_offsets) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& +SourceInfo::_internal_line_offsets() const { + return _impl_.line_offsets_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& +SourceInfo::line_offsets() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.SourceInfo.line_offsets) + return _internal_line_offsets(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* +SourceInfo::_internal_mutable_line_offsets() { + return &_impl_.line_offsets_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* +SourceInfo::mutable_line_offsets() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.SourceInfo.line_offsets) + return _internal_mutable_line_offsets(); +} + +// map positions = 4 [json_name = "positions"]; +inline int SourceInfo::_internal_positions_size() const { + return _impl_.positions_.size(); +} +inline int SourceInfo::positions_size() const { + return _internal_positions_size(); +} +inline void SourceInfo::clear_positions() { + _impl_.positions_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< int32_t, int32_t >& +SourceInfo::_internal_positions() const { + return _impl_.positions_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< int32_t, int32_t >& +SourceInfo::positions() const { + // @@protoc_insertion_point(field_map:google.api.expr.v1beta1.SourceInfo.positions) + return _internal_positions(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< int32_t, int32_t >* +SourceInfo::_internal_mutable_positions() { + return _impl_.positions_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< int32_t, int32_t >* +SourceInfo::mutable_positions() { + // @@protoc_insertion_point(field_mutable_map:google.api.expr.v1beta1.SourceInfo.positions) + return _internal_mutable_positions(); +} + +// ------------------------------------------------------------------- + +// SourcePosition + +// string location = 1 [json_name = "location"]; +inline void SourcePosition::clear_location() { + _impl_.location_.ClearToEmpty(); +} +inline const std::string& SourcePosition::location() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.SourcePosition.location) + return _internal_location(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SourcePosition::set_location(ArgT0&& arg0, ArgT... args) { + + _impl_.location_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.SourcePosition.location) +} +inline std::string* SourcePosition::mutable_location() { + std::string* _s = _internal_mutable_location(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.SourcePosition.location) + return _s; +} +inline const std::string& SourcePosition::_internal_location() const { + return _impl_.location_.Get(); +} +inline void SourcePosition::_internal_set_location(const std::string& value) { + + _impl_.location_.Set(value, GetArenaForAllocation()); +} +inline std::string* SourcePosition::_internal_mutable_location() { + + return _impl_.location_.Mutable(GetArenaForAllocation()); +} +inline std::string* SourcePosition::release_location() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.SourcePosition.location) + return _impl_.location_.Release(); +} +inline void SourcePosition::set_allocated_location(std::string* location) { + if (location != nullptr) { + + } else { + + } + _impl_.location_.SetAllocated(location, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.location_.IsDefault()) { + _impl_.location_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.SourcePosition.location) +} + +// int32 offset = 2 [json_name = "offset"]; +inline void SourcePosition::clear_offset() { + _impl_.offset_ = 0; +} +inline int32_t SourcePosition::_internal_offset() const { + return _impl_.offset_; +} +inline int32_t SourcePosition::offset() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.SourcePosition.offset) + return _internal_offset(); +} +inline void SourcePosition::_internal_set_offset(int32_t value) { + + _impl_.offset_ = value; +} +inline void SourcePosition::set_offset(int32_t value) { + _internal_set_offset(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.SourcePosition.offset) +} + +// int32 line = 3 [json_name = "line"]; +inline void SourcePosition::clear_line() { + _impl_.line_ = 0; +} +inline int32_t SourcePosition::_internal_line() const { + return _impl_.line_; +} +inline int32_t SourcePosition::line() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.SourcePosition.line) + return _internal_line(); +} +inline void SourcePosition::_internal_set_line(int32_t value) { + + _impl_.line_ = value; +} +inline void SourcePosition::set_line(int32_t value) { + _internal_set_line(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.SourcePosition.line) +} + +// int32 column = 4 [json_name = "column"]; +inline void SourcePosition::clear_column() { + _impl_.column_ = 0; +} +inline int32_t SourcePosition::_internal_column() const { + return _impl_.column_; +} +inline int32_t SourcePosition::column() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.SourcePosition.column) + return _internal_column(); +} +inline void SourcePosition::_internal_set_column(int32_t value) { + + _impl_.column_ = value; +} +inline void SourcePosition::set_column(int32_t value) { + _internal_set_column(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.SourcePosition.column) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto diff --git a/src/gen/google/api/expr/v1beta1/value.grpc.pb.cc b/src/gen/google/api/expr/v1beta1/value.grpc.pb.cc new file mode 100644 index 000000000..3f9c3d6a5 --- /dev/null +++ b/src/gen/google/api/expr/v1beta1/value.grpc.pb.cc @@ -0,0 +1,31 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/expr/v1beta1/value.proto + +#include "google/api/expr/v1beta1/value.pb.h" +#include "google/api/expr/v1beta1/value.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { + +} // namespace google +} // namespace api +} // namespace expr +} // namespace v1beta1 + diff --git a/src/gen/google/api/expr/v1beta1/value.grpc.pb.h b/src/gen/google/api/expr/v1beta1/value.grpc.pb.h new file mode 100644 index 000000000..2a3a8d570 --- /dev/null +++ b/src/gen/google/api/expr/v1beta1/value.grpc.pb.h @@ -0,0 +1,55 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/expr/v1beta1/value.proto +// Original file comments: +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +#ifndef GRPC_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto__INCLUDED +#define GRPC_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto__INCLUDED + +#include "google/api/expr/v1beta1/value.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { + +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google + + +#endif // GRPC_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto__INCLUDED diff --git a/src/gen/google/api/expr/v1beta1/value.pb.cc b/src/gen/google/api/expr/v1beta1/value.pb.cc new file mode 100644 index 000000000..59b3d57d2 --- /dev/null +++ b/src/gen/google/api/expr/v1beta1/value.pb.cc @@ -0,0 +1,1793 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/expr/v1beta1/value.proto + +#include "google/api/expr/v1beta1/value.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { +PROTOBUF_CONSTEXPR Value::Value( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.kind_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct ValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR ValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ValueDefaultTypeInternal() {} + union { + Value _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValueDefaultTypeInternal _Value_default_instance_; +PROTOBUF_CONSTEXPR EnumValue::EnumValue( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.value_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct EnumValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR EnumValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EnumValueDefaultTypeInternal() {} + union { + EnumValue _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnumValueDefaultTypeInternal _EnumValue_default_instance_; +PROTOBUF_CONSTEXPR ListValue::ListValue( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.values_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ListValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListValueDefaultTypeInternal() {} + union { + ListValue _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListValueDefaultTypeInternal _ListValue_default_instance_; +PROTOBUF_CONSTEXPR MapValue_Entry::MapValue_Entry( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.key_)*/nullptr + , /*decltype(_impl_.value_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct MapValue_EntryDefaultTypeInternal { + PROTOBUF_CONSTEXPR MapValue_EntryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MapValue_EntryDefaultTypeInternal() {} + union { + MapValue_Entry _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MapValue_EntryDefaultTypeInternal _MapValue_Entry_default_instance_; +PROTOBUF_CONSTEXPR MapValue::MapValue( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.entries_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct MapValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR MapValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MapValueDefaultTypeInternal() {} + union { + MapValue _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MapValueDefaultTypeInternal _MapValue_default_instance_; +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google +static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto[5]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Value, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Value, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Value, _impl_.kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EnumValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EnumValue, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EnumValue, _impl_.value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ListValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ListValue, _impl_.values_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::MapValue_Entry, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::MapValue_Entry, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::MapValue_Entry, _impl_.value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::MapValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::MapValue, _impl_.entries_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::expr::v1beta1::Value)}, + { 19, -1, -1, sizeof(::google::api::expr::v1beta1::EnumValue)}, + { 27, -1, -1, sizeof(::google::api::expr::v1beta1::ListValue)}, + { 34, -1, -1, sizeof(::google::api::expr::v1beta1::MapValue_Entry)}, + { 42, -1, -1, sizeof(::google::api::expr::v1beta1::MapValue)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::google::api::expr::v1beta1::_Value_default_instance_._instance, + &::google::api::expr::v1beta1::_EnumValue_default_instance_._instance, + &::google::api::expr::v1beta1::_ListValue_default_instance_._instance, + &::google::api::expr::v1beta1::_MapValue_Entry_default_instance_._instance, + &::google::api::expr::v1beta1::_MapValue_default_instance_._instance, +}; + +const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n#google/api/expr/v1beta1/value.proto\022\027g" + "oogle.api.expr.v1beta1\032\031google/protobuf/" + "any.proto\032\034google/protobuf/struct.proto\"" + "\312\004\n\005Value\022;\n\nnull_value\030\001 \001(\0162\032.google.p" + "rotobuf.NullValueH\000R\tnullValue\022\037\n\nbool_v" + "alue\030\002 \001(\010H\000R\tboolValue\022!\n\013int64_value\030\003" + " \001(\003H\000R\nint64Value\022#\n\014uint64_value\030\004 \001(\004" + "H\000R\013uint64Value\022#\n\014double_value\030\005 \001(\001H\000R" + "\013doubleValue\022#\n\014string_value\030\006 \001(\tH\000R\013st" + "ringValue\022!\n\013bytes_value\030\007 \001(\014H\000R\nbytesV" + "alue\022C\n\nenum_value\030\t \001(\0132\".google.api.ex" + "pr.v1beta1.EnumValueH\000R\tenumValue\0229\n\014obj" + "ect_value\030\n \001(\0132\024.google.protobuf.AnyH\000R" + "\013objectValue\022@\n\tmap_value\030\013 \001(\0132!.google" + ".api.expr.v1beta1.MapValueH\000R\010mapValue\022C" + "\n\nlist_value\030\014 \001(\0132\".google.api.expr.v1b" + "eta1.ListValueH\000R\tlistValue\022\037\n\ntype_valu" + "e\030\017 \001(\tH\000R\ttypeValueB\006\n\004kind\"5\n\tEnumValu" + "e\022\022\n\004type\030\001 \001(\tR\004type\022\024\n\005value\030\002 \001(\005R\005va" + "lue\"C\n\tListValue\0226\n\006values\030\001 \003(\0132\036.googl" + "e.api.expr.v1beta1.ValueR\006values\"\276\001\n\010Map" + "Value\022A\n\007entries\030\001 \003(\0132\'.google.api.expr" + ".v1beta1.MapValue.EntryR\007entries\032o\n\005Entr" + "y\0220\n\003key\030\001 \001(\0132\036.google.api.expr.v1beta1" + ".ValueR\003key\0224\n\005value\030\002 \001(\0132\036.google.api." + "expr.v1beta1.ValueR\005valueBk\n\033com.google." + "api.expr.v1beta1B\nValueProtoP\001Z;google.g" + "olang.org/genproto/googleapis/api/expr/v" + "1beta1;expr\370\001\001b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_deps[2] = { + &::descriptor_table_google_2fprotobuf_2fany_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, +}; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto = { + false, false, 1142, descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto, + "google/api/expr/v1beta1/value.proto", + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_once, descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_deps, 2, 5, + schemas, file_default_instances, TableStruct_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto::offsets, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto, file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto, + file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_getter() { + return &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto); +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { + +// =================================================================== + +class Value::_Internal { + public: + static const ::google::api::expr::v1beta1::EnumValue& enum_value(const Value* msg); + static const ::PROTOBUF_NAMESPACE_ID::Any& object_value(const Value* msg); + static const ::google::api::expr::v1beta1::MapValue& map_value(const Value* msg); + static const ::google::api::expr::v1beta1::ListValue& list_value(const Value* msg); +}; + +const ::google::api::expr::v1beta1::EnumValue& +Value::_Internal::enum_value(const Value* msg) { + return *msg->_impl_.kind_.enum_value_; +} +const ::PROTOBUF_NAMESPACE_ID::Any& +Value::_Internal::object_value(const Value* msg) { + return *msg->_impl_.kind_.object_value_; +} +const ::google::api::expr::v1beta1::MapValue& +Value::_Internal::map_value(const Value* msg) { + return *msg->_impl_.kind_.map_value_; +} +const ::google::api::expr::v1beta1::ListValue& +Value::_Internal::list_value(const Value* msg) { + return *msg->_impl_.kind_.list_value_; +} +void Value::set_allocated_enum_value(::google::api::expr::v1beta1::EnumValue* enum_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (enum_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(enum_value); + if (message_arena != submessage_arena) { + enum_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, enum_value, submessage_arena); + } + set_has_enum_value(); + _impl_.kind_.enum_value_ = enum_value; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Value.enum_value) +} +void Value::set_allocated_object_value(::PROTOBUF_NAMESPACE_ID::Any* object_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (object_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(object_value)); + if (message_arena != submessage_arena) { + object_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, object_value, submessage_arena); + } + set_has_object_value(); + _impl_.kind_.object_value_ = object_value; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Value.object_value) +} +void Value::clear_object_value() { + if (_internal_has_object_value()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.object_value_; + } + clear_has_kind(); + } +} +void Value::set_allocated_map_value(::google::api::expr::v1beta1::MapValue* map_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (map_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(map_value); + if (message_arena != submessage_arena) { + map_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, map_value, submessage_arena); + } + set_has_map_value(); + _impl_.kind_.map_value_ = map_value; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Value.map_value) +} +void Value::set_allocated_list_value(::google::api::expr::v1beta1::ListValue* list_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (list_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(list_value); + if (message_arena != submessage_arena) { + list_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, list_value, submessage_arena); + } + set_has_list_value(); + _impl_.kind_.list_value_ = list_value; + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Value.list_value) +} +Value::Value(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Value) +} +Value::Value(const Value& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Value* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_kind(); + switch (from.kind_case()) { + case kNullValue: { + _this->_internal_set_null_value(from._internal_null_value()); + break; + } + case kBoolValue: { + _this->_internal_set_bool_value(from._internal_bool_value()); + break; + } + case kInt64Value: { + _this->_internal_set_int64_value(from._internal_int64_value()); + break; + } + case kUint64Value: { + _this->_internal_set_uint64_value(from._internal_uint64_value()); + break; + } + case kDoubleValue: { + _this->_internal_set_double_value(from._internal_double_value()); + break; + } + case kStringValue: { + _this->_internal_set_string_value(from._internal_string_value()); + break; + } + case kBytesValue: { + _this->_internal_set_bytes_value(from._internal_bytes_value()); + break; + } + case kEnumValue: { + _this->_internal_mutable_enum_value()->::google::api::expr::v1beta1::EnumValue::MergeFrom( + from._internal_enum_value()); + break; + } + case kObjectValue: { + _this->_internal_mutable_object_value()->::PROTOBUF_NAMESPACE_ID::Any::MergeFrom( + from._internal_object_value()); + break; + } + case kMapValue: { + _this->_internal_mutable_map_value()->::google::api::expr::v1beta1::MapValue::MergeFrom( + from._internal_map_value()); + break; + } + case kListValue: { + _this->_internal_mutable_list_value()->::google::api::expr::v1beta1::ListValue::MergeFrom( + from._internal_list_value()); + break; + } + case kTypeValue: { + _this->_internal_set_type_value(from._internal_type_value()); + break; + } + case KIND_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Value) +} + +inline void Value::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_kind(); +} + +Value::~Value() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Value) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Value::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_kind()) { + clear_kind(); + } +} + +void Value::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Value::clear_kind() { +// @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1beta1.Value) + switch (kind_case()) { + case kNullValue: { + // No need to clear + break; + } + case kBoolValue: { + // No need to clear + break; + } + case kInt64Value: { + // No need to clear + break; + } + case kUint64Value: { + // No need to clear + break; + } + case kDoubleValue: { + // No need to clear + break; + } + case kStringValue: { + _impl_.kind_.string_value_.Destroy(); + break; + } + case kBytesValue: { + _impl_.kind_.bytes_value_.Destroy(); + break; + } + case kEnumValue: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.enum_value_; + } + break; + } + case kObjectValue: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.object_value_; + } + break; + } + case kMapValue: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.map_value_; + } + break; + } + case kListValue: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.list_value_; + } + break; + } + case kTypeValue: { + _impl_.kind_.type_value_.Destroy(); + break; + } + case KIND_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = KIND_NOT_SET; +} + + +void Value::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Value) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_kind(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Value::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_null_value(static_cast<::PROTOBUF_NAMESPACE_ID::NullValue>(val)); + } else + goto handle_unusual; + continue; + // bool bool_value = 2 [json_name = "boolValue"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _internal_set_bool_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 int64_value = 3 [json_name = "int64Value"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _internal_set_int64_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _internal_set_uint64_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double double_value = 5 [json_name = "doubleValue"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 41)) { + _internal_set_double_value(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // string string_value = 6 [json_name = "stringValue"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_string_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Value.string_value")); + } else + goto handle_unusual; + continue; + // bytes bytes_value = 7 [json_name = "bytesValue"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_bytes_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_enum_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + ptr = ctx->ParseMessage(_internal_mutable_object_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + ptr = ctx->ParseMessage(_internal_mutable_map_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + ptr = ctx->ParseMessage(_internal_mutable_list_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string type_value = 15 [json_name = "typeValue"]; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { + auto str = _internal_mutable_type_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Value.type_value")); + } 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* Value::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Value) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + if (_internal_has_null_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_null_value(), target); + } + + // bool bool_value = 2 [json_name = "boolValue"]; + if (_internal_has_bool_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_bool_value(), target); + } + + // int64 int64_value = 3 [json_name = "int64Value"]; + if (_internal_has_int64_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_int64_value(), target); + } + + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + if (_internal_has_uint64_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_uint64_value(), target); + } + + // double double_value = 5 [json_name = "doubleValue"]; + if (_internal_has_double_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_double_value(), target); + } + + // string string_value = 6 [json_name = "stringValue"]; + if (_internal_has_string_value()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_string_value().data(), static_cast(this->_internal_string_value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Value.string_value"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_string_value(), target); + } + + // bytes bytes_value = 7 [json_name = "bytesValue"]; + if (_internal_has_bytes_value()) { + target = stream->WriteBytesMaybeAliased( + 7, this->_internal_bytes_value(), target); + } + + // .google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"]; + if (_internal_has_enum_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, _Internal::enum_value(this), + _Internal::enum_value(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; + if (_internal_has_object_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(10, _Internal::object_value(this), + _Internal::object_value(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"]; + if (_internal_has_map_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(11, _Internal::map_value(this), + _Internal::map_value(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"]; + if (_internal_has_list_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(12, _Internal::list_value(this), + _Internal::list_value(this).GetCachedSize(), target, stream); + } + + // string type_value = 15 [json_name = "typeValue"]; + if (_internal_has_type_value()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type_value().data(), static_cast(this->_internal_type_value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Value.type_value"); + target = stream->WriteStringMaybeAliased( + 15, this->_internal_type_value(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1beta1.Value) + return target; +} + +size_t Value::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Value) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (kind_case()) { + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + case kNullValue: { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_null_value()); + break; + } + // bool bool_value = 2 [json_name = "boolValue"]; + case kBoolValue: { + total_size += 1 + 1; + break; + } + // int64 int64_value = 3 [json_name = "int64Value"]; + case kInt64Value: { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_int64_value()); + break; + } + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + case kUint64Value: { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_uint64_value()); + break; + } + // double double_value = 5 [json_name = "doubleValue"]; + case kDoubleValue: { + total_size += 1 + 8; + break; + } + // string string_value = 6 [json_name = "stringValue"]; + case kStringValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_string_value()); + break; + } + // bytes bytes_value = 7 [json_name = "bytesValue"]; + case kBytesValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_bytes_value()); + break; + } + // .google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"]; + case kEnumValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.enum_value_); + break; + } + // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; + case kObjectValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.object_value_); + break; + } + // .google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"]; + case kMapValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.map_value_); + break; + } + // .google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"]; + case kListValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.list_value_); + break; + } + // string type_value = 15 [json_name = "typeValue"]; + case kTypeValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type_value()); + break; + } + case KIND_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Value::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Value::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Value::GetClassData() const { return &_class_data_; } + + +void Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Value) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.kind_case()) { + case kNullValue: { + _this->_internal_set_null_value(from._internal_null_value()); + break; + } + case kBoolValue: { + _this->_internal_set_bool_value(from._internal_bool_value()); + break; + } + case kInt64Value: { + _this->_internal_set_int64_value(from._internal_int64_value()); + break; + } + case kUint64Value: { + _this->_internal_set_uint64_value(from._internal_uint64_value()); + break; + } + case kDoubleValue: { + _this->_internal_set_double_value(from._internal_double_value()); + break; + } + case kStringValue: { + _this->_internal_set_string_value(from._internal_string_value()); + break; + } + case kBytesValue: { + _this->_internal_set_bytes_value(from._internal_bytes_value()); + break; + } + case kEnumValue: { + _this->_internal_mutable_enum_value()->::google::api::expr::v1beta1::EnumValue::MergeFrom( + from._internal_enum_value()); + break; + } + case kObjectValue: { + _this->_internal_mutable_object_value()->::PROTOBUF_NAMESPACE_ID::Any::MergeFrom( + from._internal_object_value()); + break; + } + case kMapValue: { + _this->_internal_mutable_map_value()->::google::api::expr::v1beta1::MapValue::MergeFrom( + from._internal_map_value()); + break; + } + case kListValue: { + _this->_internal_mutable_list_value()->::google::api::expr::v1beta1::ListValue::MergeFrom( + from._internal_list_value()); + break; + } + case kTypeValue: { + _this->_internal_set_type_value(from._internal_type_value()); + break; + } + case KIND_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Value::CopyFrom(const Value& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.Value) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Value::IsInitialized() const { + return true; +} + +void Value::InternalSwap(Value* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.kind_, other->_impl_.kind_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Value::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto[0]); +} + +// =================================================================== + +class EnumValue::_Internal { + public: +}; + +EnumValue::EnumValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.EnumValue) +} +EnumValue::EnumValue(const EnumValue& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + EnumValue* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.type_){} + , decltype(_impl_.value_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_type().empty()) { + _this->_impl_.type_.Set(from._internal_type(), + _this->GetArenaForAllocation()); + } + _this->_impl_.value_ = from._impl_.value_; + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.EnumValue) +} + +inline void EnumValue::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.type_){} + , decltype(_impl_.value_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +EnumValue::~EnumValue() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.EnumValue) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void EnumValue::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.type_.Destroy(); +} + +void EnumValue::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void EnumValue::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.EnumValue) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.type_.ClearToEmpty(); + _impl_.value_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EnumValue::_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 type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.EnumValue.type")); + } else + goto handle_unusual; + continue; + // int32 value = 2 [json_name = "value"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* EnumValue::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.EnumValue) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string type = 1 [json_name = "type"]; + if (!this->_internal_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.EnumValue.type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_type(), target); + } + + // int32 value = 2 [json_name = "value"]; + if (this->_internal_value() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_value(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1beta1.EnumValue) + return target; +} + +size_t EnumValue::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.EnumValue) + 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 type = 1 [json_name = "type"]; + if (!this->_internal_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); + } + + // int32 value = 2 [json_name = "value"]; + if (this->_internal_value() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_value()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EnumValue::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + EnumValue::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EnumValue::GetClassData() const { return &_class_data_; } + + +void EnumValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.EnumValue) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } + if (from._internal_value() != 0) { + _this->_internal_set_value(from._internal_value()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void EnumValue::CopyFrom(const EnumValue& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.EnumValue) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EnumValue::IsInitialized() const { + return true; +} + +void EnumValue::InternalSwap(EnumValue* 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( + &_impl_.type_, lhs_arena, + &other->_impl_.type_, rhs_arena + ); + swap(_impl_.value_, other->_impl_.value_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata EnumValue::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto[1]); +} + +// =================================================================== + +class ListValue::_Internal { + public: +}; + +ListValue::ListValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.ListValue) +} +ListValue::ListValue(const ListValue& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ListValue* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.values_){from._impl_.values_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.ListValue) +} + +inline void ListValue::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.values_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +ListValue::~ListValue() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.ListValue) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ListValue::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.values_.~RepeatedPtrField(); +} + +void ListValue::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ListValue::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.ListValue) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.values_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListValue::_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) { + // repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_values(), 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* ListValue::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.ListValue) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"]; + for (unsigned i = 0, + n = static_cast(this->_internal_values_size()); i < n; i++) { + const auto& repfield = this->_internal_values(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1beta1.ListValue) + return target; +} + +size_t ListValue::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.ListValue) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"]; + total_size += 1UL * this->_internal_values_size(); + for (const auto& msg : this->_impl_.values_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListValue::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ListValue::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListValue::GetClassData() const { return &_class_data_; } + + +void ListValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.ListValue) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.values_.MergeFrom(from._impl_.values_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ListValue::CopyFrom(const ListValue& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.ListValue) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListValue::IsInitialized() const { + return true; +} + +void ListValue::InternalSwap(ListValue* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.values_.InternalSwap(&other->_impl_.values_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListValue::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto[2]); +} + +// =================================================================== + +class MapValue_Entry::_Internal { + public: + static const ::google::api::expr::v1beta1::Value& key(const MapValue_Entry* msg); + static const ::google::api::expr::v1beta1::Value& value(const MapValue_Entry* msg); +}; + +const ::google::api::expr::v1beta1::Value& +MapValue_Entry::_Internal::key(const MapValue_Entry* msg) { + return *msg->_impl_.key_; +} +const ::google::api::expr::v1beta1::Value& +MapValue_Entry::_Internal::value(const MapValue_Entry* msg) { + return *msg->_impl_.value_; +} +MapValue_Entry::MapValue_Entry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.MapValue.Entry) +} +MapValue_Entry::MapValue_Entry(const MapValue_Entry& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + MapValue_Entry* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.key_){nullptr} + , decltype(_impl_.value_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_key()) { + _this->_impl_.key_ = new ::google::api::expr::v1beta1::Value(*from._impl_.key_); + } + if (from._internal_has_value()) { + _this->_impl_.value_ = new ::google::api::expr::v1beta1::Value(*from._impl_.value_); + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.MapValue.Entry) +} + +inline void MapValue_Entry::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.key_){nullptr} + , decltype(_impl_.value_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +MapValue_Entry::~MapValue_Entry() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.MapValue.Entry) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void MapValue_Entry::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.key_; + if (this != internal_default_instance()) delete _impl_.value_; +} + +void MapValue_Entry::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void MapValue_Entry::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.MapValue.Entry) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.key_ != nullptr) { + delete _impl_.key_; + } + _impl_.key_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.value_ != nullptr) { + delete _impl_.value_; + } + _impl_.value_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MapValue_Entry::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.api.expr.v1beta1.Value key = 1 [json_name = "key"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_key(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Value value = 2 [json_name = "value"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_value(), 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* MapValue_Entry::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.MapValue.Entry) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.api.expr.v1beta1.Value key = 1 [json_name = "key"]; + if (this->_internal_has_key()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::key(this), + _Internal::key(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.Value value = 2 [json_name = "value"]; + if (this->_internal_has_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::value(this), + _Internal::value(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:google.api.expr.v1beta1.MapValue.Entry) + return target; +} + +size_t MapValue_Entry::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.MapValue.Entry) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.api.expr.v1beta1.Value key = 1 [json_name = "key"]; + if (this->_internal_has_key()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.key_); + } + + // .google.api.expr.v1beta1.Value value = 2 [json_name = "value"]; + if (this->_internal_has_value()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.value_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MapValue_Entry::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MapValue_Entry::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MapValue_Entry::GetClassData() const { return &_class_data_; } + + +void MapValue_Entry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.MapValue.Entry) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_key()) { + _this->_internal_mutable_key()->::google::api::expr::v1beta1::Value::MergeFrom( + from._internal_key()); + } + if (from._internal_has_value()) { + _this->_internal_mutable_value()->::google::api::expr::v1beta1::Value::MergeFrom( + from._internal_value()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MapValue_Entry::CopyFrom(const MapValue_Entry& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.MapValue.Entry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MapValue_Entry::IsInitialized() const { + return true; +} + +void MapValue_Entry::InternalSwap(MapValue_Entry* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MapValue_Entry, _impl_.value_) + + sizeof(MapValue_Entry::_impl_.value_) + - PROTOBUF_FIELD_OFFSET(MapValue_Entry, _impl_.key_)>( + reinterpret_cast(&_impl_.key_), + reinterpret_cast(&other->_impl_.key_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MapValue_Entry::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto[3]); +} + +// =================================================================== + +class MapValue::_Internal { + public: +}; + +MapValue::MapValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.MapValue) +} +MapValue::MapValue(const MapValue& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + MapValue* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.entries_){from._impl_.entries_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.MapValue) +} + +inline void MapValue::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.entries_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +MapValue::~MapValue() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.MapValue) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void MapValue::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.entries_.~RepeatedPtrField(); +} + +void MapValue::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void MapValue::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.MapValue) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.entries_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MapValue::_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) { + // repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_entries(), 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* MapValue::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.MapValue) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"]; + for (unsigned i = 0, + n = static_cast(this->_internal_entries_size()); i < n; i++) { + const auto& repfield = this->_internal_entries(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1beta1.MapValue) + return target; +} + +size_t MapValue::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.MapValue) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"]; + total_size += 1UL * this->_internal_entries_size(); + for (const auto& msg : this->_impl_.entries_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MapValue::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MapValue::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MapValue::GetClassData() const { return &_class_data_; } + + +void MapValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.MapValue) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.entries_.MergeFrom(from._impl_.entries_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MapValue::CopyFrom(const MapValue& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1beta1.MapValue) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MapValue::IsInitialized() const { + return true; +} + +void MapValue::InternalSwap(MapValue* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.entries_.InternalSwap(&other->_impl_.entries_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MapValue::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto[4]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Value* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Value >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Value >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::EnumValue* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::EnumValue >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::EnumValue >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::ListValue* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::ListValue >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::ListValue >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::MapValue_Entry* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::MapValue_Entry >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::MapValue_Entry >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::MapValue* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::MapValue >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::MapValue >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/google/api/expr/v1beta1/value.pb.h b/src/gen/google/api/expr/v1beta1/value.pb.h new file mode 100644 index 000000000..1a804964e --- /dev/null +++ b/src/gen/google/api/expr/v1beta1/value.pb.h @@ -0,0 +1,2229 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/expr/v1beta1/value.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto; +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { +class EnumValue; +struct EnumValueDefaultTypeInternal; +extern EnumValueDefaultTypeInternal _EnumValue_default_instance_; +class ListValue; +struct ListValueDefaultTypeInternal; +extern ListValueDefaultTypeInternal _ListValue_default_instance_; +class MapValue; +struct MapValueDefaultTypeInternal; +extern MapValueDefaultTypeInternal _MapValue_default_instance_; +class MapValue_Entry; +struct MapValue_EntryDefaultTypeInternal; +extern MapValue_EntryDefaultTypeInternal _MapValue_Entry_default_instance_; +class Value; +struct ValueDefaultTypeInternal; +extern ValueDefaultTypeInternal _Value_default_instance_; +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::expr::v1beta1::EnumValue* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::EnumValue>(Arena*); +template<> ::google::api::expr::v1beta1::ListValue* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::ListValue>(Arena*); +template<> ::google::api::expr::v1beta1::MapValue* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::MapValue>(Arena*); +template<> ::google::api::expr::v1beta1::MapValue_Entry* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::MapValue_Entry>(Arena*); +template<> ::google::api::expr::v1beta1::Value* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Value>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace api { +namespace expr { +namespace v1beta1 { + +// =================================================================== + +class Value final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Value) */ { + public: + inline Value() : Value(nullptr) {} + ~Value() override; + explicit PROTOBUF_CONSTEXPR Value(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Value(const Value& from); + Value(Value&& from) noexcept + : Value() { + *this = ::std::move(from); + } + + inline Value& operator=(const Value& from) { + CopyFrom(from); + return *this; + } + inline Value& operator=(Value&& 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 Value& default_instance() { + return *internal_default_instance(); + } + enum KindCase { + kNullValue = 1, + kBoolValue = 2, + kInt64Value = 3, + kUint64Value = 4, + kDoubleValue = 5, + kStringValue = 6, + kBytesValue = 7, + kEnumValue = 9, + kObjectValue = 10, + kMapValue = 11, + kListValue = 12, + kTypeValue = 15, + KIND_NOT_SET = 0, + }; + + static inline const Value* internal_default_instance() { + return reinterpret_cast( + &_Value_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(Value& a, Value& b) { + a.Swap(&b); + } + inline void Swap(Value* 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(Value* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Value* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Value& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Value& from) { + Value::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Value* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.Value"; + } + protected: + explicit Value(::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 { + kNullValueFieldNumber = 1, + kBoolValueFieldNumber = 2, + kInt64ValueFieldNumber = 3, + kUint64ValueFieldNumber = 4, + kDoubleValueFieldNumber = 5, + kStringValueFieldNumber = 6, + kBytesValueFieldNumber = 7, + kEnumValueFieldNumber = 9, + kObjectValueFieldNumber = 10, + kMapValueFieldNumber = 11, + kListValueFieldNumber = 12, + kTypeValueFieldNumber = 15, + }; + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + bool has_null_value() const; + private: + bool _internal_has_null_value() const; + public: + void clear_null_value(); + ::PROTOBUF_NAMESPACE_ID::NullValue null_value() const; + void set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value); + private: + ::PROTOBUF_NAMESPACE_ID::NullValue _internal_null_value() const; + void _internal_set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value); + public: + + // bool bool_value = 2 [json_name = "boolValue"]; + bool has_bool_value() const; + private: + bool _internal_has_bool_value() const; + public: + void clear_bool_value(); + bool bool_value() const; + void set_bool_value(bool value); + private: + bool _internal_bool_value() const; + void _internal_set_bool_value(bool value); + public: + + // int64 int64_value = 3 [json_name = "int64Value"]; + bool has_int64_value() const; + private: + bool _internal_has_int64_value() const; + public: + void clear_int64_value(); + int64_t int64_value() const; + void set_int64_value(int64_t value); + private: + int64_t _internal_int64_value() const; + void _internal_set_int64_value(int64_t value); + public: + + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + bool has_uint64_value() const; + private: + bool _internal_has_uint64_value() const; + public: + void clear_uint64_value(); + uint64_t uint64_value() const; + void set_uint64_value(uint64_t value); + private: + uint64_t _internal_uint64_value() const; + void _internal_set_uint64_value(uint64_t value); + public: + + // double double_value = 5 [json_name = "doubleValue"]; + bool has_double_value() const; + private: + bool _internal_has_double_value() const; + public: + void clear_double_value(); + double double_value() const; + void set_double_value(double value); + private: + double _internal_double_value() const; + void _internal_set_double_value(double value); + public: + + // string string_value = 6 [json_name = "stringValue"]; + bool has_string_value() const; + private: + bool _internal_has_string_value() const; + public: + void clear_string_value(); + const std::string& string_value() const; + template + void set_string_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_string_value(); + PROTOBUF_NODISCARD std::string* release_string_value(); + void set_allocated_string_value(std::string* string_value); + private: + const std::string& _internal_string_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value(const std::string& value); + std::string* _internal_mutable_string_value(); + public: + + // bytes bytes_value = 7 [json_name = "bytesValue"]; + bool has_bytes_value() const; + private: + bool _internal_has_bytes_value() const; + public: + void clear_bytes_value(); + const std::string& bytes_value() const; + template + void set_bytes_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_bytes_value(); + PROTOBUF_NODISCARD std::string* release_bytes_value(); + void set_allocated_bytes_value(std::string* bytes_value); + private: + const std::string& _internal_bytes_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_bytes_value(const std::string& value); + std::string* _internal_mutable_bytes_value(); + public: + + // .google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"]; + bool has_enum_value() const; + private: + bool _internal_has_enum_value() const; + public: + void clear_enum_value(); + const ::google::api::expr::v1beta1::EnumValue& enum_value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::EnumValue* release_enum_value(); + ::google::api::expr::v1beta1::EnumValue* mutable_enum_value(); + void set_allocated_enum_value(::google::api::expr::v1beta1::EnumValue* enum_value); + private: + const ::google::api::expr::v1beta1::EnumValue& _internal_enum_value() const; + ::google::api::expr::v1beta1::EnumValue* _internal_mutable_enum_value(); + public: + void unsafe_arena_set_allocated_enum_value( + ::google::api::expr::v1beta1::EnumValue* enum_value); + ::google::api::expr::v1beta1::EnumValue* unsafe_arena_release_enum_value(); + + // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; + bool has_object_value() const; + private: + bool _internal_has_object_value() const; + public: + void clear_object_value(); + const ::PROTOBUF_NAMESPACE_ID::Any& object_value() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Any* release_object_value(); + ::PROTOBUF_NAMESPACE_ID::Any* mutable_object_value(); + void set_allocated_object_value(::PROTOBUF_NAMESPACE_ID::Any* object_value); + private: + const ::PROTOBUF_NAMESPACE_ID::Any& _internal_object_value() const; + ::PROTOBUF_NAMESPACE_ID::Any* _internal_mutable_object_value(); + public: + void unsafe_arena_set_allocated_object_value( + ::PROTOBUF_NAMESPACE_ID::Any* object_value); + ::PROTOBUF_NAMESPACE_ID::Any* unsafe_arena_release_object_value(); + + // .google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"]; + bool has_map_value() const; + private: + bool _internal_has_map_value() const; + public: + void clear_map_value(); + const ::google::api::expr::v1beta1::MapValue& map_value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::MapValue* release_map_value(); + ::google::api::expr::v1beta1::MapValue* mutable_map_value(); + void set_allocated_map_value(::google::api::expr::v1beta1::MapValue* map_value); + private: + const ::google::api::expr::v1beta1::MapValue& _internal_map_value() const; + ::google::api::expr::v1beta1::MapValue* _internal_mutable_map_value(); + public: + void unsafe_arena_set_allocated_map_value( + ::google::api::expr::v1beta1::MapValue* map_value); + ::google::api::expr::v1beta1::MapValue* unsafe_arena_release_map_value(); + + // .google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"]; + bool has_list_value() const; + private: + bool _internal_has_list_value() const; + public: + void clear_list_value(); + const ::google::api::expr::v1beta1::ListValue& list_value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::ListValue* release_list_value(); + ::google::api::expr::v1beta1::ListValue* mutable_list_value(); + void set_allocated_list_value(::google::api::expr::v1beta1::ListValue* list_value); + private: + const ::google::api::expr::v1beta1::ListValue& _internal_list_value() const; + ::google::api::expr::v1beta1::ListValue* _internal_mutable_list_value(); + public: + void unsafe_arena_set_allocated_list_value( + ::google::api::expr::v1beta1::ListValue* list_value); + ::google::api::expr::v1beta1::ListValue* unsafe_arena_release_list_value(); + + // string type_value = 15 [json_name = "typeValue"]; + bool has_type_value() const; + private: + bool _internal_has_type_value() const; + public: + void clear_type_value(); + const std::string& type_value() const; + template + void set_type_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_type_value(); + PROTOBUF_NODISCARD std::string* release_type_value(); + void set_allocated_type_value(std::string* type_value); + private: + const std::string& _internal_type_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_value(const std::string& value); + std::string* _internal_mutable_type_value(); + public: + + void clear_kind(); + KindCase kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Value) + private: + class _Internal; + void set_has_null_value(); + void set_has_bool_value(); + void set_has_int64_value(); + void set_has_uint64_value(); + void set_has_double_value(); + void set_has_string_value(); + void set_has_bytes_value(); + void set_has_enum_value(); + void set_has_object_value(); + void set_has_map_value(); + void set_has_list_value(); + void set_has_type_value(); + + inline bool has_kind() const; + inline void clear_has_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + union KindUnion { + constexpr KindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + int null_value_; + bool bool_value_; + int64_t int64_value_; + uint64_t uint64_value_; + double double_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bytes_value_; + ::google::api::expr::v1beta1::EnumValue* enum_value_; + ::PROTOBUF_NAMESPACE_ID::Any* object_value_; + ::google::api::expr::v1beta1::MapValue* map_value_; + ::google::api::expr::v1beta1::ListValue* list_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_value_; + } kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto; +}; +// ------------------------------------------------------------------- + +class EnumValue final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.EnumValue) */ { + public: + inline EnumValue() : EnumValue(nullptr) {} + ~EnumValue() override; + explicit PROTOBUF_CONSTEXPR EnumValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + EnumValue(const EnumValue& from); + EnumValue(EnumValue&& from) noexcept + : EnumValue() { + *this = ::std::move(from); + } + + inline EnumValue& operator=(const EnumValue& from) { + CopyFrom(from); + return *this; + } + inline EnumValue& operator=(EnumValue&& 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 EnumValue& default_instance() { + return *internal_default_instance(); + } + static inline const EnumValue* internal_default_instance() { + return reinterpret_cast( + &_EnumValue_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(EnumValue& a, EnumValue& b) { + a.Swap(&b); + } + inline void Swap(EnumValue* 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(EnumValue* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + EnumValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EnumValue& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const EnumValue& from) { + EnumValue::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EnumValue* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.EnumValue"; + } + protected: + explicit EnumValue(::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 { + kTypeFieldNumber = 1, + kValueFieldNumber = 2, + }; + // string type = 1 [json_name = "type"]; + void clear_type(); + const std::string& type() const; + template + void set_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_type(); + PROTOBUF_NODISCARD std::string* release_type(); + void set_allocated_type(std::string* type); + private: + const std::string& _internal_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); + std::string* _internal_mutable_type(); + public: + + // int32 value = 2 [json_name = "value"]; + void clear_value(); + int32_t value() const; + void set_value(int32_t value); + private: + int32_t _internal_value() const; + void _internal_set_value(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.EnumValue) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + int32_t value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto; +}; +// ------------------------------------------------------------------- + +class ListValue final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.ListValue) */ { + public: + inline ListValue() : ListValue(nullptr) {} + ~ListValue() override; + explicit PROTOBUF_CONSTEXPR ListValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListValue(const ListValue& from); + ListValue(ListValue&& from) noexcept + : ListValue() { + *this = ::std::move(from); + } + + inline ListValue& operator=(const ListValue& from) { + CopyFrom(from); + return *this; + } + inline ListValue& operator=(ListValue&& 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 ListValue& default_instance() { + return *internal_default_instance(); + } + static inline const ListValue* internal_default_instance() { + return reinterpret_cast( + &_ListValue_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(ListValue& a, ListValue& b) { + a.Swap(&b); + } + inline void Swap(ListValue* 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(ListValue* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListValue& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ListValue& from) { + ListValue::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListValue* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.ListValue"; + } + protected: + explicit ListValue(::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 { + kValuesFieldNumber = 1, + }; + // repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"]; + int values_size() const; + private: + int _internal_values_size() const; + public: + void clear_values(); + ::google::api::expr::v1beta1::Value* mutable_values(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Value >* + mutable_values(); + private: + const ::google::api::expr::v1beta1::Value& _internal_values(int index) const; + ::google::api::expr::v1beta1::Value* _internal_add_values(); + public: + const ::google::api::expr::v1beta1::Value& values(int index) const; + ::google::api::expr::v1beta1::Value* add_values(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Value >& + values() const; + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.ListValue) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Value > values_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto; +}; +// ------------------------------------------------------------------- + +class MapValue_Entry final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.MapValue.Entry) */ { + public: + inline MapValue_Entry() : MapValue_Entry(nullptr) {} + ~MapValue_Entry() override; + explicit PROTOBUF_CONSTEXPR MapValue_Entry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MapValue_Entry(const MapValue_Entry& from); + MapValue_Entry(MapValue_Entry&& from) noexcept + : MapValue_Entry() { + *this = ::std::move(from); + } + + inline MapValue_Entry& operator=(const MapValue_Entry& from) { + CopyFrom(from); + return *this; + } + inline MapValue_Entry& operator=(MapValue_Entry&& 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 MapValue_Entry& default_instance() { + return *internal_default_instance(); + } + static inline const MapValue_Entry* internal_default_instance() { + return reinterpret_cast( + &_MapValue_Entry_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(MapValue_Entry& a, MapValue_Entry& b) { + a.Swap(&b); + } + inline void Swap(MapValue_Entry* 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(MapValue_Entry* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MapValue_Entry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MapValue_Entry& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MapValue_Entry& from) { + MapValue_Entry::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MapValue_Entry* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.MapValue.Entry"; + } + protected: + explicit MapValue_Entry(::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 { + kKeyFieldNumber = 1, + kValueFieldNumber = 2, + }; + // .google.api.expr.v1beta1.Value key = 1 [json_name = "key"]; + bool has_key() const; + private: + bool _internal_has_key() const; + public: + void clear_key(); + const ::google::api::expr::v1beta1::Value& key() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Value* release_key(); + ::google::api::expr::v1beta1::Value* mutable_key(); + void set_allocated_key(::google::api::expr::v1beta1::Value* key); + private: + const ::google::api::expr::v1beta1::Value& _internal_key() const; + ::google::api::expr::v1beta1::Value* _internal_mutable_key(); + public: + void unsafe_arena_set_allocated_key( + ::google::api::expr::v1beta1::Value* key); + ::google::api::expr::v1beta1::Value* unsafe_arena_release_key(); + + // .google.api.expr.v1beta1.Value value = 2 [json_name = "value"]; + bool has_value() const; + private: + bool _internal_has_value() const; + public: + void clear_value(); + const ::google::api::expr::v1beta1::Value& value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Value* release_value(); + ::google::api::expr::v1beta1::Value* mutable_value(); + void set_allocated_value(::google::api::expr::v1beta1::Value* value); + private: + const ::google::api::expr::v1beta1::Value& _internal_value() const; + ::google::api::expr::v1beta1::Value* _internal_mutable_value(); + public: + void unsafe_arena_set_allocated_value( + ::google::api::expr::v1beta1::Value* value); + ::google::api::expr::v1beta1::Value* unsafe_arena_release_value(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.MapValue.Entry) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::api::expr::v1beta1::Value* key_; + ::google::api::expr::v1beta1::Value* value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto; +}; +// ------------------------------------------------------------------- + +class MapValue final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.MapValue) */ { + public: + inline MapValue() : MapValue(nullptr) {} + ~MapValue() override; + explicit PROTOBUF_CONSTEXPR MapValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MapValue(const MapValue& from); + MapValue(MapValue&& from) noexcept + : MapValue() { + *this = ::std::move(from); + } + + inline MapValue& operator=(const MapValue& from) { + CopyFrom(from); + return *this; + } + inline MapValue& operator=(MapValue&& 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 MapValue& default_instance() { + return *internal_default_instance(); + } + static inline const MapValue* internal_default_instance() { + return reinterpret_cast( + &_MapValue_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(MapValue& a, MapValue& b) { + a.Swap(&b); + } + inline void Swap(MapValue* 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(MapValue* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MapValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MapValue& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MapValue& from) { + MapValue::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MapValue* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.MapValue"; + } + protected: + explicit MapValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef MapValue_Entry Entry; + + // accessors ------------------------------------------------------- + + enum : int { + kEntriesFieldNumber = 1, + }; + // repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"]; + int entries_size() const; + private: + int _internal_entries_size() const; + public: + void clear_entries(); + ::google::api::expr::v1beta1::MapValue_Entry* mutable_entries(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::MapValue_Entry >* + mutable_entries(); + private: + const ::google::api::expr::v1beta1::MapValue_Entry& _internal_entries(int index) const; + ::google::api::expr::v1beta1::MapValue_Entry* _internal_add_entries(); + public: + const ::google::api::expr::v1beta1::MapValue_Entry& entries(int index) const; + ::google::api::expr::v1beta1::MapValue_Entry* add_entries(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::MapValue_Entry >& + entries() const; + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.MapValue) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::MapValue_Entry > entries_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Value + +// .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; +inline bool Value::_internal_has_null_value() const { + return kind_case() == kNullValue; +} +inline bool Value::has_null_value() const { + return _internal_has_null_value(); +} +inline void Value::set_has_null_value() { + _impl_._oneof_case_[0] = kNullValue; +} +inline void Value::clear_null_value() { + if (_internal_has_null_value()) { + _impl_.kind_.null_value_ = 0; + clear_has_kind(); + } +} +inline ::PROTOBUF_NAMESPACE_ID::NullValue Value::_internal_null_value() const { + if (_internal_has_null_value()) { + return static_cast< ::PROTOBUF_NAMESPACE_ID::NullValue >(_impl_.kind_.null_value_); + } + return static_cast< ::PROTOBUF_NAMESPACE_ID::NullValue >(0); +} +inline ::PROTOBUF_NAMESPACE_ID::NullValue Value::null_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.null_value) + return _internal_null_value(); +} +inline void Value::_internal_set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value) { + if (!_internal_has_null_value()) { + clear_kind(); + set_has_null_value(); + } + _impl_.kind_.null_value_ = value; +} +inline void Value::set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value) { + _internal_set_null_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Value.null_value) +} + +// bool bool_value = 2 [json_name = "boolValue"]; +inline bool Value::_internal_has_bool_value() const { + return kind_case() == kBoolValue; +} +inline bool Value::has_bool_value() const { + return _internal_has_bool_value(); +} +inline void Value::set_has_bool_value() { + _impl_._oneof_case_[0] = kBoolValue; +} +inline void Value::clear_bool_value() { + if (_internal_has_bool_value()) { + _impl_.kind_.bool_value_ = false; + clear_has_kind(); + } +} +inline bool Value::_internal_bool_value() const { + if (_internal_has_bool_value()) { + return _impl_.kind_.bool_value_; + } + return false; +} +inline void Value::_internal_set_bool_value(bool value) { + if (!_internal_has_bool_value()) { + clear_kind(); + set_has_bool_value(); + } + _impl_.kind_.bool_value_ = value; +} +inline bool Value::bool_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.bool_value) + return _internal_bool_value(); +} +inline void Value::set_bool_value(bool value) { + _internal_set_bool_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Value.bool_value) +} + +// int64 int64_value = 3 [json_name = "int64Value"]; +inline bool Value::_internal_has_int64_value() const { + return kind_case() == kInt64Value; +} +inline bool Value::has_int64_value() const { + return _internal_has_int64_value(); +} +inline void Value::set_has_int64_value() { + _impl_._oneof_case_[0] = kInt64Value; +} +inline void Value::clear_int64_value() { + if (_internal_has_int64_value()) { + _impl_.kind_.int64_value_ = int64_t{0}; + clear_has_kind(); + } +} +inline int64_t Value::_internal_int64_value() const { + if (_internal_has_int64_value()) { + return _impl_.kind_.int64_value_; + } + return int64_t{0}; +} +inline void Value::_internal_set_int64_value(int64_t value) { + if (!_internal_has_int64_value()) { + clear_kind(); + set_has_int64_value(); + } + _impl_.kind_.int64_value_ = value; +} +inline int64_t Value::int64_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.int64_value) + return _internal_int64_value(); +} +inline void Value::set_int64_value(int64_t value) { + _internal_set_int64_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Value.int64_value) +} + +// uint64 uint64_value = 4 [json_name = "uint64Value"]; +inline bool Value::_internal_has_uint64_value() const { + return kind_case() == kUint64Value; +} +inline bool Value::has_uint64_value() const { + return _internal_has_uint64_value(); +} +inline void Value::set_has_uint64_value() { + _impl_._oneof_case_[0] = kUint64Value; +} +inline void Value::clear_uint64_value() { + if (_internal_has_uint64_value()) { + _impl_.kind_.uint64_value_ = uint64_t{0u}; + clear_has_kind(); + } +} +inline uint64_t Value::_internal_uint64_value() const { + if (_internal_has_uint64_value()) { + return _impl_.kind_.uint64_value_; + } + return uint64_t{0u}; +} +inline void Value::_internal_set_uint64_value(uint64_t value) { + if (!_internal_has_uint64_value()) { + clear_kind(); + set_has_uint64_value(); + } + _impl_.kind_.uint64_value_ = value; +} +inline uint64_t Value::uint64_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.uint64_value) + return _internal_uint64_value(); +} +inline void Value::set_uint64_value(uint64_t value) { + _internal_set_uint64_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Value.uint64_value) +} + +// double double_value = 5 [json_name = "doubleValue"]; +inline bool Value::_internal_has_double_value() const { + return kind_case() == kDoubleValue; +} +inline bool Value::has_double_value() const { + return _internal_has_double_value(); +} +inline void Value::set_has_double_value() { + _impl_._oneof_case_[0] = kDoubleValue; +} +inline void Value::clear_double_value() { + if (_internal_has_double_value()) { + _impl_.kind_.double_value_ = 0; + clear_has_kind(); + } +} +inline double Value::_internal_double_value() const { + if (_internal_has_double_value()) { + return _impl_.kind_.double_value_; + } + return 0; +} +inline void Value::_internal_set_double_value(double value) { + if (!_internal_has_double_value()) { + clear_kind(); + set_has_double_value(); + } + _impl_.kind_.double_value_ = value; +} +inline double Value::double_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.double_value) + return _internal_double_value(); +} +inline void Value::set_double_value(double value) { + _internal_set_double_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Value.double_value) +} + +// string string_value = 6 [json_name = "stringValue"]; +inline bool Value::_internal_has_string_value() const { + return kind_case() == kStringValue; +} +inline bool Value::has_string_value() const { + return _internal_has_string_value(); +} +inline void Value::set_has_string_value() { + _impl_._oneof_case_[0] = kStringValue; +} +inline void Value::clear_string_value() { + if (_internal_has_string_value()) { + _impl_.kind_.string_value_.Destroy(); + clear_has_kind(); + } +} +inline const std::string& Value::string_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.string_value) + return _internal_string_value(); +} +template +inline void Value::set_string_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_string_value()) { + clear_kind(); + set_has_string_value(); + _impl_.kind_.string_value_.InitDefault(); + } + _impl_.kind_.string_value_.Set( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Value.string_value) +} +inline std::string* Value::mutable_string_value() { + std::string* _s = _internal_mutable_string_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Value.string_value) + return _s; +} +inline const std::string& Value::_internal_string_value() const { + if (_internal_has_string_value()) { + return _impl_.kind_.string_value_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void Value::_internal_set_string_value(const std::string& value) { + if (!_internal_has_string_value()) { + clear_kind(); + set_has_string_value(); + _impl_.kind_.string_value_.InitDefault(); + } + _impl_.kind_.string_value_.Set(value, GetArenaForAllocation()); +} +inline std::string* Value::_internal_mutable_string_value() { + if (!_internal_has_string_value()) { + clear_kind(); + set_has_string_value(); + _impl_.kind_.string_value_.InitDefault(); + } + return _impl_.kind_.string_value_.Mutable( GetArenaForAllocation()); +} +inline std::string* Value::release_string_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Value.string_value) + if (_internal_has_string_value()) { + clear_has_kind(); + return _impl_.kind_.string_value_.Release(); + } else { + return nullptr; + } +} +inline void Value::set_allocated_string_value(std::string* string_value) { + if (has_kind()) { + clear_kind(); + } + if (string_value != nullptr) { + set_has_string_value(); + _impl_.kind_.string_value_.InitAllocated(string_value, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Value.string_value) +} + +// bytes bytes_value = 7 [json_name = "bytesValue"]; +inline bool Value::_internal_has_bytes_value() const { + return kind_case() == kBytesValue; +} +inline bool Value::has_bytes_value() const { + return _internal_has_bytes_value(); +} +inline void Value::set_has_bytes_value() { + _impl_._oneof_case_[0] = kBytesValue; +} +inline void Value::clear_bytes_value() { + if (_internal_has_bytes_value()) { + _impl_.kind_.bytes_value_.Destroy(); + clear_has_kind(); + } +} +inline const std::string& Value::bytes_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.bytes_value) + return _internal_bytes_value(); +} +template +inline void Value::set_bytes_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_bytes_value()) { + clear_kind(); + set_has_bytes_value(); + _impl_.kind_.bytes_value_.InitDefault(); + } + _impl_.kind_.bytes_value_.SetBytes( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Value.bytes_value) +} +inline std::string* Value::mutable_bytes_value() { + std::string* _s = _internal_mutable_bytes_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Value.bytes_value) + return _s; +} +inline const std::string& Value::_internal_bytes_value() const { + if (_internal_has_bytes_value()) { + return _impl_.kind_.bytes_value_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void Value::_internal_set_bytes_value(const std::string& value) { + if (!_internal_has_bytes_value()) { + clear_kind(); + set_has_bytes_value(); + _impl_.kind_.bytes_value_.InitDefault(); + } + _impl_.kind_.bytes_value_.Set(value, GetArenaForAllocation()); +} +inline std::string* Value::_internal_mutable_bytes_value() { + if (!_internal_has_bytes_value()) { + clear_kind(); + set_has_bytes_value(); + _impl_.kind_.bytes_value_.InitDefault(); + } + return _impl_.kind_.bytes_value_.Mutable( GetArenaForAllocation()); +} +inline std::string* Value::release_bytes_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Value.bytes_value) + if (_internal_has_bytes_value()) { + clear_has_kind(); + return _impl_.kind_.bytes_value_.Release(); + } else { + return nullptr; + } +} +inline void Value::set_allocated_bytes_value(std::string* bytes_value) { + if (has_kind()) { + clear_kind(); + } + if (bytes_value != nullptr) { + set_has_bytes_value(); + _impl_.kind_.bytes_value_.InitAllocated(bytes_value, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Value.bytes_value) +} + +// .google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"]; +inline bool Value::_internal_has_enum_value() const { + return kind_case() == kEnumValue; +} +inline bool Value::has_enum_value() const { + return _internal_has_enum_value(); +} +inline void Value::set_has_enum_value() { + _impl_._oneof_case_[0] = kEnumValue; +} +inline void Value::clear_enum_value() { + if (_internal_has_enum_value()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.enum_value_; + } + clear_has_kind(); + } +} +inline ::google::api::expr::v1beta1::EnumValue* Value::release_enum_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Value.enum_value) + if (_internal_has_enum_value()) { + clear_has_kind(); + ::google::api::expr::v1beta1::EnumValue* temp = _impl_.kind_.enum_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.enum_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1beta1::EnumValue& Value::_internal_enum_value() const { + return _internal_has_enum_value() + ? *_impl_.kind_.enum_value_ + : reinterpret_cast< ::google::api::expr::v1beta1::EnumValue&>(::google::api::expr::v1beta1::_EnumValue_default_instance_); +} +inline const ::google::api::expr::v1beta1::EnumValue& Value::enum_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.enum_value) + return _internal_enum_value(); +} +inline ::google::api::expr::v1beta1::EnumValue* Value::unsafe_arena_release_enum_value() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Value.enum_value) + if (_internal_has_enum_value()) { + clear_has_kind(); + ::google::api::expr::v1beta1::EnumValue* temp = _impl_.kind_.enum_value_; + _impl_.kind_.enum_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Value::unsafe_arena_set_allocated_enum_value(::google::api::expr::v1beta1::EnumValue* enum_value) { + clear_kind(); + if (enum_value) { + set_has_enum_value(); + _impl_.kind_.enum_value_ = enum_value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Value.enum_value) +} +inline ::google::api::expr::v1beta1::EnumValue* Value::_internal_mutable_enum_value() { + if (!_internal_has_enum_value()) { + clear_kind(); + set_has_enum_value(); + _impl_.kind_.enum_value_ = CreateMaybeMessage< ::google::api::expr::v1beta1::EnumValue >(GetArenaForAllocation()); + } + return _impl_.kind_.enum_value_; +} +inline ::google::api::expr::v1beta1::EnumValue* Value::mutable_enum_value() { + ::google::api::expr::v1beta1::EnumValue* _msg = _internal_mutable_enum_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Value.enum_value) + return _msg; +} + +// .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; +inline bool Value::_internal_has_object_value() const { + return kind_case() == kObjectValue; +} +inline bool Value::has_object_value() const { + return _internal_has_object_value(); +} +inline void Value::set_has_object_value() { + _impl_._oneof_case_[0] = kObjectValue; +} +inline ::PROTOBUF_NAMESPACE_ID::Any* Value::release_object_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Value.object_value) + if (_internal_has_object_value()) { + clear_has_kind(); + ::PROTOBUF_NAMESPACE_ID::Any* temp = _impl_.kind_.object_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.object_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::PROTOBUF_NAMESPACE_ID::Any& Value::_internal_object_value() const { + return _internal_has_object_value() + ? *_impl_.kind_.object_value_ + : reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::Any&>(::PROTOBUF_NAMESPACE_ID::_Any_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Any& Value::object_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.object_value) + return _internal_object_value(); +} +inline ::PROTOBUF_NAMESPACE_ID::Any* Value::unsafe_arena_release_object_value() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Value.object_value) + if (_internal_has_object_value()) { + clear_has_kind(); + ::PROTOBUF_NAMESPACE_ID::Any* temp = _impl_.kind_.object_value_; + _impl_.kind_.object_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Value::unsafe_arena_set_allocated_object_value(::PROTOBUF_NAMESPACE_ID::Any* object_value) { + clear_kind(); + if (object_value) { + set_has_object_value(); + _impl_.kind_.object_value_ = object_value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Value.object_value) +} +inline ::PROTOBUF_NAMESPACE_ID::Any* Value::_internal_mutable_object_value() { + if (!_internal_has_object_value()) { + clear_kind(); + set_has_object_value(); + _impl_.kind_.object_value_ = CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Any >(GetArenaForAllocation()); + } + return _impl_.kind_.object_value_; +} +inline ::PROTOBUF_NAMESPACE_ID::Any* Value::mutable_object_value() { + ::PROTOBUF_NAMESPACE_ID::Any* _msg = _internal_mutable_object_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Value.object_value) + return _msg; +} + +// .google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"]; +inline bool Value::_internal_has_map_value() const { + return kind_case() == kMapValue; +} +inline bool Value::has_map_value() const { + return _internal_has_map_value(); +} +inline void Value::set_has_map_value() { + _impl_._oneof_case_[0] = kMapValue; +} +inline void Value::clear_map_value() { + if (_internal_has_map_value()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.map_value_; + } + clear_has_kind(); + } +} +inline ::google::api::expr::v1beta1::MapValue* Value::release_map_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Value.map_value) + if (_internal_has_map_value()) { + clear_has_kind(); + ::google::api::expr::v1beta1::MapValue* temp = _impl_.kind_.map_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.map_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1beta1::MapValue& Value::_internal_map_value() const { + return _internal_has_map_value() + ? *_impl_.kind_.map_value_ + : reinterpret_cast< ::google::api::expr::v1beta1::MapValue&>(::google::api::expr::v1beta1::_MapValue_default_instance_); +} +inline const ::google::api::expr::v1beta1::MapValue& Value::map_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.map_value) + return _internal_map_value(); +} +inline ::google::api::expr::v1beta1::MapValue* Value::unsafe_arena_release_map_value() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Value.map_value) + if (_internal_has_map_value()) { + clear_has_kind(); + ::google::api::expr::v1beta1::MapValue* temp = _impl_.kind_.map_value_; + _impl_.kind_.map_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Value::unsafe_arena_set_allocated_map_value(::google::api::expr::v1beta1::MapValue* map_value) { + clear_kind(); + if (map_value) { + set_has_map_value(); + _impl_.kind_.map_value_ = map_value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Value.map_value) +} +inline ::google::api::expr::v1beta1::MapValue* Value::_internal_mutable_map_value() { + if (!_internal_has_map_value()) { + clear_kind(); + set_has_map_value(); + _impl_.kind_.map_value_ = CreateMaybeMessage< ::google::api::expr::v1beta1::MapValue >(GetArenaForAllocation()); + } + return _impl_.kind_.map_value_; +} +inline ::google::api::expr::v1beta1::MapValue* Value::mutable_map_value() { + ::google::api::expr::v1beta1::MapValue* _msg = _internal_mutable_map_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Value.map_value) + return _msg; +} + +// .google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"]; +inline bool Value::_internal_has_list_value() const { + return kind_case() == kListValue; +} +inline bool Value::has_list_value() const { + return _internal_has_list_value(); +} +inline void Value::set_has_list_value() { + _impl_._oneof_case_[0] = kListValue; +} +inline void Value::clear_list_value() { + if (_internal_has_list_value()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.list_value_; + } + clear_has_kind(); + } +} +inline ::google::api::expr::v1beta1::ListValue* Value::release_list_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Value.list_value) + if (_internal_has_list_value()) { + clear_has_kind(); + ::google::api::expr::v1beta1::ListValue* temp = _impl_.kind_.list_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.list_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::expr::v1beta1::ListValue& Value::_internal_list_value() const { + return _internal_has_list_value() + ? *_impl_.kind_.list_value_ + : reinterpret_cast< ::google::api::expr::v1beta1::ListValue&>(::google::api::expr::v1beta1::_ListValue_default_instance_); +} +inline const ::google::api::expr::v1beta1::ListValue& Value::list_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.list_value) + return _internal_list_value(); +} +inline ::google::api::expr::v1beta1::ListValue* Value::unsafe_arena_release_list_value() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Value.list_value) + if (_internal_has_list_value()) { + clear_has_kind(); + ::google::api::expr::v1beta1::ListValue* temp = _impl_.kind_.list_value_; + _impl_.kind_.list_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Value::unsafe_arena_set_allocated_list_value(::google::api::expr::v1beta1::ListValue* list_value) { + clear_kind(); + if (list_value) { + set_has_list_value(); + _impl_.kind_.list_value_ = list_value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Value.list_value) +} +inline ::google::api::expr::v1beta1::ListValue* Value::_internal_mutable_list_value() { + if (!_internal_has_list_value()) { + clear_kind(); + set_has_list_value(); + _impl_.kind_.list_value_ = CreateMaybeMessage< ::google::api::expr::v1beta1::ListValue >(GetArenaForAllocation()); + } + return _impl_.kind_.list_value_; +} +inline ::google::api::expr::v1beta1::ListValue* Value::mutable_list_value() { + ::google::api::expr::v1beta1::ListValue* _msg = _internal_mutable_list_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Value.list_value) + return _msg; +} + +// string type_value = 15 [json_name = "typeValue"]; +inline bool Value::_internal_has_type_value() const { + return kind_case() == kTypeValue; +} +inline bool Value::has_type_value() const { + return _internal_has_type_value(); +} +inline void Value::set_has_type_value() { + _impl_._oneof_case_[0] = kTypeValue; +} +inline void Value::clear_type_value() { + if (_internal_has_type_value()) { + _impl_.kind_.type_value_.Destroy(); + clear_has_kind(); + } +} +inline const std::string& Value::type_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.type_value) + return _internal_type_value(); +} +template +inline void Value::set_type_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_type_value()) { + clear_kind(); + set_has_type_value(); + _impl_.kind_.type_value_.InitDefault(); + } + _impl_.kind_.type_value_.Set( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Value.type_value) +} +inline std::string* Value::mutable_type_value() { + std::string* _s = _internal_mutable_type_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Value.type_value) + return _s; +} +inline const std::string& Value::_internal_type_value() const { + if (_internal_has_type_value()) { + return _impl_.kind_.type_value_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void Value::_internal_set_type_value(const std::string& value) { + if (!_internal_has_type_value()) { + clear_kind(); + set_has_type_value(); + _impl_.kind_.type_value_.InitDefault(); + } + _impl_.kind_.type_value_.Set(value, GetArenaForAllocation()); +} +inline std::string* Value::_internal_mutable_type_value() { + if (!_internal_has_type_value()) { + clear_kind(); + set_has_type_value(); + _impl_.kind_.type_value_.InitDefault(); + } + return _impl_.kind_.type_value_.Mutable( GetArenaForAllocation()); +} +inline std::string* Value::release_type_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Value.type_value) + if (_internal_has_type_value()) { + clear_has_kind(); + return _impl_.kind_.type_value_.Release(); + } else { + return nullptr; + } +} +inline void Value::set_allocated_type_value(std::string* type_value) { + if (has_kind()) { + clear_kind(); + } + if (type_value != nullptr) { + set_has_type_value(); + _impl_.kind_.type_value_.InitAllocated(type_value, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Value.type_value) +} + +inline bool Value::has_kind() const { + return kind_case() != KIND_NOT_SET; +} +inline void Value::clear_has_kind() { + _impl_._oneof_case_[0] = KIND_NOT_SET; +} +inline Value::KindCase Value::kind_case() const { + return Value::KindCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// EnumValue + +// string type = 1 [json_name = "type"]; +inline void EnumValue::clear_type() { + _impl_.type_.ClearToEmpty(); +} +inline const std::string& EnumValue::type() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.EnumValue.type) + return _internal_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void EnumValue::set_type(ArgT0&& arg0, ArgT... args) { + + _impl_.type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.EnumValue.type) +} +inline std::string* EnumValue::mutable_type() { + std::string* _s = _internal_mutable_type(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.EnumValue.type) + return _s; +} +inline const std::string& EnumValue::_internal_type() const { + return _impl_.type_.Get(); +} +inline void EnumValue::_internal_set_type(const std::string& value) { + + _impl_.type_.Set(value, GetArenaForAllocation()); +} +inline std::string* EnumValue::_internal_mutable_type() { + + return _impl_.type_.Mutable(GetArenaForAllocation()); +} +inline std::string* EnumValue::release_type() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.EnumValue.type) + return _impl_.type_.Release(); +} +inline void EnumValue::set_allocated_type(std::string* type) { + if (type != nullptr) { + + } else { + + } + _impl_.type_.SetAllocated(type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.type_.IsDefault()) { + _impl_.type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.EnumValue.type) +} + +// int32 value = 2 [json_name = "value"]; +inline void EnumValue::clear_value() { + _impl_.value_ = 0; +} +inline int32_t EnumValue::_internal_value() const { + return _impl_.value_; +} +inline int32_t EnumValue::value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.EnumValue.value) + return _internal_value(); +} +inline void EnumValue::_internal_set_value(int32_t value) { + + _impl_.value_ = value; +} +inline void EnumValue::set_value(int32_t value) { + _internal_set_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.EnumValue.value) +} + +// ------------------------------------------------------------------- + +// ListValue + +// repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"]; +inline int ListValue::_internal_values_size() const { + return _impl_.values_.size(); +} +inline int ListValue::values_size() const { + return _internal_values_size(); +} +inline void ListValue::clear_values() { + _impl_.values_.Clear(); +} +inline ::google::api::expr::v1beta1::Value* ListValue::mutable_values(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.ListValue.values) + return _impl_.values_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Value >* +ListValue::mutable_values() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.ListValue.values) + return &_impl_.values_; +} +inline const ::google::api::expr::v1beta1::Value& ListValue::_internal_values(int index) const { + return _impl_.values_.Get(index); +} +inline const ::google::api::expr::v1beta1::Value& ListValue::values(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.ListValue.values) + return _internal_values(index); +} +inline ::google::api::expr::v1beta1::Value* ListValue::_internal_add_values() { + return _impl_.values_.Add(); +} +inline ::google::api::expr::v1beta1::Value* ListValue::add_values() { + ::google::api::expr::v1beta1::Value* _add = _internal_add_values(); + // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.ListValue.values) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Value >& +ListValue::values() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.ListValue.values) + return _impl_.values_; +} + +// ------------------------------------------------------------------- + +// MapValue_Entry + +// .google.api.expr.v1beta1.Value key = 1 [json_name = "key"]; +inline bool MapValue_Entry::_internal_has_key() const { + return this != internal_default_instance() && _impl_.key_ != nullptr; +} +inline bool MapValue_Entry::has_key() const { + return _internal_has_key(); +} +inline void MapValue_Entry::clear_key() { + if (GetArenaForAllocation() == nullptr && _impl_.key_ != nullptr) { + delete _impl_.key_; + } + _impl_.key_ = nullptr; +} +inline const ::google::api::expr::v1beta1::Value& MapValue_Entry::_internal_key() const { + const ::google::api::expr::v1beta1::Value* p = _impl_.key_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Value_default_instance_); +} +inline const ::google::api::expr::v1beta1::Value& MapValue_Entry::key() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.MapValue.Entry.key) + return _internal_key(); +} +inline void MapValue_Entry::unsafe_arena_set_allocated_key( + ::google::api::expr::v1beta1::Value* key) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.key_); + } + _impl_.key_ = key; + if (key) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.MapValue.Entry.key) +} +inline ::google::api::expr::v1beta1::Value* MapValue_Entry::release_key() { + + ::google::api::expr::v1beta1::Value* temp = _impl_.key_; + _impl_.key_ = 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 ::google::api::expr::v1beta1::Value* MapValue_Entry::unsafe_arena_release_key() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.MapValue.Entry.key) + + ::google::api::expr::v1beta1::Value* temp = _impl_.key_; + _impl_.key_ = nullptr; + return temp; +} +inline ::google::api::expr::v1beta1::Value* MapValue_Entry::_internal_mutable_key() { + + if (_impl_.key_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Value>(GetArenaForAllocation()); + _impl_.key_ = p; + } + return _impl_.key_; +} +inline ::google::api::expr::v1beta1::Value* MapValue_Entry::mutable_key() { + ::google::api::expr::v1beta1::Value* _msg = _internal_mutable_key(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.MapValue.Entry.key) + return _msg; +} +inline void MapValue_Entry::set_allocated_key(::google::api::expr::v1beta1::Value* key) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.key_; + } + if (key) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(key); + if (message_arena != submessage_arena) { + key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, key, submessage_arena); + } + + } else { + + } + _impl_.key_ = key; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.MapValue.Entry.key) +} + +// .google.api.expr.v1beta1.Value value = 2 [json_name = "value"]; +inline bool MapValue_Entry::_internal_has_value() const { + return this != internal_default_instance() && _impl_.value_ != nullptr; +} +inline bool MapValue_Entry::has_value() const { + return _internal_has_value(); +} +inline void MapValue_Entry::clear_value() { + if (GetArenaForAllocation() == nullptr && _impl_.value_ != nullptr) { + delete _impl_.value_; + } + _impl_.value_ = nullptr; +} +inline const ::google::api::expr::v1beta1::Value& MapValue_Entry::_internal_value() const { + const ::google::api::expr::v1beta1::Value* p = _impl_.value_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Value_default_instance_); +} +inline const ::google::api::expr::v1beta1::Value& MapValue_Entry::value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.MapValue.Entry.value) + return _internal_value(); +} +inline void MapValue_Entry::unsafe_arena_set_allocated_value( + ::google::api::expr::v1beta1::Value* value) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.value_); + } + _impl_.value_ = value; + if (value) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.MapValue.Entry.value) +} +inline ::google::api::expr::v1beta1::Value* MapValue_Entry::release_value() { + + ::google::api::expr::v1beta1::Value* temp = _impl_.value_; + _impl_.value_ = 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 ::google::api::expr::v1beta1::Value* MapValue_Entry::unsafe_arena_release_value() { + // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.MapValue.Entry.value) + + ::google::api::expr::v1beta1::Value* temp = _impl_.value_; + _impl_.value_ = nullptr; + return temp; +} +inline ::google::api::expr::v1beta1::Value* MapValue_Entry::_internal_mutable_value() { + + if (_impl_.value_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Value>(GetArenaForAllocation()); + _impl_.value_ = p; + } + return _impl_.value_; +} +inline ::google::api::expr::v1beta1::Value* MapValue_Entry::mutable_value() { + ::google::api::expr::v1beta1::Value* _msg = _internal_mutable_value(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.MapValue.Entry.value) + return _msg; +} +inline void MapValue_Entry::set_allocated_value(::google::api::expr::v1beta1::Value* value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.value_; + } + if (value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(value); + if (message_arena != submessage_arena) { + value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + + } else { + + } + _impl_.value_ = value; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.MapValue.Entry.value) +} + +// ------------------------------------------------------------------- + +// MapValue + +// repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"]; +inline int MapValue::_internal_entries_size() const { + return _impl_.entries_.size(); +} +inline int MapValue::entries_size() const { + return _internal_entries_size(); +} +inline void MapValue::clear_entries() { + _impl_.entries_.Clear(); +} +inline ::google::api::expr::v1beta1::MapValue_Entry* MapValue::mutable_entries(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.MapValue.entries) + return _impl_.entries_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::MapValue_Entry >* +MapValue::mutable_entries() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.MapValue.entries) + return &_impl_.entries_; +} +inline const ::google::api::expr::v1beta1::MapValue_Entry& MapValue::_internal_entries(int index) const { + return _impl_.entries_.Get(index); +} +inline const ::google::api::expr::v1beta1::MapValue_Entry& MapValue::entries(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.MapValue.entries) + return _internal_entries(index); +} +inline ::google::api::expr::v1beta1::MapValue_Entry* MapValue::_internal_add_entries() { + return _impl_.entries_.Add(); +} +inline ::google::api::expr::v1beta1::MapValue_Entry* MapValue::add_entries() { + ::google::api::expr::v1beta1::MapValue_Entry* _add = _internal_add_entries(); + // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.MapValue.entries) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::MapValue_Entry >& +MapValue::entries() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.MapValue.entries) + return _impl_.entries_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1beta1 +} // namespace expr +} // namespace api +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto diff --git a/src/gen/google/api/field_behavior.grpc.pb.cc b/src/gen/google/api/field_behavior.grpc.pb.cc new file mode 100644 index 000000000..4c2a4b9ef --- /dev/null +++ b/src/gen/google/api/field_behavior.grpc.pb.cc @@ -0,0 +1,27 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/field_behavior.proto + +#include "google/api/field_behavior.pb.h" +#include "google/api/field_behavior.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace api { + +} // namespace google +} // namespace api + diff --git a/src/gen/google/api/field_behavior.grpc.pb.h b/src/gen/google/api/field_behavior.grpc.pb.h new file mode 100644 index 000000000..cb69e73de --- /dev/null +++ b/src/gen/google/api/field_behavior.grpc.pb.h @@ -0,0 +1,50 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/field_behavior.proto +// Original file comments: +// Copyright 2018 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_google_2fapi_2ffield_5fbehavior_2eproto__INCLUDED +#define GRPC_google_2fapi_2ffield_5fbehavior_2eproto__INCLUDED + +#include "google/api/field_behavior.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace api { + +} // namespace api +} // namespace google + + +#endif // GRPC_google_2fapi_2ffield_5fbehavior_2eproto__INCLUDED diff --git a/src/gen/google/api/field_behavior.pb.cc b/src/gen/google/api/field_behavior.pb.cc new file mode 100644 index 000000000..dfe2267bb --- /dev/null +++ b/src/gen/google/api/field_behavior.pb.cc @@ -0,0 +1,98 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/field_behavior.proto + +#include "google/api/field_behavior.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace api { +} // namespace api +} // namespace google +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2fapi_2ffield_5fbehavior_2eproto[1]; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2ffield_5fbehavior_2eproto = nullptr; +const uint32_t TableStruct_google_2fapi_2ffield_5fbehavior_2eproto::offsets[1] = {}; +static constexpr ::_pbi::MigrationSchema* schemas = nullptr; +static constexpr ::_pb::Message* const* file_default_instances = nullptr; + +const char descriptor_table_protodef_google_2fapi_2ffield_5fbehavior_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\037google/api/field_behavior.proto\022\ngoogl" + "e.api\032 google/protobuf/descriptor.proto*" + "\246\001\n\rFieldBehavior\022\036\n\032FIELD_BEHAVIOR_UNSP" + "ECIFIED\020\000\022\014\n\010OPTIONAL\020\001\022\014\n\010REQUIRED\020\002\022\017\n" + "\013OUTPUT_ONLY\020\003\022\016\n\nINPUT_ONLY\020\004\022\r\n\tIMMUTA" + "BLE\020\005\022\022\n\016UNORDERED_LIST\020\006\022\025\n\021NON_EMPTY_D" + "EFAULT\020\007:`\n\016field_behavior\022\035.google.prot" + "obuf.FieldOptions\030\234\010 \003(\0162\031.google.api.Fi" + "eldBehaviorR\rfieldBehaviorBp\n\016com.google" + ".apiB\022FieldBehaviorProtoP\001ZAgoogle.golan" + "g.org/genproto/googleapis/api/annotation" + "s;annotations\242\002\004GAPIb\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto_deps[1] = { + &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, +}; +static ::_pbi::once_flag descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto = { + false, false, 468, descriptor_table_protodef_google_2fapi_2ffield_5fbehavior_2eproto, + "google/api/field_behavior.proto", + &descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto_once, descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto_deps, 1, 0, + schemas, file_default_instances, TableStruct_google_2fapi_2ffield_5fbehavior_2eproto::offsets, + nullptr, file_level_enum_descriptors_google_2fapi_2ffield_5fbehavior_2eproto, + file_level_service_descriptors_google_2fapi_2ffield_5fbehavior_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto_getter() { + return &descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2ffield_5fbehavior_2eproto(&descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto); +namespace google { +namespace api { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldBehavior_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto); + return file_level_enum_descriptors_google_2fapi_2ffield_5fbehavior_2eproto[0]; +} +bool FieldBehavior_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + return true; + default: + return false; + } +} + +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, + ::PROTOBUF_NAMESPACE_ID::internal::RepeatedEnumTypeTraits< ::google::api::FieldBehavior, ::google::api::FieldBehavior_IsValid>, 14, true> + field_behavior(kFieldBehaviorFieldNumber, static_cast< ::google::api::FieldBehavior >(0), nullptr); + +// @@protoc_insertion_point(namespace_scope) +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/google/api/field_behavior.pb.h b/src/gen/google/api/field_behavior.pb.h new file mode 100644 index 000000000..9027bc11e --- /dev/null +++ b/src/gen/google/api/field_behavior.pb.h @@ -0,0 +1,121 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/field_behavior.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5fbehavior_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5fbehavior_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2ffield_5fbehavior_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2fapi_2ffield_5fbehavior_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto; +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace api { + +enum FieldBehavior : int { + FIELD_BEHAVIOR_UNSPECIFIED = 0, + OPTIONAL = 1, + REQUIRED = 2, + OUTPUT_ONLY = 3, + INPUT_ONLY = 4, + IMMUTABLE = 5, + UNORDERED_LIST = 6, + NON_EMPTY_DEFAULT = 7, + FieldBehavior_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + FieldBehavior_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool FieldBehavior_IsValid(int value); +constexpr FieldBehavior FieldBehavior_MIN = FIELD_BEHAVIOR_UNSPECIFIED; +constexpr FieldBehavior FieldBehavior_MAX = NON_EMPTY_DEFAULT; +constexpr int FieldBehavior_ARRAYSIZE = FieldBehavior_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldBehavior_descriptor(); +template +inline const std::string& FieldBehavior_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function FieldBehavior_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + FieldBehavior_descriptor(), enum_t_value); +} +inline bool FieldBehavior_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FieldBehavior* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + FieldBehavior_descriptor(), name, value); +} +// =================================================================== + + +// =================================================================== + +static const int kFieldBehaviorFieldNumber = 1052; +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, + ::PROTOBUF_NAMESPACE_ID::internal::RepeatedEnumTypeTraits< ::google::api::FieldBehavior, ::google::api::FieldBehavior_IsValid>, 14, true > + field_behavior; + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace api +} // namespace google + +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::google::api::FieldBehavior> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::google::api::FieldBehavior>() { + return ::google::api::FieldBehavior_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5fbehavior_2eproto diff --git a/src/gen/google/api/http.grpc.pb.cc b/src/gen/google/api/http.grpc.pb.cc new file mode 100644 index 000000000..5a18289f4 --- /dev/null +++ b/src/gen/google/api/http.grpc.pb.cc @@ -0,0 +1,27 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/http.proto + +#include "google/api/http.pb.h" +#include "google/api/http.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace api { + +} // namespace google +} // namespace api + diff --git a/src/gen/google/api/http.grpc.pb.h b/src/gen/google/api/http.grpc.pb.h new file mode 100644 index 000000000..2dded12ec --- /dev/null +++ b/src/gen/google/api/http.grpc.pb.h @@ -0,0 +1,50 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/http.proto +// Original file comments: +// Copyright 2015 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_google_2fapi_2fhttp_2eproto__INCLUDED +#define GRPC_google_2fapi_2fhttp_2eproto__INCLUDED + +#include "google/api/http.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace api { + +} // namespace api +} // namespace google + + +#endif // GRPC_google_2fapi_2fhttp_2eproto__INCLUDED diff --git a/src/gen/google/api/http.pb.cc b/src/gen/google/api/http.pb.cc new file mode 100644 index 000000000..f46ab1d2b --- /dev/null +++ b/src/gen/google/api/http.pb.cc @@ -0,0 +1,1274 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/http.proto + +#include "google/api/http.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace api { +PROTOBUF_CONSTEXPR Http::Http( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.rules_)*/{} + , /*decltype(_impl_.fully_decode_reserved_expansion_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct HttpDefaultTypeInternal { + PROTOBUF_CONSTEXPR HttpDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~HttpDefaultTypeInternal() {} + union { + Http _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpDefaultTypeInternal _Http_default_instance_; +PROTOBUF_CONSTEXPR HttpRule::HttpRule( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.additional_bindings_)*/{} + , /*decltype(_impl_.selector_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.body_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.response_body_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.pattern_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct HttpRuleDefaultTypeInternal { + PROTOBUF_CONSTEXPR HttpRuleDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~HttpRuleDefaultTypeInternal() {} + union { + HttpRule _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpRuleDefaultTypeInternal _HttpRule_default_instance_; +PROTOBUF_CONSTEXPR CustomHttpPattern::CustomHttpPattern( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.kind_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct CustomHttpPatternDefaultTypeInternal { + PROTOBUF_CONSTEXPR CustomHttpPatternDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CustomHttpPatternDefaultTypeInternal() {} + union { + CustomHttpPattern _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CustomHttpPatternDefaultTypeInternal _CustomHttpPattern_default_instance_; +} // namespace api +} // namespace google +static ::_pb::Metadata file_level_metadata_google_2fapi_2fhttp_2eproto[3]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fhttp_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fhttp_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fhttp_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::Http, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::Http, _impl_.rules_), + PROTOBUF_FIELD_OFFSET(::google::api::Http, _impl_.fully_decode_reserved_expansion_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.selector_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.body_), + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.response_body_), + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.additional_bindings_), + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.pattern_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, _impl_.kind_), + PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, _impl_.path_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::Http)}, + { 8, -1, -1, sizeof(::google::api::HttpRule)}, + { 25, -1, -1, sizeof(::google::api::CustomHttpPattern)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::google::api::_Http_default_instance_._instance, + &::google::api::_HttpRule_default_instance_._instance, + &::google::api::_CustomHttpPattern_default_instance_._instance, +}; + +const char descriptor_table_protodef_google_2fapi_2fhttp_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\025google/api/http.proto\022\ngoogle.api\"y\n\004H" + "ttp\022*\n\005rules\030\001 \003(\0132\024.google.api.HttpRule" + "R\005rules\022E\n\037fully_decode_reserved_expansi" + "on\030\002 \001(\010R\034fullyDecodeReservedExpansion\"\332" + "\002\n\010HttpRule\022\032\n\010selector\030\001 \001(\tR\010selector\022" + "\022\n\003get\030\002 \001(\tH\000R\003get\022\022\n\003put\030\003 \001(\tH\000R\003put\022" + "\024\n\004post\030\004 \001(\tH\000R\004post\022\030\n\006delete\030\005 \001(\tH\000R" + "\006delete\022\026\n\005patch\030\006 \001(\tH\000R\005patch\0227\n\006custo" + "m\030\010 \001(\0132\035.google.api.CustomHttpPatternH\000" + "R\006custom\022\022\n\004body\030\007 \001(\tR\004body\022#\n\rresponse" + "_body\030\014 \001(\tR\014responseBody\022E\n\023additional_" + "bindings\030\013 \003(\0132\024.google.api.HttpRuleR\022ad" + "ditionalBindingsB\t\n\007pattern\";\n\021CustomHtt" + "pPattern\022\022\n\004kind\030\001 \001(\tR\004kind\022\022\n\004path\030\002 \001" + "(\tR\004pathBj\n\016com.google.apiB\tHttpProtoP\001Z" + "Agoogle.golang.org/genproto/googleapis/a" + "pi/annotations;annotations\370\001\001\242\002\004GAPIb\006pr" + "oto3" + ; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fhttp_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fhttp_2eproto = { + false, false, 684, descriptor_table_protodef_google_2fapi_2fhttp_2eproto, + "google/api/http.proto", + &descriptor_table_google_2fapi_2fhttp_2eproto_once, nullptr, 0, 3, + schemas, file_default_instances, TableStruct_google_2fapi_2fhttp_2eproto::offsets, + file_level_metadata_google_2fapi_2fhttp_2eproto, file_level_enum_descriptors_google_2fapi_2fhttp_2eproto, + file_level_service_descriptors_google_2fapi_2fhttp_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fhttp_2eproto_getter() { + return &descriptor_table_google_2fapi_2fhttp_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fhttp_2eproto(&descriptor_table_google_2fapi_2fhttp_2eproto); +namespace google { +namespace api { + +// =================================================================== + +class Http::_Internal { + public: +}; + +Http::Http(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.Http) +} +Http::Http(const Http& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Http* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.rules_){from._impl_.rules_} + , decltype(_impl_.fully_decode_reserved_expansion_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.fully_decode_reserved_expansion_ = from._impl_.fully_decode_reserved_expansion_; + // @@protoc_insertion_point(copy_constructor:google.api.Http) +} + +inline void Http::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.rules_){arena} + , decltype(_impl_.fully_decode_reserved_expansion_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Http::~Http() { + // @@protoc_insertion_point(destructor:google.api.Http) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Http::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.rules_.~RepeatedPtrField(); +} + +void Http::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Http::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.Http) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.rules_.Clear(); + _impl_.fully_decode_reserved_expansion_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Http::_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) { + // repeated .google.api.HttpRule rules = 1 [json_name = "rules"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_rules(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // bool fully_decode_reserved_expansion = 2 [json_name = "fullyDecodeReservedExpansion"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.fully_decode_reserved_expansion_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* Http::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.Http) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.api.HttpRule rules = 1 [json_name = "rules"]; + for (unsigned i = 0, + n = static_cast(this->_internal_rules_size()); i < n; i++) { + const auto& repfield = this->_internal_rules(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + // bool fully_decode_reserved_expansion = 2 [json_name = "fullyDecodeReservedExpansion"]; + if (this->_internal_fully_decode_reserved_expansion() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_fully_decode_reserved_expansion(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.Http) + return target; +} + +size_t Http::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.Http) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.HttpRule rules = 1 [json_name = "rules"]; + total_size += 1UL * this->_internal_rules_size(); + for (const auto& msg : this->_impl_.rules_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // bool fully_decode_reserved_expansion = 2 [json_name = "fullyDecodeReservedExpansion"]; + if (this->_internal_fully_decode_reserved_expansion() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Http::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Http::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Http::GetClassData() const { return &_class_data_; } + + +void Http::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.Http) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.rules_.MergeFrom(from._impl_.rules_); + if (from._internal_fully_decode_reserved_expansion() != 0) { + _this->_internal_set_fully_decode_reserved_expansion(from._internal_fully_decode_reserved_expansion()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Http::CopyFrom(const Http& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.Http) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Http::IsInitialized() const { + return true; +} + +void Http::InternalSwap(Http* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.rules_.InternalSwap(&other->_impl_.rules_); + swap(_impl_.fully_decode_reserved_expansion_, other->_impl_.fully_decode_reserved_expansion_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Http::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fhttp_2eproto_getter, &descriptor_table_google_2fapi_2fhttp_2eproto_once, + file_level_metadata_google_2fapi_2fhttp_2eproto[0]); +} + +// =================================================================== + +class HttpRule::_Internal { + public: + static const ::google::api::CustomHttpPattern& custom(const HttpRule* msg); +}; + +const ::google::api::CustomHttpPattern& +HttpRule::_Internal::custom(const HttpRule* msg) { + return *msg->_impl_.pattern_.custom_; +} +void HttpRule::set_allocated_custom(::google::api::CustomHttpPattern* custom) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_pattern(); + if (custom) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(custom); + if (message_arena != submessage_arena) { + custom = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, custom, submessage_arena); + } + set_has_custom(); + _impl_.pattern_.custom_ = custom; + } + // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.custom) +} +HttpRule::HttpRule(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.HttpRule) +} +HttpRule::HttpRule(const HttpRule& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + HttpRule* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.additional_bindings_){from._impl_.additional_bindings_} + , decltype(_impl_.selector_){} + , decltype(_impl_.body_){} + , decltype(_impl_.response_body_){} + , decltype(_impl_.pattern_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.selector_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.selector_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_selector().empty()) { + _this->_impl_.selector_.Set(from._internal_selector(), + _this->GetArenaForAllocation()); + } + _impl_.body_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.body_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_body().empty()) { + _this->_impl_.body_.Set(from._internal_body(), + _this->GetArenaForAllocation()); + } + _impl_.response_body_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.response_body_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_response_body().empty()) { + _this->_impl_.response_body_.Set(from._internal_response_body(), + _this->GetArenaForAllocation()); + } + clear_has_pattern(); + switch (from.pattern_case()) { + case kGet: { + _this->_internal_set_get(from._internal_get()); + break; + } + case kPut: { + _this->_internal_set_put(from._internal_put()); + break; + } + case kPost: { + _this->_internal_set_post(from._internal_post()); + break; + } + case kDelete: { + _this->_internal_set_delete_(from._internal_delete_()); + break; + } + case kPatch: { + _this->_internal_set_patch(from._internal_patch()); + break; + } + case kCustom: { + _this->_internal_mutable_custom()->::google::api::CustomHttpPattern::MergeFrom( + from._internal_custom()); + break; + } + case PATTERN_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:google.api.HttpRule) +} + +inline void HttpRule::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.additional_bindings_){arena} + , decltype(_impl_.selector_){} + , decltype(_impl_.body_){} + , decltype(_impl_.response_body_){} + , decltype(_impl_.pattern_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + _impl_.selector_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.selector_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.body_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.body_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.response_body_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.response_body_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + clear_has_pattern(); +} + +HttpRule::~HttpRule() { + // @@protoc_insertion_point(destructor:google.api.HttpRule) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void HttpRule::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.additional_bindings_.~RepeatedPtrField(); + _impl_.selector_.Destroy(); + _impl_.body_.Destroy(); + _impl_.response_body_.Destroy(); + if (has_pattern()) { + clear_pattern(); + } +} + +void HttpRule::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void HttpRule::clear_pattern() { +// @@protoc_insertion_point(one_of_clear_start:google.api.HttpRule) + switch (pattern_case()) { + case kGet: { + _impl_.pattern_.get_.Destroy(); + break; + } + case kPut: { + _impl_.pattern_.put_.Destroy(); + break; + } + case kPost: { + _impl_.pattern_.post_.Destroy(); + break; + } + case kDelete: { + _impl_.pattern_.delete__.Destroy(); + break; + } + case kPatch: { + _impl_.pattern_.patch_.Destroy(); + break; + } + case kCustom: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.pattern_.custom_; + } + break; + } + case PATTERN_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = PATTERN_NOT_SET; +} + + +void HttpRule::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.HttpRule) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.additional_bindings_.Clear(); + _impl_.selector_.ClearToEmpty(); + _impl_.body_.ClearToEmpty(); + _impl_.response_body_.ClearToEmpty(); + clear_pattern(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* HttpRule::_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 selector = 1 [json_name = "selector"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_selector(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.selector")); + } else + goto handle_unusual; + continue; + // string get = 2 [json_name = "get"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_get(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.get")); + } else + goto handle_unusual; + continue; + // string put = 3 [json_name = "put"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_put(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.put")); + } else + goto handle_unusual; + continue; + // string post = 4 [json_name = "post"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_post(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.post")); + } else + goto handle_unusual; + continue; + // string delete = 5 [json_name = "delete"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_delete_(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.delete")); + } else + goto handle_unusual; + continue; + // string patch = 6 [json_name = "patch"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_patch(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.patch")); + } else + goto handle_unusual; + continue; + // string body = 7 [json_name = "body"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_body(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.body")); + } else + goto handle_unusual; + continue; + // .google.api.CustomHttpPattern custom = 8 [json_name = "custom"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_custom(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .google.api.HttpRule additional_bindings = 11 [json_name = "additionalBindings"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_additional_bindings(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr)); + } else + goto handle_unusual; + continue; + // string response_body = 12 [json_name = "responseBody"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + auto str = _internal_mutable_response_body(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.response_body")); + } 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* HttpRule::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.HttpRule) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string selector = 1 [json_name = "selector"]; + if (!this->_internal_selector().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_selector().data(), static_cast(this->_internal_selector().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.HttpRule.selector"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_selector(), target); + } + + // string get = 2 [json_name = "get"]; + if (_internal_has_get()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_get().data(), static_cast(this->_internal_get().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.HttpRule.get"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_get(), target); + } + + // string put = 3 [json_name = "put"]; + if (_internal_has_put()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_put().data(), static_cast(this->_internal_put().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.HttpRule.put"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_put(), target); + } + + // string post = 4 [json_name = "post"]; + if (_internal_has_post()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_post().data(), static_cast(this->_internal_post().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.HttpRule.post"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_post(), target); + } + + // string delete = 5 [json_name = "delete"]; + if (_internal_has_delete_()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_delete_().data(), static_cast(this->_internal_delete_().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.HttpRule.delete"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_delete_(), target); + } + + // string patch = 6 [json_name = "patch"]; + if (_internal_has_patch()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_patch().data(), static_cast(this->_internal_patch().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.HttpRule.patch"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_patch(), target); + } + + // string body = 7 [json_name = "body"]; + if (!this->_internal_body().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_body().data(), static_cast(this->_internal_body().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.HttpRule.body"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_body(), target); + } + + // .google.api.CustomHttpPattern custom = 8 [json_name = "custom"]; + if (_internal_has_custom()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::custom(this), + _Internal::custom(this).GetCachedSize(), target, stream); + } + + // repeated .google.api.HttpRule additional_bindings = 11 [json_name = "additionalBindings"]; + for (unsigned i = 0, + n = static_cast(this->_internal_additional_bindings_size()); i < n; i++) { + const auto& repfield = this->_internal_additional_bindings(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(11, repfield, repfield.GetCachedSize(), target, stream); + } + + // string response_body = 12 [json_name = "responseBody"]; + if (!this->_internal_response_body().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_response_body().data(), static_cast(this->_internal_response_body().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.HttpRule.response_body"); + target = stream->WriteStringMaybeAliased( + 12, this->_internal_response_body(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.HttpRule) + return target; +} + +size_t HttpRule::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.HttpRule) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.HttpRule additional_bindings = 11 [json_name = "additionalBindings"]; + total_size += 1UL * this->_internal_additional_bindings_size(); + for (const auto& msg : this->_impl_.additional_bindings_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string selector = 1 [json_name = "selector"]; + if (!this->_internal_selector().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_selector()); + } + + // string body = 7 [json_name = "body"]; + if (!this->_internal_body().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_body()); + } + + // string response_body = 12 [json_name = "responseBody"]; + if (!this->_internal_response_body().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_response_body()); + } + + switch (pattern_case()) { + // string get = 2 [json_name = "get"]; + case kGet: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_get()); + break; + } + // string put = 3 [json_name = "put"]; + case kPut: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_put()); + break; + } + // string post = 4 [json_name = "post"]; + case kPost: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_post()); + break; + } + // string delete = 5 [json_name = "delete"]; + case kDelete: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_delete_()); + break; + } + // string patch = 6 [json_name = "patch"]; + case kPatch: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_patch()); + break; + } + // .google.api.CustomHttpPattern custom = 8 [json_name = "custom"]; + case kCustom: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.pattern_.custom_); + break; + } + case PATTERN_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HttpRule::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + HttpRule::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HttpRule::GetClassData() const { return &_class_data_; } + + +void HttpRule::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.HttpRule) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.additional_bindings_.MergeFrom(from._impl_.additional_bindings_); + if (!from._internal_selector().empty()) { + _this->_internal_set_selector(from._internal_selector()); + } + if (!from._internal_body().empty()) { + _this->_internal_set_body(from._internal_body()); + } + if (!from._internal_response_body().empty()) { + _this->_internal_set_response_body(from._internal_response_body()); + } + switch (from.pattern_case()) { + case kGet: { + _this->_internal_set_get(from._internal_get()); + break; + } + case kPut: { + _this->_internal_set_put(from._internal_put()); + break; + } + case kPost: { + _this->_internal_set_post(from._internal_post()); + break; + } + case kDelete: { + _this->_internal_set_delete_(from._internal_delete_()); + break; + } + case kPatch: { + _this->_internal_set_patch(from._internal_patch()); + break; + } + case kCustom: { + _this->_internal_mutable_custom()->::google::api::CustomHttpPattern::MergeFrom( + from._internal_custom()); + break; + } + case PATTERN_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void HttpRule::CopyFrom(const HttpRule& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.HttpRule) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HttpRule::IsInitialized() const { + return true; +} + +void HttpRule::InternalSwap(HttpRule* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.additional_bindings_.InternalSwap(&other->_impl_.additional_bindings_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.selector_, lhs_arena, + &other->_impl_.selector_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.body_, lhs_arena, + &other->_impl_.body_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.response_body_, lhs_arena, + &other->_impl_.response_body_, rhs_arena + ); + swap(_impl_.pattern_, other->_impl_.pattern_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata HttpRule::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fhttp_2eproto_getter, &descriptor_table_google_2fapi_2fhttp_2eproto_once, + file_level_metadata_google_2fapi_2fhttp_2eproto[1]); +} + +// =================================================================== + +class CustomHttpPattern::_Internal { + public: +}; + +CustomHttpPattern::CustomHttpPattern(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.CustomHttpPattern) +} +CustomHttpPattern::CustomHttpPattern(const CustomHttpPattern& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + CustomHttpPattern* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.kind_){} + , decltype(_impl_.path_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.kind_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.kind_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_kind().empty()) { + _this->_impl_.kind_.Set(from._internal_kind(), + _this->GetArenaForAllocation()); + } + _impl_.path_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.path_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_path().empty()) { + _this->_impl_.path_.Set(from._internal_path(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:google.api.CustomHttpPattern) +} + +inline void CustomHttpPattern::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.kind_){} + , decltype(_impl_.path_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.kind_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.kind_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.path_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.path_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +CustomHttpPattern::~CustomHttpPattern() { + // @@protoc_insertion_point(destructor:google.api.CustomHttpPattern) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CustomHttpPattern::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.kind_.Destroy(); + _impl_.path_.Destroy(); +} + +void CustomHttpPattern::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void CustomHttpPattern::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.CustomHttpPattern) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.kind_.ClearToEmpty(); + _impl_.path_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CustomHttpPattern::_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 kind = 1 [json_name = "kind"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_kind(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.CustomHttpPattern.kind")); + } else + goto handle_unusual; + continue; + // string path = 2 [json_name = "path"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_path(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.CustomHttpPattern.path")); + } 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* CustomHttpPattern::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.CustomHttpPattern) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string kind = 1 [json_name = "kind"]; + if (!this->_internal_kind().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_kind().data(), static_cast(this->_internal_kind().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.CustomHttpPattern.kind"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_kind(), target); + } + + // string path = 2 [json_name = "path"]; + if (!this->_internal_path().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_path().data(), static_cast(this->_internal_path().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.CustomHttpPattern.path"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_path(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.CustomHttpPattern) + return target; +} + +size_t CustomHttpPattern::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.CustomHttpPattern) + 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 kind = 1 [json_name = "kind"]; + if (!this->_internal_kind().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_kind()); + } + + // string path = 2 [json_name = "path"]; + if (!this->_internal_path().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_path()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CustomHttpPattern::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + CustomHttpPattern::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CustomHttpPattern::GetClassData() const { return &_class_data_; } + + +void CustomHttpPattern::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.CustomHttpPattern) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_kind().empty()) { + _this->_internal_set_kind(from._internal_kind()); + } + if (!from._internal_path().empty()) { + _this->_internal_set_path(from._internal_path()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CustomHttpPattern::CopyFrom(const CustomHttpPattern& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.CustomHttpPattern) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CustomHttpPattern::IsInitialized() const { + return true; +} + +void CustomHttpPattern::InternalSwap(CustomHttpPattern* 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( + &_impl_.kind_, lhs_arena, + &other->_impl_.kind_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.path_, lhs_arena, + &other->_impl_.path_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CustomHttpPattern::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fhttp_2eproto_getter, &descriptor_table_google_2fapi_2fhttp_2eproto_once, + file_level_metadata_google_2fapi_2fhttp_2eproto[2]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::Http* +Arena::CreateMaybeMessage< ::google::api::Http >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::Http >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::HttpRule* +Arena::CreateMaybeMessage< ::google::api::HttpRule >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::HttpRule >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::CustomHttpPattern* +Arena::CreateMaybeMessage< ::google::api::CustomHttpPattern >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::CustomHttpPattern >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/google/api/http.pb.h b/src/gen/google/api/http.pb.h new file mode 100644 index 000000000..6f2b26d08 --- /dev/null +++ b/src/gen/google/api/http.pb.h @@ -0,0 +1,1610 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/http.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttp_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttp_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fhttp_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2fapi_2fhttp_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fhttp_2eproto; +namespace google { +namespace api { +class CustomHttpPattern; +struct CustomHttpPatternDefaultTypeInternal; +extern CustomHttpPatternDefaultTypeInternal _CustomHttpPattern_default_instance_; +class Http; +struct HttpDefaultTypeInternal; +extern HttpDefaultTypeInternal _Http_default_instance_; +class HttpRule; +struct HttpRuleDefaultTypeInternal; +extern HttpRuleDefaultTypeInternal _HttpRule_default_instance_; +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::CustomHttpPattern* Arena::CreateMaybeMessage<::google::api::CustomHttpPattern>(Arena*); +template<> ::google::api::Http* Arena::CreateMaybeMessage<::google::api::Http>(Arena*); +template<> ::google::api::HttpRule* Arena::CreateMaybeMessage<::google::api::HttpRule>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace api { + +// =================================================================== + +class Http final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.Http) */ { + public: + inline Http() : Http(nullptr) {} + ~Http() override; + explicit PROTOBUF_CONSTEXPR Http(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Http(const Http& from); + Http(Http&& from) noexcept + : Http() { + *this = ::std::move(from); + } + + inline Http& operator=(const Http& from) { + CopyFrom(from); + return *this; + } + inline Http& operator=(Http&& 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 Http& default_instance() { + return *internal_default_instance(); + } + static inline const Http* internal_default_instance() { + return reinterpret_cast( + &_Http_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(Http& a, Http& b) { + a.Swap(&b); + } + inline void Swap(Http* 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(Http* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Http* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Http& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Http& from) { + Http::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Http* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.Http"; + } + protected: + explicit Http(::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 { + kRulesFieldNumber = 1, + kFullyDecodeReservedExpansionFieldNumber = 2, + }; + // repeated .google.api.HttpRule rules = 1 [json_name = "rules"]; + int rules_size() const; + private: + int _internal_rules_size() const; + public: + void clear_rules(); + ::google::api::HttpRule* mutable_rules(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >* + mutable_rules(); + private: + const ::google::api::HttpRule& _internal_rules(int index) const; + ::google::api::HttpRule* _internal_add_rules(); + public: + const ::google::api::HttpRule& rules(int index) const; + ::google::api::HttpRule* add_rules(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >& + rules() const; + + // bool fully_decode_reserved_expansion = 2 [json_name = "fullyDecodeReservedExpansion"]; + void clear_fully_decode_reserved_expansion(); + bool fully_decode_reserved_expansion() const; + void set_fully_decode_reserved_expansion(bool value); + private: + bool _internal_fully_decode_reserved_expansion() const; + void _internal_set_fully_decode_reserved_expansion(bool value); + public: + + // @@protoc_insertion_point(class_scope:google.api.Http) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule > rules_; + bool fully_decode_reserved_expansion_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fhttp_2eproto; +}; +// ------------------------------------------------------------------- + +class HttpRule final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.HttpRule) */ { + public: + inline HttpRule() : HttpRule(nullptr) {} + ~HttpRule() override; + explicit PROTOBUF_CONSTEXPR HttpRule(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + HttpRule(const HttpRule& from); + HttpRule(HttpRule&& from) noexcept + : HttpRule() { + *this = ::std::move(from); + } + + inline HttpRule& operator=(const HttpRule& from) { + CopyFrom(from); + return *this; + } + inline HttpRule& operator=(HttpRule&& 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 HttpRule& default_instance() { + return *internal_default_instance(); + } + enum PatternCase { + kGet = 2, + kPut = 3, + kPost = 4, + kDelete = 5, + kPatch = 6, + kCustom = 8, + PATTERN_NOT_SET = 0, + }; + + static inline const HttpRule* internal_default_instance() { + return reinterpret_cast( + &_HttpRule_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(HttpRule& a, HttpRule& b) { + a.Swap(&b); + } + inline void Swap(HttpRule* 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(HttpRule* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + HttpRule* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const HttpRule& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const HttpRule& from) { + HttpRule::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HttpRule* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.HttpRule"; + } + protected: + explicit HttpRule(::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 { + kAdditionalBindingsFieldNumber = 11, + kSelectorFieldNumber = 1, + kBodyFieldNumber = 7, + kResponseBodyFieldNumber = 12, + kGetFieldNumber = 2, + kPutFieldNumber = 3, + kPostFieldNumber = 4, + kDeleteFieldNumber = 5, + kPatchFieldNumber = 6, + kCustomFieldNumber = 8, + }; + // repeated .google.api.HttpRule additional_bindings = 11 [json_name = "additionalBindings"]; + int additional_bindings_size() const; + private: + int _internal_additional_bindings_size() const; + public: + void clear_additional_bindings(); + ::google::api::HttpRule* mutable_additional_bindings(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >* + mutable_additional_bindings(); + private: + const ::google::api::HttpRule& _internal_additional_bindings(int index) const; + ::google::api::HttpRule* _internal_add_additional_bindings(); + public: + const ::google::api::HttpRule& additional_bindings(int index) const; + ::google::api::HttpRule* add_additional_bindings(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >& + additional_bindings() const; + + // string selector = 1 [json_name = "selector"]; + void clear_selector(); + const std::string& selector() const; + template + void set_selector(ArgT0&& arg0, ArgT... args); + std::string* mutable_selector(); + PROTOBUF_NODISCARD std::string* release_selector(); + void set_allocated_selector(std::string* selector); + private: + const std::string& _internal_selector() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_selector(const std::string& value); + std::string* _internal_mutable_selector(); + public: + + // string body = 7 [json_name = "body"]; + void clear_body(); + const std::string& body() const; + template + void set_body(ArgT0&& arg0, ArgT... args); + std::string* mutable_body(); + PROTOBUF_NODISCARD std::string* release_body(); + void set_allocated_body(std::string* body); + private: + const std::string& _internal_body() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_body(const std::string& value); + std::string* _internal_mutable_body(); + public: + + // string response_body = 12 [json_name = "responseBody"]; + void clear_response_body(); + const std::string& response_body() const; + template + void set_response_body(ArgT0&& arg0, ArgT... args); + std::string* mutable_response_body(); + PROTOBUF_NODISCARD std::string* release_response_body(); + void set_allocated_response_body(std::string* response_body); + private: + const std::string& _internal_response_body() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_response_body(const std::string& value); + std::string* _internal_mutable_response_body(); + public: + + // string get = 2 [json_name = "get"]; + bool has_get() const; + private: + bool _internal_has_get() const; + public: + void clear_get(); + const std::string& get() const; + template + void set_get(ArgT0&& arg0, ArgT... args); + std::string* mutable_get(); + PROTOBUF_NODISCARD std::string* release_get(); + void set_allocated_get(std::string* get); + private: + const std::string& _internal_get() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_get(const std::string& value); + std::string* _internal_mutable_get(); + public: + + // string put = 3 [json_name = "put"]; + bool has_put() const; + private: + bool _internal_has_put() const; + public: + void clear_put(); + const std::string& put() const; + template + void set_put(ArgT0&& arg0, ArgT... args); + std::string* mutable_put(); + PROTOBUF_NODISCARD std::string* release_put(); + void set_allocated_put(std::string* put); + private: + const std::string& _internal_put() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_put(const std::string& value); + std::string* _internal_mutable_put(); + public: + + // string post = 4 [json_name = "post"]; + bool has_post() const; + private: + bool _internal_has_post() const; + public: + void clear_post(); + const std::string& post() const; + template + void set_post(ArgT0&& arg0, ArgT... args); + std::string* mutable_post(); + PROTOBUF_NODISCARD std::string* release_post(); + void set_allocated_post(std::string* post); + private: + const std::string& _internal_post() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_post(const std::string& value); + std::string* _internal_mutable_post(); + public: + + // string delete = 5 [json_name = "delete"]; + bool has_delete_() const; + private: + bool _internal_has_delete_() const; + public: + void clear_delete_(); + const std::string& delete_() const; + template + void set_delete_(ArgT0&& arg0, ArgT... args); + std::string* mutable_delete_(); + PROTOBUF_NODISCARD std::string* release_delete_(); + void set_allocated_delete_(std::string* delete_); + private: + const std::string& _internal_delete_() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_delete_(const std::string& value); + std::string* _internal_mutable_delete_(); + public: + + // string patch = 6 [json_name = "patch"]; + bool has_patch() const; + private: + bool _internal_has_patch() const; + public: + void clear_patch(); + const std::string& patch() const; + template + void set_patch(ArgT0&& arg0, ArgT... args); + std::string* mutable_patch(); + PROTOBUF_NODISCARD std::string* release_patch(); + void set_allocated_patch(std::string* patch); + private: + const std::string& _internal_patch() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_patch(const std::string& value); + std::string* _internal_mutable_patch(); + public: + + // .google.api.CustomHttpPattern custom = 8 [json_name = "custom"]; + bool has_custom() const; + private: + bool _internal_has_custom() const; + public: + void clear_custom(); + const ::google::api::CustomHttpPattern& custom() const; + PROTOBUF_NODISCARD ::google::api::CustomHttpPattern* release_custom(); + ::google::api::CustomHttpPattern* mutable_custom(); + void set_allocated_custom(::google::api::CustomHttpPattern* custom); + private: + const ::google::api::CustomHttpPattern& _internal_custom() const; + ::google::api::CustomHttpPattern* _internal_mutable_custom(); + public: + void unsafe_arena_set_allocated_custom( + ::google::api::CustomHttpPattern* custom); + ::google::api::CustomHttpPattern* unsafe_arena_release_custom(); + + void clear_pattern(); + PatternCase pattern_case() const; + // @@protoc_insertion_point(class_scope:google.api.HttpRule) + private: + class _Internal; + void set_has_get(); + void set_has_put(); + void set_has_post(); + void set_has_delete_(); + void set_has_patch(); + void set_has_custom(); + + inline bool has_pattern() const; + inline void clear_has_pattern(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule > additional_bindings_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr selector_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr body_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr response_body_; + union PatternUnion { + constexpr PatternUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr get_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr put_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr post_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr delete__; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr patch_; + ::google::api::CustomHttpPattern* custom_; + } pattern_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fhttp_2eproto; +}; +// ------------------------------------------------------------------- + +class CustomHttpPattern final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.CustomHttpPattern) */ { + public: + inline CustomHttpPattern() : CustomHttpPattern(nullptr) {} + ~CustomHttpPattern() override; + explicit PROTOBUF_CONSTEXPR CustomHttpPattern(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CustomHttpPattern(const CustomHttpPattern& from); + CustomHttpPattern(CustomHttpPattern&& from) noexcept + : CustomHttpPattern() { + *this = ::std::move(from); + } + + inline CustomHttpPattern& operator=(const CustomHttpPattern& from) { + CopyFrom(from); + return *this; + } + inline CustomHttpPattern& operator=(CustomHttpPattern&& 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 CustomHttpPattern& default_instance() { + return *internal_default_instance(); + } + static inline const CustomHttpPattern* internal_default_instance() { + return reinterpret_cast( + &_CustomHttpPattern_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(CustomHttpPattern& a, CustomHttpPattern& b) { + a.Swap(&b); + } + inline void Swap(CustomHttpPattern* 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(CustomHttpPattern* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CustomHttpPattern* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CustomHttpPattern& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const CustomHttpPattern& from) { + CustomHttpPattern::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CustomHttpPattern* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.CustomHttpPattern"; + } + protected: + explicit CustomHttpPattern(::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 { + kKindFieldNumber = 1, + kPathFieldNumber = 2, + }; + // string kind = 1 [json_name = "kind"]; + void clear_kind(); + const std::string& kind() const; + template + void set_kind(ArgT0&& arg0, ArgT... args); + std::string* mutable_kind(); + PROTOBUF_NODISCARD std::string* release_kind(); + void set_allocated_kind(std::string* kind); + private: + const std::string& _internal_kind() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_kind(const std::string& value); + std::string* _internal_mutable_kind(); + public: + + // string path = 2 [json_name = "path"]; + void clear_path(); + const std::string& path() const; + template + void set_path(ArgT0&& arg0, ArgT... args); + std::string* mutable_path(); + PROTOBUF_NODISCARD std::string* release_path(); + void set_allocated_path(std::string* path); + private: + const std::string& _internal_path() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_path(const std::string& value); + std::string* _internal_mutable_path(); + public: + + // @@protoc_insertion_point(class_scope:google.api.CustomHttpPattern) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr kind_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fhttp_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Http + +// repeated .google.api.HttpRule rules = 1 [json_name = "rules"]; +inline int Http::_internal_rules_size() const { + return _impl_.rules_.size(); +} +inline int Http::rules_size() const { + return _internal_rules_size(); +} +inline void Http::clear_rules() { + _impl_.rules_.Clear(); +} +inline ::google::api::HttpRule* Http::mutable_rules(int index) { + // @@protoc_insertion_point(field_mutable:google.api.Http.rules) + return _impl_.rules_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >* +Http::mutable_rules() { + // @@protoc_insertion_point(field_mutable_list:google.api.Http.rules) + return &_impl_.rules_; +} +inline const ::google::api::HttpRule& Http::_internal_rules(int index) const { + return _impl_.rules_.Get(index); +} +inline const ::google::api::HttpRule& Http::rules(int index) const { + // @@protoc_insertion_point(field_get:google.api.Http.rules) + return _internal_rules(index); +} +inline ::google::api::HttpRule* Http::_internal_add_rules() { + return _impl_.rules_.Add(); +} +inline ::google::api::HttpRule* Http::add_rules() { + ::google::api::HttpRule* _add = _internal_add_rules(); + // @@protoc_insertion_point(field_add:google.api.Http.rules) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >& +Http::rules() const { + // @@protoc_insertion_point(field_list:google.api.Http.rules) + return _impl_.rules_; +} + +// bool fully_decode_reserved_expansion = 2 [json_name = "fullyDecodeReservedExpansion"]; +inline void Http::clear_fully_decode_reserved_expansion() { + _impl_.fully_decode_reserved_expansion_ = false; +} +inline bool Http::_internal_fully_decode_reserved_expansion() const { + return _impl_.fully_decode_reserved_expansion_; +} +inline bool Http::fully_decode_reserved_expansion() const { + // @@protoc_insertion_point(field_get:google.api.Http.fully_decode_reserved_expansion) + return _internal_fully_decode_reserved_expansion(); +} +inline void Http::_internal_set_fully_decode_reserved_expansion(bool value) { + + _impl_.fully_decode_reserved_expansion_ = value; +} +inline void Http::set_fully_decode_reserved_expansion(bool value) { + _internal_set_fully_decode_reserved_expansion(value); + // @@protoc_insertion_point(field_set:google.api.Http.fully_decode_reserved_expansion) +} + +// ------------------------------------------------------------------- + +// HttpRule + +// string selector = 1 [json_name = "selector"]; +inline void HttpRule::clear_selector() { + _impl_.selector_.ClearToEmpty(); +} +inline const std::string& HttpRule::selector() const { + // @@protoc_insertion_point(field_get:google.api.HttpRule.selector) + return _internal_selector(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void HttpRule::set_selector(ArgT0&& arg0, ArgT... args) { + + _impl_.selector_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.HttpRule.selector) +} +inline std::string* HttpRule::mutable_selector() { + std::string* _s = _internal_mutable_selector(); + // @@protoc_insertion_point(field_mutable:google.api.HttpRule.selector) + return _s; +} +inline const std::string& HttpRule::_internal_selector() const { + return _impl_.selector_.Get(); +} +inline void HttpRule::_internal_set_selector(const std::string& value) { + + _impl_.selector_.Set(value, GetArenaForAllocation()); +} +inline std::string* HttpRule::_internal_mutable_selector() { + + return _impl_.selector_.Mutable(GetArenaForAllocation()); +} +inline std::string* HttpRule::release_selector() { + // @@protoc_insertion_point(field_release:google.api.HttpRule.selector) + return _impl_.selector_.Release(); +} +inline void HttpRule::set_allocated_selector(std::string* selector) { + if (selector != nullptr) { + + } else { + + } + _impl_.selector_.SetAllocated(selector, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.selector_.IsDefault()) { + _impl_.selector_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.selector) +} + +// string get = 2 [json_name = "get"]; +inline bool HttpRule::_internal_has_get() const { + return pattern_case() == kGet; +} +inline bool HttpRule::has_get() const { + return _internal_has_get(); +} +inline void HttpRule::set_has_get() { + _impl_._oneof_case_[0] = kGet; +} +inline void HttpRule::clear_get() { + if (_internal_has_get()) { + _impl_.pattern_.get_.Destroy(); + clear_has_pattern(); + } +} +inline const std::string& HttpRule::get() const { + // @@protoc_insertion_point(field_get:google.api.HttpRule.get) + return _internal_get(); +} +template +inline void HttpRule::set_get(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_get()) { + clear_pattern(); + set_has_get(); + _impl_.pattern_.get_.InitDefault(); + } + _impl_.pattern_.get_.Set( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.HttpRule.get) +} +inline std::string* HttpRule::mutable_get() { + std::string* _s = _internal_mutable_get(); + // @@protoc_insertion_point(field_mutable:google.api.HttpRule.get) + return _s; +} +inline const std::string& HttpRule::_internal_get() const { + if (_internal_has_get()) { + return _impl_.pattern_.get_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void HttpRule::_internal_set_get(const std::string& value) { + if (!_internal_has_get()) { + clear_pattern(); + set_has_get(); + _impl_.pattern_.get_.InitDefault(); + } + _impl_.pattern_.get_.Set(value, GetArenaForAllocation()); +} +inline std::string* HttpRule::_internal_mutable_get() { + if (!_internal_has_get()) { + clear_pattern(); + set_has_get(); + _impl_.pattern_.get_.InitDefault(); + } + return _impl_.pattern_.get_.Mutable( GetArenaForAllocation()); +} +inline std::string* HttpRule::release_get() { + // @@protoc_insertion_point(field_release:google.api.HttpRule.get) + if (_internal_has_get()) { + clear_has_pattern(); + return _impl_.pattern_.get_.Release(); + } else { + return nullptr; + } +} +inline void HttpRule::set_allocated_get(std::string* get) { + if (has_pattern()) { + clear_pattern(); + } + if (get != nullptr) { + set_has_get(); + _impl_.pattern_.get_.InitAllocated(get, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.get) +} + +// string put = 3 [json_name = "put"]; +inline bool HttpRule::_internal_has_put() const { + return pattern_case() == kPut; +} +inline bool HttpRule::has_put() const { + return _internal_has_put(); +} +inline void HttpRule::set_has_put() { + _impl_._oneof_case_[0] = kPut; +} +inline void HttpRule::clear_put() { + if (_internal_has_put()) { + _impl_.pattern_.put_.Destroy(); + clear_has_pattern(); + } +} +inline const std::string& HttpRule::put() const { + // @@protoc_insertion_point(field_get:google.api.HttpRule.put) + return _internal_put(); +} +template +inline void HttpRule::set_put(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_put()) { + clear_pattern(); + set_has_put(); + _impl_.pattern_.put_.InitDefault(); + } + _impl_.pattern_.put_.Set( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.HttpRule.put) +} +inline std::string* HttpRule::mutable_put() { + std::string* _s = _internal_mutable_put(); + // @@protoc_insertion_point(field_mutable:google.api.HttpRule.put) + return _s; +} +inline const std::string& HttpRule::_internal_put() const { + if (_internal_has_put()) { + return _impl_.pattern_.put_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void HttpRule::_internal_set_put(const std::string& value) { + if (!_internal_has_put()) { + clear_pattern(); + set_has_put(); + _impl_.pattern_.put_.InitDefault(); + } + _impl_.pattern_.put_.Set(value, GetArenaForAllocation()); +} +inline std::string* HttpRule::_internal_mutable_put() { + if (!_internal_has_put()) { + clear_pattern(); + set_has_put(); + _impl_.pattern_.put_.InitDefault(); + } + return _impl_.pattern_.put_.Mutable( GetArenaForAllocation()); +} +inline std::string* HttpRule::release_put() { + // @@protoc_insertion_point(field_release:google.api.HttpRule.put) + if (_internal_has_put()) { + clear_has_pattern(); + return _impl_.pattern_.put_.Release(); + } else { + return nullptr; + } +} +inline void HttpRule::set_allocated_put(std::string* put) { + if (has_pattern()) { + clear_pattern(); + } + if (put != nullptr) { + set_has_put(); + _impl_.pattern_.put_.InitAllocated(put, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.put) +} + +// string post = 4 [json_name = "post"]; +inline bool HttpRule::_internal_has_post() const { + return pattern_case() == kPost; +} +inline bool HttpRule::has_post() const { + return _internal_has_post(); +} +inline void HttpRule::set_has_post() { + _impl_._oneof_case_[0] = kPost; +} +inline void HttpRule::clear_post() { + if (_internal_has_post()) { + _impl_.pattern_.post_.Destroy(); + clear_has_pattern(); + } +} +inline const std::string& HttpRule::post() const { + // @@protoc_insertion_point(field_get:google.api.HttpRule.post) + return _internal_post(); +} +template +inline void HttpRule::set_post(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_post()) { + clear_pattern(); + set_has_post(); + _impl_.pattern_.post_.InitDefault(); + } + _impl_.pattern_.post_.Set( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.HttpRule.post) +} +inline std::string* HttpRule::mutable_post() { + std::string* _s = _internal_mutable_post(); + // @@protoc_insertion_point(field_mutable:google.api.HttpRule.post) + return _s; +} +inline const std::string& HttpRule::_internal_post() const { + if (_internal_has_post()) { + return _impl_.pattern_.post_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void HttpRule::_internal_set_post(const std::string& value) { + if (!_internal_has_post()) { + clear_pattern(); + set_has_post(); + _impl_.pattern_.post_.InitDefault(); + } + _impl_.pattern_.post_.Set(value, GetArenaForAllocation()); +} +inline std::string* HttpRule::_internal_mutable_post() { + if (!_internal_has_post()) { + clear_pattern(); + set_has_post(); + _impl_.pattern_.post_.InitDefault(); + } + return _impl_.pattern_.post_.Mutable( GetArenaForAllocation()); +} +inline std::string* HttpRule::release_post() { + // @@protoc_insertion_point(field_release:google.api.HttpRule.post) + if (_internal_has_post()) { + clear_has_pattern(); + return _impl_.pattern_.post_.Release(); + } else { + return nullptr; + } +} +inline void HttpRule::set_allocated_post(std::string* post) { + if (has_pattern()) { + clear_pattern(); + } + if (post != nullptr) { + set_has_post(); + _impl_.pattern_.post_.InitAllocated(post, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.post) +} + +// string delete = 5 [json_name = "delete"]; +inline bool HttpRule::_internal_has_delete_() const { + return pattern_case() == kDelete; +} +inline bool HttpRule::has_delete_() const { + return _internal_has_delete_(); +} +inline void HttpRule::set_has_delete_() { + _impl_._oneof_case_[0] = kDelete; +} +inline void HttpRule::clear_delete_() { + if (_internal_has_delete_()) { + _impl_.pattern_.delete__.Destroy(); + clear_has_pattern(); + } +} +inline const std::string& HttpRule::delete_() const { + // @@protoc_insertion_point(field_get:google.api.HttpRule.delete) + return _internal_delete_(); +} +template +inline void HttpRule::set_delete_(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_delete_()) { + clear_pattern(); + set_has_delete_(); + _impl_.pattern_.delete__.InitDefault(); + } + _impl_.pattern_.delete__.Set( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.HttpRule.delete) +} +inline std::string* HttpRule::mutable_delete_() { + std::string* _s = _internal_mutable_delete_(); + // @@protoc_insertion_point(field_mutable:google.api.HttpRule.delete) + return _s; +} +inline const std::string& HttpRule::_internal_delete_() const { + if (_internal_has_delete_()) { + return _impl_.pattern_.delete__.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void HttpRule::_internal_set_delete_(const std::string& value) { + if (!_internal_has_delete_()) { + clear_pattern(); + set_has_delete_(); + _impl_.pattern_.delete__.InitDefault(); + } + _impl_.pattern_.delete__.Set(value, GetArenaForAllocation()); +} +inline std::string* HttpRule::_internal_mutable_delete_() { + if (!_internal_has_delete_()) { + clear_pattern(); + set_has_delete_(); + _impl_.pattern_.delete__.InitDefault(); + } + return _impl_.pattern_.delete__.Mutable( GetArenaForAllocation()); +} +inline std::string* HttpRule::release_delete_() { + // @@protoc_insertion_point(field_release:google.api.HttpRule.delete) + if (_internal_has_delete_()) { + clear_has_pattern(); + return _impl_.pattern_.delete__.Release(); + } else { + return nullptr; + } +} +inline void HttpRule::set_allocated_delete_(std::string* delete_) { + if (has_pattern()) { + clear_pattern(); + } + if (delete_ != nullptr) { + set_has_delete_(); + _impl_.pattern_.delete__.InitAllocated(delete_, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.delete) +} + +// string patch = 6 [json_name = "patch"]; +inline bool HttpRule::_internal_has_patch() const { + return pattern_case() == kPatch; +} +inline bool HttpRule::has_patch() const { + return _internal_has_patch(); +} +inline void HttpRule::set_has_patch() { + _impl_._oneof_case_[0] = kPatch; +} +inline void HttpRule::clear_patch() { + if (_internal_has_patch()) { + _impl_.pattern_.patch_.Destroy(); + clear_has_pattern(); + } +} +inline const std::string& HttpRule::patch() const { + // @@protoc_insertion_point(field_get:google.api.HttpRule.patch) + return _internal_patch(); +} +template +inline void HttpRule::set_patch(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_patch()) { + clear_pattern(); + set_has_patch(); + _impl_.pattern_.patch_.InitDefault(); + } + _impl_.pattern_.patch_.Set( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.HttpRule.patch) +} +inline std::string* HttpRule::mutable_patch() { + std::string* _s = _internal_mutable_patch(); + // @@protoc_insertion_point(field_mutable:google.api.HttpRule.patch) + return _s; +} +inline const std::string& HttpRule::_internal_patch() const { + if (_internal_has_patch()) { + return _impl_.pattern_.patch_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void HttpRule::_internal_set_patch(const std::string& value) { + if (!_internal_has_patch()) { + clear_pattern(); + set_has_patch(); + _impl_.pattern_.patch_.InitDefault(); + } + _impl_.pattern_.patch_.Set(value, GetArenaForAllocation()); +} +inline std::string* HttpRule::_internal_mutable_patch() { + if (!_internal_has_patch()) { + clear_pattern(); + set_has_patch(); + _impl_.pattern_.patch_.InitDefault(); + } + return _impl_.pattern_.patch_.Mutable( GetArenaForAllocation()); +} +inline std::string* HttpRule::release_patch() { + // @@protoc_insertion_point(field_release:google.api.HttpRule.patch) + if (_internal_has_patch()) { + clear_has_pattern(); + return _impl_.pattern_.patch_.Release(); + } else { + return nullptr; + } +} +inline void HttpRule::set_allocated_patch(std::string* patch) { + if (has_pattern()) { + clear_pattern(); + } + if (patch != nullptr) { + set_has_patch(); + _impl_.pattern_.patch_.InitAllocated(patch, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.patch) +} + +// .google.api.CustomHttpPattern custom = 8 [json_name = "custom"]; +inline bool HttpRule::_internal_has_custom() const { + return pattern_case() == kCustom; +} +inline bool HttpRule::has_custom() const { + return _internal_has_custom(); +} +inline void HttpRule::set_has_custom() { + _impl_._oneof_case_[0] = kCustom; +} +inline void HttpRule::clear_custom() { + if (_internal_has_custom()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.pattern_.custom_; + } + clear_has_pattern(); + } +} +inline ::google::api::CustomHttpPattern* HttpRule::release_custom() { + // @@protoc_insertion_point(field_release:google.api.HttpRule.custom) + if (_internal_has_custom()) { + clear_has_pattern(); + ::google::api::CustomHttpPattern* temp = _impl_.pattern_.custom_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.pattern_.custom_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::api::CustomHttpPattern& HttpRule::_internal_custom() const { + return _internal_has_custom() + ? *_impl_.pattern_.custom_ + : reinterpret_cast< ::google::api::CustomHttpPattern&>(::google::api::_CustomHttpPattern_default_instance_); +} +inline const ::google::api::CustomHttpPattern& HttpRule::custom() const { + // @@protoc_insertion_point(field_get:google.api.HttpRule.custom) + return _internal_custom(); +} +inline ::google::api::CustomHttpPattern* HttpRule::unsafe_arena_release_custom() { + // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.custom) + if (_internal_has_custom()) { + clear_has_pattern(); + ::google::api::CustomHttpPattern* temp = _impl_.pattern_.custom_; + _impl_.pattern_.custom_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void HttpRule::unsafe_arena_set_allocated_custom(::google::api::CustomHttpPattern* custom) { + clear_pattern(); + if (custom) { + set_has_custom(); + _impl_.pattern_.custom_ = custom; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.custom) +} +inline ::google::api::CustomHttpPattern* HttpRule::_internal_mutable_custom() { + if (!_internal_has_custom()) { + clear_pattern(); + set_has_custom(); + _impl_.pattern_.custom_ = CreateMaybeMessage< ::google::api::CustomHttpPattern >(GetArenaForAllocation()); + } + return _impl_.pattern_.custom_; +} +inline ::google::api::CustomHttpPattern* HttpRule::mutable_custom() { + ::google::api::CustomHttpPattern* _msg = _internal_mutable_custom(); + // @@protoc_insertion_point(field_mutable:google.api.HttpRule.custom) + return _msg; +} + +// string body = 7 [json_name = "body"]; +inline void HttpRule::clear_body() { + _impl_.body_.ClearToEmpty(); +} +inline const std::string& HttpRule::body() const { + // @@protoc_insertion_point(field_get:google.api.HttpRule.body) + return _internal_body(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void HttpRule::set_body(ArgT0&& arg0, ArgT... args) { + + _impl_.body_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.HttpRule.body) +} +inline std::string* HttpRule::mutable_body() { + std::string* _s = _internal_mutable_body(); + // @@protoc_insertion_point(field_mutable:google.api.HttpRule.body) + return _s; +} +inline const std::string& HttpRule::_internal_body() const { + return _impl_.body_.Get(); +} +inline void HttpRule::_internal_set_body(const std::string& value) { + + _impl_.body_.Set(value, GetArenaForAllocation()); +} +inline std::string* HttpRule::_internal_mutable_body() { + + return _impl_.body_.Mutable(GetArenaForAllocation()); +} +inline std::string* HttpRule::release_body() { + // @@protoc_insertion_point(field_release:google.api.HttpRule.body) + return _impl_.body_.Release(); +} +inline void HttpRule::set_allocated_body(std::string* body) { + if (body != nullptr) { + + } else { + + } + _impl_.body_.SetAllocated(body, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.body_.IsDefault()) { + _impl_.body_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.body) +} + +// string response_body = 12 [json_name = "responseBody"]; +inline void HttpRule::clear_response_body() { + _impl_.response_body_.ClearToEmpty(); +} +inline const std::string& HttpRule::response_body() const { + // @@protoc_insertion_point(field_get:google.api.HttpRule.response_body) + return _internal_response_body(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void HttpRule::set_response_body(ArgT0&& arg0, ArgT... args) { + + _impl_.response_body_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.HttpRule.response_body) +} +inline std::string* HttpRule::mutable_response_body() { + std::string* _s = _internal_mutable_response_body(); + // @@protoc_insertion_point(field_mutable:google.api.HttpRule.response_body) + return _s; +} +inline const std::string& HttpRule::_internal_response_body() const { + return _impl_.response_body_.Get(); +} +inline void HttpRule::_internal_set_response_body(const std::string& value) { + + _impl_.response_body_.Set(value, GetArenaForAllocation()); +} +inline std::string* HttpRule::_internal_mutable_response_body() { + + return _impl_.response_body_.Mutable(GetArenaForAllocation()); +} +inline std::string* HttpRule::release_response_body() { + // @@protoc_insertion_point(field_release:google.api.HttpRule.response_body) + return _impl_.response_body_.Release(); +} +inline void HttpRule::set_allocated_response_body(std::string* response_body) { + if (response_body != nullptr) { + + } else { + + } + _impl_.response_body_.SetAllocated(response_body, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.response_body_.IsDefault()) { + _impl_.response_body_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.response_body) +} + +// repeated .google.api.HttpRule additional_bindings = 11 [json_name = "additionalBindings"]; +inline int HttpRule::_internal_additional_bindings_size() const { + return _impl_.additional_bindings_.size(); +} +inline int HttpRule::additional_bindings_size() const { + return _internal_additional_bindings_size(); +} +inline void HttpRule::clear_additional_bindings() { + _impl_.additional_bindings_.Clear(); +} +inline ::google::api::HttpRule* HttpRule::mutable_additional_bindings(int index) { + // @@protoc_insertion_point(field_mutable:google.api.HttpRule.additional_bindings) + return _impl_.additional_bindings_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >* +HttpRule::mutable_additional_bindings() { + // @@protoc_insertion_point(field_mutable_list:google.api.HttpRule.additional_bindings) + return &_impl_.additional_bindings_; +} +inline const ::google::api::HttpRule& HttpRule::_internal_additional_bindings(int index) const { + return _impl_.additional_bindings_.Get(index); +} +inline const ::google::api::HttpRule& HttpRule::additional_bindings(int index) const { + // @@protoc_insertion_point(field_get:google.api.HttpRule.additional_bindings) + return _internal_additional_bindings(index); +} +inline ::google::api::HttpRule* HttpRule::_internal_add_additional_bindings() { + return _impl_.additional_bindings_.Add(); +} +inline ::google::api::HttpRule* HttpRule::add_additional_bindings() { + ::google::api::HttpRule* _add = _internal_add_additional_bindings(); + // @@protoc_insertion_point(field_add:google.api.HttpRule.additional_bindings) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >& +HttpRule::additional_bindings() const { + // @@protoc_insertion_point(field_list:google.api.HttpRule.additional_bindings) + return _impl_.additional_bindings_; +} + +inline bool HttpRule::has_pattern() const { + return pattern_case() != PATTERN_NOT_SET; +} +inline void HttpRule::clear_has_pattern() { + _impl_._oneof_case_[0] = PATTERN_NOT_SET; +} +inline HttpRule::PatternCase HttpRule::pattern_case() const { + return HttpRule::PatternCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// CustomHttpPattern + +// string kind = 1 [json_name = "kind"]; +inline void CustomHttpPattern::clear_kind() { + _impl_.kind_.ClearToEmpty(); +} +inline const std::string& CustomHttpPattern::kind() const { + // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.kind) + return _internal_kind(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CustomHttpPattern::set_kind(ArgT0&& arg0, ArgT... args) { + + _impl_.kind_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.kind) +} +inline std::string* CustomHttpPattern::mutable_kind() { + std::string* _s = _internal_mutable_kind(); + // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.kind) + return _s; +} +inline const std::string& CustomHttpPattern::_internal_kind() const { + return _impl_.kind_.Get(); +} +inline void CustomHttpPattern::_internal_set_kind(const std::string& value) { + + _impl_.kind_.Set(value, GetArenaForAllocation()); +} +inline std::string* CustomHttpPattern::_internal_mutable_kind() { + + return _impl_.kind_.Mutable(GetArenaForAllocation()); +} +inline std::string* CustomHttpPattern::release_kind() { + // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.kind) + return _impl_.kind_.Release(); +} +inline void CustomHttpPattern::set_allocated_kind(std::string* kind) { + if (kind != nullptr) { + + } else { + + } + _impl_.kind_.SetAllocated(kind, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.kind_.IsDefault()) { + _impl_.kind_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.kind) +} + +// string path = 2 [json_name = "path"]; +inline void CustomHttpPattern::clear_path() { + _impl_.path_.ClearToEmpty(); +} +inline const std::string& CustomHttpPattern::path() const { + // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.path) + return _internal_path(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CustomHttpPattern::set_path(ArgT0&& arg0, ArgT... args) { + + _impl_.path_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.path) +} +inline std::string* CustomHttpPattern::mutable_path() { + std::string* _s = _internal_mutable_path(); + // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.path) + return _s; +} +inline const std::string& CustomHttpPattern::_internal_path() const { + return _impl_.path_.Get(); +} +inline void CustomHttpPattern::_internal_set_path(const std::string& value) { + + _impl_.path_.Set(value, GetArenaForAllocation()); +} +inline std::string* CustomHttpPattern::_internal_mutable_path() { + + return _impl_.path_.Mutable(GetArenaForAllocation()); +} +inline std::string* CustomHttpPattern::release_path() { + // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.path) + return _impl_.path_.Release(); +} +inline void CustomHttpPattern::set_allocated_path(std::string* path) { + if (path != nullptr) { + + } else { + + } + _impl_.path_.SetAllocated(path, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.path_.IsDefault()) { + _impl_.path_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.path) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace api +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttp_2eproto diff --git a/src/gen/google/api/httpbody.grpc.pb.cc b/src/gen/google/api/httpbody.grpc.pb.cc new file mode 100644 index 000000000..b52b972c5 --- /dev/null +++ b/src/gen/google/api/httpbody.grpc.pb.cc @@ -0,0 +1,27 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/httpbody.proto + +#include "google/api/httpbody.pb.h" +#include "google/api/httpbody.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace api { + +} // namespace google +} // namespace api + diff --git a/src/gen/google/api/httpbody.grpc.pb.h b/src/gen/google/api/httpbody.grpc.pb.h new file mode 100644 index 000000000..126abc854 --- /dev/null +++ b/src/gen/google/api/httpbody.grpc.pb.h @@ -0,0 +1,50 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/httpbody.proto +// Original file comments: +// Copyright 2015 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_google_2fapi_2fhttpbody_2eproto__INCLUDED +#define GRPC_google_2fapi_2fhttpbody_2eproto__INCLUDED + +#include "google/api/httpbody.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace api { + +} // namespace api +} // namespace google + + +#endif // GRPC_google_2fapi_2fhttpbody_2eproto__INCLUDED diff --git a/src/gen/google/api/httpbody.pb.cc b/src/gen/google/api/httpbody.pb.cc new file mode 100644 index 000000000..a508d1371 --- /dev/null +++ b/src/gen/google/api/httpbody.pb.cc @@ -0,0 +1,392 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/httpbody.proto + +#include "google/api/httpbody.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace api { +PROTOBUF_CONSTEXPR HttpBody::HttpBody( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.extensions_)*/{} + , /*decltype(_impl_.content_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.data_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct HttpBodyDefaultTypeInternal { + PROTOBUF_CONSTEXPR HttpBodyDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~HttpBodyDefaultTypeInternal() {} + union { + HttpBody _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpBodyDefaultTypeInternal _HttpBody_default_instance_; +} // namespace api +} // namespace google +static ::_pb::Metadata file_level_metadata_google_2fapi_2fhttpbody_2eproto[1]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fhttpbody_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fhttpbody_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fhttpbody_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::HttpBody, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::HttpBody, _impl_.content_type_), + PROTOBUF_FIELD_OFFSET(::google::api::HttpBody, _impl_.data_), + PROTOBUF_FIELD_OFFSET(::google::api::HttpBody, _impl_.extensions_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::HttpBody)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::google::api::_HttpBody_default_instance_._instance, +}; + +const char descriptor_table_protodef_google_2fapi_2fhttpbody_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\031google/api/httpbody.proto\022\ngoogle.api\032" + "\031google/protobuf/any.proto\"w\n\010HttpBody\022!" + "\n\014content_type\030\001 \001(\tR\013contentType\022\022\n\004dat" + "a\030\002 \001(\014R\004data\0224\n\nextensions\030\003 \003(\0132\024.goog" + "le.protobuf.AnyR\nextensionsBh\n\016com.googl" + "e.apiB\rHttpBodyProtoP\001Z;google.golang.or" + "g/genproto/googleapis/api/httpbody;httpb" + "ody\370\001\001\242\002\004GAPIb\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fhttpbody_2eproto_deps[1] = { + &::descriptor_table_google_2fprotobuf_2fany_2eproto, +}; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fhttpbody_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fhttpbody_2eproto = { + false, false, 301, descriptor_table_protodef_google_2fapi_2fhttpbody_2eproto, + "google/api/httpbody.proto", + &descriptor_table_google_2fapi_2fhttpbody_2eproto_once, descriptor_table_google_2fapi_2fhttpbody_2eproto_deps, 1, 1, + schemas, file_default_instances, TableStruct_google_2fapi_2fhttpbody_2eproto::offsets, + file_level_metadata_google_2fapi_2fhttpbody_2eproto, file_level_enum_descriptors_google_2fapi_2fhttpbody_2eproto, + file_level_service_descriptors_google_2fapi_2fhttpbody_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fhttpbody_2eproto_getter() { + return &descriptor_table_google_2fapi_2fhttpbody_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fhttpbody_2eproto(&descriptor_table_google_2fapi_2fhttpbody_2eproto); +namespace google { +namespace api { + +// =================================================================== + +class HttpBody::_Internal { + public: +}; + +void HttpBody::clear_extensions() { + _impl_.extensions_.Clear(); +} +HttpBody::HttpBody(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.HttpBody) +} +HttpBody::HttpBody(const HttpBody& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + HttpBody* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.extensions_){from._impl_.extensions_} + , decltype(_impl_.content_type_){} + , decltype(_impl_.data_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.content_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.content_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_content_type().empty()) { + _this->_impl_.content_type_.Set(from._internal_content_type(), + _this->GetArenaForAllocation()); + } + _impl_.data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_data().empty()) { + _this->_impl_.data_.Set(from._internal_data(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:google.api.HttpBody) +} + +inline void HttpBody::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.extensions_){arena} + , decltype(_impl_.content_type_){} + , decltype(_impl_.data_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.content_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.content_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +HttpBody::~HttpBody() { + // @@protoc_insertion_point(destructor:google.api.HttpBody) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void HttpBody::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.extensions_.~RepeatedPtrField(); + _impl_.content_type_.Destroy(); + _impl_.data_.Destroy(); +} + +void HttpBody::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void HttpBody::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.HttpBody) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.extensions_.Clear(); + _impl_.content_type_.ClearToEmpty(); + _impl_.data_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* HttpBody::_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 content_type = 1 [json_name = "contentType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_content_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpBody.content_type")); + } else + goto handle_unusual; + continue; + // bytes data = 2 [json_name = "data"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_data(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .google.protobuf.Any extensions = 3 [json_name = "extensions"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_extensions(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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* HttpBody::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.HttpBody) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string content_type = 1 [json_name = "contentType"]; + if (!this->_internal_content_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_content_type().data(), static_cast(this->_internal_content_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.HttpBody.content_type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_content_type(), target); + } + + // bytes data = 2 [json_name = "data"]; + if (!this->_internal_data().empty()) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_data(), target); + } + + // repeated .google.protobuf.Any extensions = 3 [json_name = "extensions"]; + for (unsigned i = 0, + n = static_cast(this->_internal_extensions_size()); i < n; i++) { + const auto& repfield = this->_internal_extensions(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.HttpBody) + return target; +} + +size_t HttpBody::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.HttpBody) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.protobuf.Any extensions = 3 [json_name = "extensions"]; + total_size += 1UL * this->_internal_extensions_size(); + for (const auto& msg : this->_impl_.extensions_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string content_type = 1 [json_name = "contentType"]; + if (!this->_internal_content_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_content_type()); + } + + // bytes data = 2 [json_name = "data"]; + if (!this->_internal_data().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_data()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HttpBody::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + HttpBody::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HttpBody::GetClassData() const { return &_class_data_; } + + +void HttpBody::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.HttpBody) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); + if (!from._internal_content_type().empty()) { + _this->_internal_set_content_type(from._internal_content_type()); + } + if (!from._internal_data().empty()) { + _this->_internal_set_data(from._internal_data()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void HttpBody::CopyFrom(const HttpBody& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.HttpBody) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HttpBody::IsInitialized() const { + return true; +} + +void HttpBody::InternalSwap(HttpBody* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.content_type_, lhs_arena, + &other->_impl_.content_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.data_, lhs_arena, + &other->_impl_.data_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata HttpBody::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fhttpbody_2eproto_getter, &descriptor_table_google_2fapi_2fhttpbody_2eproto_once, + file_level_metadata_google_2fapi_2fhttpbody_2eproto[0]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::HttpBody* +Arena::CreateMaybeMessage< ::google::api::HttpBody >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::HttpBody >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/google/api/httpbody.pb.h b/src/gen/google/api/httpbody.pb.h new file mode 100644 index 000000000..29c1253ce --- /dev/null +++ b/src/gen/google/api/httpbody.pb.h @@ -0,0 +1,410 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/httpbody.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttpbody_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttpbody_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fhttpbody_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2fapi_2fhttpbody_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fhttpbody_2eproto; +namespace google { +namespace api { +class HttpBody; +struct HttpBodyDefaultTypeInternal; +extern HttpBodyDefaultTypeInternal _HttpBody_default_instance_; +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::HttpBody* Arena::CreateMaybeMessage<::google::api::HttpBody>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace api { + +// =================================================================== + +class HttpBody final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.HttpBody) */ { + public: + inline HttpBody() : HttpBody(nullptr) {} + ~HttpBody() override; + explicit PROTOBUF_CONSTEXPR HttpBody(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + HttpBody(const HttpBody& from); + HttpBody(HttpBody&& from) noexcept + : HttpBody() { + *this = ::std::move(from); + } + + inline HttpBody& operator=(const HttpBody& from) { + CopyFrom(from); + return *this; + } + inline HttpBody& operator=(HttpBody&& 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 HttpBody& default_instance() { + return *internal_default_instance(); + } + static inline const HttpBody* internal_default_instance() { + return reinterpret_cast( + &_HttpBody_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(HttpBody& a, HttpBody& b) { + a.Swap(&b); + } + inline void Swap(HttpBody* 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(HttpBody* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + HttpBody* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const HttpBody& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const HttpBody& from) { + HttpBody::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HttpBody* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.HttpBody"; + } + protected: + explicit HttpBody(::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 { + kExtensionsFieldNumber = 3, + kContentTypeFieldNumber = 1, + kDataFieldNumber = 2, + }; + // repeated .google.protobuf.Any extensions = 3 [json_name = "extensions"]; + int extensions_size() const; + private: + int _internal_extensions_size() const; + public: + void clear_extensions(); + ::PROTOBUF_NAMESPACE_ID::Any* mutable_extensions(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >* + mutable_extensions(); + private: + const ::PROTOBUF_NAMESPACE_ID::Any& _internal_extensions(int index) const; + ::PROTOBUF_NAMESPACE_ID::Any* _internal_add_extensions(); + public: + const ::PROTOBUF_NAMESPACE_ID::Any& extensions(int index) const; + ::PROTOBUF_NAMESPACE_ID::Any* add_extensions(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >& + extensions() const; + + // string content_type = 1 [json_name = "contentType"]; + void clear_content_type(); + const std::string& content_type() const; + template + void set_content_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_content_type(); + PROTOBUF_NODISCARD std::string* release_content_type(); + void set_allocated_content_type(std::string* content_type); + private: + const std::string& _internal_content_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_content_type(const std::string& value); + std::string* _internal_mutable_content_type(); + public: + + // bytes data = 2 [json_name = "data"]; + void clear_data(); + const std::string& data() const; + template + void set_data(ArgT0&& arg0, ArgT... args); + std::string* mutable_data(); + PROTOBUF_NODISCARD std::string* release_data(); + void set_allocated_data(std::string* data); + private: + const std::string& _internal_data() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value); + std::string* _internal_mutable_data(); + public: + + // @@protoc_insertion_point(class_scope:google.api.HttpBody) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any > extensions_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr content_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fhttpbody_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// HttpBody + +// string content_type = 1 [json_name = "contentType"]; +inline void HttpBody::clear_content_type() { + _impl_.content_type_.ClearToEmpty(); +} +inline const std::string& HttpBody::content_type() const { + // @@protoc_insertion_point(field_get:google.api.HttpBody.content_type) + return _internal_content_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void HttpBody::set_content_type(ArgT0&& arg0, ArgT... args) { + + _impl_.content_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.HttpBody.content_type) +} +inline std::string* HttpBody::mutable_content_type() { + std::string* _s = _internal_mutable_content_type(); + // @@protoc_insertion_point(field_mutable:google.api.HttpBody.content_type) + return _s; +} +inline const std::string& HttpBody::_internal_content_type() const { + return _impl_.content_type_.Get(); +} +inline void HttpBody::_internal_set_content_type(const std::string& value) { + + _impl_.content_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* HttpBody::_internal_mutable_content_type() { + + return _impl_.content_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* HttpBody::release_content_type() { + // @@protoc_insertion_point(field_release:google.api.HttpBody.content_type) + return _impl_.content_type_.Release(); +} +inline void HttpBody::set_allocated_content_type(std::string* content_type) { + if (content_type != nullptr) { + + } else { + + } + _impl_.content_type_.SetAllocated(content_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.content_type_.IsDefault()) { + _impl_.content_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.HttpBody.content_type) +} + +// bytes data = 2 [json_name = "data"]; +inline void HttpBody::clear_data() { + _impl_.data_.ClearToEmpty(); +} +inline const std::string& HttpBody::data() const { + // @@protoc_insertion_point(field_get:google.api.HttpBody.data) + return _internal_data(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void HttpBody::set_data(ArgT0&& arg0, ArgT... args) { + + _impl_.data_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.HttpBody.data) +} +inline std::string* HttpBody::mutable_data() { + std::string* _s = _internal_mutable_data(); + // @@protoc_insertion_point(field_mutable:google.api.HttpBody.data) + return _s; +} +inline const std::string& HttpBody::_internal_data() const { + return _impl_.data_.Get(); +} +inline void HttpBody::_internal_set_data(const std::string& value) { + + _impl_.data_.Set(value, GetArenaForAllocation()); +} +inline std::string* HttpBody::_internal_mutable_data() { + + return _impl_.data_.Mutable(GetArenaForAllocation()); +} +inline std::string* HttpBody::release_data() { + // @@protoc_insertion_point(field_release:google.api.HttpBody.data) + return _impl_.data_.Release(); +} +inline void HttpBody::set_allocated_data(std::string* data) { + if (data != nullptr) { + + } else { + + } + _impl_.data_.SetAllocated(data, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.data_.IsDefault()) { + _impl_.data_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.HttpBody.data) +} + +// repeated .google.protobuf.Any extensions = 3 [json_name = "extensions"]; +inline int HttpBody::_internal_extensions_size() const { + return _impl_.extensions_.size(); +} +inline int HttpBody::extensions_size() const { + return _internal_extensions_size(); +} +inline ::PROTOBUF_NAMESPACE_ID::Any* HttpBody::mutable_extensions(int index) { + // @@protoc_insertion_point(field_mutable:google.api.HttpBody.extensions) + return _impl_.extensions_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >* +HttpBody::mutable_extensions() { + // @@protoc_insertion_point(field_mutable_list:google.api.HttpBody.extensions) + return &_impl_.extensions_; +} +inline const ::PROTOBUF_NAMESPACE_ID::Any& HttpBody::_internal_extensions(int index) const { + return _impl_.extensions_.Get(index); +} +inline const ::PROTOBUF_NAMESPACE_ID::Any& HttpBody::extensions(int index) const { + // @@protoc_insertion_point(field_get:google.api.HttpBody.extensions) + return _internal_extensions(index); +} +inline ::PROTOBUF_NAMESPACE_ID::Any* HttpBody::_internal_add_extensions() { + return _impl_.extensions_.Add(); +} +inline ::PROTOBUF_NAMESPACE_ID::Any* HttpBody::add_extensions() { + ::PROTOBUF_NAMESPACE_ID::Any* _add = _internal_add_extensions(); + // @@protoc_insertion_point(field_add:google.api.HttpBody.extensions) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >& +HttpBody::extensions() const { + // @@protoc_insertion_point(field_list:google.api.HttpBody.extensions) + return _impl_.extensions_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace api +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttpbody_2eproto diff --git a/src/gen/google/api/resource.grpc.pb.cc b/src/gen/google/api/resource.grpc.pb.cc new file mode 100644 index 000000000..b73205ef8 --- /dev/null +++ b/src/gen/google/api/resource.grpc.pb.cc @@ -0,0 +1,27 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/resource.proto + +#include "google/api/resource.pb.h" +#include "google/api/resource.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace api { + +} // namespace google +} // namespace api + diff --git a/src/gen/google/api/resource.grpc.pb.h b/src/gen/google/api/resource.grpc.pb.h new file mode 100644 index 000000000..04e79e3cb --- /dev/null +++ b/src/gen/google/api/resource.grpc.pb.h @@ -0,0 +1,50 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/resource.proto +// Original file comments: +// Copyright 2018 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_google_2fapi_2fresource_2eproto__INCLUDED +#define GRPC_google_2fapi_2fresource_2eproto__INCLUDED + +#include "google/api/resource.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace api { + +} // namespace api +} // namespace google + + +#endif // GRPC_google_2fapi_2fresource_2eproto__INCLUDED diff --git a/src/gen/google/api/resource.pb.cc b/src/gen/google/api/resource.pb.cc new file mode 100644 index 000000000..0537496ac --- /dev/null +++ b/src/gen/google/api/resource.pb.cc @@ -0,0 +1,936 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/resource.proto + +#include "google/api/resource.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace api { +PROTOBUF_CONSTEXPR ResourceDescriptor::ResourceDescriptor( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.pattern_)*/{} + , /*decltype(_impl_.style_)*/{} + , /*decltype(_impl_._style_cached_byte_size_)*/{0} + , /*decltype(_impl_.type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.name_field_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.plural_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.singular_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.history_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ResourceDescriptorDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResourceDescriptorDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResourceDescriptorDefaultTypeInternal() {} + union { + ResourceDescriptor _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceDescriptorDefaultTypeInternal _ResourceDescriptor_default_instance_; +PROTOBUF_CONSTEXPR ResourceReference::ResourceReference( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.child_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ResourceReferenceDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResourceReferenceDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResourceReferenceDefaultTypeInternal() {} + union { + ResourceReference _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceReferenceDefaultTypeInternal _ResourceReference_default_instance_; +} // namespace api +} // namespace google +static ::_pb::Metadata file_level_metadata_google_2fapi_2fresource_2eproto[2]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2fapi_2fresource_2eproto[2]; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fresource_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fresource_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, _impl_.pattern_), + PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, _impl_.name_field_), + PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, _impl_.history_), + PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, _impl_.plural_), + PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, _impl_.singular_), + PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, _impl_.style_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::ResourceReference, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::ResourceReference, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::google::api::ResourceReference, _impl_.child_type_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::ResourceDescriptor)}, + { 13, -1, -1, sizeof(::google::api::ResourceReference)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::google::api::_ResourceDescriptor_default_instance_._instance, + &::google::api::_ResourceReference_default_instance_._instance, +}; + +const char descriptor_table_protodef_google_2fapi_2fresource_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\031google/api/resource.proto\022\ngoogle.api\032" + " google/protobuf/descriptor.proto\"\252\003\n\022Re" + "sourceDescriptor\022\022\n\004type\030\001 \001(\tR\004type\022\030\n\007" + "pattern\030\002 \003(\tR\007pattern\022\035\n\nname_field\030\003 \001" + "(\tR\tnameField\022@\n\007history\030\004 \001(\0162&.google." + "api.ResourceDescriptor.HistoryR\007history\022" + "\026\n\006plural\030\005 \001(\tR\006plural\022\032\n\010singular\030\006 \001(" + "\tR\010singular\022:\n\005style\030\n \003(\0162$.google.api." + "ResourceDescriptor.StyleR\005style\"[\n\007Histo" + "ry\022\027\n\023HISTORY_UNSPECIFIED\020\000\022\035\n\031ORIGINALL" + "Y_SINGLE_PATTERN\020\001\022\030\n\024FUTURE_MULTI_PATTE" + "RN\020\002\"8\n\005Style\022\025\n\021STYLE_UNSPECIFIED\020\000\022\030\n\024" + "DECLARATIVE_FRIENDLY\020\001\"F\n\021ResourceRefere" + "nce\022\022\n\004type\030\001 \001(\tR\004type\022\035\n\nchild_type\030\002 " + "\001(\tR\tchildType:l\n\022resource_reference\022\035.g" + "oogle.protobuf.FieldOptions\030\237\010 \001(\0132\035.goo" + "gle.api.ResourceReferenceR\021resourceRefer" + "ence:n\n\023resource_definition\022\034.google.pro" + "tobuf.FileOptions\030\235\010 \003(\0132\036.google.api.Re" + "sourceDescriptorR\022resourceDefinition:\\\n\010" + "resource\022\037.google.protobuf.MessageOption" + "s\030\235\010 \001(\0132\036.google.api.ResourceDescriptor" + "R\010resourceBn\n\016com.google.apiB\rResourcePr" + "otoP\001ZAgoogle.golang.org/genproto/google" + "apis/api/annotations;annotations\370\001\001\242\002\004GA" + "PIb\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fresource_2eproto_deps[1] = { + &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, +}; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fresource_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fresource_2eproto = { + false, false, 1010, descriptor_table_protodef_google_2fapi_2fresource_2eproto, + "google/api/resource.proto", + &descriptor_table_google_2fapi_2fresource_2eproto_once, descriptor_table_google_2fapi_2fresource_2eproto_deps, 1, 2, + schemas, file_default_instances, TableStruct_google_2fapi_2fresource_2eproto::offsets, + file_level_metadata_google_2fapi_2fresource_2eproto, file_level_enum_descriptors_google_2fapi_2fresource_2eproto, + file_level_service_descriptors_google_2fapi_2fresource_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fresource_2eproto_getter() { + return &descriptor_table_google_2fapi_2fresource_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fresource_2eproto(&descriptor_table_google_2fapi_2fresource_2eproto); +namespace google { +namespace api { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ResourceDescriptor_History_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fapi_2fresource_2eproto); + return file_level_enum_descriptors_google_2fapi_2fresource_2eproto[0]; +} +bool ResourceDescriptor_History_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +constexpr ResourceDescriptor_History ResourceDescriptor::HISTORY_UNSPECIFIED; +constexpr ResourceDescriptor_History ResourceDescriptor::ORIGINALLY_SINGLE_PATTERN; +constexpr ResourceDescriptor_History ResourceDescriptor::FUTURE_MULTI_PATTERN; +constexpr ResourceDescriptor_History ResourceDescriptor::History_MIN; +constexpr ResourceDescriptor_History ResourceDescriptor::History_MAX; +constexpr int ResourceDescriptor::History_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ResourceDescriptor_Style_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fapi_2fresource_2eproto); + return file_level_enum_descriptors_google_2fapi_2fresource_2eproto[1]; +} +bool ResourceDescriptor_Style_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +constexpr ResourceDescriptor_Style ResourceDescriptor::STYLE_UNSPECIFIED; +constexpr ResourceDescriptor_Style ResourceDescriptor::DECLARATIVE_FRIENDLY; +constexpr ResourceDescriptor_Style ResourceDescriptor::Style_MIN; +constexpr ResourceDescriptor_Style ResourceDescriptor::Style_MAX; +constexpr int ResourceDescriptor::Style_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) + +// =================================================================== + +class ResourceDescriptor::_Internal { + public: +}; + +ResourceDescriptor::ResourceDescriptor(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.ResourceDescriptor) +} +ResourceDescriptor::ResourceDescriptor(const ResourceDescriptor& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ResourceDescriptor* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.pattern_){from._impl_.pattern_} + , decltype(_impl_.style_){from._impl_.style_} + , /*decltype(_impl_._style_cached_byte_size_)*/{0} + , decltype(_impl_.type_){} + , decltype(_impl_.name_field_){} + , decltype(_impl_.plural_){} + , decltype(_impl_.singular_){} + , decltype(_impl_.history_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_type().empty()) { + _this->_impl_.type_.Set(from._internal_type(), + _this->GetArenaForAllocation()); + } + _impl_.name_field_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_field_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name_field().empty()) { + _this->_impl_.name_field_.Set(from._internal_name_field(), + _this->GetArenaForAllocation()); + } + _impl_.plural_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.plural_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_plural().empty()) { + _this->_impl_.plural_.Set(from._internal_plural(), + _this->GetArenaForAllocation()); + } + _impl_.singular_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.singular_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_singular().empty()) { + _this->_impl_.singular_.Set(from._internal_singular(), + _this->GetArenaForAllocation()); + } + _this->_impl_.history_ = from._impl_.history_; + // @@protoc_insertion_point(copy_constructor:google.api.ResourceDescriptor) +} + +inline void ResourceDescriptor::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.pattern_){arena} + , decltype(_impl_.style_){arena} + , /*decltype(_impl_._style_cached_byte_size_)*/{0} + , decltype(_impl_.type_){} + , decltype(_impl_.name_field_){} + , decltype(_impl_.plural_){} + , decltype(_impl_.singular_){} + , decltype(_impl_.history_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_field_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_field_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.plural_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.plural_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.singular_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.singular_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ResourceDescriptor::~ResourceDescriptor() { + // @@protoc_insertion_point(destructor:google.api.ResourceDescriptor) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ResourceDescriptor::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.pattern_.~RepeatedPtrField(); + _impl_.style_.~RepeatedField(); + _impl_.type_.Destroy(); + _impl_.name_field_.Destroy(); + _impl_.plural_.Destroy(); + _impl_.singular_.Destroy(); +} + +void ResourceDescriptor::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ResourceDescriptor::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.ResourceDescriptor) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.pattern_.Clear(); + _impl_.style_.Clear(); + _impl_.type_.ClearToEmpty(); + _impl_.name_field_.ClearToEmpty(); + _impl_.plural_.ClearToEmpty(); + _impl_.singular_.ClearToEmpty(); + _impl_.history_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResourceDescriptor::_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 type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.ResourceDescriptor.type")); + } else + goto handle_unusual; + continue; + // repeated string pattern = 2 [json_name = "pattern"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_pattern(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.ResourceDescriptor.pattern")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // string name_field = 3 [json_name = "nameField"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_name_field(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.ResourceDescriptor.name_field")); + } else + goto handle_unusual; + continue; + // .google.api.ResourceDescriptor.History history = 4 [json_name = "history"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_history(static_cast<::google::api::ResourceDescriptor_History>(val)); + } else + goto handle_unusual; + continue; + // string plural = 5 [json_name = "plural"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_plural(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.ResourceDescriptor.plural")); + } else + goto handle_unusual; + continue; + // string singular = 6 [json_name = "singular"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_singular(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.ResourceDescriptor.singular")); + } else + goto handle_unusual; + continue; + // repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_style(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 80) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_add_style(static_cast<::google::api::ResourceDescriptor_Style>(val)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ResourceDescriptor::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.ResourceDescriptor) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string type = 1 [json_name = "type"]; + if (!this->_internal_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.ResourceDescriptor.type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_type(), target); + } + + // repeated string pattern = 2 [json_name = "pattern"]; + for (int i = 0, n = this->_internal_pattern_size(); i < n; i++) { + const auto& s = this->_internal_pattern(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.ResourceDescriptor.pattern"); + target = stream->WriteString(2, s, target); + } + + // string name_field = 3 [json_name = "nameField"]; + if (!this->_internal_name_field().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name_field().data(), static_cast(this->_internal_name_field().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.ResourceDescriptor.name_field"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_name_field(), target); + } + + // .google.api.ResourceDescriptor.History history = 4 [json_name = "history"]; + if (this->_internal_history() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 4, this->_internal_history(), target); + } + + // string plural = 5 [json_name = "plural"]; + if (!this->_internal_plural().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_plural().data(), static_cast(this->_internal_plural().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.ResourceDescriptor.plural"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_plural(), target); + } + + // string singular = 6 [json_name = "singular"]; + if (!this->_internal_singular().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_singular().data(), static_cast(this->_internal_singular().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.ResourceDescriptor.singular"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_singular(), target); + } + + // repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"]; + { + int byte_size = _impl_._style_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 10, _impl_.style_, byte_size, target); + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.ResourceDescriptor) + return target; +} + +size_t ResourceDescriptor::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.ResourceDescriptor) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string pattern = 2 [json_name = "pattern"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.pattern_.size()); + for (int i = 0, n = _impl_.pattern_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.pattern_.Get(i)); + } + + // repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"]; + { + size_t data_size = 0; + unsigned int count = static_cast(this->_internal_style_size());for (unsigned int i = 0; i < count; i++) { + data_size += ::_pbi::WireFormatLite::EnumSize( + this->_internal_style(static_cast(i))); + } + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + int cached_size = ::_pbi::ToCachedSize(data_size); + _impl_._style_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // string type = 1 [json_name = "type"]; + if (!this->_internal_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); + } + + // string name_field = 3 [json_name = "nameField"]; + if (!this->_internal_name_field().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name_field()); + } + + // string plural = 5 [json_name = "plural"]; + if (!this->_internal_plural().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_plural()); + } + + // string singular = 6 [json_name = "singular"]; + if (!this->_internal_singular().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_singular()); + } + + // .google.api.ResourceDescriptor.History history = 4 [json_name = "history"]; + if (this->_internal_history() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_history()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceDescriptor::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ResourceDescriptor::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceDescriptor::GetClassData() const { return &_class_data_; } + + +void ResourceDescriptor::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.ResourceDescriptor) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.pattern_.MergeFrom(from._impl_.pattern_); + _this->_impl_.style_.MergeFrom(from._impl_.style_); + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } + if (!from._internal_name_field().empty()) { + _this->_internal_set_name_field(from._internal_name_field()); + } + if (!from._internal_plural().empty()) { + _this->_internal_set_plural(from._internal_plural()); + } + if (!from._internal_singular().empty()) { + _this->_internal_set_singular(from._internal_singular()); + } + if (from._internal_history() != 0) { + _this->_internal_set_history(from._internal_history()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ResourceDescriptor::CopyFrom(const ResourceDescriptor& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.ResourceDescriptor) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResourceDescriptor::IsInitialized() const { + return true; +} + +void ResourceDescriptor::InternalSwap(ResourceDescriptor* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.pattern_.InternalSwap(&other->_impl_.pattern_); + _impl_.style_.InternalSwap(&other->_impl_.style_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.type_, lhs_arena, + &other->_impl_.type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_field_, lhs_arena, + &other->_impl_.name_field_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.plural_, lhs_arena, + &other->_impl_.plural_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.singular_, lhs_arena, + &other->_impl_.singular_, rhs_arena + ); + swap(_impl_.history_, other->_impl_.history_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ResourceDescriptor::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fresource_2eproto_getter, &descriptor_table_google_2fapi_2fresource_2eproto_once, + file_level_metadata_google_2fapi_2fresource_2eproto[0]); +} + +// =================================================================== + +class ResourceReference::_Internal { + public: +}; + +ResourceReference::ResourceReference(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.ResourceReference) +} +ResourceReference::ResourceReference(const ResourceReference& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ResourceReference* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.type_){} + , decltype(_impl_.child_type_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_type().empty()) { + _this->_impl_.type_.Set(from._internal_type(), + _this->GetArenaForAllocation()); + } + _impl_.child_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.child_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_child_type().empty()) { + _this->_impl_.child_type_.Set(from._internal_child_type(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:google.api.ResourceReference) +} + +inline void ResourceReference::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.type_){} + , decltype(_impl_.child_type_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.child_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.child_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ResourceReference::~ResourceReference() { + // @@protoc_insertion_point(destructor:google.api.ResourceReference) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ResourceReference::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.type_.Destroy(); + _impl_.child_type_.Destroy(); +} + +void ResourceReference::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ResourceReference::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.ResourceReference) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.type_.ClearToEmpty(); + _impl_.child_type_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResourceReference::_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 type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.ResourceReference.type")); + } else + goto handle_unusual; + continue; + // string child_type = 2 [json_name = "childType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_child_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.ResourceReference.child_type")); + } 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* ResourceReference::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.ResourceReference) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string type = 1 [json_name = "type"]; + if (!this->_internal_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.ResourceReference.type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_type(), target); + } + + // string child_type = 2 [json_name = "childType"]; + if (!this->_internal_child_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_child_type().data(), static_cast(this->_internal_child_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.ResourceReference.child_type"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_child_type(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.ResourceReference) + return target; +} + +size_t ResourceReference::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.ResourceReference) + 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 type = 1 [json_name = "type"]; + if (!this->_internal_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); + } + + // string child_type = 2 [json_name = "childType"]; + if (!this->_internal_child_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_child_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceReference::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ResourceReference::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceReference::GetClassData() const { return &_class_data_; } + + +void ResourceReference::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.ResourceReference) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } + if (!from._internal_child_type().empty()) { + _this->_internal_set_child_type(from._internal_child_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ResourceReference::CopyFrom(const ResourceReference& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.ResourceReference) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResourceReference::IsInitialized() const { + return true; +} + +void ResourceReference::InternalSwap(ResourceReference* 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( + &_impl_.type_, lhs_arena, + &other->_impl_.type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.child_type_, lhs_arena, + &other->_impl_.child_type_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ResourceReference::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fresource_2eproto_getter, &descriptor_table_google_2fapi_2fresource_2eproto_once, + file_level_metadata_google_2fapi_2fresource_2eproto[1]); +} +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::ResourceReference >, 11, false> + resource_reference(kResourceReferenceFieldNumber, ::google::api::ResourceReference::default_instance(), nullptr); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FileOptions, + ::PROTOBUF_NAMESPACE_ID::internal::RepeatedMessageTypeTraits< ::google::api::ResourceDescriptor >, 11, false> + resource_definition(kResourceDefinitionFieldNumber, ::google::api::ResourceDescriptor::default_instance(), nullptr); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MessageOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::ResourceDescriptor >, 11, false> + resource(kResourceFieldNumber, ::google::api::ResourceDescriptor::default_instance(), nullptr); + +// @@protoc_insertion_point(namespace_scope) +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::ResourceDescriptor* +Arena::CreateMaybeMessage< ::google::api::ResourceDescriptor >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::ResourceDescriptor >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::ResourceReference* +Arena::CreateMaybeMessage< ::google::api::ResourceReference >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::ResourceReference >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/google/api/resource.pb.h b/src/gen/google/api/resource.pb.h new file mode 100644 index 000000000..93d39ed5f --- /dev/null +++ b/src/gen/google/api/resource.pb.h @@ -0,0 +1,1100 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/resource.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fresource_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fresource_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fresource_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2fapi_2fresource_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fresource_2eproto; +namespace google { +namespace api { +class ResourceDescriptor; +struct ResourceDescriptorDefaultTypeInternal; +extern ResourceDescriptorDefaultTypeInternal _ResourceDescriptor_default_instance_; +class ResourceReference; +struct ResourceReferenceDefaultTypeInternal; +extern ResourceReferenceDefaultTypeInternal _ResourceReference_default_instance_; +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::ResourceDescriptor* Arena::CreateMaybeMessage<::google::api::ResourceDescriptor>(Arena*); +template<> ::google::api::ResourceReference* Arena::CreateMaybeMessage<::google::api::ResourceReference>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace api { + +enum ResourceDescriptor_History : int { + ResourceDescriptor_History_HISTORY_UNSPECIFIED = 0, + ResourceDescriptor_History_ORIGINALLY_SINGLE_PATTERN = 1, + ResourceDescriptor_History_FUTURE_MULTI_PATTERN = 2, + ResourceDescriptor_History_ResourceDescriptor_History_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + ResourceDescriptor_History_ResourceDescriptor_History_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool ResourceDescriptor_History_IsValid(int value); +constexpr ResourceDescriptor_History ResourceDescriptor_History_History_MIN = ResourceDescriptor_History_HISTORY_UNSPECIFIED; +constexpr ResourceDescriptor_History ResourceDescriptor_History_History_MAX = ResourceDescriptor_History_FUTURE_MULTI_PATTERN; +constexpr int ResourceDescriptor_History_History_ARRAYSIZE = ResourceDescriptor_History_History_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ResourceDescriptor_History_descriptor(); +template +inline const std::string& ResourceDescriptor_History_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ResourceDescriptor_History_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ResourceDescriptor_History_descriptor(), enum_t_value); +} +inline bool ResourceDescriptor_History_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ResourceDescriptor_History* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + ResourceDescriptor_History_descriptor(), name, value); +} +enum ResourceDescriptor_Style : int { + ResourceDescriptor_Style_STYLE_UNSPECIFIED = 0, + ResourceDescriptor_Style_DECLARATIVE_FRIENDLY = 1, + ResourceDescriptor_Style_ResourceDescriptor_Style_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + ResourceDescriptor_Style_ResourceDescriptor_Style_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool ResourceDescriptor_Style_IsValid(int value); +constexpr ResourceDescriptor_Style ResourceDescriptor_Style_Style_MIN = ResourceDescriptor_Style_STYLE_UNSPECIFIED; +constexpr ResourceDescriptor_Style ResourceDescriptor_Style_Style_MAX = ResourceDescriptor_Style_DECLARATIVE_FRIENDLY; +constexpr int ResourceDescriptor_Style_Style_ARRAYSIZE = ResourceDescriptor_Style_Style_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ResourceDescriptor_Style_descriptor(); +template +inline const std::string& ResourceDescriptor_Style_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ResourceDescriptor_Style_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ResourceDescriptor_Style_descriptor(), enum_t_value); +} +inline bool ResourceDescriptor_Style_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ResourceDescriptor_Style* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + ResourceDescriptor_Style_descriptor(), name, value); +} +// =================================================================== + +class ResourceDescriptor final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.ResourceDescriptor) */ { + public: + inline ResourceDescriptor() : ResourceDescriptor(nullptr) {} + ~ResourceDescriptor() override; + explicit PROTOBUF_CONSTEXPR ResourceDescriptor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ResourceDescriptor(const ResourceDescriptor& from); + ResourceDescriptor(ResourceDescriptor&& from) noexcept + : ResourceDescriptor() { + *this = ::std::move(from); + } + + inline ResourceDescriptor& operator=(const ResourceDescriptor& from) { + CopyFrom(from); + return *this; + } + inline ResourceDescriptor& operator=(ResourceDescriptor&& 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 ResourceDescriptor& default_instance() { + return *internal_default_instance(); + } + static inline const ResourceDescriptor* internal_default_instance() { + return reinterpret_cast( + &_ResourceDescriptor_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(ResourceDescriptor& a, ResourceDescriptor& b) { + a.Swap(&b); + } + inline void Swap(ResourceDescriptor* 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(ResourceDescriptor* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ResourceDescriptor* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResourceDescriptor& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ResourceDescriptor& from) { + ResourceDescriptor::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ResourceDescriptor* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.ResourceDescriptor"; + } + protected: + explicit ResourceDescriptor(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef ResourceDescriptor_History History; + static constexpr History HISTORY_UNSPECIFIED = + ResourceDescriptor_History_HISTORY_UNSPECIFIED; + static constexpr History ORIGINALLY_SINGLE_PATTERN = + ResourceDescriptor_History_ORIGINALLY_SINGLE_PATTERN; + static constexpr History FUTURE_MULTI_PATTERN = + ResourceDescriptor_History_FUTURE_MULTI_PATTERN; + static inline bool History_IsValid(int value) { + return ResourceDescriptor_History_IsValid(value); + } + static constexpr History History_MIN = + ResourceDescriptor_History_History_MIN; + static constexpr History History_MAX = + ResourceDescriptor_History_History_MAX; + static constexpr int History_ARRAYSIZE = + ResourceDescriptor_History_History_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + History_descriptor() { + return ResourceDescriptor_History_descriptor(); + } + template + static inline const std::string& History_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function History_Name."); + return ResourceDescriptor_History_Name(enum_t_value); + } + static inline bool History_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + History* value) { + return ResourceDescriptor_History_Parse(name, value); + } + + typedef ResourceDescriptor_Style Style; + static constexpr Style STYLE_UNSPECIFIED = + ResourceDescriptor_Style_STYLE_UNSPECIFIED; + static constexpr Style DECLARATIVE_FRIENDLY = + ResourceDescriptor_Style_DECLARATIVE_FRIENDLY; + static inline bool Style_IsValid(int value) { + return ResourceDescriptor_Style_IsValid(value); + } + static constexpr Style Style_MIN = + ResourceDescriptor_Style_Style_MIN; + static constexpr Style Style_MAX = + ResourceDescriptor_Style_Style_MAX; + static constexpr int Style_ARRAYSIZE = + ResourceDescriptor_Style_Style_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + Style_descriptor() { + return ResourceDescriptor_Style_descriptor(); + } + template + static inline const std::string& Style_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Style_Name."); + return ResourceDescriptor_Style_Name(enum_t_value); + } + static inline bool Style_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + Style* value) { + return ResourceDescriptor_Style_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kPatternFieldNumber = 2, + kStyleFieldNumber = 10, + kTypeFieldNumber = 1, + kNameFieldFieldNumber = 3, + kPluralFieldNumber = 5, + kSingularFieldNumber = 6, + kHistoryFieldNumber = 4, + }; + // repeated string pattern = 2 [json_name = "pattern"]; + int pattern_size() const; + private: + int _internal_pattern_size() const; + public: + void clear_pattern(); + const std::string& pattern(int index) const; + std::string* mutable_pattern(int index); + void set_pattern(int index, const std::string& value); + void set_pattern(int index, std::string&& value); + void set_pattern(int index, const char* value); + void set_pattern(int index, const char* value, size_t size); + std::string* add_pattern(); + void add_pattern(const std::string& value); + void add_pattern(std::string&& value); + void add_pattern(const char* value); + void add_pattern(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& pattern() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_pattern(); + private: + const std::string& _internal_pattern(int index) const; + std::string* _internal_add_pattern(); + public: + + // repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"]; + int style_size() const; + private: + int _internal_style_size() const; + public: + void clear_style(); + private: + ::google::api::ResourceDescriptor_Style _internal_style(int index) const; + void _internal_add_style(::google::api::ResourceDescriptor_Style value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_style(); + public: + ::google::api::ResourceDescriptor_Style style(int index) const; + void set_style(int index, ::google::api::ResourceDescriptor_Style value); + void add_style(::google::api::ResourceDescriptor_Style value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField& style() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_style(); + + // string type = 1 [json_name = "type"]; + void clear_type(); + const std::string& type() const; + template + void set_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_type(); + PROTOBUF_NODISCARD std::string* release_type(); + void set_allocated_type(std::string* type); + private: + const std::string& _internal_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); + std::string* _internal_mutable_type(); + public: + + // string name_field = 3 [json_name = "nameField"]; + void clear_name_field(); + const std::string& name_field() const; + template + void set_name_field(ArgT0&& arg0, ArgT... args); + std::string* mutable_name_field(); + PROTOBUF_NODISCARD std::string* release_name_field(); + void set_allocated_name_field(std::string* name_field); + private: + const std::string& _internal_name_field() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name_field(const std::string& value); + std::string* _internal_mutable_name_field(); + public: + + // string plural = 5 [json_name = "plural"]; + void clear_plural(); + const std::string& plural() const; + template + void set_plural(ArgT0&& arg0, ArgT... args); + std::string* mutable_plural(); + PROTOBUF_NODISCARD std::string* release_plural(); + void set_allocated_plural(std::string* plural); + private: + const std::string& _internal_plural() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_plural(const std::string& value); + std::string* _internal_mutable_plural(); + public: + + // string singular = 6 [json_name = "singular"]; + void clear_singular(); + const std::string& singular() const; + template + void set_singular(ArgT0&& arg0, ArgT... args); + std::string* mutable_singular(); + PROTOBUF_NODISCARD std::string* release_singular(); + void set_allocated_singular(std::string* singular); + private: + const std::string& _internal_singular() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_singular(const std::string& value); + std::string* _internal_mutable_singular(); + public: + + // .google.api.ResourceDescriptor.History history = 4 [json_name = "history"]; + void clear_history(); + ::google::api::ResourceDescriptor_History history() const; + void set_history(::google::api::ResourceDescriptor_History value); + private: + ::google::api::ResourceDescriptor_History _internal_history() const; + void _internal_set_history(::google::api::ResourceDescriptor_History value); + public: + + // @@protoc_insertion_point(class_scope:google.api.ResourceDescriptor) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField pattern_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField style_; + mutable std::atomic _style_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_field_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr plural_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr singular_; + int history_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fresource_2eproto; +}; +// ------------------------------------------------------------------- + +class ResourceReference final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.ResourceReference) */ { + public: + inline ResourceReference() : ResourceReference(nullptr) {} + ~ResourceReference() override; + explicit PROTOBUF_CONSTEXPR ResourceReference(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ResourceReference(const ResourceReference& from); + ResourceReference(ResourceReference&& from) noexcept + : ResourceReference() { + *this = ::std::move(from); + } + + inline ResourceReference& operator=(const ResourceReference& from) { + CopyFrom(from); + return *this; + } + inline ResourceReference& operator=(ResourceReference&& 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 ResourceReference& default_instance() { + return *internal_default_instance(); + } + static inline const ResourceReference* internal_default_instance() { + return reinterpret_cast( + &_ResourceReference_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(ResourceReference& a, ResourceReference& b) { + a.Swap(&b); + } + inline void Swap(ResourceReference* 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(ResourceReference* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ResourceReference* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResourceReference& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ResourceReference& from) { + ResourceReference::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ResourceReference* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.ResourceReference"; + } + protected: + explicit ResourceReference(::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 { + kTypeFieldNumber = 1, + kChildTypeFieldNumber = 2, + }; + // string type = 1 [json_name = "type"]; + void clear_type(); + const std::string& type() const; + template + void set_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_type(); + PROTOBUF_NODISCARD std::string* release_type(); + void set_allocated_type(std::string* type); + private: + const std::string& _internal_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); + std::string* _internal_mutable_type(); + public: + + // string child_type = 2 [json_name = "childType"]; + void clear_child_type(); + const std::string& child_type() const; + template + void set_child_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_child_type(); + PROTOBUF_NODISCARD std::string* release_child_type(); + void set_allocated_child_type(std::string* child_type); + private: + const std::string& _internal_child_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_child_type(const std::string& value); + std::string* _internal_mutable_child_type(); + public: + + // @@protoc_insertion_point(class_scope:google.api.ResourceReference) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr child_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fresource_2eproto; +}; +// =================================================================== + +static const int kResourceReferenceFieldNumber = 1055; +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::ResourceReference >, 11, false > + resource_reference; +static const int kResourceDefinitionFieldNumber = 1053; +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FileOptions, + ::PROTOBUF_NAMESPACE_ID::internal::RepeatedMessageTypeTraits< ::google::api::ResourceDescriptor >, 11, false > + resource_definition; +static const int kResourceFieldNumber = 1053; +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MessageOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::ResourceDescriptor >, 11, false > + resource; + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ResourceDescriptor + +// string type = 1 [json_name = "type"]; +inline void ResourceDescriptor::clear_type() { + _impl_.type_.ClearToEmpty(); +} +inline const std::string& ResourceDescriptor::type() const { + // @@protoc_insertion_point(field_get:google.api.ResourceDescriptor.type) + return _internal_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceDescriptor::set_type(ArgT0&& arg0, ArgT... args) { + + _impl_.type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.type) +} +inline std::string* ResourceDescriptor::mutable_type() { + std::string* _s = _internal_mutable_type(); + // @@protoc_insertion_point(field_mutable:google.api.ResourceDescriptor.type) + return _s; +} +inline const std::string& ResourceDescriptor::_internal_type() const { + return _impl_.type_.Get(); +} +inline void ResourceDescriptor::_internal_set_type(const std::string& value) { + + _impl_.type_.Set(value, GetArenaForAllocation()); +} +inline std::string* ResourceDescriptor::_internal_mutable_type() { + + return _impl_.type_.Mutable(GetArenaForAllocation()); +} +inline std::string* ResourceDescriptor::release_type() { + // @@protoc_insertion_point(field_release:google.api.ResourceDescriptor.type) + return _impl_.type_.Release(); +} +inline void ResourceDescriptor::set_allocated_type(std::string* type) { + if (type != nullptr) { + + } else { + + } + _impl_.type_.SetAllocated(type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.type_.IsDefault()) { + _impl_.type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.ResourceDescriptor.type) +} + +// repeated string pattern = 2 [json_name = "pattern"]; +inline int ResourceDescriptor::_internal_pattern_size() const { + return _impl_.pattern_.size(); +} +inline int ResourceDescriptor::pattern_size() const { + return _internal_pattern_size(); +} +inline void ResourceDescriptor::clear_pattern() { + _impl_.pattern_.Clear(); +} +inline std::string* ResourceDescriptor::add_pattern() { + std::string* _s = _internal_add_pattern(); + // @@protoc_insertion_point(field_add_mutable:google.api.ResourceDescriptor.pattern) + return _s; +} +inline const std::string& ResourceDescriptor::_internal_pattern(int index) const { + return _impl_.pattern_.Get(index); +} +inline const std::string& ResourceDescriptor::pattern(int index) const { + // @@protoc_insertion_point(field_get:google.api.ResourceDescriptor.pattern) + return _internal_pattern(index); +} +inline std::string* ResourceDescriptor::mutable_pattern(int index) { + // @@protoc_insertion_point(field_mutable:google.api.ResourceDescriptor.pattern) + return _impl_.pattern_.Mutable(index); +} +inline void ResourceDescriptor::set_pattern(int index, const std::string& value) { + _impl_.pattern_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.pattern) +} +inline void ResourceDescriptor::set_pattern(int index, std::string&& value) { + _impl_.pattern_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.pattern) +} +inline void ResourceDescriptor::set_pattern(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.pattern_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:google.api.ResourceDescriptor.pattern) +} +inline void ResourceDescriptor::set_pattern(int index, const char* value, size_t size) { + _impl_.pattern_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:google.api.ResourceDescriptor.pattern) +} +inline std::string* ResourceDescriptor::_internal_add_pattern() { + return _impl_.pattern_.Add(); +} +inline void ResourceDescriptor::add_pattern(const std::string& value) { + _impl_.pattern_.Add()->assign(value); + // @@protoc_insertion_point(field_add:google.api.ResourceDescriptor.pattern) +} +inline void ResourceDescriptor::add_pattern(std::string&& value) { + _impl_.pattern_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:google.api.ResourceDescriptor.pattern) +} +inline void ResourceDescriptor::add_pattern(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.pattern_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:google.api.ResourceDescriptor.pattern) +} +inline void ResourceDescriptor::add_pattern(const char* value, size_t size) { + _impl_.pattern_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:google.api.ResourceDescriptor.pattern) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +ResourceDescriptor::pattern() const { + // @@protoc_insertion_point(field_list:google.api.ResourceDescriptor.pattern) + return _impl_.pattern_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +ResourceDescriptor::mutable_pattern() { + // @@protoc_insertion_point(field_mutable_list:google.api.ResourceDescriptor.pattern) + return &_impl_.pattern_; +} + +// string name_field = 3 [json_name = "nameField"]; +inline void ResourceDescriptor::clear_name_field() { + _impl_.name_field_.ClearToEmpty(); +} +inline const std::string& ResourceDescriptor::name_field() const { + // @@protoc_insertion_point(field_get:google.api.ResourceDescriptor.name_field) + return _internal_name_field(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceDescriptor::set_name_field(ArgT0&& arg0, ArgT... args) { + + _impl_.name_field_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.name_field) +} +inline std::string* ResourceDescriptor::mutable_name_field() { + std::string* _s = _internal_mutable_name_field(); + // @@protoc_insertion_point(field_mutable:google.api.ResourceDescriptor.name_field) + return _s; +} +inline const std::string& ResourceDescriptor::_internal_name_field() const { + return _impl_.name_field_.Get(); +} +inline void ResourceDescriptor::_internal_set_name_field(const std::string& value) { + + _impl_.name_field_.Set(value, GetArenaForAllocation()); +} +inline std::string* ResourceDescriptor::_internal_mutable_name_field() { + + return _impl_.name_field_.Mutable(GetArenaForAllocation()); +} +inline std::string* ResourceDescriptor::release_name_field() { + // @@protoc_insertion_point(field_release:google.api.ResourceDescriptor.name_field) + return _impl_.name_field_.Release(); +} +inline void ResourceDescriptor::set_allocated_name_field(std::string* name_field) { + if (name_field != nullptr) { + + } else { + + } + _impl_.name_field_.SetAllocated(name_field, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_field_.IsDefault()) { + _impl_.name_field_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.ResourceDescriptor.name_field) +} + +// .google.api.ResourceDescriptor.History history = 4 [json_name = "history"]; +inline void ResourceDescriptor::clear_history() { + _impl_.history_ = 0; +} +inline ::google::api::ResourceDescriptor_History ResourceDescriptor::_internal_history() const { + return static_cast< ::google::api::ResourceDescriptor_History >(_impl_.history_); +} +inline ::google::api::ResourceDescriptor_History ResourceDescriptor::history() const { + // @@protoc_insertion_point(field_get:google.api.ResourceDescriptor.history) + return _internal_history(); +} +inline void ResourceDescriptor::_internal_set_history(::google::api::ResourceDescriptor_History value) { + + _impl_.history_ = value; +} +inline void ResourceDescriptor::set_history(::google::api::ResourceDescriptor_History value) { + _internal_set_history(value); + // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.history) +} + +// string plural = 5 [json_name = "plural"]; +inline void ResourceDescriptor::clear_plural() { + _impl_.plural_.ClearToEmpty(); +} +inline const std::string& ResourceDescriptor::plural() const { + // @@protoc_insertion_point(field_get:google.api.ResourceDescriptor.plural) + return _internal_plural(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceDescriptor::set_plural(ArgT0&& arg0, ArgT... args) { + + _impl_.plural_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.plural) +} +inline std::string* ResourceDescriptor::mutable_plural() { + std::string* _s = _internal_mutable_plural(); + // @@protoc_insertion_point(field_mutable:google.api.ResourceDescriptor.plural) + return _s; +} +inline const std::string& ResourceDescriptor::_internal_plural() const { + return _impl_.plural_.Get(); +} +inline void ResourceDescriptor::_internal_set_plural(const std::string& value) { + + _impl_.plural_.Set(value, GetArenaForAllocation()); +} +inline std::string* ResourceDescriptor::_internal_mutable_plural() { + + return _impl_.plural_.Mutable(GetArenaForAllocation()); +} +inline std::string* ResourceDescriptor::release_plural() { + // @@protoc_insertion_point(field_release:google.api.ResourceDescriptor.plural) + return _impl_.plural_.Release(); +} +inline void ResourceDescriptor::set_allocated_plural(std::string* plural) { + if (plural != nullptr) { + + } else { + + } + _impl_.plural_.SetAllocated(plural, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.plural_.IsDefault()) { + _impl_.plural_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.ResourceDescriptor.plural) +} + +// string singular = 6 [json_name = "singular"]; +inline void ResourceDescriptor::clear_singular() { + _impl_.singular_.ClearToEmpty(); +} +inline const std::string& ResourceDescriptor::singular() const { + // @@protoc_insertion_point(field_get:google.api.ResourceDescriptor.singular) + return _internal_singular(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceDescriptor::set_singular(ArgT0&& arg0, ArgT... args) { + + _impl_.singular_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.singular) +} +inline std::string* ResourceDescriptor::mutable_singular() { + std::string* _s = _internal_mutable_singular(); + // @@protoc_insertion_point(field_mutable:google.api.ResourceDescriptor.singular) + return _s; +} +inline const std::string& ResourceDescriptor::_internal_singular() const { + return _impl_.singular_.Get(); +} +inline void ResourceDescriptor::_internal_set_singular(const std::string& value) { + + _impl_.singular_.Set(value, GetArenaForAllocation()); +} +inline std::string* ResourceDescriptor::_internal_mutable_singular() { + + return _impl_.singular_.Mutable(GetArenaForAllocation()); +} +inline std::string* ResourceDescriptor::release_singular() { + // @@protoc_insertion_point(field_release:google.api.ResourceDescriptor.singular) + return _impl_.singular_.Release(); +} +inline void ResourceDescriptor::set_allocated_singular(std::string* singular) { + if (singular != nullptr) { + + } else { + + } + _impl_.singular_.SetAllocated(singular, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.singular_.IsDefault()) { + _impl_.singular_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.ResourceDescriptor.singular) +} + +// repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"]; +inline int ResourceDescriptor::_internal_style_size() const { + return _impl_.style_.size(); +} +inline int ResourceDescriptor::style_size() const { + return _internal_style_size(); +} +inline void ResourceDescriptor::clear_style() { + _impl_.style_.Clear(); +} +inline ::google::api::ResourceDescriptor_Style ResourceDescriptor::_internal_style(int index) const { + return static_cast< ::google::api::ResourceDescriptor_Style >(_impl_.style_.Get(index)); +} +inline ::google::api::ResourceDescriptor_Style ResourceDescriptor::style(int index) const { + // @@protoc_insertion_point(field_get:google.api.ResourceDescriptor.style) + return _internal_style(index); +} +inline void ResourceDescriptor::set_style(int index, ::google::api::ResourceDescriptor_Style value) { + _impl_.style_.Set(index, value); + // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.style) +} +inline void ResourceDescriptor::_internal_add_style(::google::api::ResourceDescriptor_Style value) { + _impl_.style_.Add(value); +} +inline void ResourceDescriptor::add_style(::google::api::ResourceDescriptor_Style value) { + _internal_add_style(value); + // @@protoc_insertion_point(field_add:google.api.ResourceDescriptor.style) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& +ResourceDescriptor::style() const { + // @@protoc_insertion_point(field_list:google.api.ResourceDescriptor.style) + return _impl_.style_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +ResourceDescriptor::_internal_mutable_style() { + return &_impl_.style_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +ResourceDescriptor::mutable_style() { + // @@protoc_insertion_point(field_mutable_list:google.api.ResourceDescriptor.style) + return _internal_mutable_style(); +} + +// ------------------------------------------------------------------- + +// ResourceReference + +// string type = 1 [json_name = "type"]; +inline void ResourceReference::clear_type() { + _impl_.type_.ClearToEmpty(); +} +inline const std::string& ResourceReference::type() const { + // @@protoc_insertion_point(field_get:google.api.ResourceReference.type) + return _internal_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceReference::set_type(ArgT0&& arg0, ArgT... args) { + + _impl_.type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.ResourceReference.type) +} +inline std::string* ResourceReference::mutable_type() { + std::string* _s = _internal_mutable_type(); + // @@protoc_insertion_point(field_mutable:google.api.ResourceReference.type) + return _s; +} +inline const std::string& ResourceReference::_internal_type() const { + return _impl_.type_.Get(); +} +inline void ResourceReference::_internal_set_type(const std::string& value) { + + _impl_.type_.Set(value, GetArenaForAllocation()); +} +inline std::string* ResourceReference::_internal_mutable_type() { + + return _impl_.type_.Mutable(GetArenaForAllocation()); +} +inline std::string* ResourceReference::release_type() { + // @@protoc_insertion_point(field_release:google.api.ResourceReference.type) + return _impl_.type_.Release(); +} +inline void ResourceReference::set_allocated_type(std::string* type) { + if (type != nullptr) { + + } else { + + } + _impl_.type_.SetAllocated(type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.type_.IsDefault()) { + _impl_.type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.ResourceReference.type) +} + +// string child_type = 2 [json_name = "childType"]; +inline void ResourceReference::clear_child_type() { + _impl_.child_type_.ClearToEmpty(); +} +inline const std::string& ResourceReference::child_type() const { + // @@protoc_insertion_point(field_get:google.api.ResourceReference.child_type) + return _internal_child_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceReference::set_child_type(ArgT0&& arg0, ArgT... args) { + + _impl_.child_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.ResourceReference.child_type) +} +inline std::string* ResourceReference::mutable_child_type() { + std::string* _s = _internal_mutable_child_type(); + // @@protoc_insertion_point(field_mutable:google.api.ResourceReference.child_type) + return _s; +} +inline const std::string& ResourceReference::_internal_child_type() const { + return _impl_.child_type_.Get(); +} +inline void ResourceReference::_internal_set_child_type(const std::string& value) { + + _impl_.child_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* ResourceReference::_internal_mutable_child_type() { + + return _impl_.child_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* ResourceReference::release_child_type() { + // @@protoc_insertion_point(field_release:google.api.ResourceReference.child_type) + return _impl_.child_type_.Release(); +} +inline void ResourceReference::set_allocated_child_type(std::string* child_type) { + if (child_type != nullptr) { + + } else { + + } + _impl_.child_type_.SetAllocated(child_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.child_type_.IsDefault()) { + _impl_.child_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.ResourceReference.child_type) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace api +} // namespace google + +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::google::api::ResourceDescriptor_History> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::google::api::ResourceDescriptor_History>() { + return ::google::api::ResourceDescriptor_History_descriptor(); +} +template <> struct is_proto_enum< ::google::api::ResourceDescriptor_Style> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::google::api::ResourceDescriptor_Style>() { + return ::google::api::ResourceDescriptor_Style_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fresource_2eproto diff --git a/src/gen/google/api/visibility.grpc.pb.cc b/src/gen/google/api/visibility.grpc.pb.cc new file mode 100644 index 000000000..7a3572417 --- /dev/null +++ b/src/gen/google/api/visibility.grpc.pb.cc @@ -0,0 +1,27 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/visibility.proto + +#include "google/api/visibility.pb.h" +#include "google/api/visibility.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace api { + +} // namespace google +} // namespace api + diff --git a/src/gen/google/api/visibility.grpc.pb.h b/src/gen/google/api/visibility.grpc.pb.h new file mode 100644 index 000000000..7ff5d0eb7 --- /dev/null +++ b/src/gen/google/api/visibility.grpc.pb.h @@ -0,0 +1,50 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/visibility.proto +// Original file comments: +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_google_2fapi_2fvisibility_2eproto__INCLUDED +#define GRPC_google_2fapi_2fvisibility_2eproto__INCLUDED + +#include "google/api/visibility.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace api { + +} // namespace api +} // namespace google + + +#endif // GRPC_google_2fapi_2fvisibility_2eproto__INCLUDED diff --git a/src/gen/google/api/visibility.pb.cc b/src/gen/google/api/visibility.pb.cc new file mode 100644 index 000000000..dc4703950 --- /dev/null +++ b/src/gen/google/api/visibility.pb.cc @@ -0,0 +1,604 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/visibility.proto + +#include "google/api/visibility.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace api { +PROTOBUF_CONSTEXPR Visibility::Visibility( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.rules_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct VisibilityDefaultTypeInternal { + PROTOBUF_CONSTEXPR VisibilityDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~VisibilityDefaultTypeInternal() {} + union { + Visibility _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VisibilityDefaultTypeInternal _Visibility_default_instance_; +PROTOBUF_CONSTEXPR VisibilityRule::VisibilityRule( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.selector_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.restriction_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct VisibilityRuleDefaultTypeInternal { + PROTOBUF_CONSTEXPR VisibilityRuleDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~VisibilityRuleDefaultTypeInternal() {} + union { + VisibilityRule _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VisibilityRuleDefaultTypeInternal _VisibilityRule_default_instance_; +} // namespace api +} // namespace google +static ::_pb::Metadata file_level_metadata_google_2fapi_2fvisibility_2eproto[2]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fvisibility_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fvisibility_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fvisibility_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::Visibility, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::Visibility, _impl_.rules_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::VisibilityRule, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::VisibilityRule, _impl_.selector_), + PROTOBUF_FIELD_OFFSET(::google::api::VisibilityRule, _impl_.restriction_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::Visibility)}, + { 7, -1, -1, sizeof(::google::api::VisibilityRule)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::google::api::_Visibility_default_instance_._instance, + &::google::api::_VisibilityRule_default_instance_._instance, +}; + +const char descriptor_table_protodef_google_2fapi_2fvisibility_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\033google/api/visibility.proto\022\ngoogle.ap" + "i\032 google/protobuf/descriptor.proto\">\n\nV" + "isibility\0220\n\005rules\030\001 \003(\0132\032.google.api.Vi" + "sibilityRuleR\005rules\"N\n\016VisibilityRule\022\032\n" + "\010selector\030\001 \001(\tR\010selector\022 \n\013restriction" + "\030\002 \001(\tR\013restriction:d\n\017enum_visibility\022\034" + ".google.protobuf.EnumOptions\030\257\312\274\" \001(\0132\032." + "google.api.VisibilityRuleR\016enumVisibilit" + "y:k\n\020value_visibility\022!.google.protobuf." + "EnumValueOptions\030\257\312\274\" \001(\0132\032.google.api.V" + "isibilityRuleR\017valueVisibility:g\n\020field_" + "visibility\022\035.google.protobuf.FieldOption" + "s\030\257\312\274\" \001(\0132\032.google.api.VisibilityRuleR\017" + "fieldVisibility:m\n\022message_visibility\022\037." + "google.protobuf.MessageOptions\030\257\312\274\" \001(\0132" + "\032.google.api.VisibilityRuleR\021messageVisi" + "bility:j\n\021method_visibility\022\036.google.pro" + "tobuf.MethodOptions\030\257\312\274\" \001(\0132\032.google.ap" + "i.VisibilityRuleR\020methodVisibility:e\n\016ap" + "i_visibility\022\037.google.protobuf.ServiceOp" + "tions\030\257\312\274\" \001(\0132\032.google.api.VisibilityRu" + "leR\rapiVisibilityBn\n\016com.google.apiB\017Vis" + "ibilityProtoP\001Z\?google.golang.org/genpro" + "to/googleapis/api/visibility;visibility\370" + "\001\001\242\002\004GAPIb\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fvisibility_2eproto_deps[1] = { + &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, +}; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fvisibility_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fvisibility_2eproto = { + false, false, 977, descriptor_table_protodef_google_2fapi_2fvisibility_2eproto, + "google/api/visibility.proto", + &descriptor_table_google_2fapi_2fvisibility_2eproto_once, descriptor_table_google_2fapi_2fvisibility_2eproto_deps, 1, 2, + schemas, file_default_instances, TableStruct_google_2fapi_2fvisibility_2eproto::offsets, + file_level_metadata_google_2fapi_2fvisibility_2eproto, file_level_enum_descriptors_google_2fapi_2fvisibility_2eproto, + file_level_service_descriptors_google_2fapi_2fvisibility_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fvisibility_2eproto_getter() { + return &descriptor_table_google_2fapi_2fvisibility_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fvisibility_2eproto(&descriptor_table_google_2fapi_2fvisibility_2eproto); +namespace google { +namespace api { + +// =================================================================== + +class Visibility::_Internal { + public: +}; + +Visibility::Visibility(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.Visibility) +} +Visibility::Visibility(const Visibility& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Visibility* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.rules_){from._impl_.rules_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:google.api.Visibility) +} + +inline void Visibility::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.rules_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Visibility::~Visibility() { + // @@protoc_insertion_point(destructor:google.api.Visibility) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Visibility::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.rules_.~RepeatedPtrField(); +} + +void Visibility::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Visibility::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.Visibility) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.rules_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Visibility::_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) { + // repeated .google.api.VisibilityRule rules = 1 [json_name = "rules"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_rules(), 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* Visibility::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.Visibility) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.api.VisibilityRule rules = 1 [json_name = "rules"]; + for (unsigned i = 0, + n = static_cast(this->_internal_rules_size()); i < n; i++) { + const auto& repfield = this->_internal_rules(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.Visibility) + return target; +} + +size_t Visibility::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.Visibility) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.VisibilityRule rules = 1 [json_name = "rules"]; + total_size += 1UL * this->_internal_rules_size(); + for (const auto& msg : this->_impl_.rules_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Visibility::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Visibility::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Visibility::GetClassData() const { return &_class_data_; } + + +void Visibility::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.Visibility) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.rules_.MergeFrom(from._impl_.rules_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Visibility::CopyFrom(const Visibility& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.Visibility) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Visibility::IsInitialized() const { + return true; +} + +void Visibility::InternalSwap(Visibility* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.rules_.InternalSwap(&other->_impl_.rules_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Visibility::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fvisibility_2eproto_getter, &descriptor_table_google_2fapi_2fvisibility_2eproto_once, + file_level_metadata_google_2fapi_2fvisibility_2eproto[0]); +} + +// =================================================================== + +class VisibilityRule::_Internal { + public: +}; + +VisibilityRule::VisibilityRule(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.api.VisibilityRule) +} +VisibilityRule::VisibilityRule(const VisibilityRule& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + VisibilityRule* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.selector_){} + , decltype(_impl_.restriction_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.selector_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.selector_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_selector().empty()) { + _this->_impl_.selector_.Set(from._internal_selector(), + _this->GetArenaForAllocation()); + } + _impl_.restriction_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.restriction_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_restriction().empty()) { + _this->_impl_.restriction_.Set(from._internal_restriction(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:google.api.VisibilityRule) +} + +inline void VisibilityRule::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.selector_){} + , decltype(_impl_.restriction_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.selector_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.selector_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.restriction_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.restriction_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +VisibilityRule::~VisibilityRule() { + // @@protoc_insertion_point(destructor:google.api.VisibilityRule) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void VisibilityRule::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.selector_.Destroy(); + _impl_.restriction_.Destroy(); +} + +void VisibilityRule::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void VisibilityRule::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.VisibilityRule) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.selector_.ClearToEmpty(); + _impl_.restriction_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* VisibilityRule::_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 selector = 1 [json_name = "selector"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_selector(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.VisibilityRule.selector")); + } else + goto handle_unusual; + continue; + // string restriction = 2 [json_name = "restriction"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_restriction(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.VisibilityRule.restriction")); + } 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* VisibilityRule::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.VisibilityRule) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string selector = 1 [json_name = "selector"]; + if (!this->_internal_selector().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_selector().data(), static_cast(this->_internal_selector().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.VisibilityRule.selector"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_selector(), target); + } + + // string restriction = 2 [json_name = "restriction"]; + if (!this->_internal_restriction().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_restriction().data(), static_cast(this->_internal_restriction().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.VisibilityRule.restriction"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_restriction(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.VisibilityRule) + return target; +} + +size_t VisibilityRule::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.VisibilityRule) + 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 selector = 1 [json_name = "selector"]; + if (!this->_internal_selector().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_selector()); + } + + // string restriction = 2 [json_name = "restriction"]; + if (!this->_internal_restriction().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_restriction()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData VisibilityRule::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + VisibilityRule::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VisibilityRule::GetClassData() const { return &_class_data_; } + + +void VisibilityRule::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.VisibilityRule) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_selector().empty()) { + _this->_internal_set_selector(from._internal_selector()); + } + if (!from._internal_restriction().empty()) { + _this->_internal_set_restriction(from._internal_restriction()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void VisibilityRule::CopyFrom(const VisibilityRule& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.VisibilityRule) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool VisibilityRule::IsInitialized() const { + return true; +} + +void VisibilityRule::InternalSwap(VisibilityRule* 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( + &_impl_.selector_, lhs_arena, + &other->_impl_.selector_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.restriction_, lhs_arena, + &other->_impl_.restriction_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata VisibilityRule::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fvisibility_2eproto_getter, &descriptor_table_google_2fapi_2fvisibility_2eproto_once, + file_level_metadata_google_2fapi_2fvisibility_2eproto[1]); +} +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::EnumOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false> + enum_visibility(kEnumVisibilityFieldNumber, ::google::api::VisibilityRule::default_instance(), nullptr); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::EnumValueOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false> + value_visibility(kValueVisibilityFieldNumber, ::google::api::VisibilityRule::default_instance(), nullptr); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false> + field_visibility(kFieldVisibilityFieldNumber, ::google::api::VisibilityRule::default_instance(), nullptr); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MessageOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false> + message_visibility(kMessageVisibilityFieldNumber, ::google::api::VisibilityRule::default_instance(), nullptr); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false> + method_visibility(kMethodVisibilityFieldNumber, ::google::api::VisibilityRule::default_instance(), nullptr); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::ServiceOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false> + api_visibility(kApiVisibilityFieldNumber, ::google::api::VisibilityRule::default_instance(), nullptr); + +// @@protoc_insertion_point(namespace_scope) +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::Visibility* +Arena::CreateMaybeMessage< ::google::api::Visibility >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::Visibility >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::VisibilityRule* +Arena::CreateMaybeMessage< ::google::api::VisibilityRule >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::VisibilityRule >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/google/api/visibility.pb.h b/src/gen/google/api/visibility.pb.h new file mode 100644 index 000000000..1bb01e5e8 --- /dev/null +++ b/src/gen/google/api/visibility.pb.h @@ -0,0 +1,584 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/visibility.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fvisibility_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fvisibility_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fvisibility_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2fapi_2fvisibility_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fvisibility_2eproto; +namespace google { +namespace api { +class Visibility; +struct VisibilityDefaultTypeInternal; +extern VisibilityDefaultTypeInternal _Visibility_default_instance_; +class VisibilityRule; +struct VisibilityRuleDefaultTypeInternal; +extern VisibilityRuleDefaultTypeInternal _VisibilityRule_default_instance_; +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::Visibility* Arena::CreateMaybeMessage<::google::api::Visibility>(Arena*); +template<> ::google::api::VisibilityRule* Arena::CreateMaybeMessage<::google::api::VisibilityRule>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace api { + +// =================================================================== + +class Visibility final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.Visibility) */ { + public: + inline Visibility() : Visibility(nullptr) {} + ~Visibility() override; + explicit PROTOBUF_CONSTEXPR Visibility(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Visibility(const Visibility& from); + Visibility(Visibility&& from) noexcept + : Visibility() { + *this = ::std::move(from); + } + + inline Visibility& operator=(const Visibility& from) { + CopyFrom(from); + return *this; + } + inline Visibility& operator=(Visibility&& 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 Visibility& default_instance() { + return *internal_default_instance(); + } + static inline const Visibility* internal_default_instance() { + return reinterpret_cast( + &_Visibility_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(Visibility& a, Visibility& b) { + a.Swap(&b); + } + inline void Swap(Visibility* 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(Visibility* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Visibility* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Visibility& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Visibility& from) { + Visibility::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Visibility* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.Visibility"; + } + protected: + explicit Visibility(::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 { + kRulesFieldNumber = 1, + }; + // repeated .google.api.VisibilityRule rules = 1 [json_name = "rules"]; + int rules_size() const; + private: + int _internal_rules_size() const; + public: + void clear_rules(); + ::google::api::VisibilityRule* mutable_rules(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::VisibilityRule >* + mutable_rules(); + private: + const ::google::api::VisibilityRule& _internal_rules(int index) const; + ::google::api::VisibilityRule* _internal_add_rules(); + public: + const ::google::api::VisibilityRule& rules(int index) const; + ::google::api::VisibilityRule* add_rules(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::VisibilityRule >& + rules() const; + + // @@protoc_insertion_point(class_scope:google.api.Visibility) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::VisibilityRule > rules_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fvisibility_2eproto; +}; +// ------------------------------------------------------------------- + +class VisibilityRule final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.VisibilityRule) */ { + public: + inline VisibilityRule() : VisibilityRule(nullptr) {} + ~VisibilityRule() override; + explicit PROTOBUF_CONSTEXPR VisibilityRule(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + VisibilityRule(const VisibilityRule& from); + VisibilityRule(VisibilityRule&& from) noexcept + : VisibilityRule() { + *this = ::std::move(from); + } + + inline VisibilityRule& operator=(const VisibilityRule& from) { + CopyFrom(from); + return *this; + } + inline VisibilityRule& operator=(VisibilityRule&& 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 VisibilityRule& default_instance() { + return *internal_default_instance(); + } + static inline const VisibilityRule* internal_default_instance() { + return reinterpret_cast( + &_VisibilityRule_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(VisibilityRule& a, VisibilityRule& b) { + a.Swap(&b); + } + inline void Swap(VisibilityRule* 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(VisibilityRule* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + VisibilityRule* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const VisibilityRule& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const VisibilityRule& from) { + VisibilityRule::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(VisibilityRule* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.VisibilityRule"; + } + protected: + explicit VisibilityRule(::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 { + kSelectorFieldNumber = 1, + kRestrictionFieldNumber = 2, + }; + // string selector = 1 [json_name = "selector"]; + void clear_selector(); + const std::string& selector() const; + template + void set_selector(ArgT0&& arg0, ArgT... args); + std::string* mutable_selector(); + PROTOBUF_NODISCARD std::string* release_selector(); + void set_allocated_selector(std::string* selector); + private: + const std::string& _internal_selector() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_selector(const std::string& value); + std::string* _internal_mutable_selector(); + public: + + // string restriction = 2 [json_name = "restriction"]; + void clear_restriction(); + const std::string& restriction() const; + template + void set_restriction(ArgT0&& arg0, ArgT... args); + std::string* mutable_restriction(); + PROTOBUF_NODISCARD std::string* release_restriction(); + void set_allocated_restriction(std::string* restriction); + private: + const std::string& _internal_restriction() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_restriction(const std::string& value); + std::string* _internal_mutable_restriction(); + public: + + // @@protoc_insertion_point(class_scope:google.api.VisibilityRule) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr selector_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr restriction_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2fvisibility_2eproto; +}; +// =================================================================== + +static const int kEnumVisibilityFieldNumber = 72295727; +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::EnumOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false > + enum_visibility; +static const int kValueVisibilityFieldNumber = 72295727; +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::EnumValueOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false > + value_visibility; +static const int kFieldVisibilityFieldNumber = 72295727; +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false > + field_visibility; +static const int kMessageVisibilityFieldNumber = 72295727; +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MessageOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false > + message_visibility; +static const int kMethodVisibilityFieldNumber = 72295727; +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false > + method_visibility; +static const int kApiVisibilityFieldNumber = 72295727; +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::ServiceOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false > + api_visibility; + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Visibility + +// repeated .google.api.VisibilityRule rules = 1 [json_name = "rules"]; +inline int Visibility::_internal_rules_size() const { + return _impl_.rules_.size(); +} +inline int Visibility::rules_size() const { + return _internal_rules_size(); +} +inline void Visibility::clear_rules() { + _impl_.rules_.Clear(); +} +inline ::google::api::VisibilityRule* Visibility::mutable_rules(int index) { + // @@protoc_insertion_point(field_mutable:google.api.Visibility.rules) + return _impl_.rules_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::VisibilityRule >* +Visibility::mutable_rules() { + // @@protoc_insertion_point(field_mutable_list:google.api.Visibility.rules) + return &_impl_.rules_; +} +inline const ::google::api::VisibilityRule& Visibility::_internal_rules(int index) const { + return _impl_.rules_.Get(index); +} +inline const ::google::api::VisibilityRule& Visibility::rules(int index) const { + // @@protoc_insertion_point(field_get:google.api.Visibility.rules) + return _internal_rules(index); +} +inline ::google::api::VisibilityRule* Visibility::_internal_add_rules() { + return _impl_.rules_.Add(); +} +inline ::google::api::VisibilityRule* Visibility::add_rules() { + ::google::api::VisibilityRule* _add = _internal_add_rules(); + // @@protoc_insertion_point(field_add:google.api.Visibility.rules) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::VisibilityRule >& +Visibility::rules() const { + // @@protoc_insertion_point(field_list:google.api.Visibility.rules) + return _impl_.rules_; +} + +// ------------------------------------------------------------------- + +// VisibilityRule + +// string selector = 1 [json_name = "selector"]; +inline void VisibilityRule::clear_selector() { + _impl_.selector_.ClearToEmpty(); +} +inline const std::string& VisibilityRule::selector() const { + // @@protoc_insertion_point(field_get:google.api.VisibilityRule.selector) + return _internal_selector(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void VisibilityRule::set_selector(ArgT0&& arg0, ArgT... args) { + + _impl_.selector_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.VisibilityRule.selector) +} +inline std::string* VisibilityRule::mutable_selector() { + std::string* _s = _internal_mutable_selector(); + // @@protoc_insertion_point(field_mutable:google.api.VisibilityRule.selector) + return _s; +} +inline const std::string& VisibilityRule::_internal_selector() const { + return _impl_.selector_.Get(); +} +inline void VisibilityRule::_internal_set_selector(const std::string& value) { + + _impl_.selector_.Set(value, GetArenaForAllocation()); +} +inline std::string* VisibilityRule::_internal_mutable_selector() { + + return _impl_.selector_.Mutable(GetArenaForAllocation()); +} +inline std::string* VisibilityRule::release_selector() { + // @@protoc_insertion_point(field_release:google.api.VisibilityRule.selector) + return _impl_.selector_.Release(); +} +inline void VisibilityRule::set_allocated_selector(std::string* selector) { + if (selector != nullptr) { + + } else { + + } + _impl_.selector_.SetAllocated(selector, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.selector_.IsDefault()) { + _impl_.selector_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.VisibilityRule.selector) +} + +// string restriction = 2 [json_name = "restriction"]; +inline void VisibilityRule::clear_restriction() { + _impl_.restriction_.ClearToEmpty(); +} +inline const std::string& VisibilityRule::restriction() const { + // @@protoc_insertion_point(field_get:google.api.VisibilityRule.restriction) + return _internal_restriction(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void VisibilityRule::set_restriction(ArgT0&& arg0, ArgT... args) { + + _impl_.restriction_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.VisibilityRule.restriction) +} +inline std::string* VisibilityRule::mutable_restriction() { + std::string* _s = _internal_mutable_restriction(); + // @@protoc_insertion_point(field_mutable:google.api.VisibilityRule.restriction) + return _s; +} +inline const std::string& VisibilityRule::_internal_restriction() const { + return _impl_.restriction_.Get(); +} +inline void VisibilityRule::_internal_set_restriction(const std::string& value) { + + _impl_.restriction_.Set(value, GetArenaForAllocation()); +} +inline std::string* VisibilityRule::_internal_mutable_restriction() { + + return _impl_.restriction_.Mutable(GetArenaForAllocation()); +} +inline std::string* VisibilityRule::release_restriction() { + // @@protoc_insertion_point(field_release:google.api.VisibilityRule.restriction) + return _impl_.restriction_.Release(); +} +inline void VisibilityRule::set_allocated_restriction(std::string* restriction) { + if (restriction != nullptr) { + + } else { + + } + _impl_.restriction_.SetAllocated(restriction, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.restriction_.IsDefault()) { + _impl_.restriction_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.VisibilityRule.restriction) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace api +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fvisibility_2eproto diff --git a/src/gen/google/rpc/code.grpc.pb.cc b/src/gen/google/rpc/code.grpc.pb.cc new file mode 100644 index 000000000..eef6d0c65 --- /dev/null +++ b/src/gen/google/rpc/code.grpc.pb.cc @@ -0,0 +1,27 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/rpc/code.proto + +#include "google/rpc/code.pb.h" +#include "google/rpc/code.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace rpc { + +} // namespace google +} // namespace rpc + diff --git a/src/gen/google/rpc/code.grpc.pb.h b/src/gen/google/rpc/code.grpc.pb.h new file mode 100644 index 000000000..35aab69d5 --- /dev/null +++ b/src/gen/google/rpc/code.grpc.pb.h @@ -0,0 +1,50 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/rpc/code.proto +// Original file comments: +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_google_2frpc_2fcode_2eproto__INCLUDED +#define GRPC_google_2frpc_2fcode_2eproto__INCLUDED + +#include "google/rpc/code.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace rpc { + +} // namespace rpc +} // namespace google + + +#endif // GRPC_google_2frpc_2fcode_2eproto__INCLUDED diff --git a/src/gen/google/rpc/code.pb.cc b/src/gen/google/rpc/code.pb.cc new file mode 100644 index 000000000..95e337cb4 --- /dev/null +++ b/src/gen/google/rpc/code.pb.cc @@ -0,0 +1,101 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/rpc/code.proto + +#include "google/rpc/code.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace rpc { +} // namespace rpc +} // namespace google +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2frpc_2fcode_2eproto[1]; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2frpc_2fcode_2eproto = nullptr; +const uint32_t TableStruct_google_2frpc_2fcode_2eproto::offsets[1] = {}; +static constexpr ::_pbi::MigrationSchema* schemas = nullptr; +static constexpr ::_pb::Message* const* file_default_instances = nullptr; + +const char descriptor_table_protodef_google_2frpc_2fcode_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\025google/rpc/code.proto\022\ngoogle.rpc*\267\002\n\004" + "Code\022\006\n\002OK\020\000\022\r\n\tCANCELLED\020\001\022\013\n\007UNKNOWN\020\002" + "\022\024\n\020INVALID_ARGUMENT\020\003\022\025\n\021DEADLINE_EXCEE" + "DED\020\004\022\r\n\tNOT_FOUND\020\005\022\022\n\016ALREADY_EXISTS\020\006" + "\022\025\n\021PERMISSION_DENIED\020\007\022\023\n\017UNAUTHENTICAT" + "ED\020\020\022\026\n\022RESOURCE_EXHAUSTED\020\010\022\027\n\023FAILED_P" + "RECONDITION\020\t\022\013\n\007ABORTED\020\n\022\020\n\014OUT_OF_RAN" + "GE\020\013\022\021\n\rUNIMPLEMENTED\020\014\022\014\n\010INTERNAL\020\r\022\017\n" + "\013UNAVAILABLE\020\016\022\r\n\tDATA_LOSS\020\017BX\n\016com.goo" + "gle.rpcB\tCodeProtoP\001Z3google.golang.org/" + "genproto/googleapis/rpc/code;code\242\002\003RPCb" + "\006proto3" + ; +static ::_pbi::once_flag descriptor_table_google_2frpc_2fcode_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_google_2frpc_2fcode_2eproto = { + false, false, 447, descriptor_table_protodef_google_2frpc_2fcode_2eproto, + "google/rpc/code.proto", + &descriptor_table_google_2frpc_2fcode_2eproto_once, nullptr, 0, 0, + schemas, file_default_instances, TableStruct_google_2frpc_2fcode_2eproto::offsets, + nullptr, file_level_enum_descriptors_google_2frpc_2fcode_2eproto, + file_level_service_descriptors_google_2frpc_2fcode_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2frpc_2fcode_2eproto_getter() { + return &descriptor_table_google_2frpc_2fcode_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2frpc_2fcode_2eproto(&descriptor_table_google_2frpc_2fcode_2eproto); +namespace google { +namespace rpc { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Code_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2frpc_2fcode_2eproto); + return file_level_enum_descriptors_google_2frpc_2fcode_2eproto[0]; +} +bool Code_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + return true; + default: + return false; + } +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace rpc +} // namespace google +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/google/rpc/code.pb.h b/src/gen/google/rpc/code.pb.h new file mode 100644 index 000000000..2571cfea5 --- /dev/null +++ b/src/gen/google/rpc/code.pb.h @@ -0,0 +1,125 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/rpc/code.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fcode_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fcode_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2frpc_2fcode_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2frpc_2fcode_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2frpc_2fcode_2eproto; +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace rpc { + +enum Code : int { + OK = 0, + CANCELLED = 1, + UNKNOWN = 2, + INVALID_ARGUMENT = 3, + DEADLINE_EXCEEDED = 4, + NOT_FOUND = 5, + ALREADY_EXISTS = 6, + PERMISSION_DENIED = 7, + UNAUTHENTICATED = 16, + RESOURCE_EXHAUSTED = 8, + FAILED_PRECONDITION = 9, + ABORTED = 10, + OUT_OF_RANGE = 11, + UNIMPLEMENTED = 12, + INTERNAL = 13, + UNAVAILABLE = 14, + DATA_LOSS = 15, + Code_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + Code_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool Code_IsValid(int value); +constexpr Code Code_MIN = OK; +constexpr Code Code_MAX = UNAUTHENTICATED; +constexpr int Code_ARRAYSIZE = Code_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Code_descriptor(); +template +inline const std::string& Code_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Code_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + Code_descriptor(), enum_t_value); +} +inline bool Code_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Code* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + Code_descriptor(), name, value); +} +// =================================================================== + + +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace rpc +} // namespace google + +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::google::rpc::Code> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::google::rpc::Code>() { + return ::google::rpc::Code_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fcode_2eproto diff --git a/src/gen/google/rpc/context/attribute_context.grpc.pb.cc b/src/gen/google/rpc/context/attribute_context.grpc.pb.cc new file mode 100644 index 000000000..cfcb31dcc --- /dev/null +++ b/src/gen/google/rpc/context/attribute_context.grpc.pb.cc @@ -0,0 +1,29 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/rpc/context/attribute_context.proto + +#include "google/rpc/context/attribute_context.pb.h" +#include "google/rpc/context/attribute_context.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace rpc { +namespace context { + +} // namespace google +} // namespace rpc +} // namespace context + diff --git a/src/gen/google/rpc/context/attribute_context.grpc.pb.h b/src/gen/google/rpc/context/attribute_context.grpc.pb.h new file mode 100644 index 000000000..bbf758258 --- /dev/null +++ b/src/gen/google/rpc/context/attribute_context.grpc.pb.h @@ -0,0 +1,52 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/rpc/context/attribute_context.proto +// Original file comments: +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto__INCLUDED +#define GRPC_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto__INCLUDED + +#include "google/rpc/context/attribute_context.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace rpc { +namespace context { + +} // namespace context +} // namespace rpc +} // namespace google + + +#endif // GRPC_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto__INCLUDED diff --git a/src/gen/google/rpc/context/attribute_context.pb.cc b/src/gen/google/rpc/context/attribute_context.pb.cc new file mode 100644 index 000000000..933a52cd3 --- /dev/null +++ b/src/gen/google/rpc/context/attribute_context.pb.cc @@ -0,0 +1,4128 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/rpc/context/attribute_context.proto + +#include "google/rpc/context/attribute_context.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace rpc { +namespace context { +PROTOBUF_CONSTEXPR AttributeContext_Peer_LabelsEntry_DoNotUse::AttributeContext_Peer_LabelsEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct AttributeContext_Peer_LabelsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AttributeContext_Peer_LabelsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AttributeContext_Peer_LabelsEntry_DoNotUseDefaultTypeInternal() {} + union { + AttributeContext_Peer_LabelsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_Peer_LabelsEntry_DoNotUseDefaultTypeInternal _AttributeContext_Peer_LabelsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext_Peer::AttributeContext_Peer( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.labels_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.ip_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.principal_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.region_code_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.port_)*/int64_t{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct AttributeContext_PeerDefaultTypeInternal { + PROTOBUF_CONSTEXPR AttributeContext_PeerDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AttributeContext_PeerDefaultTypeInternal() {} + union { + AttributeContext_Peer _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_PeerDefaultTypeInternal _AttributeContext_Peer_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext_Api::AttributeContext_Api( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.service_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.operation_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.protocol_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct AttributeContext_ApiDefaultTypeInternal { + PROTOBUF_CONSTEXPR AttributeContext_ApiDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AttributeContext_ApiDefaultTypeInternal() {} + union { + AttributeContext_Api _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_ApiDefaultTypeInternal _AttributeContext_Api_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext_Auth::AttributeContext_Auth( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.audiences_)*/{} + , /*decltype(_impl_.access_levels_)*/{} + , /*decltype(_impl_.principal_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.presenter_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.claims_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct AttributeContext_AuthDefaultTypeInternal { + PROTOBUF_CONSTEXPR AttributeContext_AuthDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AttributeContext_AuthDefaultTypeInternal() {} + union { + AttributeContext_Auth _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_AuthDefaultTypeInternal _AttributeContext_Auth_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext_Request_HeadersEntry_DoNotUse::AttributeContext_Request_HeadersEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct AttributeContext_Request_HeadersEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AttributeContext_Request_HeadersEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AttributeContext_Request_HeadersEntry_DoNotUseDefaultTypeInternal() {} + union { + AttributeContext_Request_HeadersEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_Request_HeadersEntry_DoNotUseDefaultTypeInternal _AttributeContext_Request_HeadersEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext_Request::AttributeContext_Request( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.headers_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.method_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.host_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.scheme_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.query_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.protocol_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.reason_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.time_)*/nullptr + , /*decltype(_impl_.auth_)*/nullptr + , /*decltype(_impl_.size_)*/int64_t{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct AttributeContext_RequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR AttributeContext_RequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AttributeContext_RequestDefaultTypeInternal() {} + union { + AttributeContext_Request _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_RequestDefaultTypeInternal _AttributeContext_Request_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext_Response_HeadersEntry_DoNotUse::AttributeContext_Response_HeadersEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct AttributeContext_Response_HeadersEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AttributeContext_Response_HeadersEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AttributeContext_Response_HeadersEntry_DoNotUseDefaultTypeInternal() {} + union { + AttributeContext_Response_HeadersEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_Response_HeadersEntry_DoNotUseDefaultTypeInternal _AttributeContext_Response_HeadersEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext_Response::AttributeContext_Response( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.headers_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.time_)*/nullptr + , /*decltype(_impl_.backend_latency_)*/nullptr + , /*decltype(_impl_.code_)*/int64_t{0} + , /*decltype(_impl_.size_)*/int64_t{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct AttributeContext_ResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AttributeContext_ResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AttributeContext_ResponseDefaultTypeInternal() {} + union { + AttributeContext_Response _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_ResponseDefaultTypeInternal _AttributeContext_Response_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext_Resource_LabelsEntry_DoNotUse::AttributeContext_Resource_LabelsEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct AttributeContext_Resource_LabelsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AttributeContext_Resource_LabelsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AttributeContext_Resource_LabelsEntry_DoNotUseDefaultTypeInternal() {} + union { + AttributeContext_Resource_LabelsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_Resource_LabelsEntry_DoNotUseDefaultTypeInternal _AttributeContext_Resource_LabelsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext_Resource_AnnotationsEntry_DoNotUse::AttributeContext_Resource_AnnotationsEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct AttributeContext_Resource_AnnotationsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AttributeContext_Resource_AnnotationsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AttributeContext_Resource_AnnotationsEntry_DoNotUseDefaultTypeInternal() {} + union { + AttributeContext_Resource_AnnotationsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_Resource_AnnotationsEntry_DoNotUseDefaultTypeInternal _AttributeContext_Resource_AnnotationsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext_Resource::AttributeContext_Resource( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.labels_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.annotations_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.service_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.uid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.display_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.etag_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.location_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.create_time_)*/nullptr + , /*decltype(_impl_.update_time_)*/nullptr + , /*decltype(_impl_.delete_time_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct AttributeContext_ResourceDefaultTypeInternal { + PROTOBUF_CONSTEXPR AttributeContext_ResourceDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AttributeContext_ResourceDefaultTypeInternal() {} + union { + AttributeContext_Resource _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_ResourceDefaultTypeInternal _AttributeContext_Resource_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext::AttributeContext( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.extensions_)*/{} + , /*decltype(_impl_.source_)*/nullptr + , /*decltype(_impl_.destination_)*/nullptr + , /*decltype(_impl_.request_)*/nullptr + , /*decltype(_impl_.response_)*/nullptr + , /*decltype(_impl_.resource_)*/nullptr + , /*decltype(_impl_.api_)*/nullptr + , /*decltype(_impl_.origin_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct AttributeContextDefaultTypeInternal { + PROTOBUF_CONSTEXPR AttributeContextDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AttributeContextDefaultTypeInternal() {} + union { + AttributeContext _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContextDefaultTypeInternal _AttributeContext_default_instance_; +} // namespace context +} // namespace rpc +} // namespace google +static ::_pb::Metadata file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[12]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto = nullptr; + +const uint32_t TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer, _impl_.ip_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer, _impl_.port_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer, _impl_.labels_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer, _impl_.principal_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer, _impl_.region_code_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Api, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Api, _impl_.service_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Api, _impl_.operation_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Api, _impl_.protocol_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Api, _impl_.version_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Auth, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Auth, _impl_.principal_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Auth, _impl_.audiences_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Auth, _impl_.presenter_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Auth, _impl_.claims_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Auth, _impl_.access_levels_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.method_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.headers_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.path_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.host_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.scheme_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.query_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.time_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.size_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.protocol_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.reason_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.auth_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response, _impl_.code_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response, _impl_.size_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response, _impl_.headers_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response, _impl_.time_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response, _impl_.backend_latency_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.service_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.labels_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.uid_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.annotations_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.display_name_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.create_time_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.update_time_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.delete_time_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.etag_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.location_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, _impl_.origin_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, _impl_.source_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, _impl_.destination_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, _impl_.request_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, _impl_.response_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, _impl_.resource_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, _impl_.api_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, _impl_.extensions_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, 8, -1, sizeof(::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse)}, + { 10, -1, -1, sizeof(::google::rpc::context::AttributeContext_Peer)}, + { 21, -1, -1, sizeof(::google::rpc::context::AttributeContext_Api)}, + { 31, -1, -1, sizeof(::google::rpc::context::AttributeContext_Auth)}, + { 42, 50, -1, sizeof(::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse)}, + { 52, -1, -1, sizeof(::google::rpc::context::AttributeContext_Request)}, + { 70, 78, -1, sizeof(::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse)}, + { 80, -1, -1, sizeof(::google::rpc::context::AttributeContext_Response)}, + { 91, 99, -1, sizeof(::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse)}, + { 101, 109, -1, sizeof(::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse)}, + { 111, -1, -1, sizeof(::google::rpc::context::AttributeContext_Resource)}, + { 129, -1, -1, sizeof(::google::rpc::context::AttributeContext)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::google::rpc::context::_AttributeContext_Peer_LabelsEntry_DoNotUse_default_instance_._instance, + &::google::rpc::context::_AttributeContext_Peer_default_instance_._instance, + &::google::rpc::context::_AttributeContext_Api_default_instance_._instance, + &::google::rpc::context::_AttributeContext_Auth_default_instance_._instance, + &::google::rpc::context::_AttributeContext_Request_HeadersEntry_DoNotUse_default_instance_._instance, + &::google::rpc::context::_AttributeContext_Request_default_instance_._instance, + &::google::rpc::context::_AttributeContext_Response_HeadersEntry_DoNotUse_default_instance_._instance, + &::google::rpc::context::_AttributeContext_Response_default_instance_._instance, + &::google::rpc::context::_AttributeContext_Resource_LabelsEntry_DoNotUse_default_instance_._instance, + &::google::rpc::context::_AttributeContext_Resource_AnnotationsEntry_DoNotUse_default_instance_._instance, + &::google::rpc::context::_AttributeContext_Resource_default_instance_._instance, + &::google::rpc::context::_AttributeContext_default_instance_._instance, +}; + +const char descriptor_table_protodef_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n*google/rpc/context/attribute_context.p" + "roto\022\022google.rpc.context\032\031google/protobu" + "f/any.proto\032\036google/protobuf/duration.pr" + "oto\032\034google/protobuf/struct.proto\032\037googl" + "e/protobuf/timestamp.proto\"\201\024\n\020Attribute" + "Context\022A\n\006origin\030\007 \001(\0132).google.rpc.con" + "text.AttributeContext.PeerR\006origin\022A\n\006so" + "urce\030\001 \001(\0132).google.rpc.context.Attribut" + "eContext.PeerR\006source\022K\n\013destination\030\002 \001" + "(\0132).google.rpc.context.AttributeContext" + ".PeerR\013destination\022F\n\007request\030\003 \001(\0132,.go" + "ogle.rpc.context.AttributeContext.Reques" + "tR\007request\022I\n\010response\030\004 \001(\0132-.google.rp" + "c.context.AttributeContext.ResponseR\010res" + "ponse\022I\n\010resource\030\005 \001(\0132-.google.rpc.con" + "text.AttributeContext.ResourceR\010resource" + "\022:\n\003api\030\006 \001(\0132(.google.rpc.context.Attri" + "buteContext.ApiR\003api\0224\n\nextensions\030\010 \003(\013" + "2\024.google.protobuf.AnyR\nextensions\032\363\001\n\004P" + "eer\022\016\n\002ip\030\001 \001(\tR\002ip\022\022\n\004port\030\002 \001(\003R\004port\022" + "M\n\006labels\030\006 \003(\01325.google.rpc.context.Att" + "ributeContext.Peer.LabelsEntryR\006labels\022\034" + "\n\tprincipal\030\007 \001(\tR\tprincipal\022\037\n\013region_c" + "ode\030\010 \001(\tR\nregionCode\0329\n\013LabelsEntry\022\020\n\003" + "key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001" + "\032s\n\003Api\022\030\n\007service\030\001 \001(\tR\007service\022\034\n\tope" + "ration\030\002 \001(\tR\toperation\022\032\n\010protocol\030\003 \001(" + "\tR\010protocol\022\030\n\007version\030\004 \001(\tR\007version\032\266\001" + "\n\004Auth\022\034\n\tprincipal\030\001 \001(\tR\tprincipal\022\034\n\t" + "audiences\030\002 \003(\tR\taudiences\022\034\n\tpresenter\030" + "\003 \001(\tR\tpresenter\022/\n\006claims\030\004 \001(\0132\027.googl" + "e.protobuf.StructR\006claims\022#\n\raccess_leve" + "ls\030\005 \003(\tR\014accessLevels\032\317\003\n\007Request\022\016\n\002id" + "\030\001 \001(\tR\002id\022\026\n\006method\030\002 \001(\tR\006method\022S\n\007he" + "aders\030\003 \003(\01329.google.rpc.context.Attribu" + "teContext.Request.HeadersEntryR\007headers\022" + "\022\n\004path\030\004 \001(\tR\004path\022\022\n\004host\030\005 \001(\tR\004host\022" + "\026\n\006scheme\030\006 \001(\tR\006scheme\022\024\n\005query\030\007 \001(\tR\005" + "query\022.\n\004time\030\t \001(\0132\032.google.protobuf.Ti" + "mestampR\004time\022\022\n\004size\030\n \001(\003R\004size\022\032\n\010pro" + "tocol\030\013 \001(\tR\010protocol\022\026\n\006reason\030\014 \001(\tR\006r" + "eason\022=\n\004auth\030\r \001(\0132).google.rpc.context" + ".AttributeContext.AuthR\004auth\032:\n\014HeadersE" + "ntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005v" + "alue:\0028\001\032\270\002\n\010Response\022\022\n\004code\030\001 \001(\003R\004cod" + "e\022\022\n\004size\030\002 \001(\003R\004size\022T\n\007headers\030\003 \003(\0132:" + ".google.rpc.context.AttributeContext.Res" + "ponse.HeadersEntryR\007headers\022.\n\004time\030\004 \001(" + "\0132\032.google.protobuf.TimestampR\004time\022B\n\017b" + "ackend_latency\030\005 \001(\0132\031.google.protobuf.D" + "urationR\016backendLatency\032:\n\014HeadersEntry\022" + "\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:" + "\0028\001\032\230\005\n\010Resource\022\030\n\007service\030\001 \001(\tR\007servi" + "ce\022\022\n\004name\030\002 \001(\tR\004name\022\022\n\004type\030\003 \001(\tR\004ty" + "pe\022Q\n\006labels\030\004 \003(\01329.google.rpc.context." + "AttributeContext.Resource.LabelsEntryR\006l" + "abels\022\020\n\003uid\030\005 \001(\tR\003uid\022`\n\013annotations\030\006" + " \003(\0132>.google.rpc.context.AttributeConte" + "xt.Resource.AnnotationsEntryR\013annotation" + "s\022!\n\014display_name\030\007 \001(\tR\013displayName\022;\n\013" + "create_time\030\010 \001(\0132\032.google.protobuf.Time" + "stampR\ncreateTime\022;\n\013update_time\030\t \001(\0132\032" + ".google.protobuf.TimestampR\nupdateTime\022;" + "\n\013delete_time\030\n \001(\0132\032.google.protobuf.Ti" + "mestampR\ndeleteTime\022\022\n\004etag\030\013 \001(\tR\004etag\022" + "\032\n\010location\030\014 \001(\tR\010location\0329\n\013LabelsEnt" + "ry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005val" + "ue:\0028\001\032>\n\020AnnotationsEntry\022\020\n\003key\030\001 \001(\tR" + "\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001B\213\001\n\026com.g" + "oogle.rpc.contextB\025AttributeContextProto" + "P\001ZUgoogle.golang.org/genproto/googleapi" + "s/rpc/context/attribute_context;attribut" + "e_context\370\001\001b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_deps[4] = { + &::descriptor_table_google_2fprotobuf_2fany_2eproto, + &::descriptor_table_google_2fprotobuf_2fduration_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, +}; +static ::_pbi::once_flag descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto = { + false, false, 2900, descriptor_table_protodef_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto, + "google/rpc/context/attribute_context.proto", + &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_deps, 4, 12, + schemas, file_default_instances, TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto::offsets, + file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto, file_level_enum_descriptors_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto, + file_level_service_descriptors_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter() { + return &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto(&descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto); +namespace google { +namespace rpc { +namespace context { + +// =================================================================== + +AttributeContext_Peer_LabelsEntry_DoNotUse::AttributeContext_Peer_LabelsEntry_DoNotUse() {} +AttributeContext_Peer_LabelsEntry_DoNotUse::AttributeContext_Peer_LabelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void AttributeContext_Peer_LabelsEntry_DoNotUse::MergeFrom(const AttributeContext_Peer_LabelsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Peer_LabelsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, + file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[0]); +} + +// =================================================================== + +class AttributeContext_Peer::_Internal { + public: +}; + +AttributeContext_Peer::AttributeContext_Peer(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &AttributeContext_Peer::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:google.rpc.context.AttributeContext.Peer) +} +AttributeContext_Peer::AttributeContext_Peer(const AttributeContext_Peer& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + AttributeContext_Peer* const _this = this; (void)_this; + new (&_impl_) Impl_{ + /*decltype(_impl_.labels_)*/{} + , decltype(_impl_.ip_){} + , decltype(_impl_.principal_){} + , decltype(_impl_.region_code_){} + , decltype(_impl_.port_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.labels_.MergeFrom(from._impl_.labels_); + _impl_.ip_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.ip_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_ip().empty()) { + _this->_impl_.ip_.Set(from._internal_ip(), + _this->GetArenaForAllocation()); + } + _impl_.principal_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.principal_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_principal().empty()) { + _this->_impl_.principal_.Set(from._internal_principal(), + _this->GetArenaForAllocation()); + } + _impl_.region_code_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.region_code_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_region_code().empty()) { + _this->_impl_.region_code_.Set(from._internal_region_code(), + _this->GetArenaForAllocation()); + } + _this->_impl_.port_ = from._impl_.port_; + // @@protoc_insertion_point(copy_constructor:google.rpc.context.AttributeContext.Peer) +} + +inline void AttributeContext_Peer::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + /*decltype(_impl_.labels_)*/{::_pbi::ArenaInitialized(), arena} + , decltype(_impl_.ip_){} + , decltype(_impl_.principal_){} + , decltype(_impl_.region_code_){} + , decltype(_impl_.port_){int64_t{0}} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.ip_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.ip_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.principal_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.principal_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.region_code_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.region_code_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +AttributeContext_Peer::~AttributeContext_Peer() { + // @@protoc_insertion_point(destructor:google.rpc.context.AttributeContext.Peer) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void AttributeContext_Peer::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.labels_.Destruct(); + _impl_.labels_.~MapField(); + _impl_.ip_.Destroy(); + _impl_.principal_.Destroy(); + _impl_.region_code_.Destroy(); +} + +void AttributeContext_Peer::ArenaDtor(void* object) { + AttributeContext_Peer* _this = reinterpret_cast< AttributeContext_Peer* >(object); + _this->_impl_.labels_.Destruct(); +} +void AttributeContext_Peer::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void AttributeContext_Peer::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.context.AttributeContext.Peer) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.labels_.Clear(); + _impl_.ip_.ClearToEmpty(); + _impl_.principal_.ClearToEmpty(); + _impl_.region_code_.ClearToEmpty(); + _impl_.port_ = int64_t{0}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AttributeContext_Peer::_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 ip = 1 [json_name = "ip"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_ip(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Peer.ip")); + } else + goto handle_unusual; + continue; + // int64 port = 2 [json_name = "port"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map labels = 6 [json_name = "labels"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.labels_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); + } else + goto handle_unusual; + continue; + // string principal = 7 [json_name = "principal"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_principal(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Peer.principal")); + } else + goto handle_unusual; + continue; + // string region_code = 8 [json_name = "regionCode"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + auto str = _internal_mutable_region_code(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Peer.region_code")); + } 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* AttributeContext_Peer::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.context.AttributeContext.Peer) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string ip = 1 [json_name = "ip"]; + if (!this->_internal_ip().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_ip().data(), static_cast(this->_internal_ip().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Peer.ip"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_ip(), target); + } + + // int64 port = 2 [json_name = "port"]; + if (this->_internal_port() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_port(), target); + } + + // map labels = 6 [json_name = "labels"]; + if (!this->_internal_labels().empty()) { + using MapType = ::_pb::Map; + using WireHelper = AttributeContext_Peer_LabelsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_labels(); + 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, + "google.rpc.context.AttributeContext.Peer.LabelsEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Peer.LabelsEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(6, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(6, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } + } + + // string principal = 7 [json_name = "principal"]; + if (!this->_internal_principal().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_principal().data(), static_cast(this->_internal_principal().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Peer.principal"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_principal(), target); + } + + // string region_code = 8 [json_name = "regionCode"]; + if (!this->_internal_region_code().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_region_code().data(), static_cast(this->_internal_region_code().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Peer.region_code"); + target = stream->WriteStringMaybeAliased( + 8, this->_internal_region_code(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.rpc.context.AttributeContext.Peer) + return target; +} + +size_t AttributeContext_Peer::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.context.AttributeContext.Peer) + 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 labels = 6 [json_name = "labels"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_labels_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_labels().begin(); + it != this->_internal_labels().end(); ++it) { + total_size += AttributeContext_Peer_LabelsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // string ip = 1 [json_name = "ip"]; + if (!this->_internal_ip().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_ip()); + } + + // string principal = 7 [json_name = "principal"]; + if (!this->_internal_principal().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_principal()); + } + + // string region_code = 8 [json_name = "regionCode"]; + if (!this->_internal_region_code().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_region_code()); + } + + // int64 port = 2 [json_name = "port"]; + if (this->_internal_port() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_port()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttributeContext_Peer::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AttributeContext_Peer::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AttributeContext_Peer::GetClassData() const { return &_class_data_; } + + +void AttributeContext_Peer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.context.AttributeContext.Peer) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.labels_.MergeFrom(from._impl_.labels_); + if (!from._internal_ip().empty()) { + _this->_internal_set_ip(from._internal_ip()); + } + if (!from._internal_principal().empty()) { + _this->_internal_set_principal(from._internal_principal()); + } + if (!from._internal_region_code().empty()) { + _this->_internal_set_region_code(from._internal_region_code()); + } + if (from._internal_port() != 0) { + _this->_internal_set_port(from._internal_port()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AttributeContext_Peer::CopyFrom(const AttributeContext_Peer& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.context.AttributeContext.Peer) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AttributeContext_Peer::IsInitialized() const { + return true; +} + +void AttributeContext_Peer::InternalSwap(AttributeContext_Peer* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.labels_.InternalSwap(&other->_impl_.labels_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.ip_, lhs_arena, + &other->_impl_.ip_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.principal_, lhs_arena, + &other->_impl_.principal_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.region_code_, lhs_arena, + &other->_impl_.region_code_, rhs_arena + ); + swap(_impl_.port_, other->_impl_.port_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Peer::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, + file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[1]); +} + +// =================================================================== + +class AttributeContext_Api::_Internal { + public: +}; + +AttributeContext_Api::AttributeContext_Api(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.rpc.context.AttributeContext.Api) +} +AttributeContext_Api::AttributeContext_Api(const AttributeContext_Api& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + AttributeContext_Api* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.service_){} + , decltype(_impl_.operation_){} + , decltype(_impl_.protocol_){} + , decltype(_impl_.version_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.service_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.service_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_service().empty()) { + _this->_impl_.service_.Set(from._internal_service(), + _this->GetArenaForAllocation()); + } + _impl_.operation_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.operation_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_operation().empty()) { + _this->_impl_.operation_.Set(from._internal_operation(), + _this->GetArenaForAllocation()); + } + _impl_.protocol_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.protocol_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_protocol().empty()) { + _this->_impl_.protocol_.Set(from._internal_protocol(), + _this->GetArenaForAllocation()); + } + _impl_.version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_version().empty()) { + _this->_impl_.version_.Set(from._internal_version(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:google.rpc.context.AttributeContext.Api) +} + +inline void AttributeContext_Api::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.service_){} + , decltype(_impl_.operation_){} + , decltype(_impl_.protocol_){} + , decltype(_impl_.version_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.service_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.service_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.operation_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.operation_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.protocol_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.protocol_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +AttributeContext_Api::~AttributeContext_Api() { + // @@protoc_insertion_point(destructor:google.rpc.context.AttributeContext.Api) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void AttributeContext_Api::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.service_.Destroy(); + _impl_.operation_.Destroy(); + _impl_.protocol_.Destroy(); + _impl_.version_.Destroy(); +} + +void AttributeContext_Api::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void AttributeContext_Api::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.context.AttributeContext.Api) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.service_.ClearToEmpty(); + _impl_.operation_.ClearToEmpty(); + _impl_.protocol_.ClearToEmpty(); + _impl_.version_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AttributeContext_Api::_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 service = 1 [json_name = "service"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_service(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Api.service")); + } else + goto handle_unusual; + continue; + // string operation = 2 [json_name = "operation"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_operation(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Api.operation")); + } else + goto handle_unusual; + continue; + // string protocol = 3 [json_name = "protocol"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_protocol(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Api.protocol")); + } else + goto handle_unusual; + continue; + // string version = 4 [json_name = "version"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Api.version")); + } 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* AttributeContext_Api::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.context.AttributeContext.Api) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string service = 1 [json_name = "service"]; + if (!this->_internal_service().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_service().data(), static_cast(this->_internal_service().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Api.service"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_service(), target); + } + + // string operation = 2 [json_name = "operation"]; + if (!this->_internal_operation().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_operation().data(), static_cast(this->_internal_operation().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Api.operation"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_operation(), target); + } + + // string protocol = 3 [json_name = "protocol"]; + if (!this->_internal_protocol().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_protocol().data(), static_cast(this->_internal_protocol().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Api.protocol"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_protocol(), target); + } + + // string version = 4 [json_name = "version"]; + if (!this->_internal_version().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_version().data(), static_cast(this->_internal_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Api.version"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_version(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.rpc.context.AttributeContext.Api) + return target; +} + +size_t AttributeContext_Api::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.context.AttributeContext.Api) + 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 service = 1 [json_name = "service"]; + if (!this->_internal_service().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_service()); + } + + // string operation = 2 [json_name = "operation"]; + if (!this->_internal_operation().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_operation()); + } + + // string protocol = 3 [json_name = "protocol"]; + if (!this->_internal_protocol().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_protocol()); + } + + // string version = 4 [json_name = "version"]; + if (!this->_internal_version().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_version()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttributeContext_Api::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AttributeContext_Api::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AttributeContext_Api::GetClassData() const { return &_class_data_; } + + +void AttributeContext_Api::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.context.AttributeContext.Api) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_service().empty()) { + _this->_internal_set_service(from._internal_service()); + } + if (!from._internal_operation().empty()) { + _this->_internal_set_operation(from._internal_operation()); + } + if (!from._internal_protocol().empty()) { + _this->_internal_set_protocol(from._internal_protocol()); + } + if (!from._internal_version().empty()) { + _this->_internal_set_version(from._internal_version()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AttributeContext_Api::CopyFrom(const AttributeContext_Api& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.context.AttributeContext.Api) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AttributeContext_Api::IsInitialized() const { + return true; +} + +void AttributeContext_Api::InternalSwap(AttributeContext_Api* 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( + &_impl_.service_, lhs_arena, + &other->_impl_.service_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.operation_, lhs_arena, + &other->_impl_.operation_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.protocol_, lhs_arena, + &other->_impl_.protocol_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.version_, lhs_arena, + &other->_impl_.version_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Api::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, + file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[2]); +} + +// =================================================================== + +class AttributeContext_Auth::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& claims(const AttributeContext_Auth* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +AttributeContext_Auth::_Internal::claims(const AttributeContext_Auth* msg) { + return *msg->_impl_.claims_; +} +void AttributeContext_Auth::clear_claims() { + if (GetArenaForAllocation() == nullptr && _impl_.claims_ != nullptr) { + delete _impl_.claims_; + } + _impl_.claims_ = nullptr; +} +AttributeContext_Auth::AttributeContext_Auth(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.rpc.context.AttributeContext.Auth) +} +AttributeContext_Auth::AttributeContext_Auth(const AttributeContext_Auth& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + AttributeContext_Auth* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.audiences_){from._impl_.audiences_} + , decltype(_impl_.access_levels_){from._impl_.access_levels_} + , decltype(_impl_.principal_){} + , decltype(_impl_.presenter_){} + , decltype(_impl_.claims_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.principal_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.principal_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_principal().empty()) { + _this->_impl_.principal_.Set(from._internal_principal(), + _this->GetArenaForAllocation()); + } + _impl_.presenter_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.presenter_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_presenter().empty()) { + _this->_impl_.presenter_.Set(from._internal_presenter(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_claims()) { + _this->_impl_.claims_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.claims_); + } + // @@protoc_insertion_point(copy_constructor:google.rpc.context.AttributeContext.Auth) +} + +inline void AttributeContext_Auth::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.audiences_){arena} + , decltype(_impl_.access_levels_){arena} + , decltype(_impl_.principal_){} + , decltype(_impl_.presenter_){} + , decltype(_impl_.claims_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.principal_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.principal_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.presenter_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.presenter_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +AttributeContext_Auth::~AttributeContext_Auth() { + // @@protoc_insertion_point(destructor:google.rpc.context.AttributeContext.Auth) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void AttributeContext_Auth::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.audiences_.~RepeatedPtrField(); + _impl_.access_levels_.~RepeatedPtrField(); + _impl_.principal_.Destroy(); + _impl_.presenter_.Destroy(); + if (this != internal_default_instance()) delete _impl_.claims_; +} + +void AttributeContext_Auth::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void AttributeContext_Auth::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.context.AttributeContext.Auth) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.audiences_.Clear(); + _impl_.access_levels_.Clear(); + _impl_.principal_.ClearToEmpty(); + _impl_.presenter_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.claims_ != nullptr) { + delete _impl_.claims_; + } + _impl_.claims_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AttributeContext_Auth::_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 principal = 1 [json_name = "principal"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_principal(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Auth.principal")); + } else + goto handle_unusual; + continue; + // repeated string audiences = 2 [json_name = "audiences"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_audiences(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Auth.audiences")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // string presenter = 3 [json_name = "presenter"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_presenter(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Auth.presenter")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct claims = 4 [json_name = "claims"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_claims(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated string access_levels = 5 [json_name = "accessLevels"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_access_levels(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Auth.access_levels")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(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* AttributeContext_Auth::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.context.AttributeContext.Auth) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string principal = 1 [json_name = "principal"]; + if (!this->_internal_principal().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_principal().data(), static_cast(this->_internal_principal().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Auth.principal"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_principal(), target); + } + + // repeated string audiences = 2 [json_name = "audiences"]; + for (int i = 0, n = this->_internal_audiences_size(); i < n; i++) { + const auto& s = this->_internal_audiences(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Auth.audiences"); + target = stream->WriteString(2, s, target); + } + + // string presenter = 3 [json_name = "presenter"]; + if (!this->_internal_presenter().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_presenter().data(), static_cast(this->_internal_presenter().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Auth.presenter"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_presenter(), target); + } + + // .google.protobuf.Struct claims = 4 [json_name = "claims"]; + if (this->_internal_has_claims()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::claims(this), + _Internal::claims(this).GetCachedSize(), target, stream); + } + + // repeated string access_levels = 5 [json_name = "accessLevels"]; + for (int i = 0, n = this->_internal_access_levels_size(); i < n; i++) { + const auto& s = this->_internal_access_levels(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Auth.access_levels"); + target = stream->WriteString(5, s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.rpc.context.AttributeContext.Auth) + return target; +} + +size_t AttributeContext_Auth::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.context.AttributeContext.Auth) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string audiences = 2 [json_name = "audiences"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.audiences_.size()); + for (int i = 0, n = _impl_.audiences_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.audiences_.Get(i)); + } + + // repeated string access_levels = 5 [json_name = "accessLevels"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.access_levels_.size()); + for (int i = 0, n = _impl_.access_levels_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.access_levels_.Get(i)); + } + + // string principal = 1 [json_name = "principal"]; + if (!this->_internal_principal().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_principal()); + } + + // string presenter = 3 [json_name = "presenter"]; + if (!this->_internal_presenter().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_presenter()); + } + + // .google.protobuf.Struct claims = 4 [json_name = "claims"]; + if (this->_internal_has_claims()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.claims_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttributeContext_Auth::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AttributeContext_Auth::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AttributeContext_Auth::GetClassData() const { return &_class_data_; } + + +void AttributeContext_Auth::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.context.AttributeContext.Auth) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.audiences_.MergeFrom(from._impl_.audiences_); + _this->_impl_.access_levels_.MergeFrom(from._impl_.access_levels_); + if (!from._internal_principal().empty()) { + _this->_internal_set_principal(from._internal_principal()); + } + if (!from._internal_presenter().empty()) { + _this->_internal_set_presenter(from._internal_presenter()); + } + if (from._internal_has_claims()) { + _this->_internal_mutable_claims()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_claims()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AttributeContext_Auth::CopyFrom(const AttributeContext_Auth& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.context.AttributeContext.Auth) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AttributeContext_Auth::IsInitialized() const { + return true; +} + +void AttributeContext_Auth::InternalSwap(AttributeContext_Auth* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.audiences_.InternalSwap(&other->_impl_.audiences_); + _impl_.access_levels_.InternalSwap(&other->_impl_.access_levels_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.principal_, lhs_arena, + &other->_impl_.principal_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.presenter_, lhs_arena, + &other->_impl_.presenter_, rhs_arena + ); + swap(_impl_.claims_, other->_impl_.claims_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Auth::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, + file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[3]); +} + +// =================================================================== + +AttributeContext_Request_HeadersEntry_DoNotUse::AttributeContext_Request_HeadersEntry_DoNotUse() {} +AttributeContext_Request_HeadersEntry_DoNotUse::AttributeContext_Request_HeadersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void AttributeContext_Request_HeadersEntry_DoNotUse::MergeFrom(const AttributeContext_Request_HeadersEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Request_HeadersEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, + file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[4]); +} + +// =================================================================== + +class AttributeContext_Request::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& time(const AttributeContext_Request* msg); + static const ::google::rpc::context::AttributeContext_Auth& auth(const AttributeContext_Request* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +AttributeContext_Request::_Internal::time(const AttributeContext_Request* msg) { + return *msg->_impl_.time_; +} +const ::google::rpc::context::AttributeContext_Auth& +AttributeContext_Request::_Internal::auth(const AttributeContext_Request* msg) { + return *msg->_impl_.auth_; +} +void AttributeContext_Request::clear_time() { + if (GetArenaForAllocation() == nullptr && _impl_.time_ != nullptr) { + delete _impl_.time_; + } + _impl_.time_ = nullptr; +} +AttributeContext_Request::AttributeContext_Request(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &AttributeContext_Request::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:google.rpc.context.AttributeContext.Request) +} +AttributeContext_Request::AttributeContext_Request(const AttributeContext_Request& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + AttributeContext_Request* const _this = this; (void)_this; + new (&_impl_) Impl_{ + /*decltype(_impl_.headers_)*/{} + , decltype(_impl_.id_){} + , decltype(_impl_.method_){} + , decltype(_impl_.path_){} + , decltype(_impl_.host_){} + , decltype(_impl_.scheme_){} + , decltype(_impl_.query_){} + , decltype(_impl_.protocol_){} + , decltype(_impl_.reason_){} + , decltype(_impl_.time_){nullptr} + , decltype(_impl_.auth_){nullptr} + , decltype(_impl_.size_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.headers_.MergeFrom(from._impl_.headers_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + _impl_.method_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_method().empty()) { + _this->_impl_.method_.Set(from._internal_method(), + _this->GetArenaForAllocation()); + } + _impl_.path_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.path_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_path().empty()) { + _this->_impl_.path_.Set(from._internal_path(), + _this->GetArenaForAllocation()); + } + _impl_.host_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.host_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_host().empty()) { + _this->_impl_.host_.Set(from._internal_host(), + _this->GetArenaForAllocation()); + } + _impl_.scheme_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.scheme_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_scheme().empty()) { + _this->_impl_.scheme_.Set(from._internal_scheme(), + _this->GetArenaForAllocation()); + } + _impl_.query_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.query_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_query().empty()) { + _this->_impl_.query_.Set(from._internal_query(), + _this->GetArenaForAllocation()); + } + _impl_.protocol_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.protocol_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_protocol().empty()) { + _this->_impl_.protocol_.Set(from._internal_protocol(), + _this->GetArenaForAllocation()); + } + _impl_.reason_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.reason_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_reason().empty()) { + _this->_impl_.reason_.Set(from._internal_reason(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_time()) { + _this->_impl_.time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.time_); + } + if (from._internal_has_auth()) { + _this->_impl_.auth_ = new ::google::rpc::context::AttributeContext_Auth(*from._impl_.auth_); + } + _this->_impl_.size_ = from._impl_.size_; + // @@protoc_insertion_point(copy_constructor:google.rpc.context.AttributeContext.Request) +} + +inline void AttributeContext_Request::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + /*decltype(_impl_.headers_)*/{::_pbi::ArenaInitialized(), arena} + , decltype(_impl_.id_){} + , decltype(_impl_.method_){} + , decltype(_impl_.path_){} + , decltype(_impl_.host_){} + , decltype(_impl_.scheme_){} + , decltype(_impl_.query_){} + , decltype(_impl_.protocol_){} + , decltype(_impl_.reason_){} + , decltype(_impl_.time_){nullptr} + , decltype(_impl_.auth_){nullptr} + , decltype(_impl_.size_){int64_t{0}} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.path_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.path_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.host_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.host_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.scheme_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.scheme_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.query_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.query_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.protocol_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.protocol_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.reason_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.reason_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +AttributeContext_Request::~AttributeContext_Request() { + // @@protoc_insertion_point(destructor:google.rpc.context.AttributeContext.Request) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void AttributeContext_Request::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.headers_.Destruct(); + _impl_.headers_.~MapField(); + _impl_.id_.Destroy(); + _impl_.method_.Destroy(); + _impl_.path_.Destroy(); + _impl_.host_.Destroy(); + _impl_.scheme_.Destroy(); + _impl_.query_.Destroy(); + _impl_.protocol_.Destroy(); + _impl_.reason_.Destroy(); + if (this != internal_default_instance()) delete _impl_.time_; + if (this != internal_default_instance()) delete _impl_.auth_; +} + +void AttributeContext_Request::ArenaDtor(void* object) { + AttributeContext_Request* _this = reinterpret_cast< AttributeContext_Request* >(object); + _this->_impl_.headers_.Destruct(); +} +void AttributeContext_Request::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void AttributeContext_Request::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.context.AttributeContext.Request) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.headers_.Clear(); + _impl_.id_.ClearToEmpty(); + _impl_.method_.ClearToEmpty(); + _impl_.path_.ClearToEmpty(); + _impl_.host_.ClearToEmpty(); + _impl_.scheme_.ClearToEmpty(); + _impl_.query_.ClearToEmpty(); + _impl_.protocol_.ClearToEmpty(); + _impl_.reason_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.time_ != nullptr) { + delete _impl_.time_; + } + _impl_.time_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.auth_ != nullptr) { + delete _impl_.auth_; + } + _impl_.auth_ = nullptr; + _impl_.size_ = int64_t{0}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AttributeContext_Request::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Request.id")); + } else + goto handle_unusual; + continue; + // string method = 2 [json_name = "method"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_method(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Request.method")); + } else + goto handle_unusual; + continue; + // map headers = 3 [json_name = "headers"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.headers_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // string path = 4 [json_name = "path"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_path(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Request.path")); + } else + goto handle_unusual; + continue; + // string host = 5 [json_name = "host"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_host(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Request.host")); + } else + goto handle_unusual; + continue; + // string scheme = 6 [json_name = "scheme"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_scheme(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Request.scheme")); + } else + goto handle_unusual; + continue; + // string query = 7 [json_name = "query"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_query(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Request.query")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp time = 9 [json_name = "time"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_time(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 size = 10 [json_name = "size"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { + _impl_.size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string protocol = 11 [json_name = "protocol"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + auto str = _internal_mutable_protocol(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Request.protocol")); + } else + goto handle_unusual; + continue; + // string reason = 12 [json_name = "reason"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + auto str = _internal_mutable_reason(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Request.reason")); + } else + goto handle_unusual; + continue; + // .google.rpc.context.AttributeContext.Auth auth = 13 [json_name = "auth"]; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { + ptr = ctx->ParseMessage(_internal_mutable_auth(), 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* AttributeContext_Request::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.context.AttributeContext.Request) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Request.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // string method = 2 [json_name = "method"]; + if (!this->_internal_method().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_method().data(), static_cast(this->_internal_method().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Request.method"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_method(), target); + } + + // map headers = 3 [json_name = "headers"]; + if (!this->_internal_headers().empty()) { + using MapType = ::_pb::Map; + using WireHelper = AttributeContext_Request_HeadersEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_headers(); + 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, + "google.rpc.context.AttributeContext.Request.HeadersEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Request.HeadersEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } + } + + // string path = 4 [json_name = "path"]; + if (!this->_internal_path().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_path().data(), static_cast(this->_internal_path().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Request.path"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_path(), target); + } + + // string host = 5 [json_name = "host"]; + if (!this->_internal_host().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_host().data(), static_cast(this->_internal_host().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Request.host"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_host(), target); + } + + // string scheme = 6 [json_name = "scheme"]; + if (!this->_internal_scheme().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_scheme().data(), static_cast(this->_internal_scheme().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Request.scheme"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_scheme(), target); + } + + // string query = 7 [json_name = "query"]; + if (!this->_internal_query().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_query().data(), static_cast(this->_internal_query().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Request.query"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_query(), target); + } + + // .google.protobuf.Timestamp time = 9 [json_name = "time"]; + if (this->_internal_has_time()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, _Internal::time(this), + _Internal::time(this).GetCachedSize(), target, stream); + } + + // int64 size = 10 [json_name = "size"]; + if (this->_internal_size() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(10, this->_internal_size(), target); + } + + // string protocol = 11 [json_name = "protocol"]; + if (!this->_internal_protocol().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_protocol().data(), static_cast(this->_internal_protocol().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Request.protocol"); + target = stream->WriteStringMaybeAliased( + 11, this->_internal_protocol(), target); + } + + // string reason = 12 [json_name = "reason"]; + if (!this->_internal_reason().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_reason().data(), static_cast(this->_internal_reason().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Request.reason"); + target = stream->WriteStringMaybeAliased( + 12, this->_internal_reason(), target); + } + + // .google.rpc.context.AttributeContext.Auth auth = 13 [json_name = "auth"]; + if (this->_internal_has_auth()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(13, _Internal::auth(this), + _Internal::auth(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:google.rpc.context.AttributeContext.Request) + return target; +} + +size_t AttributeContext_Request::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.context.AttributeContext.Request) + 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 headers = 3 [json_name = "headers"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_headers_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_headers().begin(); + it != this->_internal_headers().end(); ++it) { + total_size += AttributeContext_Request_HeadersEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // string method = 2 [json_name = "method"]; + if (!this->_internal_method().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_method()); + } + + // string path = 4 [json_name = "path"]; + if (!this->_internal_path().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_path()); + } + + // string host = 5 [json_name = "host"]; + if (!this->_internal_host().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_host()); + } + + // string scheme = 6 [json_name = "scheme"]; + if (!this->_internal_scheme().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_scheme()); + } + + // string query = 7 [json_name = "query"]; + if (!this->_internal_query().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_query()); + } + + // string protocol = 11 [json_name = "protocol"]; + if (!this->_internal_protocol().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_protocol()); + } + + // string reason = 12 [json_name = "reason"]; + if (!this->_internal_reason().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_reason()); + } + + // .google.protobuf.Timestamp time = 9 [json_name = "time"]; + if (this->_internal_has_time()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.time_); + } + + // .google.rpc.context.AttributeContext.Auth auth = 13 [json_name = "auth"]; + if (this->_internal_has_auth()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.auth_); + } + + // int64 size = 10 [json_name = "size"]; + if (this->_internal_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_size()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttributeContext_Request::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AttributeContext_Request::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AttributeContext_Request::GetClassData() const { return &_class_data_; } + + +void AttributeContext_Request::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.context.AttributeContext.Request) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.headers_.MergeFrom(from._impl_.headers_); + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + if (!from._internal_method().empty()) { + _this->_internal_set_method(from._internal_method()); + } + if (!from._internal_path().empty()) { + _this->_internal_set_path(from._internal_path()); + } + if (!from._internal_host().empty()) { + _this->_internal_set_host(from._internal_host()); + } + if (!from._internal_scheme().empty()) { + _this->_internal_set_scheme(from._internal_scheme()); + } + if (!from._internal_query().empty()) { + _this->_internal_set_query(from._internal_query()); + } + if (!from._internal_protocol().empty()) { + _this->_internal_set_protocol(from._internal_protocol()); + } + if (!from._internal_reason().empty()) { + _this->_internal_set_reason(from._internal_reason()); + } + if (from._internal_has_time()) { + _this->_internal_mutable_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_time()); + } + if (from._internal_has_auth()) { + _this->_internal_mutable_auth()->::google::rpc::context::AttributeContext_Auth::MergeFrom( + from._internal_auth()); + } + if (from._internal_size() != 0) { + _this->_internal_set_size(from._internal_size()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AttributeContext_Request::CopyFrom(const AttributeContext_Request& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.context.AttributeContext.Request) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AttributeContext_Request::IsInitialized() const { + return true; +} + +void AttributeContext_Request::InternalSwap(AttributeContext_Request* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.headers_.InternalSwap(&other->_impl_.headers_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.method_, lhs_arena, + &other->_impl_.method_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.path_, lhs_arena, + &other->_impl_.path_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.host_, lhs_arena, + &other->_impl_.host_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.scheme_, lhs_arena, + &other->_impl_.scheme_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.query_, lhs_arena, + &other->_impl_.query_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.protocol_, lhs_arena, + &other->_impl_.protocol_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.reason_, lhs_arena, + &other->_impl_.reason_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.size_) + + sizeof(AttributeContext_Request::_impl_.size_) + - PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.time_)>( + reinterpret_cast(&_impl_.time_), + reinterpret_cast(&other->_impl_.time_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Request::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, + file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[5]); +} + +// =================================================================== + +AttributeContext_Response_HeadersEntry_DoNotUse::AttributeContext_Response_HeadersEntry_DoNotUse() {} +AttributeContext_Response_HeadersEntry_DoNotUse::AttributeContext_Response_HeadersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void AttributeContext_Response_HeadersEntry_DoNotUse::MergeFrom(const AttributeContext_Response_HeadersEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Response_HeadersEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, + file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[6]); +} + +// =================================================================== + +class AttributeContext_Response::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& time(const AttributeContext_Response* msg); + static const ::PROTOBUF_NAMESPACE_ID::Duration& backend_latency(const AttributeContext_Response* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +AttributeContext_Response::_Internal::time(const AttributeContext_Response* msg) { + return *msg->_impl_.time_; +} +const ::PROTOBUF_NAMESPACE_ID::Duration& +AttributeContext_Response::_Internal::backend_latency(const AttributeContext_Response* msg) { + return *msg->_impl_.backend_latency_; +} +void AttributeContext_Response::clear_time() { + if (GetArenaForAllocation() == nullptr && _impl_.time_ != nullptr) { + delete _impl_.time_; + } + _impl_.time_ = nullptr; +} +void AttributeContext_Response::clear_backend_latency() { + if (GetArenaForAllocation() == nullptr && _impl_.backend_latency_ != nullptr) { + delete _impl_.backend_latency_; + } + _impl_.backend_latency_ = nullptr; +} +AttributeContext_Response::AttributeContext_Response(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &AttributeContext_Response::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:google.rpc.context.AttributeContext.Response) +} +AttributeContext_Response::AttributeContext_Response(const AttributeContext_Response& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + AttributeContext_Response* const _this = this; (void)_this; + new (&_impl_) Impl_{ + /*decltype(_impl_.headers_)*/{} + , decltype(_impl_.time_){nullptr} + , decltype(_impl_.backend_latency_){nullptr} + , decltype(_impl_.code_){} + , decltype(_impl_.size_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.headers_.MergeFrom(from._impl_.headers_); + if (from._internal_has_time()) { + _this->_impl_.time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.time_); + } + if (from._internal_has_backend_latency()) { + _this->_impl_.backend_latency_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from._impl_.backend_latency_); + } + ::memcpy(&_impl_.code_, &from._impl_.code_, + static_cast(reinterpret_cast(&_impl_.size_) - + reinterpret_cast(&_impl_.code_)) + sizeof(_impl_.size_)); + // @@protoc_insertion_point(copy_constructor:google.rpc.context.AttributeContext.Response) +} + +inline void AttributeContext_Response::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + /*decltype(_impl_.headers_)*/{::_pbi::ArenaInitialized(), arena} + , decltype(_impl_.time_){nullptr} + , decltype(_impl_.backend_latency_){nullptr} + , decltype(_impl_.code_){int64_t{0}} + , decltype(_impl_.size_){int64_t{0}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +AttributeContext_Response::~AttributeContext_Response() { + // @@protoc_insertion_point(destructor:google.rpc.context.AttributeContext.Response) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void AttributeContext_Response::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.headers_.Destruct(); + _impl_.headers_.~MapField(); + if (this != internal_default_instance()) delete _impl_.time_; + if (this != internal_default_instance()) delete _impl_.backend_latency_; +} + +void AttributeContext_Response::ArenaDtor(void* object) { + AttributeContext_Response* _this = reinterpret_cast< AttributeContext_Response* >(object); + _this->_impl_.headers_.Destruct(); +} +void AttributeContext_Response::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void AttributeContext_Response::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.context.AttributeContext.Response) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.headers_.Clear(); + if (GetArenaForAllocation() == nullptr && _impl_.time_ != nullptr) { + delete _impl_.time_; + } + _impl_.time_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.backend_latency_ != nullptr) { + delete _impl_.backend_latency_; + } + _impl_.backend_latency_ = nullptr; + ::memset(&_impl_.code_, 0, static_cast( + reinterpret_cast(&_impl_.size_) - + reinterpret_cast(&_impl_.code_)) + sizeof(_impl_.size_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AttributeContext_Response::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int64 code = 1 [json_name = "code"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 size = 2 [json_name = "size"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map headers = 3 [json_name = "headers"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.headers_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp time = 4 [json_name = "time"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_time(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Duration backend_latency = 5 [json_name = "backendLatency"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_backend_latency(), 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* AttributeContext_Response::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.context.AttributeContext.Response) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int64 code = 1 [json_name = "code"]; + if (this->_internal_code() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_code(), target); + } + + // int64 size = 2 [json_name = "size"]; + if (this->_internal_size() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_size(), target); + } + + // map headers = 3 [json_name = "headers"]; + if (!this->_internal_headers().empty()) { + using MapType = ::_pb::Map; + using WireHelper = AttributeContext_Response_HeadersEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_headers(); + 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, + "google.rpc.context.AttributeContext.Response.HeadersEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Response.HeadersEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } + } + + // .google.protobuf.Timestamp time = 4 [json_name = "time"]; + if (this->_internal_has_time()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::time(this), + _Internal::time(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Duration backend_latency = 5 [json_name = "backendLatency"]; + if (this->_internal_has_backend_latency()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::backend_latency(this), + _Internal::backend_latency(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:google.rpc.context.AttributeContext.Response) + return target; +} + +size_t AttributeContext_Response::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.context.AttributeContext.Response) + 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 headers = 3 [json_name = "headers"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_headers_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_headers().begin(); + it != this->_internal_headers().end(); ++it) { + total_size += AttributeContext_Response_HeadersEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // .google.protobuf.Timestamp time = 4 [json_name = "time"]; + if (this->_internal_has_time()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.time_); + } + + // .google.protobuf.Duration backend_latency = 5 [json_name = "backendLatency"]; + if (this->_internal_has_backend_latency()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.backend_latency_); + } + + // int64 code = 1 [json_name = "code"]; + if (this->_internal_code() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_code()); + } + + // int64 size = 2 [json_name = "size"]; + if (this->_internal_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_size()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttributeContext_Response::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AttributeContext_Response::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AttributeContext_Response::GetClassData() const { return &_class_data_; } + + +void AttributeContext_Response::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.context.AttributeContext.Response) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.headers_.MergeFrom(from._impl_.headers_); + if (from._internal_has_time()) { + _this->_internal_mutable_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_time()); + } + if (from._internal_has_backend_latency()) { + _this->_internal_mutable_backend_latency()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom( + from._internal_backend_latency()); + } + if (from._internal_code() != 0) { + _this->_internal_set_code(from._internal_code()); + } + if (from._internal_size() != 0) { + _this->_internal_set_size(from._internal_size()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AttributeContext_Response::CopyFrom(const AttributeContext_Response& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.context.AttributeContext.Response) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AttributeContext_Response::IsInitialized() const { + return true; +} + +void AttributeContext_Response::InternalSwap(AttributeContext_Response* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.headers_.InternalSwap(&other->_impl_.headers_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AttributeContext_Response, _impl_.size_) + + sizeof(AttributeContext_Response::_impl_.size_) + - PROTOBUF_FIELD_OFFSET(AttributeContext_Response, _impl_.time_)>( + reinterpret_cast(&_impl_.time_), + reinterpret_cast(&other->_impl_.time_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Response::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, + file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[7]); +} + +// =================================================================== + +AttributeContext_Resource_LabelsEntry_DoNotUse::AttributeContext_Resource_LabelsEntry_DoNotUse() {} +AttributeContext_Resource_LabelsEntry_DoNotUse::AttributeContext_Resource_LabelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void AttributeContext_Resource_LabelsEntry_DoNotUse::MergeFrom(const AttributeContext_Resource_LabelsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Resource_LabelsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, + file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[8]); +} + +// =================================================================== + +AttributeContext_Resource_AnnotationsEntry_DoNotUse::AttributeContext_Resource_AnnotationsEntry_DoNotUse() {} +AttributeContext_Resource_AnnotationsEntry_DoNotUse::AttributeContext_Resource_AnnotationsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void AttributeContext_Resource_AnnotationsEntry_DoNotUse::MergeFrom(const AttributeContext_Resource_AnnotationsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Resource_AnnotationsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, + file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[9]); +} + +// =================================================================== + +class AttributeContext_Resource::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& create_time(const AttributeContext_Resource* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& update_time(const AttributeContext_Resource* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& delete_time(const AttributeContext_Resource* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +AttributeContext_Resource::_Internal::create_time(const AttributeContext_Resource* msg) { + return *msg->_impl_.create_time_; +} +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +AttributeContext_Resource::_Internal::update_time(const AttributeContext_Resource* msg) { + return *msg->_impl_.update_time_; +} +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +AttributeContext_Resource::_Internal::delete_time(const AttributeContext_Resource* msg) { + return *msg->_impl_.delete_time_; +} +void AttributeContext_Resource::clear_create_time() { + if (GetArenaForAllocation() == nullptr && _impl_.create_time_ != nullptr) { + delete _impl_.create_time_; + } + _impl_.create_time_ = nullptr; +} +void AttributeContext_Resource::clear_update_time() { + if (GetArenaForAllocation() == nullptr && _impl_.update_time_ != nullptr) { + delete _impl_.update_time_; + } + _impl_.update_time_ = nullptr; +} +void AttributeContext_Resource::clear_delete_time() { + if (GetArenaForAllocation() == nullptr && _impl_.delete_time_ != nullptr) { + delete _impl_.delete_time_; + } + _impl_.delete_time_ = nullptr; +} +AttributeContext_Resource::AttributeContext_Resource(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &AttributeContext_Resource::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:google.rpc.context.AttributeContext.Resource) +} +AttributeContext_Resource::AttributeContext_Resource(const AttributeContext_Resource& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + AttributeContext_Resource* const _this = this; (void)_this; + new (&_impl_) Impl_{ + /*decltype(_impl_.labels_)*/{} + , /*decltype(_impl_.annotations_)*/{} + , decltype(_impl_.service_){} + , decltype(_impl_.name_){} + , decltype(_impl_.type_){} + , decltype(_impl_.uid_){} + , decltype(_impl_.display_name_){} + , decltype(_impl_.etag_){} + , decltype(_impl_.location_){} + , decltype(_impl_.create_time_){nullptr} + , decltype(_impl_.update_time_){nullptr} + , decltype(_impl_.delete_time_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.labels_.MergeFrom(from._impl_.labels_); + _this->_impl_.annotations_.MergeFrom(from._impl_.annotations_); + _impl_.service_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.service_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_service().empty()) { + _this->_impl_.service_.Set(from._internal_service(), + _this->GetArenaForAllocation()); + } + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_type().empty()) { + _this->_impl_.type_.Set(from._internal_type(), + _this->GetArenaForAllocation()); + } + _impl_.uid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.uid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_uid().empty()) { + _this->_impl_.uid_.Set(from._internal_uid(), + _this->GetArenaForAllocation()); + } + _impl_.display_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.display_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_display_name().empty()) { + _this->_impl_.display_name_.Set(from._internal_display_name(), + _this->GetArenaForAllocation()); + } + _impl_.etag_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.etag_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_etag().empty()) { + _this->_impl_.etag_.Set(from._internal_etag(), + _this->GetArenaForAllocation()); + } + _impl_.location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location().empty()) { + _this->_impl_.location_.Set(from._internal_location(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_create_time()) { + _this->_impl_.create_time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.create_time_); + } + if (from._internal_has_update_time()) { + _this->_impl_.update_time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.update_time_); + } + if (from._internal_has_delete_time()) { + _this->_impl_.delete_time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.delete_time_); + } + // @@protoc_insertion_point(copy_constructor:google.rpc.context.AttributeContext.Resource) +} + +inline void AttributeContext_Resource::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + /*decltype(_impl_.labels_)*/{::_pbi::ArenaInitialized(), arena} + , /*decltype(_impl_.annotations_)*/{::_pbi::ArenaInitialized(), arena} + , decltype(_impl_.service_){} + , decltype(_impl_.name_){} + , decltype(_impl_.type_){} + , decltype(_impl_.uid_){} + , decltype(_impl_.display_name_){} + , decltype(_impl_.etag_){} + , decltype(_impl_.location_){} + , decltype(_impl_.create_time_){nullptr} + , decltype(_impl_.update_time_){nullptr} + , decltype(_impl_.delete_time_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.service_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.service_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.uid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.uid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.display_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.display_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.etag_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.etag_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +AttributeContext_Resource::~AttributeContext_Resource() { + // @@protoc_insertion_point(destructor:google.rpc.context.AttributeContext.Resource) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void AttributeContext_Resource::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.labels_.Destruct(); + _impl_.labels_.~MapField(); + _impl_.annotations_.Destruct(); + _impl_.annotations_.~MapField(); + _impl_.service_.Destroy(); + _impl_.name_.Destroy(); + _impl_.type_.Destroy(); + _impl_.uid_.Destroy(); + _impl_.display_name_.Destroy(); + _impl_.etag_.Destroy(); + _impl_.location_.Destroy(); + if (this != internal_default_instance()) delete _impl_.create_time_; + if (this != internal_default_instance()) delete _impl_.update_time_; + if (this != internal_default_instance()) delete _impl_.delete_time_; +} + +void AttributeContext_Resource::ArenaDtor(void* object) { + AttributeContext_Resource* _this = reinterpret_cast< AttributeContext_Resource* >(object); + _this->_impl_.labels_.Destruct(); + _this->_impl_.annotations_.Destruct(); +} +void AttributeContext_Resource::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void AttributeContext_Resource::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.context.AttributeContext.Resource) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.labels_.Clear(); + _impl_.annotations_.Clear(); + _impl_.service_.ClearToEmpty(); + _impl_.name_.ClearToEmpty(); + _impl_.type_.ClearToEmpty(); + _impl_.uid_.ClearToEmpty(); + _impl_.display_name_.ClearToEmpty(); + _impl_.etag_.ClearToEmpty(); + _impl_.location_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.create_time_ != nullptr) { + delete _impl_.create_time_; + } + _impl_.create_time_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.update_time_ != nullptr) { + delete _impl_.update_time_; + } + _impl_.update_time_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.delete_time_ != nullptr) { + delete _impl_.delete_time_; + } + _impl_.delete_time_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AttributeContext_Resource::_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 service = 1 [json_name = "service"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_service(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Resource.service")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Resource.name")); + } else + goto handle_unusual; + continue; + // string type = 3 [json_name = "type"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Resource.type")); + } else + goto handle_unusual; + continue; + // map labels = 4 [json_name = "labels"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.labels_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + // string uid = 5 [json_name = "uid"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_uid(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Resource.uid")); + } else + goto handle_unusual; + continue; + // map annotations = 6 [json_name = "annotations"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.annotations_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); + } else + goto handle_unusual; + continue; + // string display_name = 7 [json_name = "displayName"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_display_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Resource.display_name")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp create_time = 8 [json_name = "createTime"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_create_time(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_update_time(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp delete_time = 10 [json_name = "deleteTime"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + ptr = ctx->ParseMessage(_internal_mutable_delete_time(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string etag = 11 [json_name = "etag"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + auto str = _internal_mutable_etag(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Resource.etag")); + } else + goto handle_unusual; + continue; + // string location = 12 [json_name = "location"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + auto str = _internal_mutable_location(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Resource.location")); + } 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* AttributeContext_Resource::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.context.AttributeContext.Resource) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string service = 1 [json_name = "service"]; + if (!this->_internal_service().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_service().data(), static_cast(this->_internal_service().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Resource.service"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_service(), target); + } + + // string name = 2 [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, + "google.rpc.context.AttributeContext.Resource.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); + } + + // string type = 3 [json_name = "type"]; + if (!this->_internal_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Resource.type"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_type(), target); + } + + // map labels = 4 [json_name = "labels"]; + if (!this->_internal_labels().empty()) { + using MapType = ::_pb::Map; + using WireHelper = AttributeContext_Resource_LabelsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_labels(); + 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, + "google.rpc.context.AttributeContext.Resource.LabelsEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Resource.LabelsEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } + } + + // string uid = 5 [json_name = "uid"]; + if (!this->_internal_uid().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_uid().data(), static_cast(this->_internal_uid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Resource.uid"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_uid(), target); + } + + // map annotations = 6 [json_name = "annotations"]; + if (!this->_internal_annotations().empty()) { + using MapType = ::_pb::Map; + using WireHelper = AttributeContext_Resource_AnnotationsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_annotations(); + 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, + "google.rpc.context.AttributeContext.Resource.AnnotationsEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Resource.AnnotationsEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(6, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(6, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } + } + + // string display_name = 7 [json_name = "displayName"]; + if (!this->_internal_display_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_display_name().data(), static_cast(this->_internal_display_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Resource.display_name"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_display_name(), target); + } + + // .google.protobuf.Timestamp create_time = 8 [json_name = "createTime"]; + if (this->_internal_has_create_time()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::create_time(this), + _Internal::create_time(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"]; + if (this->_internal_has_update_time()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, _Internal::update_time(this), + _Internal::update_time(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Timestamp delete_time = 10 [json_name = "deleteTime"]; + if (this->_internal_has_delete_time()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(10, _Internal::delete_time(this), + _Internal::delete_time(this).GetCachedSize(), target, stream); + } + + // string etag = 11 [json_name = "etag"]; + if (!this->_internal_etag().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_etag().data(), static_cast(this->_internal_etag().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Resource.etag"); + target = stream->WriteStringMaybeAliased( + 11, this->_internal_etag(), target); + } + + // string location = 12 [json_name = "location"]; + if (!this->_internal_location().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location().data(), static_cast(this->_internal_location().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Resource.location"); + target = stream->WriteStringMaybeAliased( + 12, this->_internal_location(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.rpc.context.AttributeContext.Resource) + return target; +} + +size_t AttributeContext_Resource::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.context.AttributeContext.Resource) + 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 labels = 4 [json_name = "labels"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_labels_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_labels().begin(); + it != this->_internal_labels().end(); ++it) { + total_size += AttributeContext_Resource_LabelsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // map annotations = 6 [json_name = "annotations"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_annotations_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_annotations().begin(); + it != this->_internal_annotations().end(); ++it) { + total_size += AttributeContext_Resource_AnnotationsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // string service = 1 [json_name = "service"]; + if (!this->_internal_service().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_service()); + } + + // string name = 2 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // string type = 3 [json_name = "type"]; + if (!this->_internal_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); + } + + // string uid = 5 [json_name = "uid"]; + if (!this->_internal_uid().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_uid()); + } + + // string display_name = 7 [json_name = "displayName"]; + if (!this->_internal_display_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_display_name()); + } + + // string etag = 11 [json_name = "etag"]; + if (!this->_internal_etag().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_etag()); + } + + // string location = 12 [json_name = "location"]; + if (!this->_internal_location().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location()); + } + + // .google.protobuf.Timestamp create_time = 8 [json_name = "createTime"]; + if (this->_internal_has_create_time()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.create_time_); + } + + // .google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"]; + if (this->_internal_has_update_time()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.update_time_); + } + + // .google.protobuf.Timestamp delete_time = 10 [json_name = "deleteTime"]; + if (this->_internal_has_delete_time()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.delete_time_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttributeContext_Resource::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AttributeContext_Resource::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AttributeContext_Resource::GetClassData() const { return &_class_data_; } + + +void AttributeContext_Resource::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.context.AttributeContext.Resource) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.labels_.MergeFrom(from._impl_.labels_); + _this->_impl_.annotations_.MergeFrom(from._impl_.annotations_); + if (!from._internal_service().empty()) { + _this->_internal_set_service(from._internal_service()); + } + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } + if (!from._internal_uid().empty()) { + _this->_internal_set_uid(from._internal_uid()); + } + if (!from._internal_display_name().empty()) { + _this->_internal_set_display_name(from._internal_display_name()); + } + if (!from._internal_etag().empty()) { + _this->_internal_set_etag(from._internal_etag()); + } + if (!from._internal_location().empty()) { + _this->_internal_set_location(from._internal_location()); + } + if (from._internal_has_create_time()) { + _this->_internal_mutable_create_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_create_time()); + } + if (from._internal_has_update_time()) { + _this->_internal_mutable_update_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_update_time()); + } + if (from._internal_has_delete_time()) { + _this->_internal_mutable_delete_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_delete_time()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AttributeContext_Resource::CopyFrom(const AttributeContext_Resource& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.context.AttributeContext.Resource) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AttributeContext_Resource::IsInitialized() const { + return true; +} + +void AttributeContext_Resource::InternalSwap(AttributeContext_Resource* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.labels_.InternalSwap(&other->_impl_.labels_); + _impl_.annotations_.InternalSwap(&other->_impl_.annotations_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.service_, lhs_arena, + &other->_impl_.service_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.type_, lhs_arena, + &other->_impl_.type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.uid_, lhs_arena, + &other->_impl_.uid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.display_name_, lhs_arena, + &other->_impl_.display_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.etag_, lhs_arena, + &other->_impl_.etag_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.location_, lhs_arena, + &other->_impl_.location_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.delete_time_) + + sizeof(AttributeContext_Resource::_impl_.delete_time_) + - PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.create_time_)>( + reinterpret_cast(&_impl_.create_time_), + reinterpret_cast(&other->_impl_.create_time_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Resource::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, + file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[10]); +} + +// =================================================================== + +class AttributeContext::_Internal { + public: + static const ::google::rpc::context::AttributeContext_Peer& origin(const AttributeContext* msg); + static const ::google::rpc::context::AttributeContext_Peer& source(const AttributeContext* msg); + static const ::google::rpc::context::AttributeContext_Peer& destination(const AttributeContext* msg); + static const ::google::rpc::context::AttributeContext_Request& request(const AttributeContext* msg); + static const ::google::rpc::context::AttributeContext_Response& response(const AttributeContext* msg); + static const ::google::rpc::context::AttributeContext_Resource& resource(const AttributeContext* msg); + static const ::google::rpc::context::AttributeContext_Api& api(const AttributeContext* msg); +}; + +const ::google::rpc::context::AttributeContext_Peer& +AttributeContext::_Internal::origin(const AttributeContext* msg) { + return *msg->_impl_.origin_; +} +const ::google::rpc::context::AttributeContext_Peer& +AttributeContext::_Internal::source(const AttributeContext* msg) { + return *msg->_impl_.source_; +} +const ::google::rpc::context::AttributeContext_Peer& +AttributeContext::_Internal::destination(const AttributeContext* msg) { + return *msg->_impl_.destination_; +} +const ::google::rpc::context::AttributeContext_Request& +AttributeContext::_Internal::request(const AttributeContext* msg) { + return *msg->_impl_.request_; +} +const ::google::rpc::context::AttributeContext_Response& +AttributeContext::_Internal::response(const AttributeContext* msg) { + return *msg->_impl_.response_; +} +const ::google::rpc::context::AttributeContext_Resource& +AttributeContext::_Internal::resource(const AttributeContext* msg) { + return *msg->_impl_.resource_; +} +const ::google::rpc::context::AttributeContext_Api& +AttributeContext::_Internal::api(const AttributeContext* msg) { + return *msg->_impl_.api_; +} +void AttributeContext::clear_extensions() { + _impl_.extensions_.Clear(); +} +AttributeContext::AttributeContext(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.rpc.context.AttributeContext) +} +AttributeContext::AttributeContext(const AttributeContext& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + AttributeContext* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.extensions_){from._impl_.extensions_} + , decltype(_impl_.source_){nullptr} + , decltype(_impl_.destination_){nullptr} + , decltype(_impl_.request_){nullptr} + , decltype(_impl_.response_){nullptr} + , decltype(_impl_.resource_){nullptr} + , decltype(_impl_.api_){nullptr} + , decltype(_impl_.origin_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_source()) { + _this->_impl_.source_ = new ::google::rpc::context::AttributeContext_Peer(*from._impl_.source_); + } + if (from._internal_has_destination()) { + _this->_impl_.destination_ = new ::google::rpc::context::AttributeContext_Peer(*from._impl_.destination_); + } + if (from._internal_has_request()) { + _this->_impl_.request_ = new ::google::rpc::context::AttributeContext_Request(*from._impl_.request_); + } + if (from._internal_has_response()) { + _this->_impl_.response_ = new ::google::rpc::context::AttributeContext_Response(*from._impl_.response_); + } + if (from._internal_has_resource()) { + _this->_impl_.resource_ = new ::google::rpc::context::AttributeContext_Resource(*from._impl_.resource_); + } + if (from._internal_has_api()) { + _this->_impl_.api_ = new ::google::rpc::context::AttributeContext_Api(*from._impl_.api_); + } + if (from._internal_has_origin()) { + _this->_impl_.origin_ = new ::google::rpc::context::AttributeContext_Peer(*from._impl_.origin_); + } + // @@protoc_insertion_point(copy_constructor:google.rpc.context.AttributeContext) +} + +inline void AttributeContext::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.extensions_){arena} + , decltype(_impl_.source_){nullptr} + , decltype(_impl_.destination_){nullptr} + , decltype(_impl_.request_){nullptr} + , decltype(_impl_.response_){nullptr} + , decltype(_impl_.resource_){nullptr} + , decltype(_impl_.api_){nullptr} + , decltype(_impl_.origin_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +AttributeContext::~AttributeContext() { + // @@protoc_insertion_point(destructor:google.rpc.context.AttributeContext) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void AttributeContext::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.extensions_.~RepeatedPtrField(); + if (this != internal_default_instance()) delete _impl_.source_; + if (this != internal_default_instance()) delete _impl_.destination_; + if (this != internal_default_instance()) delete _impl_.request_; + if (this != internal_default_instance()) delete _impl_.response_; + if (this != internal_default_instance()) delete _impl_.resource_; + if (this != internal_default_instance()) delete _impl_.api_; + if (this != internal_default_instance()) delete _impl_.origin_; +} + +void AttributeContext::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void AttributeContext::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.context.AttributeContext) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.extensions_.Clear(); + if (GetArenaForAllocation() == nullptr && _impl_.source_ != nullptr) { + delete _impl_.source_; + } + _impl_.source_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.destination_ != nullptr) { + delete _impl_.destination_; + } + _impl_.destination_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.request_ != nullptr) { + delete _impl_.request_; + } + _impl_.request_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.response_ != nullptr) { + delete _impl_.response_; + } + _impl_.response_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.resource_ != nullptr) { + delete _impl_.resource_; + } + _impl_.resource_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.api_ != nullptr) { + delete _impl_.api_; + } + _impl_.api_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.origin_ != nullptr) { + delete _impl_.origin_; + } + _impl_.origin_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AttributeContext::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.rpc.context.AttributeContext.Peer source = 1 [json_name = "source"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_source(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.rpc.context.AttributeContext.Peer destination = 2 [json_name = "destination"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_destination(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.rpc.context.AttributeContext.Request request = 3 [json_name = "request"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_request(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.rpc.context.AttributeContext.Response response = 4 [json_name = "response"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_response(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.rpc.context.AttributeContext.Resource resource = 5 [json_name = "resource"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_resource(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.rpc.context.AttributeContext.Api api = 6 [json_name = "api"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_api(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.rpc.context.AttributeContext.Peer origin = 7 [json_name = "origin"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_origin(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .google.protobuf.Any extensions = 8 [json_name = "extensions"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_extensions(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(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* AttributeContext::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.context.AttributeContext) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.rpc.context.AttributeContext.Peer source = 1 [json_name = "source"]; + if (this->_internal_has_source()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::source(this), + _Internal::source(this).GetCachedSize(), target, stream); + } + + // .google.rpc.context.AttributeContext.Peer destination = 2 [json_name = "destination"]; + if (this->_internal_has_destination()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::destination(this), + _Internal::destination(this).GetCachedSize(), target, stream); + } + + // .google.rpc.context.AttributeContext.Request request = 3 [json_name = "request"]; + if (this->_internal_has_request()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::request(this), + _Internal::request(this).GetCachedSize(), target, stream); + } + + // .google.rpc.context.AttributeContext.Response response = 4 [json_name = "response"]; + if (this->_internal_has_response()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::response(this), + _Internal::response(this).GetCachedSize(), target, stream); + } + + // .google.rpc.context.AttributeContext.Resource resource = 5 [json_name = "resource"]; + if (this->_internal_has_resource()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::resource(this), + _Internal::resource(this).GetCachedSize(), target, stream); + } + + // .google.rpc.context.AttributeContext.Api api = 6 [json_name = "api"]; + if (this->_internal_has_api()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::api(this), + _Internal::api(this).GetCachedSize(), target, stream); + } + + // .google.rpc.context.AttributeContext.Peer origin = 7 [json_name = "origin"]; + if (this->_internal_has_origin()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::origin(this), + _Internal::origin(this).GetCachedSize(), target, stream); + } + + // repeated .google.protobuf.Any extensions = 8 [json_name = "extensions"]; + for (unsigned i = 0, + n = static_cast(this->_internal_extensions_size()); i < n; i++) { + const auto& repfield = this->_internal_extensions(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.rpc.context.AttributeContext) + return target; +} + +size_t AttributeContext::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.context.AttributeContext) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.protobuf.Any extensions = 8 [json_name = "extensions"]; + total_size += 1UL * this->_internal_extensions_size(); + for (const auto& msg : this->_impl_.extensions_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // .google.rpc.context.AttributeContext.Peer source = 1 [json_name = "source"]; + if (this->_internal_has_source()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.source_); + } + + // .google.rpc.context.AttributeContext.Peer destination = 2 [json_name = "destination"]; + if (this->_internal_has_destination()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.destination_); + } + + // .google.rpc.context.AttributeContext.Request request = 3 [json_name = "request"]; + if (this->_internal_has_request()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.request_); + } + + // .google.rpc.context.AttributeContext.Response response = 4 [json_name = "response"]; + if (this->_internal_has_response()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.response_); + } + + // .google.rpc.context.AttributeContext.Resource resource = 5 [json_name = "resource"]; + if (this->_internal_has_resource()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.resource_); + } + + // .google.rpc.context.AttributeContext.Api api = 6 [json_name = "api"]; + if (this->_internal_has_api()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.api_); + } + + // .google.rpc.context.AttributeContext.Peer origin = 7 [json_name = "origin"]; + if (this->_internal_has_origin()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.origin_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttributeContext::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AttributeContext::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AttributeContext::GetClassData() const { return &_class_data_; } + + +void AttributeContext::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.context.AttributeContext) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); + if (from._internal_has_source()) { + _this->_internal_mutable_source()->::google::rpc::context::AttributeContext_Peer::MergeFrom( + from._internal_source()); + } + if (from._internal_has_destination()) { + _this->_internal_mutable_destination()->::google::rpc::context::AttributeContext_Peer::MergeFrom( + from._internal_destination()); + } + if (from._internal_has_request()) { + _this->_internal_mutable_request()->::google::rpc::context::AttributeContext_Request::MergeFrom( + from._internal_request()); + } + if (from._internal_has_response()) { + _this->_internal_mutable_response()->::google::rpc::context::AttributeContext_Response::MergeFrom( + from._internal_response()); + } + if (from._internal_has_resource()) { + _this->_internal_mutable_resource()->::google::rpc::context::AttributeContext_Resource::MergeFrom( + from._internal_resource()); + } + if (from._internal_has_api()) { + _this->_internal_mutable_api()->::google::rpc::context::AttributeContext_Api::MergeFrom( + from._internal_api()); + } + if (from._internal_has_origin()) { + _this->_internal_mutable_origin()->::google::rpc::context::AttributeContext_Peer::MergeFrom( + from._internal_origin()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AttributeContext::CopyFrom(const AttributeContext& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.context.AttributeContext) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AttributeContext::IsInitialized() const { + return true; +} + +void AttributeContext::InternalSwap(AttributeContext* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_.origin_) + + sizeof(AttributeContext::_impl_.origin_) + - PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_.source_)>( + reinterpret_cast(&_impl_.source_), + reinterpret_cast(&other->_impl_.source_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, + file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[11]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace context +} // namespace rpc +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Peer* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Peer >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Peer >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Api* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Api >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Api >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Auth* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Auth >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Auth >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Request* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Request >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Request >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Response* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Response >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Response >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Resource* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Resource >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Resource >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/google/rpc/context/attribute_context.pb.h b/src/gen/google/rpc/context/attribute_context.pb.h new file mode 100644 index 000000000..33e455208 --- /dev/null +++ b/src/gen/google/rpc/context/attribute_context.pb.h @@ -0,0 +1,5154 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/rpc/context/attribute_context.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 // IWYU pragma: export +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; +namespace google { +namespace rpc { +namespace context { +class AttributeContext; +struct AttributeContextDefaultTypeInternal; +extern AttributeContextDefaultTypeInternal _AttributeContext_default_instance_; +class AttributeContext_Api; +struct AttributeContext_ApiDefaultTypeInternal; +extern AttributeContext_ApiDefaultTypeInternal _AttributeContext_Api_default_instance_; +class AttributeContext_Auth; +struct AttributeContext_AuthDefaultTypeInternal; +extern AttributeContext_AuthDefaultTypeInternal _AttributeContext_Auth_default_instance_; +class AttributeContext_Peer; +struct AttributeContext_PeerDefaultTypeInternal; +extern AttributeContext_PeerDefaultTypeInternal _AttributeContext_Peer_default_instance_; +class AttributeContext_Peer_LabelsEntry_DoNotUse; +struct AttributeContext_Peer_LabelsEntry_DoNotUseDefaultTypeInternal; +extern AttributeContext_Peer_LabelsEntry_DoNotUseDefaultTypeInternal _AttributeContext_Peer_LabelsEntry_DoNotUse_default_instance_; +class AttributeContext_Request; +struct AttributeContext_RequestDefaultTypeInternal; +extern AttributeContext_RequestDefaultTypeInternal _AttributeContext_Request_default_instance_; +class AttributeContext_Request_HeadersEntry_DoNotUse; +struct AttributeContext_Request_HeadersEntry_DoNotUseDefaultTypeInternal; +extern AttributeContext_Request_HeadersEntry_DoNotUseDefaultTypeInternal _AttributeContext_Request_HeadersEntry_DoNotUse_default_instance_; +class AttributeContext_Resource; +struct AttributeContext_ResourceDefaultTypeInternal; +extern AttributeContext_ResourceDefaultTypeInternal _AttributeContext_Resource_default_instance_; +class AttributeContext_Resource_AnnotationsEntry_DoNotUse; +struct AttributeContext_Resource_AnnotationsEntry_DoNotUseDefaultTypeInternal; +extern AttributeContext_Resource_AnnotationsEntry_DoNotUseDefaultTypeInternal _AttributeContext_Resource_AnnotationsEntry_DoNotUse_default_instance_; +class AttributeContext_Resource_LabelsEntry_DoNotUse; +struct AttributeContext_Resource_LabelsEntry_DoNotUseDefaultTypeInternal; +extern AttributeContext_Resource_LabelsEntry_DoNotUseDefaultTypeInternal _AttributeContext_Resource_LabelsEntry_DoNotUse_default_instance_; +class AttributeContext_Response; +struct AttributeContext_ResponseDefaultTypeInternal; +extern AttributeContext_ResponseDefaultTypeInternal _AttributeContext_Response_default_instance_; +class AttributeContext_Response_HeadersEntry_DoNotUse; +struct AttributeContext_Response_HeadersEntry_DoNotUseDefaultTypeInternal; +extern AttributeContext_Response_HeadersEntry_DoNotUseDefaultTypeInternal _AttributeContext_Response_HeadersEntry_DoNotUse_default_instance_; +} // namespace context +} // namespace rpc +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> ::google::rpc::context::AttributeContext* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext>(Arena*); +template<> ::google::rpc::context::AttributeContext_Api* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Api>(Arena*); +template<> ::google::rpc::context::AttributeContext_Auth* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Auth>(Arena*); +template<> ::google::rpc::context::AttributeContext_Peer* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Peer>(Arena*); +template<> ::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse>(Arena*); +template<> ::google::rpc::context::AttributeContext_Request* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Request>(Arena*); +template<> ::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse>(Arena*); +template<> ::google::rpc::context::AttributeContext_Resource* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Resource>(Arena*); +template<> ::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse>(Arena*); +template<> ::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse>(Arena*); +template<> ::google::rpc::context::AttributeContext_Response* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Response>(Arena*); +template<> ::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace rpc { +namespace context { + +// =================================================================== + +class AttributeContext_Peer_LabelsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + AttributeContext_Peer_LabelsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR AttributeContext_Peer_LabelsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit AttributeContext_Peer_LabelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const AttributeContext_Peer_LabelsEntry_DoNotUse& other); + static const AttributeContext_Peer_LabelsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_AttributeContext_Peer_LabelsEntry_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, "google.rpc.context.AttributeContext.Peer.LabelsEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "google.rpc.context.AttributeContext.Peer.LabelsEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; +}; + +// ------------------------------------------------------------------- + +class AttributeContext_Peer final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.context.AttributeContext.Peer) */ { + public: + inline AttributeContext_Peer() : AttributeContext_Peer(nullptr) {} + ~AttributeContext_Peer() override; + explicit PROTOBUF_CONSTEXPR AttributeContext_Peer(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AttributeContext_Peer(const AttributeContext_Peer& from); + AttributeContext_Peer(AttributeContext_Peer&& from) noexcept + : AttributeContext_Peer() { + *this = ::std::move(from); + } + + inline AttributeContext_Peer& operator=(const AttributeContext_Peer& from) { + CopyFrom(from); + return *this; + } + inline AttributeContext_Peer& operator=(AttributeContext_Peer&& 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 AttributeContext_Peer& default_instance() { + return *internal_default_instance(); + } + static inline const AttributeContext_Peer* internal_default_instance() { + return reinterpret_cast( + &_AttributeContext_Peer_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(AttributeContext_Peer& a, AttributeContext_Peer& b) { + a.Swap(&b); + } + inline void Swap(AttributeContext_Peer* 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(AttributeContext_Peer* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AttributeContext_Peer* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AttributeContext_Peer& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const AttributeContext_Peer& from) { + AttributeContext_Peer::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AttributeContext_Peer* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.context.AttributeContext.Peer"; + } + protected: + explicit AttributeContext_Peer(::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 { + kLabelsFieldNumber = 6, + kIpFieldNumber = 1, + kPrincipalFieldNumber = 7, + kRegionCodeFieldNumber = 8, + kPortFieldNumber = 2, + }; + // map labels = 6 [json_name = "labels"]; + int labels_size() const; + private: + int _internal_labels_size() const; + public: + void clear_labels(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_labels() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_labels(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + labels() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_labels(); + + // string ip = 1 [json_name = "ip"]; + void clear_ip(); + const std::string& ip() const; + template + void set_ip(ArgT0&& arg0, ArgT... args); + std::string* mutable_ip(); + PROTOBUF_NODISCARD std::string* release_ip(); + void set_allocated_ip(std::string* ip); + private: + const std::string& _internal_ip() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_ip(const std::string& value); + std::string* _internal_mutable_ip(); + public: + + // string principal = 7 [json_name = "principal"]; + void clear_principal(); + const std::string& principal() const; + template + void set_principal(ArgT0&& arg0, ArgT... args); + std::string* mutable_principal(); + PROTOBUF_NODISCARD std::string* release_principal(); + void set_allocated_principal(std::string* principal); + private: + const std::string& _internal_principal() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_principal(const std::string& value); + std::string* _internal_mutable_principal(); + public: + + // string region_code = 8 [json_name = "regionCode"]; + void clear_region_code(); + const std::string& region_code() const; + template + void set_region_code(ArgT0&& arg0, ArgT... args); + std::string* mutable_region_code(); + PROTOBUF_NODISCARD std::string* release_region_code(); + void set_allocated_region_code(std::string* region_code); + private: + const std::string& _internal_region_code() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_region_code(const std::string& value); + std::string* _internal_mutable_region_code(); + public: + + // int64 port = 2 [json_name = "port"]; + void clear_port(); + int64_t port() const; + void set_port(int64_t value); + private: + int64_t _internal_port() const; + void _internal_set_port(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Peer) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + AttributeContext_Peer_LabelsEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> labels_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr principal_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr region_code_; + int64_t port_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; +}; +// ------------------------------------------------------------------- + +class AttributeContext_Api final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.context.AttributeContext.Api) */ { + public: + inline AttributeContext_Api() : AttributeContext_Api(nullptr) {} + ~AttributeContext_Api() override; + explicit PROTOBUF_CONSTEXPR AttributeContext_Api(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AttributeContext_Api(const AttributeContext_Api& from); + AttributeContext_Api(AttributeContext_Api&& from) noexcept + : AttributeContext_Api() { + *this = ::std::move(from); + } + + inline AttributeContext_Api& operator=(const AttributeContext_Api& from) { + CopyFrom(from); + return *this; + } + inline AttributeContext_Api& operator=(AttributeContext_Api&& 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 AttributeContext_Api& default_instance() { + return *internal_default_instance(); + } + static inline const AttributeContext_Api* internal_default_instance() { + return reinterpret_cast( + &_AttributeContext_Api_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(AttributeContext_Api& a, AttributeContext_Api& b) { + a.Swap(&b); + } + inline void Swap(AttributeContext_Api* 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(AttributeContext_Api* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AttributeContext_Api* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AttributeContext_Api& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const AttributeContext_Api& from) { + AttributeContext_Api::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AttributeContext_Api* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.context.AttributeContext.Api"; + } + protected: + explicit AttributeContext_Api(::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 { + kServiceFieldNumber = 1, + kOperationFieldNumber = 2, + kProtocolFieldNumber = 3, + kVersionFieldNumber = 4, + }; + // string service = 1 [json_name = "service"]; + void clear_service(); + const std::string& service() const; + template + void set_service(ArgT0&& arg0, ArgT... args); + std::string* mutable_service(); + PROTOBUF_NODISCARD std::string* release_service(); + void set_allocated_service(std::string* service); + private: + const std::string& _internal_service() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_service(const std::string& value); + std::string* _internal_mutable_service(); + public: + + // string operation = 2 [json_name = "operation"]; + void clear_operation(); + const std::string& operation() const; + template + void set_operation(ArgT0&& arg0, ArgT... args); + std::string* mutable_operation(); + PROTOBUF_NODISCARD std::string* release_operation(); + void set_allocated_operation(std::string* operation); + private: + const std::string& _internal_operation() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_operation(const std::string& value); + std::string* _internal_mutable_operation(); + public: + + // string protocol = 3 [json_name = "protocol"]; + void clear_protocol(); + const std::string& protocol() const; + template + void set_protocol(ArgT0&& arg0, ArgT... args); + std::string* mutable_protocol(); + PROTOBUF_NODISCARD std::string* release_protocol(); + void set_allocated_protocol(std::string* protocol); + private: + const std::string& _internal_protocol() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_protocol(const std::string& value); + std::string* _internal_mutable_protocol(); + public: + + // string version = 4 [json_name = "version"]; + void clear_version(); + const std::string& version() const; + template + void set_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_version(); + PROTOBUF_NODISCARD std::string* release_version(); + void set_allocated_version(std::string* version); + private: + const std::string& _internal_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); + std::string* _internal_mutable_version(); + public: + + // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Api) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr operation_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr protocol_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; +}; +// ------------------------------------------------------------------- + +class AttributeContext_Auth final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.context.AttributeContext.Auth) */ { + public: + inline AttributeContext_Auth() : AttributeContext_Auth(nullptr) {} + ~AttributeContext_Auth() override; + explicit PROTOBUF_CONSTEXPR AttributeContext_Auth(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AttributeContext_Auth(const AttributeContext_Auth& from); + AttributeContext_Auth(AttributeContext_Auth&& from) noexcept + : AttributeContext_Auth() { + *this = ::std::move(from); + } + + inline AttributeContext_Auth& operator=(const AttributeContext_Auth& from) { + CopyFrom(from); + return *this; + } + inline AttributeContext_Auth& operator=(AttributeContext_Auth&& 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 AttributeContext_Auth& default_instance() { + return *internal_default_instance(); + } + static inline const AttributeContext_Auth* internal_default_instance() { + return reinterpret_cast( + &_AttributeContext_Auth_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(AttributeContext_Auth& a, AttributeContext_Auth& b) { + a.Swap(&b); + } + inline void Swap(AttributeContext_Auth* 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(AttributeContext_Auth* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AttributeContext_Auth* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AttributeContext_Auth& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const AttributeContext_Auth& from) { + AttributeContext_Auth::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AttributeContext_Auth* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.context.AttributeContext.Auth"; + } + protected: + explicit AttributeContext_Auth(::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 { + kAudiencesFieldNumber = 2, + kAccessLevelsFieldNumber = 5, + kPrincipalFieldNumber = 1, + kPresenterFieldNumber = 3, + kClaimsFieldNumber = 4, + }; + // repeated string audiences = 2 [json_name = "audiences"]; + int audiences_size() const; + private: + int _internal_audiences_size() const; + public: + void clear_audiences(); + const std::string& audiences(int index) const; + std::string* mutable_audiences(int index); + void set_audiences(int index, const std::string& value); + void set_audiences(int index, std::string&& value); + void set_audiences(int index, const char* value); + void set_audiences(int index, const char* value, size_t size); + std::string* add_audiences(); + void add_audiences(const std::string& value); + void add_audiences(std::string&& value); + void add_audiences(const char* value); + void add_audiences(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& audiences() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_audiences(); + private: + const std::string& _internal_audiences(int index) const; + std::string* _internal_add_audiences(); + public: + + // repeated string access_levels = 5 [json_name = "accessLevels"]; + int access_levels_size() const; + private: + int _internal_access_levels_size() const; + public: + void clear_access_levels(); + const std::string& access_levels(int index) const; + std::string* mutable_access_levels(int index); + void set_access_levels(int index, const std::string& value); + void set_access_levels(int index, std::string&& value); + void set_access_levels(int index, const char* value); + void set_access_levels(int index, const char* value, size_t size); + std::string* add_access_levels(); + void add_access_levels(const std::string& value); + void add_access_levels(std::string&& value); + void add_access_levels(const char* value); + void add_access_levels(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& access_levels() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_access_levels(); + private: + const std::string& _internal_access_levels(int index) const; + std::string* _internal_add_access_levels(); + public: + + // string principal = 1 [json_name = "principal"]; + void clear_principal(); + const std::string& principal() const; + template + void set_principal(ArgT0&& arg0, ArgT... args); + std::string* mutable_principal(); + PROTOBUF_NODISCARD std::string* release_principal(); + void set_allocated_principal(std::string* principal); + private: + const std::string& _internal_principal() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_principal(const std::string& value); + std::string* _internal_mutable_principal(); + public: + + // string presenter = 3 [json_name = "presenter"]; + void clear_presenter(); + const std::string& presenter() const; + template + void set_presenter(ArgT0&& arg0, ArgT... args); + std::string* mutable_presenter(); + PROTOBUF_NODISCARD std::string* release_presenter(); + void set_allocated_presenter(std::string* presenter); + private: + const std::string& _internal_presenter() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_presenter(const std::string& value); + std::string* _internal_mutable_presenter(); + public: + + // .google.protobuf.Struct claims = 4 [json_name = "claims"]; + bool has_claims() const; + private: + bool _internal_has_claims() const; + public: + void clear_claims(); + const ::PROTOBUF_NAMESPACE_ID::Struct& claims() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_claims(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_claims(); + void set_allocated_claims(::PROTOBUF_NAMESPACE_ID::Struct* claims); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_claims() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_claims(); + public: + void unsafe_arena_set_allocated_claims( + ::PROTOBUF_NAMESPACE_ID::Struct* claims); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_claims(); + + // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Auth) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField audiences_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField access_levels_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr principal_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr presenter_; + ::PROTOBUF_NAMESPACE_ID::Struct* claims_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; +}; +// ------------------------------------------------------------------- + +class AttributeContext_Request_HeadersEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + AttributeContext_Request_HeadersEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR AttributeContext_Request_HeadersEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit AttributeContext_Request_HeadersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const AttributeContext_Request_HeadersEntry_DoNotUse& other); + static const AttributeContext_Request_HeadersEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_AttributeContext_Request_HeadersEntry_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, "google.rpc.context.AttributeContext.Request.HeadersEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "google.rpc.context.AttributeContext.Request.HeadersEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; +}; + +// ------------------------------------------------------------------- + +class AttributeContext_Request final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.context.AttributeContext.Request) */ { + public: + inline AttributeContext_Request() : AttributeContext_Request(nullptr) {} + ~AttributeContext_Request() override; + explicit PROTOBUF_CONSTEXPR AttributeContext_Request(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AttributeContext_Request(const AttributeContext_Request& from); + AttributeContext_Request(AttributeContext_Request&& from) noexcept + : AttributeContext_Request() { + *this = ::std::move(from); + } + + inline AttributeContext_Request& operator=(const AttributeContext_Request& from) { + CopyFrom(from); + return *this; + } + inline AttributeContext_Request& operator=(AttributeContext_Request&& 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 AttributeContext_Request& default_instance() { + return *internal_default_instance(); + } + static inline const AttributeContext_Request* internal_default_instance() { + return reinterpret_cast( + &_AttributeContext_Request_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(AttributeContext_Request& a, AttributeContext_Request& b) { + a.Swap(&b); + } + inline void Swap(AttributeContext_Request* 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(AttributeContext_Request* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AttributeContext_Request* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AttributeContext_Request& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const AttributeContext_Request& from) { + AttributeContext_Request::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AttributeContext_Request* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.context.AttributeContext.Request"; + } + protected: + explicit AttributeContext_Request(::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 { + kHeadersFieldNumber = 3, + kIdFieldNumber = 1, + kMethodFieldNumber = 2, + kPathFieldNumber = 4, + kHostFieldNumber = 5, + kSchemeFieldNumber = 6, + kQueryFieldNumber = 7, + kProtocolFieldNumber = 11, + kReasonFieldNumber = 12, + kTimeFieldNumber = 9, + kAuthFieldNumber = 13, + kSizeFieldNumber = 10, + }; + // map headers = 3 [json_name = "headers"]; + int headers_size() const; + private: + int _internal_headers_size() const; + public: + void clear_headers(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_headers() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_headers(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + headers() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_headers(); + + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string method = 2 [json_name = "method"]; + void clear_method(); + const std::string& method() const; + template + void set_method(ArgT0&& arg0, ArgT... args); + std::string* mutable_method(); + PROTOBUF_NODISCARD std::string* release_method(); + void set_allocated_method(std::string* method); + private: + const std::string& _internal_method() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_method(const std::string& value); + std::string* _internal_mutable_method(); + public: + + // string path = 4 [json_name = "path"]; + void clear_path(); + const std::string& path() const; + template + void set_path(ArgT0&& arg0, ArgT... args); + std::string* mutable_path(); + PROTOBUF_NODISCARD std::string* release_path(); + void set_allocated_path(std::string* path); + private: + const std::string& _internal_path() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_path(const std::string& value); + std::string* _internal_mutable_path(); + public: + + // string host = 5 [json_name = "host"]; + void clear_host(); + const std::string& host() const; + template + void set_host(ArgT0&& arg0, ArgT... args); + std::string* mutable_host(); + PROTOBUF_NODISCARD std::string* release_host(); + void set_allocated_host(std::string* host); + private: + const std::string& _internal_host() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_host(const std::string& value); + std::string* _internal_mutable_host(); + public: + + // string scheme = 6 [json_name = "scheme"]; + void clear_scheme(); + const std::string& scheme() const; + template + void set_scheme(ArgT0&& arg0, ArgT... args); + std::string* mutable_scheme(); + PROTOBUF_NODISCARD std::string* release_scheme(); + void set_allocated_scheme(std::string* scheme); + private: + const std::string& _internal_scheme() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_scheme(const std::string& value); + std::string* _internal_mutable_scheme(); + public: + + // string query = 7 [json_name = "query"]; + void clear_query(); + const std::string& query() const; + template + void set_query(ArgT0&& arg0, ArgT... args); + std::string* mutable_query(); + PROTOBUF_NODISCARD std::string* release_query(); + void set_allocated_query(std::string* query); + private: + const std::string& _internal_query() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_query(const std::string& value); + std::string* _internal_mutable_query(); + public: + + // string protocol = 11 [json_name = "protocol"]; + void clear_protocol(); + const std::string& protocol() const; + template + void set_protocol(ArgT0&& arg0, ArgT... args); + std::string* mutable_protocol(); + PROTOBUF_NODISCARD std::string* release_protocol(); + void set_allocated_protocol(std::string* protocol); + private: + const std::string& _internal_protocol() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_protocol(const std::string& value); + std::string* _internal_mutable_protocol(); + public: + + // string reason = 12 [json_name = "reason"]; + void clear_reason(); + const std::string& reason() const; + template + void set_reason(ArgT0&& arg0, ArgT... args); + std::string* mutable_reason(); + PROTOBUF_NODISCARD std::string* release_reason(); + void set_allocated_reason(std::string* reason); + private: + const std::string& _internal_reason() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_reason(const std::string& value); + std::string* _internal_mutable_reason(); + public: + + // .google.protobuf.Timestamp time = 9 [json_name = "time"]; + bool has_time() const; + private: + bool _internal_has_time() const; + public: + void clear_time(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& time() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_time(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_time(); + void set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_time() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_time(); + public: + void unsafe_arena_set_allocated_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_time(); + + // .google.rpc.context.AttributeContext.Auth auth = 13 [json_name = "auth"]; + bool has_auth() const; + private: + bool _internal_has_auth() const; + public: + void clear_auth(); + const ::google::rpc::context::AttributeContext_Auth& auth() const; + PROTOBUF_NODISCARD ::google::rpc::context::AttributeContext_Auth* release_auth(); + ::google::rpc::context::AttributeContext_Auth* mutable_auth(); + void set_allocated_auth(::google::rpc::context::AttributeContext_Auth* auth); + private: + const ::google::rpc::context::AttributeContext_Auth& _internal_auth() const; + ::google::rpc::context::AttributeContext_Auth* _internal_mutable_auth(); + public: + void unsafe_arena_set_allocated_auth( + ::google::rpc::context::AttributeContext_Auth* auth); + ::google::rpc::context::AttributeContext_Auth* unsafe_arena_release_auth(); + + // int64 size = 10 [json_name = "size"]; + void clear_size(); + int64_t size() const; + void set_size(int64_t value); + private: + int64_t _internal_size() const; + void _internal_set_size(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Request) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + AttributeContext_Request_HeadersEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> headers_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr method_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr host_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr scheme_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr protocol_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reason_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_; + ::google::rpc::context::AttributeContext_Auth* auth_; + int64_t size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; +}; +// ------------------------------------------------------------------- + +class AttributeContext_Response_HeadersEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + AttributeContext_Response_HeadersEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR AttributeContext_Response_HeadersEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit AttributeContext_Response_HeadersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const AttributeContext_Response_HeadersEntry_DoNotUse& other); + static const AttributeContext_Response_HeadersEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_AttributeContext_Response_HeadersEntry_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, "google.rpc.context.AttributeContext.Response.HeadersEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "google.rpc.context.AttributeContext.Response.HeadersEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; +}; + +// ------------------------------------------------------------------- + +class AttributeContext_Response final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.context.AttributeContext.Response) */ { + public: + inline AttributeContext_Response() : AttributeContext_Response(nullptr) {} + ~AttributeContext_Response() override; + explicit PROTOBUF_CONSTEXPR AttributeContext_Response(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AttributeContext_Response(const AttributeContext_Response& from); + AttributeContext_Response(AttributeContext_Response&& from) noexcept + : AttributeContext_Response() { + *this = ::std::move(from); + } + + inline AttributeContext_Response& operator=(const AttributeContext_Response& from) { + CopyFrom(from); + return *this; + } + inline AttributeContext_Response& operator=(AttributeContext_Response&& 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 AttributeContext_Response& default_instance() { + return *internal_default_instance(); + } + static inline const AttributeContext_Response* internal_default_instance() { + return reinterpret_cast( + &_AttributeContext_Response_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(AttributeContext_Response& a, AttributeContext_Response& b) { + a.Swap(&b); + } + inline void Swap(AttributeContext_Response* 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(AttributeContext_Response* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AttributeContext_Response* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AttributeContext_Response& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const AttributeContext_Response& from) { + AttributeContext_Response::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AttributeContext_Response* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.context.AttributeContext.Response"; + } + protected: + explicit AttributeContext_Response(::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 { + kHeadersFieldNumber = 3, + kTimeFieldNumber = 4, + kBackendLatencyFieldNumber = 5, + kCodeFieldNumber = 1, + kSizeFieldNumber = 2, + }; + // map headers = 3 [json_name = "headers"]; + int headers_size() const; + private: + int _internal_headers_size() const; + public: + void clear_headers(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_headers() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_headers(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + headers() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_headers(); + + // .google.protobuf.Timestamp time = 4 [json_name = "time"]; + bool has_time() const; + private: + bool _internal_has_time() const; + public: + void clear_time(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& time() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_time(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_time(); + void set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_time() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_time(); + public: + void unsafe_arena_set_allocated_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_time(); + + // .google.protobuf.Duration backend_latency = 5 [json_name = "backendLatency"]; + bool has_backend_latency() const; + private: + bool _internal_has_backend_latency() const; + public: + void clear_backend_latency(); + const ::PROTOBUF_NAMESPACE_ID::Duration& backend_latency() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_backend_latency(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_backend_latency(); + void set_allocated_backend_latency(::PROTOBUF_NAMESPACE_ID::Duration* backend_latency); + private: + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_backend_latency() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_backend_latency(); + public: + void unsafe_arena_set_allocated_backend_latency( + ::PROTOBUF_NAMESPACE_ID::Duration* backend_latency); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_backend_latency(); + + // int64 code = 1 [json_name = "code"]; + void clear_code(); + int64_t code() const; + void set_code(int64_t value); + private: + int64_t _internal_code() const; + void _internal_set_code(int64_t value); + public: + + // int64 size = 2 [json_name = "size"]; + void clear_size(); + int64_t size() const; + void set_size(int64_t value); + private: + int64_t _internal_size() const; + void _internal_set_size(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Response) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + AttributeContext_Response_HeadersEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> headers_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_; + ::PROTOBUF_NAMESPACE_ID::Duration* backend_latency_; + int64_t code_; + int64_t size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; +}; +// ------------------------------------------------------------------- + +class AttributeContext_Resource_LabelsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + AttributeContext_Resource_LabelsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR AttributeContext_Resource_LabelsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit AttributeContext_Resource_LabelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const AttributeContext_Resource_LabelsEntry_DoNotUse& other); + static const AttributeContext_Resource_LabelsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_AttributeContext_Resource_LabelsEntry_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, "google.rpc.context.AttributeContext.Resource.LabelsEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "google.rpc.context.AttributeContext.Resource.LabelsEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; +}; + +// ------------------------------------------------------------------- + +class AttributeContext_Resource_AnnotationsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + AttributeContext_Resource_AnnotationsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR AttributeContext_Resource_AnnotationsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit AttributeContext_Resource_AnnotationsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const AttributeContext_Resource_AnnotationsEntry_DoNotUse& other); + static const AttributeContext_Resource_AnnotationsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_AttributeContext_Resource_AnnotationsEntry_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, "google.rpc.context.AttributeContext.Resource.AnnotationsEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "google.rpc.context.AttributeContext.Resource.AnnotationsEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; +}; + +// ------------------------------------------------------------------- + +class AttributeContext_Resource final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.context.AttributeContext.Resource) */ { + public: + inline AttributeContext_Resource() : AttributeContext_Resource(nullptr) {} + ~AttributeContext_Resource() override; + explicit PROTOBUF_CONSTEXPR AttributeContext_Resource(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AttributeContext_Resource(const AttributeContext_Resource& from); + AttributeContext_Resource(AttributeContext_Resource&& from) noexcept + : AttributeContext_Resource() { + *this = ::std::move(from); + } + + inline AttributeContext_Resource& operator=(const AttributeContext_Resource& from) { + CopyFrom(from); + return *this; + } + inline AttributeContext_Resource& operator=(AttributeContext_Resource&& 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 AttributeContext_Resource& default_instance() { + return *internal_default_instance(); + } + static inline const AttributeContext_Resource* internal_default_instance() { + return reinterpret_cast( + &_AttributeContext_Resource_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(AttributeContext_Resource& a, AttributeContext_Resource& b) { + a.Swap(&b); + } + inline void Swap(AttributeContext_Resource* 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(AttributeContext_Resource* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AttributeContext_Resource* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AttributeContext_Resource& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const AttributeContext_Resource& from) { + AttributeContext_Resource::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AttributeContext_Resource* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.context.AttributeContext.Resource"; + } + protected: + explicit AttributeContext_Resource(::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 { + kLabelsFieldNumber = 4, + kAnnotationsFieldNumber = 6, + kServiceFieldNumber = 1, + kNameFieldNumber = 2, + kTypeFieldNumber = 3, + kUidFieldNumber = 5, + kDisplayNameFieldNumber = 7, + kEtagFieldNumber = 11, + kLocationFieldNumber = 12, + kCreateTimeFieldNumber = 8, + kUpdateTimeFieldNumber = 9, + kDeleteTimeFieldNumber = 10, + }; + // map labels = 4 [json_name = "labels"]; + int labels_size() const; + private: + int _internal_labels_size() const; + public: + void clear_labels(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_labels() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_labels(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + labels() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_labels(); + + // map annotations = 6 [json_name = "annotations"]; + int annotations_size() const; + private: + int _internal_annotations_size() const; + public: + void clear_annotations(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_annotations() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_annotations(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + annotations() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_annotations(); + + // string service = 1 [json_name = "service"]; + void clear_service(); + const std::string& service() const; + template + void set_service(ArgT0&& arg0, ArgT... args); + std::string* mutable_service(); + PROTOBUF_NODISCARD std::string* release_service(); + void set_allocated_service(std::string* service); + private: + const std::string& _internal_service() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_service(const std::string& value); + std::string* _internal_mutable_service(); + public: + + // string name = 2 [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 type = 3 [json_name = "type"]; + void clear_type(); + const std::string& type() const; + template + void set_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_type(); + PROTOBUF_NODISCARD std::string* release_type(); + void set_allocated_type(std::string* type); + private: + const std::string& _internal_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); + std::string* _internal_mutable_type(); + public: + + // string uid = 5 [json_name = "uid"]; + void clear_uid(); + const std::string& uid() const; + template + void set_uid(ArgT0&& arg0, ArgT... args); + std::string* mutable_uid(); + PROTOBUF_NODISCARD std::string* release_uid(); + void set_allocated_uid(std::string* uid); + private: + const std::string& _internal_uid() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_uid(const std::string& value); + std::string* _internal_mutable_uid(); + public: + + // string display_name = 7 [json_name = "displayName"]; + void clear_display_name(); + const std::string& display_name() const; + template + void set_display_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_display_name(); + PROTOBUF_NODISCARD std::string* release_display_name(); + void set_allocated_display_name(std::string* display_name); + private: + const std::string& _internal_display_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_display_name(const std::string& value); + std::string* _internal_mutable_display_name(); + public: + + // string etag = 11 [json_name = "etag"]; + void clear_etag(); + const std::string& etag() const; + template + void set_etag(ArgT0&& arg0, ArgT... args); + std::string* mutable_etag(); + PROTOBUF_NODISCARD std::string* release_etag(); + void set_allocated_etag(std::string* etag); + private: + const std::string& _internal_etag() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_etag(const std::string& value); + std::string* _internal_mutable_etag(); + public: + + // string location = 12 [json_name = "location"]; + void clear_location(); + const std::string& location() const; + template + void set_location(ArgT0&& arg0, ArgT... args); + std::string* mutable_location(); + PROTOBUF_NODISCARD std::string* release_location(); + void set_allocated_location(std::string* location); + private: + const std::string& _internal_location() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location(const std::string& value); + std::string* _internal_mutable_location(); + public: + + // .google.protobuf.Timestamp create_time = 8 [json_name = "createTime"]; + bool has_create_time() const; + private: + bool _internal_has_create_time() const; + public: + void clear_create_time(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& create_time() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_create_time(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_create_time(); + void set_allocated_create_time(::PROTOBUF_NAMESPACE_ID::Timestamp* create_time); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_create_time() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_create_time(); + public: + void unsafe_arena_set_allocated_create_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* create_time); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_create_time(); + + // .google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"]; + bool has_update_time() const; + private: + bool _internal_has_update_time() const; + public: + void clear_update_time(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& update_time() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_update_time(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_update_time(); + void set_allocated_update_time(::PROTOBUF_NAMESPACE_ID::Timestamp* update_time); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_update_time() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_update_time(); + public: + void unsafe_arena_set_allocated_update_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* update_time); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_update_time(); + + // .google.protobuf.Timestamp delete_time = 10 [json_name = "deleteTime"]; + bool has_delete_time() const; + private: + bool _internal_has_delete_time() const; + public: + void clear_delete_time(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& delete_time() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_delete_time(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_delete_time(); + void set_allocated_delete_time(::PROTOBUF_NAMESPACE_ID::Timestamp* delete_time); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_delete_time() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_delete_time(); + public: + void unsafe_arena_set_allocated_delete_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* delete_time); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_delete_time(); + + // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Resource) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + AttributeContext_Resource_LabelsEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> labels_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + AttributeContext_Resource_AnnotationsEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> annotations_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr display_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr etag_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* create_time_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* update_time_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* delete_time_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; +}; +// ------------------------------------------------------------------- + +class AttributeContext final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.context.AttributeContext) */ { + public: + inline AttributeContext() : AttributeContext(nullptr) {} + ~AttributeContext() override; + explicit PROTOBUF_CONSTEXPR AttributeContext(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AttributeContext(const AttributeContext& from); + AttributeContext(AttributeContext&& from) noexcept + : AttributeContext() { + *this = ::std::move(from); + } + + inline AttributeContext& operator=(const AttributeContext& from) { + CopyFrom(from); + return *this; + } + inline AttributeContext& operator=(AttributeContext&& 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 AttributeContext& default_instance() { + return *internal_default_instance(); + } + static inline const AttributeContext* internal_default_instance() { + return reinterpret_cast( + &_AttributeContext_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(AttributeContext& a, AttributeContext& b) { + a.Swap(&b); + } + inline void Swap(AttributeContext* 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(AttributeContext* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AttributeContext* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AttributeContext& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const AttributeContext& from) { + AttributeContext::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AttributeContext* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.context.AttributeContext"; + } + protected: + explicit AttributeContext(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef AttributeContext_Peer Peer; + typedef AttributeContext_Api Api; + typedef AttributeContext_Auth Auth; + typedef AttributeContext_Request Request; + typedef AttributeContext_Response Response; + typedef AttributeContext_Resource Resource; + + // accessors ------------------------------------------------------- + + enum : int { + kExtensionsFieldNumber = 8, + kSourceFieldNumber = 1, + kDestinationFieldNumber = 2, + kRequestFieldNumber = 3, + kResponseFieldNumber = 4, + kResourceFieldNumber = 5, + kApiFieldNumber = 6, + kOriginFieldNumber = 7, + }; + // repeated .google.protobuf.Any extensions = 8 [json_name = "extensions"]; + int extensions_size() const; + private: + int _internal_extensions_size() const; + public: + void clear_extensions(); + ::PROTOBUF_NAMESPACE_ID::Any* mutable_extensions(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >* + mutable_extensions(); + private: + const ::PROTOBUF_NAMESPACE_ID::Any& _internal_extensions(int index) const; + ::PROTOBUF_NAMESPACE_ID::Any* _internal_add_extensions(); + public: + const ::PROTOBUF_NAMESPACE_ID::Any& extensions(int index) const; + ::PROTOBUF_NAMESPACE_ID::Any* add_extensions(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >& + extensions() const; + + // .google.rpc.context.AttributeContext.Peer source = 1 [json_name = "source"]; + bool has_source() const; + private: + bool _internal_has_source() const; + public: + void clear_source(); + const ::google::rpc::context::AttributeContext_Peer& source() const; + PROTOBUF_NODISCARD ::google::rpc::context::AttributeContext_Peer* release_source(); + ::google::rpc::context::AttributeContext_Peer* mutable_source(); + void set_allocated_source(::google::rpc::context::AttributeContext_Peer* source); + private: + const ::google::rpc::context::AttributeContext_Peer& _internal_source() const; + ::google::rpc::context::AttributeContext_Peer* _internal_mutable_source(); + public: + void unsafe_arena_set_allocated_source( + ::google::rpc::context::AttributeContext_Peer* source); + ::google::rpc::context::AttributeContext_Peer* unsafe_arena_release_source(); + + // .google.rpc.context.AttributeContext.Peer destination = 2 [json_name = "destination"]; + bool has_destination() const; + private: + bool _internal_has_destination() const; + public: + void clear_destination(); + const ::google::rpc::context::AttributeContext_Peer& destination() const; + PROTOBUF_NODISCARD ::google::rpc::context::AttributeContext_Peer* release_destination(); + ::google::rpc::context::AttributeContext_Peer* mutable_destination(); + void set_allocated_destination(::google::rpc::context::AttributeContext_Peer* destination); + private: + const ::google::rpc::context::AttributeContext_Peer& _internal_destination() const; + ::google::rpc::context::AttributeContext_Peer* _internal_mutable_destination(); + public: + void unsafe_arena_set_allocated_destination( + ::google::rpc::context::AttributeContext_Peer* destination); + ::google::rpc::context::AttributeContext_Peer* unsafe_arena_release_destination(); + + // .google.rpc.context.AttributeContext.Request request = 3 [json_name = "request"]; + bool has_request() const; + private: + bool _internal_has_request() const; + public: + void clear_request(); + const ::google::rpc::context::AttributeContext_Request& request() const; + PROTOBUF_NODISCARD ::google::rpc::context::AttributeContext_Request* release_request(); + ::google::rpc::context::AttributeContext_Request* mutable_request(); + void set_allocated_request(::google::rpc::context::AttributeContext_Request* request); + private: + const ::google::rpc::context::AttributeContext_Request& _internal_request() const; + ::google::rpc::context::AttributeContext_Request* _internal_mutable_request(); + public: + void unsafe_arena_set_allocated_request( + ::google::rpc::context::AttributeContext_Request* request); + ::google::rpc::context::AttributeContext_Request* unsafe_arena_release_request(); + + // .google.rpc.context.AttributeContext.Response response = 4 [json_name = "response"]; + bool has_response() const; + private: + bool _internal_has_response() const; + public: + void clear_response(); + const ::google::rpc::context::AttributeContext_Response& response() const; + PROTOBUF_NODISCARD ::google::rpc::context::AttributeContext_Response* release_response(); + ::google::rpc::context::AttributeContext_Response* mutable_response(); + void set_allocated_response(::google::rpc::context::AttributeContext_Response* response); + private: + const ::google::rpc::context::AttributeContext_Response& _internal_response() const; + ::google::rpc::context::AttributeContext_Response* _internal_mutable_response(); + public: + void unsafe_arena_set_allocated_response( + ::google::rpc::context::AttributeContext_Response* response); + ::google::rpc::context::AttributeContext_Response* unsafe_arena_release_response(); + + // .google.rpc.context.AttributeContext.Resource resource = 5 [json_name = "resource"]; + bool has_resource() const; + private: + bool _internal_has_resource() const; + public: + void clear_resource(); + const ::google::rpc::context::AttributeContext_Resource& resource() const; + PROTOBUF_NODISCARD ::google::rpc::context::AttributeContext_Resource* release_resource(); + ::google::rpc::context::AttributeContext_Resource* mutable_resource(); + void set_allocated_resource(::google::rpc::context::AttributeContext_Resource* resource); + private: + const ::google::rpc::context::AttributeContext_Resource& _internal_resource() const; + ::google::rpc::context::AttributeContext_Resource* _internal_mutable_resource(); + public: + void unsafe_arena_set_allocated_resource( + ::google::rpc::context::AttributeContext_Resource* resource); + ::google::rpc::context::AttributeContext_Resource* unsafe_arena_release_resource(); + + // .google.rpc.context.AttributeContext.Api api = 6 [json_name = "api"]; + bool has_api() const; + private: + bool _internal_has_api() const; + public: + void clear_api(); + const ::google::rpc::context::AttributeContext_Api& api() const; + PROTOBUF_NODISCARD ::google::rpc::context::AttributeContext_Api* release_api(); + ::google::rpc::context::AttributeContext_Api* mutable_api(); + void set_allocated_api(::google::rpc::context::AttributeContext_Api* api); + private: + const ::google::rpc::context::AttributeContext_Api& _internal_api() const; + ::google::rpc::context::AttributeContext_Api* _internal_mutable_api(); + public: + void unsafe_arena_set_allocated_api( + ::google::rpc::context::AttributeContext_Api* api); + ::google::rpc::context::AttributeContext_Api* unsafe_arena_release_api(); + + // .google.rpc.context.AttributeContext.Peer origin = 7 [json_name = "origin"]; + bool has_origin() const; + private: + bool _internal_has_origin() const; + public: + void clear_origin(); + const ::google::rpc::context::AttributeContext_Peer& origin() const; + PROTOBUF_NODISCARD ::google::rpc::context::AttributeContext_Peer* release_origin(); + ::google::rpc::context::AttributeContext_Peer* mutable_origin(); + void set_allocated_origin(::google::rpc::context::AttributeContext_Peer* origin); + private: + const ::google::rpc::context::AttributeContext_Peer& _internal_origin() const; + ::google::rpc::context::AttributeContext_Peer* _internal_mutable_origin(); + public: + void unsafe_arena_set_allocated_origin( + ::google::rpc::context::AttributeContext_Peer* origin); + ::google::rpc::context::AttributeContext_Peer* unsafe_arena_release_origin(); + + // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any > extensions_; + ::google::rpc::context::AttributeContext_Peer* source_; + ::google::rpc::context::AttributeContext_Peer* destination_; + ::google::rpc::context::AttributeContext_Request* request_; + ::google::rpc::context::AttributeContext_Response* response_; + ::google::rpc::context::AttributeContext_Resource* resource_; + ::google::rpc::context::AttributeContext_Api* api_; + ::google::rpc::context::AttributeContext_Peer* origin_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// AttributeContext_Peer + +// string ip = 1 [json_name = "ip"]; +inline void AttributeContext_Peer::clear_ip() { + _impl_.ip_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Peer::ip() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Peer.ip) + return _internal_ip(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Peer::set_ip(ArgT0&& arg0, ArgT... args) { + + _impl_.ip_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Peer.ip) +} +inline std::string* AttributeContext_Peer::mutable_ip() { + std::string* _s = _internal_mutable_ip(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Peer.ip) + return _s; +} +inline const std::string& AttributeContext_Peer::_internal_ip() const { + return _impl_.ip_.Get(); +} +inline void AttributeContext_Peer::_internal_set_ip(const std::string& value) { + + _impl_.ip_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Peer::_internal_mutable_ip() { + + return _impl_.ip_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Peer::release_ip() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Peer.ip) + return _impl_.ip_.Release(); +} +inline void AttributeContext_Peer::set_allocated_ip(std::string* ip) { + if (ip != nullptr) { + + } else { + + } + _impl_.ip_.SetAllocated(ip, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.ip_.IsDefault()) { + _impl_.ip_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Peer.ip) +} + +// int64 port = 2 [json_name = "port"]; +inline void AttributeContext_Peer::clear_port() { + _impl_.port_ = int64_t{0}; +} +inline int64_t AttributeContext_Peer::_internal_port() const { + return _impl_.port_; +} +inline int64_t AttributeContext_Peer::port() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Peer.port) + return _internal_port(); +} +inline void AttributeContext_Peer::_internal_set_port(int64_t value) { + + _impl_.port_ = value; +} +inline void AttributeContext_Peer::set_port(int64_t value) { + _internal_set_port(value); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Peer.port) +} + +// map labels = 6 [json_name = "labels"]; +inline int AttributeContext_Peer::_internal_labels_size() const { + return _impl_.labels_.size(); +} +inline int AttributeContext_Peer::labels_size() const { + return _internal_labels_size(); +} +inline void AttributeContext_Peer::clear_labels() { + _impl_.labels_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AttributeContext_Peer::_internal_labels() const { + return _impl_.labels_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AttributeContext_Peer::labels() const { + // @@protoc_insertion_point(field_map:google.rpc.context.AttributeContext.Peer.labels) + return _internal_labels(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AttributeContext_Peer::_internal_mutable_labels() { + return _impl_.labels_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AttributeContext_Peer::mutable_labels() { + // @@protoc_insertion_point(field_mutable_map:google.rpc.context.AttributeContext.Peer.labels) + return _internal_mutable_labels(); +} + +// string principal = 7 [json_name = "principal"]; +inline void AttributeContext_Peer::clear_principal() { + _impl_.principal_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Peer::principal() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Peer.principal) + return _internal_principal(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Peer::set_principal(ArgT0&& arg0, ArgT... args) { + + _impl_.principal_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Peer.principal) +} +inline std::string* AttributeContext_Peer::mutable_principal() { + std::string* _s = _internal_mutable_principal(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Peer.principal) + return _s; +} +inline const std::string& AttributeContext_Peer::_internal_principal() const { + return _impl_.principal_.Get(); +} +inline void AttributeContext_Peer::_internal_set_principal(const std::string& value) { + + _impl_.principal_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Peer::_internal_mutable_principal() { + + return _impl_.principal_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Peer::release_principal() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Peer.principal) + return _impl_.principal_.Release(); +} +inline void AttributeContext_Peer::set_allocated_principal(std::string* principal) { + if (principal != nullptr) { + + } else { + + } + _impl_.principal_.SetAllocated(principal, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.principal_.IsDefault()) { + _impl_.principal_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Peer.principal) +} + +// string region_code = 8 [json_name = "regionCode"]; +inline void AttributeContext_Peer::clear_region_code() { + _impl_.region_code_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Peer::region_code() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Peer.region_code) + return _internal_region_code(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Peer::set_region_code(ArgT0&& arg0, ArgT... args) { + + _impl_.region_code_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Peer.region_code) +} +inline std::string* AttributeContext_Peer::mutable_region_code() { + std::string* _s = _internal_mutable_region_code(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Peer.region_code) + return _s; +} +inline const std::string& AttributeContext_Peer::_internal_region_code() const { + return _impl_.region_code_.Get(); +} +inline void AttributeContext_Peer::_internal_set_region_code(const std::string& value) { + + _impl_.region_code_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Peer::_internal_mutable_region_code() { + + return _impl_.region_code_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Peer::release_region_code() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Peer.region_code) + return _impl_.region_code_.Release(); +} +inline void AttributeContext_Peer::set_allocated_region_code(std::string* region_code) { + if (region_code != nullptr) { + + } else { + + } + _impl_.region_code_.SetAllocated(region_code, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.region_code_.IsDefault()) { + _impl_.region_code_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Peer.region_code) +} + +// ------------------------------------------------------------------- + +// AttributeContext_Api + +// string service = 1 [json_name = "service"]; +inline void AttributeContext_Api::clear_service() { + _impl_.service_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Api::service() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Api.service) + return _internal_service(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Api::set_service(ArgT0&& arg0, ArgT... args) { + + _impl_.service_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Api.service) +} +inline std::string* AttributeContext_Api::mutable_service() { + std::string* _s = _internal_mutable_service(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Api.service) + return _s; +} +inline const std::string& AttributeContext_Api::_internal_service() const { + return _impl_.service_.Get(); +} +inline void AttributeContext_Api::_internal_set_service(const std::string& value) { + + _impl_.service_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Api::_internal_mutable_service() { + + return _impl_.service_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Api::release_service() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Api.service) + return _impl_.service_.Release(); +} +inline void AttributeContext_Api::set_allocated_service(std::string* service) { + if (service != nullptr) { + + } else { + + } + _impl_.service_.SetAllocated(service, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.service_.IsDefault()) { + _impl_.service_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Api.service) +} + +// string operation = 2 [json_name = "operation"]; +inline void AttributeContext_Api::clear_operation() { + _impl_.operation_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Api::operation() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Api.operation) + return _internal_operation(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Api::set_operation(ArgT0&& arg0, ArgT... args) { + + _impl_.operation_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Api.operation) +} +inline std::string* AttributeContext_Api::mutable_operation() { + std::string* _s = _internal_mutable_operation(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Api.operation) + return _s; +} +inline const std::string& AttributeContext_Api::_internal_operation() const { + return _impl_.operation_.Get(); +} +inline void AttributeContext_Api::_internal_set_operation(const std::string& value) { + + _impl_.operation_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Api::_internal_mutable_operation() { + + return _impl_.operation_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Api::release_operation() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Api.operation) + return _impl_.operation_.Release(); +} +inline void AttributeContext_Api::set_allocated_operation(std::string* operation) { + if (operation != nullptr) { + + } else { + + } + _impl_.operation_.SetAllocated(operation, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.operation_.IsDefault()) { + _impl_.operation_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Api.operation) +} + +// string protocol = 3 [json_name = "protocol"]; +inline void AttributeContext_Api::clear_protocol() { + _impl_.protocol_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Api::protocol() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Api.protocol) + return _internal_protocol(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Api::set_protocol(ArgT0&& arg0, ArgT... args) { + + _impl_.protocol_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Api.protocol) +} +inline std::string* AttributeContext_Api::mutable_protocol() { + std::string* _s = _internal_mutable_protocol(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Api.protocol) + return _s; +} +inline const std::string& AttributeContext_Api::_internal_protocol() const { + return _impl_.protocol_.Get(); +} +inline void AttributeContext_Api::_internal_set_protocol(const std::string& value) { + + _impl_.protocol_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Api::_internal_mutable_protocol() { + + return _impl_.protocol_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Api::release_protocol() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Api.protocol) + return _impl_.protocol_.Release(); +} +inline void AttributeContext_Api::set_allocated_protocol(std::string* protocol) { + if (protocol != nullptr) { + + } else { + + } + _impl_.protocol_.SetAllocated(protocol, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.protocol_.IsDefault()) { + _impl_.protocol_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Api.protocol) +} + +// string version = 4 [json_name = "version"]; +inline void AttributeContext_Api::clear_version() { + _impl_.version_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Api::version() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Api.version) + return _internal_version(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Api::set_version(ArgT0&& arg0, ArgT... args) { + + _impl_.version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Api.version) +} +inline std::string* AttributeContext_Api::mutable_version() { + std::string* _s = _internal_mutable_version(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Api.version) + return _s; +} +inline const std::string& AttributeContext_Api::_internal_version() const { + return _impl_.version_.Get(); +} +inline void AttributeContext_Api::_internal_set_version(const std::string& value) { + + _impl_.version_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Api::_internal_mutable_version() { + + return _impl_.version_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Api::release_version() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Api.version) + return _impl_.version_.Release(); +} +inline void AttributeContext_Api::set_allocated_version(std::string* version) { + if (version != nullptr) { + + } else { + + } + _impl_.version_.SetAllocated(version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.version_.IsDefault()) { + _impl_.version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Api.version) +} + +// ------------------------------------------------------------------- + +// AttributeContext_Auth + +// string principal = 1 [json_name = "principal"]; +inline void AttributeContext_Auth::clear_principal() { + _impl_.principal_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Auth::principal() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Auth.principal) + return _internal_principal(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Auth::set_principal(ArgT0&& arg0, ArgT... args) { + + _impl_.principal_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Auth.principal) +} +inline std::string* AttributeContext_Auth::mutable_principal() { + std::string* _s = _internal_mutable_principal(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Auth.principal) + return _s; +} +inline const std::string& AttributeContext_Auth::_internal_principal() const { + return _impl_.principal_.Get(); +} +inline void AttributeContext_Auth::_internal_set_principal(const std::string& value) { + + _impl_.principal_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Auth::_internal_mutable_principal() { + + return _impl_.principal_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Auth::release_principal() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Auth.principal) + return _impl_.principal_.Release(); +} +inline void AttributeContext_Auth::set_allocated_principal(std::string* principal) { + if (principal != nullptr) { + + } else { + + } + _impl_.principal_.SetAllocated(principal, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.principal_.IsDefault()) { + _impl_.principal_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Auth.principal) +} + +// repeated string audiences = 2 [json_name = "audiences"]; +inline int AttributeContext_Auth::_internal_audiences_size() const { + return _impl_.audiences_.size(); +} +inline int AttributeContext_Auth::audiences_size() const { + return _internal_audiences_size(); +} +inline void AttributeContext_Auth::clear_audiences() { + _impl_.audiences_.Clear(); +} +inline std::string* AttributeContext_Auth::add_audiences() { + std::string* _s = _internal_add_audiences(); + // @@protoc_insertion_point(field_add_mutable:google.rpc.context.AttributeContext.Auth.audiences) + return _s; +} +inline const std::string& AttributeContext_Auth::_internal_audiences(int index) const { + return _impl_.audiences_.Get(index); +} +inline const std::string& AttributeContext_Auth::audiences(int index) const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Auth.audiences) + return _internal_audiences(index); +} +inline std::string* AttributeContext_Auth::mutable_audiences(int index) { + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Auth.audiences) + return _impl_.audiences_.Mutable(index); +} +inline void AttributeContext_Auth::set_audiences(int index, const std::string& value) { + _impl_.audiences_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Auth.audiences) +} +inline void AttributeContext_Auth::set_audiences(int index, std::string&& value) { + _impl_.audiences_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Auth.audiences) +} +inline void AttributeContext_Auth::set_audiences(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.audiences_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:google.rpc.context.AttributeContext.Auth.audiences) +} +inline void AttributeContext_Auth::set_audiences(int index, const char* value, size_t size) { + _impl_.audiences_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:google.rpc.context.AttributeContext.Auth.audiences) +} +inline std::string* AttributeContext_Auth::_internal_add_audiences() { + return _impl_.audiences_.Add(); +} +inline void AttributeContext_Auth::add_audiences(const std::string& value) { + _impl_.audiences_.Add()->assign(value); + // @@protoc_insertion_point(field_add:google.rpc.context.AttributeContext.Auth.audiences) +} +inline void AttributeContext_Auth::add_audiences(std::string&& value) { + _impl_.audiences_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:google.rpc.context.AttributeContext.Auth.audiences) +} +inline void AttributeContext_Auth::add_audiences(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.audiences_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:google.rpc.context.AttributeContext.Auth.audiences) +} +inline void AttributeContext_Auth::add_audiences(const char* value, size_t size) { + _impl_.audiences_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:google.rpc.context.AttributeContext.Auth.audiences) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +AttributeContext_Auth::audiences() const { + // @@protoc_insertion_point(field_list:google.rpc.context.AttributeContext.Auth.audiences) + return _impl_.audiences_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +AttributeContext_Auth::mutable_audiences() { + // @@protoc_insertion_point(field_mutable_list:google.rpc.context.AttributeContext.Auth.audiences) + return &_impl_.audiences_; +} + +// string presenter = 3 [json_name = "presenter"]; +inline void AttributeContext_Auth::clear_presenter() { + _impl_.presenter_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Auth::presenter() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Auth.presenter) + return _internal_presenter(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Auth::set_presenter(ArgT0&& arg0, ArgT... args) { + + _impl_.presenter_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Auth.presenter) +} +inline std::string* AttributeContext_Auth::mutable_presenter() { + std::string* _s = _internal_mutable_presenter(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Auth.presenter) + return _s; +} +inline const std::string& AttributeContext_Auth::_internal_presenter() const { + return _impl_.presenter_.Get(); +} +inline void AttributeContext_Auth::_internal_set_presenter(const std::string& value) { + + _impl_.presenter_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Auth::_internal_mutable_presenter() { + + return _impl_.presenter_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Auth::release_presenter() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Auth.presenter) + return _impl_.presenter_.Release(); +} +inline void AttributeContext_Auth::set_allocated_presenter(std::string* presenter) { + if (presenter != nullptr) { + + } else { + + } + _impl_.presenter_.SetAllocated(presenter, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.presenter_.IsDefault()) { + _impl_.presenter_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Auth.presenter) +} + +// .google.protobuf.Struct claims = 4 [json_name = "claims"]; +inline bool AttributeContext_Auth::_internal_has_claims() const { + return this != internal_default_instance() && _impl_.claims_ != nullptr; +} +inline bool AttributeContext_Auth::has_claims() const { + return _internal_has_claims(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& AttributeContext_Auth::_internal_claims() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.claims_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& AttributeContext_Auth::claims() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Auth.claims) + return _internal_claims(); +} +inline void AttributeContext_Auth::unsafe_arena_set_allocated_claims( + ::PROTOBUF_NAMESPACE_ID::Struct* claims) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.claims_); + } + _impl_.claims_ = claims; + if (claims) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.Auth.claims) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* AttributeContext_Auth::release_claims() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.claims_; + _impl_.claims_ = 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* AttributeContext_Auth::unsafe_arena_release_claims() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Auth.claims) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.claims_; + _impl_.claims_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* AttributeContext_Auth::_internal_mutable_claims() { + + if (_impl_.claims_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.claims_ = p; + } + return _impl_.claims_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* AttributeContext_Auth::mutable_claims() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_claims(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Auth.claims) + return _msg; +} +inline void AttributeContext_Auth::set_allocated_claims(::PROTOBUF_NAMESPACE_ID::Struct* claims) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.claims_); + } + if (claims) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(claims)); + if (message_arena != submessage_arena) { + claims = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, claims, submessage_arena); + } + + } else { + + } + _impl_.claims_ = claims; + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Auth.claims) +} + +// repeated string access_levels = 5 [json_name = "accessLevels"]; +inline int AttributeContext_Auth::_internal_access_levels_size() const { + return _impl_.access_levels_.size(); +} +inline int AttributeContext_Auth::access_levels_size() const { + return _internal_access_levels_size(); +} +inline void AttributeContext_Auth::clear_access_levels() { + _impl_.access_levels_.Clear(); +} +inline std::string* AttributeContext_Auth::add_access_levels() { + std::string* _s = _internal_add_access_levels(); + // @@protoc_insertion_point(field_add_mutable:google.rpc.context.AttributeContext.Auth.access_levels) + return _s; +} +inline const std::string& AttributeContext_Auth::_internal_access_levels(int index) const { + return _impl_.access_levels_.Get(index); +} +inline const std::string& AttributeContext_Auth::access_levels(int index) const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Auth.access_levels) + return _internal_access_levels(index); +} +inline std::string* AttributeContext_Auth::mutable_access_levels(int index) { + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Auth.access_levels) + return _impl_.access_levels_.Mutable(index); +} +inline void AttributeContext_Auth::set_access_levels(int index, const std::string& value) { + _impl_.access_levels_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Auth.access_levels) +} +inline void AttributeContext_Auth::set_access_levels(int index, std::string&& value) { + _impl_.access_levels_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Auth.access_levels) +} +inline void AttributeContext_Auth::set_access_levels(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.access_levels_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:google.rpc.context.AttributeContext.Auth.access_levels) +} +inline void AttributeContext_Auth::set_access_levels(int index, const char* value, size_t size) { + _impl_.access_levels_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:google.rpc.context.AttributeContext.Auth.access_levels) +} +inline std::string* AttributeContext_Auth::_internal_add_access_levels() { + return _impl_.access_levels_.Add(); +} +inline void AttributeContext_Auth::add_access_levels(const std::string& value) { + _impl_.access_levels_.Add()->assign(value); + // @@protoc_insertion_point(field_add:google.rpc.context.AttributeContext.Auth.access_levels) +} +inline void AttributeContext_Auth::add_access_levels(std::string&& value) { + _impl_.access_levels_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:google.rpc.context.AttributeContext.Auth.access_levels) +} +inline void AttributeContext_Auth::add_access_levels(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.access_levels_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:google.rpc.context.AttributeContext.Auth.access_levels) +} +inline void AttributeContext_Auth::add_access_levels(const char* value, size_t size) { + _impl_.access_levels_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:google.rpc.context.AttributeContext.Auth.access_levels) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +AttributeContext_Auth::access_levels() const { + // @@protoc_insertion_point(field_list:google.rpc.context.AttributeContext.Auth.access_levels) + return _impl_.access_levels_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +AttributeContext_Auth::mutable_access_levels() { + // @@protoc_insertion_point(field_mutable_list:google.rpc.context.AttributeContext.Auth.access_levels) + return &_impl_.access_levels_; +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// AttributeContext_Request + +// string id = 1 [json_name = "id"]; +inline void AttributeContext_Request::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Request::id() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Request::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Request.id) +} +inline std::string* AttributeContext_Request::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Request.id) + return _s; +} +inline const std::string& AttributeContext_Request::_internal_id() const { + return _impl_.id_.Get(); +} +inline void AttributeContext_Request::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Request::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Request::release_id() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Request.id) + return _impl_.id_.Release(); +} +inline void AttributeContext_Request::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Request.id) +} + +// string method = 2 [json_name = "method"]; +inline void AttributeContext_Request::clear_method() { + _impl_.method_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Request::method() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.method) + return _internal_method(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Request::set_method(ArgT0&& arg0, ArgT... args) { + + _impl_.method_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Request.method) +} +inline std::string* AttributeContext_Request::mutable_method() { + std::string* _s = _internal_mutable_method(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Request.method) + return _s; +} +inline const std::string& AttributeContext_Request::_internal_method() const { + return _impl_.method_.Get(); +} +inline void AttributeContext_Request::_internal_set_method(const std::string& value) { + + _impl_.method_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Request::_internal_mutable_method() { + + return _impl_.method_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Request::release_method() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Request.method) + return _impl_.method_.Release(); +} +inline void AttributeContext_Request::set_allocated_method(std::string* method) { + if (method != nullptr) { + + } else { + + } + _impl_.method_.SetAllocated(method, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.method_.IsDefault()) { + _impl_.method_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Request.method) +} + +// map headers = 3 [json_name = "headers"]; +inline int AttributeContext_Request::_internal_headers_size() const { + return _impl_.headers_.size(); +} +inline int AttributeContext_Request::headers_size() const { + return _internal_headers_size(); +} +inline void AttributeContext_Request::clear_headers() { + _impl_.headers_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AttributeContext_Request::_internal_headers() const { + return _impl_.headers_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AttributeContext_Request::headers() const { + // @@protoc_insertion_point(field_map:google.rpc.context.AttributeContext.Request.headers) + return _internal_headers(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AttributeContext_Request::_internal_mutable_headers() { + return _impl_.headers_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AttributeContext_Request::mutable_headers() { + // @@protoc_insertion_point(field_mutable_map:google.rpc.context.AttributeContext.Request.headers) + return _internal_mutable_headers(); +} + +// string path = 4 [json_name = "path"]; +inline void AttributeContext_Request::clear_path() { + _impl_.path_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Request::path() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.path) + return _internal_path(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Request::set_path(ArgT0&& arg0, ArgT... args) { + + _impl_.path_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Request.path) +} +inline std::string* AttributeContext_Request::mutable_path() { + std::string* _s = _internal_mutable_path(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Request.path) + return _s; +} +inline const std::string& AttributeContext_Request::_internal_path() const { + return _impl_.path_.Get(); +} +inline void AttributeContext_Request::_internal_set_path(const std::string& value) { + + _impl_.path_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Request::_internal_mutable_path() { + + return _impl_.path_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Request::release_path() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Request.path) + return _impl_.path_.Release(); +} +inline void AttributeContext_Request::set_allocated_path(std::string* path) { + if (path != nullptr) { + + } else { + + } + _impl_.path_.SetAllocated(path, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.path_.IsDefault()) { + _impl_.path_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Request.path) +} + +// string host = 5 [json_name = "host"]; +inline void AttributeContext_Request::clear_host() { + _impl_.host_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Request::host() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.host) + return _internal_host(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Request::set_host(ArgT0&& arg0, ArgT... args) { + + _impl_.host_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Request.host) +} +inline std::string* AttributeContext_Request::mutable_host() { + std::string* _s = _internal_mutable_host(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Request.host) + return _s; +} +inline const std::string& AttributeContext_Request::_internal_host() const { + return _impl_.host_.Get(); +} +inline void AttributeContext_Request::_internal_set_host(const std::string& value) { + + _impl_.host_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Request::_internal_mutable_host() { + + return _impl_.host_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Request::release_host() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Request.host) + return _impl_.host_.Release(); +} +inline void AttributeContext_Request::set_allocated_host(std::string* host) { + if (host != nullptr) { + + } else { + + } + _impl_.host_.SetAllocated(host, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.host_.IsDefault()) { + _impl_.host_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Request.host) +} + +// string scheme = 6 [json_name = "scheme"]; +inline void AttributeContext_Request::clear_scheme() { + _impl_.scheme_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Request::scheme() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.scheme) + return _internal_scheme(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Request::set_scheme(ArgT0&& arg0, ArgT... args) { + + _impl_.scheme_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Request.scheme) +} +inline std::string* AttributeContext_Request::mutable_scheme() { + std::string* _s = _internal_mutable_scheme(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Request.scheme) + return _s; +} +inline const std::string& AttributeContext_Request::_internal_scheme() const { + return _impl_.scheme_.Get(); +} +inline void AttributeContext_Request::_internal_set_scheme(const std::string& value) { + + _impl_.scheme_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Request::_internal_mutable_scheme() { + + return _impl_.scheme_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Request::release_scheme() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Request.scheme) + return _impl_.scheme_.Release(); +} +inline void AttributeContext_Request::set_allocated_scheme(std::string* scheme) { + if (scheme != nullptr) { + + } else { + + } + _impl_.scheme_.SetAllocated(scheme, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.scheme_.IsDefault()) { + _impl_.scheme_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Request.scheme) +} + +// string query = 7 [json_name = "query"]; +inline void AttributeContext_Request::clear_query() { + _impl_.query_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Request::query() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.query) + return _internal_query(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Request::set_query(ArgT0&& arg0, ArgT... args) { + + _impl_.query_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Request.query) +} +inline std::string* AttributeContext_Request::mutable_query() { + std::string* _s = _internal_mutable_query(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Request.query) + return _s; +} +inline const std::string& AttributeContext_Request::_internal_query() const { + return _impl_.query_.Get(); +} +inline void AttributeContext_Request::_internal_set_query(const std::string& value) { + + _impl_.query_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Request::_internal_mutable_query() { + + return _impl_.query_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Request::release_query() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Request.query) + return _impl_.query_.Release(); +} +inline void AttributeContext_Request::set_allocated_query(std::string* query) { + if (query != nullptr) { + + } else { + + } + _impl_.query_.SetAllocated(query, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.query_.IsDefault()) { + _impl_.query_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Request.query) +} + +// .google.protobuf.Timestamp time = 9 [json_name = "time"]; +inline bool AttributeContext_Request::_internal_has_time() const { + return this != internal_default_instance() && _impl_.time_ != nullptr; +} +inline bool AttributeContext_Request::has_time() const { + return _internal_has_time(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AttributeContext_Request::_internal_time() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.time_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AttributeContext_Request::time() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.time) + return _internal_time(); +} +inline void AttributeContext_Request::unsafe_arena_set_allocated_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_); + } + _impl_.time_ = time; + if (time) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.Request.time) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Request::release_time() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_; + _impl_.time_ = 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* AttributeContext_Request::unsafe_arena_release_time() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Request.time) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_; + _impl_.time_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Request::_internal_mutable_time() { + + if (_impl_.time_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.time_ = p; + } + return _impl_.time_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Request::mutable_time() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_time(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Request.time) + return _msg; +} +inline void AttributeContext_Request::set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_); + } + if (time) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time)); + if (message_arena != submessage_arena) { + time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, time, submessage_arena); + } + + } else { + + } + _impl_.time_ = time; + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Request.time) +} + +// int64 size = 10 [json_name = "size"]; +inline void AttributeContext_Request::clear_size() { + _impl_.size_ = int64_t{0}; +} +inline int64_t AttributeContext_Request::_internal_size() const { + return _impl_.size_; +} +inline int64_t AttributeContext_Request::size() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.size) + return _internal_size(); +} +inline void AttributeContext_Request::_internal_set_size(int64_t value) { + + _impl_.size_ = value; +} +inline void AttributeContext_Request::set_size(int64_t value) { + _internal_set_size(value); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Request.size) +} + +// string protocol = 11 [json_name = "protocol"]; +inline void AttributeContext_Request::clear_protocol() { + _impl_.protocol_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Request::protocol() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.protocol) + return _internal_protocol(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Request::set_protocol(ArgT0&& arg0, ArgT... args) { + + _impl_.protocol_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Request.protocol) +} +inline std::string* AttributeContext_Request::mutable_protocol() { + std::string* _s = _internal_mutable_protocol(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Request.protocol) + return _s; +} +inline const std::string& AttributeContext_Request::_internal_protocol() const { + return _impl_.protocol_.Get(); +} +inline void AttributeContext_Request::_internal_set_protocol(const std::string& value) { + + _impl_.protocol_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Request::_internal_mutable_protocol() { + + return _impl_.protocol_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Request::release_protocol() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Request.protocol) + return _impl_.protocol_.Release(); +} +inline void AttributeContext_Request::set_allocated_protocol(std::string* protocol) { + if (protocol != nullptr) { + + } else { + + } + _impl_.protocol_.SetAllocated(protocol, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.protocol_.IsDefault()) { + _impl_.protocol_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Request.protocol) +} + +// string reason = 12 [json_name = "reason"]; +inline void AttributeContext_Request::clear_reason() { + _impl_.reason_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Request::reason() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.reason) + return _internal_reason(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Request::set_reason(ArgT0&& arg0, ArgT... args) { + + _impl_.reason_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Request.reason) +} +inline std::string* AttributeContext_Request::mutable_reason() { + std::string* _s = _internal_mutable_reason(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Request.reason) + return _s; +} +inline const std::string& AttributeContext_Request::_internal_reason() const { + return _impl_.reason_.Get(); +} +inline void AttributeContext_Request::_internal_set_reason(const std::string& value) { + + _impl_.reason_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Request::_internal_mutable_reason() { + + return _impl_.reason_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Request::release_reason() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Request.reason) + return _impl_.reason_.Release(); +} +inline void AttributeContext_Request::set_allocated_reason(std::string* reason) { + if (reason != nullptr) { + + } else { + + } + _impl_.reason_.SetAllocated(reason, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.reason_.IsDefault()) { + _impl_.reason_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Request.reason) +} + +// .google.rpc.context.AttributeContext.Auth auth = 13 [json_name = "auth"]; +inline bool AttributeContext_Request::_internal_has_auth() const { + return this != internal_default_instance() && _impl_.auth_ != nullptr; +} +inline bool AttributeContext_Request::has_auth() const { + return _internal_has_auth(); +} +inline void AttributeContext_Request::clear_auth() { + if (GetArenaForAllocation() == nullptr && _impl_.auth_ != nullptr) { + delete _impl_.auth_; + } + _impl_.auth_ = nullptr; +} +inline const ::google::rpc::context::AttributeContext_Auth& AttributeContext_Request::_internal_auth() const { + const ::google::rpc::context::AttributeContext_Auth* p = _impl_.auth_; + return p != nullptr ? *p : reinterpret_cast( + ::google::rpc::context::_AttributeContext_Auth_default_instance_); +} +inline const ::google::rpc::context::AttributeContext_Auth& AttributeContext_Request::auth() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.auth) + return _internal_auth(); +} +inline void AttributeContext_Request::unsafe_arena_set_allocated_auth( + ::google::rpc::context::AttributeContext_Auth* auth) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.auth_); + } + _impl_.auth_ = auth; + if (auth) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.Request.auth) +} +inline ::google::rpc::context::AttributeContext_Auth* AttributeContext_Request::release_auth() { + + ::google::rpc::context::AttributeContext_Auth* temp = _impl_.auth_; + _impl_.auth_ = 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 ::google::rpc::context::AttributeContext_Auth* AttributeContext_Request::unsafe_arena_release_auth() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Request.auth) + + ::google::rpc::context::AttributeContext_Auth* temp = _impl_.auth_; + _impl_.auth_ = nullptr; + return temp; +} +inline ::google::rpc::context::AttributeContext_Auth* AttributeContext_Request::_internal_mutable_auth() { + + if (_impl_.auth_ == nullptr) { + auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Auth>(GetArenaForAllocation()); + _impl_.auth_ = p; + } + return _impl_.auth_; +} +inline ::google::rpc::context::AttributeContext_Auth* AttributeContext_Request::mutable_auth() { + ::google::rpc::context::AttributeContext_Auth* _msg = _internal_mutable_auth(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Request.auth) + return _msg; +} +inline void AttributeContext_Request::set_allocated_auth(::google::rpc::context::AttributeContext_Auth* auth) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.auth_; + } + if (auth) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(auth); + if (message_arena != submessage_arena) { + auth = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, auth, submessage_arena); + } + + } else { + + } + _impl_.auth_ = auth; + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Request.auth) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// AttributeContext_Response + +// int64 code = 1 [json_name = "code"]; +inline void AttributeContext_Response::clear_code() { + _impl_.code_ = int64_t{0}; +} +inline int64_t AttributeContext_Response::_internal_code() const { + return _impl_.code_; +} +inline int64_t AttributeContext_Response::code() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Response.code) + return _internal_code(); +} +inline void AttributeContext_Response::_internal_set_code(int64_t value) { + + _impl_.code_ = value; +} +inline void AttributeContext_Response::set_code(int64_t value) { + _internal_set_code(value); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Response.code) +} + +// int64 size = 2 [json_name = "size"]; +inline void AttributeContext_Response::clear_size() { + _impl_.size_ = int64_t{0}; +} +inline int64_t AttributeContext_Response::_internal_size() const { + return _impl_.size_; +} +inline int64_t AttributeContext_Response::size() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Response.size) + return _internal_size(); +} +inline void AttributeContext_Response::_internal_set_size(int64_t value) { + + _impl_.size_ = value; +} +inline void AttributeContext_Response::set_size(int64_t value) { + _internal_set_size(value); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Response.size) +} + +// map headers = 3 [json_name = "headers"]; +inline int AttributeContext_Response::_internal_headers_size() const { + return _impl_.headers_.size(); +} +inline int AttributeContext_Response::headers_size() const { + return _internal_headers_size(); +} +inline void AttributeContext_Response::clear_headers() { + _impl_.headers_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AttributeContext_Response::_internal_headers() const { + return _impl_.headers_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AttributeContext_Response::headers() const { + // @@protoc_insertion_point(field_map:google.rpc.context.AttributeContext.Response.headers) + return _internal_headers(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AttributeContext_Response::_internal_mutable_headers() { + return _impl_.headers_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AttributeContext_Response::mutable_headers() { + // @@protoc_insertion_point(field_mutable_map:google.rpc.context.AttributeContext.Response.headers) + return _internal_mutable_headers(); +} + +// .google.protobuf.Timestamp time = 4 [json_name = "time"]; +inline bool AttributeContext_Response::_internal_has_time() const { + return this != internal_default_instance() && _impl_.time_ != nullptr; +} +inline bool AttributeContext_Response::has_time() const { + return _internal_has_time(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AttributeContext_Response::_internal_time() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.time_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AttributeContext_Response::time() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Response.time) + return _internal_time(); +} +inline void AttributeContext_Response::unsafe_arena_set_allocated_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_); + } + _impl_.time_ = time; + if (time) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.Response.time) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Response::release_time() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_; + _impl_.time_ = 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* AttributeContext_Response::unsafe_arena_release_time() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Response.time) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_; + _impl_.time_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Response::_internal_mutable_time() { + + if (_impl_.time_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.time_ = p; + } + return _impl_.time_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Response::mutable_time() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_time(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Response.time) + return _msg; +} +inline void AttributeContext_Response::set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_); + } + if (time) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time)); + if (message_arena != submessage_arena) { + time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, time, submessage_arena); + } + + } else { + + } + _impl_.time_ = time; + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Response.time) +} + +// .google.protobuf.Duration backend_latency = 5 [json_name = "backendLatency"]; +inline bool AttributeContext_Response::_internal_has_backend_latency() const { + return this != internal_default_instance() && _impl_.backend_latency_ != nullptr; +} +inline bool AttributeContext_Response::has_backend_latency() const { + return _internal_has_backend_latency(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& AttributeContext_Response::_internal_backend_latency() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = _impl_.backend_latency_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& AttributeContext_Response::backend_latency() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Response.backend_latency) + return _internal_backend_latency(); +} +inline void AttributeContext_Response::unsafe_arena_set_allocated_backend_latency( + ::PROTOBUF_NAMESPACE_ID::Duration* backend_latency) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.backend_latency_); + } + _impl_.backend_latency_ = backend_latency; + if (backend_latency) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.Response.backend_latency) +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* AttributeContext_Response::release_backend_latency() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.backend_latency_; + _impl_.backend_latency_ = 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::Duration* AttributeContext_Response::unsafe_arena_release_backend_latency() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Response.backend_latency) + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.backend_latency_; + _impl_.backend_latency_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* AttributeContext_Response::_internal_mutable_backend_latency() { + + if (_impl_.backend_latency_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + _impl_.backend_latency_ = p; + } + return _impl_.backend_latency_; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* AttributeContext_Response::mutable_backend_latency() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_backend_latency(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Response.backend_latency) + return _msg; +} +inline void AttributeContext_Response::set_allocated_backend_latency(::PROTOBUF_NAMESPACE_ID::Duration* backend_latency) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.backend_latency_); + } + if (backend_latency) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(backend_latency)); + if (message_arena != submessage_arena) { + backend_latency = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, backend_latency, submessage_arena); + } + + } else { + + } + _impl_.backend_latency_ = backend_latency; + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Response.backend_latency) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// AttributeContext_Resource + +// string service = 1 [json_name = "service"]; +inline void AttributeContext_Resource::clear_service() { + _impl_.service_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Resource::service() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Resource.service) + return _internal_service(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Resource::set_service(ArgT0&& arg0, ArgT... args) { + + _impl_.service_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Resource.service) +} +inline std::string* AttributeContext_Resource::mutable_service() { + std::string* _s = _internal_mutable_service(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Resource.service) + return _s; +} +inline const std::string& AttributeContext_Resource::_internal_service() const { + return _impl_.service_.Get(); +} +inline void AttributeContext_Resource::_internal_set_service(const std::string& value) { + + _impl_.service_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Resource::_internal_mutable_service() { + + return _impl_.service_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Resource::release_service() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Resource.service) + return _impl_.service_.Release(); +} +inline void AttributeContext_Resource::set_allocated_service(std::string* service) { + if (service != nullptr) { + + } else { + + } + _impl_.service_.SetAllocated(service, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.service_.IsDefault()) { + _impl_.service_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Resource.service) +} + +// string name = 2 [json_name = "name"]; +inline void AttributeContext_Resource::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Resource::name() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Resource.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Resource::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Resource.name) +} +inline std::string* AttributeContext_Resource::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Resource.name) + return _s; +} +inline const std::string& AttributeContext_Resource::_internal_name() const { + return _impl_.name_.Get(); +} +inline void AttributeContext_Resource::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Resource::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Resource::release_name() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Resource.name) + return _impl_.name_.Release(); +} +inline void AttributeContext_Resource::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Resource.name) +} + +// string type = 3 [json_name = "type"]; +inline void AttributeContext_Resource::clear_type() { + _impl_.type_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Resource::type() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Resource.type) + return _internal_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Resource::set_type(ArgT0&& arg0, ArgT... args) { + + _impl_.type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Resource.type) +} +inline std::string* AttributeContext_Resource::mutable_type() { + std::string* _s = _internal_mutable_type(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Resource.type) + return _s; +} +inline const std::string& AttributeContext_Resource::_internal_type() const { + return _impl_.type_.Get(); +} +inline void AttributeContext_Resource::_internal_set_type(const std::string& value) { + + _impl_.type_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Resource::_internal_mutable_type() { + + return _impl_.type_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Resource::release_type() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Resource.type) + return _impl_.type_.Release(); +} +inline void AttributeContext_Resource::set_allocated_type(std::string* type) { + if (type != nullptr) { + + } else { + + } + _impl_.type_.SetAllocated(type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.type_.IsDefault()) { + _impl_.type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Resource.type) +} + +// map labels = 4 [json_name = "labels"]; +inline int AttributeContext_Resource::_internal_labels_size() const { + return _impl_.labels_.size(); +} +inline int AttributeContext_Resource::labels_size() const { + return _internal_labels_size(); +} +inline void AttributeContext_Resource::clear_labels() { + _impl_.labels_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AttributeContext_Resource::_internal_labels() const { + return _impl_.labels_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AttributeContext_Resource::labels() const { + // @@protoc_insertion_point(field_map:google.rpc.context.AttributeContext.Resource.labels) + return _internal_labels(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AttributeContext_Resource::_internal_mutable_labels() { + return _impl_.labels_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AttributeContext_Resource::mutable_labels() { + // @@protoc_insertion_point(field_mutable_map:google.rpc.context.AttributeContext.Resource.labels) + return _internal_mutable_labels(); +} + +// string uid = 5 [json_name = "uid"]; +inline void AttributeContext_Resource::clear_uid() { + _impl_.uid_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Resource::uid() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Resource.uid) + return _internal_uid(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Resource::set_uid(ArgT0&& arg0, ArgT... args) { + + _impl_.uid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Resource.uid) +} +inline std::string* AttributeContext_Resource::mutable_uid() { + std::string* _s = _internal_mutable_uid(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Resource.uid) + return _s; +} +inline const std::string& AttributeContext_Resource::_internal_uid() const { + return _impl_.uid_.Get(); +} +inline void AttributeContext_Resource::_internal_set_uid(const std::string& value) { + + _impl_.uid_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Resource::_internal_mutable_uid() { + + return _impl_.uid_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Resource::release_uid() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Resource.uid) + return _impl_.uid_.Release(); +} +inline void AttributeContext_Resource::set_allocated_uid(std::string* uid) { + if (uid != nullptr) { + + } else { + + } + _impl_.uid_.SetAllocated(uid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.uid_.IsDefault()) { + _impl_.uid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Resource.uid) +} + +// map annotations = 6 [json_name = "annotations"]; +inline int AttributeContext_Resource::_internal_annotations_size() const { + return _impl_.annotations_.size(); +} +inline int AttributeContext_Resource::annotations_size() const { + return _internal_annotations_size(); +} +inline void AttributeContext_Resource::clear_annotations() { + _impl_.annotations_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AttributeContext_Resource::_internal_annotations() const { + return _impl_.annotations_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AttributeContext_Resource::annotations() const { + // @@protoc_insertion_point(field_map:google.rpc.context.AttributeContext.Resource.annotations) + return _internal_annotations(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AttributeContext_Resource::_internal_mutable_annotations() { + return _impl_.annotations_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AttributeContext_Resource::mutable_annotations() { + // @@protoc_insertion_point(field_mutable_map:google.rpc.context.AttributeContext.Resource.annotations) + return _internal_mutable_annotations(); +} + +// string display_name = 7 [json_name = "displayName"]; +inline void AttributeContext_Resource::clear_display_name() { + _impl_.display_name_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Resource::display_name() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Resource.display_name) + return _internal_display_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Resource::set_display_name(ArgT0&& arg0, ArgT... args) { + + _impl_.display_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Resource.display_name) +} +inline std::string* AttributeContext_Resource::mutable_display_name() { + std::string* _s = _internal_mutable_display_name(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Resource.display_name) + return _s; +} +inline const std::string& AttributeContext_Resource::_internal_display_name() const { + return _impl_.display_name_.Get(); +} +inline void AttributeContext_Resource::_internal_set_display_name(const std::string& value) { + + _impl_.display_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Resource::_internal_mutable_display_name() { + + return _impl_.display_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Resource::release_display_name() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Resource.display_name) + return _impl_.display_name_.Release(); +} +inline void AttributeContext_Resource::set_allocated_display_name(std::string* display_name) { + if (display_name != nullptr) { + + } else { + + } + _impl_.display_name_.SetAllocated(display_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.display_name_.IsDefault()) { + _impl_.display_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Resource.display_name) +} + +// .google.protobuf.Timestamp create_time = 8 [json_name = "createTime"]; +inline bool AttributeContext_Resource::_internal_has_create_time() const { + return this != internal_default_instance() && _impl_.create_time_ != nullptr; +} +inline bool AttributeContext_Resource::has_create_time() const { + return _internal_has_create_time(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AttributeContext_Resource::_internal_create_time() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.create_time_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AttributeContext_Resource::create_time() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Resource.create_time) + return _internal_create_time(); +} +inline void AttributeContext_Resource::unsafe_arena_set_allocated_create_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* create_time) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.create_time_); + } + _impl_.create_time_ = create_time; + if (create_time) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.Resource.create_time) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Resource::release_create_time() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.create_time_; + _impl_.create_time_ = 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* AttributeContext_Resource::unsafe_arena_release_create_time() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Resource.create_time) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.create_time_; + _impl_.create_time_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Resource::_internal_mutable_create_time() { + + if (_impl_.create_time_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.create_time_ = p; + } + return _impl_.create_time_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Resource::mutable_create_time() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_create_time(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Resource.create_time) + return _msg; +} +inline void AttributeContext_Resource::set_allocated_create_time(::PROTOBUF_NAMESPACE_ID::Timestamp* create_time) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.create_time_); + } + if (create_time) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(create_time)); + if (message_arena != submessage_arena) { + create_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, create_time, submessage_arena); + } + + } else { + + } + _impl_.create_time_ = create_time; + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Resource.create_time) +} + +// .google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"]; +inline bool AttributeContext_Resource::_internal_has_update_time() const { + return this != internal_default_instance() && _impl_.update_time_ != nullptr; +} +inline bool AttributeContext_Resource::has_update_time() const { + return _internal_has_update_time(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AttributeContext_Resource::_internal_update_time() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.update_time_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AttributeContext_Resource::update_time() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Resource.update_time) + return _internal_update_time(); +} +inline void AttributeContext_Resource::unsafe_arena_set_allocated_update_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* update_time) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.update_time_); + } + _impl_.update_time_ = update_time; + if (update_time) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.Resource.update_time) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Resource::release_update_time() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.update_time_; + _impl_.update_time_ = 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* AttributeContext_Resource::unsafe_arena_release_update_time() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Resource.update_time) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.update_time_; + _impl_.update_time_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Resource::_internal_mutable_update_time() { + + if (_impl_.update_time_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.update_time_ = p; + } + return _impl_.update_time_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Resource::mutable_update_time() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_update_time(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Resource.update_time) + return _msg; +} +inline void AttributeContext_Resource::set_allocated_update_time(::PROTOBUF_NAMESPACE_ID::Timestamp* update_time) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.update_time_); + } + if (update_time) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(update_time)); + if (message_arena != submessage_arena) { + update_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, update_time, submessage_arena); + } + + } else { + + } + _impl_.update_time_ = update_time; + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Resource.update_time) +} + +// .google.protobuf.Timestamp delete_time = 10 [json_name = "deleteTime"]; +inline bool AttributeContext_Resource::_internal_has_delete_time() const { + return this != internal_default_instance() && _impl_.delete_time_ != nullptr; +} +inline bool AttributeContext_Resource::has_delete_time() const { + return _internal_has_delete_time(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AttributeContext_Resource::_internal_delete_time() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.delete_time_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AttributeContext_Resource::delete_time() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Resource.delete_time) + return _internal_delete_time(); +} +inline void AttributeContext_Resource::unsafe_arena_set_allocated_delete_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* delete_time) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.delete_time_); + } + _impl_.delete_time_ = delete_time; + if (delete_time) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.Resource.delete_time) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Resource::release_delete_time() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.delete_time_; + _impl_.delete_time_ = 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* AttributeContext_Resource::unsafe_arena_release_delete_time() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Resource.delete_time) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.delete_time_; + _impl_.delete_time_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Resource::_internal_mutable_delete_time() { + + if (_impl_.delete_time_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.delete_time_ = p; + } + return _impl_.delete_time_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Resource::mutable_delete_time() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_delete_time(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Resource.delete_time) + return _msg; +} +inline void AttributeContext_Resource::set_allocated_delete_time(::PROTOBUF_NAMESPACE_ID::Timestamp* delete_time) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.delete_time_); + } + if (delete_time) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(delete_time)); + if (message_arena != submessage_arena) { + delete_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, delete_time, submessage_arena); + } + + } else { + + } + _impl_.delete_time_ = delete_time; + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Resource.delete_time) +} + +// string etag = 11 [json_name = "etag"]; +inline void AttributeContext_Resource::clear_etag() { + _impl_.etag_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Resource::etag() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Resource.etag) + return _internal_etag(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Resource::set_etag(ArgT0&& arg0, ArgT... args) { + + _impl_.etag_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Resource.etag) +} +inline std::string* AttributeContext_Resource::mutable_etag() { + std::string* _s = _internal_mutable_etag(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Resource.etag) + return _s; +} +inline const std::string& AttributeContext_Resource::_internal_etag() const { + return _impl_.etag_.Get(); +} +inline void AttributeContext_Resource::_internal_set_etag(const std::string& value) { + + _impl_.etag_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Resource::_internal_mutable_etag() { + + return _impl_.etag_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Resource::release_etag() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Resource.etag) + return _impl_.etag_.Release(); +} +inline void AttributeContext_Resource::set_allocated_etag(std::string* etag) { + if (etag != nullptr) { + + } else { + + } + _impl_.etag_.SetAllocated(etag, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.etag_.IsDefault()) { + _impl_.etag_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Resource.etag) +} + +// string location = 12 [json_name = "location"]; +inline void AttributeContext_Resource::clear_location() { + _impl_.location_.ClearToEmpty(); +} +inline const std::string& AttributeContext_Resource::location() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Resource.location) + return _internal_location(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Resource::set_location(ArgT0&& arg0, ArgT... args) { + + _impl_.location_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Resource.location) +} +inline std::string* AttributeContext_Resource::mutable_location() { + std::string* _s = _internal_mutable_location(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Resource.location) + return _s; +} +inline const std::string& AttributeContext_Resource::_internal_location() const { + return _impl_.location_.Get(); +} +inline void AttributeContext_Resource::_internal_set_location(const std::string& value) { + + _impl_.location_.Set(value, GetArenaForAllocation()); +} +inline std::string* AttributeContext_Resource::_internal_mutable_location() { + + return _impl_.location_.Mutable(GetArenaForAllocation()); +} +inline std::string* AttributeContext_Resource::release_location() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Resource.location) + return _impl_.location_.Release(); +} +inline void AttributeContext_Resource::set_allocated_location(std::string* location) { + if (location != nullptr) { + + } else { + + } + _impl_.location_.SetAllocated(location, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.location_.IsDefault()) { + _impl_.location_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Resource.location) +} + +// ------------------------------------------------------------------- + +// AttributeContext + +// .google.rpc.context.AttributeContext.Peer origin = 7 [json_name = "origin"]; +inline bool AttributeContext::_internal_has_origin() const { + return this != internal_default_instance() && _impl_.origin_ != nullptr; +} +inline bool AttributeContext::has_origin() const { + return _internal_has_origin(); +} +inline void AttributeContext::clear_origin() { + if (GetArenaForAllocation() == nullptr && _impl_.origin_ != nullptr) { + delete _impl_.origin_; + } + _impl_.origin_ = nullptr; +} +inline const ::google::rpc::context::AttributeContext_Peer& AttributeContext::_internal_origin() const { + const ::google::rpc::context::AttributeContext_Peer* p = _impl_.origin_; + return p != nullptr ? *p : reinterpret_cast( + ::google::rpc::context::_AttributeContext_Peer_default_instance_); +} +inline const ::google::rpc::context::AttributeContext_Peer& AttributeContext::origin() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.origin) + return _internal_origin(); +} +inline void AttributeContext::unsafe_arena_set_allocated_origin( + ::google::rpc::context::AttributeContext_Peer* origin) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.origin_); + } + _impl_.origin_ = origin; + if (origin) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.origin) +} +inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::release_origin() { + + ::google::rpc::context::AttributeContext_Peer* temp = _impl_.origin_; + _impl_.origin_ = 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 ::google::rpc::context::AttributeContext_Peer* AttributeContext::unsafe_arena_release_origin() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.origin) + + ::google::rpc::context::AttributeContext_Peer* temp = _impl_.origin_; + _impl_.origin_ = nullptr; + return temp; +} +inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::_internal_mutable_origin() { + + if (_impl_.origin_ == nullptr) { + auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Peer>(GetArenaForAllocation()); + _impl_.origin_ = p; + } + return _impl_.origin_; +} +inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::mutable_origin() { + ::google::rpc::context::AttributeContext_Peer* _msg = _internal_mutable_origin(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.origin) + return _msg; +} +inline void AttributeContext::set_allocated_origin(::google::rpc::context::AttributeContext_Peer* origin) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.origin_; + } + if (origin) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(origin); + if (message_arena != submessage_arena) { + origin = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, origin, submessage_arena); + } + + } else { + + } + _impl_.origin_ = origin; + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.origin) +} + +// .google.rpc.context.AttributeContext.Peer source = 1 [json_name = "source"]; +inline bool AttributeContext::_internal_has_source() const { + return this != internal_default_instance() && _impl_.source_ != nullptr; +} +inline bool AttributeContext::has_source() const { + return _internal_has_source(); +} +inline void AttributeContext::clear_source() { + if (GetArenaForAllocation() == nullptr && _impl_.source_ != nullptr) { + delete _impl_.source_; + } + _impl_.source_ = nullptr; +} +inline const ::google::rpc::context::AttributeContext_Peer& AttributeContext::_internal_source() const { + const ::google::rpc::context::AttributeContext_Peer* p = _impl_.source_; + return p != nullptr ? *p : reinterpret_cast( + ::google::rpc::context::_AttributeContext_Peer_default_instance_); +} +inline const ::google::rpc::context::AttributeContext_Peer& AttributeContext::source() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.source) + return _internal_source(); +} +inline void AttributeContext::unsafe_arena_set_allocated_source( + ::google::rpc::context::AttributeContext_Peer* source) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.source_); + } + _impl_.source_ = source; + if (source) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.source) +} +inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::release_source() { + + ::google::rpc::context::AttributeContext_Peer* temp = _impl_.source_; + _impl_.source_ = 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 ::google::rpc::context::AttributeContext_Peer* AttributeContext::unsafe_arena_release_source() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.source) + + ::google::rpc::context::AttributeContext_Peer* temp = _impl_.source_; + _impl_.source_ = nullptr; + return temp; +} +inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::_internal_mutable_source() { + + if (_impl_.source_ == nullptr) { + auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Peer>(GetArenaForAllocation()); + _impl_.source_ = p; + } + return _impl_.source_; +} +inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::mutable_source() { + ::google::rpc::context::AttributeContext_Peer* _msg = _internal_mutable_source(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.source) + return _msg; +} +inline void AttributeContext::set_allocated_source(::google::rpc::context::AttributeContext_Peer* source) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.source_; + } + if (source) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(source); + if (message_arena != submessage_arena) { + source = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, source, submessage_arena); + } + + } else { + + } + _impl_.source_ = source; + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.source) +} + +// .google.rpc.context.AttributeContext.Peer destination = 2 [json_name = "destination"]; +inline bool AttributeContext::_internal_has_destination() const { + return this != internal_default_instance() && _impl_.destination_ != nullptr; +} +inline bool AttributeContext::has_destination() const { + return _internal_has_destination(); +} +inline void AttributeContext::clear_destination() { + if (GetArenaForAllocation() == nullptr && _impl_.destination_ != nullptr) { + delete _impl_.destination_; + } + _impl_.destination_ = nullptr; +} +inline const ::google::rpc::context::AttributeContext_Peer& AttributeContext::_internal_destination() const { + const ::google::rpc::context::AttributeContext_Peer* p = _impl_.destination_; + return p != nullptr ? *p : reinterpret_cast( + ::google::rpc::context::_AttributeContext_Peer_default_instance_); +} +inline const ::google::rpc::context::AttributeContext_Peer& AttributeContext::destination() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.destination) + return _internal_destination(); +} +inline void AttributeContext::unsafe_arena_set_allocated_destination( + ::google::rpc::context::AttributeContext_Peer* destination) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.destination_); + } + _impl_.destination_ = destination; + if (destination) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.destination) +} +inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::release_destination() { + + ::google::rpc::context::AttributeContext_Peer* temp = _impl_.destination_; + _impl_.destination_ = 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 ::google::rpc::context::AttributeContext_Peer* AttributeContext::unsafe_arena_release_destination() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.destination) + + ::google::rpc::context::AttributeContext_Peer* temp = _impl_.destination_; + _impl_.destination_ = nullptr; + return temp; +} +inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::_internal_mutable_destination() { + + if (_impl_.destination_ == nullptr) { + auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Peer>(GetArenaForAllocation()); + _impl_.destination_ = p; + } + return _impl_.destination_; +} +inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::mutable_destination() { + ::google::rpc::context::AttributeContext_Peer* _msg = _internal_mutable_destination(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.destination) + return _msg; +} +inline void AttributeContext::set_allocated_destination(::google::rpc::context::AttributeContext_Peer* destination) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.destination_; + } + if (destination) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(destination); + if (message_arena != submessage_arena) { + destination = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, destination, submessage_arena); + } + + } else { + + } + _impl_.destination_ = destination; + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.destination) +} + +// .google.rpc.context.AttributeContext.Request request = 3 [json_name = "request"]; +inline bool AttributeContext::_internal_has_request() const { + return this != internal_default_instance() && _impl_.request_ != nullptr; +} +inline bool AttributeContext::has_request() const { + return _internal_has_request(); +} +inline void AttributeContext::clear_request() { + if (GetArenaForAllocation() == nullptr && _impl_.request_ != nullptr) { + delete _impl_.request_; + } + _impl_.request_ = nullptr; +} +inline const ::google::rpc::context::AttributeContext_Request& AttributeContext::_internal_request() const { + const ::google::rpc::context::AttributeContext_Request* p = _impl_.request_; + return p != nullptr ? *p : reinterpret_cast( + ::google::rpc::context::_AttributeContext_Request_default_instance_); +} +inline const ::google::rpc::context::AttributeContext_Request& AttributeContext::request() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.request) + return _internal_request(); +} +inline void AttributeContext::unsafe_arena_set_allocated_request( + ::google::rpc::context::AttributeContext_Request* request) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.request_); + } + _impl_.request_ = request; + if (request) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.request) +} +inline ::google::rpc::context::AttributeContext_Request* AttributeContext::release_request() { + + ::google::rpc::context::AttributeContext_Request* temp = _impl_.request_; + _impl_.request_ = 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 ::google::rpc::context::AttributeContext_Request* AttributeContext::unsafe_arena_release_request() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.request) + + ::google::rpc::context::AttributeContext_Request* temp = _impl_.request_; + _impl_.request_ = nullptr; + return temp; +} +inline ::google::rpc::context::AttributeContext_Request* AttributeContext::_internal_mutable_request() { + + if (_impl_.request_ == nullptr) { + auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Request>(GetArenaForAllocation()); + _impl_.request_ = p; + } + return _impl_.request_; +} +inline ::google::rpc::context::AttributeContext_Request* AttributeContext::mutable_request() { + ::google::rpc::context::AttributeContext_Request* _msg = _internal_mutable_request(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.request) + return _msg; +} +inline void AttributeContext::set_allocated_request(::google::rpc::context::AttributeContext_Request* request) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.request_; + } + if (request) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(request); + if (message_arena != submessage_arena) { + request = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, request, submessage_arena); + } + + } else { + + } + _impl_.request_ = request; + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.request) +} + +// .google.rpc.context.AttributeContext.Response response = 4 [json_name = "response"]; +inline bool AttributeContext::_internal_has_response() const { + return this != internal_default_instance() && _impl_.response_ != nullptr; +} +inline bool AttributeContext::has_response() const { + return _internal_has_response(); +} +inline void AttributeContext::clear_response() { + if (GetArenaForAllocation() == nullptr && _impl_.response_ != nullptr) { + delete _impl_.response_; + } + _impl_.response_ = nullptr; +} +inline const ::google::rpc::context::AttributeContext_Response& AttributeContext::_internal_response() const { + const ::google::rpc::context::AttributeContext_Response* p = _impl_.response_; + return p != nullptr ? *p : reinterpret_cast( + ::google::rpc::context::_AttributeContext_Response_default_instance_); +} +inline const ::google::rpc::context::AttributeContext_Response& AttributeContext::response() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.response) + return _internal_response(); +} +inline void AttributeContext::unsafe_arena_set_allocated_response( + ::google::rpc::context::AttributeContext_Response* response) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.response_); + } + _impl_.response_ = response; + if (response) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.response) +} +inline ::google::rpc::context::AttributeContext_Response* AttributeContext::release_response() { + + ::google::rpc::context::AttributeContext_Response* temp = _impl_.response_; + _impl_.response_ = 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 ::google::rpc::context::AttributeContext_Response* AttributeContext::unsafe_arena_release_response() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.response) + + ::google::rpc::context::AttributeContext_Response* temp = _impl_.response_; + _impl_.response_ = nullptr; + return temp; +} +inline ::google::rpc::context::AttributeContext_Response* AttributeContext::_internal_mutable_response() { + + if (_impl_.response_ == nullptr) { + auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Response>(GetArenaForAllocation()); + _impl_.response_ = p; + } + return _impl_.response_; +} +inline ::google::rpc::context::AttributeContext_Response* AttributeContext::mutable_response() { + ::google::rpc::context::AttributeContext_Response* _msg = _internal_mutable_response(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.response) + return _msg; +} +inline void AttributeContext::set_allocated_response(::google::rpc::context::AttributeContext_Response* response) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.response_; + } + if (response) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(response); + if (message_arena != submessage_arena) { + response = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, response, submessage_arena); + } + + } else { + + } + _impl_.response_ = response; + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.response) +} + +// .google.rpc.context.AttributeContext.Resource resource = 5 [json_name = "resource"]; +inline bool AttributeContext::_internal_has_resource() const { + return this != internal_default_instance() && _impl_.resource_ != nullptr; +} +inline bool AttributeContext::has_resource() const { + return _internal_has_resource(); +} +inline void AttributeContext::clear_resource() { + if (GetArenaForAllocation() == nullptr && _impl_.resource_ != nullptr) { + delete _impl_.resource_; + } + _impl_.resource_ = nullptr; +} +inline const ::google::rpc::context::AttributeContext_Resource& AttributeContext::_internal_resource() const { + const ::google::rpc::context::AttributeContext_Resource* p = _impl_.resource_; + return p != nullptr ? *p : reinterpret_cast( + ::google::rpc::context::_AttributeContext_Resource_default_instance_); +} +inline const ::google::rpc::context::AttributeContext_Resource& AttributeContext::resource() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.resource) + return _internal_resource(); +} +inline void AttributeContext::unsafe_arena_set_allocated_resource( + ::google::rpc::context::AttributeContext_Resource* resource) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.resource_); + } + _impl_.resource_ = resource; + if (resource) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.resource) +} +inline ::google::rpc::context::AttributeContext_Resource* AttributeContext::release_resource() { + + ::google::rpc::context::AttributeContext_Resource* temp = _impl_.resource_; + _impl_.resource_ = 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 ::google::rpc::context::AttributeContext_Resource* AttributeContext::unsafe_arena_release_resource() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.resource) + + ::google::rpc::context::AttributeContext_Resource* temp = _impl_.resource_; + _impl_.resource_ = nullptr; + return temp; +} +inline ::google::rpc::context::AttributeContext_Resource* AttributeContext::_internal_mutable_resource() { + + if (_impl_.resource_ == nullptr) { + auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Resource>(GetArenaForAllocation()); + _impl_.resource_ = p; + } + return _impl_.resource_; +} +inline ::google::rpc::context::AttributeContext_Resource* AttributeContext::mutable_resource() { + ::google::rpc::context::AttributeContext_Resource* _msg = _internal_mutable_resource(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.resource) + return _msg; +} +inline void AttributeContext::set_allocated_resource(::google::rpc::context::AttributeContext_Resource* resource) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.resource_; + } + if (resource) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(resource); + if (message_arena != submessage_arena) { + resource = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, resource, submessage_arena); + } + + } else { + + } + _impl_.resource_ = resource; + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.resource) +} + +// .google.rpc.context.AttributeContext.Api api = 6 [json_name = "api"]; +inline bool AttributeContext::_internal_has_api() const { + return this != internal_default_instance() && _impl_.api_ != nullptr; +} +inline bool AttributeContext::has_api() const { + return _internal_has_api(); +} +inline void AttributeContext::clear_api() { + if (GetArenaForAllocation() == nullptr && _impl_.api_ != nullptr) { + delete _impl_.api_; + } + _impl_.api_ = nullptr; +} +inline const ::google::rpc::context::AttributeContext_Api& AttributeContext::_internal_api() const { + const ::google::rpc::context::AttributeContext_Api* p = _impl_.api_; + return p != nullptr ? *p : reinterpret_cast( + ::google::rpc::context::_AttributeContext_Api_default_instance_); +} +inline const ::google::rpc::context::AttributeContext_Api& AttributeContext::api() const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.api) + return _internal_api(); +} +inline void AttributeContext::unsafe_arena_set_allocated_api( + ::google::rpc::context::AttributeContext_Api* api) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.api_); + } + _impl_.api_ = api; + if (api) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.api) +} +inline ::google::rpc::context::AttributeContext_Api* AttributeContext::release_api() { + + ::google::rpc::context::AttributeContext_Api* temp = _impl_.api_; + _impl_.api_ = 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 ::google::rpc::context::AttributeContext_Api* AttributeContext::unsafe_arena_release_api() { + // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.api) + + ::google::rpc::context::AttributeContext_Api* temp = _impl_.api_; + _impl_.api_ = nullptr; + return temp; +} +inline ::google::rpc::context::AttributeContext_Api* AttributeContext::_internal_mutable_api() { + + if (_impl_.api_ == nullptr) { + auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Api>(GetArenaForAllocation()); + _impl_.api_ = p; + } + return _impl_.api_; +} +inline ::google::rpc::context::AttributeContext_Api* AttributeContext::mutable_api() { + ::google::rpc::context::AttributeContext_Api* _msg = _internal_mutable_api(); + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.api) + return _msg; +} +inline void AttributeContext::set_allocated_api(::google::rpc::context::AttributeContext_Api* api) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.api_; + } + if (api) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(api); + if (message_arena != submessage_arena) { + api = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, api, submessage_arena); + } + + } else { + + } + _impl_.api_ = api; + // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.api) +} + +// repeated .google.protobuf.Any extensions = 8 [json_name = "extensions"]; +inline int AttributeContext::_internal_extensions_size() const { + return _impl_.extensions_.size(); +} +inline int AttributeContext::extensions_size() const { + return _internal_extensions_size(); +} +inline ::PROTOBUF_NAMESPACE_ID::Any* AttributeContext::mutable_extensions(int index) { + // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.extensions) + return _impl_.extensions_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >* +AttributeContext::mutable_extensions() { + // @@protoc_insertion_point(field_mutable_list:google.rpc.context.AttributeContext.extensions) + return &_impl_.extensions_; +} +inline const ::PROTOBUF_NAMESPACE_ID::Any& AttributeContext::_internal_extensions(int index) const { + return _impl_.extensions_.Get(index); +} +inline const ::PROTOBUF_NAMESPACE_ID::Any& AttributeContext::extensions(int index) const { + // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.extensions) + return _internal_extensions(index); +} +inline ::PROTOBUF_NAMESPACE_ID::Any* AttributeContext::_internal_add_extensions() { + return _impl_.extensions_.Add(); +} +inline ::PROTOBUF_NAMESPACE_ID::Any* AttributeContext::add_extensions() { + ::PROTOBUF_NAMESPACE_ID::Any* _add = _internal_add_extensions(); + // @@protoc_insertion_point(field_add:google.rpc.context.AttributeContext.extensions) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >& +AttributeContext::extensions() const { + // @@protoc_insertion_point(field_list:google.rpc.context.AttributeContext.extensions) + return _impl_.extensions_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace context +} // namespace rpc +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto diff --git a/src/gen/google/rpc/error_details.grpc.pb.cc b/src/gen/google/rpc/error_details.grpc.pb.cc new file mode 100644 index 000000000..282e0b6c5 --- /dev/null +++ b/src/gen/google/rpc/error_details.grpc.pb.cc @@ -0,0 +1,27 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/rpc/error_details.proto + +#include "google/rpc/error_details.pb.h" +#include "google/rpc/error_details.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace rpc { + +} // namespace google +} // namespace rpc + diff --git a/src/gen/google/rpc/error_details.grpc.pb.h b/src/gen/google/rpc/error_details.grpc.pb.h new file mode 100644 index 000000000..1c97c3a40 --- /dev/null +++ b/src/gen/google/rpc/error_details.grpc.pb.h @@ -0,0 +1,50 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/rpc/error_details.proto +// Original file comments: +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_google_2frpc_2ferror_5fdetails_2eproto__INCLUDED +#define GRPC_google_2frpc_2ferror_5fdetails_2eproto__INCLUDED + +#include "google/rpc/error_details.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace rpc { + +} // namespace rpc +} // namespace google + + +#endif // GRPC_google_2frpc_2ferror_5fdetails_2eproto__INCLUDED diff --git a/src/gen/google/rpc/error_details.pb.cc b/src/gen/google/rpc/error_details.pb.cc new file mode 100644 index 000000000..973ef7348 --- /dev/null +++ b/src/gen/google/rpc/error_details.pb.cc @@ -0,0 +1,3960 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/rpc/error_details.proto + +#include "google/rpc/error_details.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace rpc { +PROTOBUF_CONSTEXPR RetryInfo::RetryInfo( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.retry_delay_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RetryInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR RetryInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RetryInfoDefaultTypeInternal() {} + union { + RetryInfo _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RetryInfoDefaultTypeInternal _RetryInfo_default_instance_; +PROTOBUF_CONSTEXPR DebugInfo::DebugInfo( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.stack_entries_)*/{} + , /*decltype(_impl_.detail_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DebugInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR DebugInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DebugInfoDefaultTypeInternal() {} + union { + DebugInfo _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DebugInfoDefaultTypeInternal _DebugInfo_default_instance_; +PROTOBUF_CONSTEXPR QuotaFailure_Violation::QuotaFailure_Violation( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.subject_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.description_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct QuotaFailure_ViolationDefaultTypeInternal { + PROTOBUF_CONSTEXPR QuotaFailure_ViolationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~QuotaFailure_ViolationDefaultTypeInternal() {} + union { + QuotaFailure_Violation _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QuotaFailure_ViolationDefaultTypeInternal _QuotaFailure_Violation_default_instance_; +PROTOBUF_CONSTEXPR QuotaFailure::QuotaFailure( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.violations_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct QuotaFailureDefaultTypeInternal { + PROTOBUF_CONSTEXPR QuotaFailureDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~QuotaFailureDefaultTypeInternal() {} + union { + QuotaFailure _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QuotaFailureDefaultTypeInternal _QuotaFailure_default_instance_; +PROTOBUF_CONSTEXPR ErrorInfo_MetadataEntry_DoNotUse::ErrorInfo_MetadataEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct ErrorInfo_MetadataEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ErrorInfo_MetadataEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ErrorInfo_MetadataEntry_DoNotUseDefaultTypeInternal() {} + union { + ErrorInfo_MetadataEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ErrorInfo_MetadataEntry_DoNotUseDefaultTypeInternal _ErrorInfo_MetadataEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR ErrorInfo::ErrorInfo( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.metadata_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.reason_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.domain_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ErrorInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR ErrorInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ErrorInfoDefaultTypeInternal() {} + union { + ErrorInfo _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ErrorInfoDefaultTypeInternal _ErrorInfo_default_instance_; +PROTOBUF_CONSTEXPR PreconditionFailure_Violation::PreconditionFailure_Violation( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.subject_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.description_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct PreconditionFailure_ViolationDefaultTypeInternal { + PROTOBUF_CONSTEXPR PreconditionFailure_ViolationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PreconditionFailure_ViolationDefaultTypeInternal() {} + union { + PreconditionFailure_Violation _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PreconditionFailure_ViolationDefaultTypeInternal _PreconditionFailure_Violation_default_instance_; +PROTOBUF_CONSTEXPR PreconditionFailure::PreconditionFailure( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.violations_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct PreconditionFailureDefaultTypeInternal { + PROTOBUF_CONSTEXPR PreconditionFailureDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PreconditionFailureDefaultTypeInternal() {} + union { + PreconditionFailure _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PreconditionFailureDefaultTypeInternal _PreconditionFailure_default_instance_; +PROTOBUF_CONSTEXPR BadRequest_FieldViolation::BadRequest_FieldViolation( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.field_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.description_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct BadRequest_FieldViolationDefaultTypeInternal { + PROTOBUF_CONSTEXPR BadRequest_FieldViolationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~BadRequest_FieldViolationDefaultTypeInternal() {} + union { + BadRequest_FieldViolation _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BadRequest_FieldViolationDefaultTypeInternal _BadRequest_FieldViolation_default_instance_; +PROTOBUF_CONSTEXPR BadRequest::BadRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.field_violations_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct BadRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR BadRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~BadRequestDefaultTypeInternal() {} + union { + BadRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BadRequestDefaultTypeInternal _BadRequest_default_instance_; +PROTOBUF_CONSTEXPR RequestInfo::RequestInfo( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.request_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.serving_data_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RequestInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR RequestInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RequestInfoDefaultTypeInternal() {} + union { + RequestInfo _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RequestInfoDefaultTypeInternal _RequestInfo_default_instance_; +PROTOBUF_CONSTEXPR ResourceInfo::ResourceInfo( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.resource_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.resource_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.owner_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.description_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ResourceInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResourceInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResourceInfoDefaultTypeInternal() {} + union { + ResourceInfo _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceInfoDefaultTypeInternal _ResourceInfo_default_instance_; +PROTOBUF_CONSTEXPR Help_Link::Help_Link( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.description_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.url_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Help_LinkDefaultTypeInternal { + PROTOBUF_CONSTEXPR Help_LinkDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Help_LinkDefaultTypeInternal() {} + union { + Help_Link _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Help_LinkDefaultTypeInternal _Help_Link_default_instance_; +PROTOBUF_CONSTEXPR Help::Help( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.links_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct HelpDefaultTypeInternal { + PROTOBUF_CONSTEXPR HelpDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~HelpDefaultTypeInternal() {} + union { + Help _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HelpDefaultTypeInternal _Help_default_instance_; +PROTOBUF_CONSTEXPR LocalizedMessage::LocalizedMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.locale_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.message_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct LocalizedMessageDefaultTypeInternal { + PROTOBUF_CONSTEXPR LocalizedMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LocalizedMessageDefaultTypeInternal() {} + union { + LocalizedMessage _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocalizedMessageDefaultTypeInternal _LocalizedMessage_default_instance_; +} // namespace rpc +} // namespace google +static ::_pb::Metadata file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[15]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2frpc_2ferror_5fdetails_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2frpc_2ferror_5fdetails_2eproto = nullptr; + +const uint32_t TableStruct_google_2frpc_2ferror_5fdetails_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::RetryInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::RetryInfo, _impl_.retry_delay_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::DebugInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::DebugInfo, _impl_.stack_entries_), + PROTOBUF_FIELD_OFFSET(::google::rpc::DebugInfo, _impl_.detail_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::QuotaFailure_Violation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::QuotaFailure_Violation, _impl_.subject_), + PROTOBUF_FIELD_OFFSET(::google::rpc::QuotaFailure_Violation, _impl_.description_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::QuotaFailure, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::QuotaFailure, _impl_.violations_), + PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo_MetadataEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo_MetadataEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo_MetadataEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo_MetadataEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo, _impl_.reason_), + PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo, _impl_.domain_), + PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo, _impl_.metadata_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::PreconditionFailure_Violation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::PreconditionFailure_Violation, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::google::rpc::PreconditionFailure_Violation, _impl_.subject_), + PROTOBUF_FIELD_OFFSET(::google::rpc::PreconditionFailure_Violation, _impl_.description_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::PreconditionFailure, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::PreconditionFailure, _impl_.violations_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::BadRequest_FieldViolation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::BadRequest_FieldViolation, _impl_.field_), + PROTOBUF_FIELD_OFFSET(::google::rpc::BadRequest_FieldViolation, _impl_.description_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::BadRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::BadRequest, _impl_.field_violations_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::RequestInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::RequestInfo, _impl_.request_id_), + PROTOBUF_FIELD_OFFSET(::google::rpc::RequestInfo, _impl_.serving_data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::ResourceInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::ResourceInfo, _impl_.resource_type_), + PROTOBUF_FIELD_OFFSET(::google::rpc::ResourceInfo, _impl_.resource_name_), + PROTOBUF_FIELD_OFFSET(::google::rpc::ResourceInfo, _impl_.owner_), + PROTOBUF_FIELD_OFFSET(::google::rpc::ResourceInfo, _impl_.description_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::Help_Link, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::Help_Link, _impl_.description_), + PROTOBUF_FIELD_OFFSET(::google::rpc::Help_Link, _impl_.url_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::Help, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::Help, _impl_.links_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::LocalizedMessage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::LocalizedMessage, _impl_.locale_), + PROTOBUF_FIELD_OFFSET(::google::rpc::LocalizedMessage, _impl_.message_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::rpc::RetryInfo)}, + { 7, -1, -1, sizeof(::google::rpc::DebugInfo)}, + { 15, -1, -1, sizeof(::google::rpc::QuotaFailure_Violation)}, + { 23, -1, -1, sizeof(::google::rpc::QuotaFailure)}, + { 30, 38, -1, sizeof(::google::rpc::ErrorInfo_MetadataEntry_DoNotUse)}, + { 40, -1, -1, sizeof(::google::rpc::ErrorInfo)}, + { 49, -1, -1, sizeof(::google::rpc::PreconditionFailure_Violation)}, + { 58, -1, -1, sizeof(::google::rpc::PreconditionFailure)}, + { 65, -1, -1, sizeof(::google::rpc::BadRequest_FieldViolation)}, + { 73, -1, -1, sizeof(::google::rpc::BadRequest)}, + { 80, -1, -1, sizeof(::google::rpc::RequestInfo)}, + { 88, -1, -1, sizeof(::google::rpc::ResourceInfo)}, + { 98, -1, -1, sizeof(::google::rpc::Help_Link)}, + { 106, -1, -1, sizeof(::google::rpc::Help)}, + { 113, -1, -1, sizeof(::google::rpc::LocalizedMessage)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::google::rpc::_RetryInfo_default_instance_._instance, + &::google::rpc::_DebugInfo_default_instance_._instance, + &::google::rpc::_QuotaFailure_Violation_default_instance_._instance, + &::google::rpc::_QuotaFailure_default_instance_._instance, + &::google::rpc::_ErrorInfo_MetadataEntry_DoNotUse_default_instance_._instance, + &::google::rpc::_ErrorInfo_default_instance_._instance, + &::google::rpc::_PreconditionFailure_Violation_default_instance_._instance, + &::google::rpc::_PreconditionFailure_default_instance_._instance, + &::google::rpc::_BadRequest_FieldViolation_default_instance_._instance, + &::google::rpc::_BadRequest_default_instance_._instance, + &::google::rpc::_RequestInfo_default_instance_._instance, + &::google::rpc::_ResourceInfo_default_instance_._instance, + &::google::rpc::_Help_Link_default_instance_._instance, + &::google::rpc::_Help_default_instance_._instance, + &::google::rpc::_LocalizedMessage_default_instance_._instance, +}; + +const char descriptor_table_protodef_google_2frpc_2ferror_5fdetails_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\036google/rpc/error_details.proto\022\ngoogle" + ".rpc\032\036google/protobuf/duration.proto\"G\n\t" + "RetryInfo\022:\n\013retry_delay\030\001 \001(\0132\031.google." + "protobuf.DurationR\nretryDelay\"H\n\tDebugIn" + "fo\022#\n\rstack_entries\030\001 \003(\tR\014stackEntries\022" + "\026\n\006detail\030\002 \001(\tR\006detail\"\233\001\n\014QuotaFailure" + "\022B\n\nviolations\030\001 \003(\0132\".google.rpc.QuotaF" + "ailure.ViolationR\nviolations\032G\n\tViolatio" + "n\022\030\n\007subject\030\001 \001(\tR\007subject\022 \n\013descripti" + "on\030\002 \001(\tR\013description\"\271\001\n\tErrorInfo\022\026\n\006r" + "eason\030\001 \001(\tR\006reason\022\026\n\006domain\030\002 \001(\tR\006dom" + "ain\022\?\n\010metadata\030\003 \003(\0132#.google.rpc.Error" + "Info.MetadataEntryR\010metadata\032;\n\rMetadata" + "Entry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005" + "value:\0028\001\"\275\001\n\023PreconditionFailure\022I\n\nvio" + "lations\030\001 \003(\0132).google.rpc.PreconditionF" + "ailure.ViolationR\nviolations\032[\n\tViolatio" + "n\022\022\n\004type\030\001 \001(\tR\004type\022\030\n\007subject\030\002 \001(\tR\007" + "subject\022 \n\013description\030\003 \001(\tR\013descriptio" + "n\"\250\001\n\nBadRequest\022P\n\020field_violations\030\001 \003" + "(\0132%.google.rpc.BadRequest.FieldViolatio" + "nR\017fieldViolations\032H\n\016FieldViolation\022\024\n\005" + "field\030\001 \001(\tR\005field\022 \n\013description\030\002 \001(\tR" + "\013description\"O\n\013RequestInfo\022\035\n\nrequest_i" + "d\030\001 \001(\tR\trequestId\022!\n\014serving_data\030\002 \001(\t" + "R\013servingData\"\220\001\n\014ResourceInfo\022#\n\rresour" + "ce_type\030\001 \001(\tR\014resourceType\022#\n\rresource_" + "name\030\002 \001(\tR\014resourceName\022\024\n\005owner\030\003 \001(\tR" + "\005owner\022 \n\013description\030\004 \001(\tR\013description" + "\"o\n\004Help\022+\n\005links\030\001 \003(\0132\025.google.rpc.Hel" + "p.LinkR\005links\032:\n\004Link\022 \n\013description\030\001 \001" + "(\tR\013description\022\020\n\003url\030\002 \001(\tR\003url\"D\n\020Loc" + "alizedMessage\022\026\n\006locale\030\001 \001(\tR\006locale\022\030\n" + "\007message\030\002 \001(\tR\007messageBl\n\016com.google.rp" + "cB\021ErrorDetailsProtoP\001Z\?google.golang.or" + "g/genproto/googleapis/rpc/errdetails;err" + "details\242\002\003RPCb\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_deps[1] = { + &::descriptor_table_google_2fprotobuf_2fduration_2eproto, +}; +static ::_pbi::once_flag descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_google_2frpc_2ferror_5fdetails_2eproto = { + false, false, 1461, descriptor_table_protodef_google_2frpc_2ferror_5fdetails_2eproto, + "google/rpc/error_details.proto", + &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_deps, 1, 15, + schemas, file_default_instances, TableStruct_google_2frpc_2ferror_5fdetails_2eproto::offsets, + file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto, file_level_enum_descriptors_google_2frpc_2ferror_5fdetails_2eproto, + file_level_service_descriptors_google_2frpc_2ferror_5fdetails_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter() { + return &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2frpc_2ferror_5fdetails_2eproto(&descriptor_table_google_2frpc_2ferror_5fdetails_2eproto); +namespace google { +namespace rpc { + +// =================================================================== + +class RetryInfo::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Duration& retry_delay(const RetryInfo* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Duration& +RetryInfo::_Internal::retry_delay(const RetryInfo* msg) { + return *msg->_impl_.retry_delay_; +} +void RetryInfo::clear_retry_delay() { + if (GetArenaForAllocation() == nullptr && _impl_.retry_delay_ != nullptr) { + delete _impl_.retry_delay_; + } + _impl_.retry_delay_ = nullptr; +} +RetryInfo::RetryInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.rpc.RetryInfo) +} +RetryInfo::RetryInfo(const RetryInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RetryInfo* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.retry_delay_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_retry_delay()) { + _this->_impl_.retry_delay_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from._impl_.retry_delay_); + } + // @@protoc_insertion_point(copy_constructor:google.rpc.RetryInfo) +} + +inline void RetryInfo::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.retry_delay_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +RetryInfo::~RetryInfo() { + // @@protoc_insertion_point(destructor:google.rpc.RetryInfo) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RetryInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.retry_delay_; +} + +void RetryInfo::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RetryInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.RetryInfo) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.retry_delay_ != nullptr) { + delete _impl_.retry_delay_; + } + _impl_.retry_delay_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RetryInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_retry_delay(), 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* RetryInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.RetryInfo) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; + if (this->_internal_has_retry_delay()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::retry_delay(this), + _Internal::retry_delay(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:google.rpc.RetryInfo) + return target; +} + +size_t RetryInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.RetryInfo) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; + if (this->_internal_has_retry_delay()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.retry_delay_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RetryInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RetryInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RetryInfo::GetClassData() const { return &_class_data_; } + + +void RetryInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.RetryInfo) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_retry_delay()) { + _this->_internal_mutable_retry_delay()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom( + from._internal_retry_delay()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RetryInfo::CopyFrom(const RetryInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.RetryInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RetryInfo::IsInitialized() const { + return true; +} + +void RetryInfo::InternalSwap(RetryInfo* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.retry_delay_, other->_impl_.retry_delay_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RetryInfo::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, + file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[0]); +} + +// =================================================================== + +class DebugInfo::_Internal { + public: +}; + +DebugInfo::DebugInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.rpc.DebugInfo) +} +DebugInfo::DebugInfo(const DebugInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DebugInfo* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.stack_entries_){from._impl_.stack_entries_} + , decltype(_impl_.detail_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.detail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.detail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_detail().empty()) { + _this->_impl_.detail_.Set(from._internal_detail(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:google.rpc.DebugInfo) +} + +inline void DebugInfo::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.stack_entries_){arena} + , decltype(_impl_.detail_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.detail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.detail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +DebugInfo::~DebugInfo() { + // @@protoc_insertion_point(destructor:google.rpc.DebugInfo) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DebugInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.stack_entries_.~RepeatedPtrField(); + _impl_.detail_.Destroy(); +} + +void DebugInfo::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DebugInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.DebugInfo) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.stack_entries_.Clear(); + _impl_.detail_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DebugInfo::_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) { + // repeated string stack_entries = 1 [json_name = "stackEntries"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_stack_entries(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.DebugInfo.stack_entries")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // string detail = 2 [json_name = "detail"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_detail(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.DebugInfo.detail")); + } 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* DebugInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.DebugInfo) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string stack_entries = 1 [json_name = "stackEntries"]; + for (int i = 0, n = this->_internal_stack_entries_size(); i < n; i++) { + const auto& s = this->_internal_stack_entries(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.DebugInfo.stack_entries"); + target = stream->WriteString(1, s, target); + } + + // string detail = 2 [json_name = "detail"]; + if (!this->_internal_detail().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_detail().data(), static_cast(this->_internal_detail().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.DebugInfo.detail"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_detail(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.rpc.DebugInfo) + return target; +} + +size_t DebugInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.DebugInfo) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string stack_entries = 1 [json_name = "stackEntries"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.stack_entries_.size()); + for (int i = 0, n = _impl_.stack_entries_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.stack_entries_.Get(i)); + } + + // string detail = 2 [json_name = "detail"]; + if (!this->_internal_detail().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_detail()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DebugInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DebugInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DebugInfo::GetClassData() const { return &_class_data_; } + + +void DebugInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.DebugInfo) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.stack_entries_.MergeFrom(from._impl_.stack_entries_); + if (!from._internal_detail().empty()) { + _this->_internal_set_detail(from._internal_detail()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DebugInfo::CopyFrom(const DebugInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.DebugInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DebugInfo::IsInitialized() const { + return true; +} + +void DebugInfo::InternalSwap(DebugInfo* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.stack_entries_.InternalSwap(&other->_impl_.stack_entries_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.detail_, lhs_arena, + &other->_impl_.detail_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DebugInfo::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, + file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[1]); +} + +// =================================================================== + +class QuotaFailure_Violation::_Internal { + public: +}; + +QuotaFailure_Violation::QuotaFailure_Violation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.rpc.QuotaFailure.Violation) +} +QuotaFailure_Violation::QuotaFailure_Violation(const QuotaFailure_Violation& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + QuotaFailure_Violation* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.subject_){} + , decltype(_impl_.description_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.subject_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.subject_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_subject().empty()) { + _this->_impl_.subject_.Set(from._internal_subject(), + _this->GetArenaForAllocation()); + } + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_description().empty()) { + _this->_impl_.description_.Set(from._internal_description(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:google.rpc.QuotaFailure.Violation) +} + +inline void QuotaFailure_Violation::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.subject_){} + , decltype(_impl_.description_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.subject_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.subject_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +QuotaFailure_Violation::~QuotaFailure_Violation() { + // @@protoc_insertion_point(destructor:google.rpc.QuotaFailure.Violation) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void QuotaFailure_Violation::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.subject_.Destroy(); + _impl_.description_.Destroy(); +} + +void QuotaFailure_Violation::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void QuotaFailure_Violation::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.QuotaFailure.Violation) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.subject_.ClearToEmpty(); + _impl_.description_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* QuotaFailure_Violation::_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 subject = 1 [json_name = "subject"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_subject(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.QuotaFailure.Violation.subject")); + } else + goto handle_unusual; + continue; + // string description = 2 [json_name = "description"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_description(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.QuotaFailure.Violation.description")); + } 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* QuotaFailure_Violation::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.QuotaFailure.Violation) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string subject = 1 [json_name = "subject"]; + if (!this->_internal_subject().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_subject().data(), static_cast(this->_internal_subject().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.QuotaFailure.Violation.subject"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_subject(), target); + } + + // string description = 2 [json_name = "description"]; + if (!this->_internal_description().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_description().data(), static_cast(this->_internal_description().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.QuotaFailure.Violation.description"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_description(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.rpc.QuotaFailure.Violation) + return target; +} + +size_t QuotaFailure_Violation::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.QuotaFailure.Violation) + 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 subject = 1 [json_name = "subject"]; + if (!this->_internal_subject().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_subject()); + } + + // string description = 2 [json_name = "description"]; + if (!this->_internal_description().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_description()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData QuotaFailure_Violation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + QuotaFailure_Violation::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*QuotaFailure_Violation::GetClassData() const { return &_class_data_; } + + +void QuotaFailure_Violation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.QuotaFailure.Violation) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_subject().empty()) { + _this->_internal_set_subject(from._internal_subject()); + } + if (!from._internal_description().empty()) { + _this->_internal_set_description(from._internal_description()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void QuotaFailure_Violation::CopyFrom(const QuotaFailure_Violation& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.QuotaFailure.Violation) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool QuotaFailure_Violation::IsInitialized() const { + return true; +} + +void QuotaFailure_Violation::InternalSwap(QuotaFailure_Violation* 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( + &_impl_.subject_, lhs_arena, + &other->_impl_.subject_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.description_, lhs_arena, + &other->_impl_.description_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata QuotaFailure_Violation::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, + file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[2]); +} + +// =================================================================== + +class QuotaFailure::_Internal { + public: +}; + +QuotaFailure::QuotaFailure(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.rpc.QuotaFailure) +} +QuotaFailure::QuotaFailure(const QuotaFailure& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + QuotaFailure* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.violations_){from._impl_.violations_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:google.rpc.QuotaFailure) +} + +inline void QuotaFailure::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.violations_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +QuotaFailure::~QuotaFailure() { + // @@protoc_insertion_point(destructor:google.rpc.QuotaFailure) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void QuotaFailure::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.violations_.~RepeatedPtrField(); +} + +void QuotaFailure::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void QuotaFailure::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.QuotaFailure) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.violations_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* QuotaFailure::_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) { + // repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_violations(), 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* QuotaFailure::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.QuotaFailure) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"]; + for (unsigned i = 0, + n = static_cast(this->_internal_violations_size()); i < n; i++) { + const auto& repfield = this->_internal_violations(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.rpc.QuotaFailure) + return target; +} + +size_t QuotaFailure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.QuotaFailure) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"]; + total_size += 1UL * this->_internal_violations_size(); + for (const auto& msg : this->_impl_.violations_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData QuotaFailure::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + QuotaFailure::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*QuotaFailure::GetClassData() const { return &_class_data_; } + + +void QuotaFailure::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.QuotaFailure) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.violations_.MergeFrom(from._impl_.violations_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void QuotaFailure::CopyFrom(const QuotaFailure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.QuotaFailure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool QuotaFailure::IsInitialized() const { + return true; +} + +void QuotaFailure::InternalSwap(QuotaFailure* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.violations_.InternalSwap(&other->_impl_.violations_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata QuotaFailure::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, + file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[3]); +} + +// =================================================================== + +ErrorInfo_MetadataEntry_DoNotUse::ErrorInfo_MetadataEntry_DoNotUse() {} +ErrorInfo_MetadataEntry_DoNotUse::ErrorInfo_MetadataEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void ErrorInfo_MetadataEntry_DoNotUse::MergeFrom(const ErrorInfo_MetadataEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata ErrorInfo_MetadataEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, + file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[4]); +} + +// =================================================================== + +class ErrorInfo::_Internal { + public: +}; + +ErrorInfo::ErrorInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &ErrorInfo::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:google.rpc.ErrorInfo) +} +ErrorInfo::ErrorInfo(const ErrorInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ErrorInfo* const _this = this; (void)_this; + new (&_impl_) Impl_{ + /*decltype(_impl_.metadata_)*/{} + , decltype(_impl_.reason_){} + , decltype(_impl_.domain_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.metadata_.MergeFrom(from._impl_.metadata_); + _impl_.reason_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.reason_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_reason().empty()) { + _this->_impl_.reason_.Set(from._internal_reason(), + _this->GetArenaForAllocation()); + } + _impl_.domain_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.domain_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_domain().empty()) { + _this->_impl_.domain_.Set(from._internal_domain(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:google.rpc.ErrorInfo) +} + +inline void ErrorInfo::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + /*decltype(_impl_.metadata_)*/{::_pbi::ArenaInitialized(), arena} + , decltype(_impl_.reason_){} + , decltype(_impl_.domain_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.reason_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.reason_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.domain_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.domain_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ErrorInfo::~ErrorInfo() { + // @@protoc_insertion_point(destructor:google.rpc.ErrorInfo) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void ErrorInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.metadata_.Destruct(); + _impl_.metadata_.~MapField(); + _impl_.reason_.Destroy(); + _impl_.domain_.Destroy(); +} + +void ErrorInfo::ArenaDtor(void* object) { + ErrorInfo* _this = reinterpret_cast< ErrorInfo* >(object); + _this->_impl_.metadata_.Destruct(); +} +void ErrorInfo::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ErrorInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.ErrorInfo) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.metadata_.Clear(); + _impl_.reason_.ClearToEmpty(); + _impl_.domain_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ErrorInfo::_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 reason = 1 [json_name = "reason"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_reason(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.ErrorInfo.reason")); + } else + goto handle_unusual; + continue; + // string domain = 2 [json_name = "domain"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_domain(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.ErrorInfo.domain")); + } else + goto handle_unusual; + continue; + // map metadata = 3 [json_name = "metadata"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.metadata_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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* ErrorInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.ErrorInfo) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string reason = 1 [json_name = "reason"]; + if (!this->_internal_reason().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_reason().data(), static_cast(this->_internal_reason().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.ErrorInfo.reason"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_reason(), target); + } + + // string domain = 2 [json_name = "domain"]; + if (!this->_internal_domain().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_domain().data(), static_cast(this->_internal_domain().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.ErrorInfo.domain"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_domain(), target); + } + + // map metadata = 3 [json_name = "metadata"]; + if (!this->_internal_metadata().empty()) { + using MapType = ::_pb::Map; + using WireHelper = ErrorInfo_MetadataEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_metadata(); + 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, + "google.rpc.ErrorInfo.MetadataEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.ErrorInfo.MetadataEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(3, 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:google.rpc.ErrorInfo) + return target; +} + +size_t ErrorInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.ErrorInfo) + 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 metadata = 3 [json_name = "metadata"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_metadata_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_metadata().begin(); + it != this->_internal_metadata().end(); ++it) { + total_size += ErrorInfo_MetadataEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // string reason = 1 [json_name = "reason"]; + if (!this->_internal_reason().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_reason()); + } + + // string domain = 2 [json_name = "domain"]; + if (!this->_internal_domain().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_domain()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ErrorInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ErrorInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ErrorInfo::GetClassData() const { return &_class_data_; } + + +void ErrorInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.ErrorInfo) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.metadata_.MergeFrom(from._impl_.metadata_); + if (!from._internal_reason().empty()) { + _this->_internal_set_reason(from._internal_reason()); + } + if (!from._internal_domain().empty()) { + _this->_internal_set_domain(from._internal_domain()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ErrorInfo::CopyFrom(const ErrorInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.ErrorInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ErrorInfo::IsInitialized() const { + return true; +} + +void ErrorInfo::InternalSwap(ErrorInfo* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.metadata_.InternalSwap(&other->_impl_.metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.reason_, lhs_arena, + &other->_impl_.reason_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.domain_, lhs_arena, + &other->_impl_.domain_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ErrorInfo::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, + file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[5]); +} + +// =================================================================== + +class PreconditionFailure_Violation::_Internal { + public: +}; + +PreconditionFailure_Violation::PreconditionFailure_Violation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.rpc.PreconditionFailure.Violation) +} +PreconditionFailure_Violation::PreconditionFailure_Violation(const PreconditionFailure_Violation& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + PreconditionFailure_Violation* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.type_){} + , decltype(_impl_.subject_){} + , decltype(_impl_.description_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_type().empty()) { + _this->_impl_.type_.Set(from._internal_type(), + _this->GetArenaForAllocation()); + } + _impl_.subject_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.subject_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_subject().empty()) { + _this->_impl_.subject_.Set(from._internal_subject(), + _this->GetArenaForAllocation()); + } + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_description().empty()) { + _this->_impl_.description_.Set(from._internal_description(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:google.rpc.PreconditionFailure.Violation) +} + +inline void PreconditionFailure_Violation::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.type_){} + , decltype(_impl_.subject_){} + , decltype(_impl_.description_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.subject_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.subject_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +PreconditionFailure_Violation::~PreconditionFailure_Violation() { + // @@protoc_insertion_point(destructor:google.rpc.PreconditionFailure.Violation) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void PreconditionFailure_Violation::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.type_.Destroy(); + _impl_.subject_.Destroy(); + _impl_.description_.Destroy(); +} + +void PreconditionFailure_Violation::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void PreconditionFailure_Violation::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.PreconditionFailure.Violation) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.type_.ClearToEmpty(); + _impl_.subject_.ClearToEmpty(); + _impl_.description_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PreconditionFailure_Violation::_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 type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.PreconditionFailure.Violation.type")); + } else + goto handle_unusual; + continue; + // string subject = 2 [json_name = "subject"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_subject(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.PreconditionFailure.Violation.subject")); + } else + goto handle_unusual; + continue; + // string description = 3 [json_name = "description"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_description(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.PreconditionFailure.Violation.description")); + } 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* PreconditionFailure_Violation::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.PreconditionFailure.Violation) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string type = 1 [json_name = "type"]; + if (!this->_internal_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.PreconditionFailure.Violation.type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_type(), target); + } + + // string subject = 2 [json_name = "subject"]; + if (!this->_internal_subject().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_subject().data(), static_cast(this->_internal_subject().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.PreconditionFailure.Violation.subject"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_subject(), target); + } + + // string description = 3 [json_name = "description"]; + if (!this->_internal_description().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_description().data(), static_cast(this->_internal_description().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.PreconditionFailure.Violation.description"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_description(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.rpc.PreconditionFailure.Violation) + return target; +} + +size_t PreconditionFailure_Violation::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.PreconditionFailure.Violation) + 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 type = 1 [json_name = "type"]; + if (!this->_internal_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); + } + + // string subject = 2 [json_name = "subject"]; + if (!this->_internal_subject().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_subject()); + } + + // string description = 3 [json_name = "description"]; + if (!this->_internal_description().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_description()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PreconditionFailure_Violation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + PreconditionFailure_Violation::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PreconditionFailure_Violation::GetClassData() const { return &_class_data_; } + + +void PreconditionFailure_Violation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.PreconditionFailure.Violation) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } + if (!from._internal_subject().empty()) { + _this->_internal_set_subject(from._internal_subject()); + } + if (!from._internal_description().empty()) { + _this->_internal_set_description(from._internal_description()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PreconditionFailure_Violation::CopyFrom(const PreconditionFailure_Violation& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.PreconditionFailure.Violation) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PreconditionFailure_Violation::IsInitialized() const { + return true; +} + +void PreconditionFailure_Violation::InternalSwap(PreconditionFailure_Violation* 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( + &_impl_.type_, lhs_arena, + &other->_impl_.type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.subject_, lhs_arena, + &other->_impl_.subject_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.description_, lhs_arena, + &other->_impl_.description_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PreconditionFailure_Violation::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, + file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[6]); +} + +// =================================================================== + +class PreconditionFailure::_Internal { + public: +}; + +PreconditionFailure::PreconditionFailure(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.rpc.PreconditionFailure) +} +PreconditionFailure::PreconditionFailure(const PreconditionFailure& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + PreconditionFailure* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.violations_){from._impl_.violations_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:google.rpc.PreconditionFailure) +} + +inline void PreconditionFailure::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.violations_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +PreconditionFailure::~PreconditionFailure() { + // @@protoc_insertion_point(destructor:google.rpc.PreconditionFailure) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void PreconditionFailure::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.violations_.~RepeatedPtrField(); +} + +void PreconditionFailure::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void PreconditionFailure::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.PreconditionFailure) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.violations_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PreconditionFailure::_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) { + // repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_violations(), 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* PreconditionFailure::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.PreconditionFailure) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; + for (unsigned i = 0, + n = static_cast(this->_internal_violations_size()); i < n; i++) { + const auto& repfield = this->_internal_violations(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.rpc.PreconditionFailure) + return target; +} + +size_t PreconditionFailure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.PreconditionFailure) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; + total_size += 1UL * this->_internal_violations_size(); + for (const auto& msg : this->_impl_.violations_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PreconditionFailure::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + PreconditionFailure::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PreconditionFailure::GetClassData() const { return &_class_data_; } + + +void PreconditionFailure::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.PreconditionFailure) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.violations_.MergeFrom(from._impl_.violations_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PreconditionFailure::CopyFrom(const PreconditionFailure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.PreconditionFailure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PreconditionFailure::IsInitialized() const { + return true; +} + +void PreconditionFailure::InternalSwap(PreconditionFailure* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.violations_.InternalSwap(&other->_impl_.violations_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PreconditionFailure::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, + file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[7]); +} + +// =================================================================== + +class BadRequest_FieldViolation::_Internal { + public: +}; + +BadRequest_FieldViolation::BadRequest_FieldViolation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.rpc.BadRequest.FieldViolation) +} +BadRequest_FieldViolation::BadRequest_FieldViolation(const BadRequest_FieldViolation& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + BadRequest_FieldViolation* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.field_){} + , decltype(_impl_.description_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.field_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.field_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_field().empty()) { + _this->_impl_.field_.Set(from._internal_field(), + _this->GetArenaForAllocation()); + } + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_description().empty()) { + _this->_impl_.description_.Set(from._internal_description(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:google.rpc.BadRequest.FieldViolation) +} + +inline void BadRequest_FieldViolation::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.field_){} + , decltype(_impl_.description_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.field_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.field_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +BadRequest_FieldViolation::~BadRequest_FieldViolation() { + // @@protoc_insertion_point(destructor:google.rpc.BadRequest.FieldViolation) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void BadRequest_FieldViolation::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.field_.Destroy(); + _impl_.description_.Destroy(); +} + +void BadRequest_FieldViolation::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void BadRequest_FieldViolation::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.BadRequest.FieldViolation) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.field_.ClearToEmpty(); + _impl_.description_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* BadRequest_FieldViolation::_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 field = 1 [json_name = "field"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_field(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.BadRequest.FieldViolation.field")); + } else + goto handle_unusual; + continue; + // string description = 2 [json_name = "description"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_description(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.BadRequest.FieldViolation.description")); + } 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* BadRequest_FieldViolation::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.BadRequest.FieldViolation) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string field = 1 [json_name = "field"]; + if (!this->_internal_field().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_field().data(), static_cast(this->_internal_field().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.BadRequest.FieldViolation.field"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_field(), target); + } + + // string description = 2 [json_name = "description"]; + if (!this->_internal_description().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_description().data(), static_cast(this->_internal_description().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.BadRequest.FieldViolation.description"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_description(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.rpc.BadRequest.FieldViolation) + return target; +} + +size_t BadRequest_FieldViolation::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.BadRequest.FieldViolation) + 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 field = 1 [json_name = "field"]; + if (!this->_internal_field().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_field()); + } + + // string description = 2 [json_name = "description"]; + if (!this->_internal_description().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_description()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BadRequest_FieldViolation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + BadRequest_FieldViolation::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BadRequest_FieldViolation::GetClassData() const { return &_class_data_; } + + +void BadRequest_FieldViolation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.BadRequest.FieldViolation) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_field().empty()) { + _this->_internal_set_field(from._internal_field()); + } + if (!from._internal_description().empty()) { + _this->_internal_set_description(from._internal_description()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void BadRequest_FieldViolation::CopyFrom(const BadRequest_FieldViolation& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.BadRequest.FieldViolation) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BadRequest_FieldViolation::IsInitialized() const { + return true; +} + +void BadRequest_FieldViolation::InternalSwap(BadRequest_FieldViolation* 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( + &_impl_.field_, lhs_arena, + &other->_impl_.field_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.description_, lhs_arena, + &other->_impl_.description_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata BadRequest_FieldViolation::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, + file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[8]); +} + +// =================================================================== + +class BadRequest::_Internal { + public: +}; + +BadRequest::BadRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.rpc.BadRequest) +} +BadRequest::BadRequest(const BadRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + BadRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.field_violations_){from._impl_.field_violations_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:google.rpc.BadRequest) +} + +inline void BadRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.field_violations_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +BadRequest::~BadRequest() { + // @@protoc_insertion_point(destructor:google.rpc.BadRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void BadRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.field_violations_.~RepeatedPtrField(); +} + +void BadRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void BadRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.BadRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.field_violations_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* BadRequest::_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) { + // repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_field_violations(), 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* BadRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.BadRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; + for (unsigned i = 0, + n = static_cast(this->_internal_field_violations_size()); i < n; i++) { + const auto& repfield = this->_internal_field_violations(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.rpc.BadRequest) + return target; +} + +size_t BadRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.BadRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; + total_size += 1UL * this->_internal_field_violations_size(); + for (const auto& msg : this->_impl_.field_violations_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BadRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + BadRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BadRequest::GetClassData() const { return &_class_data_; } + + +void BadRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.BadRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.field_violations_.MergeFrom(from._impl_.field_violations_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void BadRequest::CopyFrom(const BadRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.BadRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BadRequest::IsInitialized() const { + return true; +} + +void BadRequest::InternalSwap(BadRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.field_violations_.InternalSwap(&other->_impl_.field_violations_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata BadRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, + file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[9]); +} + +// =================================================================== + +class RequestInfo::_Internal { + public: +}; + +RequestInfo::RequestInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.rpc.RequestInfo) +} +RequestInfo::RequestInfo(const RequestInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RequestInfo* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.request_id_){} + , decltype(_impl_.serving_data_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.request_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.request_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_request_id().empty()) { + _this->_impl_.request_id_.Set(from._internal_request_id(), + _this->GetArenaForAllocation()); + } + _impl_.serving_data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.serving_data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_serving_data().empty()) { + _this->_impl_.serving_data_.Set(from._internal_serving_data(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:google.rpc.RequestInfo) +} + +inline void RequestInfo::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.request_id_){} + , decltype(_impl_.serving_data_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.request_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.request_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.serving_data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.serving_data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +RequestInfo::~RequestInfo() { + // @@protoc_insertion_point(destructor:google.rpc.RequestInfo) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RequestInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.request_id_.Destroy(); + _impl_.serving_data_.Destroy(); +} + +void RequestInfo::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RequestInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.RequestInfo) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.request_id_.ClearToEmpty(); + _impl_.serving_data_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RequestInfo::_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 request_id = 1 [json_name = "requestId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_request_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.RequestInfo.request_id")); + } else + goto handle_unusual; + continue; + // string serving_data = 2 [json_name = "servingData"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_serving_data(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.RequestInfo.serving_data")); + } 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* RequestInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.RequestInfo) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string request_id = 1 [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, + "google.rpc.RequestInfo.request_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_request_id(), target); + } + + // string serving_data = 2 [json_name = "servingData"]; + if (!this->_internal_serving_data().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_serving_data().data(), static_cast(this->_internal_serving_data().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.RequestInfo.serving_data"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_serving_data(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.rpc.RequestInfo) + return target; +} + +size_t RequestInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.RequestInfo) + 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 request_id = 1 [json_name = "requestId"]; + if (!this->_internal_request_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_request_id()); + } + + // string serving_data = 2 [json_name = "servingData"]; + if (!this->_internal_serving_data().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_serving_data()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RequestInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RequestInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RequestInfo::GetClassData() const { return &_class_data_; } + + +void RequestInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.RequestInfo) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_request_id().empty()) { + _this->_internal_set_request_id(from._internal_request_id()); + } + if (!from._internal_serving_data().empty()) { + _this->_internal_set_serving_data(from._internal_serving_data()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RequestInfo::CopyFrom(const RequestInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.RequestInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RequestInfo::IsInitialized() const { + return true; +} + +void RequestInfo::InternalSwap(RequestInfo* 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( + &_impl_.request_id_, lhs_arena, + &other->_impl_.request_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.serving_data_, lhs_arena, + &other->_impl_.serving_data_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RequestInfo::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, + file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[10]); +} + +// =================================================================== + +class ResourceInfo::_Internal { + public: +}; + +ResourceInfo::ResourceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.rpc.ResourceInfo) +} +ResourceInfo::ResourceInfo(const ResourceInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ResourceInfo* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.resource_type_){} + , decltype(_impl_.resource_name_){} + , decltype(_impl_.owner_){} + , decltype(_impl_.description_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.resource_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.resource_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_resource_type().empty()) { + _this->_impl_.resource_type_.Set(from._internal_resource_type(), + _this->GetArenaForAllocation()); + } + _impl_.resource_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.resource_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_resource_name().empty()) { + _this->_impl_.resource_name_.Set(from._internal_resource_name(), + _this->GetArenaForAllocation()); + } + _impl_.owner_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.owner_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_owner().empty()) { + _this->_impl_.owner_.Set(from._internal_owner(), + _this->GetArenaForAllocation()); + } + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_description().empty()) { + _this->_impl_.description_.Set(from._internal_description(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:google.rpc.ResourceInfo) +} + +inline void ResourceInfo::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.resource_type_){} + , decltype(_impl_.resource_name_){} + , decltype(_impl_.owner_){} + , decltype(_impl_.description_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.resource_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.resource_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.resource_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.resource_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.owner_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.owner_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ResourceInfo::~ResourceInfo() { + // @@protoc_insertion_point(destructor:google.rpc.ResourceInfo) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ResourceInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.resource_type_.Destroy(); + _impl_.resource_name_.Destroy(); + _impl_.owner_.Destroy(); + _impl_.description_.Destroy(); +} + +void ResourceInfo::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ResourceInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.ResourceInfo) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.resource_type_.ClearToEmpty(); + _impl_.resource_name_.ClearToEmpty(); + _impl_.owner_.ClearToEmpty(); + _impl_.description_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResourceInfo::_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 resource_type = 1 [json_name = "resourceType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_resource_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.ResourceInfo.resource_type")); + } else + goto handle_unusual; + continue; + // string resource_name = 2 [json_name = "resourceName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_resource_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.ResourceInfo.resource_name")); + } else + goto handle_unusual; + continue; + // string owner = 3 [json_name = "owner"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_owner(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.ResourceInfo.owner")); + } else + goto handle_unusual; + continue; + // string description = 4 [json_name = "description"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_description(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.ResourceInfo.description")); + } 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* ResourceInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.ResourceInfo) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string resource_type = 1 [json_name = "resourceType"]; + if (!this->_internal_resource_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_resource_type().data(), static_cast(this->_internal_resource_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.ResourceInfo.resource_type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_resource_type(), target); + } + + // string resource_name = 2 [json_name = "resourceName"]; + if (!this->_internal_resource_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_resource_name().data(), static_cast(this->_internal_resource_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.ResourceInfo.resource_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_resource_name(), target); + } + + // string owner = 3 [json_name = "owner"]; + if (!this->_internal_owner().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_owner().data(), static_cast(this->_internal_owner().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.ResourceInfo.owner"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_owner(), target); + } + + // string description = 4 [json_name = "description"]; + if (!this->_internal_description().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_description().data(), static_cast(this->_internal_description().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.ResourceInfo.description"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_description(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.rpc.ResourceInfo) + return target; +} + +size_t ResourceInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.ResourceInfo) + 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 resource_type = 1 [json_name = "resourceType"]; + if (!this->_internal_resource_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_resource_type()); + } + + // string resource_name = 2 [json_name = "resourceName"]; + if (!this->_internal_resource_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_resource_name()); + } + + // string owner = 3 [json_name = "owner"]; + if (!this->_internal_owner().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_owner()); + } + + // string description = 4 [json_name = "description"]; + if (!this->_internal_description().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_description()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ResourceInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceInfo::GetClassData() const { return &_class_data_; } + + +void ResourceInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.ResourceInfo) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_resource_type().empty()) { + _this->_internal_set_resource_type(from._internal_resource_type()); + } + if (!from._internal_resource_name().empty()) { + _this->_internal_set_resource_name(from._internal_resource_name()); + } + if (!from._internal_owner().empty()) { + _this->_internal_set_owner(from._internal_owner()); + } + if (!from._internal_description().empty()) { + _this->_internal_set_description(from._internal_description()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ResourceInfo::CopyFrom(const ResourceInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.ResourceInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResourceInfo::IsInitialized() const { + return true; +} + +void ResourceInfo::InternalSwap(ResourceInfo* 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( + &_impl_.resource_type_, lhs_arena, + &other->_impl_.resource_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.resource_name_, lhs_arena, + &other->_impl_.resource_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.owner_, lhs_arena, + &other->_impl_.owner_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.description_, lhs_arena, + &other->_impl_.description_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ResourceInfo::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, + file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[11]); +} + +// =================================================================== + +class Help_Link::_Internal { + public: +}; + +Help_Link::Help_Link(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.rpc.Help.Link) +} +Help_Link::Help_Link(const Help_Link& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Help_Link* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.description_){} + , decltype(_impl_.url_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_description().empty()) { + _this->_impl_.description_.Set(from._internal_description(), + _this->GetArenaForAllocation()); + } + _impl_.url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_url().empty()) { + _this->_impl_.url_.Set(from._internal_url(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:google.rpc.Help.Link) +} + +inline void Help_Link::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.description_){} + , decltype(_impl_.url_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Help_Link::~Help_Link() { + // @@protoc_insertion_point(destructor:google.rpc.Help.Link) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Help_Link::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.description_.Destroy(); + _impl_.url_.Destroy(); +} + +void Help_Link::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Help_Link::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.Help.Link) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.description_.ClearToEmpty(); + _impl_.url_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Help_Link::_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 description = 1 [json_name = "description"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_description(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.Help.Link.description")); + } else + goto handle_unusual; + continue; + // string url = 2 [json_name = "url"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_url(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.Help.Link.url")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* Help_Link::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.Help.Link) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string description = 1 [json_name = "description"]; + if (!this->_internal_description().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_description().data(), static_cast(this->_internal_description().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.Help.Link.description"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_description(), target); + } + + // string url = 2 [json_name = "url"]; + if (!this->_internal_url().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_url().data(), static_cast(this->_internal_url().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.Help.Link.url"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_url(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.rpc.Help.Link) + return target; +} + +size_t Help_Link::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.Help.Link) + 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 description = 1 [json_name = "description"]; + if (!this->_internal_description().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_description()); + } + + // string url = 2 [json_name = "url"]; + if (!this->_internal_url().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_url()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Help_Link::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Help_Link::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Help_Link::GetClassData() const { return &_class_data_; } + + +void Help_Link::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.Help.Link) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_description().empty()) { + _this->_internal_set_description(from._internal_description()); + } + if (!from._internal_url().empty()) { + _this->_internal_set_url(from._internal_url()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Help_Link::CopyFrom(const Help_Link& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.Help.Link) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Help_Link::IsInitialized() const { + return true; +} + +void Help_Link::InternalSwap(Help_Link* 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( + &_impl_.description_, lhs_arena, + &other->_impl_.description_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.url_, lhs_arena, + &other->_impl_.url_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Help_Link::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, + file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[12]); +} + +// =================================================================== + +class Help::_Internal { + public: +}; + +Help::Help(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.rpc.Help) +} +Help::Help(const Help& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Help* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.links_){from._impl_.links_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:google.rpc.Help) +} + +inline void Help::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.links_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Help::~Help() { + // @@protoc_insertion_point(destructor:google.rpc.Help) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Help::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.links_.~RepeatedPtrField(); +} + +void Help::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Help::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.Help) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.links_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Help::_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) { + // repeated .google.rpc.Help.Link links = 1 [json_name = "links"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_links(), 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* Help::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.Help) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.rpc.Help.Link links = 1 [json_name = "links"]; + for (unsigned i = 0, + n = static_cast(this->_internal_links_size()); i < n; i++) { + const auto& repfield = this->_internal_links(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.rpc.Help) + return target; +} + +size_t Help::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.Help) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.rpc.Help.Link links = 1 [json_name = "links"]; + total_size += 1UL * this->_internal_links_size(); + for (const auto& msg : this->_impl_.links_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Help::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Help::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Help::GetClassData() const { return &_class_data_; } + + +void Help::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.Help) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.links_.MergeFrom(from._impl_.links_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Help::CopyFrom(const Help& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.Help) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Help::IsInitialized() const { + return true; +} + +void Help::InternalSwap(Help* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.links_.InternalSwap(&other->_impl_.links_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Help::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, + file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[13]); +} + +// =================================================================== + +class LocalizedMessage::_Internal { + public: +}; + +LocalizedMessage::LocalizedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.rpc.LocalizedMessage) +} +LocalizedMessage::LocalizedMessage(const LocalizedMessage& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + LocalizedMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.locale_){} + , decltype(_impl_.message_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.locale_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.locale_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_locale().empty()) { + _this->_impl_.locale_.Set(from._internal_locale(), + _this->GetArenaForAllocation()); + } + _impl_.message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + _this->_impl_.message_.Set(from._internal_message(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:google.rpc.LocalizedMessage) +} + +inline void LocalizedMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.locale_){} + , decltype(_impl_.message_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.locale_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.locale_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +LocalizedMessage::~LocalizedMessage() { + // @@protoc_insertion_point(destructor:google.rpc.LocalizedMessage) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void LocalizedMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.locale_.Destroy(); + _impl_.message_.Destroy(); +} + +void LocalizedMessage::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void LocalizedMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.LocalizedMessage) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.locale_.ClearToEmpty(); + _impl_.message_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LocalizedMessage::_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 locale = 1 [json_name = "locale"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_locale(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.LocalizedMessage.locale")); + } else + goto handle_unusual; + continue; + // string message = 2 [json_name = "message"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.LocalizedMessage.message")); + } 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* LocalizedMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.LocalizedMessage) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string locale = 1 [json_name = "locale"]; + if (!this->_internal_locale().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_locale().data(), static_cast(this->_internal_locale().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.LocalizedMessage.locale"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_locale(), target); + } + + // string message = 2 [json_name = "message"]; + if (!this->_internal_message().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.LocalizedMessage.message"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_message(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.rpc.LocalizedMessage) + return target; +} + +size_t LocalizedMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.LocalizedMessage) + 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 locale = 1 [json_name = "locale"]; + if (!this->_internal_locale().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_locale()); + } + + // string message = 2 [json_name = "message"]; + if (!this->_internal_message().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocalizedMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + LocalizedMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocalizedMessage::GetClassData() const { return &_class_data_; } + + +void LocalizedMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.LocalizedMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_locale().empty()) { + _this->_internal_set_locale(from._internal_locale()); + } + if (!from._internal_message().empty()) { + _this->_internal_set_message(from._internal_message()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void LocalizedMessage::CopyFrom(const LocalizedMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.LocalizedMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LocalizedMessage::IsInitialized() const { + return true; +} + +void LocalizedMessage::InternalSwap(LocalizedMessage* 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( + &_impl_.locale_, lhs_arena, + &other->_impl_.locale_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.message_, lhs_arena, + &other->_impl_.message_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata LocalizedMessage::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, + file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[14]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace rpc +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::rpc::RetryInfo* +Arena::CreateMaybeMessage< ::google::rpc::RetryInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::RetryInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::DebugInfo* +Arena::CreateMaybeMessage< ::google::rpc::DebugInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::DebugInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::QuotaFailure_Violation* +Arena::CreateMaybeMessage< ::google::rpc::QuotaFailure_Violation >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::QuotaFailure_Violation >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::QuotaFailure* +Arena::CreateMaybeMessage< ::google::rpc::QuotaFailure >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::QuotaFailure >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::ErrorInfo_MetadataEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::rpc::ErrorInfo_MetadataEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::ErrorInfo_MetadataEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::ErrorInfo* +Arena::CreateMaybeMessage< ::google::rpc::ErrorInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::ErrorInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::PreconditionFailure_Violation* +Arena::CreateMaybeMessage< ::google::rpc::PreconditionFailure_Violation >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::PreconditionFailure_Violation >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::PreconditionFailure* +Arena::CreateMaybeMessage< ::google::rpc::PreconditionFailure >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::PreconditionFailure >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::BadRequest_FieldViolation* +Arena::CreateMaybeMessage< ::google::rpc::BadRequest_FieldViolation >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::BadRequest_FieldViolation >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::BadRequest* +Arena::CreateMaybeMessage< ::google::rpc::BadRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::BadRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::RequestInfo* +Arena::CreateMaybeMessage< ::google::rpc::RequestInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::RequestInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::ResourceInfo* +Arena::CreateMaybeMessage< ::google::rpc::ResourceInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::ResourceInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::Help_Link* +Arena::CreateMaybeMessage< ::google::rpc::Help_Link >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::Help_Link >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::Help* +Arena::CreateMaybeMessage< ::google::rpc::Help >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::Help >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::LocalizedMessage* +Arena::CreateMaybeMessage< ::google::rpc::LocalizedMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::LocalizedMessage >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/google/rpc/error_details.pb.h b/src/gen/google/rpc/error_details.pb.h new file mode 100644 index 000000000..b349e8cc0 --- /dev/null +++ b/src/gen/google/rpc/error_details.pb.h @@ -0,0 +1,4000 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/rpc/error_details.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2ferror_5fdetails_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2ferror_5fdetails_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 // IWYU pragma: export +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2frpc_2ferror_5fdetails_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2frpc_2ferror_5fdetails_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2frpc_2ferror_5fdetails_2eproto; +namespace google { +namespace rpc { +class BadRequest; +struct BadRequestDefaultTypeInternal; +extern BadRequestDefaultTypeInternal _BadRequest_default_instance_; +class BadRequest_FieldViolation; +struct BadRequest_FieldViolationDefaultTypeInternal; +extern BadRequest_FieldViolationDefaultTypeInternal _BadRequest_FieldViolation_default_instance_; +class DebugInfo; +struct DebugInfoDefaultTypeInternal; +extern DebugInfoDefaultTypeInternal _DebugInfo_default_instance_; +class ErrorInfo; +struct ErrorInfoDefaultTypeInternal; +extern ErrorInfoDefaultTypeInternal _ErrorInfo_default_instance_; +class ErrorInfo_MetadataEntry_DoNotUse; +struct ErrorInfo_MetadataEntry_DoNotUseDefaultTypeInternal; +extern ErrorInfo_MetadataEntry_DoNotUseDefaultTypeInternal _ErrorInfo_MetadataEntry_DoNotUse_default_instance_; +class Help; +struct HelpDefaultTypeInternal; +extern HelpDefaultTypeInternal _Help_default_instance_; +class Help_Link; +struct Help_LinkDefaultTypeInternal; +extern Help_LinkDefaultTypeInternal _Help_Link_default_instance_; +class LocalizedMessage; +struct LocalizedMessageDefaultTypeInternal; +extern LocalizedMessageDefaultTypeInternal _LocalizedMessage_default_instance_; +class PreconditionFailure; +struct PreconditionFailureDefaultTypeInternal; +extern PreconditionFailureDefaultTypeInternal _PreconditionFailure_default_instance_; +class PreconditionFailure_Violation; +struct PreconditionFailure_ViolationDefaultTypeInternal; +extern PreconditionFailure_ViolationDefaultTypeInternal _PreconditionFailure_Violation_default_instance_; +class QuotaFailure; +struct QuotaFailureDefaultTypeInternal; +extern QuotaFailureDefaultTypeInternal _QuotaFailure_default_instance_; +class QuotaFailure_Violation; +struct QuotaFailure_ViolationDefaultTypeInternal; +extern QuotaFailure_ViolationDefaultTypeInternal _QuotaFailure_Violation_default_instance_; +class RequestInfo; +struct RequestInfoDefaultTypeInternal; +extern RequestInfoDefaultTypeInternal _RequestInfo_default_instance_; +class ResourceInfo; +struct ResourceInfoDefaultTypeInternal; +extern ResourceInfoDefaultTypeInternal _ResourceInfo_default_instance_; +class RetryInfo; +struct RetryInfoDefaultTypeInternal; +extern RetryInfoDefaultTypeInternal _RetryInfo_default_instance_; +} // namespace rpc +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> ::google::rpc::BadRequest* Arena::CreateMaybeMessage<::google::rpc::BadRequest>(Arena*); +template<> ::google::rpc::BadRequest_FieldViolation* Arena::CreateMaybeMessage<::google::rpc::BadRequest_FieldViolation>(Arena*); +template<> ::google::rpc::DebugInfo* Arena::CreateMaybeMessage<::google::rpc::DebugInfo>(Arena*); +template<> ::google::rpc::ErrorInfo* Arena::CreateMaybeMessage<::google::rpc::ErrorInfo>(Arena*); +template<> ::google::rpc::ErrorInfo_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage<::google::rpc::ErrorInfo_MetadataEntry_DoNotUse>(Arena*); +template<> ::google::rpc::Help* Arena::CreateMaybeMessage<::google::rpc::Help>(Arena*); +template<> ::google::rpc::Help_Link* Arena::CreateMaybeMessage<::google::rpc::Help_Link>(Arena*); +template<> ::google::rpc::LocalizedMessage* Arena::CreateMaybeMessage<::google::rpc::LocalizedMessage>(Arena*); +template<> ::google::rpc::PreconditionFailure* Arena::CreateMaybeMessage<::google::rpc::PreconditionFailure>(Arena*); +template<> ::google::rpc::PreconditionFailure_Violation* Arena::CreateMaybeMessage<::google::rpc::PreconditionFailure_Violation>(Arena*); +template<> ::google::rpc::QuotaFailure* Arena::CreateMaybeMessage<::google::rpc::QuotaFailure>(Arena*); +template<> ::google::rpc::QuotaFailure_Violation* Arena::CreateMaybeMessage<::google::rpc::QuotaFailure_Violation>(Arena*); +template<> ::google::rpc::RequestInfo* Arena::CreateMaybeMessage<::google::rpc::RequestInfo>(Arena*); +template<> ::google::rpc::ResourceInfo* Arena::CreateMaybeMessage<::google::rpc::ResourceInfo>(Arena*); +template<> ::google::rpc::RetryInfo* Arena::CreateMaybeMessage<::google::rpc::RetryInfo>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace rpc { + +// =================================================================== + +class RetryInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.RetryInfo) */ { + public: + inline RetryInfo() : RetryInfo(nullptr) {} + ~RetryInfo() override; + explicit PROTOBUF_CONSTEXPR RetryInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RetryInfo(const RetryInfo& from); + RetryInfo(RetryInfo&& from) noexcept + : RetryInfo() { + *this = ::std::move(from); + } + + inline RetryInfo& operator=(const RetryInfo& from) { + CopyFrom(from); + return *this; + } + inline RetryInfo& operator=(RetryInfo&& 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 RetryInfo& default_instance() { + return *internal_default_instance(); + } + static inline const RetryInfo* internal_default_instance() { + return reinterpret_cast( + &_RetryInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(RetryInfo& a, RetryInfo& b) { + a.Swap(&b); + } + inline void Swap(RetryInfo* 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(RetryInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RetryInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RetryInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RetryInfo& from) { + RetryInfo::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RetryInfo* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.RetryInfo"; + } + protected: + explicit RetryInfo(::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 { + kRetryDelayFieldNumber = 1, + }; + // .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; + bool has_retry_delay() const; + private: + bool _internal_has_retry_delay() const; + public: + void clear_retry_delay(); + const ::PROTOBUF_NAMESPACE_ID::Duration& retry_delay() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_retry_delay(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_retry_delay(); + void set_allocated_retry_delay(::PROTOBUF_NAMESPACE_ID::Duration* retry_delay); + private: + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_retry_delay() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_retry_delay(); + public: + void unsafe_arena_set_allocated_retry_delay( + ::PROTOBUF_NAMESPACE_ID::Duration* retry_delay); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_retry_delay(); + + // @@protoc_insertion_point(class_scope:google.rpc.RetryInfo) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::Duration* retry_delay_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; +}; +// ------------------------------------------------------------------- + +class DebugInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.DebugInfo) */ { + public: + inline DebugInfo() : DebugInfo(nullptr) {} + ~DebugInfo() override; + explicit PROTOBUF_CONSTEXPR DebugInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DebugInfo(const DebugInfo& from); + DebugInfo(DebugInfo&& from) noexcept + : DebugInfo() { + *this = ::std::move(from); + } + + inline DebugInfo& operator=(const DebugInfo& from) { + CopyFrom(from); + return *this; + } + inline DebugInfo& operator=(DebugInfo&& 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 DebugInfo& default_instance() { + return *internal_default_instance(); + } + static inline const DebugInfo* internal_default_instance() { + return reinterpret_cast( + &_DebugInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(DebugInfo& a, DebugInfo& b) { + a.Swap(&b); + } + inline void Swap(DebugInfo* 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(DebugInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DebugInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DebugInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DebugInfo& from) { + DebugInfo::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DebugInfo* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.DebugInfo"; + } + protected: + explicit DebugInfo(::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 { + kStackEntriesFieldNumber = 1, + kDetailFieldNumber = 2, + }; + // repeated string stack_entries = 1 [json_name = "stackEntries"]; + int stack_entries_size() const; + private: + int _internal_stack_entries_size() const; + public: + void clear_stack_entries(); + const std::string& stack_entries(int index) const; + std::string* mutable_stack_entries(int index); + void set_stack_entries(int index, const std::string& value); + void set_stack_entries(int index, std::string&& value); + void set_stack_entries(int index, const char* value); + void set_stack_entries(int index, const char* value, size_t size); + std::string* add_stack_entries(); + void add_stack_entries(const std::string& value); + void add_stack_entries(std::string&& value); + void add_stack_entries(const char* value); + void add_stack_entries(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& stack_entries() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_stack_entries(); + private: + const std::string& _internal_stack_entries(int index) const; + std::string* _internal_add_stack_entries(); + public: + + // string detail = 2 [json_name = "detail"]; + void clear_detail(); + const std::string& detail() const; + template + void set_detail(ArgT0&& arg0, ArgT... args); + std::string* mutable_detail(); + PROTOBUF_NODISCARD std::string* release_detail(); + void set_allocated_detail(std::string* detail); + private: + const std::string& _internal_detail() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_detail(const std::string& value); + std::string* _internal_mutable_detail(); + public: + + // @@protoc_insertion_point(class_scope:google.rpc.DebugInfo) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField stack_entries_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr detail_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; +}; +// ------------------------------------------------------------------- + +class QuotaFailure_Violation final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.QuotaFailure.Violation) */ { + public: + inline QuotaFailure_Violation() : QuotaFailure_Violation(nullptr) {} + ~QuotaFailure_Violation() override; + explicit PROTOBUF_CONSTEXPR QuotaFailure_Violation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + QuotaFailure_Violation(const QuotaFailure_Violation& from); + QuotaFailure_Violation(QuotaFailure_Violation&& from) noexcept + : QuotaFailure_Violation() { + *this = ::std::move(from); + } + + inline QuotaFailure_Violation& operator=(const QuotaFailure_Violation& from) { + CopyFrom(from); + return *this; + } + inline QuotaFailure_Violation& operator=(QuotaFailure_Violation&& 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 QuotaFailure_Violation& default_instance() { + return *internal_default_instance(); + } + static inline const QuotaFailure_Violation* internal_default_instance() { + return reinterpret_cast( + &_QuotaFailure_Violation_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(QuotaFailure_Violation& a, QuotaFailure_Violation& b) { + a.Swap(&b); + } + inline void Swap(QuotaFailure_Violation* 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(QuotaFailure_Violation* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + QuotaFailure_Violation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const QuotaFailure_Violation& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const QuotaFailure_Violation& from) { + QuotaFailure_Violation::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(QuotaFailure_Violation* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.QuotaFailure.Violation"; + } + protected: + explicit QuotaFailure_Violation(::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 { + kSubjectFieldNumber = 1, + kDescriptionFieldNumber = 2, + }; + // string subject = 1 [json_name = "subject"]; + void clear_subject(); + const std::string& subject() const; + template + void set_subject(ArgT0&& arg0, ArgT... args); + std::string* mutable_subject(); + PROTOBUF_NODISCARD std::string* release_subject(); + void set_allocated_subject(std::string* subject); + private: + const std::string& _internal_subject() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_subject(const std::string& value); + std::string* _internal_mutable_subject(); + public: + + // string description = 2 [json_name = "description"]; + void clear_description(); + const std::string& description() const; + template + void set_description(ArgT0&& arg0, ArgT... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* description); + private: + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); + std::string* _internal_mutable_description(); + public: + + // @@protoc_insertion_point(class_scope:google.rpc.QuotaFailure.Violation) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subject_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; +}; +// ------------------------------------------------------------------- + +class QuotaFailure final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.QuotaFailure) */ { + public: + inline QuotaFailure() : QuotaFailure(nullptr) {} + ~QuotaFailure() override; + explicit PROTOBUF_CONSTEXPR QuotaFailure(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + QuotaFailure(const QuotaFailure& from); + QuotaFailure(QuotaFailure&& from) noexcept + : QuotaFailure() { + *this = ::std::move(from); + } + + inline QuotaFailure& operator=(const QuotaFailure& from) { + CopyFrom(from); + return *this; + } + inline QuotaFailure& operator=(QuotaFailure&& 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 QuotaFailure& default_instance() { + return *internal_default_instance(); + } + static inline const QuotaFailure* internal_default_instance() { + return reinterpret_cast( + &_QuotaFailure_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(QuotaFailure& a, QuotaFailure& b) { + a.Swap(&b); + } + inline void Swap(QuotaFailure* 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(QuotaFailure* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + QuotaFailure* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const QuotaFailure& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const QuotaFailure& from) { + QuotaFailure::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(QuotaFailure* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.QuotaFailure"; + } + protected: + explicit QuotaFailure(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef QuotaFailure_Violation Violation; + + // accessors ------------------------------------------------------- + + enum : int { + kViolationsFieldNumber = 1, + }; + // repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"]; + int violations_size() const; + private: + int _internal_violations_size() const; + public: + void clear_violations(); + ::google::rpc::QuotaFailure_Violation* mutable_violations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::QuotaFailure_Violation >* + mutable_violations(); + private: + const ::google::rpc::QuotaFailure_Violation& _internal_violations(int index) const; + ::google::rpc::QuotaFailure_Violation* _internal_add_violations(); + public: + const ::google::rpc::QuotaFailure_Violation& violations(int index) const; + ::google::rpc::QuotaFailure_Violation* add_violations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::QuotaFailure_Violation >& + violations() const; + + // @@protoc_insertion_point(class_scope:google.rpc.QuotaFailure) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::QuotaFailure_Violation > violations_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; +}; +// ------------------------------------------------------------------- + +class ErrorInfo_MetadataEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + ErrorInfo_MetadataEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR ErrorInfo_MetadataEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit ErrorInfo_MetadataEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const ErrorInfo_MetadataEntry_DoNotUse& other); + static const ErrorInfo_MetadataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ErrorInfo_MetadataEntry_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, "google.rpc.ErrorInfo.MetadataEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "google.rpc.ErrorInfo.MetadataEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; +}; + +// ------------------------------------------------------------------- + +class ErrorInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.ErrorInfo) */ { + public: + inline ErrorInfo() : ErrorInfo(nullptr) {} + ~ErrorInfo() override; + explicit PROTOBUF_CONSTEXPR ErrorInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ErrorInfo(const ErrorInfo& from); + ErrorInfo(ErrorInfo&& from) noexcept + : ErrorInfo() { + *this = ::std::move(from); + } + + inline ErrorInfo& operator=(const ErrorInfo& from) { + CopyFrom(from); + return *this; + } + inline ErrorInfo& operator=(ErrorInfo&& 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 ErrorInfo& default_instance() { + return *internal_default_instance(); + } + static inline const ErrorInfo* internal_default_instance() { + return reinterpret_cast( + &_ErrorInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(ErrorInfo& a, ErrorInfo& b) { + a.Swap(&b); + } + inline void Swap(ErrorInfo* 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(ErrorInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ErrorInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ErrorInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ErrorInfo& from) { + ErrorInfo::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ErrorInfo* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.ErrorInfo"; + } + protected: + explicit ErrorInfo(::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 { + kMetadataFieldNumber = 3, + kReasonFieldNumber = 1, + kDomainFieldNumber = 2, + }; + // map metadata = 3 [json_name = "metadata"]; + int metadata_size() const; + private: + int _internal_metadata_size() const; + public: + void clear_metadata(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_metadata() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_metadata(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + metadata() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_metadata(); + + // string reason = 1 [json_name = "reason"]; + void clear_reason(); + const std::string& reason() const; + template + void set_reason(ArgT0&& arg0, ArgT... args); + std::string* mutable_reason(); + PROTOBUF_NODISCARD std::string* release_reason(); + void set_allocated_reason(std::string* reason); + private: + const std::string& _internal_reason() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_reason(const std::string& value); + std::string* _internal_mutable_reason(); + public: + + // string domain = 2 [json_name = "domain"]; + void clear_domain(); + const std::string& domain() const; + template + void set_domain(ArgT0&& arg0, ArgT... args); + std::string* mutable_domain(); + PROTOBUF_NODISCARD std::string* release_domain(); + void set_allocated_domain(std::string* domain); + private: + const std::string& _internal_domain() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_domain(const std::string& value); + std::string* _internal_mutable_domain(); + public: + + // @@protoc_insertion_point(class_scope:google.rpc.ErrorInfo) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + ErrorInfo_MetadataEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reason_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr domain_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; +}; +// ------------------------------------------------------------------- + +class PreconditionFailure_Violation final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.PreconditionFailure.Violation) */ { + public: + inline PreconditionFailure_Violation() : PreconditionFailure_Violation(nullptr) {} + ~PreconditionFailure_Violation() override; + explicit PROTOBUF_CONSTEXPR PreconditionFailure_Violation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PreconditionFailure_Violation(const PreconditionFailure_Violation& from); + PreconditionFailure_Violation(PreconditionFailure_Violation&& from) noexcept + : PreconditionFailure_Violation() { + *this = ::std::move(from); + } + + inline PreconditionFailure_Violation& operator=(const PreconditionFailure_Violation& from) { + CopyFrom(from); + return *this; + } + inline PreconditionFailure_Violation& operator=(PreconditionFailure_Violation&& 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 PreconditionFailure_Violation& default_instance() { + return *internal_default_instance(); + } + static inline const PreconditionFailure_Violation* internal_default_instance() { + return reinterpret_cast( + &_PreconditionFailure_Violation_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(PreconditionFailure_Violation& a, PreconditionFailure_Violation& b) { + a.Swap(&b); + } + inline void Swap(PreconditionFailure_Violation* 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(PreconditionFailure_Violation* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PreconditionFailure_Violation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PreconditionFailure_Violation& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const PreconditionFailure_Violation& from) { + PreconditionFailure_Violation::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PreconditionFailure_Violation* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.PreconditionFailure.Violation"; + } + protected: + explicit PreconditionFailure_Violation(::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 { + kTypeFieldNumber = 1, + kSubjectFieldNumber = 2, + kDescriptionFieldNumber = 3, + }; + // string type = 1 [json_name = "type"]; + void clear_type(); + const std::string& type() const; + template + void set_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_type(); + PROTOBUF_NODISCARD std::string* release_type(); + void set_allocated_type(std::string* type); + private: + const std::string& _internal_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); + std::string* _internal_mutable_type(); + public: + + // string subject = 2 [json_name = "subject"]; + void clear_subject(); + const std::string& subject() const; + template + void set_subject(ArgT0&& arg0, ArgT... args); + std::string* mutable_subject(); + PROTOBUF_NODISCARD std::string* release_subject(); + void set_allocated_subject(std::string* subject); + private: + const std::string& _internal_subject() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_subject(const std::string& value); + std::string* _internal_mutable_subject(); + public: + + // string description = 3 [json_name = "description"]; + void clear_description(); + const std::string& description() const; + template + void set_description(ArgT0&& arg0, ArgT... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* description); + private: + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); + std::string* _internal_mutable_description(); + public: + + // @@protoc_insertion_point(class_scope:google.rpc.PreconditionFailure.Violation) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subject_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; +}; +// ------------------------------------------------------------------- + +class PreconditionFailure final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.PreconditionFailure) */ { + public: + inline PreconditionFailure() : PreconditionFailure(nullptr) {} + ~PreconditionFailure() override; + explicit PROTOBUF_CONSTEXPR PreconditionFailure(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PreconditionFailure(const PreconditionFailure& from); + PreconditionFailure(PreconditionFailure&& from) noexcept + : PreconditionFailure() { + *this = ::std::move(from); + } + + inline PreconditionFailure& operator=(const PreconditionFailure& from) { + CopyFrom(from); + return *this; + } + inline PreconditionFailure& operator=(PreconditionFailure&& 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 PreconditionFailure& default_instance() { + return *internal_default_instance(); + } + static inline const PreconditionFailure* internal_default_instance() { + return reinterpret_cast( + &_PreconditionFailure_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(PreconditionFailure& a, PreconditionFailure& b) { + a.Swap(&b); + } + inline void Swap(PreconditionFailure* 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(PreconditionFailure* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PreconditionFailure* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PreconditionFailure& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const PreconditionFailure& from) { + PreconditionFailure::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PreconditionFailure* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.PreconditionFailure"; + } + protected: + explicit PreconditionFailure(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef PreconditionFailure_Violation Violation; + + // accessors ------------------------------------------------------- + + enum : int { + kViolationsFieldNumber = 1, + }; + // repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; + int violations_size() const; + private: + int _internal_violations_size() const; + public: + void clear_violations(); + ::google::rpc::PreconditionFailure_Violation* mutable_violations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::PreconditionFailure_Violation >* + mutable_violations(); + private: + const ::google::rpc::PreconditionFailure_Violation& _internal_violations(int index) const; + ::google::rpc::PreconditionFailure_Violation* _internal_add_violations(); + public: + const ::google::rpc::PreconditionFailure_Violation& violations(int index) const; + ::google::rpc::PreconditionFailure_Violation* add_violations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::PreconditionFailure_Violation >& + violations() const; + + // @@protoc_insertion_point(class_scope:google.rpc.PreconditionFailure) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::PreconditionFailure_Violation > violations_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; +}; +// ------------------------------------------------------------------- + +class BadRequest_FieldViolation final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.BadRequest.FieldViolation) */ { + public: + inline BadRequest_FieldViolation() : BadRequest_FieldViolation(nullptr) {} + ~BadRequest_FieldViolation() override; + explicit PROTOBUF_CONSTEXPR BadRequest_FieldViolation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + BadRequest_FieldViolation(const BadRequest_FieldViolation& from); + BadRequest_FieldViolation(BadRequest_FieldViolation&& from) noexcept + : BadRequest_FieldViolation() { + *this = ::std::move(from); + } + + inline BadRequest_FieldViolation& operator=(const BadRequest_FieldViolation& from) { + CopyFrom(from); + return *this; + } + inline BadRequest_FieldViolation& operator=(BadRequest_FieldViolation&& 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 BadRequest_FieldViolation& default_instance() { + return *internal_default_instance(); + } + static inline const BadRequest_FieldViolation* internal_default_instance() { + return reinterpret_cast( + &_BadRequest_FieldViolation_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(BadRequest_FieldViolation& a, BadRequest_FieldViolation& b) { + a.Swap(&b); + } + inline void Swap(BadRequest_FieldViolation* 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(BadRequest_FieldViolation* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BadRequest_FieldViolation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const BadRequest_FieldViolation& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const BadRequest_FieldViolation& from) { + BadRequest_FieldViolation::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BadRequest_FieldViolation* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.BadRequest.FieldViolation"; + } + protected: + explicit BadRequest_FieldViolation(::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 { + kFieldFieldNumber = 1, + kDescriptionFieldNumber = 2, + }; + // string field = 1 [json_name = "field"]; + void clear_field(); + const std::string& field() const; + template + void set_field(ArgT0&& arg0, ArgT... args); + std::string* mutable_field(); + PROTOBUF_NODISCARD std::string* release_field(); + void set_allocated_field(std::string* field); + private: + const std::string& _internal_field() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_field(const std::string& value); + std::string* _internal_mutable_field(); + public: + + // string description = 2 [json_name = "description"]; + void clear_description(); + const std::string& description() const; + template + void set_description(ArgT0&& arg0, ArgT... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* description); + private: + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); + std::string* _internal_mutable_description(); + public: + + // @@protoc_insertion_point(class_scope:google.rpc.BadRequest.FieldViolation) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; +}; +// ------------------------------------------------------------------- + +class BadRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.BadRequest) */ { + public: + inline BadRequest() : BadRequest(nullptr) {} + ~BadRequest() override; + explicit PROTOBUF_CONSTEXPR BadRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + BadRequest(const BadRequest& from); + BadRequest(BadRequest&& from) noexcept + : BadRequest() { + *this = ::std::move(from); + } + + inline BadRequest& operator=(const BadRequest& from) { + CopyFrom(from); + return *this; + } + inline BadRequest& operator=(BadRequest&& 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 BadRequest& default_instance() { + return *internal_default_instance(); + } + static inline const BadRequest* internal_default_instance() { + return reinterpret_cast( + &_BadRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(BadRequest& a, BadRequest& b) { + a.Swap(&b); + } + inline void Swap(BadRequest* 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(BadRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BadRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const BadRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const BadRequest& from) { + BadRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BadRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.BadRequest"; + } + protected: + explicit BadRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef BadRequest_FieldViolation FieldViolation; + + // accessors ------------------------------------------------------- + + enum : int { + kFieldViolationsFieldNumber = 1, + }; + // repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; + int field_violations_size() const; + private: + int _internal_field_violations_size() const; + public: + void clear_field_violations(); + ::google::rpc::BadRequest_FieldViolation* mutable_field_violations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::BadRequest_FieldViolation >* + mutable_field_violations(); + private: + const ::google::rpc::BadRequest_FieldViolation& _internal_field_violations(int index) const; + ::google::rpc::BadRequest_FieldViolation* _internal_add_field_violations(); + public: + const ::google::rpc::BadRequest_FieldViolation& field_violations(int index) const; + ::google::rpc::BadRequest_FieldViolation* add_field_violations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::BadRequest_FieldViolation >& + field_violations() const; + + // @@protoc_insertion_point(class_scope:google.rpc.BadRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::BadRequest_FieldViolation > field_violations_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; +}; +// ------------------------------------------------------------------- + +class RequestInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.RequestInfo) */ { + public: + inline RequestInfo() : RequestInfo(nullptr) {} + ~RequestInfo() override; + explicit PROTOBUF_CONSTEXPR RequestInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RequestInfo(const RequestInfo& from); + RequestInfo(RequestInfo&& from) noexcept + : RequestInfo() { + *this = ::std::move(from); + } + + inline RequestInfo& operator=(const RequestInfo& from) { + CopyFrom(from); + return *this; + } + inline RequestInfo& operator=(RequestInfo&& 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 RequestInfo& default_instance() { + return *internal_default_instance(); + } + static inline const RequestInfo* internal_default_instance() { + return reinterpret_cast( + &_RequestInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(RequestInfo& a, RequestInfo& b) { + a.Swap(&b); + } + inline void Swap(RequestInfo* 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(RequestInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RequestInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RequestInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RequestInfo& from) { + RequestInfo::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RequestInfo* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.RequestInfo"; + } + protected: + explicit RequestInfo(::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 { + kRequestIdFieldNumber = 1, + kServingDataFieldNumber = 2, + }; + // string request_id = 1 [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: + + // string serving_data = 2 [json_name = "servingData"]; + void clear_serving_data(); + const std::string& serving_data() const; + template + void set_serving_data(ArgT0&& arg0, ArgT... args); + std::string* mutable_serving_data(); + PROTOBUF_NODISCARD std::string* release_serving_data(); + void set_allocated_serving_data(std::string* serving_data); + private: + const std::string& _internal_serving_data() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_serving_data(const std::string& value); + std::string* _internal_mutable_serving_data(); + public: + + // @@protoc_insertion_point(class_scope:google.rpc.RequestInfo) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr request_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr serving_data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; +}; +// ------------------------------------------------------------------- + +class ResourceInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.ResourceInfo) */ { + public: + inline ResourceInfo() : ResourceInfo(nullptr) {} + ~ResourceInfo() override; + explicit PROTOBUF_CONSTEXPR ResourceInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ResourceInfo(const ResourceInfo& from); + ResourceInfo(ResourceInfo&& from) noexcept + : ResourceInfo() { + *this = ::std::move(from); + } + + inline ResourceInfo& operator=(const ResourceInfo& from) { + CopyFrom(from); + return *this; + } + inline ResourceInfo& operator=(ResourceInfo&& 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 ResourceInfo& default_instance() { + return *internal_default_instance(); + } + static inline const ResourceInfo* internal_default_instance() { + return reinterpret_cast( + &_ResourceInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(ResourceInfo& a, ResourceInfo& b) { + a.Swap(&b); + } + inline void Swap(ResourceInfo* 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(ResourceInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ResourceInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResourceInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ResourceInfo& from) { + ResourceInfo::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ResourceInfo* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.ResourceInfo"; + } + protected: + explicit ResourceInfo(::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 { + kResourceTypeFieldNumber = 1, + kResourceNameFieldNumber = 2, + kOwnerFieldNumber = 3, + kDescriptionFieldNumber = 4, + }; + // string resource_type = 1 [json_name = "resourceType"]; + void clear_resource_type(); + const std::string& resource_type() const; + template + void set_resource_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_resource_type(); + PROTOBUF_NODISCARD std::string* release_resource_type(); + void set_allocated_resource_type(std::string* resource_type); + private: + const std::string& _internal_resource_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource_type(const std::string& value); + std::string* _internal_mutable_resource_type(); + public: + + // string resource_name = 2 [json_name = "resourceName"]; + void clear_resource_name(); + const std::string& resource_name() const; + template + void set_resource_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_resource_name(); + PROTOBUF_NODISCARD std::string* release_resource_name(); + void set_allocated_resource_name(std::string* resource_name); + private: + const std::string& _internal_resource_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource_name(const std::string& value); + std::string* _internal_mutable_resource_name(); + public: + + // string owner = 3 [json_name = "owner"]; + void clear_owner(); + const std::string& owner() const; + template + void set_owner(ArgT0&& arg0, ArgT... args); + std::string* mutable_owner(); + PROTOBUF_NODISCARD std::string* release_owner(); + void set_allocated_owner(std::string* owner); + private: + const std::string& _internal_owner() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_owner(const std::string& value); + std::string* _internal_mutable_owner(); + public: + + // string description = 4 [json_name = "description"]; + void clear_description(); + const std::string& description() const; + template + void set_description(ArgT0&& arg0, ArgT... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* description); + private: + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); + std::string* _internal_mutable_description(); + public: + + // @@protoc_insertion_point(class_scope:google.rpc.ResourceInfo) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resource_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resource_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr owner_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; +}; +// ------------------------------------------------------------------- + +class Help_Link final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.Help.Link) */ { + public: + inline Help_Link() : Help_Link(nullptr) {} + ~Help_Link() override; + explicit PROTOBUF_CONSTEXPR Help_Link(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Help_Link(const Help_Link& from); + Help_Link(Help_Link&& from) noexcept + : Help_Link() { + *this = ::std::move(from); + } + + inline Help_Link& operator=(const Help_Link& from) { + CopyFrom(from); + return *this; + } + inline Help_Link& operator=(Help_Link&& 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 Help_Link& default_instance() { + return *internal_default_instance(); + } + static inline const Help_Link* internal_default_instance() { + return reinterpret_cast( + &_Help_Link_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(Help_Link& a, Help_Link& b) { + a.Swap(&b); + } + inline void Swap(Help_Link* 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(Help_Link* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Help_Link* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Help_Link& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Help_Link& from) { + Help_Link::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Help_Link* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.Help.Link"; + } + protected: + explicit Help_Link(::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 { + kDescriptionFieldNumber = 1, + kUrlFieldNumber = 2, + }; + // string description = 1 [json_name = "description"]; + void clear_description(); + const std::string& description() const; + template + void set_description(ArgT0&& arg0, ArgT... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* description); + private: + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); + std::string* _internal_mutable_description(); + public: + + // string url = 2 [json_name = "url"]; + void clear_url(); + const std::string& url() const; + template + void set_url(ArgT0&& arg0, ArgT... args); + std::string* mutable_url(); + PROTOBUF_NODISCARD std::string* release_url(); + void set_allocated_url(std::string* url); + private: + const std::string& _internal_url() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_url(const std::string& value); + std::string* _internal_mutable_url(); + public: + + // @@protoc_insertion_point(class_scope:google.rpc.Help.Link) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; +}; +// ------------------------------------------------------------------- + +class Help final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.Help) */ { + public: + inline Help() : Help(nullptr) {} + ~Help() override; + explicit PROTOBUF_CONSTEXPR Help(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Help(const Help& from); + Help(Help&& from) noexcept + : Help() { + *this = ::std::move(from); + } + + inline Help& operator=(const Help& from) { + CopyFrom(from); + return *this; + } + inline Help& operator=(Help&& 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 Help& default_instance() { + return *internal_default_instance(); + } + static inline const Help* internal_default_instance() { + return reinterpret_cast( + &_Help_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(Help& a, Help& b) { + a.Swap(&b); + } + inline void Swap(Help* 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(Help* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Help* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Help& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Help& from) { + Help::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Help* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.Help"; + } + protected: + explicit Help(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef Help_Link Link; + + // accessors ------------------------------------------------------- + + enum : int { + kLinksFieldNumber = 1, + }; + // repeated .google.rpc.Help.Link links = 1 [json_name = "links"]; + int links_size() const; + private: + int _internal_links_size() const; + public: + void clear_links(); + ::google::rpc::Help_Link* mutable_links(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Help_Link >* + mutable_links(); + private: + const ::google::rpc::Help_Link& _internal_links(int index) const; + ::google::rpc::Help_Link* _internal_add_links(); + public: + const ::google::rpc::Help_Link& links(int index) const; + ::google::rpc::Help_Link* add_links(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Help_Link >& + links() const; + + // @@protoc_insertion_point(class_scope:google.rpc.Help) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Help_Link > links_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; +}; +// ------------------------------------------------------------------- + +class LocalizedMessage final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.LocalizedMessage) */ { + public: + inline LocalizedMessage() : LocalizedMessage(nullptr) {} + ~LocalizedMessage() override; + explicit PROTOBUF_CONSTEXPR LocalizedMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + LocalizedMessage(const LocalizedMessage& from); + LocalizedMessage(LocalizedMessage&& from) noexcept + : LocalizedMessage() { + *this = ::std::move(from); + } + + inline LocalizedMessage& operator=(const LocalizedMessage& from) { + CopyFrom(from); + return *this; + } + inline LocalizedMessage& operator=(LocalizedMessage&& 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 LocalizedMessage& default_instance() { + return *internal_default_instance(); + } + static inline const LocalizedMessage* internal_default_instance() { + return reinterpret_cast( + &_LocalizedMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(LocalizedMessage& a, LocalizedMessage& b) { + a.Swap(&b); + } + inline void Swap(LocalizedMessage* 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(LocalizedMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + LocalizedMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LocalizedMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const LocalizedMessage& from) { + LocalizedMessage::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LocalizedMessage* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.LocalizedMessage"; + } + protected: + explicit LocalizedMessage(::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 { + kLocaleFieldNumber = 1, + kMessageFieldNumber = 2, + }; + // string locale = 1 [json_name = "locale"]; + void clear_locale(); + const std::string& locale() const; + template + void set_locale(ArgT0&& arg0, ArgT... args); + std::string* mutable_locale(); + PROTOBUF_NODISCARD std::string* release_locale(); + void set_allocated_locale(std::string* locale); + private: + const std::string& _internal_locale() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_locale(const std::string& value); + std::string* _internal_mutable_locale(); + public: + + // string message = 2 [json_name = "message"]; + void clear_message(); + const std::string& message() const; + template + void set_message(ArgT0&& arg0, ArgT... args); + std::string* mutable_message(); + PROTOBUF_NODISCARD std::string* release_message(); + void set_allocated_message(std::string* message); + private: + const std::string& _internal_message() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); + std::string* _internal_mutable_message(); + public: + + // @@protoc_insertion_point(class_scope:google.rpc.LocalizedMessage) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr locale_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// RetryInfo + +// .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; +inline bool RetryInfo::_internal_has_retry_delay() const { + return this != internal_default_instance() && _impl_.retry_delay_ != nullptr; +} +inline bool RetryInfo::has_retry_delay() const { + return _internal_has_retry_delay(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& RetryInfo::_internal_retry_delay() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = _impl_.retry_delay_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& RetryInfo::retry_delay() const { + // @@protoc_insertion_point(field_get:google.rpc.RetryInfo.retry_delay) + return _internal_retry_delay(); +} +inline void RetryInfo::unsafe_arena_set_allocated_retry_delay( + ::PROTOBUF_NAMESPACE_ID::Duration* retry_delay) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.retry_delay_); + } + _impl_.retry_delay_ = retry_delay; + if (retry_delay) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.RetryInfo.retry_delay) +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* RetryInfo::release_retry_delay() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.retry_delay_; + _impl_.retry_delay_ = 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::Duration* RetryInfo::unsafe_arena_release_retry_delay() { + // @@protoc_insertion_point(field_release:google.rpc.RetryInfo.retry_delay) + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.retry_delay_; + _impl_.retry_delay_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* RetryInfo::_internal_mutable_retry_delay() { + + if (_impl_.retry_delay_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + _impl_.retry_delay_ = p; + } + return _impl_.retry_delay_; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* RetryInfo::mutable_retry_delay() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_retry_delay(); + // @@protoc_insertion_point(field_mutable:google.rpc.RetryInfo.retry_delay) + return _msg; +} +inline void RetryInfo::set_allocated_retry_delay(::PROTOBUF_NAMESPACE_ID::Duration* retry_delay) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.retry_delay_); + } + if (retry_delay) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(retry_delay)); + if (message_arena != submessage_arena) { + retry_delay = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, retry_delay, submessage_arena); + } + + } else { + + } + _impl_.retry_delay_ = retry_delay; + // @@protoc_insertion_point(field_set_allocated:google.rpc.RetryInfo.retry_delay) +} + +// ------------------------------------------------------------------- + +// DebugInfo + +// repeated string stack_entries = 1 [json_name = "stackEntries"]; +inline int DebugInfo::_internal_stack_entries_size() const { + return _impl_.stack_entries_.size(); +} +inline int DebugInfo::stack_entries_size() const { + return _internal_stack_entries_size(); +} +inline void DebugInfo::clear_stack_entries() { + _impl_.stack_entries_.Clear(); +} +inline std::string* DebugInfo::add_stack_entries() { + std::string* _s = _internal_add_stack_entries(); + // @@protoc_insertion_point(field_add_mutable:google.rpc.DebugInfo.stack_entries) + return _s; +} +inline const std::string& DebugInfo::_internal_stack_entries(int index) const { + return _impl_.stack_entries_.Get(index); +} +inline const std::string& DebugInfo::stack_entries(int index) const { + // @@protoc_insertion_point(field_get:google.rpc.DebugInfo.stack_entries) + return _internal_stack_entries(index); +} +inline std::string* DebugInfo::mutable_stack_entries(int index) { + // @@protoc_insertion_point(field_mutable:google.rpc.DebugInfo.stack_entries) + return _impl_.stack_entries_.Mutable(index); +} +inline void DebugInfo::set_stack_entries(int index, const std::string& value) { + _impl_.stack_entries_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:google.rpc.DebugInfo.stack_entries) +} +inline void DebugInfo::set_stack_entries(int index, std::string&& value) { + _impl_.stack_entries_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:google.rpc.DebugInfo.stack_entries) +} +inline void DebugInfo::set_stack_entries(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.stack_entries_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:google.rpc.DebugInfo.stack_entries) +} +inline void DebugInfo::set_stack_entries(int index, const char* value, size_t size) { + _impl_.stack_entries_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:google.rpc.DebugInfo.stack_entries) +} +inline std::string* DebugInfo::_internal_add_stack_entries() { + return _impl_.stack_entries_.Add(); +} +inline void DebugInfo::add_stack_entries(const std::string& value) { + _impl_.stack_entries_.Add()->assign(value); + // @@protoc_insertion_point(field_add:google.rpc.DebugInfo.stack_entries) +} +inline void DebugInfo::add_stack_entries(std::string&& value) { + _impl_.stack_entries_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:google.rpc.DebugInfo.stack_entries) +} +inline void DebugInfo::add_stack_entries(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.stack_entries_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:google.rpc.DebugInfo.stack_entries) +} +inline void DebugInfo::add_stack_entries(const char* value, size_t size) { + _impl_.stack_entries_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:google.rpc.DebugInfo.stack_entries) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +DebugInfo::stack_entries() const { + // @@protoc_insertion_point(field_list:google.rpc.DebugInfo.stack_entries) + return _impl_.stack_entries_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +DebugInfo::mutable_stack_entries() { + // @@protoc_insertion_point(field_mutable_list:google.rpc.DebugInfo.stack_entries) + return &_impl_.stack_entries_; +} + +// string detail = 2 [json_name = "detail"]; +inline void DebugInfo::clear_detail() { + _impl_.detail_.ClearToEmpty(); +} +inline const std::string& DebugInfo::detail() const { + // @@protoc_insertion_point(field_get:google.rpc.DebugInfo.detail) + return _internal_detail(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DebugInfo::set_detail(ArgT0&& arg0, ArgT... args) { + + _impl_.detail_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.DebugInfo.detail) +} +inline std::string* DebugInfo::mutable_detail() { + std::string* _s = _internal_mutable_detail(); + // @@protoc_insertion_point(field_mutable:google.rpc.DebugInfo.detail) + return _s; +} +inline const std::string& DebugInfo::_internal_detail() const { + return _impl_.detail_.Get(); +} +inline void DebugInfo::_internal_set_detail(const std::string& value) { + + _impl_.detail_.Set(value, GetArenaForAllocation()); +} +inline std::string* DebugInfo::_internal_mutable_detail() { + + return _impl_.detail_.Mutable(GetArenaForAllocation()); +} +inline std::string* DebugInfo::release_detail() { + // @@protoc_insertion_point(field_release:google.rpc.DebugInfo.detail) + return _impl_.detail_.Release(); +} +inline void DebugInfo::set_allocated_detail(std::string* detail) { + if (detail != nullptr) { + + } else { + + } + _impl_.detail_.SetAllocated(detail, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.detail_.IsDefault()) { + _impl_.detail_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.DebugInfo.detail) +} + +// ------------------------------------------------------------------- + +// QuotaFailure_Violation + +// string subject = 1 [json_name = "subject"]; +inline void QuotaFailure_Violation::clear_subject() { + _impl_.subject_.ClearToEmpty(); +} +inline const std::string& QuotaFailure_Violation::subject() const { + // @@protoc_insertion_point(field_get:google.rpc.QuotaFailure.Violation.subject) + return _internal_subject(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void QuotaFailure_Violation::set_subject(ArgT0&& arg0, ArgT... args) { + + _impl_.subject_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.QuotaFailure.Violation.subject) +} +inline std::string* QuotaFailure_Violation::mutable_subject() { + std::string* _s = _internal_mutable_subject(); + // @@protoc_insertion_point(field_mutable:google.rpc.QuotaFailure.Violation.subject) + return _s; +} +inline const std::string& QuotaFailure_Violation::_internal_subject() const { + return _impl_.subject_.Get(); +} +inline void QuotaFailure_Violation::_internal_set_subject(const std::string& value) { + + _impl_.subject_.Set(value, GetArenaForAllocation()); +} +inline std::string* QuotaFailure_Violation::_internal_mutable_subject() { + + return _impl_.subject_.Mutable(GetArenaForAllocation()); +} +inline std::string* QuotaFailure_Violation::release_subject() { + // @@protoc_insertion_point(field_release:google.rpc.QuotaFailure.Violation.subject) + return _impl_.subject_.Release(); +} +inline void QuotaFailure_Violation::set_allocated_subject(std::string* subject) { + if (subject != nullptr) { + + } else { + + } + _impl_.subject_.SetAllocated(subject, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.subject_.IsDefault()) { + _impl_.subject_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.QuotaFailure.Violation.subject) +} + +// string description = 2 [json_name = "description"]; +inline void QuotaFailure_Violation::clear_description() { + _impl_.description_.ClearToEmpty(); +} +inline const std::string& QuotaFailure_Violation::description() const { + // @@protoc_insertion_point(field_get:google.rpc.QuotaFailure.Violation.description) + return _internal_description(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void QuotaFailure_Violation::set_description(ArgT0&& arg0, ArgT... args) { + + _impl_.description_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.QuotaFailure.Violation.description) +} +inline std::string* QuotaFailure_Violation::mutable_description() { + std::string* _s = _internal_mutable_description(); + // @@protoc_insertion_point(field_mutable:google.rpc.QuotaFailure.Violation.description) + return _s; +} +inline const std::string& QuotaFailure_Violation::_internal_description() const { + return _impl_.description_.Get(); +} +inline void QuotaFailure_Violation::_internal_set_description(const std::string& value) { + + _impl_.description_.Set(value, GetArenaForAllocation()); +} +inline std::string* QuotaFailure_Violation::_internal_mutable_description() { + + return _impl_.description_.Mutable(GetArenaForAllocation()); +} +inline std::string* QuotaFailure_Violation::release_description() { + // @@protoc_insertion_point(field_release:google.rpc.QuotaFailure.Violation.description) + return _impl_.description_.Release(); +} +inline void QuotaFailure_Violation::set_allocated_description(std::string* description) { + if (description != nullptr) { + + } else { + + } + _impl_.description_.SetAllocated(description, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.description_.IsDefault()) { + _impl_.description_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.QuotaFailure.Violation.description) +} + +// ------------------------------------------------------------------- + +// QuotaFailure + +// repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"]; +inline int QuotaFailure::_internal_violations_size() const { + return _impl_.violations_.size(); +} +inline int QuotaFailure::violations_size() const { + return _internal_violations_size(); +} +inline void QuotaFailure::clear_violations() { + _impl_.violations_.Clear(); +} +inline ::google::rpc::QuotaFailure_Violation* QuotaFailure::mutable_violations(int index) { + // @@protoc_insertion_point(field_mutable:google.rpc.QuotaFailure.violations) + return _impl_.violations_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::QuotaFailure_Violation >* +QuotaFailure::mutable_violations() { + // @@protoc_insertion_point(field_mutable_list:google.rpc.QuotaFailure.violations) + return &_impl_.violations_; +} +inline const ::google::rpc::QuotaFailure_Violation& QuotaFailure::_internal_violations(int index) const { + return _impl_.violations_.Get(index); +} +inline const ::google::rpc::QuotaFailure_Violation& QuotaFailure::violations(int index) const { + // @@protoc_insertion_point(field_get:google.rpc.QuotaFailure.violations) + return _internal_violations(index); +} +inline ::google::rpc::QuotaFailure_Violation* QuotaFailure::_internal_add_violations() { + return _impl_.violations_.Add(); +} +inline ::google::rpc::QuotaFailure_Violation* QuotaFailure::add_violations() { + ::google::rpc::QuotaFailure_Violation* _add = _internal_add_violations(); + // @@protoc_insertion_point(field_add:google.rpc.QuotaFailure.violations) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::QuotaFailure_Violation >& +QuotaFailure::violations() const { + // @@protoc_insertion_point(field_list:google.rpc.QuotaFailure.violations) + return _impl_.violations_; +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ErrorInfo + +// string reason = 1 [json_name = "reason"]; +inline void ErrorInfo::clear_reason() { + _impl_.reason_.ClearToEmpty(); +} +inline const std::string& ErrorInfo::reason() const { + // @@protoc_insertion_point(field_get:google.rpc.ErrorInfo.reason) + return _internal_reason(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ErrorInfo::set_reason(ArgT0&& arg0, ArgT... args) { + + _impl_.reason_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.ErrorInfo.reason) +} +inline std::string* ErrorInfo::mutable_reason() { + std::string* _s = _internal_mutable_reason(); + // @@protoc_insertion_point(field_mutable:google.rpc.ErrorInfo.reason) + return _s; +} +inline const std::string& ErrorInfo::_internal_reason() const { + return _impl_.reason_.Get(); +} +inline void ErrorInfo::_internal_set_reason(const std::string& value) { + + _impl_.reason_.Set(value, GetArenaForAllocation()); +} +inline std::string* ErrorInfo::_internal_mutable_reason() { + + return _impl_.reason_.Mutable(GetArenaForAllocation()); +} +inline std::string* ErrorInfo::release_reason() { + // @@protoc_insertion_point(field_release:google.rpc.ErrorInfo.reason) + return _impl_.reason_.Release(); +} +inline void ErrorInfo::set_allocated_reason(std::string* reason) { + if (reason != nullptr) { + + } else { + + } + _impl_.reason_.SetAllocated(reason, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.reason_.IsDefault()) { + _impl_.reason_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.ErrorInfo.reason) +} + +// string domain = 2 [json_name = "domain"]; +inline void ErrorInfo::clear_domain() { + _impl_.domain_.ClearToEmpty(); +} +inline const std::string& ErrorInfo::domain() const { + // @@protoc_insertion_point(field_get:google.rpc.ErrorInfo.domain) + return _internal_domain(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ErrorInfo::set_domain(ArgT0&& arg0, ArgT... args) { + + _impl_.domain_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.ErrorInfo.domain) +} +inline std::string* ErrorInfo::mutable_domain() { + std::string* _s = _internal_mutable_domain(); + // @@protoc_insertion_point(field_mutable:google.rpc.ErrorInfo.domain) + return _s; +} +inline const std::string& ErrorInfo::_internal_domain() const { + return _impl_.domain_.Get(); +} +inline void ErrorInfo::_internal_set_domain(const std::string& value) { + + _impl_.domain_.Set(value, GetArenaForAllocation()); +} +inline std::string* ErrorInfo::_internal_mutable_domain() { + + return _impl_.domain_.Mutable(GetArenaForAllocation()); +} +inline std::string* ErrorInfo::release_domain() { + // @@protoc_insertion_point(field_release:google.rpc.ErrorInfo.domain) + return _impl_.domain_.Release(); +} +inline void ErrorInfo::set_allocated_domain(std::string* domain) { + if (domain != nullptr) { + + } else { + + } + _impl_.domain_.SetAllocated(domain, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.domain_.IsDefault()) { + _impl_.domain_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.ErrorInfo.domain) +} + +// map metadata = 3 [json_name = "metadata"]; +inline int ErrorInfo::_internal_metadata_size() const { + return _impl_.metadata_.size(); +} +inline int ErrorInfo::metadata_size() const { + return _internal_metadata_size(); +} +inline void ErrorInfo::clear_metadata() { + _impl_.metadata_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +ErrorInfo::_internal_metadata() const { + return _impl_.metadata_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +ErrorInfo::metadata() const { + // @@protoc_insertion_point(field_map:google.rpc.ErrorInfo.metadata) + return _internal_metadata(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +ErrorInfo::_internal_mutable_metadata() { + return _impl_.metadata_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +ErrorInfo::mutable_metadata() { + // @@protoc_insertion_point(field_mutable_map:google.rpc.ErrorInfo.metadata) + return _internal_mutable_metadata(); +} + +// ------------------------------------------------------------------- + +// PreconditionFailure_Violation + +// string type = 1 [json_name = "type"]; +inline void PreconditionFailure_Violation::clear_type() { + _impl_.type_.ClearToEmpty(); +} +inline const std::string& PreconditionFailure_Violation::type() const { + // @@protoc_insertion_point(field_get:google.rpc.PreconditionFailure.Violation.type) + return _internal_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PreconditionFailure_Violation::set_type(ArgT0&& arg0, ArgT... args) { + + _impl_.type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.PreconditionFailure.Violation.type) +} +inline std::string* PreconditionFailure_Violation::mutable_type() { + std::string* _s = _internal_mutable_type(); + // @@protoc_insertion_point(field_mutable:google.rpc.PreconditionFailure.Violation.type) + return _s; +} +inline const std::string& PreconditionFailure_Violation::_internal_type() const { + return _impl_.type_.Get(); +} +inline void PreconditionFailure_Violation::_internal_set_type(const std::string& value) { + + _impl_.type_.Set(value, GetArenaForAllocation()); +} +inline std::string* PreconditionFailure_Violation::_internal_mutable_type() { + + return _impl_.type_.Mutable(GetArenaForAllocation()); +} +inline std::string* PreconditionFailure_Violation::release_type() { + // @@protoc_insertion_point(field_release:google.rpc.PreconditionFailure.Violation.type) + return _impl_.type_.Release(); +} +inline void PreconditionFailure_Violation::set_allocated_type(std::string* type) { + if (type != nullptr) { + + } else { + + } + _impl_.type_.SetAllocated(type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.type_.IsDefault()) { + _impl_.type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.PreconditionFailure.Violation.type) +} + +// string subject = 2 [json_name = "subject"]; +inline void PreconditionFailure_Violation::clear_subject() { + _impl_.subject_.ClearToEmpty(); +} +inline const std::string& PreconditionFailure_Violation::subject() const { + // @@protoc_insertion_point(field_get:google.rpc.PreconditionFailure.Violation.subject) + return _internal_subject(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PreconditionFailure_Violation::set_subject(ArgT0&& arg0, ArgT... args) { + + _impl_.subject_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.PreconditionFailure.Violation.subject) +} +inline std::string* PreconditionFailure_Violation::mutable_subject() { + std::string* _s = _internal_mutable_subject(); + // @@protoc_insertion_point(field_mutable:google.rpc.PreconditionFailure.Violation.subject) + return _s; +} +inline const std::string& PreconditionFailure_Violation::_internal_subject() const { + return _impl_.subject_.Get(); +} +inline void PreconditionFailure_Violation::_internal_set_subject(const std::string& value) { + + _impl_.subject_.Set(value, GetArenaForAllocation()); +} +inline std::string* PreconditionFailure_Violation::_internal_mutable_subject() { + + return _impl_.subject_.Mutable(GetArenaForAllocation()); +} +inline std::string* PreconditionFailure_Violation::release_subject() { + // @@protoc_insertion_point(field_release:google.rpc.PreconditionFailure.Violation.subject) + return _impl_.subject_.Release(); +} +inline void PreconditionFailure_Violation::set_allocated_subject(std::string* subject) { + if (subject != nullptr) { + + } else { + + } + _impl_.subject_.SetAllocated(subject, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.subject_.IsDefault()) { + _impl_.subject_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.PreconditionFailure.Violation.subject) +} + +// string description = 3 [json_name = "description"]; +inline void PreconditionFailure_Violation::clear_description() { + _impl_.description_.ClearToEmpty(); +} +inline const std::string& PreconditionFailure_Violation::description() const { + // @@protoc_insertion_point(field_get:google.rpc.PreconditionFailure.Violation.description) + return _internal_description(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PreconditionFailure_Violation::set_description(ArgT0&& arg0, ArgT... args) { + + _impl_.description_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.PreconditionFailure.Violation.description) +} +inline std::string* PreconditionFailure_Violation::mutable_description() { + std::string* _s = _internal_mutable_description(); + // @@protoc_insertion_point(field_mutable:google.rpc.PreconditionFailure.Violation.description) + return _s; +} +inline const std::string& PreconditionFailure_Violation::_internal_description() const { + return _impl_.description_.Get(); +} +inline void PreconditionFailure_Violation::_internal_set_description(const std::string& value) { + + _impl_.description_.Set(value, GetArenaForAllocation()); +} +inline std::string* PreconditionFailure_Violation::_internal_mutable_description() { + + return _impl_.description_.Mutable(GetArenaForAllocation()); +} +inline std::string* PreconditionFailure_Violation::release_description() { + // @@protoc_insertion_point(field_release:google.rpc.PreconditionFailure.Violation.description) + return _impl_.description_.Release(); +} +inline void PreconditionFailure_Violation::set_allocated_description(std::string* description) { + if (description != nullptr) { + + } else { + + } + _impl_.description_.SetAllocated(description, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.description_.IsDefault()) { + _impl_.description_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.PreconditionFailure.Violation.description) +} + +// ------------------------------------------------------------------- + +// PreconditionFailure + +// repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; +inline int PreconditionFailure::_internal_violations_size() const { + return _impl_.violations_.size(); +} +inline int PreconditionFailure::violations_size() const { + return _internal_violations_size(); +} +inline void PreconditionFailure::clear_violations() { + _impl_.violations_.Clear(); +} +inline ::google::rpc::PreconditionFailure_Violation* PreconditionFailure::mutable_violations(int index) { + // @@protoc_insertion_point(field_mutable:google.rpc.PreconditionFailure.violations) + return _impl_.violations_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::PreconditionFailure_Violation >* +PreconditionFailure::mutable_violations() { + // @@protoc_insertion_point(field_mutable_list:google.rpc.PreconditionFailure.violations) + return &_impl_.violations_; +} +inline const ::google::rpc::PreconditionFailure_Violation& PreconditionFailure::_internal_violations(int index) const { + return _impl_.violations_.Get(index); +} +inline const ::google::rpc::PreconditionFailure_Violation& PreconditionFailure::violations(int index) const { + // @@protoc_insertion_point(field_get:google.rpc.PreconditionFailure.violations) + return _internal_violations(index); +} +inline ::google::rpc::PreconditionFailure_Violation* PreconditionFailure::_internal_add_violations() { + return _impl_.violations_.Add(); +} +inline ::google::rpc::PreconditionFailure_Violation* PreconditionFailure::add_violations() { + ::google::rpc::PreconditionFailure_Violation* _add = _internal_add_violations(); + // @@protoc_insertion_point(field_add:google.rpc.PreconditionFailure.violations) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::PreconditionFailure_Violation >& +PreconditionFailure::violations() const { + // @@protoc_insertion_point(field_list:google.rpc.PreconditionFailure.violations) + return _impl_.violations_; +} + +// ------------------------------------------------------------------- + +// BadRequest_FieldViolation + +// string field = 1 [json_name = "field"]; +inline void BadRequest_FieldViolation::clear_field() { + _impl_.field_.ClearToEmpty(); +} +inline const std::string& BadRequest_FieldViolation::field() const { + // @@protoc_insertion_point(field_get:google.rpc.BadRequest.FieldViolation.field) + return _internal_field(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BadRequest_FieldViolation::set_field(ArgT0&& arg0, ArgT... args) { + + _impl_.field_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.BadRequest.FieldViolation.field) +} +inline std::string* BadRequest_FieldViolation::mutable_field() { + std::string* _s = _internal_mutable_field(); + // @@protoc_insertion_point(field_mutable:google.rpc.BadRequest.FieldViolation.field) + return _s; +} +inline const std::string& BadRequest_FieldViolation::_internal_field() const { + return _impl_.field_.Get(); +} +inline void BadRequest_FieldViolation::_internal_set_field(const std::string& value) { + + _impl_.field_.Set(value, GetArenaForAllocation()); +} +inline std::string* BadRequest_FieldViolation::_internal_mutable_field() { + + return _impl_.field_.Mutable(GetArenaForAllocation()); +} +inline std::string* BadRequest_FieldViolation::release_field() { + // @@protoc_insertion_point(field_release:google.rpc.BadRequest.FieldViolation.field) + return _impl_.field_.Release(); +} +inline void BadRequest_FieldViolation::set_allocated_field(std::string* field) { + if (field != nullptr) { + + } else { + + } + _impl_.field_.SetAllocated(field, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.field_.IsDefault()) { + _impl_.field_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.BadRequest.FieldViolation.field) +} + +// string description = 2 [json_name = "description"]; +inline void BadRequest_FieldViolation::clear_description() { + _impl_.description_.ClearToEmpty(); +} +inline const std::string& BadRequest_FieldViolation::description() const { + // @@protoc_insertion_point(field_get:google.rpc.BadRequest.FieldViolation.description) + return _internal_description(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BadRequest_FieldViolation::set_description(ArgT0&& arg0, ArgT... args) { + + _impl_.description_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.BadRequest.FieldViolation.description) +} +inline std::string* BadRequest_FieldViolation::mutable_description() { + std::string* _s = _internal_mutable_description(); + // @@protoc_insertion_point(field_mutable:google.rpc.BadRequest.FieldViolation.description) + return _s; +} +inline const std::string& BadRequest_FieldViolation::_internal_description() const { + return _impl_.description_.Get(); +} +inline void BadRequest_FieldViolation::_internal_set_description(const std::string& value) { + + _impl_.description_.Set(value, GetArenaForAllocation()); +} +inline std::string* BadRequest_FieldViolation::_internal_mutable_description() { + + return _impl_.description_.Mutable(GetArenaForAllocation()); +} +inline std::string* BadRequest_FieldViolation::release_description() { + // @@protoc_insertion_point(field_release:google.rpc.BadRequest.FieldViolation.description) + return _impl_.description_.Release(); +} +inline void BadRequest_FieldViolation::set_allocated_description(std::string* description) { + if (description != nullptr) { + + } else { + + } + _impl_.description_.SetAllocated(description, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.description_.IsDefault()) { + _impl_.description_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.BadRequest.FieldViolation.description) +} + +// ------------------------------------------------------------------- + +// BadRequest + +// repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; +inline int BadRequest::_internal_field_violations_size() const { + return _impl_.field_violations_.size(); +} +inline int BadRequest::field_violations_size() const { + return _internal_field_violations_size(); +} +inline void BadRequest::clear_field_violations() { + _impl_.field_violations_.Clear(); +} +inline ::google::rpc::BadRequest_FieldViolation* BadRequest::mutable_field_violations(int index) { + // @@protoc_insertion_point(field_mutable:google.rpc.BadRequest.field_violations) + return _impl_.field_violations_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::BadRequest_FieldViolation >* +BadRequest::mutable_field_violations() { + // @@protoc_insertion_point(field_mutable_list:google.rpc.BadRequest.field_violations) + return &_impl_.field_violations_; +} +inline const ::google::rpc::BadRequest_FieldViolation& BadRequest::_internal_field_violations(int index) const { + return _impl_.field_violations_.Get(index); +} +inline const ::google::rpc::BadRequest_FieldViolation& BadRequest::field_violations(int index) const { + // @@protoc_insertion_point(field_get:google.rpc.BadRequest.field_violations) + return _internal_field_violations(index); +} +inline ::google::rpc::BadRequest_FieldViolation* BadRequest::_internal_add_field_violations() { + return _impl_.field_violations_.Add(); +} +inline ::google::rpc::BadRequest_FieldViolation* BadRequest::add_field_violations() { + ::google::rpc::BadRequest_FieldViolation* _add = _internal_add_field_violations(); + // @@protoc_insertion_point(field_add:google.rpc.BadRequest.field_violations) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::BadRequest_FieldViolation >& +BadRequest::field_violations() const { + // @@protoc_insertion_point(field_list:google.rpc.BadRequest.field_violations) + return _impl_.field_violations_; +} + +// ------------------------------------------------------------------- + +// RequestInfo + +// string request_id = 1 [json_name = "requestId"]; +inline void RequestInfo::clear_request_id() { + _impl_.request_id_.ClearToEmpty(); +} +inline const std::string& RequestInfo::request_id() const { + // @@protoc_insertion_point(field_get:google.rpc.RequestInfo.request_id) + return _internal_request_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RequestInfo::set_request_id(ArgT0&& arg0, ArgT... args) { + + _impl_.request_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.RequestInfo.request_id) +} +inline std::string* RequestInfo::mutable_request_id() { + std::string* _s = _internal_mutable_request_id(); + // @@protoc_insertion_point(field_mutable:google.rpc.RequestInfo.request_id) + return _s; +} +inline const std::string& RequestInfo::_internal_request_id() const { + return _impl_.request_id_.Get(); +} +inline void RequestInfo::_internal_set_request_id(const std::string& value) { + + _impl_.request_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* RequestInfo::_internal_mutable_request_id() { + + return _impl_.request_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* RequestInfo::release_request_id() { + // @@protoc_insertion_point(field_release:google.rpc.RequestInfo.request_id) + return _impl_.request_id_.Release(); +} +inline void RequestInfo::set_allocated_request_id(std::string* request_id) { + if (request_id != nullptr) { + + } else { + + } + _impl_.request_id_.SetAllocated(request_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.request_id_.IsDefault()) { + _impl_.request_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.RequestInfo.request_id) +} + +// string serving_data = 2 [json_name = "servingData"]; +inline void RequestInfo::clear_serving_data() { + _impl_.serving_data_.ClearToEmpty(); +} +inline const std::string& RequestInfo::serving_data() const { + // @@protoc_insertion_point(field_get:google.rpc.RequestInfo.serving_data) + return _internal_serving_data(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RequestInfo::set_serving_data(ArgT0&& arg0, ArgT... args) { + + _impl_.serving_data_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.RequestInfo.serving_data) +} +inline std::string* RequestInfo::mutable_serving_data() { + std::string* _s = _internal_mutable_serving_data(); + // @@protoc_insertion_point(field_mutable:google.rpc.RequestInfo.serving_data) + return _s; +} +inline const std::string& RequestInfo::_internal_serving_data() const { + return _impl_.serving_data_.Get(); +} +inline void RequestInfo::_internal_set_serving_data(const std::string& value) { + + _impl_.serving_data_.Set(value, GetArenaForAllocation()); +} +inline std::string* RequestInfo::_internal_mutable_serving_data() { + + return _impl_.serving_data_.Mutable(GetArenaForAllocation()); +} +inline std::string* RequestInfo::release_serving_data() { + // @@protoc_insertion_point(field_release:google.rpc.RequestInfo.serving_data) + return _impl_.serving_data_.Release(); +} +inline void RequestInfo::set_allocated_serving_data(std::string* serving_data) { + if (serving_data != nullptr) { + + } else { + + } + _impl_.serving_data_.SetAllocated(serving_data, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.serving_data_.IsDefault()) { + _impl_.serving_data_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.RequestInfo.serving_data) +} + +// ------------------------------------------------------------------- + +// ResourceInfo + +// string resource_type = 1 [json_name = "resourceType"]; +inline void ResourceInfo::clear_resource_type() { + _impl_.resource_type_.ClearToEmpty(); +} +inline const std::string& ResourceInfo::resource_type() const { + // @@protoc_insertion_point(field_get:google.rpc.ResourceInfo.resource_type) + return _internal_resource_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceInfo::set_resource_type(ArgT0&& arg0, ArgT... args) { + + _impl_.resource_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.ResourceInfo.resource_type) +} +inline std::string* ResourceInfo::mutable_resource_type() { + std::string* _s = _internal_mutable_resource_type(); + // @@protoc_insertion_point(field_mutable:google.rpc.ResourceInfo.resource_type) + return _s; +} +inline const std::string& ResourceInfo::_internal_resource_type() const { + return _impl_.resource_type_.Get(); +} +inline void ResourceInfo::_internal_set_resource_type(const std::string& value) { + + _impl_.resource_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* ResourceInfo::_internal_mutable_resource_type() { + + return _impl_.resource_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* ResourceInfo::release_resource_type() { + // @@protoc_insertion_point(field_release:google.rpc.ResourceInfo.resource_type) + return _impl_.resource_type_.Release(); +} +inline void ResourceInfo::set_allocated_resource_type(std::string* resource_type) { + if (resource_type != nullptr) { + + } else { + + } + _impl_.resource_type_.SetAllocated(resource_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.resource_type_.IsDefault()) { + _impl_.resource_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.ResourceInfo.resource_type) +} + +// string resource_name = 2 [json_name = "resourceName"]; +inline void ResourceInfo::clear_resource_name() { + _impl_.resource_name_.ClearToEmpty(); +} +inline const std::string& ResourceInfo::resource_name() const { + // @@protoc_insertion_point(field_get:google.rpc.ResourceInfo.resource_name) + return _internal_resource_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceInfo::set_resource_name(ArgT0&& arg0, ArgT... args) { + + _impl_.resource_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.ResourceInfo.resource_name) +} +inline std::string* ResourceInfo::mutable_resource_name() { + std::string* _s = _internal_mutable_resource_name(); + // @@protoc_insertion_point(field_mutable:google.rpc.ResourceInfo.resource_name) + return _s; +} +inline const std::string& ResourceInfo::_internal_resource_name() const { + return _impl_.resource_name_.Get(); +} +inline void ResourceInfo::_internal_set_resource_name(const std::string& value) { + + _impl_.resource_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* ResourceInfo::_internal_mutable_resource_name() { + + return _impl_.resource_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* ResourceInfo::release_resource_name() { + // @@protoc_insertion_point(field_release:google.rpc.ResourceInfo.resource_name) + return _impl_.resource_name_.Release(); +} +inline void ResourceInfo::set_allocated_resource_name(std::string* resource_name) { + if (resource_name != nullptr) { + + } else { + + } + _impl_.resource_name_.SetAllocated(resource_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.resource_name_.IsDefault()) { + _impl_.resource_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.ResourceInfo.resource_name) +} + +// string owner = 3 [json_name = "owner"]; +inline void ResourceInfo::clear_owner() { + _impl_.owner_.ClearToEmpty(); +} +inline const std::string& ResourceInfo::owner() const { + // @@protoc_insertion_point(field_get:google.rpc.ResourceInfo.owner) + return _internal_owner(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceInfo::set_owner(ArgT0&& arg0, ArgT... args) { + + _impl_.owner_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.ResourceInfo.owner) +} +inline std::string* ResourceInfo::mutable_owner() { + std::string* _s = _internal_mutable_owner(); + // @@protoc_insertion_point(field_mutable:google.rpc.ResourceInfo.owner) + return _s; +} +inline const std::string& ResourceInfo::_internal_owner() const { + return _impl_.owner_.Get(); +} +inline void ResourceInfo::_internal_set_owner(const std::string& value) { + + _impl_.owner_.Set(value, GetArenaForAllocation()); +} +inline std::string* ResourceInfo::_internal_mutable_owner() { + + return _impl_.owner_.Mutable(GetArenaForAllocation()); +} +inline std::string* ResourceInfo::release_owner() { + // @@protoc_insertion_point(field_release:google.rpc.ResourceInfo.owner) + return _impl_.owner_.Release(); +} +inline void ResourceInfo::set_allocated_owner(std::string* owner) { + if (owner != nullptr) { + + } else { + + } + _impl_.owner_.SetAllocated(owner, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.owner_.IsDefault()) { + _impl_.owner_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.ResourceInfo.owner) +} + +// string description = 4 [json_name = "description"]; +inline void ResourceInfo::clear_description() { + _impl_.description_.ClearToEmpty(); +} +inline const std::string& ResourceInfo::description() const { + // @@protoc_insertion_point(field_get:google.rpc.ResourceInfo.description) + return _internal_description(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceInfo::set_description(ArgT0&& arg0, ArgT... args) { + + _impl_.description_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.ResourceInfo.description) +} +inline std::string* ResourceInfo::mutable_description() { + std::string* _s = _internal_mutable_description(); + // @@protoc_insertion_point(field_mutable:google.rpc.ResourceInfo.description) + return _s; +} +inline const std::string& ResourceInfo::_internal_description() const { + return _impl_.description_.Get(); +} +inline void ResourceInfo::_internal_set_description(const std::string& value) { + + _impl_.description_.Set(value, GetArenaForAllocation()); +} +inline std::string* ResourceInfo::_internal_mutable_description() { + + return _impl_.description_.Mutable(GetArenaForAllocation()); +} +inline std::string* ResourceInfo::release_description() { + // @@protoc_insertion_point(field_release:google.rpc.ResourceInfo.description) + return _impl_.description_.Release(); +} +inline void ResourceInfo::set_allocated_description(std::string* description) { + if (description != nullptr) { + + } else { + + } + _impl_.description_.SetAllocated(description, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.description_.IsDefault()) { + _impl_.description_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.ResourceInfo.description) +} + +// ------------------------------------------------------------------- + +// Help_Link + +// string description = 1 [json_name = "description"]; +inline void Help_Link::clear_description() { + _impl_.description_.ClearToEmpty(); +} +inline const std::string& Help_Link::description() const { + // @@protoc_insertion_point(field_get:google.rpc.Help.Link.description) + return _internal_description(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Help_Link::set_description(ArgT0&& arg0, ArgT... args) { + + _impl_.description_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.Help.Link.description) +} +inline std::string* Help_Link::mutable_description() { + std::string* _s = _internal_mutable_description(); + // @@protoc_insertion_point(field_mutable:google.rpc.Help.Link.description) + return _s; +} +inline const std::string& Help_Link::_internal_description() const { + return _impl_.description_.Get(); +} +inline void Help_Link::_internal_set_description(const std::string& value) { + + _impl_.description_.Set(value, GetArenaForAllocation()); +} +inline std::string* Help_Link::_internal_mutable_description() { + + return _impl_.description_.Mutable(GetArenaForAllocation()); +} +inline std::string* Help_Link::release_description() { + // @@protoc_insertion_point(field_release:google.rpc.Help.Link.description) + return _impl_.description_.Release(); +} +inline void Help_Link::set_allocated_description(std::string* description) { + if (description != nullptr) { + + } else { + + } + _impl_.description_.SetAllocated(description, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.description_.IsDefault()) { + _impl_.description_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.Help.Link.description) +} + +// string url = 2 [json_name = "url"]; +inline void Help_Link::clear_url() { + _impl_.url_.ClearToEmpty(); +} +inline const std::string& Help_Link::url() const { + // @@protoc_insertion_point(field_get:google.rpc.Help.Link.url) + return _internal_url(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Help_Link::set_url(ArgT0&& arg0, ArgT... args) { + + _impl_.url_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.Help.Link.url) +} +inline std::string* Help_Link::mutable_url() { + std::string* _s = _internal_mutable_url(); + // @@protoc_insertion_point(field_mutable:google.rpc.Help.Link.url) + return _s; +} +inline const std::string& Help_Link::_internal_url() const { + return _impl_.url_.Get(); +} +inline void Help_Link::_internal_set_url(const std::string& value) { + + _impl_.url_.Set(value, GetArenaForAllocation()); +} +inline std::string* Help_Link::_internal_mutable_url() { + + return _impl_.url_.Mutable(GetArenaForAllocation()); +} +inline std::string* Help_Link::release_url() { + // @@protoc_insertion_point(field_release:google.rpc.Help.Link.url) + return _impl_.url_.Release(); +} +inline void Help_Link::set_allocated_url(std::string* url) { + if (url != nullptr) { + + } else { + + } + _impl_.url_.SetAllocated(url, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.url_.IsDefault()) { + _impl_.url_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.Help.Link.url) +} + +// ------------------------------------------------------------------- + +// Help + +// repeated .google.rpc.Help.Link links = 1 [json_name = "links"]; +inline int Help::_internal_links_size() const { + return _impl_.links_.size(); +} +inline int Help::links_size() const { + return _internal_links_size(); +} +inline void Help::clear_links() { + _impl_.links_.Clear(); +} +inline ::google::rpc::Help_Link* Help::mutable_links(int index) { + // @@protoc_insertion_point(field_mutable:google.rpc.Help.links) + return _impl_.links_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Help_Link >* +Help::mutable_links() { + // @@protoc_insertion_point(field_mutable_list:google.rpc.Help.links) + return &_impl_.links_; +} +inline const ::google::rpc::Help_Link& Help::_internal_links(int index) const { + return _impl_.links_.Get(index); +} +inline const ::google::rpc::Help_Link& Help::links(int index) const { + // @@protoc_insertion_point(field_get:google.rpc.Help.links) + return _internal_links(index); +} +inline ::google::rpc::Help_Link* Help::_internal_add_links() { + return _impl_.links_.Add(); +} +inline ::google::rpc::Help_Link* Help::add_links() { + ::google::rpc::Help_Link* _add = _internal_add_links(); + // @@protoc_insertion_point(field_add:google.rpc.Help.links) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Help_Link >& +Help::links() const { + // @@protoc_insertion_point(field_list:google.rpc.Help.links) + return _impl_.links_; +} + +// ------------------------------------------------------------------- + +// LocalizedMessage + +// string locale = 1 [json_name = "locale"]; +inline void LocalizedMessage::clear_locale() { + _impl_.locale_.ClearToEmpty(); +} +inline const std::string& LocalizedMessage::locale() const { + // @@protoc_insertion_point(field_get:google.rpc.LocalizedMessage.locale) + return _internal_locale(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void LocalizedMessage::set_locale(ArgT0&& arg0, ArgT... args) { + + _impl_.locale_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.LocalizedMessage.locale) +} +inline std::string* LocalizedMessage::mutable_locale() { + std::string* _s = _internal_mutable_locale(); + // @@protoc_insertion_point(field_mutable:google.rpc.LocalizedMessage.locale) + return _s; +} +inline const std::string& LocalizedMessage::_internal_locale() const { + return _impl_.locale_.Get(); +} +inline void LocalizedMessage::_internal_set_locale(const std::string& value) { + + _impl_.locale_.Set(value, GetArenaForAllocation()); +} +inline std::string* LocalizedMessage::_internal_mutable_locale() { + + return _impl_.locale_.Mutable(GetArenaForAllocation()); +} +inline std::string* LocalizedMessage::release_locale() { + // @@protoc_insertion_point(field_release:google.rpc.LocalizedMessage.locale) + return _impl_.locale_.Release(); +} +inline void LocalizedMessage::set_allocated_locale(std::string* locale) { + if (locale != nullptr) { + + } else { + + } + _impl_.locale_.SetAllocated(locale, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.locale_.IsDefault()) { + _impl_.locale_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.LocalizedMessage.locale) +} + +// string message = 2 [json_name = "message"]; +inline void LocalizedMessage::clear_message() { + _impl_.message_.ClearToEmpty(); +} +inline const std::string& LocalizedMessage::message() const { + // @@protoc_insertion_point(field_get:google.rpc.LocalizedMessage.message) + return _internal_message(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void LocalizedMessage::set_message(ArgT0&& arg0, ArgT... args) { + + _impl_.message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.LocalizedMessage.message) +} +inline std::string* LocalizedMessage::mutable_message() { + std::string* _s = _internal_mutable_message(); + // @@protoc_insertion_point(field_mutable:google.rpc.LocalizedMessage.message) + return _s; +} +inline const std::string& LocalizedMessage::_internal_message() const { + return _impl_.message_.Get(); +} +inline void LocalizedMessage::_internal_set_message(const std::string& value) { + + _impl_.message_.Set(value, GetArenaForAllocation()); +} +inline std::string* LocalizedMessage::_internal_mutable_message() { + + return _impl_.message_.Mutable(GetArenaForAllocation()); +} +inline std::string* LocalizedMessage::release_message() { + // @@protoc_insertion_point(field_release:google.rpc.LocalizedMessage.message) + return _impl_.message_.Release(); +} +inline void LocalizedMessage::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + _impl_.message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.message_.IsDefault()) { + _impl_.message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.LocalizedMessage.message) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace rpc +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2ferror_5fdetails_2eproto diff --git a/src/gen/google/rpc/status.grpc.pb.cc b/src/gen/google/rpc/status.grpc.pb.cc new file mode 100644 index 000000000..db282e2fd --- /dev/null +++ b/src/gen/google/rpc/status.grpc.pb.cc @@ -0,0 +1,27 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/rpc/status.proto + +#include "google/rpc/status.pb.h" +#include "google/rpc/status.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace rpc { + +} // namespace google +} // namespace rpc + diff --git a/src/gen/google/rpc/status.grpc.pb.h b/src/gen/google/rpc/status.grpc.pb.h new file mode 100644 index 000000000..00392c97a --- /dev/null +++ b/src/gen/google/rpc/status.grpc.pb.h @@ -0,0 +1,50 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/rpc/status.proto +// Original file comments: +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_google_2frpc_2fstatus_2eproto__INCLUDED +#define GRPC_google_2frpc_2fstatus_2eproto__INCLUDED + +#include "google/rpc/status.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace rpc { + +} // namespace rpc +} // namespace google + + +#endif // GRPC_google_2frpc_2fstatus_2eproto__INCLUDED diff --git a/src/gen/google/rpc/status.pb.cc b/src/gen/google/rpc/status.pb.cc new file mode 100644 index 000000000..fb572238c --- /dev/null +++ b/src/gen/google/rpc/status.pb.cc @@ -0,0 +1,373 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/rpc/status.proto + +#include "google/rpc/status.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace rpc { +PROTOBUF_CONSTEXPR Status::Status( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.details_)*/{} + , /*decltype(_impl_.message_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.code_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StatusDefaultTypeInternal() {} + union { + Status _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; +} // namespace rpc +} // namespace google +static ::_pb::Metadata file_level_metadata_google_2frpc_2fstatus_2eproto[1]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2frpc_2fstatus_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2frpc_2fstatus_2eproto = nullptr; + +const uint32_t TableStruct_google_2frpc_2fstatus_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::Status, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::Status, _impl_.code_), + PROTOBUF_FIELD_OFFSET(::google::rpc::Status, _impl_.message_), + PROTOBUF_FIELD_OFFSET(::google::rpc::Status, _impl_.details_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::rpc::Status)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::google::rpc::_Status_default_instance_._instance, +}; + +const char descriptor_table_protodef_google_2frpc_2fstatus_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\027google/rpc/status.proto\022\ngoogle.rpc\032\031g" + "oogle/protobuf/any.proto\"f\n\006Status\022\022\n\004co" + "de\030\001 \001(\005R\004code\022\030\n\007message\030\002 \001(\tR\007message" + "\022.\n\007details\030\003 \003(\0132\024.google.protobuf.AnyR" + "\007detailsBa\n\016com.google.rpcB\013StatusProtoP" + "\001Z7google.golang.org/genproto/googleapis" + "/rpc/status;status\370\001\001\242\002\003RPCb\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2frpc_2fstatus_2eproto_deps[1] = { + &::descriptor_table_google_2fprotobuf_2fany_2eproto, +}; +static ::_pbi::once_flag descriptor_table_google_2frpc_2fstatus_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_google_2frpc_2fstatus_2eproto = { + false, false, 275, descriptor_table_protodef_google_2frpc_2fstatus_2eproto, + "google/rpc/status.proto", + &descriptor_table_google_2frpc_2fstatus_2eproto_once, descriptor_table_google_2frpc_2fstatus_2eproto_deps, 1, 1, + schemas, file_default_instances, TableStruct_google_2frpc_2fstatus_2eproto::offsets, + file_level_metadata_google_2frpc_2fstatus_2eproto, file_level_enum_descriptors_google_2frpc_2fstatus_2eproto, + file_level_service_descriptors_google_2frpc_2fstatus_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2frpc_2fstatus_2eproto_getter() { + return &descriptor_table_google_2frpc_2fstatus_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2frpc_2fstatus_2eproto(&descriptor_table_google_2frpc_2fstatus_2eproto); +namespace google { +namespace rpc { + +// =================================================================== + +class Status::_Internal { + public: +}; + +void Status::clear_details() { + _impl_.details_.Clear(); +} +Status::Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:google.rpc.Status) +} +Status::Status(const Status& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Status* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.details_){from._impl_.details_} + , decltype(_impl_.message_){} + , decltype(_impl_.code_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + _this->_impl_.message_.Set(from._internal_message(), + _this->GetArenaForAllocation()); + } + _this->_impl_.code_ = from._impl_.code_; + // @@protoc_insertion_point(copy_constructor:google.rpc.Status) +} + +inline void Status::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.details_){arena} + , decltype(_impl_.message_){} + , decltype(_impl_.code_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Status::~Status() { + // @@protoc_insertion_point(destructor:google.rpc.Status) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Status::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.details_.~RepeatedPtrField(); + _impl_.message_.Destroy(); +} + +void Status::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Status::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.Status) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.details_.Clear(); + _impl_.message_.ClearToEmpty(); + _impl_.code_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Status::_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) { + // int32 code = 1 [json_name = "code"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string message = 2 [json_name = "message"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.Status.message")); + } else + goto handle_unusual; + continue; + // repeated .google.protobuf.Any details = 3 [json_name = "details"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_details(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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* Status::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.Status) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int32 code = 1 [json_name = "code"]; + if (this->_internal_code() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_code(), target); + } + + // string message = 2 [json_name = "message"]; + if (!this->_internal_message().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.Status.message"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_message(), target); + } + + // repeated .google.protobuf.Any details = 3 [json_name = "details"]; + for (unsigned i = 0, + n = static_cast(this->_internal_details_size()); i < n; i++) { + const auto& repfield = this->_internal_details(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.rpc.Status) + return target; +} + +size_t Status::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.Status) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.protobuf.Any details = 3 [json_name = "details"]; + total_size += 1UL * this->_internal_details_size(); + for (const auto& msg : this->_impl_.details_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string message = 2 [json_name = "message"]; + if (!this->_internal_message().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); + } + + // int32 code = 1 [json_name = "code"]; + if (this->_internal_code() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_code()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Status::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Status::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Status::GetClassData() const { return &_class_data_; } + + +void Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.Status) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.details_.MergeFrom(from._impl_.details_); + if (!from._internal_message().empty()) { + _this->_internal_set_message(from._internal_message()); + } + if (from._internal_code() != 0) { + _this->_internal_set_code(from._internal_code()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Status::CopyFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.Status) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Status::IsInitialized() const { + return true; +} + +void Status::InternalSwap(Status* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.details_.InternalSwap(&other->_impl_.details_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.message_, lhs_arena, + &other->_impl_.message_, rhs_arena + ); + swap(_impl_.code_, other->_impl_.code_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2frpc_2fstatus_2eproto_getter, &descriptor_table_google_2frpc_2fstatus_2eproto_once, + file_level_metadata_google_2frpc_2fstatus_2eproto[0]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace rpc +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::rpc::Status* +Arena::CreateMaybeMessage< ::google::rpc::Status >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::Status >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/google/rpc/status.pb.h b/src/gen/google/rpc/status.pb.h new file mode 100644 index 000000000..374442212 --- /dev/null +++ b/src/gen/google/rpc/status.pb.h @@ -0,0 +1,375 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/rpc/status.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fstatus_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fstatus_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2frpc_2fstatus_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2frpc_2fstatus_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2frpc_2fstatus_2eproto; +namespace google { +namespace rpc { +class Status; +struct StatusDefaultTypeInternal; +extern StatusDefaultTypeInternal _Status_default_instance_; +} // namespace rpc +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> ::google::rpc::Status* Arena::CreateMaybeMessage<::google::rpc::Status>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace rpc { + +// =================================================================== + +class Status final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.Status) */ { + public: + inline Status() : Status(nullptr) {} + ~Status() override; + explicit PROTOBUF_CONSTEXPR Status(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Status(const Status& from); + Status(Status&& from) noexcept + : Status() { + *this = ::std::move(from); + } + + inline Status& operator=(const Status& from) { + CopyFrom(from); + return *this; + } + inline Status& operator=(Status&& 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 Status& default_instance() { + return *internal_default_instance(); + } + static inline const Status* internal_default_instance() { + return reinterpret_cast( + &_Status_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(Status& a, Status& b) { + a.Swap(&b); + } + inline void Swap(Status* 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(Status* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Status& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Status& from) { + Status::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Status* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.Status"; + } + protected: + explicit Status(::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 { + kDetailsFieldNumber = 3, + kMessageFieldNumber = 2, + kCodeFieldNumber = 1, + }; + // repeated .google.protobuf.Any details = 3 [json_name = "details"]; + int details_size() const; + private: + int _internal_details_size() const; + public: + void clear_details(); + ::PROTOBUF_NAMESPACE_ID::Any* mutable_details(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >* + mutable_details(); + private: + const ::PROTOBUF_NAMESPACE_ID::Any& _internal_details(int index) const; + ::PROTOBUF_NAMESPACE_ID::Any* _internal_add_details(); + public: + const ::PROTOBUF_NAMESPACE_ID::Any& details(int index) const; + ::PROTOBUF_NAMESPACE_ID::Any* add_details(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >& + details() const; + + // string message = 2 [json_name = "message"]; + void clear_message(); + const std::string& message() const; + template + void set_message(ArgT0&& arg0, ArgT... args); + std::string* mutable_message(); + PROTOBUF_NODISCARD std::string* release_message(); + void set_allocated_message(std::string* message); + private: + const std::string& _internal_message() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); + std::string* _internal_mutable_message(); + public: + + // int32 code = 1 [json_name = "code"]; + void clear_code(); + int32_t code() const; + void set_code(int32_t value); + private: + int32_t _internal_code() const; + void _internal_set_code(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:google.rpc.Status) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any > details_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + int32_t code_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2frpc_2fstatus_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Status + +// int32 code = 1 [json_name = "code"]; +inline void Status::clear_code() { + _impl_.code_ = 0; +} +inline int32_t Status::_internal_code() const { + return _impl_.code_; +} +inline int32_t Status::code() const { + // @@protoc_insertion_point(field_get:google.rpc.Status.code) + return _internal_code(); +} +inline void Status::_internal_set_code(int32_t value) { + + _impl_.code_ = value; +} +inline void Status::set_code(int32_t value) { + _internal_set_code(value); + // @@protoc_insertion_point(field_set:google.rpc.Status.code) +} + +// string message = 2 [json_name = "message"]; +inline void Status::clear_message() { + _impl_.message_.ClearToEmpty(); +} +inline const std::string& Status::message() const { + // @@protoc_insertion_point(field_get:google.rpc.Status.message) + return _internal_message(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Status::set_message(ArgT0&& arg0, ArgT... args) { + + _impl_.message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.Status.message) +} +inline std::string* Status::mutable_message() { + std::string* _s = _internal_mutable_message(); + // @@protoc_insertion_point(field_mutable:google.rpc.Status.message) + return _s; +} +inline const std::string& Status::_internal_message() const { + return _impl_.message_.Get(); +} +inline void Status::_internal_set_message(const std::string& value) { + + _impl_.message_.Set(value, GetArenaForAllocation()); +} +inline std::string* Status::_internal_mutable_message() { + + return _impl_.message_.Mutable(GetArenaForAllocation()); +} +inline std::string* Status::release_message() { + // @@protoc_insertion_point(field_release:google.rpc.Status.message) + return _impl_.message_.Release(); +} +inline void Status::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + _impl_.message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.message_.IsDefault()) { + _impl_.message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.Status.message) +} + +// repeated .google.protobuf.Any details = 3 [json_name = "details"]; +inline int Status::_internal_details_size() const { + return _impl_.details_.size(); +} +inline int Status::details_size() const { + return _internal_details_size(); +} +inline ::PROTOBUF_NAMESPACE_ID::Any* Status::mutable_details(int index) { + // @@protoc_insertion_point(field_mutable:google.rpc.Status.details) + return _impl_.details_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >* +Status::mutable_details() { + // @@protoc_insertion_point(field_mutable_list:google.rpc.Status.details) + return &_impl_.details_; +} +inline const ::PROTOBUF_NAMESPACE_ID::Any& Status::_internal_details(int index) const { + return _impl_.details_.Get(index); +} +inline const ::PROTOBUF_NAMESPACE_ID::Any& Status::details(int index) const { + // @@protoc_insertion_point(field_get:google.rpc.Status.details) + return _internal_details(index); +} +inline ::PROTOBUF_NAMESPACE_ID::Any* Status::_internal_add_details() { + return _impl_.details_.Add(); +} +inline ::PROTOBUF_NAMESPACE_ID::Any* Status::add_details() { + ::PROTOBUF_NAMESPACE_ID::Any* _add = _internal_add_details(); + // @@protoc_insertion_point(field_add:google.rpc.Status.details) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >& +Status::details() const { + // @@protoc_insertion_point(field_list:google.rpc.Status.details) + return _impl_.details_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace rpc +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fstatus_2eproto diff --git a/src/gen/robot/v1/robot.grpc.pb.cc b/src/gen/robot/v1/robot.grpc.pb.cc new file mode 100644 index 000000000..83f4add10 --- /dev/null +++ b/src/gen/robot/v1/robot.grpc.pb.cc @@ -0,0 +1,503 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: robot/v1/robot.proto + +#include "robot/v1/robot.pb.h" +#include "robot/v1/robot.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace robot { +namespace v1 { + +static const char* RobotService_method_names[] = { + "/viam.robot.v1.RobotService/GetOperations", + "/viam.robot.v1.RobotService/ResourceNames", + "/viam.robot.v1.RobotService/ResourceRPCSubtypes", + "/viam.robot.v1.RobotService/CancelOperation", + "/viam.robot.v1.RobotService/BlockForOperation", + "/viam.robot.v1.RobotService/DiscoverComponents", + "/viam.robot.v1.RobotService/FrameSystemConfig", + "/viam.robot.v1.RobotService/TransformPose", + "/viam.robot.v1.RobotService/GetStatus", + "/viam.robot.v1.RobotService/StreamStatus", + "/viam.robot.v1.RobotService/StopAll", +}; + +std::unique_ptr< RobotService::Stub> RobotService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< RobotService::Stub> stub(new RobotService::Stub(channel, options)); + return stub; +} + +RobotService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_GetOperations_(RobotService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ResourceNames_(RobotService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ResourceRPCSubtypes_(RobotService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CancelOperation_(RobotService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_BlockForOperation_(RobotService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DiscoverComponents_(RobotService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_FrameSystemConfig_(RobotService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_TransformPose_(RobotService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetStatus_(RobotService_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_StreamStatus_(RobotService_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_StopAll_(RobotService_method_names[10], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status RobotService::Stub::GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::viam::robot::v1::GetOperationsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::GetOperationsRequest, ::viam::robot::v1::GetOperationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetOperations_, context, request, response); +} + +void RobotService::Stub::async::GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest* request, ::viam::robot::v1::GetOperationsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::GetOperationsRequest, ::viam::robot::v1::GetOperationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetOperations_, context, request, response, std::move(f)); +} + +void RobotService::Stub::async::GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest* request, ::viam::robot::v1::GetOperationsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetOperations_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetOperationsResponse>* RobotService::Stub::PrepareAsyncGetOperationsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::GetOperationsResponse, ::viam::robot::v1::GetOperationsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetOperations_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetOperationsResponse>* RobotService::Stub::AsyncGetOperationsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetOperationsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status RobotService::Stub::ResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest& request, ::viam::robot::v1::ResourceNamesResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::ResourceNamesRequest, ::viam::robot::v1::ResourceNamesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ResourceNames_, context, request, response); +} + +void RobotService::Stub::async::ResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest* request, ::viam::robot::v1::ResourceNamesResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::ResourceNamesRequest, ::viam::robot::v1::ResourceNamesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ResourceNames_, context, request, response, std::move(f)); +} + +void RobotService::Stub::async::ResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest* request, ::viam::robot::v1::ResourceNamesResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ResourceNames_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceNamesResponse>* RobotService::Stub::PrepareAsyncResourceNamesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::ResourceNamesResponse, ::viam::robot::v1::ResourceNamesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ResourceNames_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceNamesResponse>* RobotService::Stub::AsyncResourceNamesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncResourceNamesRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status RobotService::Stub::ResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest& request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::ResourceRPCSubtypesRequest, ::viam::robot::v1::ResourceRPCSubtypesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ResourceRPCSubtypes_, context, request, response); +} + +void RobotService::Stub::async::ResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::ResourceRPCSubtypesRequest, ::viam::robot::v1::ResourceRPCSubtypesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ResourceRPCSubtypes_, context, request, response, std::move(f)); +} + +void RobotService::Stub::async::ResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ResourceRPCSubtypes_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceRPCSubtypesResponse>* RobotService::Stub::PrepareAsyncResourceRPCSubtypesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::ResourceRPCSubtypesResponse, ::viam::robot::v1::ResourceRPCSubtypesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ResourceRPCSubtypes_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceRPCSubtypesResponse>* RobotService::Stub::AsyncResourceRPCSubtypesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncResourceRPCSubtypesRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status RobotService::Stub::CancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest& request, ::viam::robot::v1::CancelOperationResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::CancelOperationRequest, ::viam::robot::v1::CancelOperationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CancelOperation_, context, request, response); +} + +void RobotService::Stub::async::CancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::CancelOperationRequest, ::viam::robot::v1::CancelOperationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CancelOperation_, context, request, response, std::move(f)); +} + +void RobotService::Stub::async::CancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CancelOperation_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::CancelOperationResponse>* RobotService::Stub::PrepareAsyncCancelOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::CancelOperationResponse, ::viam::robot::v1::CancelOperationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CancelOperation_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::CancelOperationResponse>* RobotService::Stub::AsyncCancelOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncCancelOperationRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status RobotService::Stub::BlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::viam::robot::v1::BlockForOperationResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::BlockForOperationRequest, ::viam::robot::v1::BlockForOperationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_BlockForOperation_, context, request, response); +} + +void RobotService::Stub::async::BlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::BlockForOperationRequest, ::viam::robot::v1::BlockForOperationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_BlockForOperation_, context, request, response, std::move(f)); +} + +void RobotService::Stub::async::BlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_BlockForOperation_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::BlockForOperationResponse>* RobotService::Stub::PrepareAsyncBlockForOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::BlockForOperationResponse, ::viam::robot::v1::BlockForOperationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_BlockForOperation_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::BlockForOperationResponse>* RobotService::Stub::AsyncBlockForOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncBlockForOperationRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status RobotService::Stub::DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::viam::robot::v1::DiscoverComponentsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::DiscoverComponentsRequest, ::viam::robot::v1::DiscoverComponentsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DiscoverComponents_, context, request, response); +} + +void RobotService::Stub::async::DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::DiscoverComponentsRequest, ::viam::robot::v1::DiscoverComponentsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DiscoverComponents_, context, request, response, std::move(f)); +} + +void RobotService::Stub::async::DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DiscoverComponents_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::DiscoverComponentsResponse>* RobotService::Stub::PrepareAsyncDiscoverComponentsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::DiscoverComponentsResponse, ::viam::robot::v1::DiscoverComponentsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DiscoverComponents_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::DiscoverComponentsResponse>* RobotService::Stub::AsyncDiscoverComponentsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncDiscoverComponentsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status RobotService::Stub::FrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest& request, ::viam::robot::v1::FrameSystemConfigResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::FrameSystemConfigRequest, ::viam::robot::v1::FrameSystemConfigResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_FrameSystemConfig_, context, request, response); +} + +void RobotService::Stub::async::FrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::FrameSystemConfigRequest, ::viam::robot::v1::FrameSystemConfigResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_FrameSystemConfig_, context, request, response, std::move(f)); +} + +void RobotService::Stub::async::FrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_FrameSystemConfig_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::FrameSystemConfigResponse>* RobotService::Stub::PrepareAsyncFrameSystemConfigRaw(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::FrameSystemConfigResponse, ::viam::robot::v1::FrameSystemConfigRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_FrameSystemConfig_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::FrameSystemConfigResponse>* RobotService::Stub::AsyncFrameSystemConfigRaw(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncFrameSystemConfigRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status RobotService::Stub::TransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest& request, ::viam::robot::v1::TransformPoseResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::TransformPoseRequest, ::viam::robot::v1::TransformPoseResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_TransformPose_, context, request, response); +} + +void RobotService::Stub::async::TransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::TransformPoseRequest, ::viam::robot::v1::TransformPoseResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_TransformPose_, context, request, response, std::move(f)); +} + +void RobotService::Stub::async::TransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_TransformPose_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::TransformPoseResponse>* RobotService::Stub::PrepareAsyncTransformPoseRaw(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::TransformPoseResponse, ::viam::robot::v1::TransformPoseRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_TransformPose_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::TransformPoseResponse>* RobotService::Stub::AsyncTransformPoseRaw(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncTransformPoseRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status RobotService::Stub::GetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest& request, ::viam::robot::v1::GetStatusResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::GetStatusRequest, ::viam::robot::v1::GetStatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetStatus_, context, request, response); +} + +void RobotService::Stub::async::GetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest* request, ::viam::robot::v1::GetStatusResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::GetStatusRequest, ::viam::robot::v1::GetStatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetStatus_, context, request, response, std::move(f)); +} + +void RobotService::Stub::async::GetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest* request, ::viam::robot::v1::GetStatusResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetStatus_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetStatusResponse>* RobotService::Stub::PrepareAsyncGetStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::GetStatusResponse, ::viam::robot::v1::GetStatusRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetStatus_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetStatusResponse>* RobotService::Stub::AsyncGetStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetStatusRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::ClientReader< ::viam::robot::v1::StreamStatusResponse>* RobotService::Stub::StreamStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest& request) { + return ::grpc::internal::ClientReaderFactory< ::viam::robot::v1::StreamStatusResponse>::Create(channel_.get(), rpcmethod_StreamStatus_, context, request); +} + +void RobotService::Stub::async::StreamStatus(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest* request, ::grpc::ClientReadReactor< ::viam::robot::v1::StreamStatusResponse>* reactor) { + ::grpc::internal::ClientCallbackReaderFactory< ::viam::robot::v1::StreamStatusResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_StreamStatus_, context, request, reactor); +} + +::grpc::ClientAsyncReader< ::viam::robot::v1::StreamStatusResponse>* RobotService::Stub::AsyncStreamStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc::internal::ClientAsyncReaderFactory< ::viam::robot::v1::StreamStatusResponse>::Create(channel_.get(), cq, rpcmethod_StreamStatus_, context, request, true, tag); +} + +::grpc::ClientAsyncReader< ::viam::robot::v1::StreamStatusResponse>* RobotService::Stub::PrepareAsyncStreamStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncReaderFactory< ::viam::robot::v1::StreamStatusResponse>::Create(channel_.get(), cq, rpcmethod_StreamStatus_, context, request, false, nullptr); +} + +::grpc::Status RobotService::Stub::StopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest& request, ::viam::robot::v1::StopAllResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::StopAllRequest, ::viam::robot::v1::StopAllResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_StopAll_, context, request, response); +} + +void RobotService::Stub::async::StopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest* request, ::viam::robot::v1::StopAllResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::StopAllRequest, ::viam::robot::v1::StopAllResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_StopAll_, context, request, response, std::move(f)); +} + +void RobotService::Stub::async::StopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest* request, ::viam::robot::v1::StopAllResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_StopAll_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::StopAllResponse>* RobotService::Stub::PrepareAsyncStopAllRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::StopAllResponse, ::viam::robot::v1::StopAllRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_StopAll_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::StopAllResponse>* RobotService::Stub::AsyncStopAllRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncStopAllRaw(context, request, cq); + result->StartCall(); + return result; +} + +RobotService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + RobotService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::GetOperationsRequest, ::viam::robot::v1::GetOperationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](RobotService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::robot::v1::GetOperationsRequest* req, + ::viam::robot::v1::GetOperationsResponse* resp) { + return service->GetOperations(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + RobotService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::ResourceNamesRequest, ::viam::robot::v1::ResourceNamesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](RobotService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::robot::v1::ResourceNamesRequest* req, + ::viam::robot::v1::ResourceNamesResponse* resp) { + return service->ResourceNames(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + RobotService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::ResourceRPCSubtypesRequest, ::viam::robot::v1::ResourceRPCSubtypesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](RobotService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::robot::v1::ResourceRPCSubtypesRequest* req, + ::viam::robot::v1::ResourceRPCSubtypesResponse* resp) { + return service->ResourceRPCSubtypes(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + RobotService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::CancelOperationRequest, ::viam::robot::v1::CancelOperationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](RobotService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::robot::v1::CancelOperationRequest* req, + ::viam::robot::v1::CancelOperationResponse* resp) { + return service->CancelOperation(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + RobotService_method_names[4], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::BlockForOperationRequest, ::viam::robot::v1::BlockForOperationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](RobotService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::robot::v1::BlockForOperationRequest* req, + ::viam::robot::v1::BlockForOperationResponse* resp) { + return service->BlockForOperation(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + RobotService_method_names[5], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::DiscoverComponentsRequest, ::viam::robot::v1::DiscoverComponentsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](RobotService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::robot::v1::DiscoverComponentsRequest* req, + ::viam::robot::v1::DiscoverComponentsResponse* resp) { + return service->DiscoverComponents(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + RobotService_method_names[6], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::FrameSystemConfigRequest, ::viam::robot::v1::FrameSystemConfigResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](RobotService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::robot::v1::FrameSystemConfigRequest* req, + ::viam::robot::v1::FrameSystemConfigResponse* resp) { + return service->FrameSystemConfig(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + RobotService_method_names[7], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::TransformPoseRequest, ::viam::robot::v1::TransformPoseResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](RobotService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::robot::v1::TransformPoseRequest* req, + ::viam::robot::v1::TransformPoseResponse* resp) { + return service->TransformPose(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + RobotService_method_names[8], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::GetStatusRequest, ::viam::robot::v1::GetStatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](RobotService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::robot::v1::GetStatusRequest* req, + ::viam::robot::v1::GetStatusResponse* resp) { + return service->GetStatus(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + RobotService_method_names[9], + ::grpc::internal::RpcMethod::SERVER_STREAMING, + new ::grpc::internal::ServerStreamingHandler< RobotService::Service, ::viam::robot::v1::StreamStatusRequest, ::viam::robot::v1::StreamStatusResponse>( + [](RobotService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::robot::v1::StreamStatusRequest* req, + ::grpc::ServerWriter<::viam::robot::v1::StreamStatusResponse>* writer) { + return service->StreamStatus(ctx, req, writer); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + RobotService_method_names[10], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::StopAllRequest, ::viam::robot::v1::StopAllResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](RobotService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::robot::v1::StopAllRequest* req, + ::viam::robot::v1::StopAllResponse* resp) { + return service->StopAll(ctx, req, resp); + }, this))); +} + +RobotService::Service::~Service() { +} + +::grpc::Status RobotService::Service::GetOperations(::grpc::ServerContext* context, const ::viam::robot::v1::GetOperationsRequest* request, ::viam::robot::v1::GetOperationsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status RobotService::Service::ResourceNames(::grpc::ServerContext* context, const ::viam::robot::v1::ResourceNamesRequest* request, ::viam::robot::v1::ResourceNamesResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status RobotService::Service::ResourceRPCSubtypes(::grpc::ServerContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status RobotService::Service::CancelOperation(::grpc::ServerContext* context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status RobotService::Service::BlockForOperation(::grpc::ServerContext* context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status RobotService::Service::DiscoverComponents(::grpc::ServerContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status RobotService::Service::FrameSystemConfig(::grpc::ServerContext* context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status RobotService::Service::TransformPose(::grpc::ServerContext* context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status RobotService::Service::GetStatus(::grpc::ServerContext* context, const ::viam::robot::v1::GetStatusRequest* request, ::viam::robot::v1::GetStatusResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status RobotService::Service::StreamStatus(::grpc::ServerContext* context, const ::viam::robot::v1::StreamStatusRequest* request, ::grpc::ServerWriter< ::viam::robot::v1::StreamStatusResponse>* writer) { + (void) context; + (void) request; + (void) writer; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status RobotService::Service::StopAll(::grpc::ServerContext* context, const ::viam::robot::v1::StopAllRequest* request, ::viam::robot::v1::StopAllResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace robot +} // namespace v1 + diff --git a/src/gen/robot/v1/robot.grpc.pb.h b/src/gen/robot/v1/robot.grpc.pb.h new file mode 100644 index 000000000..06822a24a --- /dev/null +++ b/src/gen/robot/v1/robot.grpc.pb.h @@ -0,0 +1,1832 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: robot/v1/robot.proto +#ifndef GRPC_robot_2fv1_2frobot_2eproto__INCLUDED +#define GRPC_robot_2fv1_2frobot_2eproto__INCLUDED + +#include "robot/v1/robot.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace robot { +namespace v1 { + +// A RobotService encompasses all functionality of some robot comprised of parts, local and remote. +class RobotService final { + public: + static constexpr char const* service_full_name() { + return "viam.robot.v1.RobotService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::viam::robot::v1::GetOperationsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetOperationsResponse>> AsyncGetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetOperationsResponse>>(AsyncGetOperationsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetOperationsResponse>> PrepareAsyncGetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetOperationsResponse>>(PrepareAsyncGetOperationsRaw(context, request, cq)); + } + // ResourceNames returns the list of all resources. + virtual ::grpc::Status ResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest& request, ::viam::robot::v1::ResourceNamesResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::ResourceNamesResponse>> AsyncResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::ResourceNamesResponse>>(AsyncResourceNamesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::ResourceNamesResponse>> PrepareAsyncResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::ResourceNamesResponse>>(PrepareAsyncResourceNamesRaw(context, request, cq)); + } + // ResourceRPCSubtypes returns the list of all resource types. + virtual ::grpc::Status ResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest& request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::ResourceRPCSubtypesResponse>> AsyncResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::ResourceRPCSubtypesResponse>>(AsyncResourceRPCSubtypesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::ResourceRPCSubtypesResponse>> PrepareAsyncResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::ResourceRPCSubtypesResponse>>(PrepareAsyncResourceRPCSubtypesRaw(context, request, cq)); + } + virtual ::grpc::Status CancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest& request, ::viam::robot::v1::CancelOperationResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::CancelOperationResponse>> AsyncCancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::CancelOperationResponse>>(AsyncCancelOperationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::CancelOperationResponse>> PrepareAsyncCancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::CancelOperationResponse>>(PrepareAsyncCancelOperationRaw(context, request, cq)); + } + virtual ::grpc::Status BlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::viam::robot::v1::BlockForOperationResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::BlockForOperationResponse>> AsyncBlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::BlockForOperationResponse>>(AsyncBlockForOperationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::BlockForOperationResponse>> PrepareAsyncBlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::BlockForOperationResponse>>(PrepareAsyncBlockForOperationRaw(context, request, cq)); + } + // DiscoverComponents returns the list of discovered component configurations. + virtual ::grpc::Status DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::viam::robot::v1::DiscoverComponentsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::DiscoverComponentsResponse>> AsyncDiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::DiscoverComponentsResponse>>(AsyncDiscoverComponentsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::DiscoverComponentsResponse>> PrepareAsyncDiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::DiscoverComponentsResponse>>(PrepareAsyncDiscoverComponentsRaw(context, request, cq)); + } + virtual ::grpc::Status FrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest& request, ::viam::robot::v1::FrameSystemConfigResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::FrameSystemConfigResponse>> AsyncFrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::FrameSystemConfigResponse>>(AsyncFrameSystemConfigRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::FrameSystemConfigResponse>> PrepareAsyncFrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::FrameSystemConfigResponse>>(PrepareAsyncFrameSystemConfigRaw(context, request, cq)); + } + virtual ::grpc::Status TransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest& request, ::viam::robot::v1::TransformPoseResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::TransformPoseResponse>> AsyncTransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::TransformPoseResponse>>(AsyncTransformPoseRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::TransformPoseResponse>> PrepareAsyncTransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::TransformPoseResponse>>(PrepareAsyncTransformPoseRaw(context, request, cq)); + } + // GetStatus returns the list of all statuses requested. An empty request signifies all resources. + virtual ::grpc::Status GetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest& request, ::viam::robot::v1::GetStatusResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetStatusResponse>> AsyncGetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetStatusResponse>>(AsyncGetStatusRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetStatusResponse>> PrepareAsyncGetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetStatusResponse>>(PrepareAsyncGetStatusRaw(context, request, cq)); + } + // StreamStatus periodically sends the status of all statuses requested. An empty request signifies all resources. + std::unique_ptr< ::grpc::ClientReaderInterface< ::viam::robot::v1::StreamStatusResponse>> StreamStatus(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest& request) { + return std::unique_ptr< ::grpc::ClientReaderInterface< ::viam::robot::v1::StreamStatusResponse>>(StreamStatusRaw(context, request)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::robot::v1::StreamStatusResponse>> AsyncStreamStatus(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::robot::v1::StreamStatusResponse>>(AsyncStreamStatusRaw(context, request, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::robot::v1::StreamStatusResponse>> PrepareAsyncStreamStatus(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::robot::v1::StreamStatusResponse>>(PrepareAsyncStreamStatusRaw(context, request, cq)); + } + // StopAll will stop all current and outstanding operations for the robot and stops all actuators and movement + virtual ::grpc::Status StopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest& request, ::viam::robot::v1::StopAllResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::StopAllResponse>> AsyncStopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::StopAllResponse>>(AsyncStopAllRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::StopAllResponse>> PrepareAsyncStopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::StopAllResponse>>(PrepareAsyncStopAllRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest* request, ::viam::robot::v1::GetOperationsResponse* response, std::function) = 0; + virtual void GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest* request, ::viam::robot::v1::GetOperationsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // ResourceNames returns the list of all resources. + virtual void ResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest* request, ::viam::robot::v1::ResourceNamesResponse* response, std::function) = 0; + virtual void ResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest* request, ::viam::robot::v1::ResourceNamesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // ResourceRPCSubtypes returns the list of all resource types. + virtual void ResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, std::function) = 0; + virtual void ResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void CancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response, std::function) = 0; + virtual void CancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void BlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response, std::function) = 0; + virtual void BlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // DiscoverComponents returns the list of discovered component configurations. + virtual void DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response, std::function) = 0; + virtual void DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void FrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response, std::function) = 0; + virtual void FrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void TransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response, std::function) = 0; + virtual void TransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GetStatus returns the list of all statuses requested. An empty request signifies all resources. + virtual void GetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest* request, ::viam::robot::v1::GetStatusResponse* response, std::function) = 0; + virtual void GetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest* request, ::viam::robot::v1::GetStatusResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // StreamStatus periodically sends the status of all statuses requested. An empty request signifies all resources. + virtual void StreamStatus(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest* request, ::grpc::ClientReadReactor< ::viam::robot::v1::StreamStatusResponse>* reactor) = 0; + // StopAll will stop all current and outstanding operations for the robot and stops all actuators and movement + virtual void StopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest* request, ::viam::robot::v1::StopAllResponse* response, std::function) = 0; + virtual void StopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest* request, ::viam::robot::v1::StopAllResponse* 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::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetOperationsResponse>* AsyncGetOperationsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetOperationsResponse>* PrepareAsyncGetOperationsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::ResourceNamesResponse>* AsyncResourceNamesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::ResourceNamesResponse>* PrepareAsyncResourceNamesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::ResourceRPCSubtypesResponse>* AsyncResourceRPCSubtypesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::ResourceRPCSubtypesResponse>* PrepareAsyncResourceRPCSubtypesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::CancelOperationResponse>* AsyncCancelOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::CancelOperationResponse>* PrepareAsyncCancelOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::BlockForOperationResponse>* AsyncBlockForOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::BlockForOperationResponse>* PrepareAsyncBlockForOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::DiscoverComponentsResponse>* AsyncDiscoverComponentsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::DiscoverComponentsResponse>* PrepareAsyncDiscoverComponentsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::FrameSystemConfigResponse>* AsyncFrameSystemConfigRaw(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::FrameSystemConfigResponse>* PrepareAsyncFrameSystemConfigRaw(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::TransformPoseResponse>* AsyncTransformPoseRaw(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::TransformPoseResponse>* PrepareAsyncTransformPoseRaw(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetStatusResponse>* AsyncGetStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetStatusResponse>* PrepareAsyncGetStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientReaderInterface< ::viam::robot::v1::StreamStatusResponse>* StreamStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest& request) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::viam::robot::v1::StreamStatusResponse>* AsyncStreamStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::viam::robot::v1::StreamStatusResponse>* PrepareAsyncStreamStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::StopAllResponse>* AsyncStopAllRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::StopAllResponse>* PrepareAsyncStopAllRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest& 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()); + ::grpc::Status GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::viam::robot::v1::GetOperationsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetOperationsResponse>> AsyncGetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetOperationsResponse>>(AsyncGetOperationsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetOperationsResponse>> PrepareAsyncGetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetOperationsResponse>>(PrepareAsyncGetOperationsRaw(context, request, cq)); + } + ::grpc::Status ResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest& request, ::viam::robot::v1::ResourceNamesResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceNamesResponse>> AsyncResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceNamesResponse>>(AsyncResourceNamesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceNamesResponse>> PrepareAsyncResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceNamesResponse>>(PrepareAsyncResourceNamesRaw(context, request, cq)); + } + ::grpc::Status ResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest& request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceRPCSubtypesResponse>> AsyncResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceRPCSubtypesResponse>>(AsyncResourceRPCSubtypesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceRPCSubtypesResponse>> PrepareAsyncResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceRPCSubtypesResponse>>(PrepareAsyncResourceRPCSubtypesRaw(context, request, cq)); + } + ::grpc::Status CancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest& request, ::viam::robot::v1::CancelOperationResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::CancelOperationResponse>> AsyncCancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::CancelOperationResponse>>(AsyncCancelOperationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::CancelOperationResponse>> PrepareAsyncCancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::CancelOperationResponse>>(PrepareAsyncCancelOperationRaw(context, request, cq)); + } + ::grpc::Status BlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::viam::robot::v1::BlockForOperationResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::BlockForOperationResponse>> AsyncBlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::BlockForOperationResponse>>(AsyncBlockForOperationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::BlockForOperationResponse>> PrepareAsyncBlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::BlockForOperationResponse>>(PrepareAsyncBlockForOperationRaw(context, request, cq)); + } + ::grpc::Status DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::viam::robot::v1::DiscoverComponentsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::DiscoverComponentsResponse>> AsyncDiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::DiscoverComponentsResponse>>(AsyncDiscoverComponentsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::DiscoverComponentsResponse>> PrepareAsyncDiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::DiscoverComponentsResponse>>(PrepareAsyncDiscoverComponentsRaw(context, request, cq)); + } + ::grpc::Status FrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest& request, ::viam::robot::v1::FrameSystemConfigResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::FrameSystemConfigResponse>> AsyncFrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::FrameSystemConfigResponse>>(AsyncFrameSystemConfigRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::FrameSystemConfigResponse>> PrepareAsyncFrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::FrameSystemConfigResponse>>(PrepareAsyncFrameSystemConfigRaw(context, request, cq)); + } + ::grpc::Status TransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest& request, ::viam::robot::v1::TransformPoseResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::TransformPoseResponse>> AsyncTransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::TransformPoseResponse>>(AsyncTransformPoseRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::TransformPoseResponse>> PrepareAsyncTransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::TransformPoseResponse>>(PrepareAsyncTransformPoseRaw(context, request, cq)); + } + ::grpc::Status GetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest& request, ::viam::robot::v1::GetStatusResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetStatusResponse>> AsyncGetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetStatusResponse>>(AsyncGetStatusRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetStatusResponse>> PrepareAsyncGetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetStatusResponse>>(PrepareAsyncGetStatusRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientReader< ::viam::robot::v1::StreamStatusResponse>> StreamStatus(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest& request) { + return std::unique_ptr< ::grpc::ClientReader< ::viam::robot::v1::StreamStatusResponse>>(StreamStatusRaw(context, request)); + } + std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::robot::v1::StreamStatusResponse>> AsyncStreamStatus(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::robot::v1::StreamStatusResponse>>(AsyncStreamStatusRaw(context, request, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::robot::v1::StreamStatusResponse>> PrepareAsyncStreamStatus(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::robot::v1::StreamStatusResponse>>(PrepareAsyncStreamStatusRaw(context, request, cq)); + } + ::grpc::Status StopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest& request, ::viam::robot::v1::StopAllResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::StopAllResponse>> AsyncStopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::StopAllResponse>>(AsyncStopAllRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::StopAllResponse>> PrepareAsyncStopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::StopAllResponse>>(PrepareAsyncStopAllRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest* request, ::viam::robot::v1::GetOperationsResponse* response, std::function) override; + void GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest* request, ::viam::robot::v1::GetOperationsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void ResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest* request, ::viam::robot::v1::ResourceNamesResponse* response, std::function) override; + void ResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest* request, ::viam::robot::v1::ResourceNamesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void ResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, std::function) override; + void ResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void CancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response, std::function) override; + void CancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void BlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response, std::function) override; + void BlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response, std::function) override; + void DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void FrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response, std::function) override; + void FrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void TransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response, std::function) override; + void TransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest* request, ::viam::robot::v1::GetStatusResponse* response, std::function) override; + void GetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest* request, ::viam::robot::v1::GetStatusResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void StreamStatus(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest* request, ::grpc::ClientReadReactor< ::viam::robot::v1::StreamStatusResponse>* reactor) override; + void StopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest* request, ::viam::robot::v1::StopAllResponse* response, std::function) override; + void StopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest* request, ::viam::robot::v1::StopAllResponse* 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::ClientAsyncResponseReader< ::viam::robot::v1::GetOperationsResponse>* AsyncGetOperationsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetOperationsResponse>* PrepareAsyncGetOperationsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceNamesResponse>* AsyncResourceNamesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceNamesResponse>* PrepareAsyncResourceNamesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceRPCSubtypesResponse>* AsyncResourceRPCSubtypesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceRPCSubtypesResponse>* PrepareAsyncResourceRPCSubtypesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::CancelOperationResponse>* AsyncCancelOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::CancelOperationResponse>* PrepareAsyncCancelOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::BlockForOperationResponse>* AsyncBlockForOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::BlockForOperationResponse>* PrepareAsyncBlockForOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::DiscoverComponentsResponse>* AsyncDiscoverComponentsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::DiscoverComponentsResponse>* PrepareAsyncDiscoverComponentsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::FrameSystemConfigResponse>* AsyncFrameSystemConfigRaw(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::FrameSystemConfigResponse>* PrepareAsyncFrameSystemConfigRaw(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::TransformPoseResponse>* AsyncTransformPoseRaw(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::TransformPoseResponse>* PrepareAsyncTransformPoseRaw(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetStatusResponse>* AsyncGetStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetStatusResponse>* PrepareAsyncGetStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientReader< ::viam::robot::v1::StreamStatusResponse>* StreamStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest& request) override; + ::grpc::ClientAsyncReader< ::viam::robot::v1::StreamStatusResponse>* AsyncStreamStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReader< ::viam::robot::v1::StreamStatusResponse>* PrepareAsyncStreamStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::StopAllResponse>* AsyncStopAllRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::StopAllResponse>* PrepareAsyncStopAllRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_GetOperations_; + const ::grpc::internal::RpcMethod rpcmethod_ResourceNames_; + const ::grpc::internal::RpcMethod rpcmethod_ResourceRPCSubtypes_; + const ::grpc::internal::RpcMethod rpcmethod_CancelOperation_; + const ::grpc::internal::RpcMethod rpcmethod_BlockForOperation_; + const ::grpc::internal::RpcMethod rpcmethod_DiscoverComponents_; + const ::grpc::internal::RpcMethod rpcmethod_FrameSystemConfig_; + const ::grpc::internal::RpcMethod rpcmethod_TransformPose_; + const ::grpc::internal::RpcMethod rpcmethod_GetStatus_; + const ::grpc::internal::RpcMethod rpcmethod_StreamStatus_; + const ::grpc::internal::RpcMethod rpcmethod_StopAll_; + }; + 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(); + virtual ::grpc::Status GetOperations(::grpc::ServerContext* context, const ::viam::robot::v1::GetOperationsRequest* request, ::viam::robot::v1::GetOperationsResponse* response); + // ResourceNames returns the list of all resources. + virtual ::grpc::Status ResourceNames(::grpc::ServerContext* context, const ::viam::robot::v1::ResourceNamesRequest* request, ::viam::robot::v1::ResourceNamesResponse* response); + // ResourceRPCSubtypes returns the list of all resource types. + virtual ::grpc::Status ResourceRPCSubtypes(::grpc::ServerContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response); + virtual ::grpc::Status CancelOperation(::grpc::ServerContext* context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response); + virtual ::grpc::Status BlockForOperation(::grpc::ServerContext* context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response); + // DiscoverComponents returns the list of discovered component configurations. + virtual ::grpc::Status DiscoverComponents(::grpc::ServerContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response); + virtual ::grpc::Status FrameSystemConfig(::grpc::ServerContext* context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response); + virtual ::grpc::Status TransformPose(::grpc::ServerContext* context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response); + // GetStatus returns the list of all statuses requested. An empty request signifies all resources. + virtual ::grpc::Status GetStatus(::grpc::ServerContext* context, const ::viam::robot::v1::GetStatusRequest* request, ::viam::robot::v1::GetStatusResponse* response); + // StreamStatus periodically sends the status of all statuses requested. An empty request signifies all resources. + virtual ::grpc::Status StreamStatus(::grpc::ServerContext* context, const ::viam::robot::v1::StreamStatusRequest* request, ::grpc::ServerWriter< ::viam::robot::v1::StreamStatusResponse>* writer); + // StopAll will stop all current and outstanding operations for the robot and stops all actuators and movement + virtual ::grpc::Status StopAll(::grpc::ServerContext* context, const ::viam::robot::v1::StopAllRequest* request, ::viam::robot::v1::StopAllResponse* response); + }; + template + class WithAsyncMethod_GetOperations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetOperations() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_GetOperations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOperations(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetOperationsRequest* /*request*/, ::viam::robot::v1::GetOperationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetOperations(::grpc::ServerContext* context, ::viam::robot::v1::GetOperationsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::GetOperationsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ResourceNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ResourceNames() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_ResourceNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ResourceNames(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::ResourceNamesRequest* /*request*/, ::viam::robot::v1::ResourceNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestResourceNames(::grpc::ServerContext* context, ::viam::robot::v1::ResourceNamesRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::ResourceNamesResponse>* 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 WithAsyncMethod_ResourceRPCSubtypes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ResourceRPCSubtypes() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_ResourceRPCSubtypes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ResourceRPCSubtypes(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::ResourceRPCSubtypesRequest* /*request*/, ::viam::robot::v1::ResourceRPCSubtypesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestResourceRPCSubtypes(::grpc::ServerContext* context, ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::ResourceRPCSubtypesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_CancelOperation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_CancelOperation() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_CancelOperation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CancelOperation(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::CancelOperationRequest* /*request*/, ::viam::robot::v1::CancelOperationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCancelOperation(::grpc::ServerContext* context, ::viam::robot::v1::CancelOperationRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::CancelOperationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_BlockForOperation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_BlockForOperation() { + ::grpc::Service::MarkMethodAsync(4); + } + ~WithAsyncMethod_BlockForOperation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status BlockForOperation(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::BlockForOperationRequest* /*request*/, ::viam::robot::v1::BlockForOperationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestBlockForOperation(::grpc::ServerContext* context, ::viam::robot::v1::BlockForOperationRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::BlockForOperationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_DiscoverComponents : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_DiscoverComponents() { + ::grpc::Service::MarkMethodAsync(5); + } + ~WithAsyncMethod_DiscoverComponents() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DiscoverComponents(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::DiscoverComponentsRequest* /*request*/, ::viam::robot::v1::DiscoverComponentsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDiscoverComponents(::grpc::ServerContext* context, ::viam::robot::v1::DiscoverComponentsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::DiscoverComponentsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_FrameSystemConfig : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_FrameSystemConfig() { + ::grpc::Service::MarkMethodAsync(6); + } + ~WithAsyncMethod_FrameSystemConfig() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status FrameSystemConfig(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::FrameSystemConfigRequest* /*request*/, ::viam::robot::v1::FrameSystemConfigResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestFrameSystemConfig(::grpc::ServerContext* context, ::viam::robot::v1::FrameSystemConfigRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::FrameSystemConfigResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_TransformPose : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_TransformPose() { + ::grpc::Service::MarkMethodAsync(7); + } + ~WithAsyncMethod_TransformPose() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TransformPose(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::TransformPoseRequest* /*request*/, ::viam::robot::v1::TransformPoseResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestTransformPose(::grpc::ServerContext* context, ::viam::robot::v1::TransformPoseRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::TransformPoseResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetStatus : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetStatus() { + ::grpc::Service::MarkMethodAsync(8); + } + ~WithAsyncMethod_GetStatus() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetStatus(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetStatusRequest* /*request*/, ::viam::robot::v1::GetStatusResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetStatus(::grpc::ServerContext* context, ::viam::robot::v1::GetStatusRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::GetStatusResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_StreamStatus : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_StreamStatus() { + ::grpc::Service::MarkMethodAsync(9); + } + ~WithAsyncMethod_StreamStatus() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status StreamStatus(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::StreamStatusRequest* /*request*/, ::grpc::ServerWriter< ::viam::robot::v1::StreamStatusResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestStreamStatus(::grpc::ServerContext* context, ::viam::robot::v1::StreamStatusRequest* request, ::grpc::ServerAsyncWriter< ::viam::robot::v1::StreamStatusResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncServerStreaming(9, context, request, writer, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_StopAll : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_StopAll() { + ::grpc::Service::MarkMethodAsync(10); + } + ~WithAsyncMethod_StopAll() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status StopAll(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::StopAllRequest* /*request*/, ::viam::robot::v1::StopAllResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestStopAll(::grpc::ServerContext* context, ::viam::robot::v1::StopAllRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::StopAllResponse>* 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_GetOperations > > > > > > > > > > AsyncService; + template + class WithCallbackMethod_GetOperations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetOperations() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::GetOperationsRequest, ::viam::robot::v1::GetOperationsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::robot::v1::GetOperationsRequest* request, ::viam::robot::v1::GetOperationsResponse* response) { return this->GetOperations(context, request, response); }));} + void SetMessageAllocatorFor_GetOperations( + ::grpc::MessageAllocator< ::viam::robot::v1::GetOperationsRequest, ::viam::robot::v1::GetOperationsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::GetOperationsRequest, ::viam::robot::v1::GetOperationsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetOperations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOperations(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetOperationsRequest* /*request*/, ::viam::robot::v1::GetOperationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetOperations( + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetOperationsRequest* /*request*/, ::viam::robot::v1::GetOperationsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_ResourceNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_ResourceNames() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::ResourceNamesRequest, ::viam::robot::v1::ResourceNamesResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::robot::v1::ResourceNamesRequest* request, ::viam::robot::v1::ResourceNamesResponse* response) { return this->ResourceNames(context, request, response); }));} + void SetMessageAllocatorFor_ResourceNames( + ::grpc::MessageAllocator< ::viam::robot::v1::ResourceNamesRequest, ::viam::robot::v1::ResourceNamesResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::ResourceNamesRequest, ::viam::robot::v1::ResourceNamesResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_ResourceNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ResourceNames(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::ResourceNamesRequest* /*request*/, ::viam::robot::v1::ResourceNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ResourceNames( + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::ResourceNamesRequest* /*request*/, ::viam::robot::v1::ResourceNamesResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_ResourceRPCSubtypes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_ResourceRPCSubtypes() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::ResourceRPCSubtypesRequest, ::viam::robot::v1::ResourceRPCSubtypesResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response) { return this->ResourceRPCSubtypes(context, request, response); }));} + void SetMessageAllocatorFor_ResourceRPCSubtypes( + ::grpc::MessageAllocator< ::viam::robot::v1::ResourceRPCSubtypesRequest, ::viam::robot::v1::ResourceRPCSubtypesResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::ResourceRPCSubtypesRequest, ::viam::robot::v1::ResourceRPCSubtypesResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_ResourceRPCSubtypes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ResourceRPCSubtypes(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::ResourceRPCSubtypesRequest* /*request*/, ::viam::robot::v1::ResourceRPCSubtypesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ResourceRPCSubtypes( + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::ResourceRPCSubtypesRequest* /*request*/, ::viam::robot::v1::ResourceRPCSubtypesResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_CancelOperation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_CancelOperation() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::CancelOperationRequest, ::viam::robot::v1::CancelOperationResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response) { return this->CancelOperation(context, request, response); }));} + void SetMessageAllocatorFor_CancelOperation( + ::grpc::MessageAllocator< ::viam::robot::v1::CancelOperationRequest, ::viam::robot::v1::CancelOperationResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::CancelOperationRequest, ::viam::robot::v1::CancelOperationResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_CancelOperation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CancelOperation(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::CancelOperationRequest* /*request*/, ::viam::robot::v1::CancelOperationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* CancelOperation( + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::CancelOperationRequest* /*request*/, ::viam::robot::v1::CancelOperationResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_BlockForOperation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_BlockForOperation() { + ::grpc::Service::MarkMethodCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::BlockForOperationRequest, ::viam::robot::v1::BlockForOperationResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response) { return this->BlockForOperation(context, request, response); }));} + void SetMessageAllocatorFor_BlockForOperation( + ::grpc::MessageAllocator< ::viam::robot::v1::BlockForOperationRequest, ::viam::robot::v1::BlockForOperationResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::BlockForOperationRequest, ::viam::robot::v1::BlockForOperationResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_BlockForOperation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status BlockForOperation(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::BlockForOperationRequest* /*request*/, ::viam::robot::v1::BlockForOperationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* BlockForOperation( + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::BlockForOperationRequest* /*request*/, ::viam::robot::v1::BlockForOperationResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_DiscoverComponents : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_DiscoverComponents() { + ::grpc::Service::MarkMethodCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::DiscoverComponentsRequest, ::viam::robot::v1::DiscoverComponentsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response) { return this->DiscoverComponents(context, request, response); }));} + void SetMessageAllocatorFor_DiscoverComponents( + ::grpc::MessageAllocator< ::viam::robot::v1::DiscoverComponentsRequest, ::viam::robot::v1::DiscoverComponentsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::DiscoverComponentsRequest, ::viam::robot::v1::DiscoverComponentsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_DiscoverComponents() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DiscoverComponents(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::DiscoverComponentsRequest* /*request*/, ::viam::robot::v1::DiscoverComponentsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DiscoverComponents( + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::DiscoverComponentsRequest* /*request*/, ::viam::robot::v1::DiscoverComponentsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_FrameSystemConfig : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_FrameSystemConfig() { + ::grpc::Service::MarkMethodCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::FrameSystemConfigRequest, ::viam::robot::v1::FrameSystemConfigResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response) { return this->FrameSystemConfig(context, request, response); }));} + void SetMessageAllocatorFor_FrameSystemConfig( + ::grpc::MessageAllocator< ::viam::robot::v1::FrameSystemConfigRequest, ::viam::robot::v1::FrameSystemConfigResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::FrameSystemConfigRequest, ::viam::robot::v1::FrameSystemConfigResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_FrameSystemConfig() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status FrameSystemConfig(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::FrameSystemConfigRequest* /*request*/, ::viam::robot::v1::FrameSystemConfigResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* FrameSystemConfig( + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::FrameSystemConfigRequest* /*request*/, ::viam::robot::v1::FrameSystemConfigResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_TransformPose : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_TransformPose() { + ::grpc::Service::MarkMethodCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::TransformPoseRequest, ::viam::robot::v1::TransformPoseResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response) { return this->TransformPose(context, request, response); }));} + void SetMessageAllocatorFor_TransformPose( + ::grpc::MessageAllocator< ::viam::robot::v1::TransformPoseRequest, ::viam::robot::v1::TransformPoseResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::TransformPoseRequest, ::viam::robot::v1::TransformPoseResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_TransformPose() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TransformPose(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::TransformPoseRequest* /*request*/, ::viam::robot::v1::TransformPoseResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* TransformPose( + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::TransformPoseRequest* /*request*/, ::viam::robot::v1::TransformPoseResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetStatus : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetStatus() { + ::grpc::Service::MarkMethodCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::GetStatusRequest, ::viam::robot::v1::GetStatusResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::robot::v1::GetStatusRequest* request, ::viam::robot::v1::GetStatusResponse* response) { return this->GetStatus(context, request, response); }));} + void SetMessageAllocatorFor_GetStatus( + ::grpc::MessageAllocator< ::viam::robot::v1::GetStatusRequest, ::viam::robot::v1::GetStatusResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::GetStatusRequest, ::viam::robot::v1::GetStatusResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetStatus() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetStatus(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetStatusRequest* /*request*/, ::viam::robot::v1::GetStatusResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetStatus( + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetStatusRequest* /*request*/, ::viam::robot::v1::GetStatusResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_StreamStatus : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_StreamStatus() { + ::grpc::Service::MarkMethodCallback(9, + new ::grpc::internal::CallbackServerStreamingHandler< ::viam::robot::v1::StreamStatusRequest, ::viam::robot::v1::StreamStatusResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::robot::v1::StreamStatusRequest* request) { return this->StreamStatus(context, request); })); + } + ~WithCallbackMethod_StreamStatus() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status StreamStatus(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::StreamStatusRequest* /*request*/, ::grpc::ServerWriter< ::viam::robot::v1::StreamStatusResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerWriteReactor< ::viam::robot::v1::StreamStatusResponse>* StreamStatus( + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::StreamStatusRequest* /*request*/) { return nullptr; } + }; + template + class WithCallbackMethod_StopAll : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_StopAll() { + ::grpc::Service::MarkMethodCallback(10, + new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::StopAllRequest, ::viam::robot::v1::StopAllResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::robot::v1::StopAllRequest* request, ::viam::robot::v1::StopAllResponse* response) { return this->StopAll(context, request, response); }));} + void SetMessageAllocatorFor_StopAll( + ::grpc::MessageAllocator< ::viam::robot::v1::StopAllRequest, ::viam::robot::v1::StopAllResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::StopAllRequest, ::viam::robot::v1::StopAllResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_StopAll() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status StopAll(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::StopAllRequest* /*request*/, ::viam::robot::v1::StopAllResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* StopAll( + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::StopAllRequest* /*request*/, ::viam::robot::v1::StopAllResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetOperations > > > > > > > > > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_GetOperations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetOperations() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_GetOperations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOperations(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetOperationsRequest* /*request*/, ::viam::robot::v1::GetOperationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ResourceNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ResourceNames() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_ResourceNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ResourceNames(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::ResourceNamesRequest* /*request*/, ::viam::robot::v1::ResourceNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ResourceRPCSubtypes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ResourceRPCSubtypes() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_ResourceRPCSubtypes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ResourceRPCSubtypes(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::ResourceRPCSubtypesRequest* /*request*/, ::viam::robot::v1::ResourceRPCSubtypesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_CancelOperation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_CancelOperation() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_CancelOperation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CancelOperation(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::CancelOperationRequest* /*request*/, ::viam::robot::v1::CancelOperationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_BlockForOperation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_BlockForOperation() { + ::grpc::Service::MarkMethodGeneric(4); + } + ~WithGenericMethod_BlockForOperation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status BlockForOperation(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::BlockForOperationRequest* /*request*/, ::viam::robot::v1::BlockForOperationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DiscoverComponents : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_DiscoverComponents() { + ::grpc::Service::MarkMethodGeneric(5); + } + ~WithGenericMethod_DiscoverComponents() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DiscoverComponents(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::DiscoverComponentsRequest* /*request*/, ::viam::robot::v1::DiscoverComponentsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_FrameSystemConfig : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_FrameSystemConfig() { + ::grpc::Service::MarkMethodGeneric(6); + } + ~WithGenericMethod_FrameSystemConfig() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status FrameSystemConfig(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::FrameSystemConfigRequest* /*request*/, ::viam::robot::v1::FrameSystemConfigResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_TransformPose : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_TransformPose() { + ::grpc::Service::MarkMethodGeneric(7); + } + ~WithGenericMethod_TransformPose() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TransformPose(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::TransformPoseRequest* /*request*/, ::viam::robot::v1::TransformPoseResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetStatus : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetStatus() { + ::grpc::Service::MarkMethodGeneric(8); + } + ~WithGenericMethod_GetStatus() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetStatus(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetStatusRequest* /*request*/, ::viam::robot::v1::GetStatusResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_StreamStatus : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_StreamStatus() { + ::grpc::Service::MarkMethodGeneric(9); + } + ~WithGenericMethod_StreamStatus() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status StreamStatus(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::StreamStatusRequest* /*request*/, ::grpc::ServerWriter< ::viam::robot::v1::StreamStatusResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_StopAll : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_StopAll() { + ::grpc::Service::MarkMethodGeneric(10); + } + ~WithGenericMethod_StopAll() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status StopAll(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::StopAllRequest* /*request*/, ::viam::robot::v1::StopAllResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_GetOperations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetOperations() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_GetOperations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOperations(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetOperationsRequest* /*request*/, ::viam::robot::v1::GetOperationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetOperations(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ResourceNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ResourceNames() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_ResourceNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ResourceNames(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::ResourceNamesRequest* /*request*/, ::viam::robot::v1::ResourceNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestResourceNames(::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 WithRawMethod_ResourceRPCSubtypes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ResourceRPCSubtypes() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_ResourceRPCSubtypes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ResourceRPCSubtypes(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::ResourceRPCSubtypesRequest* /*request*/, ::viam::robot::v1::ResourceRPCSubtypesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestResourceRPCSubtypes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_CancelOperation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_CancelOperation() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_CancelOperation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CancelOperation(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::CancelOperationRequest* /*request*/, ::viam::robot::v1::CancelOperationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCancelOperation(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_BlockForOperation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_BlockForOperation() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_BlockForOperation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status BlockForOperation(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::BlockForOperationRequest* /*request*/, ::viam::robot::v1::BlockForOperationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestBlockForOperation(::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(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DiscoverComponents : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_DiscoverComponents() { + ::grpc::Service::MarkMethodRaw(5); + } + ~WithRawMethod_DiscoverComponents() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DiscoverComponents(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::DiscoverComponentsRequest* /*request*/, ::viam::robot::v1::DiscoverComponentsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDiscoverComponents(::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(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_FrameSystemConfig : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_FrameSystemConfig() { + ::grpc::Service::MarkMethodRaw(6); + } + ~WithRawMethod_FrameSystemConfig() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status FrameSystemConfig(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::FrameSystemConfigRequest* /*request*/, ::viam::robot::v1::FrameSystemConfigResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestFrameSystemConfig(::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(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_TransformPose : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_TransformPose() { + ::grpc::Service::MarkMethodRaw(7); + } + ~WithRawMethod_TransformPose() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TransformPose(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::TransformPoseRequest* /*request*/, ::viam::robot::v1::TransformPoseResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestTransformPose(::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(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetStatus : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetStatus() { + ::grpc::Service::MarkMethodRaw(8); + } + ~WithRawMethod_GetStatus() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetStatus(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetStatusRequest* /*request*/, ::viam::robot::v1::GetStatusResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetStatus(::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(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_StreamStatus : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_StreamStatus() { + ::grpc::Service::MarkMethodRaw(9); + } + ~WithRawMethod_StreamStatus() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status StreamStatus(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::StreamStatusRequest* /*request*/, ::grpc::ServerWriter< ::viam::robot::v1::StreamStatusResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestStreamStatus(::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(9, context, request, writer, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_StopAll : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_StopAll() { + ::grpc::Service::MarkMethodRaw(10); + } + ~WithRawMethod_StopAll() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status StopAll(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::StopAllRequest* /*request*/, ::viam::robot::v1::StopAllResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestStopAll(::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_GetOperations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetOperations() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetOperations(context, request, response); })); + } + ~WithRawCallbackMethod_GetOperations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOperations(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetOperationsRequest* /*request*/, ::viam::robot::v1::GetOperationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetOperations( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_ResourceNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_ResourceNames() { + ::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->ResourceNames(context, request, response); })); + } + ~WithRawCallbackMethod_ResourceNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ResourceNames(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::ResourceNamesRequest* /*request*/, ::viam::robot::v1::ResourceNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ResourceNames( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_ResourceRPCSubtypes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_ResourceRPCSubtypes() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ResourceRPCSubtypes(context, request, response); })); + } + ~WithRawCallbackMethod_ResourceRPCSubtypes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ResourceRPCSubtypes(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::ResourceRPCSubtypesRequest* /*request*/, ::viam::robot::v1::ResourceRPCSubtypesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ResourceRPCSubtypes( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_CancelOperation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_CancelOperation() { + ::grpc::Service::MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CancelOperation(context, request, response); })); + } + ~WithRawCallbackMethod_CancelOperation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CancelOperation(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::CancelOperationRequest* /*request*/, ::viam::robot::v1::CancelOperationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* CancelOperation( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_BlockForOperation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_BlockForOperation() { + ::grpc::Service::MarkMethodRawCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->BlockForOperation(context, request, response); })); + } + ~WithRawCallbackMethod_BlockForOperation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status BlockForOperation(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::BlockForOperationRequest* /*request*/, ::viam::robot::v1::BlockForOperationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* BlockForOperation( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_DiscoverComponents : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_DiscoverComponents() { + ::grpc::Service::MarkMethodRawCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DiscoverComponents(context, request, response); })); + } + ~WithRawCallbackMethod_DiscoverComponents() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DiscoverComponents(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::DiscoverComponentsRequest* /*request*/, ::viam::robot::v1::DiscoverComponentsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DiscoverComponents( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_FrameSystemConfig : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_FrameSystemConfig() { + ::grpc::Service::MarkMethodRawCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->FrameSystemConfig(context, request, response); })); + } + ~WithRawCallbackMethod_FrameSystemConfig() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status FrameSystemConfig(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::FrameSystemConfigRequest* /*request*/, ::viam::robot::v1::FrameSystemConfigResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* FrameSystemConfig( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_TransformPose : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_TransformPose() { + ::grpc::Service::MarkMethodRawCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->TransformPose(context, request, response); })); + } + ~WithRawCallbackMethod_TransformPose() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TransformPose(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::TransformPoseRequest* /*request*/, ::viam::robot::v1::TransformPoseResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* TransformPose( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetStatus : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetStatus() { + ::grpc::Service::MarkMethodRawCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetStatus(context, request, response); })); + } + ~WithRawCallbackMethod_GetStatus() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetStatus(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetStatusRequest* /*request*/, ::viam::robot::v1::GetStatusResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetStatus( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_StreamStatus : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_StreamStatus() { + ::grpc::Service::MarkMethodRawCallback(9, + new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->StreamStatus(context, request); })); + } + ~WithRawCallbackMethod_StreamStatus() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status StreamStatus(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::StreamStatusRequest* /*request*/, ::grpc::ServerWriter< ::viam::robot::v1::StreamStatusResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* StreamStatus( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_StopAll : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_StopAll() { + ::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->StopAll(context, request, response); })); + } + ~WithRawCallbackMethod_StopAll() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status StopAll(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::StopAllRequest* /*request*/, ::viam::robot::v1::StopAllResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* StopAll( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_GetOperations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetOperations() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::robot::v1::GetOperationsRequest, ::viam::robot::v1::GetOperationsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::robot::v1::GetOperationsRequest, ::viam::robot::v1::GetOperationsResponse>* streamer) { + return this->StreamedGetOperations(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetOperations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetOperations(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetOperationsRequest* /*request*/, ::viam::robot::v1::GetOperationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetOperations(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::robot::v1::GetOperationsRequest,::viam::robot::v1::GetOperationsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ResourceNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ResourceNames() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::robot::v1::ResourceNamesRequest, ::viam::robot::v1::ResourceNamesResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::robot::v1::ResourceNamesRequest, ::viam::robot::v1::ResourceNamesResponse>* streamer) { + return this->StreamedResourceNames(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ResourceNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ResourceNames(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::ResourceNamesRequest* /*request*/, ::viam::robot::v1::ResourceNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedResourceNames(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::robot::v1::ResourceNamesRequest,::viam::robot::v1::ResourceNamesResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ResourceRPCSubtypes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ResourceRPCSubtypes() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::robot::v1::ResourceRPCSubtypesRequest, ::viam::robot::v1::ResourceRPCSubtypesResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::robot::v1::ResourceRPCSubtypesRequest, ::viam::robot::v1::ResourceRPCSubtypesResponse>* streamer) { + return this->StreamedResourceRPCSubtypes(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ResourceRPCSubtypes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ResourceRPCSubtypes(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::ResourceRPCSubtypesRequest* /*request*/, ::viam::robot::v1::ResourceRPCSubtypesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedResourceRPCSubtypes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::robot::v1::ResourceRPCSubtypesRequest,::viam::robot::v1::ResourceRPCSubtypesResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_CancelOperation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_CancelOperation() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::robot::v1::CancelOperationRequest, ::viam::robot::v1::CancelOperationResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::robot::v1::CancelOperationRequest, ::viam::robot::v1::CancelOperationResponse>* streamer) { + return this->StreamedCancelOperation(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_CancelOperation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CancelOperation(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::CancelOperationRequest* /*request*/, ::viam::robot::v1::CancelOperationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCancelOperation(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::robot::v1::CancelOperationRequest,::viam::robot::v1::CancelOperationResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_BlockForOperation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_BlockForOperation() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::robot::v1::BlockForOperationRequest, ::viam::robot::v1::BlockForOperationResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::robot::v1::BlockForOperationRequest, ::viam::robot::v1::BlockForOperationResponse>* streamer) { + return this->StreamedBlockForOperation(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_BlockForOperation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status BlockForOperation(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::BlockForOperationRequest* /*request*/, ::viam::robot::v1::BlockForOperationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedBlockForOperation(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::robot::v1::BlockForOperationRequest,::viam::robot::v1::BlockForOperationResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DiscoverComponents : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DiscoverComponents() { + ::grpc::Service::MarkMethodStreamed(5, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::robot::v1::DiscoverComponentsRequest, ::viam::robot::v1::DiscoverComponentsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::robot::v1::DiscoverComponentsRequest, ::viam::robot::v1::DiscoverComponentsResponse>* streamer) { + return this->StreamedDiscoverComponents(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DiscoverComponents() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DiscoverComponents(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::DiscoverComponentsRequest* /*request*/, ::viam::robot::v1::DiscoverComponentsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDiscoverComponents(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::robot::v1::DiscoverComponentsRequest,::viam::robot::v1::DiscoverComponentsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_FrameSystemConfig : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_FrameSystemConfig() { + ::grpc::Service::MarkMethodStreamed(6, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::robot::v1::FrameSystemConfigRequest, ::viam::robot::v1::FrameSystemConfigResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::robot::v1::FrameSystemConfigRequest, ::viam::robot::v1::FrameSystemConfigResponse>* streamer) { + return this->StreamedFrameSystemConfig(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_FrameSystemConfig() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status FrameSystemConfig(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::FrameSystemConfigRequest* /*request*/, ::viam::robot::v1::FrameSystemConfigResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedFrameSystemConfig(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::robot::v1::FrameSystemConfigRequest,::viam::robot::v1::FrameSystemConfigResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_TransformPose : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_TransformPose() { + ::grpc::Service::MarkMethodStreamed(7, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::robot::v1::TransformPoseRequest, ::viam::robot::v1::TransformPoseResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::robot::v1::TransformPoseRequest, ::viam::robot::v1::TransformPoseResponse>* streamer) { + return this->StreamedTransformPose(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_TransformPose() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status TransformPose(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::TransformPoseRequest* /*request*/, ::viam::robot::v1::TransformPoseResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedTransformPose(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::robot::v1::TransformPoseRequest,::viam::robot::v1::TransformPoseResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetStatus : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetStatus() { + ::grpc::Service::MarkMethodStreamed(8, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::robot::v1::GetStatusRequest, ::viam::robot::v1::GetStatusResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::robot::v1::GetStatusRequest, ::viam::robot::v1::GetStatusResponse>* streamer) { + return this->StreamedGetStatus(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetStatus() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetStatus(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetStatusRequest* /*request*/, ::viam::robot::v1::GetStatusResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetStatus(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::robot::v1::GetStatusRequest,::viam::robot::v1::GetStatusResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_StopAll : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_StopAll() { + ::grpc::Service::MarkMethodStreamed(10, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::robot::v1::StopAllRequest, ::viam::robot::v1::StopAllResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::robot::v1::StopAllRequest, ::viam::robot::v1::StopAllResponse>* streamer) { + return this->StreamedStopAll(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_StopAll() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status StopAll(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::StopAllRequest* /*request*/, ::viam::robot::v1::StopAllResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedStopAll(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::robot::v1::StopAllRequest,::viam::robot::v1::StopAllResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetOperations > > > > > > > > > StreamedUnaryService; + template + class WithSplitStreamingMethod_StreamStatus : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithSplitStreamingMethod_StreamStatus() { + ::grpc::Service::MarkMethodStreamed(9, + new ::grpc::internal::SplitServerStreamingHandler< + ::viam::robot::v1::StreamStatusRequest, ::viam::robot::v1::StreamStatusResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerSplitStreamer< + ::viam::robot::v1::StreamStatusRequest, ::viam::robot::v1::StreamStatusResponse>* streamer) { + return this->StreamedStreamStatus(context, + streamer); + })); + } + ~WithSplitStreamingMethod_StreamStatus() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status StreamStatus(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::StreamStatusRequest* /*request*/, ::grpc::ServerWriter< ::viam::robot::v1::StreamStatusResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with split streamed + virtual ::grpc::Status StreamedStreamStatus(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::viam::robot::v1::StreamStatusRequest,::viam::robot::v1::StreamStatusResponse>* server_split_streamer) = 0; + }; + typedef WithSplitStreamingMethod_StreamStatus SplitStreamedService; + typedef WithStreamedUnaryMethod_GetOperations > > > > > > > > > > StreamedService; +}; + +} // namespace v1 +} // namespace robot +} // namespace viam + + +#endif // GRPC_robot_2fv1_2frobot_2eproto__INCLUDED diff --git a/src/gen/robot/v1/robot.pb.cc b/src/gen/robot/v1/robot.pb.cc new file mode 100644 index 000000000..b5d496c38 --- /dev/null +++ b/src/gen/robot/v1/robot.pb.cc @@ -0,0 +1,6258 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: robot/v1/robot.proto + +#include "robot/v1/robot.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 robot { +namespace v1 { +PROTOBUF_CONSTEXPR FrameSystemConfig::FrameSystemConfig( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.model_json_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.pose_in_parent_frame_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct FrameSystemConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR FrameSystemConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FrameSystemConfigDefaultTypeInternal() {} + union { + FrameSystemConfig _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FrameSystemConfigDefaultTypeInternal _FrameSystemConfig_default_instance_; +PROTOBUF_CONSTEXPR FrameSystemConfigRequest::FrameSystemConfigRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.supplemental_transforms_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct FrameSystemConfigRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR FrameSystemConfigRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FrameSystemConfigRequestDefaultTypeInternal() {} + union { + FrameSystemConfigRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FrameSystemConfigRequestDefaultTypeInternal _FrameSystemConfigRequest_default_instance_; +PROTOBUF_CONSTEXPR FrameSystemConfigResponse::FrameSystemConfigResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.frame_system_configs_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct FrameSystemConfigResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR FrameSystemConfigResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FrameSystemConfigResponseDefaultTypeInternal() {} + union { + FrameSystemConfigResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FrameSystemConfigResponseDefaultTypeInternal _FrameSystemConfigResponse_default_instance_; +PROTOBUF_CONSTEXPR TransformPoseRequest::TransformPoseRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.supplemental_transforms_)*/{} + , /*decltype(_impl_.destination_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.source_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct TransformPoseRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR TransformPoseRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TransformPoseRequestDefaultTypeInternal() {} + union { + TransformPoseRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransformPoseRequestDefaultTypeInternal _TransformPoseRequest_default_instance_; +PROTOBUF_CONSTEXPR TransformPoseResponse::TransformPoseResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.pose_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct TransformPoseResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR TransformPoseResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TransformPoseResponseDefaultTypeInternal() {} + union { + TransformPoseResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransformPoseResponseDefaultTypeInternal _TransformPoseResponse_default_instance_; +PROTOBUF_CONSTEXPR ResourceNamesRequest::ResourceNamesRequest( + ::_pbi::ConstantInitialized) {} +struct ResourceNamesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResourceNamesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResourceNamesRequestDefaultTypeInternal() {} + union { + ResourceNamesRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceNamesRequestDefaultTypeInternal _ResourceNamesRequest_default_instance_; +PROTOBUF_CONSTEXPR ResourceNamesResponse::ResourceNamesResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.resources_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ResourceNamesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResourceNamesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResourceNamesResponseDefaultTypeInternal() {} + union { + ResourceNamesResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceNamesResponseDefaultTypeInternal _ResourceNamesResponse_default_instance_; +PROTOBUF_CONSTEXPR ResourceRPCSubtype::ResourceRPCSubtype( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.proto_service_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.subtype_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ResourceRPCSubtypeDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResourceRPCSubtypeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResourceRPCSubtypeDefaultTypeInternal() {} + union { + ResourceRPCSubtype _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceRPCSubtypeDefaultTypeInternal _ResourceRPCSubtype_default_instance_; +PROTOBUF_CONSTEXPR ResourceRPCSubtypesRequest::ResourceRPCSubtypesRequest( + ::_pbi::ConstantInitialized) {} +struct ResourceRPCSubtypesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResourceRPCSubtypesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResourceRPCSubtypesRequestDefaultTypeInternal() {} + union { + ResourceRPCSubtypesRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceRPCSubtypesRequestDefaultTypeInternal _ResourceRPCSubtypesRequest_default_instance_; +PROTOBUF_CONSTEXPR ResourceRPCSubtypesResponse::ResourceRPCSubtypesResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.resource_rpc_subtypes_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ResourceRPCSubtypesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResourceRPCSubtypesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResourceRPCSubtypesResponseDefaultTypeInternal() {} + union { + ResourceRPCSubtypesResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceRPCSubtypesResponseDefaultTypeInternal _ResourceRPCSubtypesResponse_default_instance_; +PROTOBUF_CONSTEXPR Operation::Operation( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.method_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.arguments_)*/nullptr + , /*decltype(_impl_.started_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct OperationDefaultTypeInternal { + PROTOBUF_CONSTEXPR OperationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OperationDefaultTypeInternal() {} + union { + Operation _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OperationDefaultTypeInternal _Operation_default_instance_; +PROTOBUF_CONSTEXPR GetOperationsRequest::GetOperationsRequest( + ::_pbi::ConstantInitialized) {} +struct GetOperationsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetOperationsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetOperationsRequestDefaultTypeInternal() {} + union { + GetOperationsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOperationsRequestDefaultTypeInternal _GetOperationsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetOperationsResponse::GetOperationsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.operations_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetOperationsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetOperationsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetOperationsResponseDefaultTypeInternal() {} + union { + GetOperationsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOperationsResponseDefaultTypeInternal _GetOperationsResponse_default_instance_; +PROTOBUF_CONSTEXPR CancelOperationRequest::CancelOperationRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct CancelOperationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CancelOperationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CancelOperationRequestDefaultTypeInternal() {} + union { + CancelOperationRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CancelOperationRequestDefaultTypeInternal _CancelOperationRequest_default_instance_; +PROTOBUF_CONSTEXPR CancelOperationResponse::CancelOperationResponse( + ::_pbi::ConstantInitialized) {} +struct CancelOperationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CancelOperationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CancelOperationResponseDefaultTypeInternal() {} + union { + CancelOperationResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CancelOperationResponseDefaultTypeInternal _CancelOperationResponse_default_instance_; +PROTOBUF_CONSTEXPR BlockForOperationRequest::BlockForOperationRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct BlockForOperationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR BlockForOperationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~BlockForOperationRequestDefaultTypeInternal() {} + union { + BlockForOperationRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlockForOperationRequestDefaultTypeInternal _BlockForOperationRequest_default_instance_; +PROTOBUF_CONSTEXPR BlockForOperationResponse::BlockForOperationResponse( + ::_pbi::ConstantInitialized) {} +struct BlockForOperationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR BlockForOperationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~BlockForOperationResponseDefaultTypeInternal() {} + union { + BlockForOperationResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlockForOperationResponseDefaultTypeInternal _BlockForOperationResponse_default_instance_; +PROTOBUF_CONSTEXPR DiscoveryQuery::DiscoveryQuery( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.subtype_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.model_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DiscoveryQueryDefaultTypeInternal { + PROTOBUF_CONSTEXPR DiscoveryQueryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DiscoveryQueryDefaultTypeInternal() {} + union { + DiscoveryQuery _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoveryQueryDefaultTypeInternal _DiscoveryQuery_default_instance_; +PROTOBUF_CONSTEXPR Discovery::Discovery( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.query_)*/nullptr + , /*decltype(_impl_.results_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DiscoveryDefaultTypeInternal { + PROTOBUF_CONSTEXPR DiscoveryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DiscoveryDefaultTypeInternal() {} + union { + Discovery _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoveryDefaultTypeInternal _Discovery_default_instance_; +PROTOBUF_CONSTEXPR DiscoverComponentsRequest::DiscoverComponentsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.queries_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DiscoverComponentsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DiscoverComponentsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DiscoverComponentsRequestDefaultTypeInternal() {} + union { + DiscoverComponentsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoverComponentsRequestDefaultTypeInternal _DiscoverComponentsRequest_default_instance_; +PROTOBUF_CONSTEXPR DiscoverComponentsResponse::DiscoverComponentsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.discovery_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DiscoverComponentsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DiscoverComponentsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DiscoverComponentsResponseDefaultTypeInternal() {} + union { + DiscoverComponentsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoverComponentsResponseDefaultTypeInternal _DiscoverComponentsResponse_default_instance_; +PROTOBUF_CONSTEXPR Status::Status( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/nullptr + , /*decltype(_impl_.status_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StatusDefaultTypeInternal() {} + union { + Status _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; +PROTOBUF_CONSTEXPR GetStatusRequest::GetStatusRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.resource_names_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetStatusRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetStatusRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetStatusRequestDefaultTypeInternal() {} + union { + GetStatusRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetStatusRequestDefaultTypeInternal _GetStatusRequest_default_instance_; +PROTOBUF_CONSTEXPR GetStatusResponse::GetStatusResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.status_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetStatusResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetStatusResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetStatusResponseDefaultTypeInternal() {} + union { + GetStatusResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetStatusResponseDefaultTypeInternal _GetStatusResponse_default_instance_; +PROTOBUF_CONSTEXPR StreamStatusRequest::StreamStatusRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.resource_names_)*/{} + , /*decltype(_impl_.every_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StreamStatusRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StreamStatusRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StreamStatusRequestDefaultTypeInternal() {} + union { + StreamStatusRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamStatusRequestDefaultTypeInternal _StreamStatusRequest_default_instance_; +PROTOBUF_CONSTEXPR StreamStatusResponse::StreamStatusResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.status_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StreamStatusResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StreamStatusResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StreamStatusResponseDefaultTypeInternal() {} + union { + StreamStatusResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamStatusResponseDefaultTypeInternal _StreamStatusResponse_default_instance_; +PROTOBUF_CONSTEXPR StopExtraParameters::StopExtraParameters( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/nullptr + , /*decltype(_impl_.params_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StopExtraParametersDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopExtraParametersDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopExtraParametersDefaultTypeInternal() {} + union { + StopExtraParameters _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopExtraParametersDefaultTypeInternal _StopExtraParameters_default_instance_; +PROTOBUF_CONSTEXPR StopAllRequest::StopAllRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.extra_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StopAllRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopAllRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopAllRequestDefaultTypeInternal() {} + union { + StopAllRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopAllRequestDefaultTypeInternal _StopAllRequest_default_instance_; +PROTOBUF_CONSTEXPR StopAllResponse::StopAllResponse( + ::_pbi::ConstantInitialized) {} +struct StopAllResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopAllResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopAllResponseDefaultTypeInternal() {} + union { + StopAllResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopAllResponseDefaultTypeInternal _StopAllResponse_default_instance_; +} // namespace v1 +} // namespace robot +} // namespace viam +static ::_pb::Metadata file_level_metadata_robot_2fv1_2frobot_2eproto[29]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_robot_2fv1_2frobot_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_robot_2fv1_2frobot_2eproto = nullptr; + +const uint32_t TableStruct_robot_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfig, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfig, _impl_.pose_in_parent_frame_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfig, _impl_.model_json_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfigRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfigRequest, _impl_.supplemental_transforms_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfigResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfigResponse, _impl_.frame_system_configs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPoseRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPoseRequest, _impl_.source_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPoseRequest, _impl_.destination_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPoseRequest, _impl_.supplemental_transforms_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPoseResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPoseResponse, _impl_.pose_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceNamesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceNamesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceNamesResponse, _impl_.resources_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceRPCSubtype, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceRPCSubtype, _impl_.subtype_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceRPCSubtype, _impl_.proto_service_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceRPCSubtypesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceRPCSubtypesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceRPCSubtypesResponse, _impl_.resource_rpc_subtypes_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Operation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Operation, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Operation, _impl_.method_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Operation, _impl_.arguments_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Operation, _impl_.started_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetOperationsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetOperationsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetOperationsResponse, _impl_.operations_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::CancelOperationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::CancelOperationRequest, _impl_.id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::CancelOperationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::BlockForOperationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::BlockForOperationRequest, _impl_.id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::BlockForOperationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoveryQuery, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoveryQuery, _impl_.subtype_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoveryQuery, _impl_.model_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Discovery, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Discovery, _impl_.query_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Discovery, _impl_.results_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoverComponentsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoverComponentsRequest, _impl_.queries_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoverComponentsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoverComponentsResponse, _impl_.discovery_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Status, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Status, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Status, _impl_.status_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetStatusRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetStatusRequest, _impl_.resource_names_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetStatusResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetStatusResponse, _impl_.status_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StreamStatusRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StreamStatusRequest, _impl_.resource_names_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StreamStatusRequest, _impl_.every_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StreamStatusResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StreamStatusResponse, _impl_.status_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StopExtraParameters, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StopExtraParameters, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StopExtraParameters, _impl_.params_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StopAllRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StopAllRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StopAllResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::robot::v1::FrameSystemConfig)}, + { 9, -1, -1, sizeof(::viam::robot::v1::FrameSystemConfigRequest)}, + { 16, -1, -1, sizeof(::viam::robot::v1::FrameSystemConfigResponse)}, + { 23, -1, -1, sizeof(::viam::robot::v1::TransformPoseRequest)}, + { 32, -1, -1, sizeof(::viam::robot::v1::TransformPoseResponse)}, + { 39, -1, -1, sizeof(::viam::robot::v1::ResourceNamesRequest)}, + { 45, -1, -1, sizeof(::viam::robot::v1::ResourceNamesResponse)}, + { 52, -1, -1, sizeof(::viam::robot::v1::ResourceRPCSubtype)}, + { 60, -1, -1, sizeof(::viam::robot::v1::ResourceRPCSubtypesRequest)}, + { 66, -1, -1, sizeof(::viam::robot::v1::ResourceRPCSubtypesResponse)}, + { 73, -1, -1, sizeof(::viam::robot::v1::Operation)}, + { 83, -1, -1, sizeof(::viam::robot::v1::GetOperationsRequest)}, + { 89, -1, -1, sizeof(::viam::robot::v1::GetOperationsResponse)}, + { 96, -1, -1, sizeof(::viam::robot::v1::CancelOperationRequest)}, + { 103, -1, -1, sizeof(::viam::robot::v1::CancelOperationResponse)}, + { 109, -1, -1, sizeof(::viam::robot::v1::BlockForOperationRequest)}, + { 116, -1, -1, sizeof(::viam::robot::v1::BlockForOperationResponse)}, + { 122, -1, -1, sizeof(::viam::robot::v1::DiscoveryQuery)}, + { 130, -1, -1, sizeof(::viam::robot::v1::Discovery)}, + { 138, -1, -1, sizeof(::viam::robot::v1::DiscoverComponentsRequest)}, + { 145, -1, -1, sizeof(::viam::robot::v1::DiscoverComponentsResponse)}, + { 152, -1, -1, sizeof(::viam::robot::v1::Status)}, + { 160, -1, -1, sizeof(::viam::robot::v1::GetStatusRequest)}, + { 167, -1, -1, sizeof(::viam::robot::v1::GetStatusResponse)}, + { 174, -1, -1, sizeof(::viam::robot::v1::StreamStatusRequest)}, + { 182, -1, -1, sizeof(::viam::robot::v1::StreamStatusResponse)}, + { 189, -1, -1, sizeof(::viam::robot::v1::StopExtraParameters)}, + { 197, -1, -1, sizeof(::viam::robot::v1::StopAllRequest)}, + { 204, -1, -1, sizeof(::viam::robot::v1::StopAllResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::robot::v1::_FrameSystemConfig_default_instance_._instance, + &::viam::robot::v1::_FrameSystemConfigRequest_default_instance_._instance, + &::viam::robot::v1::_FrameSystemConfigResponse_default_instance_._instance, + &::viam::robot::v1::_TransformPoseRequest_default_instance_._instance, + &::viam::robot::v1::_TransformPoseResponse_default_instance_._instance, + &::viam::robot::v1::_ResourceNamesRequest_default_instance_._instance, + &::viam::robot::v1::_ResourceNamesResponse_default_instance_._instance, + &::viam::robot::v1::_ResourceRPCSubtype_default_instance_._instance, + &::viam::robot::v1::_ResourceRPCSubtypesRequest_default_instance_._instance, + &::viam::robot::v1::_ResourceRPCSubtypesResponse_default_instance_._instance, + &::viam::robot::v1::_Operation_default_instance_._instance, + &::viam::robot::v1::_GetOperationsRequest_default_instance_._instance, + &::viam::robot::v1::_GetOperationsResponse_default_instance_._instance, + &::viam::robot::v1::_CancelOperationRequest_default_instance_._instance, + &::viam::robot::v1::_CancelOperationResponse_default_instance_._instance, + &::viam::robot::v1::_BlockForOperationRequest_default_instance_._instance, + &::viam::robot::v1::_BlockForOperationResponse_default_instance_._instance, + &::viam::robot::v1::_DiscoveryQuery_default_instance_._instance, + &::viam::robot::v1::_Discovery_default_instance_._instance, + &::viam::robot::v1::_DiscoverComponentsRequest_default_instance_._instance, + &::viam::robot::v1::_DiscoverComponentsResponse_default_instance_._instance, + &::viam::robot::v1::_Status_default_instance_._instance, + &::viam::robot::v1::_GetStatusRequest_default_instance_._instance, + &::viam::robot::v1::_GetStatusResponse_default_instance_._instance, + &::viam::robot::v1::_StreamStatusRequest_default_instance_._instance, + &::viam::robot::v1::_StreamStatusResponse_default_instance_._instance, + &::viam::robot::v1::_StopExtraParameters_default_instance_._instance, + &::viam::robot::v1::_StopAllRequest_default_instance_._instance, + &::viam::robot::v1::_StopAllResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_robot_2fv1_2frobot_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\024robot/v1/robot.proto\022\rviam.robot.v1\032\026c" + "ommon/v1/common.proto\032\034google/api/annota" + "tions.proto\032\036google/protobuf/duration.pr" + "oto\032\034google/protobuf/struct.proto\032\037googl" + "e/protobuf/timestamp.proto\"\224\001\n\021FrameSyst" + "emConfig\022\022\n\004name\030\001 \001(\tR\004name\022L\n\024pose_in_" + "parent_frame\030\002 \001(\0132\033.viam.common.v1.Pose" + "InFrameR\021poseInParentFrame\022\035\n\nmodel_json" + "\030\003 \001(\014R\tmodelJson\"n\n\030FrameSystemConfigRe" + "quest\022R\n\027supplemental_transforms\030\001 \003(\0132\031" + ".viam.common.v1.TransformR\026supplementalT" + "ransforms\"o\n\031FrameSystemConfigResponse\022R" + "\n\024frame_system_configs\030\001 \003(\0132 .viam.robo" + "t.v1.FrameSystemConfigR\022frameSystemConfi" + "gs\"\301\001\n\024TransformPoseRequest\0223\n\006source\030\001 " + "\001(\0132\033.viam.common.v1.PoseInFrameR\006source" + "\022 \n\013destination\030\002 \001(\tR\013destination\022R\n\027su" + "pplemental_transforms\030\003 \003(\0132\031.viam.commo" + "n.v1.TransformR\026supplementalTransforms\"H" + "\n\025TransformPoseResponse\022/\n\004pose\030\001 \001(\0132\033." + "viam.common.v1.PoseInFrameR\004pose\"\026\n\024Reso" + "urceNamesRequest\"S\n\025ResourceNamesRespons" + "e\022:\n\tresources\030\001 \003(\0132\034.viam.common.v1.Re" + "sourceNameR\tresources\"q\n\022ResourceRPCSubt" + "ype\0226\n\007subtype\030\001 \001(\0132\034.viam.common.v1.Re" + "sourceNameR\007subtype\022#\n\rproto_service\030\002 \001" + "(\tR\014protoService\"\034\n\032ResourceRPCSubtypesR" + "equest\"t\n\033ResourceRPCSubtypesResponse\022U\n" + "\025resource_rpc_subtypes\030\001 \003(\0132!.viam.robo" + "t.v1.ResourceRPCSubtypeR\023resourceRpcSubt" + "ypes\"\240\001\n\tOperation\022\016\n\002id\030\001 \001(\tR\002id\022\026\n\006me" + "thod\030\002 \001(\tR\006method\0225\n\targuments\030\003 \001(\0132\027." + "google.protobuf.StructR\targuments\0224\n\007sta" + "rted\030\004 \001(\0132\032.google.protobuf.TimestampR\007" + "started\"\026\n\024GetOperationsRequest\"Q\n\025GetOp" + "erationsResponse\0228\n\noperations\030\001 \003(\0132\030.v" + "iam.robot.v1.OperationR\noperations\"(\n\026Ca" + "ncelOperationRequest\022\016\n\002id\030\001 \001(\tR\002id\"\031\n\027" + "CancelOperationResponse\"*\n\030BlockForOpera" + "tionRequest\022\016\n\002id\030\001 \001(\tR\002id\"\033\n\031BlockForO" + "perationResponse\"@\n\016DiscoveryQuery\022\030\n\007su" + "btype\030\001 \001(\tR\007subtype\022\024\n\005model\030\002 \001(\tR\005mod" + "el\"s\n\tDiscovery\0223\n\005query\030\001 \001(\0132\035.viam.ro" + "bot.v1.DiscoveryQueryR\005query\0221\n\007results\030" + "\002 \001(\0132\027.google.protobuf.StructR\007results\"" + "T\n\031DiscoverComponentsRequest\0227\n\007queries\030" + "\001 \003(\0132\035.viam.robot.v1.DiscoveryQueryR\007qu" + "eries\"T\n\032DiscoverComponentsResponse\0226\n\td" + "iscovery\030\001 \003(\0132\030.viam.robot.v1.Discovery" + "R\tdiscovery\"k\n\006Status\0220\n\004name\030\001 \001(\0132\034.vi" + "am.common.v1.ResourceNameR\004name\022/\n\006statu" + "s\030\002 \001(\0132\027.google.protobuf.StructR\006status" + "\"W\n\020GetStatusRequest\022C\n\016resource_names\030\001" + " \003(\0132\034.viam.common.v1.ResourceNameR\rreso" + "urceNames\"B\n\021GetStatusResponse\022-\n\006status" + "\030\001 \003(\0132\025.viam.robot.v1.StatusR\006status\"\213\001" + "\n\023StreamStatusRequest\022C\n\016resource_names\030" + "\001 \003(\0132\034.viam.common.v1.ResourceNameR\rres" + "ourceNames\022/\n\005every\030\002 \001(\0132\031.google.proto" + "buf.DurationR\005every\"E\n\024StreamStatusRespo" + "nse\022-\n\006status\030\001 \003(\0132\025.viam.robot.v1.Stat" + "usR\006status\"x\n\023StopExtraParameters\0220\n\004nam" + "e\030\001 \001(\0132\034.viam.common.v1.ResourceNameR\004n" + "ame\022/\n\006params\030\002 \001(\0132\027.google.protobuf.St" + "ructR\006params\"J\n\016StopAllRequest\0228\n\005extra\030" + "c \003(\0132\".viam.robot.v1.StopExtraParameter" + "sR\005extra\"\021\n\017StopAllResponse2\333\013\n\014RobotSer" + "vice\022\200\001\n\rGetOperations\022#.viam.robot.v1.G" + "etOperationsRequest\032$.viam.robot.v1.GetO" + "perationsResponse\"$\202\323\344\223\002\036\022\034/viam/api/v1/" + "operations/list\022\177\n\rResourceNames\022#.viam." + "robot.v1.ResourceNamesRequest\032$.viam.rob" + "ot.v1.ResourceNamesResponse\"#\202\323\344\223\002\035\022\033/vi" + "am/api/v1/resources/list\022\235\001\n\023ResourceRPC" + "Subtypes\022).viam.robot.v1.ResourceRPCSubt" + "ypesRequest\032*.viam.robot.v1.ResourceRPCS" + "ubtypesResponse\"/\202\323\344\223\002)\022\'/viam/api/v1/re" + "source_rpc_subtypes/list\022\210\001\n\017CancelOpera" + "tion\022%.viam.robot.v1.CancelOperationRequ" + "est\032&.viam.robot.v1.CancelOperationRespo" + "nse\"&\202\323\344\223\002 \"\036/viam/api/v1/operations/can" + "cel\022\215\001\n\021BlockForOperation\022\'.viam.robot.v" + "1.BlockForOperationRequest\032(.viam.robot." + "v1.BlockForOperationResponse\"%\202\323\344\223\002\037\"\035/v" + "iam/api/v1/operations/block\022\224\001\n\022Discover" + "Components\022(.viam.robot.v1.DiscoverCompo" + "nentsRequest\032).viam.robot.v1.DiscoverCom" + "ponentsResponse\")\202\323\344\223\002#\022!/viam/api/v1/di" + "scovery/components\022\220\001\n\021FrameSystemConfig" + "\022\'.viam.robot.v1.FrameSystemConfigReques" + "t\032(.viam.robot.v1.FrameSystemConfigRespo" + "nse\"(\202\323\344\223\002\"\022 /viam/api/v1/frame_system/c" + "onfig\022\214\001\n\rTransformPose\022#.viam.robot.v1." + "TransformPoseRequest\032$.viam.robot.v1.Tra" + "nsformPoseResponse\"0\202\323\344\223\002*\022(/viam/api/v1" + "/frame_system/transform_pose\022k\n\tGetStatu" + "s\022\037.viam.robot.v1.GetStatusRequest\032 .via" + "m.robot.v1.GetStatusResponse\"\033\202\323\344\223\002\025\022\023/v" + "iam/api/v1/status\022}\n\014StreamStatus\022\".viam" + ".robot.v1.StreamStatusRequest\032#.viam.rob" + "ot.v1.StreamStatusResponse\"\"\202\323\344\223\002\034\022\032/via" + "m/api/v1/status/stream0\001\022g\n\007StopAll\022\035.vi" + "am.robot.v1.StopAllRequest\032\036.viam.robot." + "v1.StopAllResponse\"\035\202\323\344\223\002\027\022\025/viam/api/v1" + "/stop_allB-\n\021com.viam.robot.v1Z\030go.viam." + "com/api/robot/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_robot_2fv1_2frobot_2eproto_deps[5] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fduration_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, +}; +static ::_pbi::once_flag descriptor_table_robot_2fv1_2frobot_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_robot_2fv1_2frobot_2eproto = { + false, false, 4224, descriptor_table_protodef_robot_2fv1_2frobot_2eproto, + "robot/v1/robot.proto", + &descriptor_table_robot_2fv1_2frobot_2eproto_once, descriptor_table_robot_2fv1_2frobot_2eproto_deps, 5, 29, + schemas, file_default_instances, TableStruct_robot_2fv1_2frobot_2eproto::offsets, + file_level_metadata_robot_2fv1_2frobot_2eproto, file_level_enum_descriptors_robot_2fv1_2frobot_2eproto, + file_level_service_descriptors_robot_2fv1_2frobot_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_robot_2fv1_2frobot_2eproto_getter() { + return &descriptor_table_robot_2fv1_2frobot_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_robot_2fv1_2frobot_2eproto(&descriptor_table_robot_2fv1_2frobot_2eproto); +namespace viam { +namespace robot { +namespace v1 { + +// =================================================================== + +class FrameSystemConfig::_Internal { + public: + static const ::viam::common::v1::PoseInFrame& pose_in_parent_frame(const FrameSystemConfig* msg); +}; + +const ::viam::common::v1::PoseInFrame& +FrameSystemConfig::_Internal::pose_in_parent_frame(const FrameSystemConfig* msg) { + return *msg->_impl_.pose_in_parent_frame_; +} +void FrameSystemConfig::clear_pose_in_parent_frame() { + if (GetArenaForAllocation() == nullptr && _impl_.pose_in_parent_frame_ != nullptr) { + delete _impl_.pose_in_parent_frame_; + } + _impl_.pose_in_parent_frame_ = nullptr; +} +FrameSystemConfig::FrameSystemConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.FrameSystemConfig) +} +FrameSystemConfig::FrameSystemConfig(const FrameSystemConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + FrameSystemConfig* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.model_json_){} + , decltype(_impl_.pose_in_parent_frame_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.model_json_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_json_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model_json().empty()) { + _this->_impl_.model_json_.Set(from._internal_model_json(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_pose_in_parent_frame()) { + _this->_impl_.pose_in_parent_frame_ = new ::viam::common::v1::PoseInFrame(*from._impl_.pose_in_parent_frame_); + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.FrameSystemConfig) +} + +inline void FrameSystemConfig::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.model_json_){} + , decltype(_impl_.pose_in_parent_frame_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_json_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_json_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +FrameSystemConfig::~FrameSystemConfig() { + // @@protoc_insertion_point(destructor:viam.robot.v1.FrameSystemConfig) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void FrameSystemConfig::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.model_json_.Destroy(); + if (this != internal_default_instance()) delete _impl_.pose_in_parent_frame_; +} + +void FrameSystemConfig::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void FrameSystemConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.FrameSystemConfig) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.model_json_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.pose_in_parent_frame_ != nullptr) { + delete _impl_.pose_in_parent_frame_; + } + _impl_.pose_in_parent_frame_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FrameSystemConfig::_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.robot.v1.FrameSystemConfig.name")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.PoseInFrame pose_in_parent_frame = 2 [json_name = "poseInParentFrame"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_pose_in_parent_frame(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes model_json = 3 [json_name = "modelJson"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_model_json(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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* FrameSystemConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.FrameSystemConfig) + 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.robot.v1.FrameSystemConfig.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .viam.common.v1.PoseInFrame pose_in_parent_frame = 2 [json_name = "poseInParentFrame"]; + if (this->_internal_has_pose_in_parent_frame()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::pose_in_parent_frame(this), + _Internal::pose_in_parent_frame(this).GetCachedSize(), target, stream); + } + + // bytes model_json = 3 [json_name = "modelJson"]; + if (!this->_internal_model_json().empty()) { + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_model_json(), 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.robot.v1.FrameSystemConfig) + return target; +} + +size_t FrameSystemConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.FrameSystemConfig) + 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()); + } + + // bytes model_json = 3 [json_name = "modelJson"]; + if (!this->_internal_model_json().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_model_json()); + } + + // .viam.common.v1.PoseInFrame pose_in_parent_frame = 2 [json_name = "poseInParentFrame"]; + if (this->_internal_has_pose_in_parent_frame()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.pose_in_parent_frame_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FrameSystemConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + FrameSystemConfig::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FrameSystemConfig::GetClassData() const { return &_class_data_; } + + +void FrameSystemConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.FrameSystemConfig) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_model_json().empty()) { + _this->_internal_set_model_json(from._internal_model_json()); + } + if (from._internal_has_pose_in_parent_frame()) { + _this->_internal_mutable_pose_in_parent_frame()->::viam::common::v1::PoseInFrame::MergeFrom( + from._internal_pose_in_parent_frame()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void FrameSystemConfig::CopyFrom(const FrameSystemConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.FrameSystemConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FrameSystemConfig::IsInitialized() const { + return true; +} + +void FrameSystemConfig::InternalSwap(FrameSystemConfig* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.model_json_, lhs_arena, + &other->_impl_.model_json_, rhs_arena + ); + swap(_impl_.pose_in_parent_frame_, other->_impl_.pose_in_parent_frame_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FrameSystemConfig::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[0]); +} + +// =================================================================== + +class FrameSystemConfigRequest::_Internal { + public: +}; + +void FrameSystemConfigRequest::clear_supplemental_transforms() { + _impl_.supplemental_transforms_.Clear(); +} +FrameSystemConfigRequest::FrameSystemConfigRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.FrameSystemConfigRequest) +} +FrameSystemConfigRequest::FrameSystemConfigRequest(const FrameSystemConfigRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + FrameSystemConfigRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.supplemental_transforms_){from._impl_.supplemental_transforms_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.FrameSystemConfigRequest) +} + +inline void FrameSystemConfigRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.supplemental_transforms_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +FrameSystemConfigRequest::~FrameSystemConfigRequest() { + // @@protoc_insertion_point(destructor:viam.robot.v1.FrameSystemConfigRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void FrameSystemConfigRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.supplemental_transforms_.~RepeatedPtrField(); +} + +void FrameSystemConfigRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void FrameSystemConfigRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.FrameSystemConfigRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.supplemental_transforms_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FrameSystemConfigRequest::_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) { + // repeated .viam.common.v1.Transform supplemental_transforms = 1 [json_name = "supplementalTransforms"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_supplemental_transforms(), 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* FrameSystemConfigRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.FrameSystemConfigRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.common.v1.Transform supplemental_transforms = 1 [json_name = "supplementalTransforms"]; + for (unsigned i = 0, + n = static_cast(this->_internal_supplemental_transforms_size()); i < n; i++) { + const auto& repfield = this->_internal_supplemental_transforms(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.FrameSystemConfigRequest) + return target; +} + +size_t FrameSystemConfigRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.FrameSystemConfigRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.common.v1.Transform supplemental_transforms = 1 [json_name = "supplementalTransforms"]; + total_size += 1UL * this->_internal_supplemental_transforms_size(); + for (const auto& msg : this->_impl_.supplemental_transforms_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FrameSystemConfigRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + FrameSystemConfigRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FrameSystemConfigRequest::GetClassData() const { return &_class_data_; } + + +void FrameSystemConfigRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.FrameSystemConfigRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.supplemental_transforms_.MergeFrom(from._impl_.supplemental_transforms_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void FrameSystemConfigRequest::CopyFrom(const FrameSystemConfigRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.FrameSystemConfigRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FrameSystemConfigRequest::IsInitialized() const { + return true; +} + +void FrameSystemConfigRequest::InternalSwap(FrameSystemConfigRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.supplemental_transforms_.InternalSwap(&other->_impl_.supplemental_transforms_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FrameSystemConfigRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[1]); +} + +// =================================================================== + +class FrameSystemConfigResponse::_Internal { + public: +}; + +FrameSystemConfigResponse::FrameSystemConfigResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.FrameSystemConfigResponse) +} +FrameSystemConfigResponse::FrameSystemConfigResponse(const FrameSystemConfigResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + FrameSystemConfigResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.frame_system_configs_){from._impl_.frame_system_configs_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.FrameSystemConfigResponse) +} + +inline void FrameSystemConfigResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.frame_system_configs_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +FrameSystemConfigResponse::~FrameSystemConfigResponse() { + // @@protoc_insertion_point(destructor:viam.robot.v1.FrameSystemConfigResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void FrameSystemConfigResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.frame_system_configs_.~RepeatedPtrField(); +} + +void FrameSystemConfigResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void FrameSystemConfigResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.FrameSystemConfigResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.frame_system_configs_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FrameSystemConfigResponse::_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) { + // repeated .viam.robot.v1.FrameSystemConfig frame_system_configs = 1 [json_name = "frameSystemConfigs"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_frame_system_configs(), 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* FrameSystemConfigResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.FrameSystemConfigResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.robot.v1.FrameSystemConfig frame_system_configs = 1 [json_name = "frameSystemConfigs"]; + for (unsigned i = 0, + n = static_cast(this->_internal_frame_system_configs_size()); i < n; i++) { + const auto& repfield = this->_internal_frame_system_configs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.FrameSystemConfigResponse) + return target; +} + +size_t FrameSystemConfigResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.FrameSystemConfigResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.robot.v1.FrameSystemConfig frame_system_configs = 1 [json_name = "frameSystemConfigs"]; + total_size += 1UL * this->_internal_frame_system_configs_size(); + for (const auto& msg : this->_impl_.frame_system_configs_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FrameSystemConfigResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + FrameSystemConfigResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FrameSystemConfigResponse::GetClassData() const { return &_class_data_; } + + +void FrameSystemConfigResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.FrameSystemConfigResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.frame_system_configs_.MergeFrom(from._impl_.frame_system_configs_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void FrameSystemConfigResponse::CopyFrom(const FrameSystemConfigResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.FrameSystemConfigResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FrameSystemConfigResponse::IsInitialized() const { + return true; +} + +void FrameSystemConfigResponse::InternalSwap(FrameSystemConfigResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.frame_system_configs_.InternalSwap(&other->_impl_.frame_system_configs_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FrameSystemConfigResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[2]); +} + +// =================================================================== + +class TransformPoseRequest::_Internal { + public: + static const ::viam::common::v1::PoseInFrame& source(const TransformPoseRequest* msg); +}; + +const ::viam::common::v1::PoseInFrame& +TransformPoseRequest::_Internal::source(const TransformPoseRequest* msg) { + return *msg->_impl_.source_; +} +void TransformPoseRequest::clear_source() { + if (GetArenaForAllocation() == nullptr && _impl_.source_ != nullptr) { + delete _impl_.source_; + } + _impl_.source_ = nullptr; +} +void TransformPoseRequest::clear_supplemental_transforms() { + _impl_.supplemental_transforms_.Clear(); +} +TransformPoseRequest::TransformPoseRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.TransformPoseRequest) +} +TransformPoseRequest::TransformPoseRequest(const TransformPoseRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + TransformPoseRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.supplemental_transforms_){from._impl_.supplemental_transforms_} + , decltype(_impl_.destination_){} + , decltype(_impl_.source_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.destination_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.destination_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_destination().empty()) { + _this->_impl_.destination_.Set(from._internal_destination(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_source()) { + _this->_impl_.source_ = new ::viam::common::v1::PoseInFrame(*from._impl_.source_); + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.TransformPoseRequest) +} + +inline void TransformPoseRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.supplemental_transforms_){arena} + , decltype(_impl_.destination_){} + , decltype(_impl_.source_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.destination_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.destination_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +TransformPoseRequest::~TransformPoseRequest() { + // @@protoc_insertion_point(destructor:viam.robot.v1.TransformPoseRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void TransformPoseRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.supplemental_transforms_.~RepeatedPtrField(); + _impl_.destination_.Destroy(); + if (this != internal_default_instance()) delete _impl_.source_; +} + +void TransformPoseRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void TransformPoseRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.TransformPoseRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.supplemental_transforms_.Clear(); + _impl_.destination_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.source_ != nullptr) { + delete _impl_.source_; + } + _impl_.source_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TransformPoseRequest::_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) { + // .viam.common.v1.PoseInFrame source = 1 [json_name = "source"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_source(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string destination = 2 [json_name = "destination"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_destination(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.TransformPoseRequest.destination")); + } else + goto handle_unusual; + continue; + // repeated .viam.common.v1.Transform supplemental_transforms = 3 [json_name = "supplementalTransforms"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_supplemental_transforms(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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* TransformPoseRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.TransformPoseRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.common.v1.PoseInFrame source = 1 [json_name = "source"]; + if (this->_internal_has_source()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::source(this), + _Internal::source(this).GetCachedSize(), target, stream); + } + + // string destination = 2 [json_name = "destination"]; + if (!this->_internal_destination().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_destination().data(), static_cast(this->_internal_destination().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.TransformPoseRequest.destination"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_destination(), target); + } + + // repeated .viam.common.v1.Transform supplemental_transforms = 3 [json_name = "supplementalTransforms"]; + for (unsigned i = 0, + n = static_cast(this->_internal_supplemental_transforms_size()); i < n; i++) { + const auto& repfield = this->_internal_supplemental_transforms(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.TransformPoseRequest) + return target; +} + +size_t TransformPoseRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.TransformPoseRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.common.v1.Transform supplemental_transforms = 3 [json_name = "supplementalTransforms"]; + total_size += 1UL * this->_internal_supplemental_transforms_size(); + for (const auto& msg : this->_impl_.supplemental_transforms_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string destination = 2 [json_name = "destination"]; + if (!this->_internal_destination().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_destination()); + } + + // .viam.common.v1.PoseInFrame source = 1 [json_name = "source"]; + if (this->_internal_has_source()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.source_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TransformPoseRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + TransformPoseRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TransformPoseRequest::GetClassData() const { return &_class_data_; } + + +void TransformPoseRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.TransformPoseRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.supplemental_transforms_.MergeFrom(from._impl_.supplemental_transforms_); + if (!from._internal_destination().empty()) { + _this->_internal_set_destination(from._internal_destination()); + } + if (from._internal_has_source()) { + _this->_internal_mutable_source()->::viam::common::v1::PoseInFrame::MergeFrom( + from._internal_source()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void TransformPoseRequest::CopyFrom(const TransformPoseRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.TransformPoseRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TransformPoseRequest::IsInitialized() const { + return true; +} + +void TransformPoseRequest::InternalSwap(TransformPoseRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.supplemental_transforms_.InternalSwap(&other->_impl_.supplemental_transforms_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.destination_, lhs_arena, + &other->_impl_.destination_, rhs_arena + ); + swap(_impl_.source_, other->_impl_.source_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TransformPoseRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[3]); +} + +// =================================================================== + +class TransformPoseResponse::_Internal { + public: + static const ::viam::common::v1::PoseInFrame& pose(const TransformPoseResponse* msg); +}; + +const ::viam::common::v1::PoseInFrame& +TransformPoseResponse::_Internal::pose(const TransformPoseResponse* msg) { + return *msg->_impl_.pose_; +} +void TransformPoseResponse::clear_pose() { + if (GetArenaForAllocation() == nullptr && _impl_.pose_ != nullptr) { + delete _impl_.pose_; + } + _impl_.pose_ = nullptr; +} +TransformPoseResponse::TransformPoseResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.TransformPoseResponse) +} +TransformPoseResponse::TransformPoseResponse(const TransformPoseResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + TransformPoseResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.pose_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_pose()) { + _this->_impl_.pose_ = new ::viam::common::v1::PoseInFrame(*from._impl_.pose_); + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.TransformPoseResponse) +} + +inline void TransformPoseResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.pose_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +TransformPoseResponse::~TransformPoseResponse() { + // @@protoc_insertion_point(destructor:viam.robot.v1.TransformPoseResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void TransformPoseResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.pose_; +} + +void TransformPoseResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void TransformPoseResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.TransformPoseResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.pose_ != nullptr) { + delete _impl_.pose_; + } + _impl_.pose_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TransformPoseResponse::_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) { + // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_pose(), 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* TransformPoseResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.TransformPoseResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; + if (this->_internal_has_pose()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::pose(this), + _Internal::pose(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.robot.v1.TransformPoseResponse) + return target; +} + +size_t TransformPoseResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.TransformPoseResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; + if (this->_internal_has_pose()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.pose_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TransformPoseResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + TransformPoseResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TransformPoseResponse::GetClassData() const { return &_class_data_; } + + +void TransformPoseResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.TransformPoseResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_pose()) { + _this->_internal_mutable_pose()->::viam::common::v1::PoseInFrame::MergeFrom( + from._internal_pose()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void TransformPoseResponse::CopyFrom(const TransformPoseResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.TransformPoseResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TransformPoseResponse::IsInitialized() const { + return true; +} + +void TransformPoseResponse::InternalSwap(TransformPoseResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.pose_, other->_impl_.pose_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TransformPoseResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[4]); +} + +// =================================================================== + +class ResourceNamesRequest::_Internal { + public: +}; + +ResourceNamesRequest::ResourceNamesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.ResourceNamesRequest) +} +ResourceNamesRequest::ResourceNamesRequest(const ResourceNamesRequest& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + ResourceNamesRequest* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.ResourceNamesRequest) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceNamesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceNamesRequest::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata ResourceNamesRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[5]); +} + +// =================================================================== + +class ResourceNamesResponse::_Internal { + public: +}; + +void ResourceNamesResponse::clear_resources() { + _impl_.resources_.Clear(); +} +ResourceNamesResponse::ResourceNamesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.ResourceNamesResponse) +} +ResourceNamesResponse::ResourceNamesResponse(const ResourceNamesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ResourceNamesResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.resources_){from._impl_.resources_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.ResourceNamesResponse) +} + +inline void ResourceNamesResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.resources_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +ResourceNamesResponse::~ResourceNamesResponse() { + // @@protoc_insertion_point(destructor:viam.robot.v1.ResourceNamesResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ResourceNamesResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.resources_.~RepeatedPtrField(); +} + +void ResourceNamesResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ResourceNamesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.ResourceNamesResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.resources_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResourceNamesResponse::_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) { + // repeated .viam.common.v1.ResourceName resources = 1 [json_name = "resources"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_resources(), 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* ResourceNamesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.ResourceNamesResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.common.v1.ResourceName resources = 1 [json_name = "resources"]; + for (unsigned i = 0, + n = static_cast(this->_internal_resources_size()); i < n; i++) { + const auto& repfield = this->_internal_resources(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.ResourceNamesResponse) + return target; +} + +size_t ResourceNamesResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.ResourceNamesResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.common.v1.ResourceName resources = 1 [json_name = "resources"]; + total_size += 1UL * this->_internal_resources_size(); + for (const auto& msg : this->_impl_.resources_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceNamesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ResourceNamesResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceNamesResponse::GetClassData() const { return &_class_data_; } + + +void ResourceNamesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.ResourceNamesResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.resources_.MergeFrom(from._impl_.resources_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ResourceNamesResponse::CopyFrom(const ResourceNamesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.ResourceNamesResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResourceNamesResponse::IsInitialized() const { + return true; +} + +void ResourceNamesResponse::InternalSwap(ResourceNamesResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.resources_.InternalSwap(&other->_impl_.resources_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ResourceNamesResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[6]); +} + +// =================================================================== + +class ResourceRPCSubtype::_Internal { + public: + static const ::viam::common::v1::ResourceName& subtype(const ResourceRPCSubtype* msg); +}; + +const ::viam::common::v1::ResourceName& +ResourceRPCSubtype::_Internal::subtype(const ResourceRPCSubtype* msg) { + return *msg->_impl_.subtype_; +} +void ResourceRPCSubtype::clear_subtype() { + if (GetArenaForAllocation() == nullptr && _impl_.subtype_ != nullptr) { + delete _impl_.subtype_; + } + _impl_.subtype_ = nullptr; +} +ResourceRPCSubtype::ResourceRPCSubtype(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.ResourceRPCSubtype) +} +ResourceRPCSubtype::ResourceRPCSubtype(const ResourceRPCSubtype& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ResourceRPCSubtype* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.proto_service_){} + , decltype(_impl_.subtype_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.proto_service_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.proto_service_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_proto_service().empty()) { + _this->_impl_.proto_service_.Set(from._internal_proto_service(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_subtype()) { + _this->_impl_.subtype_ = new ::viam::common::v1::ResourceName(*from._impl_.subtype_); + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.ResourceRPCSubtype) +} + +inline void ResourceRPCSubtype::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.proto_service_){} + , decltype(_impl_.subtype_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.proto_service_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.proto_service_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ResourceRPCSubtype::~ResourceRPCSubtype() { + // @@protoc_insertion_point(destructor:viam.robot.v1.ResourceRPCSubtype) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ResourceRPCSubtype::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.proto_service_.Destroy(); + if (this != internal_default_instance()) delete _impl_.subtype_; +} + +void ResourceRPCSubtype::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ResourceRPCSubtype::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.ResourceRPCSubtype) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.proto_service_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.subtype_ != nullptr) { + delete _impl_.subtype_; + } + _impl_.subtype_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResourceRPCSubtype::_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) { + // .viam.common.v1.ResourceName subtype = 1 [json_name = "subtype"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_subtype(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string proto_service = 2 [json_name = "protoService"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_proto_service(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.ResourceRPCSubtype.proto_service")); + } 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* ResourceRPCSubtype::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.ResourceRPCSubtype) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.common.v1.ResourceName subtype = 1 [json_name = "subtype"]; + if (this->_internal_has_subtype()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::subtype(this), + _Internal::subtype(this).GetCachedSize(), target, stream); + } + + // string proto_service = 2 [json_name = "protoService"]; + if (!this->_internal_proto_service().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_proto_service().data(), static_cast(this->_internal_proto_service().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.ResourceRPCSubtype.proto_service"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_proto_service(), 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.robot.v1.ResourceRPCSubtype) + return target; +} + +size_t ResourceRPCSubtype::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.ResourceRPCSubtype) + 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 proto_service = 2 [json_name = "protoService"]; + if (!this->_internal_proto_service().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_proto_service()); + } + + // .viam.common.v1.ResourceName subtype = 1 [json_name = "subtype"]; + if (this->_internal_has_subtype()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.subtype_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceRPCSubtype::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ResourceRPCSubtype::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceRPCSubtype::GetClassData() const { return &_class_data_; } + + +void ResourceRPCSubtype::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.ResourceRPCSubtype) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_proto_service().empty()) { + _this->_internal_set_proto_service(from._internal_proto_service()); + } + if (from._internal_has_subtype()) { + _this->_internal_mutable_subtype()->::viam::common::v1::ResourceName::MergeFrom( + from._internal_subtype()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ResourceRPCSubtype::CopyFrom(const ResourceRPCSubtype& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.ResourceRPCSubtype) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResourceRPCSubtype::IsInitialized() const { + return true; +} + +void ResourceRPCSubtype::InternalSwap(ResourceRPCSubtype* 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( + &_impl_.proto_service_, lhs_arena, + &other->_impl_.proto_service_, rhs_arena + ); + swap(_impl_.subtype_, other->_impl_.subtype_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ResourceRPCSubtype::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[7]); +} + +// =================================================================== + +class ResourceRPCSubtypesRequest::_Internal { + public: +}; + +ResourceRPCSubtypesRequest::ResourceRPCSubtypesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.ResourceRPCSubtypesRequest) +} +ResourceRPCSubtypesRequest::ResourceRPCSubtypesRequest(const ResourceRPCSubtypesRequest& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + ResourceRPCSubtypesRequest* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.ResourceRPCSubtypesRequest) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceRPCSubtypesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceRPCSubtypesRequest::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata ResourceRPCSubtypesRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[8]); +} + +// =================================================================== + +class ResourceRPCSubtypesResponse::_Internal { + public: +}; + +ResourceRPCSubtypesResponse::ResourceRPCSubtypesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.ResourceRPCSubtypesResponse) +} +ResourceRPCSubtypesResponse::ResourceRPCSubtypesResponse(const ResourceRPCSubtypesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ResourceRPCSubtypesResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.resource_rpc_subtypes_){from._impl_.resource_rpc_subtypes_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.ResourceRPCSubtypesResponse) +} + +inline void ResourceRPCSubtypesResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.resource_rpc_subtypes_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +ResourceRPCSubtypesResponse::~ResourceRPCSubtypesResponse() { + // @@protoc_insertion_point(destructor:viam.robot.v1.ResourceRPCSubtypesResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ResourceRPCSubtypesResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.resource_rpc_subtypes_.~RepeatedPtrField(); +} + +void ResourceRPCSubtypesResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ResourceRPCSubtypesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.ResourceRPCSubtypesResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.resource_rpc_subtypes_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResourceRPCSubtypesResponse::_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) { + // repeated .viam.robot.v1.ResourceRPCSubtype resource_rpc_subtypes = 1 [json_name = "resourceRpcSubtypes"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_resource_rpc_subtypes(), 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* ResourceRPCSubtypesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.ResourceRPCSubtypesResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.robot.v1.ResourceRPCSubtype resource_rpc_subtypes = 1 [json_name = "resourceRpcSubtypes"]; + for (unsigned i = 0, + n = static_cast(this->_internal_resource_rpc_subtypes_size()); i < n; i++) { + const auto& repfield = this->_internal_resource_rpc_subtypes(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.ResourceRPCSubtypesResponse) + return target; +} + +size_t ResourceRPCSubtypesResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.ResourceRPCSubtypesResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.robot.v1.ResourceRPCSubtype resource_rpc_subtypes = 1 [json_name = "resourceRpcSubtypes"]; + total_size += 1UL * this->_internal_resource_rpc_subtypes_size(); + for (const auto& msg : this->_impl_.resource_rpc_subtypes_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceRPCSubtypesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ResourceRPCSubtypesResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceRPCSubtypesResponse::GetClassData() const { return &_class_data_; } + + +void ResourceRPCSubtypesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.ResourceRPCSubtypesResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.resource_rpc_subtypes_.MergeFrom(from._impl_.resource_rpc_subtypes_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ResourceRPCSubtypesResponse::CopyFrom(const ResourceRPCSubtypesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.ResourceRPCSubtypesResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResourceRPCSubtypesResponse::IsInitialized() const { + return true; +} + +void ResourceRPCSubtypesResponse::InternalSwap(ResourceRPCSubtypesResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.resource_rpc_subtypes_.InternalSwap(&other->_impl_.resource_rpc_subtypes_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ResourceRPCSubtypesResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[9]); +} + +// =================================================================== + +class Operation::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& arguments(const Operation* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& started(const Operation* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +Operation::_Internal::arguments(const Operation* msg) { + return *msg->_impl_.arguments_; +} +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +Operation::_Internal::started(const Operation* msg) { + return *msg->_impl_.started_; +} +void Operation::clear_arguments() { + if (GetArenaForAllocation() == nullptr && _impl_.arguments_ != nullptr) { + delete _impl_.arguments_; + } + _impl_.arguments_ = nullptr; +} +void Operation::clear_started() { + if (GetArenaForAllocation() == nullptr && _impl_.started_ != nullptr) { + delete _impl_.started_; + } + _impl_.started_ = nullptr; +} +Operation::Operation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.Operation) +} +Operation::Operation(const Operation& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Operation* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.method_){} + , decltype(_impl_.arguments_){nullptr} + , decltype(_impl_.started_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + _impl_.method_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_method().empty()) { + _this->_impl_.method_.Set(from._internal_method(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_arguments()) { + _this->_impl_.arguments_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.arguments_); + } + if (from._internal_has_started()) { + _this->_impl_.started_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.started_); + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.Operation) +} + +inline void Operation::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.method_){} + , decltype(_impl_.arguments_){nullptr} + , decltype(_impl_.started_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.method_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Operation::~Operation() { + // @@protoc_insertion_point(destructor:viam.robot.v1.Operation) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Operation::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); + _impl_.method_.Destroy(); + if (this != internal_default_instance()) delete _impl_.arguments_; + if (this != internal_default_instance()) delete _impl_.started_; +} + +void Operation::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Operation::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.Operation) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _impl_.method_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.arguments_ != nullptr) { + delete _impl_.arguments_; + } + _impl_.arguments_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.started_ != nullptr) { + delete _impl_.started_; + } + _impl_.started_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Operation::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.Operation.id")); + } else + goto handle_unusual; + continue; + // string method = 2 [json_name = "method"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_method(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.Operation.method")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct arguments = 3 [json_name = "arguments"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_arguments(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp started = 4 [json_name = "started"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_started(), 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* Operation::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.Operation) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.Operation.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // string method = 2 [json_name = "method"]; + if (!this->_internal_method().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_method().data(), static_cast(this->_internal_method().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.Operation.method"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_method(), target); + } + + // .google.protobuf.Struct arguments = 3 [json_name = "arguments"]; + if (this->_internal_has_arguments()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::arguments(this), + _Internal::arguments(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Timestamp started = 4 [json_name = "started"]; + if (this->_internal_has_started()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::started(this), + _Internal::started(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.robot.v1.Operation) + return target; +} + +size_t Operation::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.Operation) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // string method = 2 [json_name = "method"]; + if (!this->_internal_method().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_method()); + } + + // .google.protobuf.Struct arguments = 3 [json_name = "arguments"]; + if (this->_internal_has_arguments()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.arguments_); + } + + // .google.protobuf.Timestamp started = 4 [json_name = "started"]; + if (this->_internal_has_started()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.started_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Operation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Operation::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Operation::GetClassData() const { return &_class_data_; } + + +void Operation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.Operation) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + if (!from._internal_method().empty()) { + _this->_internal_set_method(from._internal_method()); + } + if (from._internal_has_arguments()) { + _this->_internal_mutable_arguments()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_arguments()); + } + if (from._internal_has_started()) { + _this->_internal_mutable_started()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( + from._internal_started()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Operation::CopyFrom(const Operation& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.Operation) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Operation::IsInitialized() const { + return true; +} + +void Operation::InternalSwap(Operation* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.method_, lhs_arena, + &other->_impl_.method_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Operation, _impl_.started_) + + sizeof(Operation::_impl_.started_) + - PROTOBUF_FIELD_OFFSET(Operation, _impl_.arguments_)>( + reinterpret_cast(&_impl_.arguments_), + reinterpret_cast(&other->_impl_.arguments_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Operation::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[10]); +} + +// =================================================================== + +class GetOperationsRequest::_Internal { + public: +}; + +GetOperationsRequest::GetOperationsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetOperationsRequest) +} +GetOperationsRequest::GetOperationsRequest(const GetOperationsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + GetOperationsRequest* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetOperationsRequest) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetOperationsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetOperationsRequest::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata GetOperationsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[11]); +} + +// =================================================================== + +class GetOperationsResponse::_Internal { + public: +}; + +GetOperationsResponse::GetOperationsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetOperationsResponse) +} +GetOperationsResponse::GetOperationsResponse(const GetOperationsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetOperationsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.operations_){from._impl_.operations_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetOperationsResponse) +} + +inline void GetOperationsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.operations_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetOperationsResponse::~GetOperationsResponse() { + // @@protoc_insertion_point(destructor:viam.robot.v1.GetOperationsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetOperationsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.operations_.~RepeatedPtrField(); +} + +void GetOperationsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetOperationsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.GetOperationsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.operations_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetOperationsResponse::_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) { + // repeated .viam.robot.v1.Operation operations = 1 [json_name = "operations"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_operations(), 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* GetOperationsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.GetOperationsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.robot.v1.Operation operations = 1 [json_name = "operations"]; + for (unsigned i = 0, + n = static_cast(this->_internal_operations_size()); i < n; i++) { + const auto& repfield = this->_internal_operations(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.GetOperationsResponse) + return target; +} + +size_t GetOperationsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.GetOperationsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.robot.v1.Operation operations = 1 [json_name = "operations"]; + total_size += 1UL * this->_internal_operations_size(); + for (const auto& msg : this->_impl_.operations_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetOperationsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetOperationsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetOperationsResponse::GetClassData() const { return &_class_data_; } + + +void GetOperationsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.GetOperationsResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.operations_.MergeFrom(from._impl_.operations_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetOperationsResponse::CopyFrom(const GetOperationsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.GetOperationsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetOperationsResponse::IsInitialized() const { + return true; +} + +void GetOperationsResponse::InternalSwap(GetOperationsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.operations_.InternalSwap(&other->_impl_.operations_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetOperationsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[12]); +} + +// =================================================================== + +class CancelOperationRequest::_Internal { + public: +}; + +CancelOperationRequest::CancelOperationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.CancelOperationRequest) +} +CancelOperationRequest::CancelOperationRequest(const CancelOperationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + CancelOperationRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.CancelOperationRequest) +} + +inline void CancelOperationRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +CancelOperationRequest::~CancelOperationRequest() { + // @@protoc_insertion_point(destructor:viam.robot.v1.CancelOperationRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CancelOperationRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); +} + +void CancelOperationRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void CancelOperationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.CancelOperationRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CancelOperationRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.CancelOperationRequest.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* CancelOperationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.CancelOperationRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.CancelOperationRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_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.robot.v1.CancelOperationRequest) + return target; +} + +size_t CancelOperationRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.CancelOperationRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CancelOperationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + CancelOperationRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CancelOperationRequest::GetClassData() const { return &_class_data_; } + + +void CancelOperationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.CancelOperationRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CancelOperationRequest::CopyFrom(const CancelOperationRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.CancelOperationRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CancelOperationRequest::IsInitialized() const { + return true; +} + +void CancelOperationRequest::InternalSwap(CancelOperationRequest* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CancelOperationRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[13]); +} + +// =================================================================== + +class CancelOperationResponse::_Internal { + public: +}; + +CancelOperationResponse::CancelOperationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.CancelOperationResponse) +} +CancelOperationResponse::CancelOperationResponse(const CancelOperationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + CancelOperationResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.CancelOperationResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CancelOperationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CancelOperationResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata CancelOperationResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[14]); +} + +// =================================================================== + +class BlockForOperationRequest::_Internal { + public: +}; + +BlockForOperationRequest::BlockForOperationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.BlockForOperationRequest) +} +BlockForOperationRequest::BlockForOperationRequest(const BlockForOperationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + BlockForOperationRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.BlockForOperationRequest) +} + +inline void BlockForOperationRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +BlockForOperationRequest::~BlockForOperationRequest() { + // @@protoc_insertion_point(destructor:viam.robot.v1.BlockForOperationRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void BlockForOperationRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); +} + +void BlockForOperationRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void BlockForOperationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.BlockForOperationRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* BlockForOperationRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.BlockForOperationRequest.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* BlockForOperationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.BlockForOperationRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.BlockForOperationRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_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.robot.v1.BlockForOperationRequest) + return target; +} + +size_t BlockForOperationRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.BlockForOperationRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BlockForOperationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + BlockForOperationRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BlockForOperationRequest::GetClassData() const { return &_class_data_; } + + +void BlockForOperationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.BlockForOperationRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void BlockForOperationRequest::CopyFrom(const BlockForOperationRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.BlockForOperationRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BlockForOperationRequest::IsInitialized() const { + return true; +} + +void BlockForOperationRequest::InternalSwap(BlockForOperationRequest* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata BlockForOperationRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[15]); +} + +// =================================================================== + +class BlockForOperationResponse::_Internal { + public: +}; + +BlockForOperationResponse::BlockForOperationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.BlockForOperationResponse) +} +BlockForOperationResponse::BlockForOperationResponse(const BlockForOperationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + BlockForOperationResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.BlockForOperationResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BlockForOperationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BlockForOperationResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata BlockForOperationResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[16]); +} + +// =================================================================== + +class DiscoveryQuery::_Internal { + public: +}; + +DiscoveryQuery::DiscoveryQuery(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.DiscoveryQuery) +} +DiscoveryQuery::DiscoveryQuery(const DiscoveryQuery& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DiscoveryQuery* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.subtype_){} + , decltype(_impl_.model_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.subtype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.subtype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_subtype().empty()) { + _this->_impl_.subtype_.Set(from._internal_subtype(), + _this->GetArenaForAllocation()); + } + _impl_.model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model().empty()) { + _this->_impl_.model_.Set(from._internal_model(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.DiscoveryQuery) +} + +inline void DiscoveryQuery::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.subtype_){} + , decltype(_impl_.model_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.subtype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.subtype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +DiscoveryQuery::~DiscoveryQuery() { + // @@protoc_insertion_point(destructor:viam.robot.v1.DiscoveryQuery) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DiscoveryQuery::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.subtype_.Destroy(); + _impl_.model_.Destroy(); +} + +void DiscoveryQuery::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DiscoveryQuery::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.DiscoveryQuery) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.subtype_.ClearToEmpty(); + _impl_.model_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DiscoveryQuery::_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 subtype = 1 [json_name = "subtype"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_subtype(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.DiscoveryQuery.subtype")); + } else + goto handle_unusual; + continue; + // string model = 2 [json_name = "model"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_model(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.DiscoveryQuery.model")); + } 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* DiscoveryQuery::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.DiscoveryQuery) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string subtype = 1 [json_name = "subtype"]; + if (!this->_internal_subtype().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_subtype().data(), static_cast(this->_internal_subtype().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.DiscoveryQuery.subtype"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_subtype(), target); + } + + // string model = 2 [json_name = "model"]; + if (!this->_internal_model().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_model().data(), static_cast(this->_internal_model().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.DiscoveryQuery.model"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_model(), 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.robot.v1.DiscoveryQuery) + return target; +} + +size_t DiscoveryQuery::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.DiscoveryQuery) + 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 subtype = 1 [json_name = "subtype"]; + if (!this->_internal_subtype().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_subtype()); + } + + // string model = 2 [json_name = "model"]; + if (!this->_internal_model().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_model()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DiscoveryQuery::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DiscoveryQuery::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DiscoveryQuery::GetClassData() const { return &_class_data_; } + + +void DiscoveryQuery::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.DiscoveryQuery) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_subtype().empty()) { + _this->_internal_set_subtype(from._internal_subtype()); + } + if (!from._internal_model().empty()) { + _this->_internal_set_model(from._internal_model()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DiscoveryQuery::CopyFrom(const DiscoveryQuery& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.DiscoveryQuery) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DiscoveryQuery::IsInitialized() const { + return true; +} + +void DiscoveryQuery::InternalSwap(DiscoveryQuery* 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( + &_impl_.subtype_, lhs_arena, + &other->_impl_.subtype_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.model_, lhs_arena, + &other->_impl_.model_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DiscoveryQuery::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[17]); +} + +// =================================================================== + +class Discovery::_Internal { + public: + static const ::viam::robot::v1::DiscoveryQuery& query(const Discovery* msg); + static const ::PROTOBUF_NAMESPACE_ID::Struct& results(const Discovery* msg); +}; + +const ::viam::robot::v1::DiscoveryQuery& +Discovery::_Internal::query(const Discovery* msg) { + return *msg->_impl_.query_; +} +const ::PROTOBUF_NAMESPACE_ID::Struct& +Discovery::_Internal::results(const Discovery* msg) { + return *msg->_impl_.results_; +} +void Discovery::clear_results() { + if (GetArenaForAllocation() == nullptr && _impl_.results_ != nullptr) { + delete _impl_.results_; + } + _impl_.results_ = nullptr; +} +Discovery::Discovery(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.Discovery) +} +Discovery::Discovery(const Discovery& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Discovery* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.query_){nullptr} + , decltype(_impl_.results_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_query()) { + _this->_impl_.query_ = new ::viam::robot::v1::DiscoveryQuery(*from._impl_.query_); + } + if (from._internal_has_results()) { + _this->_impl_.results_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.results_); + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.Discovery) +} + +inline void Discovery::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.query_){nullptr} + , decltype(_impl_.results_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Discovery::~Discovery() { + // @@protoc_insertion_point(destructor:viam.robot.v1.Discovery) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Discovery::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.query_; + if (this != internal_default_instance()) delete _impl_.results_; +} + +void Discovery::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Discovery::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.Discovery) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.query_ != nullptr) { + delete _impl_.query_; + } + _impl_.query_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.results_ != nullptr) { + delete _impl_.results_; + } + _impl_.results_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Discovery::_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) { + // .viam.robot.v1.DiscoveryQuery query = 1 [json_name = "query"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_query(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct results = 2 [json_name = "results"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_results(), 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* Discovery::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.Discovery) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.robot.v1.DiscoveryQuery query = 1 [json_name = "query"]; + if (this->_internal_has_query()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::query(this), + _Internal::query(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Struct results = 2 [json_name = "results"]; + if (this->_internal_has_results()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::results(this), + _Internal::results(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.robot.v1.Discovery) + return target; +} + +size_t Discovery::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.Discovery) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.robot.v1.DiscoveryQuery query = 1 [json_name = "query"]; + if (this->_internal_has_query()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.query_); + } + + // .google.protobuf.Struct results = 2 [json_name = "results"]; + if (this->_internal_has_results()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.results_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Discovery::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Discovery::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Discovery::GetClassData() const { return &_class_data_; } + + +void Discovery::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.Discovery) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_query()) { + _this->_internal_mutable_query()->::viam::robot::v1::DiscoveryQuery::MergeFrom( + from._internal_query()); + } + if (from._internal_has_results()) { + _this->_internal_mutable_results()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_results()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Discovery::CopyFrom(const Discovery& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.Discovery) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Discovery::IsInitialized() const { + return true; +} + +void Discovery::InternalSwap(Discovery* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Discovery, _impl_.results_) + + sizeof(Discovery::_impl_.results_) + - PROTOBUF_FIELD_OFFSET(Discovery, _impl_.query_)>( + reinterpret_cast(&_impl_.query_), + reinterpret_cast(&other->_impl_.query_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Discovery::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[18]); +} + +// =================================================================== + +class DiscoverComponentsRequest::_Internal { + public: +}; + +DiscoverComponentsRequest::DiscoverComponentsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.DiscoverComponentsRequest) +} +DiscoverComponentsRequest::DiscoverComponentsRequest(const DiscoverComponentsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DiscoverComponentsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.queries_){from._impl_.queries_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.DiscoverComponentsRequest) +} + +inline void DiscoverComponentsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.queries_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +DiscoverComponentsRequest::~DiscoverComponentsRequest() { + // @@protoc_insertion_point(destructor:viam.robot.v1.DiscoverComponentsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DiscoverComponentsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.queries_.~RepeatedPtrField(); +} + +void DiscoverComponentsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DiscoverComponentsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.DiscoverComponentsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.queries_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DiscoverComponentsRequest::_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) { + // repeated .viam.robot.v1.DiscoveryQuery queries = 1 [json_name = "queries"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_queries(), 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* DiscoverComponentsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.DiscoverComponentsRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.robot.v1.DiscoveryQuery queries = 1 [json_name = "queries"]; + for (unsigned i = 0, + n = static_cast(this->_internal_queries_size()); i < n; i++) { + const auto& repfield = this->_internal_queries(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.DiscoverComponentsRequest) + return target; +} + +size_t DiscoverComponentsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.DiscoverComponentsRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.robot.v1.DiscoveryQuery queries = 1 [json_name = "queries"]; + total_size += 1UL * this->_internal_queries_size(); + for (const auto& msg : this->_impl_.queries_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DiscoverComponentsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DiscoverComponentsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DiscoverComponentsRequest::GetClassData() const { return &_class_data_; } + + +void DiscoverComponentsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.DiscoverComponentsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.queries_.MergeFrom(from._impl_.queries_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DiscoverComponentsRequest::CopyFrom(const DiscoverComponentsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.DiscoverComponentsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DiscoverComponentsRequest::IsInitialized() const { + return true; +} + +void DiscoverComponentsRequest::InternalSwap(DiscoverComponentsRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.queries_.InternalSwap(&other->_impl_.queries_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DiscoverComponentsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[19]); +} + +// =================================================================== + +class DiscoverComponentsResponse::_Internal { + public: +}; + +DiscoverComponentsResponse::DiscoverComponentsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.DiscoverComponentsResponse) +} +DiscoverComponentsResponse::DiscoverComponentsResponse(const DiscoverComponentsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DiscoverComponentsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.discovery_){from._impl_.discovery_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.DiscoverComponentsResponse) +} + +inline void DiscoverComponentsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.discovery_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +DiscoverComponentsResponse::~DiscoverComponentsResponse() { + // @@protoc_insertion_point(destructor:viam.robot.v1.DiscoverComponentsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DiscoverComponentsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.discovery_.~RepeatedPtrField(); +} + +void DiscoverComponentsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DiscoverComponentsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.DiscoverComponentsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.discovery_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DiscoverComponentsResponse::_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) { + // repeated .viam.robot.v1.Discovery discovery = 1 [json_name = "discovery"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_discovery(), 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* DiscoverComponentsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.DiscoverComponentsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.robot.v1.Discovery discovery = 1 [json_name = "discovery"]; + for (unsigned i = 0, + n = static_cast(this->_internal_discovery_size()); i < n; i++) { + const auto& repfield = this->_internal_discovery(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.DiscoverComponentsResponse) + return target; +} + +size_t DiscoverComponentsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.DiscoverComponentsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.robot.v1.Discovery discovery = 1 [json_name = "discovery"]; + total_size += 1UL * this->_internal_discovery_size(); + for (const auto& msg : this->_impl_.discovery_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DiscoverComponentsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DiscoverComponentsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DiscoverComponentsResponse::GetClassData() const { return &_class_data_; } + + +void DiscoverComponentsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.DiscoverComponentsResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.discovery_.MergeFrom(from._impl_.discovery_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DiscoverComponentsResponse::CopyFrom(const DiscoverComponentsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.DiscoverComponentsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DiscoverComponentsResponse::IsInitialized() const { + return true; +} + +void DiscoverComponentsResponse::InternalSwap(DiscoverComponentsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.discovery_.InternalSwap(&other->_impl_.discovery_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DiscoverComponentsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[20]); +} + +// =================================================================== + +class Status::_Internal { + public: + static const ::viam::common::v1::ResourceName& name(const Status* msg); + static const ::PROTOBUF_NAMESPACE_ID::Struct& status(const Status* msg); +}; + +const ::viam::common::v1::ResourceName& +Status::_Internal::name(const Status* msg) { + return *msg->_impl_.name_; +} +const ::PROTOBUF_NAMESPACE_ID::Struct& +Status::_Internal::status(const Status* msg) { + return *msg->_impl_.status_; +} +void Status::clear_name() { + if (GetArenaForAllocation() == nullptr && _impl_.name_ != nullptr) { + delete _impl_.name_; + } + _impl_.name_ = nullptr; +} +void Status::clear_status() { + if (GetArenaForAllocation() == nullptr && _impl_.status_ != nullptr) { + delete _impl_.status_; + } + _impl_.status_ = nullptr; +} +Status::Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.Status) +} +Status::Status(const Status& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Status* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){nullptr} + , decltype(_impl_.status_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_name()) { + _this->_impl_.name_ = new ::viam::common::v1::ResourceName(*from._impl_.name_); + } + if (from._internal_has_status()) { + _this->_impl_.status_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.status_); + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.Status) +} + +inline void Status::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){nullptr} + , decltype(_impl_.status_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Status::~Status() { + // @@protoc_insertion_point(destructor:viam.robot.v1.Status) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Status::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.name_; + if (this != internal_default_instance()) delete _impl_.status_; +} + +void Status::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Status::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.Status) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.name_ != nullptr) { + delete _impl_.name_; + } + _impl_.name_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.status_ != nullptr) { + delete _impl_.status_; + } + _impl_.status_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Status::_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) { + // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_name(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct status = 2 [json_name = "status"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_status(), 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* Status::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.Status) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; + if (this->_internal_has_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::name(this), + _Internal::name(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Struct status = 2 [json_name = "status"]; + if (this->_internal_has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::status(this), + _Internal::status(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.robot.v1.Status) + return target; +} + +size_t Status::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.Status) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; + if (this->_internal_has_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.name_); + } + + // .google.protobuf.Struct status = 2 [json_name = "status"]; + if (this->_internal_has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.status_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Status::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Status::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Status::GetClassData() const { return &_class_data_; } + + +void Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.Status) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_name()) { + _this->_internal_mutable_name()->::viam::common::v1::ResourceName::MergeFrom( + from._internal_name()); + } + if (from._internal_has_status()) { + _this->_internal_mutable_status()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_status()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Status::CopyFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.Status) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Status::IsInitialized() const { + return true; +} + +void Status::InternalSwap(Status* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Status, _impl_.status_) + + sizeof(Status::_impl_.status_) + - PROTOBUF_FIELD_OFFSET(Status, _impl_.name_)>( + reinterpret_cast(&_impl_.name_), + reinterpret_cast(&other->_impl_.name_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[21]); +} + +// =================================================================== + +class GetStatusRequest::_Internal { + public: +}; + +void GetStatusRequest::clear_resource_names() { + _impl_.resource_names_.Clear(); +} +GetStatusRequest::GetStatusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetStatusRequest) +} +GetStatusRequest::GetStatusRequest(const GetStatusRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetStatusRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.resource_names_){from._impl_.resource_names_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetStatusRequest) +} + +inline void GetStatusRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.resource_names_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetStatusRequest::~GetStatusRequest() { + // @@protoc_insertion_point(destructor:viam.robot.v1.GetStatusRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetStatusRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.resource_names_.~RepeatedPtrField(); +} + +void GetStatusRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetStatusRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.GetStatusRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.resource_names_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetStatusRequest::_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) { + // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_resource_names(), 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* GetStatusRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.GetStatusRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; + for (unsigned i = 0, + n = static_cast(this->_internal_resource_names_size()); i < n; i++) { + const auto& repfield = this->_internal_resource_names(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.GetStatusRequest) + return target; +} + +size_t GetStatusRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.GetStatusRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; + total_size += 1UL * this->_internal_resource_names_size(); + for (const auto& msg : this->_impl_.resource_names_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetStatusRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetStatusRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetStatusRequest::GetClassData() const { return &_class_data_; } + + +void GetStatusRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.GetStatusRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.resource_names_.MergeFrom(from._impl_.resource_names_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetStatusRequest::CopyFrom(const GetStatusRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.GetStatusRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetStatusRequest::IsInitialized() const { + return true; +} + +void GetStatusRequest::InternalSwap(GetStatusRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.resource_names_.InternalSwap(&other->_impl_.resource_names_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetStatusRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[22]); +} + +// =================================================================== + +class GetStatusResponse::_Internal { + public: +}; + +GetStatusResponse::GetStatusResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetStatusResponse) +} +GetStatusResponse::GetStatusResponse(const GetStatusResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetStatusResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.status_){from._impl_.status_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetStatusResponse) +} + +inline void GetStatusResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.status_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetStatusResponse::~GetStatusResponse() { + // @@protoc_insertion_point(destructor:viam.robot.v1.GetStatusResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetStatusResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.status_.~RepeatedPtrField(); +} + +void GetStatusResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetStatusResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.GetStatusResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.status_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetStatusResponse::_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) { + // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_status(), 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* GetStatusResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.GetStatusResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; + for (unsigned i = 0, + n = static_cast(this->_internal_status_size()); i < n; i++) { + const auto& repfield = this->_internal_status(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.GetStatusResponse) + return target; +} + +size_t GetStatusResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.GetStatusResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; + total_size += 1UL * this->_internal_status_size(); + for (const auto& msg : this->_impl_.status_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetStatusResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetStatusResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetStatusResponse::GetClassData() const { return &_class_data_; } + + +void GetStatusResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.GetStatusResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.status_.MergeFrom(from._impl_.status_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetStatusResponse::CopyFrom(const GetStatusResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.GetStatusResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetStatusResponse::IsInitialized() const { + return true; +} + +void GetStatusResponse::InternalSwap(GetStatusResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.status_.InternalSwap(&other->_impl_.status_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetStatusResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[23]); +} + +// =================================================================== + +class StreamStatusRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Duration& every(const StreamStatusRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Duration& +StreamStatusRequest::_Internal::every(const StreamStatusRequest* msg) { + return *msg->_impl_.every_; +} +void StreamStatusRequest::clear_resource_names() { + _impl_.resource_names_.Clear(); +} +void StreamStatusRequest::clear_every() { + if (GetArenaForAllocation() == nullptr && _impl_.every_ != nullptr) { + delete _impl_.every_; + } + _impl_.every_ = nullptr; +} +StreamStatusRequest::StreamStatusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.StreamStatusRequest) +} +StreamStatusRequest::StreamStatusRequest(const StreamStatusRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + StreamStatusRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.resource_names_){from._impl_.resource_names_} + , decltype(_impl_.every_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_every()) { + _this->_impl_.every_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from._impl_.every_); + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.StreamStatusRequest) +} + +inline void StreamStatusRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.resource_names_){arena} + , decltype(_impl_.every_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +StreamStatusRequest::~StreamStatusRequest() { + // @@protoc_insertion_point(destructor:viam.robot.v1.StreamStatusRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void StreamStatusRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.resource_names_.~RepeatedPtrField(); + if (this != internal_default_instance()) delete _impl_.every_; +} + +void StreamStatusRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void StreamStatusRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.StreamStatusRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.resource_names_.Clear(); + if (GetArenaForAllocation() == nullptr && _impl_.every_ != nullptr) { + delete _impl_.every_; + } + _impl_.every_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StreamStatusRequest::_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) { + // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_resource_names(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // .google.protobuf.Duration every = 2 [json_name = "every"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_every(), 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* StreamStatusRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.StreamStatusRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; + for (unsigned i = 0, + n = static_cast(this->_internal_resource_names_size()); i < n; i++) { + const auto& repfield = this->_internal_resource_names(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + // .google.protobuf.Duration every = 2 [json_name = "every"]; + if (this->_internal_has_every()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::every(this), + _Internal::every(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.robot.v1.StreamStatusRequest) + return target; +} + +size_t StreamStatusRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.StreamStatusRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; + total_size += 1UL * this->_internal_resource_names_size(); + for (const auto& msg : this->_impl_.resource_names_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // .google.protobuf.Duration every = 2 [json_name = "every"]; + if (this->_internal_has_every()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.every_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StreamStatusRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + StreamStatusRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StreamStatusRequest::GetClassData() const { return &_class_data_; } + + +void StreamStatusRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.StreamStatusRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.resource_names_.MergeFrom(from._impl_.resource_names_); + if (from._internal_has_every()) { + _this->_internal_mutable_every()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom( + from._internal_every()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void StreamStatusRequest::CopyFrom(const StreamStatusRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.StreamStatusRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StreamStatusRequest::IsInitialized() const { + return true; +} + +void StreamStatusRequest::InternalSwap(StreamStatusRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.resource_names_.InternalSwap(&other->_impl_.resource_names_); + swap(_impl_.every_, other->_impl_.every_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StreamStatusRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[24]); +} + +// =================================================================== + +class StreamStatusResponse::_Internal { + public: +}; + +StreamStatusResponse::StreamStatusResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.StreamStatusResponse) +} +StreamStatusResponse::StreamStatusResponse(const StreamStatusResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + StreamStatusResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.status_){from._impl_.status_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.StreamStatusResponse) +} + +inline void StreamStatusResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.status_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +StreamStatusResponse::~StreamStatusResponse() { + // @@protoc_insertion_point(destructor:viam.robot.v1.StreamStatusResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void StreamStatusResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.status_.~RepeatedPtrField(); +} + +void StreamStatusResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void StreamStatusResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.StreamStatusResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.status_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StreamStatusResponse::_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) { + // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_status(), 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* StreamStatusResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.StreamStatusResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; + for (unsigned i = 0, + n = static_cast(this->_internal_status_size()); i < n; i++) { + const auto& repfield = this->_internal_status(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.StreamStatusResponse) + return target; +} + +size_t StreamStatusResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.StreamStatusResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; + total_size += 1UL * this->_internal_status_size(); + for (const auto& msg : this->_impl_.status_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StreamStatusResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + StreamStatusResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StreamStatusResponse::GetClassData() const { return &_class_data_; } + + +void StreamStatusResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.StreamStatusResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.status_.MergeFrom(from._impl_.status_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void StreamStatusResponse::CopyFrom(const StreamStatusResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.StreamStatusResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StreamStatusResponse::IsInitialized() const { + return true; +} + +void StreamStatusResponse::InternalSwap(StreamStatusResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.status_.InternalSwap(&other->_impl_.status_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StreamStatusResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[25]); +} + +// =================================================================== + +class StopExtraParameters::_Internal { + public: + static const ::viam::common::v1::ResourceName& name(const StopExtraParameters* msg); + static const ::PROTOBUF_NAMESPACE_ID::Struct& params(const StopExtraParameters* msg); +}; + +const ::viam::common::v1::ResourceName& +StopExtraParameters::_Internal::name(const StopExtraParameters* msg) { + return *msg->_impl_.name_; +} +const ::PROTOBUF_NAMESPACE_ID::Struct& +StopExtraParameters::_Internal::params(const StopExtraParameters* msg) { + return *msg->_impl_.params_; +} +void StopExtraParameters::clear_name() { + if (GetArenaForAllocation() == nullptr && _impl_.name_ != nullptr) { + delete _impl_.name_; + } + _impl_.name_ = nullptr; +} +void StopExtraParameters::clear_params() { + if (GetArenaForAllocation() == nullptr && _impl_.params_ != nullptr) { + delete _impl_.params_; + } + _impl_.params_ = nullptr; +} +StopExtraParameters::StopExtraParameters(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.StopExtraParameters) +} +StopExtraParameters::StopExtraParameters(const StopExtraParameters& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + StopExtraParameters* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){nullptr} + , decltype(_impl_.params_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_name()) { + _this->_impl_.name_ = new ::viam::common::v1::ResourceName(*from._impl_.name_); + } + if (from._internal_has_params()) { + _this->_impl_.params_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.params_); + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.StopExtraParameters) +} + +inline void StopExtraParameters::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){nullptr} + , decltype(_impl_.params_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +StopExtraParameters::~StopExtraParameters() { + // @@protoc_insertion_point(destructor:viam.robot.v1.StopExtraParameters) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void StopExtraParameters::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.name_; + if (this != internal_default_instance()) delete _impl_.params_; +} + +void StopExtraParameters::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void StopExtraParameters::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.StopExtraParameters) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.name_ != nullptr) { + delete _impl_.name_; + } + _impl_.name_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.params_ != nullptr) { + delete _impl_.params_; + } + _impl_.params_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StopExtraParameters::_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) { + // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_name(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct params = 2 [json_name = "params"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_params(), 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* StopExtraParameters::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.StopExtraParameters) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; + if (this->_internal_has_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::name(this), + _Internal::name(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Struct params = 2 [json_name = "params"]; + if (this->_internal_has_params()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::params(this), + _Internal::params(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.robot.v1.StopExtraParameters) + return target; +} + +size_t StopExtraParameters::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.StopExtraParameters) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; + if (this->_internal_has_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.name_); + } + + // .google.protobuf.Struct params = 2 [json_name = "params"]; + if (this->_internal_has_params()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.params_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopExtraParameters::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + StopExtraParameters::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopExtraParameters::GetClassData() const { return &_class_data_; } + + +void StopExtraParameters::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.StopExtraParameters) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_name()) { + _this->_internal_mutable_name()->::viam::common::v1::ResourceName::MergeFrom( + from._internal_name()); + } + if (from._internal_has_params()) { + _this->_internal_mutable_params()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_params()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void StopExtraParameters::CopyFrom(const StopExtraParameters& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.StopExtraParameters) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StopExtraParameters::IsInitialized() const { + return true; +} + +void StopExtraParameters::InternalSwap(StopExtraParameters* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(StopExtraParameters, _impl_.params_) + + sizeof(StopExtraParameters::_impl_.params_) + - PROTOBUF_FIELD_OFFSET(StopExtraParameters, _impl_.name_)>( + reinterpret_cast(&_impl_.name_), + reinterpret_cast(&other->_impl_.name_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StopExtraParameters::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[26]); +} + +// =================================================================== + +class StopAllRequest::_Internal { + public: +}; + +StopAllRequest::StopAllRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.StopAllRequest) +} +StopAllRequest::StopAllRequest(const StopAllRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + StopAllRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.extra_){from._impl_.extra_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.StopAllRequest) +} + +inline void StopAllRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.extra_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +StopAllRequest::~StopAllRequest() { + // @@protoc_insertion_point(destructor:viam.robot.v1.StopAllRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void StopAllRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.extra_.~RepeatedPtrField(); +} + +void StopAllRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void StopAllRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.StopAllRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.extra_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StopAllRequest::_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) { + // repeated .viam.robot.v1.StopExtraParameters extra = 99 [json_name = "extra"]; + case 99: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 2; + do { + ptr += 2; + ptr = ctx->ParseMessage(_internal_add_extra(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<794>(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* StopAllRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.StopAllRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.robot.v1.StopExtraParameters extra = 99 [json_name = "extra"]; + for (unsigned i = 0, + n = static_cast(this->_internal_extra_size()); i < n; i++) { + const auto& repfield = this->_internal_extra(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(99, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.StopAllRequest) + return target; +} + +size_t StopAllRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.StopAllRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.robot.v1.StopExtraParameters extra = 99 [json_name = "extra"]; + total_size += 2UL * this->_internal_extra_size(); + for (const auto& msg : this->_impl_.extra_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopAllRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + StopAllRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopAllRequest::GetClassData() const { return &_class_data_; } + + +void StopAllRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.StopAllRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.extra_.MergeFrom(from._impl_.extra_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void StopAllRequest::CopyFrom(const StopAllRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.StopAllRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StopAllRequest::IsInitialized() const { + return true; +} + +void StopAllRequest::InternalSwap(StopAllRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.extra_.InternalSwap(&other->_impl_.extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StopAllRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[27]); +} + +// =================================================================== + +class StopAllResponse::_Internal { + public: +}; + +StopAllResponse::StopAllResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.StopAllResponse) +} +StopAllResponse::StopAllResponse(const StopAllResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + StopAllResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.StopAllResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopAllResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopAllResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata StopAllResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[28]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace robot +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::robot::v1::FrameSystemConfig* +Arena::CreateMaybeMessage< ::viam::robot::v1::FrameSystemConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::FrameSystemConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::FrameSystemConfigRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::FrameSystemConfigRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::FrameSystemConfigRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::FrameSystemConfigResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::FrameSystemConfigResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::FrameSystemConfigResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::TransformPoseRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::TransformPoseRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::TransformPoseRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::TransformPoseResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::TransformPoseResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::TransformPoseResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::ResourceNamesRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::ResourceNamesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::ResourceNamesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::ResourceNamesResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::ResourceNamesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::ResourceNamesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::ResourceRPCSubtype* +Arena::CreateMaybeMessage< ::viam::robot::v1::ResourceRPCSubtype >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::ResourceRPCSubtype >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::ResourceRPCSubtypesRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::ResourceRPCSubtypesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::ResourceRPCSubtypesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::ResourceRPCSubtypesResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::ResourceRPCSubtypesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::ResourceRPCSubtypesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::Operation* +Arena::CreateMaybeMessage< ::viam::robot::v1::Operation >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::Operation >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::GetOperationsRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::GetOperationsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::GetOperationsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::GetOperationsResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::GetOperationsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::GetOperationsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::CancelOperationRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::CancelOperationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::CancelOperationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::CancelOperationResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::CancelOperationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::CancelOperationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::BlockForOperationRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::BlockForOperationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::BlockForOperationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::BlockForOperationResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::BlockForOperationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::BlockForOperationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::DiscoveryQuery* +Arena::CreateMaybeMessage< ::viam::robot::v1::DiscoveryQuery >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::DiscoveryQuery >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::Discovery* +Arena::CreateMaybeMessage< ::viam::robot::v1::Discovery >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::Discovery >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::DiscoverComponentsRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::DiscoverComponentsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::DiscoverComponentsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::DiscoverComponentsResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::DiscoverComponentsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::DiscoverComponentsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::Status* +Arena::CreateMaybeMessage< ::viam::robot::v1::Status >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::Status >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::GetStatusRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::GetStatusRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::GetStatusRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::GetStatusResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::GetStatusResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::GetStatusResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::StreamStatusRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::StreamStatusRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::StreamStatusRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::StreamStatusResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::StreamStatusResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::StreamStatusResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::StopExtraParameters* +Arena::CreateMaybeMessage< ::viam::robot::v1::StopExtraParameters >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::StopExtraParameters >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::StopAllRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::StopAllRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::StopAllRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::StopAllResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::StopAllResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::StopAllResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/robot/v1/robot.pb.h b/src/gen/robot/v1/robot.pb.h new file mode 100644 index 000000000..519937cb4 --- /dev/null +++ b/src/gen/robot/v1/robot.pb.h @@ -0,0 +1,7027 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: robot/v1/robot.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_robot_2fv1_2frobot_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_robot_2fv1_2frobot_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "common/v1/common.pb.h" +#include "google/api/annotations.pb.h" +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_robot_2fv1_2frobot_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_robot_2fv1_2frobot_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_robot_2fv1_2frobot_2eproto; +namespace viam { +namespace robot { +namespace v1 { +class BlockForOperationRequest; +struct BlockForOperationRequestDefaultTypeInternal; +extern BlockForOperationRequestDefaultTypeInternal _BlockForOperationRequest_default_instance_; +class BlockForOperationResponse; +struct BlockForOperationResponseDefaultTypeInternal; +extern BlockForOperationResponseDefaultTypeInternal _BlockForOperationResponse_default_instance_; +class CancelOperationRequest; +struct CancelOperationRequestDefaultTypeInternal; +extern CancelOperationRequestDefaultTypeInternal _CancelOperationRequest_default_instance_; +class CancelOperationResponse; +struct CancelOperationResponseDefaultTypeInternal; +extern CancelOperationResponseDefaultTypeInternal _CancelOperationResponse_default_instance_; +class DiscoverComponentsRequest; +struct DiscoverComponentsRequestDefaultTypeInternal; +extern DiscoverComponentsRequestDefaultTypeInternal _DiscoverComponentsRequest_default_instance_; +class DiscoverComponentsResponse; +struct DiscoverComponentsResponseDefaultTypeInternal; +extern DiscoverComponentsResponseDefaultTypeInternal _DiscoverComponentsResponse_default_instance_; +class Discovery; +struct DiscoveryDefaultTypeInternal; +extern DiscoveryDefaultTypeInternal _Discovery_default_instance_; +class DiscoveryQuery; +struct DiscoveryQueryDefaultTypeInternal; +extern DiscoveryQueryDefaultTypeInternal _DiscoveryQuery_default_instance_; +class FrameSystemConfig; +struct FrameSystemConfigDefaultTypeInternal; +extern FrameSystemConfigDefaultTypeInternal _FrameSystemConfig_default_instance_; +class FrameSystemConfigRequest; +struct FrameSystemConfigRequestDefaultTypeInternal; +extern FrameSystemConfigRequestDefaultTypeInternal _FrameSystemConfigRequest_default_instance_; +class FrameSystemConfigResponse; +struct FrameSystemConfigResponseDefaultTypeInternal; +extern FrameSystemConfigResponseDefaultTypeInternal _FrameSystemConfigResponse_default_instance_; +class GetOperationsRequest; +struct GetOperationsRequestDefaultTypeInternal; +extern GetOperationsRequestDefaultTypeInternal _GetOperationsRequest_default_instance_; +class GetOperationsResponse; +struct GetOperationsResponseDefaultTypeInternal; +extern GetOperationsResponseDefaultTypeInternal _GetOperationsResponse_default_instance_; +class GetStatusRequest; +struct GetStatusRequestDefaultTypeInternal; +extern GetStatusRequestDefaultTypeInternal _GetStatusRequest_default_instance_; +class GetStatusResponse; +struct GetStatusResponseDefaultTypeInternal; +extern GetStatusResponseDefaultTypeInternal _GetStatusResponse_default_instance_; +class Operation; +struct OperationDefaultTypeInternal; +extern OperationDefaultTypeInternal _Operation_default_instance_; +class ResourceNamesRequest; +struct ResourceNamesRequestDefaultTypeInternal; +extern ResourceNamesRequestDefaultTypeInternal _ResourceNamesRequest_default_instance_; +class ResourceNamesResponse; +struct ResourceNamesResponseDefaultTypeInternal; +extern ResourceNamesResponseDefaultTypeInternal _ResourceNamesResponse_default_instance_; +class ResourceRPCSubtype; +struct ResourceRPCSubtypeDefaultTypeInternal; +extern ResourceRPCSubtypeDefaultTypeInternal _ResourceRPCSubtype_default_instance_; +class ResourceRPCSubtypesRequest; +struct ResourceRPCSubtypesRequestDefaultTypeInternal; +extern ResourceRPCSubtypesRequestDefaultTypeInternal _ResourceRPCSubtypesRequest_default_instance_; +class ResourceRPCSubtypesResponse; +struct ResourceRPCSubtypesResponseDefaultTypeInternal; +extern ResourceRPCSubtypesResponseDefaultTypeInternal _ResourceRPCSubtypesResponse_default_instance_; +class Status; +struct StatusDefaultTypeInternal; +extern StatusDefaultTypeInternal _Status_default_instance_; +class StopAllRequest; +struct StopAllRequestDefaultTypeInternal; +extern StopAllRequestDefaultTypeInternal _StopAllRequest_default_instance_; +class StopAllResponse; +struct StopAllResponseDefaultTypeInternal; +extern StopAllResponseDefaultTypeInternal _StopAllResponse_default_instance_; +class StopExtraParameters; +struct StopExtraParametersDefaultTypeInternal; +extern StopExtraParametersDefaultTypeInternal _StopExtraParameters_default_instance_; +class StreamStatusRequest; +struct StreamStatusRequestDefaultTypeInternal; +extern StreamStatusRequestDefaultTypeInternal _StreamStatusRequest_default_instance_; +class StreamStatusResponse; +struct StreamStatusResponseDefaultTypeInternal; +extern StreamStatusResponseDefaultTypeInternal _StreamStatusResponse_default_instance_; +class TransformPoseRequest; +struct TransformPoseRequestDefaultTypeInternal; +extern TransformPoseRequestDefaultTypeInternal _TransformPoseRequest_default_instance_; +class TransformPoseResponse; +struct TransformPoseResponseDefaultTypeInternal; +extern TransformPoseResponseDefaultTypeInternal _TransformPoseResponse_default_instance_; +} // namespace v1 +} // namespace robot +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::robot::v1::BlockForOperationRequest* Arena::CreateMaybeMessage<::viam::robot::v1::BlockForOperationRequest>(Arena*); +template<> ::viam::robot::v1::BlockForOperationResponse* Arena::CreateMaybeMessage<::viam::robot::v1::BlockForOperationResponse>(Arena*); +template<> ::viam::robot::v1::CancelOperationRequest* Arena::CreateMaybeMessage<::viam::robot::v1::CancelOperationRequest>(Arena*); +template<> ::viam::robot::v1::CancelOperationResponse* Arena::CreateMaybeMessage<::viam::robot::v1::CancelOperationResponse>(Arena*); +template<> ::viam::robot::v1::DiscoverComponentsRequest* Arena::CreateMaybeMessage<::viam::robot::v1::DiscoverComponentsRequest>(Arena*); +template<> ::viam::robot::v1::DiscoverComponentsResponse* Arena::CreateMaybeMessage<::viam::robot::v1::DiscoverComponentsResponse>(Arena*); +template<> ::viam::robot::v1::Discovery* Arena::CreateMaybeMessage<::viam::robot::v1::Discovery>(Arena*); +template<> ::viam::robot::v1::DiscoveryQuery* Arena::CreateMaybeMessage<::viam::robot::v1::DiscoveryQuery>(Arena*); +template<> ::viam::robot::v1::FrameSystemConfig* Arena::CreateMaybeMessage<::viam::robot::v1::FrameSystemConfig>(Arena*); +template<> ::viam::robot::v1::FrameSystemConfigRequest* Arena::CreateMaybeMessage<::viam::robot::v1::FrameSystemConfigRequest>(Arena*); +template<> ::viam::robot::v1::FrameSystemConfigResponse* Arena::CreateMaybeMessage<::viam::robot::v1::FrameSystemConfigResponse>(Arena*); +template<> ::viam::robot::v1::GetOperationsRequest* Arena::CreateMaybeMessage<::viam::robot::v1::GetOperationsRequest>(Arena*); +template<> ::viam::robot::v1::GetOperationsResponse* Arena::CreateMaybeMessage<::viam::robot::v1::GetOperationsResponse>(Arena*); +template<> ::viam::robot::v1::GetStatusRequest* Arena::CreateMaybeMessage<::viam::robot::v1::GetStatusRequest>(Arena*); +template<> ::viam::robot::v1::GetStatusResponse* Arena::CreateMaybeMessage<::viam::robot::v1::GetStatusResponse>(Arena*); +template<> ::viam::robot::v1::Operation* Arena::CreateMaybeMessage<::viam::robot::v1::Operation>(Arena*); +template<> ::viam::robot::v1::ResourceNamesRequest* Arena::CreateMaybeMessage<::viam::robot::v1::ResourceNamesRequest>(Arena*); +template<> ::viam::robot::v1::ResourceNamesResponse* Arena::CreateMaybeMessage<::viam::robot::v1::ResourceNamesResponse>(Arena*); +template<> ::viam::robot::v1::ResourceRPCSubtype* Arena::CreateMaybeMessage<::viam::robot::v1::ResourceRPCSubtype>(Arena*); +template<> ::viam::robot::v1::ResourceRPCSubtypesRequest* Arena::CreateMaybeMessage<::viam::robot::v1::ResourceRPCSubtypesRequest>(Arena*); +template<> ::viam::robot::v1::ResourceRPCSubtypesResponse* Arena::CreateMaybeMessage<::viam::robot::v1::ResourceRPCSubtypesResponse>(Arena*); +template<> ::viam::robot::v1::Status* Arena::CreateMaybeMessage<::viam::robot::v1::Status>(Arena*); +template<> ::viam::robot::v1::StopAllRequest* Arena::CreateMaybeMessage<::viam::robot::v1::StopAllRequest>(Arena*); +template<> ::viam::robot::v1::StopAllResponse* Arena::CreateMaybeMessage<::viam::robot::v1::StopAllResponse>(Arena*); +template<> ::viam::robot::v1::StopExtraParameters* Arena::CreateMaybeMessage<::viam::robot::v1::StopExtraParameters>(Arena*); +template<> ::viam::robot::v1::StreamStatusRequest* Arena::CreateMaybeMessage<::viam::robot::v1::StreamStatusRequest>(Arena*); +template<> ::viam::robot::v1::StreamStatusResponse* Arena::CreateMaybeMessage<::viam::robot::v1::StreamStatusResponse>(Arena*); +template<> ::viam::robot::v1::TransformPoseRequest* Arena::CreateMaybeMessage<::viam::robot::v1::TransformPoseRequest>(Arena*); +template<> ::viam::robot::v1::TransformPoseResponse* Arena::CreateMaybeMessage<::viam::robot::v1::TransformPoseResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace robot { +namespace v1 { + +// =================================================================== + +class FrameSystemConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.FrameSystemConfig) */ { + public: + inline FrameSystemConfig() : FrameSystemConfig(nullptr) {} + ~FrameSystemConfig() override; + explicit PROTOBUF_CONSTEXPR FrameSystemConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + FrameSystemConfig(const FrameSystemConfig& from); + FrameSystemConfig(FrameSystemConfig&& from) noexcept + : FrameSystemConfig() { + *this = ::std::move(from); + } + + inline FrameSystemConfig& operator=(const FrameSystemConfig& from) { + CopyFrom(from); + return *this; + } + inline FrameSystemConfig& operator=(FrameSystemConfig&& 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 FrameSystemConfig& default_instance() { + return *internal_default_instance(); + } + static inline const FrameSystemConfig* internal_default_instance() { + return reinterpret_cast( + &_FrameSystemConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(FrameSystemConfig& a, FrameSystemConfig& b) { + a.Swap(&b); + } + inline void Swap(FrameSystemConfig* 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(FrameSystemConfig* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + FrameSystemConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FrameSystemConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const FrameSystemConfig& from) { + FrameSystemConfig::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FrameSystemConfig* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.FrameSystemConfig"; + } + protected: + explicit FrameSystemConfig(::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, + kModelJsonFieldNumber = 3, + kPoseInParentFrameFieldNumber = 2, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // bytes model_json = 3 [json_name = "modelJson"]; + void clear_model_json(); + const std::string& model_json() const; + template + void set_model_json(ArgT0&& arg0, ArgT... args); + std::string* mutable_model_json(); + PROTOBUF_NODISCARD std::string* release_model_json(); + void set_allocated_model_json(std::string* model_json); + private: + const std::string& _internal_model_json() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_json(const std::string& value); + std::string* _internal_mutable_model_json(); + public: + + // .viam.common.v1.PoseInFrame pose_in_parent_frame = 2 [json_name = "poseInParentFrame"]; + bool has_pose_in_parent_frame() const; + private: + bool _internal_has_pose_in_parent_frame() const; + public: + void clear_pose_in_parent_frame(); + const ::viam::common::v1::PoseInFrame& pose_in_parent_frame() const; + PROTOBUF_NODISCARD ::viam::common::v1::PoseInFrame* release_pose_in_parent_frame(); + ::viam::common::v1::PoseInFrame* mutable_pose_in_parent_frame(); + void set_allocated_pose_in_parent_frame(::viam::common::v1::PoseInFrame* pose_in_parent_frame); + private: + const ::viam::common::v1::PoseInFrame& _internal_pose_in_parent_frame() const; + ::viam::common::v1::PoseInFrame* _internal_mutable_pose_in_parent_frame(); + public: + void unsafe_arena_set_allocated_pose_in_parent_frame( + ::viam::common::v1::PoseInFrame* pose_in_parent_frame); + ::viam::common::v1::PoseInFrame* unsafe_arena_release_pose_in_parent_frame(); + + // @@protoc_insertion_point(class_scope:viam.robot.v1.FrameSystemConfig) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_json_; + ::viam::common::v1::PoseInFrame* pose_in_parent_frame_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class FrameSystemConfigRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.FrameSystemConfigRequest) */ { + public: + inline FrameSystemConfigRequest() : FrameSystemConfigRequest(nullptr) {} + ~FrameSystemConfigRequest() override; + explicit PROTOBUF_CONSTEXPR FrameSystemConfigRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + FrameSystemConfigRequest(const FrameSystemConfigRequest& from); + FrameSystemConfigRequest(FrameSystemConfigRequest&& from) noexcept + : FrameSystemConfigRequest() { + *this = ::std::move(from); + } + + inline FrameSystemConfigRequest& operator=(const FrameSystemConfigRequest& from) { + CopyFrom(from); + return *this; + } + inline FrameSystemConfigRequest& operator=(FrameSystemConfigRequest&& 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 FrameSystemConfigRequest& default_instance() { + return *internal_default_instance(); + } + static inline const FrameSystemConfigRequest* internal_default_instance() { + return reinterpret_cast( + &_FrameSystemConfigRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(FrameSystemConfigRequest& a, FrameSystemConfigRequest& b) { + a.Swap(&b); + } + inline void Swap(FrameSystemConfigRequest* 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(FrameSystemConfigRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + FrameSystemConfigRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FrameSystemConfigRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const FrameSystemConfigRequest& from) { + FrameSystemConfigRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FrameSystemConfigRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.FrameSystemConfigRequest"; + } + protected: + explicit FrameSystemConfigRequest(::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 { + kSupplementalTransformsFieldNumber = 1, + }; + // repeated .viam.common.v1.Transform supplemental_transforms = 1 [json_name = "supplementalTransforms"]; + int supplemental_transforms_size() const; + private: + int _internal_supplemental_transforms_size() const; + public: + void clear_supplemental_transforms(); + ::viam::common::v1::Transform* mutable_supplemental_transforms(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >* + mutable_supplemental_transforms(); + private: + const ::viam::common::v1::Transform& _internal_supplemental_transforms(int index) const; + ::viam::common::v1::Transform* _internal_add_supplemental_transforms(); + public: + const ::viam::common::v1::Transform& supplemental_transforms(int index) const; + ::viam::common::v1::Transform* add_supplemental_transforms(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >& + supplemental_transforms() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.FrameSystemConfigRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform > supplemental_transforms_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class FrameSystemConfigResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.FrameSystemConfigResponse) */ { + public: + inline FrameSystemConfigResponse() : FrameSystemConfigResponse(nullptr) {} + ~FrameSystemConfigResponse() override; + explicit PROTOBUF_CONSTEXPR FrameSystemConfigResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + FrameSystemConfigResponse(const FrameSystemConfigResponse& from); + FrameSystemConfigResponse(FrameSystemConfigResponse&& from) noexcept + : FrameSystemConfigResponse() { + *this = ::std::move(from); + } + + inline FrameSystemConfigResponse& operator=(const FrameSystemConfigResponse& from) { + CopyFrom(from); + return *this; + } + inline FrameSystemConfigResponse& operator=(FrameSystemConfigResponse&& 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 FrameSystemConfigResponse& default_instance() { + return *internal_default_instance(); + } + static inline const FrameSystemConfigResponse* internal_default_instance() { + return reinterpret_cast( + &_FrameSystemConfigResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(FrameSystemConfigResponse& a, FrameSystemConfigResponse& b) { + a.Swap(&b); + } + inline void Swap(FrameSystemConfigResponse* 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(FrameSystemConfigResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + FrameSystemConfigResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FrameSystemConfigResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const FrameSystemConfigResponse& from) { + FrameSystemConfigResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FrameSystemConfigResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.FrameSystemConfigResponse"; + } + protected: + explicit FrameSystemConfigResponse(::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 { + kFrameSystemConfigsFieldNumber = 1, + }; + // repeated .viam.robot.v1.FrameSystemConfig frame_system_configs = 1 [json_name = "frameSystemConfigs"]; + int frame_system_configs_size() const; + private: + int _internal_frame_system_configs_size() const; + public: + void clear_frame_system_configs(); + ::viam::robot::v1::FrameSystemConfig* mutable_frame_system_configs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::FrameSystemConfig >* + mutable_frame_system_configs(); + private: + const ::viam::robot::v1::FrameSystemConfig& _internal_frame_system_configs(int index) const; + ::viam::robot::v1::FrameSystemConfig* _internal_add_frame_system_configs(); + public: + const ::viam::robot::v1::FrameSystemConfig& frame_system_configs(int index) const; + ::viam::robot::v1::FrameSystemConfig* add_frame_system_configs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::FrameSystemConfig >& + frame_system_configs() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.FrameSystemConfigResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::FrameSystemConfig > frame_system_configs_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class TransformPoseRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.TransformPoseRequest) */ { + public: + inline TransformPoseRequest() : TransformPoseRequest(nullptr) {} + ~TransformPoseRequest() override; + explicit PROTOBUF_CONSTEXPR TransformPoseRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + TransformPoseRequest(const TransformPoseRequest& from); + TransformPoseRequest(TransformPoseRequest&& from) noexcept + : TransformPoseRequest() { + *this = ::std::move(from); + } + + inline TransformPoseRequest& operator=(const TransformPoseRequest& from) { + CopyFrom(from); + return *this; + } + inline TransformPoseRequest& operator=(TransformPoseRequest&& 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 TransformPoseRequest& default_instance() { + return *internal_default_instance(); + } + static inline const TransformPoseRequest* internal_default_instance() { + return reinterpret_cast( + &_TransformPoseRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(TransformPoseRequest& a, TransformPoseRequest& b) { + a.Swap(&b); + } + inline void Swap(TransformPoseRequest* 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(TransformPoseRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TransformPoseRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TransformPoseRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const TransformPoseRequest& from) { + TransformPoseRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TransformPoseRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.TransformPoseRequest"; + } + protected: + explicit TransformPoseRequest(::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 { + kSupplementalTransformsFieldNumber = 3, + kDestinationFieldNumber = 2, + kSourceFieldNumber = 1, + }; + // repeated .viam.common.v1.Transform supplemental_transforms = 3 [json_name = "supplementalTransforms"]; + int supplemental_transforms_size() const; + private: + int _internal_supplemental_transforms_size() const; + public: + void clear_supplemental_transforms(); + ::viam::common::v1::Transform* mutable_supplemental_transforms(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >* + mutable_supplemental_transforms(); + private: + const ::viam::common::v1::Transform& _internal_supplemental_transforms(int index) const; + ::viam::common::v1::Transform* _internal_add_supplemental_transforms(); + public: + const ::viam::common::v1::Transform& supplemental_transforms(int index) const; + ::viam::common::v1::Transform* add_supplemental_transforms(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >& + supplemental_transforms() const; + + // string destination = 2 [json_name = "destination"]; + void clear_destination(); + const std::string& destination() const; + template + void set_destination(ArgT0&& arg0, ArgT... args); + std::string* mutable_destination(); + PROTOBUF_NODISCARD std::string* release_destination(); + void set_allocated_destination(std::string* destination); + private: + const std::string& _internal_destination() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_destination(const std::string& value); + std::string* _internal_mutable_destination(); + public: + + // .viam.common.v1.PoseInFrame source = 1 [json_name = "source"]; + bool has_source() const; + private: + bool _internal_has_source() const; + public: + void clear_source(); + const ::viam::common::v1::PoseInFrame& source() const; + PROTOBUF_NODISCARD ::viam::common::v1::PoseInFrame* release_source(); + ::viam::common::v1::PoseInFrame* mutable_source(); + void set_allocated_source(::viam::common::v1::PoseInFrame* source); + private: + const ::viam::common::v1::PoseInFrame& _internal_source() const; + ::viam::common::v1::PoseInFrame* _internal_mutable_source(); + public: + void unsafe_arena_set_allocated_source( + ::viam::common::v1::PoseInFrame* source); + ::viam::common::v1::PoseInFrame* unsafe_arena_release_source(); + + // @@protoc_insertion_point(class_scope:viam.robot.v1.TransformPoseRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform > supplemental_transforms_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr destination_; + ::viam::common::v1::PoseInFrame* source_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class TransformPoseResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.TransformPoseResponse) */ { + public: + inline TransformPoseResponse() : TransformPoseResponse(nullptr) {} + ~TransformPoseResponse() override; + explicit PROTOBUF_CONSTEXPR TransformPoseResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + TransformPoseResponse(const TransformPoseResponse& from); + TransformPoseResponse(TransformPoseResponse&& from) noexcept + : TransformPoseResponse() { + *this = ::std::move(from); + } + + inline TransformPoseResponse& operator=(const TransformPoseResponse& from) { + CopyFrom(from); + return *this; + } + inline TransformPoseResponse& operator=(TransformPoseResponse&& 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 TransformPoseResponse& default_instance() { + return *internal_default_instance(); + } + static inline const TransformPoseResponse* internal_default_instance() { + return reinterpret_cast( + &_TransformPoseResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(TransformPoseResponse& a, TransformPoseResponse& b) { + a.Swap(&b); + } + inline void Swap(TransformPoseResponse* 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(TransformPoseResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TransformPoseResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TransformPoseResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const TransformPoseResponse& from) { + TransformPoseResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TransformPoseResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.TransformPoseResponse"; + } + protected: + explicit TransformPoseResponse(::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 { + kPoseFieldNumber = 1, + }; + // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; + bool has_pose() const; + private: + bool _internal_has_pose() const; + public: + void clear_pose(); + const ::viam::common::v1::PoseInFrame& pose() const; + PROTOBUF_NODISCARD ::viam::common::v1::PoseInFrame* release_pose(); + ::viam::common::v1::PoseInFrame* mutable_pose(); + void set_allocated_pose(::viam::common::v1::PoseInFrame* pose); + private: + const ::viam::common::v1::PoseInFrame& _internal_pose() const; + ::viam::common::v1::PoseInFrame* _internal_mutable_pose(); + public: + void unsafe_arena_set_allocated_pose( + ::viam::common::v1::PoseInFrame* pose); + ::viam::common::v1::PoseInFrame* unsafe_arena_release_pose(); + + // @@protoc_insertion_point(class_scope:viam.robot.v1.TransformPoseResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::common::v1::PoseInFrame* pose_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class ResourceNamesRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.ResourceNamesRequest) */ { + public: + inline ResourceNamesRequest() : ResourceNamesRequest(nullptr) {} + explicit PROTOBUF_CONSTEXPR ResourceNamesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ResourceNamesRequest(const ResourceNamesRequest& from); + ResourceNamesRequest(ResourceNamesRequest&& from) noexcept + : ResourceNamesRequest() { + *this = ::std::move(from); + } + + inline ResourceNamesRequest& operator=(const ResourceNamesRequest& from) { + CopyFrom(from); + return *this; + } + inline ResourceNamesRequest& operator=(ResourceNamesRequest&& 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 ResourceNamesRequest& default_instance() { + return *internal_default_instance(); + } + static inline const ResourceNamesRequest* internal_default_instance() { + return reinterpret_cast( + &_ResourceNamesRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(ResourceNamesRequest& a, ResourceNamesRequest& b) { + a.Swap(&b); + } + inline void Swap(ResourceNamesRequest* 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(ResourceNamesRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ResourceNamesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ResourceNamesRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ResourceNamesRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.ResourceNamesRequest"; + } + protected: + explicit ResourceNamesRequest(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.robot.v1.ResourceNamesRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class ResourceNamesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.ResourceNamesResponse) */ { + public: + inline ResourceNamesResponse() : ResourceNamesResponse(nullptr) {} + ~ResourceNamesResponse() override; + explicit PROTOBUF_CONSTEXPR ResourceNamesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ResourceNamesResponse(const ResourceNamesResponse& from); + ResourceNamesResponse(ResourceNamesResponse&& from) noexcept + : ResourceNamesResponse() { + *this = ::std::move(from); + } + + inline ResourceNamesResponse& operator=(const ResourceNamesResponse& from) { + CopyFrom(from); + return *this; + } + inline ResourceNamesResponse& operator=(ResourceNamesResponse&& 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 ResourceNamesResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ResourceNamesResponse* internal_default_instance() { + return reinterpret_cast( + &_ResourceNamesResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(ResourceNamesResponse& a, ResourceNamesResponse& b) { + a.Swap(&b); + } + inline void Swap(ResourceNamesResponse* 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(ResourceNamesResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ResourceNamesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResourceNamesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ResourceNamesResponse& from) { + ResourceNamesResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ResourceNamesResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.ResourceNamesResponse"; + } + protected: + explicit ResourceNamesResponse(::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 { + kResourcesFieldNumber = 1, + }; + // repeated .viam.common.v1.ResourceName resources = 1 [json_name = "resources"]; + int resources_size() const; + private: + int _internal_resources_size() const; + public: + void clear_resources(); + ::viam::common::v1::ResourceName* mutable_resources(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* + mutable_resources(); + private: + const ::viam::common::v1::ResourceName& _internal_resources(int index) const; + ::viam::common::v1::ResourceName* _internal_add_resources(); + public: + const ::viam::common::v1::ResourceName& resources(int index) const; + ::viam::common::v1::ResourceName* add_resources(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& + resources() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.ResourceNamesResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName > resources_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class ResourceRPCSubtype final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.ResourceRPCSubtype) */ { + public: + inline ResourceRPCSubtype() : ResourceRPCSubtype(nullptr) {} + ~ResourceRPCSubtype() override; + explicit PROTOBUF_CONSTEXPR ResourceRPCSubtype(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ResourceRPCSubtype(const ResourceRPCSubtype& from); + ResourceRPCSubtype(ResourceRPCSubtype&& from) noexcept + : ResourceRPCSubtype() { + *this = ::std::move(from); + } + + inline ResourceRPCSubtype& operator=(const ResourceRPCSubtype& from) { + CopyFrom(from); + return *this; + } + inline ResourceRPCSubtype& operator=(ResourceRPCSubtype&& 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 ResourceRPCSubtype& default_instance() { + return *internal_default_instance(); + } + static inline const ResourceRPCSubtype* internal_default_instance() { + return reinterpret_cast( + &_ResourceRPCSubtype_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(ResourceRPCSubtype& a, ResourceRPCSubtype& b) { + a.Swap(&b); + } + inline void Swap(ResourceRPCSubtype* 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(ResourceRPCSubtype* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ResourceRPCSubtype* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResourceRPCSubtype& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ResourceRPCSubtype& from) { + ResourceRPCSubtype::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ResourceRPCSubtype* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.ResourceRPCSubtype"; + } + protected: + explicit ResourceRPCSubtype(::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 { + kProtoServiceFieldNumber = 2, + kSubtypeFieldNumber = 1, + }; + // string proto_service = 2 [json_name = "protoService"]; + void clear_proto_service(); + const std::string& proto_service() const; + template + void set_proto_service(ArgT0&& arg0, ArgT... args); + std::string* mutable_proto_service(); + PROTOBUF_NODISCARD std::string* release_proto_service(); + void set_allocated_proto_service(std::string* proto_service); + private: + const std::string& _internal_proto_service() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_proto_service(const std::string& value); + std::string* _internal_mutable_proto_service(); + public: + + // .viam.common.v1.ResourceName subtype = 1 [json_name = "subtype"]; + bool has_subtype() const; + private: + bool _internal_has_subtype() const; + public: + void clear_subtype(); + const ::viam::common::v1::ResourceName& subtype() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_subtype(); + ::viam::common::v1::ResourceName* mutable_subtype(); + void set_allocated_subtype(::viam::common::v1::ResourceName* subtype); + private: + const ::viam::common::v1::ResourceName& _internal_subtype() const; + ::viam::common::v1::ResourceName* _internal_mutable_subtype(); + public: + void unsafe_arena_set_allocated_subtype( + ::viam::common::v1::ResourceName* subtype); + ::viam::common::v1::ResourceName* unsafe_arena_release_subtype(); + + // @@protoc_insertion_point(class_scope:viam.robot.v1.ResourceRPCSubtype) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr proto_service_; + ::viam::common::v1::ResourceName* subtype_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class ResourceRPCSubtypesRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.ResourceRPCSubtypesRequest) */ { + public: + inline ResourceRPCSubtypesRequest() : ResourceRPCSubtypesRequest(nullptr) {} + explicit PROTOBUF_CONSTEXPR ResourceRPCSubtypesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ResourceRPCSubtypesRequest(const ResourceRPCSubtypesRequest& from); + ResourceRPCSubtypesRequest(ResourceRPCSubtypesRequest&& from) noexcept + : ResourceRPCSubtypesRequest() { + *this = ::std::move(from); + } + + inline ResourceRPCSubtypesRequest& operator=(const ResourceRPCSubtypesRequest& from) { + CopyFrom(from); + return *this; + } + inline ResourceRPCSubtypesRequest& operator=(ResourceRPCSubtypesRequest&& 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 ResourceRPCSubtypesRequest& default_instance() { + return *internal_default_instance(); + } + static inline const ResourceRPCSubtypesRequest* internal_default_instance() { + return reinterpret_cast( + &_ResourceRPCSubtypesRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(ResourceRPCSubtypesRequest& a, ResourceRPCSubtypesRequest& b) { + a.Swap(&b); + } + inline void Swap(ResourceRPCSubtypesRequest* 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(ResourceRPCSubtypesRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ResourceRPCSubtypesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ResourceRPCSubtypesRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ResourceRPCSubtypesRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.ResourceRPCSubtypesRequest"; + } + protected: + explicit ResourceRPCSubtypesRequest(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.robot.v1.ResourceRPCSubtypesRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class ResourceRPCSubtypesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.ResourceRPCSubtypesResponse) */ { + public: + inline ResourceRPCSubtypesResponse() : ResourceRPCSubtypesResponse(nullptr) {} + ~ResourceRPCSubtypesResponse() override; + explicit PROTOBUF_CONSTEXPR ResourceRPCSubtypesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ResourceRPCSubtypesResponse(const ResourceRPCSubtypesResponse& from); + ResourceRPCSubtypesResponse(ResourceRPCSubtypesResponse&& from) noexcept + : ResourceRPCSubtypesResponse() { + *this = ::std::move(from); + } + + inline ResourceRPCSubtypesResponse& operator=(const ResourceRPCSubtypesResponse& from) { + CopyFrom(from); + return *this; + } + inline ResourceRPCSubtypesResponse& operator=(ResourceRPCSubtypesResponse&& 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 ResourceRPCSubtypesResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ResourceRPCSubtypesResponse* internal_default_instance() { + return reinterpret_cast( + &_ResourceRPCSubtypesResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(ResourceRPCSubtypesResponse& a, ResourceRPCSubtypesResponse& b) { + a.Swap(&b); + } + inline void Swap(ResourceRPCSubtypesResponse* 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(ResourceRPCSubtypesResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ResourceRPCSubtypesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResourceRPCSubtypesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ResourceRPCSubtypesResponse& from) { + ResourceRPCSubtypesResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ResourceRPCSubtypesResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.ResourceRPCSubtypesResponse"; + } + protected: + explicit ResourceRPCSubtypesResponse(::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 { + kResourceRpcSubtypesFieldNumber = 1, + }; + // repeated .viam.robot.v1.ResourceRPCSubtype resource_rpc_subtypes = 1 [json_name = "resourceRpcSubtypes"]; + int resource_rpc_subtypes_size() const; + private: + int _internal_resource_rpc_subtypes_size() const; + public: + void clear_resource_rpc_subtypes(); + ::viam::robot::v1::ResourceRPCSubtype* mutable_resource_rpc_subtypes(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::ResourceRPCSubtype >* + mutable_resource_rpc_subtypes(); + private: + const ::viam::robot::v1::ResourceRPCSubtype& _internal_resource_rpc_subtypes(int index) const; + ::viam::robot::v1::ResourceRPCSubtype* _internal_add_resource_rpc_subtypes(); + public: + const ::viam::robot::v1::ResourceRPCSubtype& resource_rpc_subtypes(int index) const; + ::viam::robot::v1::ResourceRPCSubtype* add_resource_rpc_subtypes(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::ResourceRPCSubtype >& + resource_rpc_subtypes() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.ResourceRPCSubtypesResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::ResourceRPCSubtype > resource_rpc_subtypes_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class Operation final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.Operation) */ { + public: + inline Operation() : Operation(nullptr) {} + ~Operation() override; + explicit PROTOBUF_CONSTEXPR Operation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Operation(const Operation& from); + Operation(Operation&& from) noexcept + : Operation() { + *this = ::std::move(from); + } + + inline Operation& operator=(const Operation& from) { + CopyFrom(from); + return *this; + } + inline Operation& operator=(Operation&& 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 Operation& default_instance() { + return *internal_default_instance(); + } + static inline const Operation* internal_default_instance() { + return reinterpret_cast( + &_Operation_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(Operation& a, Operation& b) { + a.Swap(&b); + } + inline void Swap(Operation* 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(Operation* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Operation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Operation& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Operation& from) { + Operation::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Operation* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.Operation"; + } + protected: + explicit Operation(::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 { + kIdFieldNumber = 1, + kMethodFieldNumber = 2, + kArgumentsFieldNumber = 3, + kStartedFieldNumber = 4, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string method = 2 [json_name = "method"]; + void clear_method(); + const std::string& method() const; + template + void set_method(ArgT0&& arg0, ArgT... args); + std::string* mutable_method(); + PROTOBUF_NODISCARD std::string* release_method(); + void set_allocated_method(std::string* method); + private: + const std::string& _internal_method() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_method(const std::string& value); + std::string* _internal_mutable_method(); + public: + + // .google.protobuf.Struct arguments = 3 [json_name = "arguments"]; + bool has_arguments() const; + private: + bool _internal_has_arguments() const; + public: + void clear_arguments(); + const ::PROTOBUF_NAMESPACE_ID::Struct& arguments() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_arguments(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_arguments(); + void set_allocated_arguments(::PROTOBUF_NAMESPACE_ID::Struct* arguments); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_arguments() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_arguments(); + public: + void unsafe_arena_set_allocated_arguments( + ::PROTOBUF_NAMESPACE_ID::Struct* arguments); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_arguments(); + + // .google.protobuf.Timestamp started = 4 [json_name = "started"]; + bool has_started() const; + private: + bool _internal_has_started() const; + public: + void clear_started(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& started() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_started(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_started(); + void set_allocated_started(::PROTOBUF_NAMESPACE_ID::Timestamp* started); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_started() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_started(); + public: + void unsafe_arena_set_allocated_started( + ::PROTOBUF_NAMESPACE_ID::Timestamp* started); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_started(); + + // @@protoc_insertion_point(class_scope:viam.robot.v1.Operation) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr method_; + ::PROTOBUF_NAMESPACE_ID::Struct* arguments_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* started_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class GetOperationsRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetOperationsRequest) */ { + public: + inline GetOperationsRequest() : GetOperationsRequest(nullptr) {} + explicit PROTOBUF_CONSTEXPR GetOperationsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetOperationsRequest(const GetOperationsRequest& from); + GetOperationsRequest(GetOperationsRequest&& from) noexcept + : GetOperationsRequest() { + *this = ::std::move(from); + } + + inline GetOperationsRequest& operator=(const GetOperationsRequest& from) { + CopyFrom(from); + return *this; + } + inline GetOperationsRequest& operator=(GetOperationsRequest&& 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 GetOperationsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetOperationsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetOperationsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(GetOperationsRequest& a, GetOperationsRequest& b) { + a.Swap(&b); + } + inline void Swap(GetOperationsRequest* 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(GetOperationsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetOperationsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const GetOperationsRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const GetOperationsRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.GetOperationsRequest"; + } + protected: + explicit GetOperationsRequest(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetOperationsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class GetOperationsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetOperationsResponse) */ { + public: + inline GetOperationsResponse() : GetOperationsResponse(nullptr) {} + ~GetOperationsResponse() override; + explicit PROTOBUF_CONSTEXPR GetOperationsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetOperationsResponse(const GetOperationsResponse& from); + GetOperationsResponse(GetOperationsResponse&& from) noexcept + : GetOperationsResponse() { + *this = ::std::move(from); + } + + inline GetOperationsResponse& operator=(const GetOperationsResponse& from) { + CopyFrom(from); + return *this; + } + inline GetOperationsResponse& operator=(GetOperationsResponse&& 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 GetOperationsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetOperationsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetOperationsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(GetOperationsResponse& a, GetOperationsResponse& b) { + a.Swap(&b); + } + inline void Swap(GetOperationsResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (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(GetOperationsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetOperationsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetOperationsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetOperationsResponse& from) { + GetOperationsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetOperationsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.GetOperationsResponse"; + } + protected: + explicit GetOperationsResponse(::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 { + kOperationsFieldNumber = 1, + }; + // repeated .viam.robot.v1.Operation operations = 1 [json_name = "operations"]; + int operations_size() const; + private: + int _internal_operations_size() const; + public: + void clear_operations(); + ::viam::robot::v1::Operation* mutable_operations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Operation >* + mutable_operations(); + private: + const ::viam::robot::v1::Operation& _internal_operations(int index) const; + ::viam::robot::v1::Operation* _internal_add_operations(); + public: + const ::viam::robot::v1::Operation& operations(int index) const; + ::viam::robot::v1::Operation* add_operations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Operation >& + operations() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetOperationsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Operation > operations_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class CancelOperationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.CancelOperationRequest) */ { + public: + inline CancelOperationRequest() : CancelOperationRequest(nullptr) {} + ~CancelOperationRequest() override; + explicit PROTOBUF_CONSTEXPR CancelOperationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CancelOperationRequest(const CancelOperationRequest& from); + CancelOperationRequest(CancelOperationRequest&& from) noexcept + : CancelOperationRequest() { + *this = ::std::move(from); + } + + inline CancelOperationRequest& operator=(const CancelOperationRequest& from) { + CopyFrom(from); + return *this; + } + inline CancelOperationRequest& operator=(CancelOperationRequest&& 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 CancelOperationRequest& default_instance() { + return *internal_default_instance(); + } + static inline const CancelOperationRequest* internal_default_instance() { + return reinterpret_cast( + &_CancelOperationRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(CancelOperationRequest& a, CancelOperationRequest& b) { + a.Swap(&b); + } + inline void Swap(CancelOperationRequest* 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(CancelOperationRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CancelOperationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CancelOperationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const CancelOperationRequest& from) { + CancelOperationRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CancelOperationRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.CancelOperationRequest"; + } + protected: + explicit CancelOperationRequest(::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 { + kIdFieldNumber = 1, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.robot.v1.CancelOperationRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class CancelOperationResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.CancelOperationResponse) */ { + public: + inline CancelOperationResponse() : CancelOperationResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR CancelOperationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CancelOperationResponse(const CancelOperationResponse& from); + CancelOperationResponse(CancelOperationResponse&& from) noexcept + : CancelOperationResponse() { + *this = ::std::move(from); + } + + inline CancelOperationResponse& operator=(const CancelOperationResponse& from) { + CopyFrom(from); + return *this; + } + inline CancelOperationResponse& operator=(CancelOperationResponse&& 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 CancelOperationResponse& default_instance() { + return *internal_default_instance(); + } + static inline const CancelOperationResponse* internal_default_instance() { + return reinterpret_cast( + &_CancelOperationResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(CancelOperationResponse& a, CancelOperationResponse& b) { + a.Swap(&b); + } + inline void Swap(CancelOperationResponse* 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(CancelOperationResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CancelOperationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const CancelOperationResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const CancelOperationResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.CancelOperationResponse"; + } + protected: + explicit CancelOperationResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.robot.v1.CancelOperationResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class BlockForOperationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.BlockForOperationRequest) */ { + public: + inline BlockForOperationRequest() : BlockForOperationRequest(nullptr) {} + ~BlockForOperationRequest() override; + explicit PROTOBUF_CONSTEXPR BlockForOperationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + BlockForOperationRequest(const BlockForOperationRequest& from); + BlockForOperationRequest(BlockForOperationRequest&& from) noexcept + : BlockForOperationRequest() { + *this = ::std::move(from); + } + + inline BlockForOperationRequest& operator=(const BlockForOperationRequest& from) { + CopyFrom(from); + return *this; + } + inline BlockForOperationRequest& operator=(BlockForOperationRequest&& 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 BlockForOperationRequest& default_instance() { + return *internal_default_instance(); + } + static inline const BlockForOperationRequest* internal_default_instance() { + return reinterpret_cast( + &_BlockForOperationRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(BlockForOperationRequest& a, BlockForOperationRequest& b) { + a.Swap(&b); + } + inline void Swap(BlockForOperationRequest* 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(BlockForOperationRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BlockForOperationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const BlockForOperationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const BlockForOperationRequest& from) { + BlockForOperationRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BlockForOperationRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.BlockForOperationRequest"; + } + protected: + explicit BlockForOperationRequest(::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 { + kIdFieldNumber = 1, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.robot.v1.BlockForOperationRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class BlockForOperationResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.BlockForOperationResponse) */ { + public: + inline BlockForOperationResponse() : BlockForOperationResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR BlockForOperationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + BlockForOperationResponse(const BlockForOperationResponse& from); + BlockForOperationResponse(BlockForOperationResponse&& from) noexcept + : BlockForOperationResponse() { + *this = ::std::move(from); + } + + inline BlockForOperationResponse& operator=(const BlockForOperationResponse& from) { + CopyFrom(from); + return *this; + } + inline BlockForOperationResponse& operator=(BlockForOperationResponse&& 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 BlockForOperationResponse& default_instance() { + return *internal_default_instance(); + } + static inline const BlockForOperationResponse* internal_default_instance() { + return reinterpret_cast( + &_BlockForOperationResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + friend void swap(BlockForOperationResponse& a, BlockForOperationResponse& b) { + a.Swap(&b); + } + inline void Swap(BlockForOperationResponse* 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(BlockForOperationResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BlockForOperationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const BlockForOperationResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const BlockForOperationResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.BlockForOperationResponse"; + } + protected: + explicit BlockForOperationResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.robot.v1.BlockForOperationResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class DiscoveryQuery final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.DiscoveryQuery) */ { + public: + inline DiscoveryQuery() : DiscoveryQuery(nullptr) {} + ~DiscoveryQuery() override; + explicit PROTOBUF_CONSTEXPR DiscoveryQuery(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DiscoveryQuery(const DiscoveryQuery& from); + DiscoveryQuery(DiscoveryQuery&& from) noexcept + : DiscoveryQuery() { + *this = ::std::move(from); + } + + inline DiscoveryQuery& operator=(const DiscoveryQuery& from) { + CopyFrom(from); + return *this; + } + inline DiscoveryQuery& operator=(DiscoveryQuery&& from) noexcept { + if (this == &from) return *this; + if (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 DiscoveryQuery& default_instance() { + return *internal_default_instance(); + } + static inline const DiscoveryQuery* internal_default_instance() { + return reinterpret_cast( + &_DiscoveryQuery_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + friend void swap(DiscoveryQuery& a, DiscoveryQuery& b) { + a.Swap(&b); + } + inline void Swap(DiscoveryQuery* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (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(DiscoveryQuery* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DiscoveryQuery* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DiscoveryQuery& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DiscoveryQuery& from) { + DiscoveryQuery::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DiscoveryQuery* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.DiscoveryQuery"; + } + protected: + explicit DiscoveryQuery(::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 { + kSubtypeFieldNumber = 1, + kModelFieldNumber = 2, + }; + // string subtype = 1 [json_name = "subtype"]; + void clear_subtype(); + const std::string& subtype() const; + template + void set_subtype(ArgT0&& arg0, ArgT... args); + std::string* mutable_subtype(); + PROTOBUF_NODISCARD std::string* release_subtype(); + void set_allocated_subtype(std::string* subtype); + private: + const std::string& _internal_subtype() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_subtype(const std::string& value); + std::string* _internal_mutable_subtype(); + public: + + // string model = 2 [json_name = "model"]; + void clear_model(); + const std::string& model() const; + template + void set_model(ArgT0&& arg0, ArgT... args); + std::string* mutable_model(); + PROTOBUF_NODISCARD std::string* release_model(); + void set_allocated_model(std::string* model); + private: + const std::string& _internal_model() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model(const std::string& value); + std::string* _internal_mutable_model(); + public: + + // @@protoc_insertion_point(class_scope:viam.robot.v1.DiscoveryQuery) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subtype_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class Discovery final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.Discovery) */ { + public: + inline Discovery() : Discovery(nullptr) {} + ~Discovery() override; + explicit PROTOBUF_CONSTEXPR Discovery(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Discovery(const Discovery& from); + Discovery(Discovery&& from) noexcept + : Discovery() { + *this = ::std::move(from); + } + + inline Discovery& operator=(const Discovery& from) { + CopyFrom(from); + return *this; + } + inline Discovery& operator=(Discovery&& from) noexcept { + if (this == &from) return *this; + if (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 Discovery& default_instance() { + return *internal_default_instance(); + } + static inline const Discovery* internal_default_instance() { + return reinterpret_cast( + &_Discovery_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + friend void swap(Discovery& a, Discovery& b) { + a.Swap(&b); + } + inline void Swap(Discovery* 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(Discovery* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Discovery* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Discovery& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Discovery& from) { + Discovery::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Discovery* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.Discovery"; + } + protected: + explicit Discovery(::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 { + kQueryFieldNumber = 1, + kResultsFieldNumber = 2, + }; + // .viam.robot.v1.DiscoveryQuery query = 1 [json_name = "query"]; + bool has_query() const; + private: + bool _internal_has_query() const; + public: + void clear_query(); + const ::viam::robot::v1::DiscoveryQuery& query() const; + PROTOBUF_NODISCARD ::viam::robot::v1::DiscoveryQuery* release_query(); + ::viam::robot::v1::DiscoveryQuery* mutable_query(); + void set_allocated_query(::viam::robot::v1::DiscoveryQuery* query); + private: + const ::viam::robot::v1::DiscoveryQuery& _internal_query() const; + ::viam::robot::v1::DiscoveryQuery* _internal_mutable_query(); + public: + void unsafe_arena_set_allocated_query( + ::viam::robot::v1::DiscoveryQuery* query); + ::viam::robot::v1::DiscoveryQuery* unsafe_arena_release_query(); + + // .google.protobuf.Struct results = 2 [json_name = "results"]; + bool has_results() const; + private: + bool _internal_has_results() const; + public: + void clear_results(); + const ::PROTOBUF_NAMESPACE_ID::Struct& results() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_results(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_results(); + void set_allocated_results(::PROTOBUF_NAMESPACE_ID::Struct* results); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_results() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_results(); + public: + void unsafe_arena_set_allocated_results( + ::PROTOBUF_NAMESPACE_ID::Struct* results); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_results(); + + // @@protoc_insertion_point(class_scope:viam.robot.v1.Discovery) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::robot::v1::DiscoveryQuery* query_; + ::PROTOBUF_NAMESPACE_ID::Struct* results_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class DiscoverComponentsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.DiscoverComponentsRequest) */ { + public: + inline DiscoverComponentsRequest() : DiscoverComponentsRequest(nullptr) {} + ~DiscoverComponentsRequest() override; + explicit PROTOBUF_CONSTEXPR DiscoverComponentsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DiscoverComponentsRequest(const DiscoverComponentsRequest& from); + DiscoverComponentsRequest(DiscoverComponentsRequest&& from) noexcept + : DiscoverComponentsRequest() { + *this = ::std::move(from); + } + + inline DiscoverComponentsRequest& operator=(const DiscoverComponentsRequest& from) { + CopyFrom(from); + return *this; + } + inline DiscoverComponentsRequest& operator=(DiscoverComponentsRequest&& from) noexcept { + if (this == &from) return *this; + if (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 DiscoverComponentsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const DiscoverComponentsRequest* internal_default_instance() { + return reinterpret_cast( + &_DiscoverComponentsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + friend void swap(DiscoverComponentsRequest& a, DiscoverComponentsRequest& b) { + a.Swap(&b); + } + inline void Swap(DiscoverComponentsRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (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(DiscoverComponentsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DiscoverComponentsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DiscoverComponentsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DiscoverComponentsRequest& from) { + DiscoverComponentsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DiscoverComponentsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.DiscoverComponentsRequest"; + } + protected: + explicit DiscoverComponentsRequest(::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 { + kQueriesFieldNumber = 1, + }; + // repeated .viam.robot.v1.DiscoveryQuery queries = 1 [json_name = "queries"]; + int queries_size() const; + private: + int _internal_queries_size() const; + public: + void clear_queries(); + ::viam::robot::v1::DiscoveryQuery* mutable_queries(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::DiscoveryQuery >* + mutable_queries(); + private: + const ::viam::robot::v1::DiscoveryQuery& _internal_queries(int index) const; + ::viam::robot::v1::DiscoveryQuery* _internal_add_queries(); + public: + const ::viam::robot::v1::DiscoveryQuery& queries(int index) const; + ::viam::robot::v1::DiscoveryQuery* add_queries(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::DiscoveryQuery >& + queries() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.DiscoverComponentsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::DiscoveryQuery > queries_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class DiscoverComponentsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.DiscoverComponentsResponse) */ { + public: + inline DiscoverComponentsResponse() : DiscoverComponentsResponse(nullptr) {} + ~DiscoverComponentsResponse() override; + explicit PROTOBUF_CONSTEXPR DiscoverComponentsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DiscoverComponentsResponse(const DiscoverComponentsResponse& from); + DiscoverComponentsResponse(DiscoverComponentsResponse&& from) noexcept + : DiscoverComponentsResponse() { + *this = ::std::move(from); + } + + inline DiscoverComponentsResponse& operator=(const DiscoverComponentsResponse& from) { + CopyFrom(from); + return *this; + } + inline DiscoverComponentsResponse& operator=(DiscoverComponentsResponse&& 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 DiscoverComponentsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const DiscoverComponentsResponse* internal_default_instance() { + return reinterpret_cast( + &_DiscoverComponentsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + friend void swap(DiscoverComponentsResponse& a, DiscoverComponentsResponse& b) { + a.Swap(&b); + } + inline void Swap(DiscoverComponentsResponse* 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(DiscoverComponentsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DiscoverComponentsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DiscoverComponentsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DiscoverComponentsResponse& from) { + DiscoverComponentsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DiscoverComponentsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.DiscoverComponentsResponse"; + } + protected: + explicit DiscoverComponentsResponse(::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 { + kDiscoveryFieldNumber = 1, + }; + // repeated .viam.robot.v1.Discovery discovery = 1 [json_name = "discovery"]; + int discovery_size() const; + private: + int _internal_discovery_size() const; + public: + void clear_discovery(); + ::viam::robot::v1::Discovery* mutable_discovery(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Discovery >* + mutable_discovery(); + private: + const ::viam::robot::v1::Discovery& _internal_discovery(int index) const; + ::viam::robot::v1::Discovery* _internal_add_discovery(); + public: + const ::viam::robot::v1::Discovery& discovery(int index) const; + ::viam::robot::v1::Discovery* add_discovery(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Discovery >& + discovery() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.DiscoverComponentsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Discovery > discovery_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class Status final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.Status) */ { + public: + inline Status() : Status(nullptr) {} + ~Status() override; + explicit PROTOBUF_CONSTEXPR Status(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Status(const Status& from); + Status(Status&& from) noexcept + : Status() { + *this = ::std::move(from); + } + + inline Status& operator=(const Status& from) { + CopyFrom(from); + return *this; + } + inline Status& operator=(Status&& 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 Status& default_instance() { + return *internal_default_instance(); + } + static inline const Status* internal_default_instance() { + return reinterpret_cast( + &_Status_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + friend void swap(Status& a, Status& b) { + a.Swap(&b); + } + inline void Swap(Status* 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(Status* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Status& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Status& from) { + Status::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Status* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.Status"; + } + protected: + explicit Status(::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, + kStatusFieldNumber = 2, + }; + // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; + bool has_name() const; + private: + bool _internal_has_name() const; + public: + void clear_name(); + const ::viam::common::v1::ResourceName& name() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_name(); + ::viam::common::v1::ResourceName* mutable_name(); + void set_allocated_name(::viam::common::v1::ResourceName* name); + private: + const ::viam::common::v1::ResourceName& _internal_name() const; + ::viam::common::v1::ResourceName* _internal_mutable_name(); + public: + void unsafe_arena_set_allocated_name( + ::viam::common::v1::ResourceName* name); + ::viam::common::v1::ResourceName* unsafe_arena_release_name(); + + // .google.protobuf.Struct status = 2 [json_name = "status"]; + bool has_status() const; + private: + bool _internal_has_status() const; + public: + void clear_status(); + const ::PROTOBUF_NAMESPACE_ID::Struct& status() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_status(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_status(); + void set_allocated_status(::PROTOBUF_NAMESPACE_ID::Struct* status); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_status() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_status(); + public: + void unsafe_arena_set_allocated_status( + ::PROTOBUF_NAMESPACE_ID::Struct* status); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_status(); + + // @@protoc_insertion_point(class_scope:viam.robot.v1.Status) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::common::v1::ResourceName* name_; + ::PROTOBUF_NAMESPACE_ID::Struct* status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class GetStatusRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetStatusRequest) */ { + public: + inline GetStatusRequest() : GetStatusRequest(nullptr) {} + ~GetStatusRequest() override; + explicit PROTOBUF_CONSTEXPR GetStatusRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetStatusRequest(const GetStatusRequest& from); + GetStatusRequest(GetStatusRequest&& from) noexcept + : GetStatusRequest() { + *this = ::std::move(from); + } + + inline GetStatusRequest& operator=(const GetStatusRequest& from) { + CopyFrom(from); + return *this; + } + inline GetStatusRequest& operator=(GetStatusRequest&& 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 GetStatusRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetStatusRequest* internal_default_instance() { + return reinterpret_cast( + &_GetStatusRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 22; + + friend void swap(GetStatusRequest& a, GetStatusRequest& b) { + a.Swap(&b); + } + inline void Swap(GetStatusRequest* 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(GetStatusRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetStatusRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetStatusRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetStatusRequest& from) { + GetStatusRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetStatusRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.GetStatusRequest"; + } + protected: + explicit GetStatusRequest(::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 { + kResourceNamesFieldNumber = 1, + }; + // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; + int resource_names_size() const; + private: + int _internal_resource_names_size() const; + public: + void clear_resource_names(); + ::viam::common::v1::ResourceName* mutable_resource_names(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* + mutable_resource_names(); + private: + const ::viam::common::v1::ResourceName& _internal_resource_names(int index) const; + ::viam::common::v1::ResourceName* _internal_add_resource_names(); + public: + const ::viam::common::v1::ResourceName& resource_names(int index) const; + ::viam::common::v1::ResourceName* add_resource_names(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& + resource_names() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetStatusRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName > resource_names_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class GetStatusResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetStatusResponse) */ { + public: + inline GetStatusResponse() : GetStatusResponse(nullptr) {} + ~GetStatusResponse() override; + explicit PROTOBUF_CONSTEXPR GetStatusResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetStatusResponse(const GetStatusResponse& from); + GetStatusResponse(GetStatusResponse&& from) noexcept + : GetStatusResponse() { + *this = ::std::move(from); + } + + inline GetStatusResponse& operator=(const GetStatusResponse& from) { + CopyFrom(from); + return *this; + } + inline GetStatusResponse& operator=(GetStatusResponse&& 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 GetStatusResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetStatusResponse* internal_default_instance() { + return reinterpret_cast( + &_GetStatusResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 23; + + friend void swap(GetStatusResponse& a, GetStatusResponse& b) { + a.Swap(&b); + } + inline void Swap(GetStatusResponse* 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(GetStatusResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetStatusResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetStatusResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetStatusResponse& from) { + GetStatusResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetStatusResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.GetStatusResponse"; + } + protected: + explicit GetStatusResponse(::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 { + kStatusFieldNumber = 1, + }; + // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; + int status_size() const; + private: + int _internal_status_size() const; + public: + void clear_status(); + ::viam::robot::v1::Status* mutable_status(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Status >* + mutable_status(); + private: + const ::viam::robot::v1::Status& _internal_status(int index) const; + ::viam::robot::v1::Status* _internal_add_status(); + public: + const ::viam::robot::v1::Status& status(int index) const; + ::viam::robot::v1::Status* add_status(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Status >& + status() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetStatusResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Status > status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class StreamStatusRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.StreamStatusRequest) */ { + public: + inline StreamStatusRequest() : StreamStatusRequest(nullptr) {} + ~StreamStatusRequest() override; + explicit PROTOBUF_CONSTEXPR StreamStatusRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StreamStatusRequest(const StreamStatusRequest& from); + StreamStatusRequest(StreamStatusRequest&& from) noexcept + : StreamStatusRequest() { + *this = ::std::move(from); + } + + inline StreamStatusRequest& operator=(const StreamStatusRequest& from) { + CopyFrom(from); + return *this; + } + inline StreamStatusRequest& operator=(StreamStatusRequest&& 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 StreamStatusRequest& default_instance() { + return *internal_default_instance(); + } + static inline const StreamStatusRequest* internal_default_instance() { + return reinterpret_cast( + &_StreamStatusRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 24; + + friend void swap(StreamStatusRequest& a, StreamStatusRequest& b) { + a.Swap(&b); + } + inline void Swap(StreamStatusRequest* 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(StreamStatusRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StreamStatusRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StreamStatusRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const StreamStatusRequest& from) { + StreamStatusRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StreamStatusRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.StreamStatusRequest"; + } + protected: + explicit StreamStatusRequest(::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 { + kResourceNamesFieldNumber = 1, + kEveryFieldNumber = 2, + }; + // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; + int resource_names_size() const; + private: + int _internal_resource_names_size() const; + public: + void clear_resource_names(); + ::viam::common::v1::ResourceName* mutable_resource_names(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* + mutable_resource_names(); + private: + const ::viam::common::v1::ResourceName& _internal_resource_names(int index) const; + ::viam::common::v1::ResourceName* _internal_add_resource_names(); + public: + const ::viam::common::v1::ResourceName& resource_names(int index) const; + ::viam::common::v1::ResourceName* add_resource_names(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& + resource_names() const; + + // .google.protobuf.Duration every = 2 [json_name = "every"]; + bool has_every() const; + private: + bool _internal_has_every() const; + public: + void clear_every(); + const ::PROTOBUF_NAMESPACE_ID::Duration& every() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_every(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_every(); + void set_allocated_every(::PROTOBUF_NAMESPACE_ID::Duration* every); + private: + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_every() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_every(); + public: + void unsafe_arena_set_allocated_every( + ::PROTOBUF_NAMESPACE_ID::Duration* every); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_every(); + + // @@protoc_insertion_point(class_scope:viam.robot.v1.StreamStatusRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName > resource_names_; + ::PROTOBUF_NAMESPACE_ID::Duration* every_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class StreamStatusResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.StreamStatusResponse) */ { + public: + inline StreamStatusResponse() : StreamStatusResponse(nullptr) {} + ~StreamStatusResponse() override; + explicit PROTOBUF_CONSTEXPR StreamStatusResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StreamStatusResponse(const StreamStatusResponse& from); + StreamStatusResponse(StreamStatusResponse&& from) noexcept + : StreamStatusResponse() { + *this = ::std::move(from); + } + + inline StreamStatusResponse& operator=(const StreamStatusResponse& from) { + CopyFrom(from); + return *this; + } + inline StreamStatusResponse& operator=(StreamStatusResponse&& 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 StreamStatusResponse& default_instance() { + return *internal_default_instance(); + } + static inline const StreamStatusResponse* internal_default_instance() { + return reinterpret_cast( + &_StreamStatusResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 25; + + friend void swap(StreamStatusResponse& a, StreamStatusResponse& b) { + a.Swap(&b); + } + inline void Swap(StreamStatusResponse* 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(StreamStatusResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StreamStatusResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StreamStatusResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const StreamStatusResponse& from) { + StreamStatusResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StreamStatusResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.StreamStatusResponse"; + } + protected: + explicit StreamStatusResponse(::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 { + kStatusFieldNumber = 1, + }; + // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; + int status_size() const; + private: + int _internal_status_size() const; + public: + void clear_status(); + ::viam::robot::v1::Status* mutable_status(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Status >* + mutable_status(); + private: + const ::viam::robot::v1::Status& _internal_status(int index) const; + ::viam::robot::v1::Status* _internal_add_status(); + public: + const ::viam::robot::v1::Status& status(int index) const; + ::viam::robot::v1::Status* add_status(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Status >& + status() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.StreamStatusResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Status > status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class StopExtraParameters final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.StopExtraParameters) */ { + public: + inline StopExtraParameters() : StopExtraParameters(nullptr) {} + ~StopExtraParameters() override; + explicit PROTOBUF_CONSTEXPR StopExtraParameters(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StopExtraParameters(const StopExtraParameters& from); + StopExtraParameters(StopExtraParameters&& from) noexcept + : StopExtraParameters() { + *this = ::std::move(from); + } + + inline StopExtraParameters& operator=(const StopExtraParameters& from) { + CopyFrom(from); + return *this; + } + inline StopExtraParameters& operator=(StopExtraParameters&& 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 StopExtraParameters& default_instance() { + return *internal_default_instance(); + } + static inline const StopExtraParameters* internal_default_instance() { + return reinterpret_cast( + &_StopExtraParameters_default_instance_); + } + static constexpr int kIndexInFileMessages = + 26; + + friend void swap(StopExtraParameters& a, StopExtraParameters& b) { + a.Swap(&b); + } + inline void Swap(StopExtraParameters* 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(StopExtraParameters* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StopExtraParameters* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StopExtraParameters& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const StopExtraParameters& from) { + StopExtraParameters::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StopExtraParameters* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.StopExtraParameters"; + } + protected: + explicit StopExtraParameters(::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, + kParamsFieldNumber = 2, + }; + // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; + bool has_name() const; + private: + bool _internal_has_name() const; + public: + void clear_name(); + const ::viam::common::v1::ResourceName& name() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_name(); + ::viam::common::v1::ResourceName* mutable_name(); + void set_allocated_name(::viam::common::v1::ResourceName* name); + private: + const ::viam::common::v1::ResourceName& _internal_name() const; + ::viam::common::v1::ResourceName* _internal_mutable_name(); + public: + void unsafe_arena_set_allocated_name( + ::viam::common::v1::ResourceName* name); + ::viam::common::v1::ResourceName* unsafe_arena_release_name(); + + // .google.protobuf.Struct params = 2 [json_name = "params"]; + bool has_params() const; + private: + bool _internal_has_params() const; + public: + void clear_params(); + const ::PROTOBUF_NAMESPACE_ID::Struct& params() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_params(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_params(); + void set_allocated_params(::PROTOBUF_NAMESPACE_ID::Struct* params); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_params() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_params(); + public: + void unsafe_arena_set_allocated_params( + ::PROTOBUF_NAMESPACE_ID::Struct* params); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_params(); + + // @@protoc_insertion_point(class_scope:viam.robot.v1.StopExtraParameters) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::common::v1::ResourceName* name_; + ::PROTOBUF_NAMESPACE_ID::Struct* params_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class StopAllRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.StopAllRequest) */ { + public: + inline StopAllRequest() : StopAllRequest(nullptr) {} + ~StopAllRequest() override; + explicit PROTOBUF_CONSTEXPR StopAllRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StopAllRequest(const StopAllRequest& from); + StopAllRequest(StopAllRequest&& from) noexcept + : StopAllRequest() { + *this = ::std::move(from); + } + + inline StopAllRequest& operator=(const StopAllRequest& from) { + CopyFrom(from); + return *this; + } + inline StopAllRequest& operator=(StopAllRequest&& 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 StopAllRequest& default_instance() { + return *internal_default_instance(); + } + static inline const StopAllRequest* internal_default_instance() { + return reinterpret_cast( + &_StopAllRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 27; + + friend void swap(StopAllRequest& a, StopAllRequest& b) { + a.Swap(&b); + } + inline void Swap(StopAllRequest* 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(StopAllRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StopAllRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StopAllRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const StopAllRequest& from) { + StopAllRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StopAllRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.StopAllRequest"; + } + protected: + explicit StopAllRequest(::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 { + kExtraFieldNumber = 99, + }; + // repeated .viam.robot.v1.StopExtraParameters extra = 99 [json_name = "extra"]; + int extra_size() const; + private: + int _internal_extra_size() const; + public: + void clear_extra(); + ::viam::robot::v1::StopExtraParameters* mutable_extra(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::StopExtraParameters >* + mutable_extra(); + private: + const ::viam::robot::v1::StopExtraParameters& _internal_extra(int index) const; + ::viam::robot::v1::StopExtraParameters* _internal_add_extra(); + public: + const ::viam::robot::v1::StopExtraParameters& extra(int index) const; + ::viam::robot::v1::StopExtraParameters* add_extra(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::StopExtraParameters >& + extra() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.StopAllRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::StopExtraParameters > extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class StopAllResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.StopAllResponse) */ { + public: + inline StopAllResponse() : StopAllResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR StopAllResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StopAllResponse(const StopAllResponse& from); + StopAllResponse(StopAllResponse&& from) noexcept + : StopAllResponse() { + *this = ::std::move(from); + } + + inline StopAllResponse& operator=(const StopAllResponse& from) { + CopyFrom(from); + return *this; + } + inline StopAllResponse& operator=(StopAllResponse&& 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 StopAllResponse& default_instance() { + return *internal_default_instance(); + } + static inline const StopAllResponse* internal_default_instance() { + return reinterpret_cast( + &_StopAllResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 28; + + friend void swap(StopAllResponse& a, StopAllResponse& b) { + a.Swap(&b); + } + inline void Swap(StopAllResponse* 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(StopAllResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StopAllResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const StopAllResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const StopAllResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.StopAllResponse"; + } + protected: + explicit StopAllResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.robot.v1.StopAllResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// FrameSystemConfig + +// string name = 1 [json_name = "name"]; +inline void FrameSystemConfig::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& FrameSystemConfig::name() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.FrameSystemConfig.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void FrameSystemConfig::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.FrameSystemConfig.name) +} +inline std::string* FrameSystemConfig::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.FrameSystemConfig.name) + return _s; +} +inline const std::string& FrameSystemConfig::_internal_name() const { + return _impl_.name_.Get(); +} +inline void FrameSystemConfig::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* FrameSystemConfig::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* FrameSystemConfig::release_name() { + // @@protoc_insertion_point(field_release:viam.robot.v1.FrameSystemConfig.name) + return _impl_.name_.Release(); +} +inline void FrameSystemConfig::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.FrameSystemConfig.name) +} + +// .viam.common.v1.PoseInFrame pose_in_parent_frame = 2 [json_name = "poseInParentFrame"]; +inline bool FrameSystemConfig::_internal_has_pose_in_parent_frame() const { + return this != internal_default_instance() && _impl_.pose_in_parent_frame_ != nullptr; +} +inline bool FrameSystemConfig::has_pose_in_parent_frame() const { + return _internal_has_pose_in_parent_frame(); +} +inline const ::viam::common::v1::PoseInFrame& FrameSystemConfig::_internal_pose_in_parent_frame() const { + const ::viam::common::v1::PoseInFrame* p = _impl_.pose_in_parent_frame_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_PoseInFrame_default_instance_); +} +inline const ::viam::common::v1::PoseInFrame& FrameSystemConfig::pose_in_parent_frame() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.FrameSystemConfig.pose_in_parent_frame) + return _internal_pose_in_parent_frame(); +} +inline void FrameSystemConfig::unsafe_arena_set_allocated_pose_in_parent_frame( + ::viam::common::v1::PoseInFrame* pose_in_parent_frame) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pose_in_parent_frame_); + } + _impl_.pose_in_parent_frame_ = pose_in_parent_frame; + if (pose_in_parent_frame) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.FrameSystemConfig.pose_in_parent_frame) +} +inline ::viam::common::v1::PoseInFrame* FrameSystemConfig::release_pose_in_parent_frame() { + + ::viam::common::v1::PoseInFrame* temp = _impl_.pose_in_parent_frame_; + _impl_.pose_in_parent_frame_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::PoseInFrame* FrameSystemConfig::unsafe_arena_release_pose_in_parent_frame() { + // @@protoc_insertion_point(field_release:viam.robot.v1.FrameSystemConfig.pose_in_parent_frame) + + ::viam::common::v1::PoseInFrame* temp = _impl_.pose_in_parent_frame_; + _impl_.pose_in_parent_frame_ = nullptr; + return temp; +} +inline ::viam::common::v1::PoseInFrame* FrameSystemConfig::_internal_mutable_pose_in_parent_frame() { + + if (_impl_.pose_in_parent_frame_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::PoseInFrame>(GetArenaForAllocation()); + _impl_.pose_in_parent_frame_ = p; + } + return _impl_.pose_in_parent_frame_; +} +inline ::viam::common::v1::PoseInFrame* FrameSystemConfig::mutable_pose_in_parent_frame() { + ::viam::common::v1::PoseInFrame* _msg = _internal_mutable_pose_in_parent_frame(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.FrameSystemConfig.pose_in_parent_frame) + return _msg; +} +inline void FrameSystemConfig::set_allocated_pose_in_parent_frame(::viam::common::v1::PoseInFrame* pose_in_parent_frame) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pose_in_parent_frame_); + } + if (pose_in_parent_frame) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose_in_parent_frame)); + if (message_arena != submessage_arena) { + pose_in_parent_frame = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, pose_in_parent_frame, submessage_arena); + } + + } else { + + } + _impl_.pose_in_parent_frame_ = pose_in_parent_frame; + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.FrameSystemConfig.pose_in_parent_frame) +} + +// bytes model_json = 3 [json_name = "modelJson"]; +inline void FrameSystemConfig::clear_model_json() { + _impl_.model_json_.ClearToEmpty(); +} +inline const std::string& FrameSystemConfig::model_json() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.FrameSystemConfig.model_json) + return _internal_model_json(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void FrameSystemConfig::set_model_json(ArgT0&& arg0, ArgT... args) { + + _impl_.model_json_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.FrameSystemConfig.model_json) +} +inline std::string* FrameSystemConfig::mutable_model_json() { + std::string* _s = _internal_mutable_model_json(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.FrameSystemConfig.model_json) + return _s; +} +inline const std::string& FrameSystemConfig::_internal_model_json() const { + return _impl_.model_json_.Get(); +} +inline void FrameSystemConfig::_internal_set_model_json(const std::string& value) { + + _impl_.model_json_.Set(value, GetArenaForAllocation()); +} +inline std::string* FrameSystemConfig::_internal_mutable_model_json() { + + return _impl_.model_json_.Mutable(GetArenaForAllocation()); +} +inline std::string* FrameSystemConfig::release_model_json() { + // @@protoc_insertion_point(field_release:viam.robot.v1.FrameSystemConfig.model_json) + return _impl_.model_json_.Release(); +} +inline void FrameSystemConfig::set_allocated_model_json(std::string* model_json) { + if (model_json != nullptr) { + + } else { + + } + _impl_.model_json_.SetAllocated(model_json, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.model_json_.IsDefault()) { + _impl_.model_json_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.FrameSystemConfig.model_json) +} + +// ------------------------------------------------------------------- + +// FrameSystemConfigRequest + +// repeated .viam.common.v1.Transform supplemental_transforms = 1 [json_name = "supplementalTransforms"]; +inline int FrameSystemConfigRequest::_internal_supplemental_transforms_size() const { + return _impl_.supplemental_transforms_.size(); +} +inline int FrameSystemConfigRequest::supplemental_transforms_size() const { + return _internal_supplemental_transforms_size(); +} +inline ::viam::common::v1::Transform* FrameSystemConfigRequest::mutable_supplemental_transforms(int index) { + // @@protoc_insertion_point(field_mutable:viam.robot.v1.FrameSystemConfigRequest.supplemental_transforms) + return _impl_.supplemental_transforms_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >* +FrameSystemConfigRequest::mutable_supplemental_transforms() { + // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.FrameSystemConfigRequest.supplemental_transforms) + return &_impl_.supplemental_transforms_; +} +inline const ::viam::common::v1::Transform& FrameSystemConfigRequest::_internal_supplemental_transforms(int index) const { + return _impl_.supplemental_transforms_.Get(index); +} +inline const ::viam::common::v1::Transform& FrameSystemConfigRequest::supplemental_transforms(int index) const { + // @@protoc_insertion_point(field_get:viam.robot.v1.FrameSystemConfigRequest.supplemental_transforms) + return _internal_supplemental_transforms(index); +} +inline ::viam::common::v1::Transform* FrameSystemConfigRequest::_internal_add_supplemental_transforms() { + return _impl_.supplemental_transforms_.Add(); +} +inline ::viam::common::v1::Transform* FrameSystemConfigRequest::add_supplemental_transforms() { + ::viam::common::v1::Transform* _add = _internal_add_supplemental_transforms(); + // @@protoc_insertion_point(field_add:viam.robot.v1.FrameSystemConfigRequest.supplemental_transforms) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >& +FrameSystemConfigRequest::supplemental_transforms() const { + // @@protoc_insertion_point(field_list:viam.robot.v1.FrameSystemConfigRequest.supplemental_transforms) + return _impl_.supplemental_transforms_; +} + +// ------------------------------------------------------------------- + +// FrameSystemConfigResponse + +// repeated .viam.robot.v1.FrameSystemConfig frame_system_configs = 1 [json_name = "frameSystemConfigs"]; +inline int FrameSystemConfigResponse::_internal_frame_system_configs_size() const { + return _impl_.frame_system_configs_.size(); +} +inline int FrameSystemConfigResponse::frame_system_configs_size() const { + return _internal_frame_system_configs_size(); +} +inline void FrameSystemConfigResponse::clear_frame_system_configs() { + _impl_.frame_system_configs_.Clear(); +} +inline ::viam::robot::v1::FrameSystemConfig* FrameSystemConfigResponse::mutable_frame_system_configs(int index) { + // @@protoc_insertion_point(field_mutable:viam.robot.v1.FrameSystemConfigResponse.frame_system_configs) + return _impl_.frame_system_configs_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::FrameSystemConfig >* +FrameSystemConfigResponse::mutable_frame_system_configs() { + // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.FrameSystemConfigResponse.frame_system_configs) + return &_impl_.frame_system_configs_; +} +inline const ::viam::robot::v1::FrameSystemConfig& FrameSystemConfigResponse::_internal_frame_system_configs(int index) const { + return _impl_.frame_system_configs_.Get(index); +} +inline const ::viam::robot::v1::FrameSystemConfig& FrameSystemConfigResponse::frame_system_configs(int index) const { + // @@protoc_insertion_point(field_get:viam.robot.v1.FrameSystemConfigResponse.frame_system_configs) + return _internal_frame_system_configs(index); +} +inline ::viam::robot::v1::FrameSystemConfig* FrameSystemConfigResponse::_internal_add_frame_system_configs() { + return _impl_.frame_system_configs_.Add(); +} +inline ::viam::robot::v1::FrameSystemConfig* FrameSystemConfigResponse::add_frame_system_configs() { + ::viam::robot::v1::FrameSystemConfig* _add = _internal_add_frame_system_configs(); + // @@protoc_insertion_point(field_add:viam.robot.v1.FrameSystemConfigResponse.frame_system_configs) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::FrameSystemConfig >& +FrameSystemConfigResponse::frame_system_configs() const { + // @@protoc_insertion_point(field_list:viam.robot.v1.FrameSystemConfigResponse.frame_system_configs) + return _impl_.frame_system_configs_; +} + +// ------------------------------------------------------------------- + +// TransformPoseRequest + +// .viam.common.v1.PoseInFrame source = 1 [json_name = "source"]; +inline bool TransformPoseRequest::_internal_has_source() const { + return this != internal_default_instance() && _impl_.source_ != nullptr; +} +inline bool TransformPoseRequest::has_source() const { + return _internal_has_source(); +} +inline const ::viam::common::v1::PoseInFrame& TransformPoseRequest::_internal_source() const { + const ::viam::common::v1::PoseInFrame* p = _impl_.source_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_PoseInFrame_default_instance_); +} +inline const ::viam::common::v1::PoseInFrame& TransformPoseRequest::source() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.TransformPoseRequest.source) + return _internal_source(); +} +inline void TransformPoseRequest::unsafe_arena_set_allocated_source( + ::viam::common::v1::PoseInFrame* source) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.source_); + } + _impl_.source_ = source; + if (source) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.TransformPoseRequest.source) +} +inline ::viam::common::v1::PoseInFrame* TransformPoseRequest::release_source() { + + ::viam::common::v1::PoseInFrame* temp = _impl_.source_; + _impl_.source_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::PoseInFrame* TransformPoseRequest::unsafe_arena_release_source() { + // @@protoc_insertion_point(field_release:viam.robot.v1.TransformPoseRequest.source) + + ::viam::common::v1::PoseInFrame* temp = _impl_.source_; + _impl_.source_ = nullptr; + return temp; +} +inline ::viam::common::v1::PoseInFrame* TransformPoseRequest::_internal_mutable_source() { + + if (_impl_.source_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::PoseInFrame>(GetArenaForAllocation()); + _impl_.source_ = p; + } + return _impl_.source_; +} +inline ::viam::common::v1::PoseInFrame* TransformPoseRequest::mutable_source() { + ::viam::common::v1::PoseInFrame* _msg = _internal_mutable_source(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.TransformPoseRequest.source) + return _msg; +} +inline void TransformPoseRequest::set_allocated_source(::viam::common::v1::PoseInFrame* source) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.source_); + } + if (source) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(source)); + if (message_arena != submessage_arena) { + source = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, source, submessage_arena); + } + + } else { + + } + _impl_.source_ = source; + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.TransformPoseRequest.source) +} + +// string destination = 2 [json_name = "destination"]; +inline void TransformPoseRequest::clear_destination() { + _impl_.destination_.ClearToEmpty(); +} +inline const std::string& TransformPoseRequest::destination() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.TransformPoseRequest.destination) + return _internal_destination(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TransformPoseRequest::set_destination(ArgT0&& arg0, ArgT... args) { + + _impl_.destination_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.TransformPoseRequest.destination) +} +inline std::string* TransformPoseRequest::mutable_destination() { + std::string* _s = _internal_mutable_destination(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.TransformPoseRequest.destination) + return _s; +} +inline const std::string& TransformPoseRequest::_internal_destination() const { + return _impl_.destination_.Get(); +} +inline void TransformPoseRequest::_internal_set_destination(const std::string& value) { + + _impl_.destination_.Set(value, GetArenaForAllocation()); +} +inline std::string* TransformPoseRequest::_internal_mutable_destination() { + + return _impl_.destination_.Mutable(GetArenaForAllocation()); +} +inline std::string* TransformPoseRequest::release_destination() { + // @@protoc_insertion_point(field_release:viam.robot.v1.TransformPoseRequest.destination) + return _impl_.destination_.Release(); +} +inline void TransformPoseRequest::set_allocated_destination(std::string* destination) { + if (destination != nullptr) { + + } else { + + } + _impl_.destination_.SetAllocated(destination, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.destination_.IsDefault()) { + _impl_.destination_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.TransformPoseRequest.destination) +} + +// repeated .viam.common.v1.Transform supplemental_transforms = 3 [json_name = "supplementalTransforms"]; +inline int TransformPoseRequest::_internal_supplemental_transforms_size() const { + return _impl_.supplemental_transforms_.size(); +} +inline int TransformPoseRequest::supplemental_transforms_size() const { + return _internal_supplemental_transforms_size(); +} +inline ::viam::common::v1::Transform* TransformPoseRequest::mutable_supplemental_transforms(int index) { + // @@protoc_insertion_point(field_mutable:viam.robot.v1.TransformPoseRequest.supplemental_transforms) + return _impl_.supplemental_transforms_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >* +TransformPoseRequest::mutable_supplemental_transforms() { + // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.TransformPoseRequest.supplemental_transforms) + return &_impl_.supplemental_transforms_; +} +inline const ::viam::common::v1::Transform& TransformPoseRequest::_internal_supplemental_transforms(int index) const { + return _impl_.supplemental_transforms_.Get(index); +} +inline const ::viam::common::v1::Transform& TransformPoseRequest::supplemental_transforms(int index) const { + // @@protoc_insertion_point(field_get:viam.robot.v1.TransformPoseRequest.supplemental_transforms) + return _internal_supplemental_transforms(index); +} +inline ::viam::common::v1::Transform* TransformPoseRequest::_internal_add_supplemental_transforms() { + return _impl_.supplemental_transforms_.Add(); +} +inline ::viam::common::v1::Transform* TransformPoseRequest::add_supplemental_transforms() { + ::viam::common::v1::Transform* _add = _internal_add_supplemental_transforms(); + // @@protoc_insertion_point(field_add:viam.robot.v1.TransformPoseRequest.supplemental_transforms) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >& +TransformPoseRequest::supplemental_transforms() const { + // @@protoc_insertion_point(field_list:viam.robot.v1.TransformPoseRequest.supplemental_transforms) + return _impl_.supplemental_transforms_; +} + +// ------------------------------------------------------------------- + +// TransformPoseResponse + +// .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; +inline bool TransformPoseResponse::_internal_has_pose() const { + return this != internal_default_instance() && _impl_.pose_ != nullptr; +} +inline bool TransformPoseResponse::has_pose() const { + return _internal_has_pose(); +} +inline const ::viam::common::v1::PoseInFrame& TransformPoseResponse::_internal_pose() const { + const ::viam::common::v1::PoseInFrame* p = _impl_.pose_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_PoseInFrame_default_instance_); +} +inline const ::viam::common::v1::PoseInFrame& TransformPoseResponse::pose() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.TransformPoseResponse.pose) + return _internal_pose(); +} +inline void TransformPoseResponse::unsafe_arena_set_allocated_pose( + ::viam::common::v1::PoseInFrame* pose) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pose_); + } + _impl_.pose_ = pose; + if (pose) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.TransformPoseResponse.pose) +} +inline ::viam::common::v1::PoseInFrame* TransformPoseResponse::release_pose() { + + ::viam::common::v1::PoseInFrame* temp = _impl_.pose_; + _impl_.pose_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::PoseInFrame* TransformPoseResponse::unsafe_arena_release_pose() { + // @@protoc_insertion_point(field_release:viam.robot.v1.TransformPoseResponse.pose) + + ::viam::common::v1::PoseInFrame* temp = _impl_.pose_; + _impl_.pose_ = nullptr; + return temp; +} +inline ::viam::common::v1::PoseInFrame* TransformPoseResponse::_internal_mutable_pose() { + + if (_impl_.pose_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::PoseInFrame>(GetArenaForAllocation()); + _impl_.pose_ = p; + } + return _impl_.pose_; +} +inline ::viam::common::v1::PoseInFrame* TransformPoseResponse::mutable_pose() { + ::viam::common::v1::PoseInFrame* _msg = _internal_mutable_pose(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.TransformPoseResponse.pose) + return _msg; +} +inline void TransformPoseResponse::set_allocated_pose(::viam::common::v1::PoseInFrame* pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pose_); + } + if (pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose)); + if (message_arena != submessage_arena) { + pose = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, pose, submessage_arena); + } + + } else { + + } + _impl_.pose_ = pose; + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.TransformPoseResponse.pose) +} + +// ------------------------------------------------------------------- + +// ResourceNamesRequest + +// ------------------------------------------------------------------- + +// ResourceNamesResponse + +// repeated .viam.common.v1.ResourceName resources = 1 [json_name = "resources"]; +inline int ResourceNamesResponse::_internal_resources_size() const { + return _impl_.resources_.size(); +} +inline int ResourceNamesResponse::resources_size() const { + return _internal_resources_size(); +} +inline ::viam::common::v1::ResourceName* ResourceNamesResponse::mutable_resources(int index) { + // @@protoc_insertion_point(field_mutable:viam.robot.v1.ResourceNamesResponse.resources) + return _impl_.resources_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* +ResourceNamesResponse::mutable_resources() { + // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.ResourceNamesResponse.resources) + return &_impl_.resources_; +} +inline const ::viam::common::v1::ResourceName& ResourceNamesResponse::_internal_resources(int index) const { + return _impl_.resources_.Get(index); +} +inline const ::viam::common::v1::ResourceName& ResourceNamesResponse::resources(int index) const { + // @@protoc_insertion_point(field_get:viam.robot.v1.ResourceNamesResponse.resources) + return _internal_resources(index); +} +inline ::viam::common::v1::ResourceName* ResourceNamesResponse::_internal_add_resources() { + return _impl_.resources_.Add(); +} +inline ::viam::common::v1::ResourceName* ResourceNamesResponse::add_resources() { + ::viam::common::v1::ResourceName* _add = _internal_add_resources(); + // @@protoc_insertion_point(field_add:viam.robot.v1.ResourceNamesResponse.resources) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& +ResourceNamesResponse::resources() const { + // @@protoc_insertion_point(field_list:viam.robot.v1.ResourceNamesResponse.resources) + return _impl_.resources_; +} + +// ------------------------------------------------------------------- + +// ResourceRPCSubtype + +// .viam.common.v1.ResourceName subtype = 1 [json_name = "subtype"]; +inline bool ResourceRPCSubtype::_internal_has_subtype() const { + return this != internal_default_instance() && _impl_.subtype_ != nullptr; +} +inline bool ResourceRPCSubtype::has_subtype() const { + return _internal_has_subtype(); +} +inline const ::viam::common::v1::ResourceName& ResourceRPCSubtype::_internal_subtype() const { + const ::viam::common::v1::ResourceName* p = _impl_.subtype_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); +} +inline const ::viam::common::v1::ResourceName& ResourceRPCSubtype::subtype() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.ResourceRPCSubtype.subtype) + return _internal_subtype(); +} +inline void ResourceRPCSubtype::unsafe_arena_set_allocated_subtype( + ::viam::common::v1::ResourceName* subtype) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.subtype_); + } + _impl_.subtype_ = subtype; + if (subtype) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.ResourceRPCSubtype.subtype) +} +inline ::viam::common::v1::ResourceName* ResourceRPCSubtype::release_subtype() { + + ::viam::common::v1::ResourceName* temp = _impl_.subtype_; + _impl_.subtype_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::ResourceName* ResourceRPCSubtype::unsafe_arena_release_subtype() { + // @@protoc_insertion_point(field_release:viam.robot.v1.ResourceRPCSubtype.subtype) + + ::viam::common::v1::ResourceName* temp = _impl_.subtype_; + _impl_.subtype_ = nullptr; + return temp; +} +inline ::viam::common::v1::ResourceName* ResourceRPCSubtype::_internal_mutable_subtype() { + + if (_impl_.subtype_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + _impl_.subtype_ = p; + } + return _impl_.subtype_; +} +inline ::viam::common::v1::ResourceName* ResourceRPCSubtype::mutable_subtype() { + ::viam::common::v1::ResourceName* _msg = _internal_mutable_subtype(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.ResourceRPCSubtype.subtype) + return _msg; +} +inline void ResourceRPCSubtype::set_allocated_subtype(::viam::common::v1::ResourceName* subtype) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.subtype_); + } + if (subtype) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(subtype)); + if (message_arena != submessage_arena) { + subtype = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, subtype, submessage_arena); + } + + } else { + + } + _impl_.subtype_ = subtype; + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.ResourceRPCSubtype.subtype) +} + +// string proto_service = 2 [json_name = "protoService"]; +inline void ResourceRPCSubtype::clear_proto_service() { + _impl_.proto_service_.ClearToEmpty(); +} +inline const std::string& ResourceRPCSubtype::proto_service() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.ResourceRPCSubtype.proto_service) + return _internal_proto_service(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceRPCSubtype::set_proto_service(ArgT0&& arg0, ArgT... args) { + + _impl_.proto_service_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.ResourceRPCSubtype.proto_service) +} +inline std::string* ResourceRPCSubtype::mutable_proto_service() { + std::string* _s = _internal_mutable_proto_service(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.ResourceRPCSubtype.proto_service) + return _s; +} +inline const std::string& ResourceRPCSubtype::_internal_proto_service() const { + return _impl_.proto_service_.Get(); +} +inline void ResourceRPCSubtype::_internal_set_proto_service(const std::string& value) { + + _impl_.proto_service_.Set(value, GetArenaForAllocation()); +} +inline std::string* ResourceRPCSubtype::_internal_mutable_proto_service() { + + return _impl_.proto_service_.Mutable(GetArenaForAllocation()); +} +inline std::string* ResourceRPCSubtype::release_proto_service() { + // @@protoc_insertion_point(field_release:viam.robot.v1.ResourceRPCSubtype.proto_service) + return _impl_.proto_service_.Release(); +} +inline void ResourceRPCSubtype::set_allocated_proto_service(std::string* proto_service) { + if (proto_service != nullptr) { + + } else { + + } + _impl_.proto_service_.SetAllocated(proto_service, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.proto_service_.IsDefault()) { + _impl_.proto_service_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.ResourceRPCSubtype.proto_service) +} + +// ------------------------------------------------------------------- + +// ResourceRPCSubtypesRequest + +// ------------------------------------------------------------------- + +// ResourceRPCSubtypesResponse + +// repeated .viam.robot.v1.ResourceRPCSubtype resource_rpc_subtypes = 1 [json_name = "resourceRpcSubtypes"]; +inline int ResourceRPCSubtypesResponse::_internal_resource_rpc_subtypes_size() const { + return _impl_.resource_rpc_subtypes_.size(); +} +inline int ResourceRPCSubtypesResponse::resource_rpc_subtypes_size() const { + return _internal_resource_rpc_subtypes_size(); +} +inline void ResourceRPCSubtypesResponse::clear_resource_rpc_subtypes() { + _impl_.resource_rpc_subtypes_.Clear(); +} +inline ::viam::robot::v1::ResourceRPCSubtype* ResourceRPCSubtypesResponse::mutable_resource_rpc_subtypes(int index) { + // @@protoc_insertion_point(field_mutable:viam.robot.v1.ResourceRPCSubtypesResponse.resource_rpc_subtypes) + return _impl_.resource_rpc_subtypes_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::ResourceRPCSubtype >* +ResourceRPCSubtypesResponse::mutable_resource_rpc_subtypes() { + // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.ResourceRPCSubtypesResponse.resource_rpc_subtypes) + return &_impl_.resource_rpc_subtypes_; +} +inline const ::viam::robot::v1::ResourceRPCSubtype& ResourceRPCSubtypesResponse::_internal_resource_rpc_subtypes(int index) const { + return _impl_.resource_rpc_subtypes_.Get(index); +} +inline const ::viam::robot::v1::ResourceRPCSubtype& ResourceRPCSubtypesResponse::resource_rpc_subtypes(int index) const { + // @@protoc_insertion_point(field_get:viam.robot.v1.ResourceRPCSubtypesResponse.resource_rpc_subtypes) + return _internal_resource_rpc_subtypes(index); +} +inline ::viam::robot::v1::ResourceRPCSubtype* ResourceRPCSubtypesResponse::_internal_add_resource_rpc_subtypes() { + return _impl_.resource_rpc_subtypes_.Add(); +} +inline ::viam::robot::v1::ResourceRPCSubtype* ResourceRPCSubtypesResponse::add_resource_rpc_subtypes() { + ::viam::robot::v1::ResourceRPCSubtype* _add = _internal_add_resource_rpc_subtypes(); + // @@protoc_insertion_point(field_add:viam.robot.v1.ResourceRPCSubtypesResponse.resource_rpc_subtypes) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::ResourceRPCSubtype >& +ResourceRPCSubtypesResponse::resource_rpc_subtypes() const { + // @@protoc_insertion_point(field_list:viam.robot.v1.ResourceRPCSubtypesResponse.resource_rpc_subtypes) + return _impl_.resource_rpc_subtypes_; +} + +// ------------------------------------------------------------------- + +// Operation + +// string id = 1 [json_name = "id"]; +inline void Operation::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& Operation::id() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.Operation.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Operation::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.Operation.id) +} +inline std::string* Operation::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.Operation.id) + return _s; +} +inline const std::string& Operation::_internal_id() const { + return _impl_.id_.Get(); +} +inline void Operation::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* Operation::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* Operation::release_id() { + // @@protoc_insertion_point(field_release:viam.robot.v1.Operation.id) + return _impl_.id_.Release(); +} +inline void Operation::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.Operation.id) +} + +// string method = 2 [json_name = "method"]; +inline void Operation::clear_method() { + _impl_.method_.ClearToEmpty(); +} +inline const std::string& Operation::method() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.Operation.method) + return _internal_method(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Operation::set_method(ArgT0&& arg0, ArgT... args) { + + _impl_.method_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.Operation.method) +} +inline std::string* Operation::mutable_method() { + std::string* _s = _internal_mutable_method(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.Operation.method) + return _s; +} +inline const std::string& Operation::_internal_method() const { + return _impl_.method_.Get(); +} +inline void Operation::_internal_set_method(const std::string& value) { + + _impl_.method_.Set(value, GetArenaForAllocation()); +} +inline std::string* Operation::_internal_mutable_method() { + + return _impl_.method_.Mutable(GetArenaForAllocation()); +} +inline std::string* Operation::release_method() { + // @@protoc_insertion_point(field_release:viam.robot.v1.Operation.method) + return _impl_.method_.Release(); +} +inline void Operation::set_allocated_method(std::string* method) { + if (method != nullptr) { + + } else { + + } + _impl_.method_.SetAllocated(method, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.method_.IsDefault()) { + _impl_.method_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.Operation.method) +} + +// .google.protobuf.Struct arguments = 3 [json_name = "arguments"]; +inline bool Operation::_internal_has_arguments() const { + return this != internal_default_instance() && _impl_.arguments_ != nullptr; +} +inline bool Operation::has_arguments() const { + return _internal_has_arguments(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& Operation::_internal_arguments() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.arguments_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& Operation::arguments() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.Operation.arguments) + return _internal_arguments(); +} +inline void Operation::unsafe_arena_set_allocated_arguments( + ::PROTOBUF_NAMESPACE_ID::Struct* arguments) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arguments_); + } + _impl_.arguments_ = arguments; + if (arguments) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.Operation.arguments) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* Operation::release_arguments() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.arguments_; + _impl_.arguments_ = 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* Operation::unsafe_arena_release_arguments() { + // @@protoc_insertion_point(field_release:viam.robot.v1.Operation.arguments) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.arguments_; + _impl_.arguments_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* Operation::_internal_mutable_arguments() { + + if (_impl_.arguments_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.arguments_ = p; + } + return _impl_.arguments_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* Operation::mutable_arguments() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_arguments(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.Operation.arguments) + return _msg; +} +inline void Operation::set_allocated_arguments(::PROTOBUF_NAMESPACE_ID::Struct* arguments) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arguments_); + } + if (arguments) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(arguments)); + if (message_arena != submessage_arena) { + arguments = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, arguments, submessage_arena); + } + + } else { + + } + _impl_.arguments_ = arguments; + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.Operation.arguments) +} + +// .google.protobuf.Timestamp started = 4 [json_name = "started"]; +inline bool Operation::_internal_has_started() const { + return this != internal_default_instance() && _impl_.started_ != nullptr; +} +inline bool Operation::has_started() const { + return _internal_has_started(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Operation::_internal_started() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.started_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Operation::started() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.Operation.started) + return _internal_started(); +} +inline void Operation::unsafe_arena_set_allocated_started( + ::PROTOBUF_NAMESPACE_ID::Timestamp* started) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.started_); + } + _impl_.started_ = started; + if (started) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.Operation.started) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Operation::release_started() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.started_; + _impl_.started_ = 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* Operation::unsafe_arena_release_started() { + // @@protoc_insertion_point(field_release:viam.robot.v1.Operation.started) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.started_; + _impl_.started_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Operation::_internal_mutable_started() { + + if (_impl_.started_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + _impl_.started_ = p; + } + return _impl_.started_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Operation::mutable_started() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_started(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.Operation.started) + return _msg; +} +inline void Operation::set_allocated_started(::PROTOBUF_NAMESPACE_ID::Timestamp* started) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.started_); + } + if (started) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(started)); + if (message_arena != submessage_arena) { + started = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, started, submessage_arena); + } + + } else { + + } + _impl_.started_ = started; + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.Operation.started) +} + +// ------------------------------------------------------------------- + +// GetOperationsRequest + +// ------------------------------------------------------------------- + +// GetOperationsResponse + +// repeated .viam.robot.v1.Operation operations = 1 [json_name = "operations"]; +inline int GetOperationsResponse::_internal_operations_size() const { + return _impl_.operations_.size(); +} +inline int GetOperationsResponse::operations_size() const { + return _internal_operations_size(); +} +inline void GetOperationsResponse::clear_operations() { + _impl_.operations_.Clear(); +} +inline ::viam::robot::v1::Operation* GetOperationsResponse::mutable_operations(int index) { + // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetOperationsResponse.operations) + return _impl_.operations_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Operation >* +GetOperationsResponse::mutable_operations() { + // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.GetOperationsResponse.operations) + return &_impl_.operations_; +} +inline const ::viam::robot::v1::Operation& GetOperationsResponse::_internal_operations(int index) const { + return _impl_.operations_.Get(index); +} +inline const ::viam::robot::v1::Operation& GetOperationsResponse::operations(int index) const { + // @@protoc_insertion_point(field_get:viam.robot.v1.GetOperationsResponse.operations) + return _internal_operations(index); +} +inline ::viam::robot::v1::Operation* GetOperationsResponse::_internal_add_operations() { + return _impl_.operations_.Add(); +} +inline ::viam::robot::v1::Operation* GetOperationsResponse::add_operations() { + ::viam::robot::v1::Operation* _add = _internal_add_operations(); + // @@protoc_insertion_point(field_add:viam.robot.v1.GetOperationsResponse.operations) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Operation >& +GetOperationsResponse::operations() const { + // @@protoc_insertion_point(field_list:viam.robot.v1.GetOperationsResponse.operations) + return _impl_.operations_; +} + +// ------------------------------------------------------------------- + +// CancelOperationRequest + +// string id = 1 [json_name = "id"]; +inline void CancelOperationRequest::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& CancelOperationRequest::id() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.CancelOperationRequest.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CancelOperationRequest::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.CancelOperationRequest.id) +} +inline std::string* CancelOperationRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.CancelOperationRequest.id) + return _s; +} +inline const std::string& CancelOperationRequest::_internal_id() const { + return _impl_.id_.Get(); +} +inline void CancelOperationRequest::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* CancelOperationRequest::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* CancelOperationRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.robot.v1.CancelOperationRequest.id) + return _impl_.id_.Release(); +} +inline void CancelOperationRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.CancelOperationRequest.id) +} + +// ------------------------------------------------------------------- + +// CancelOperationResponse + +// ------------------------------------------------------------------- + +// BlockForOperationRequest + +// string id = 1 [json_name = "id"]; +inline void BlockForOperationRequest::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& BlockForOperationRequest::id() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.BlockForOperationRequest.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BlockForOperationRequest::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.BlockForOperationRequest.id) +} +inline std::string* BlockForOperationRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.BlockForOperationRequest.id) + return _s; +} +inline const std::string& BlockForOperationRequest::_internal_id() const { + return _impl_.id_.Get(); +} +inline void BlockForOperationRequest::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* BlockForOperationRequest::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* BlockForOperationRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.robot.v1.BlockForOperationRequest.id) + return _impl_.id_.Release(); +} +inline void BlockForOperationRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.BlockForOperationRequest.id) +} + +// ------------------------------------------------------------------- + +// BlockForOperationResponse + +// ------------------------------------------------------------------- + +// DiscoveryQuery + +// string subtype = 1 [json_name = "subtype"]; +inline void DiscoveryQuery::clear_subtype() { + _impl_.subtype_.ClearToEmpty(); +} +inline const std::string& DiscoveryQuery::subtype() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.DiscoveryQuery.subtype) + return _internal_subtype(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DiscoveryQuery::set_subtype(ArgT0&& arg0, ArgT... args) { + + _impl_.subtype_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.DiscoveryQuery.subtype) +} +inline std::string* DiscoveryQuery::mutable_subtype() { + std::string* _s = _internal_mutable_subtype(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.DiscoveryQuery.subtype) + return _s; +} +inline const std::string& DiscoveryQuery::_internal_subtype() const { + return _impl_.subtype_.Get(); +} +inline void DiscoveryQuery::_internal_set_subtype(const std::string& value) { + + _impl_.subtype_.Set(value, GetArenaForAllocation()); +} +inline std::string* DiscoveryQuery::_internal_mutable_subtype() { + + return _impl_.subtype_.Mutable(GetArenaForAllocation()); +} +inline std::string* DiscoveryQuery::release_subtype() { + // @@protoc_insertion_point(field_release:viam.robot.v1.DiscoveryQuery.subtype) + return _impl_.subtype_.Release(); +} +inline void DiscoveryQuery::set_allocated_subtype(std::string* subtype) { + if (subtype != nullptr) { + + } else { + + } + _impl_.subtype_.SetAllocated(subtype, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.subtype_.IsDefault()) { + _impl_.subtype_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.DiscoveryQuery.subtype) +} + +// string model = 2 [json_name = "model"]; +inline void DiscoveryQuery::clear_model() { + _impl_.model_.ClearToEmpty(); +} +inline const std::string& DiscoveryQuery::model() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.DiscoveryQuery.model) + return _internal_model(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DiscoveryQuery::set_model(ArgT0&& arg0, ArgT... args) { + + _impl_.model_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.DiscoveryQuery.model) +} +inline std::string* DiscoveryQuery::mutable_model() { + std::string* _s = _internal_mutable_model(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.DiscoveryQuery.model) + return _s; +} +inline const std::string& DiscoveryQuery::_internal_model() const { + return _impl_.model_.Get(); +} +inline void DiscoveryQuery::_internal_set_model(const std::string& value) { + + _impl_.model_.Set(value, GetArenaForAllocation()); +} +inline std::string* DiscoveryQuery::_internal_mutable_model() { + + return _impl_.model_.Mutable(GetArenaForAllocation()); +} +inline std::string* DiscoveryQuery::release_model() { + // @@protoc_insertion_point(field_release:viam.robot.v1.DiscoveryQuery.model) + return _impl_.model_.Release(); +} +inline void DiscoveryQuery::set_allocated_model(std::string* model) { + if (model != nullptr) { + + } else { + + } + _impl_.model_.SetAllocated(model, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.model_.IsDefault()) { + _impl_.model_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.DiscoveryQuery.model) +} + +// ------------------------------------------------------------------- + +// Discovery + +// .viam.robot.v1.DiscoveryQuery query = 1 [json_name = "query"]; +inline bool Discovery::_internal_has_query() const { + return this != internal_default_instance() && _impl_.query_ != nullptr; +} +inline bool Discovery::has_query() const { + return _internal_has_query(); +} +inline void Discovery::clear_query() { + if (GetArenaForAllocation() == nullptr && _impl_.query_ != nullptr) { + delete _impl_.query_; + } + _impl_.query_ = nullptr; +} +inline const ::viam::robot::v1::DiscoveryQuery& Discovery::_internal_query() const { + const ::viam::robot::v1::DiscoveryQuery* p = _impl_.query_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::robot::v1::_DiscoveryQuery_default_instance_); +} +inline const ::viam::robot::v1::DiscoveryQuery& Discovery::query() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.Discovery.query) + return _internal_query(); +} +inline void Discovery::unsafe_arena_set_allocated_query( + ::viam::robot::v1::DiscoveryQuery* query) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.query_); + } + _impl_.query_ = query; + if (query) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.Discovery.query) +} +inline ::viam::robot::v1::DiscoveryQuery* Discovery::release_query() { + + ::viam::robot::v1::DiscoveryQuery* temp = _impl_.query_; + _impl_.query_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::robot::v1::DiscoveryQuery* Discovery::unsafe_arena_release_query() { + // @@protoc_insertion_point(field_release:viam.robot.v1.Discovery.query) + + ::viam::robot::v1::DiscoveryQuery* temp = _impl_.query_; + _impl_.query_ = nullptr; + return temp; +} +inline ::viam::robot::v1::DiscoveryQuery* Discovery::_internal_mutable_query() { + + if (_impl_.query_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::robot::v1::DiscoveryQuery>(GetArenaForAllocation()); + _impl_.query_ = p; + } + return _impl_.query_; +} +inline ::viam::robot::v1::DiscoveryQuery* Discovery::mutable_query() { + ::viam::robot::v1::DiscoveryQuery* _msg = _internal_mutable_query(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.Discovery.query) + return _msg; +} +inline void Discovery::set_allocated_query(::viam::robot::v1::DiscoveryQuery* query) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.query_; + } + if (query) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(query); + if (message_arena != submessage_arena) { + query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, query, submessage_arena); + } + + } else { + + } + _impl_.query_ = query; + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.Discovery.query) +} + +// .google.protobuf.Struct results = 2 [json_name = "results"]; +inline bool Discovery::_internal_has_results() const { + return this != internal_default_instance() && _impl_.results_ != nullptr; +} +inline bool Discovery::has_results() const { + return _internal_has_results(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& Discovery::_internal_results() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.results_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& Discovery::results() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.Discovery.results) + return _internal_results(); +} +inline void Discovery::unsafe_arena_set_allocated_results( + ::PROTOBUF_NAMESPACE_ID::Struct* results) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.results_); + } + _impl_.results_ = results; + if (results) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.Discovery.results) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* Discovery::release_results() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.results_; + _impl_.results_ = 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* Discovery::unsafe_arena_release_results() { + // @@protoc_insertion_point(field_release:viam.robot.v1.Discovery.results) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.results_; + _impl_.results_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* Discovery::_internal_mutable_results() { + + if (_impl_.results_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.results_ = p; + } + return _impl_.results_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* Discovery::mutable_results() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_results(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.Discovery.results) + return _msg; +} +inline void Discovery::set_allocated_results(::PROTOBUF_NAMESPACE_ID::Struct* results) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.results_); + } + if (results) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(results)); + if (message_arena != submessage_arena) { + results = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, results, submessage_arena); + } + + } else { + + } + _impl_.results_ = results; + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.Discovery.results) +} + +// ------------------------------------------------------------------- + +// DiscoverComponentsRequest + +// repeated .viam.robot.v1.DiscoveryQuery queries = 1 [json_name = "queries"]; +inline int DiscoverComponentsRequest::_internal_queries_size() const { + return _impl_.queries_.size(); +} +inline int DiscoverComponentsRequest::queries_size() const { + return _internal_queries_size(); +} +inline void DiscoverComponentsRequest::clear_queries() { + _impl_.queries_.Clear(); +} +inline ::viam::robot::v1::DiscoveryQuery* DiscoverComponentsRequest::mutable_queries(int index) { + // @@protoc_insertion_point(field_mutable:viam.robot.v1.DiscoverComponentsRequest.queries) + return _impl_.queries_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::DiscoveryQuery >* +DiscoverComponentsRequest::mutable_queries() { + // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.DiscoverComponentsRequest.queries) + return &_impl_.queries_; +} +inline const ::viam::robot::v1::DiscoveryQuery& DiscoverComponentsRequest::_internal_queries(int index) const { + return _impl_.queries_.Get(index); +} +inline const ::viam::robot::v1::DiscoveryQuery& DiscoverComponentsRequest::queries(int index) const { + // @@protoc_insertion_point(field_get:viam.robot.v1.DiscoverComponentsRequest.queries) + return _internal_queries(index); +} +inline ::viam::robot::v1::DiscoveryQuery* DiscoverComponentsRequest::_internal_add_queries() { + return _impl_.queries_.Add(); +} +inline ::viam::robot::v1::DiscoveryQuery* DiscoverComponentsRequest::add_queries() { + ::viam::robot::v1::DiscoveryQuery* _add = _internal_add_queries(); + // @@protoc_insertion_point(field_add:viam.robot.v1.DiscoverComponentsRequest.queries) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::DiscoveryQuery >& +DiscoverComponentsRequest::queries() const { + // @@protoc_insertion_point(field_list:viam.robot.v1.DiscoverComponentsRequest.queries) + return _impl_.queries_; +} + +// ------------------------------------------------------------------- + +// DiscoverComponentsResponse + +// repeated .viam.robot.v1.Discovery discovery = 1 [json_name = "discovery"]; +inline int DiscoverComponentsResponse::_internal_discovery_size() const { + return _impl_.discovery_.size(); +} +inline int DiscoverComponentsResponse::discovery_size() const { + return _internal_discovery_size(); +} +inline void DiscoverComponentsResponse::clear_discovery() { + _impl_.discovery_.Clear(); +} +inline ::viam::robot::v1::Discovery* DiscoverComponentsResponse::mutable_discovery(int index) { + // @@protoc_insertion_point(field_mutable:viam.robot.v1.DiscoverComponentsResponse.discovery) + return _impl_.discovery_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Discovery >* +DiscoverComponentsResponse::mutable_discovery() { + // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.DiscoverComponentsResponse.discovery) + return &_impl_.discovery_; +} +inline const ::viam::robot::v1::Discovery& DiscoverComponentsResponse::_internal_discovery(int index) const { + return _impl_.discovery_.Get(index); +} +inline const ::viam::robot::v1::Discovery& DiscoverComponentsResponse::discovery(int index) const { + // @@protoc_insertion_point(field_get:viam.robot.v1.DiscoverComponentsResponse.discovery) + return _internal_discovery(index); +} +inline ::viam::robot::v1::Discovery* DiscoverComponentsResponse::_internal_add_discovery() { + return _impl_.discovery_.Add(); +} +inline ::viam::robot::v1::Discovery* DiscoverComponentsResponse::add_discovery() { + ::viam::robot::v1::Discovery* _add = _internal_add_discovery(); + // @@protoc_insertion_point(field_add:viam.robot.v1.DiscoverComponentsResponse.discovery) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Discovery >& +DiscoverComponentsResponse::discovery() const { + // @@protoc_insertion_point(field_list:viam.robot.v1.DiscoverComponentsResponse.discovery) + return _impl_.discovery_; +} + +// ------------------------------------------------------------------- + +// Status + +// .viam.common.v1.ResourceName name = 1 [json_name = "name"]; +inline bool Status::_internal_has_name() const { + return this != internal_default_instance() && _impl_.name_ != nullptr; +} +inline bool Status::has_name() const { + return _internal_has_name(); +} +inline const ::viam::common::v1::ResourceName& Status::_internal_name() const { + const ::viam::common::v1::ResourceName* p = _impl_.name_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); +} +inline const ::viam::common::v1::ResourceName& Status::name() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.Status.name) + return _internal_name(); +} +inline void Status::unsafe_arena_set_allocated_name( + ::viam::common::v1::ResourceName* name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.name_); + } + _impl_.name_ = name; + if (name) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.Status.name) +} +inline ::viam::common::v1::ResourceName* Status::release_name() { + + ::viam::common::v1::ResourceName* temp = _impl_.name_; + _impl_.name_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::ResourceName* Status::unsafe_arena_release_name() { + // @@protoc_insertion_point(field_release:viam.robot.v1.Status.name) + + ::viam::common::v1::ResourceName* temp = _impl_.name_; + _impl_.name_ = nullptr; + return temp; +} +inline ::viam::common::v1::ResourceName* Status::_internal_mutable_name() { + + if (_impl_.name_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + _impl_.name_ = p; + } + return _impl_.name_; +} +inline ::viam::common::v1::ResourceName* Status::mutable_name() { + ::viam::common::v1::ResourceName* _msg = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.Status.name) + return _msg; +} +inline void Status::set_allocated_name(::viam::common::v1::ResourceName* name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.name_); + } + if (name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(name)); + if (message_arena != submessage_arena) { + name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, name, submessage_arena); + } + + } else { + + } + _impl_.name_ = name; + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.Status.name) +} + +// .google.protobuf.Struct status = 2 [json_name = "status"]; +inline bool Status::_internal_has_status() const { + return this != internal_default_instance() && _impl_.status_ != nullptr; +} +inline bool Status::has_status() const { + return _internal_has_status(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& Status::_internal_status() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.status_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& Status::status() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.Status.status) + return _internal_status(); +} +inline void Status::unsafe_arena_set_allocated_status( + ::PROTOBUF_NAMESPACE_ID::Struct* status) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.status_); + } + _impl_.status_ = status; + if (status) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.Status.status) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* Status::release_status() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.status_; + _impl_.status_ = 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* Status::unsafe_arena_release_status() { + // @@protoc_insertion_point(field_release:viam.robot.v1.Status.status) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.status_; + _impl_.status_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* Status::_internal_mutable_status() { + + if (_impl_.status_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.status_ = p; + } + return _impl_.status_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* Status::mutable_status() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_status(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.Status.status) + return _msg; +} +inline void Status::set_allocated_status(::PROTOBUF_NAMESPACE_ID::Struct* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.status_); + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status)); + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + _impl_.status_ = status; + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.Status.status) +} + +// ------------------------------------------------------------------- + +// GetStatusRequest + +// repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; +inline int GetStatusRequest::_internal_resource_names_size() const { + return _impl_.resource_names_.size(); +} +inline int GetStatusRequest::resource_names_size() const { + return _internal_resource_names_size(); +} +inline ::viam::common::v1::ResourceName* GetStatusRequest::mutable_resource_names(int index) { + // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetStatusRequest.resource_names) + return _impl_.resource_names_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* +GetStatusRequest::mutable_resource_names() { + // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.GetStatusRequest.resource_names) + return &_impl_.resource_names_; +} +inline const ::viam::common::v1::ResourceName& GetStatusRequest::_internal_resource_names(int index) const { + return _impl_.resource_names_.Get(index); +} +inline const ::viam::common::v1::ResourceName& GetStatusRequest::resource_names(int index) const { + // @@protoc_insertion_point(field_get:viam.robot.v1.GetStatusRequest.resource_names) + return _internal_resource_names(index); +} +inline ::viam::common::v1::ResourceName* GetStatusRequest::_internal_add_resource_names() { + return _impl_.resource_names_.Add(); +} +inline ::viam::common::v1::ResourceName* GetStatusRequest::add_resource_names() { + ::viam::common::v1::ResourceName* _add = _internal_add_resource_names(); + // @@protoc_insertion_point(field_add:viam.robot.v1.GetStatusRequest.resource_names) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& +GetStatusRequest::resource_names() const { + // @@protoc_insertion_point(field_list:viam.robot.v1.GetStatusRequest.resource_names) + return _impl_.resource_names_; +} + +// ------------------------------------------------------------------- + +// GetStatusResponse + +// repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; +inline int GetStatusResponse::_internal_status_size() const { + return _impl_.status_.size(); +} +inline int GetStatusResponse::status_size() const { + return _internal_status_size(); +} +inline void GetStatusResponse::clear_status() { + _impl_.status_.Clear(); +} +inline ::viam::robot::v1::Status* GetStatusResponse::mutable_status(int index) { + // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetStatusResponse.status) + return _impl_.status_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Status >* +GetStatusResponse::mutable_status() { + // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.GetStatusResponse.status) + return &_impl_.status_; +} +inline const ::viam::robot::v1::Status& GetStatusResponse::_internal_status(int index) const { + return _impl_.status_.Get(index); +} +inline const ::viam::robot::v1::Status& GetStatusResponse::status(int index) const { + // @@protoc_insertion_point(field_get:viam.robot.v1.GetStatusResponse.status) + return _internal_status(index); +} +inline ::viam::robot::v1::Status* GetStatusResponse::_internal_add_status() { + return _impl_.status_.Add(); +} +inline ::viam::robot::v1::Status* GetStatusResponse::add_status() { + ::viam::robot::v1::Status* _add = _internal_add_status(); + // @@protoc_insertion_point(field_add:viam.robot.v1.GetStatusResponse.status) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Status >& +GetStatusResponse::status() const { + // @@protoc_insertion_point(field_list:viam.robot.v1.GetStatusResponse.status) + return _impl_.status_; +} + +// ------------------------------------------------------------------- + +// StreamStatusRequest + +// repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; +inline int StreamStatusRequest::_internal_resource_names_size() const { + return _impl_.resource_names_.size(); +} +inline int StreamStatusRequest::resource_names_size() const { + return _internal_resource_names_size(); +} +inline ::viam::common::v1::ResourceName* StreamStatusRequest::mutable_resource_names(int index) { + // @@protoc_insertion_point(field_mutable:viam.robot.v1.StreamStatusRequest.resource_names) + return _impl_.resource_names_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* +StreamStatusRequest::mutable_resource_names() { + // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.StreamStatusRequest.resource_names) + return &_impl_.resource_names_; +} +inline const ::viam::common::v1::ResourceName& StreamStatusRequest::_internal_resource_names(int index) const { + return _impl_.resource_names_.Get(index); +} +inline const ::viam::common::v1::ResourceName& StreamStatusRequest::resource_names(int index) const { + // @@protoc_insertion_point(field_get:viam.robot.v1.StreamStatusRequest.resource_names) + return _internal_resource_names(index); +} +inline ::viam::common::v1::ResourceName* StreamStatusRequest::_internal_add_resource_names() { + return _impl_.resource_names_.Add(); +} +inline ::viam::common::v1::ResourceName* StreamStatusRequest::add_resource_names() { + ::viam::common::v1::ResourceName* _add = _internal_add_resource_names(); + // @@protoc_insertion_point(field_add:viam.robot.v1.StreamStatusRequest.resource_names) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& +StreamStatusRequest::resource_names() const { + // @@protoc_insertion_point(field_list:viam.robot.v1.StreamStatusRequest.resource_names) + return _impl_.resource_names_; +} + +// .google.protobuf.Duration every = 2 [json_name = "every"]; +inline bool StreamStatusRequest::_internal_has_every() const { + return this != internal_default_instance() && _impl_.every_ != nullptr; +} +inline bool StreamStatusRequest::has_every() const { + return _internal_has_every(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& StreamStatusRequest::_internal_every() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = _impl_.every_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& StreamStatusRequest::every() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.StreamStatusRequest.every) + return _internal_every(); +} +inline void StreamStatusRequest::unsafe_arena_set_allocated_every( + ::PROTOBUF_NAMESPACE_ID::Duration* every) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.every_); + } + _impl_.every_ = every; + if (every) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.StreamStatusRequest.every) +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* StreamStatusRequest::release_every() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.every_; + _impl_.every_ = 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::Duration* StreamStatusRequest::unsafe_arena_release_every() { + // @@protoc_insertion_point(field_release:viam.robot.v1.StreamStatusRequest.every) + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.every_; + _impl_.every_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* StreamStatusRequest::_internal_mutable_every() { + + if (_impl_.every_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + _impl_.every_ = p; + } + return _impl_.every_; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* StreamStatusRequest::mutable_every() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_every(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.StreamStatusRequest.every) + return _msg; +} +inline void StreamStatusRequest::set_allocated_every(::PROTOBUF_NAMESPACE_ID::Duration* every) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.every_); + } + if (every) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(every)); + if (message_arena != submessage_arena) { + every = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, every, submessage_arena); + } + + } else { + + } + _impl_.every_ = every; + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.StreamStatusRequest.every) +} + +// ------------------------------------------------------------------- + +// StreamStatusResponse + +// repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; +inline int StreamStatusResponse::_internal_status_size() const { + return _impl_.status_.size(); +} +inline int StreamStatusResponse::status_size() const { + return _internal_status_size(); +} +inline void StreamStatusResponse::clear_status() { + _impl_.status_.Clear(); +} +inline ::viam::robot::v1::Status* StreamStatusResponse::mutable_status(int index) { + // @@protoc_insertion_point(field_mutable:viam.robot.v1.StreamStatusResponse.status) + return _impl_.status_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Status >* +StreamStatusResponse::mutable_status() { + // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.StreamStatusResponse.status) + return &_impl_.status_; +} +inline const ::viam::robot::v1::Status& StreamStatusResponse::_internal_status(int index) const { + return _impl_.status_.Get(index); +} +inline const ::viam::robot::v1::Status& StreamStatusResponse::status(int index) const { + // @@protoc_insertion_point(field_get:viam.robot.v1.StreamStatusResponse.status) + return _internal_status(index); +} +inline ::viam::robot::v1::Status* StreamStatusResponse::_internal_add_status() { + return _impl_.status_.Add(); +} +inline ::viam::robot::v1::Status* StreamStatusResponse::add_status() { + ::viam::robot::v1::Status* _add = _internal_add_status(); + // @@protoc_insertion_point(field_add:viam.robot.v1.StreamStatusResponse.status) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Status >& +StreamStatusResponse::status() const { + // @@protoc_insertion_point(field_list:viam.robot.v1.StreamStatusResponse.status) + return _impl_.status_; +} + +// ------------------------------------------------------------------- + +// StopExtraParameters + +// .viam.common.v1.ResourceName name = 1 [json_name = "name"]; +inline bool StopExtraParameters::_internal_has_name() const { + return this != internal_default_instance() && _impl_.name_ != nullptr; +} +inline bool StopExtraParameters::has_name() const { + return _internal_has_name(); +} +inline const ::viam::common::v1::ResourceName& StopExtraParameters::_internal_name() const { + const ::viam::common::v1::ResourceName* p = _impl_.name_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); +} +inline const ::viam::common::v1::ResourceName& StopExtraParameters::name() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.StopExtraParameters.name) + return _internal_name(); +} +inline void StopExtraParameters::unsafe_arena_set_allocated_name( + ::viam::common::v1::ResourceName* name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.name_); + } + _impl_.name_ = name; + if (name) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.StopExtraParameters.name) +} +inline ::viam::common::v1::ResourceName* StopExtraParameters::release_name() { + + ::viam::common::v1::ResourceName* temp = _impl_.name_; + _impl_.name_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::ResourceName* StopExtraParameters::unsafe_arena_release_name() { + // @@protoc_insertion_point(field_release:viam.robot.v1.StopExtraParameters.name) + + ::viam::common::v1::ResourceName* temp = _impl_.name_; + _impl_.name_ = nullptr; + return temp; +} +inline ::viam::common::v1::ResourceName* StopExtraParameters::_internal_mutable_name() { + + if (_impl_.name_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + _impl_.name_ = p; + } + return _impl_.name_; +} +inline ::viam::common::v1::ResourceName* StopExtraParameters::mutable_name() { + ::viam::common::v1::ResourceName* _msg = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.StopExtraParameters.name) + return _msg; +} +inline void StopExtraParameters::set_allocated_name(::viam::common::v1::ResourceName* name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.name_); + } + if (name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(name)); + if (message_arena != submessage_arena) { + name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, name, submessage_arena); + } + + } else { + + } + _impl_.name_ = name; + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.StopExtraParameters.name) +} + +// .google.protobuf.Struct params = 2 [json_name = "params"]; +inline bool StopExtraParameters::_internal_has_params() const { + return this != internal_default_instance() && _impl_.params_ != nullptr; +} +inline bool StopExtraParameters::has_params() const { + return _internal_has_params(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopExtraParameters::_internal_params() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.params_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopExtraParameters::params() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.StopExtraParameters.params) + return _internal_params(); +} +inline void StopExtraParameters::unsafe_arena_set_allocated_params( + ::PROTOBUF_NAMESPACE_ID::Struct* params) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.params_); + } + _impl_.params_ = params; + if (params) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.StopExtraParameters.params) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopExtraParameters::release_params() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.params_; + _impl_.params_ = 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* StopExtraParameters::unsafe_arena_release_params() { + // @@protoc_insertion_point(field_release:viam.robot.v1.StopExtraParameters.params) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.params_; + _impl_.params_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopExtraParameters::_internal_mutable_params() { + + if (_impl_.params_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.params_ = p; + } + return _impl_.params_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopExtraParameters::mutable_params() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_params(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.StopExtraParameters.params) + return _msg; +} +inline void StopExtraParameters::set_allocated_params(::PROTOBUF_NAMESPACE_ID::Struct* params) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.params_); + } + if (params) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(params)); + if (message_arena != submessage_arena) { + params = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, params, submessage_arena); + } + + } else { + + } + _impl_.params_ = params; + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.StopExtraParameters.params) +} + +// ------------------------------------------------------------------- + +// StopAllRequest + +// repeated .viam.robot.v1.StopExtraParameters extra = 99 [json_name = "extra"]; +inline int StopAllRequest::_internal_extra_size() const { + return _impl_.extra_.size(); +} +inline int StopAllRequest::extra_size() const { + return _internal_extra_size(); +} +inline void StopAllRequest::clear_extra() { + _impl_.extra_.Clear(); +} +inline ::viam::robot::v1::StopExtraParameters* StopAllRequest::mutable_extra(int index) { + // @@protoc_insertion_point(field_mutable:viam.robot.v1.StopAllRequest.extra) + return _impl_.extra_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::StopExtraParameters >* +StopAllRequest::mutable_extra() { + // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.StopAllRequest.extra) + return &_impl_.extra_; +} +inline const ::viam::robot::v1::StopExtraParameters& StopAllRequest::_internal_extra(int index) const { + return _impl_.extra_.Get(index); +} +inline const ::viam::robot::v1::StopExtraParameters& StopAllRequest::extra(int index) const { + // @@protoc_insertion_point(field_get:viam.robot.v1.StopAllRequest.extra) + return _internal_extra(index); +} +inline ::viam::robot::v1::StopExtraParameters* StopAllRequest::_internal_add_extra() { + return _impl_.extra_.Add(); +} +inline ::viam::robot::v1::StopExtraParameters* StopAllRequest::add_extra() { + ::viam::robot::v1::StopExtraParameters* _add = _internal_add_extra(); + // @@protoc_insertion_point(field_add:viam.robot.v1.StopAllRequest.extra) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::StopExtraParameters >& +StopAllRequest::extra() const { + // @@protoc_insertion_point(field_list:viam.robot.v1.StopAllRequest.extra) + return _impl_.extra_; +} + +// ------------------------------------------------------------------- + +// StopAllResponse + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace robot +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_robot_2fv1_2frobot_2eproto diff --git a/src/gen/service/datamanager/v1/data_manager.grpc.pb.cc b/src/gen/service/datamanager/v1/data_manager.grpc.pb.cc new file mode 100644 index 000000000..72925c1cc --- /dev/null +++ b/src/gen/service/datamanager/v1/data_manager.grpc.pb.cc @@ -0,0 +1,92 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: service/datamanager/v1/data_manager.proto + +#include "service/datamanager/v1/data_manager.pb.h" +#include "service/datamanager/v1/data_manager.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace service { +namespace datamanager { +namespace v1 { + +static const char* DataManagerService_method_names[] = { + "/viam.service.datamanager.v1.DataManagerService/Sync", +}; + +std::unique_ptr< DataManagerService::Stub> DataManagerService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< DataManagerService::Stub> stub(new DataManagerService::Stub(channel, options)); + return stub; +} + +DataManagerService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_Sync_(DataManagerService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status DataManagerService::Stub::Sync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& request, ::viam::service::datamanager::v1::SyncResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::datamanager::v1::SyncRequest, ::viam::service::datamanager::v1::SyncResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Sync_, context, request, response); +} + +void DataManagerService::Stub::async::Sync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest* request, ::viam::service::datamanager::v1::SyncResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::datamanager::v1::SyncRequest, ::viam::service::datamanager::v1::SyncResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Sync_, context, request, response, std::move(f)); +} + +void DataManagerService::Stub::async::Sync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest* request, ::viam::service::datamanager::v1::SyncResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Sync_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::datamanager::v1::SyncResponse>* DataManagerService::Stub::PrepareAsyncSyncRaw(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::datamanager::v1::SyncResponse, ::viam::service::datamanager::v1::SyncRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Sync_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::datamanager::v1::SyncResponse>* DataManagerService::Stub::AsyncSyncRaw(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncSyncRaw(context, request, cq); + result->StartCall(); + return result; +} + +DataManagerService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataManagerService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataManagerService::Service, ::viam::service::datamanager::v1::SyncRequest, ::viam::service::datamanager::v1::SyncResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](DataManagerService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::datamanager::v1::SyncRequest* req, + ::viam::service::datamanager::v1::SyncResponse* resp) { + return service->Sync(ctx, req, resp); + }, this))); +} + +DataManagerService::Service::~Service() { +} + +::grpc::Status DataManagerService::Service::Sync(::grpc::ServerContext* context, const ::viam::service::datamanager::v1::SyncRequest* request, ::viam::service::datamanager::v1::SyncResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace service +} // namespace datamanager +} // namespace v1 + diff --git a/src/gen/service/datamanager/v1/data_manager.grpc.pb.h b/src/gen/service/datamanager/v1/data_manager.grpc.pb.h new file mode 100644 index 000000000..c22132fde --- /dev/null +++ b/src/gen/service/datamanager/v1/data_manager.grpc.pb.h @@ -0,0 +1,250 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: service/datamanager/v1/data_manager.proto +#ifndef GRPC_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto__INCLUDED +#define GRPC_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto__INCLUDED + +#include "service/datamanager/v1/data_manager.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 datamanager { +namespace v1 { + +// A DataManagerService service manages data between the robot and the cloud. +class DataManagerService final { + public: + static constexpr char const* service_full_name() { + return "viam.service.datamanager.v1.DataManagerService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // Sync performs a sync of the non-synced files for the specified service name, + virtual ::grpc::Status Sync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& request, ::viam::service::datamanager::v1::SyncResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::datamanager::v1::SyncResponse>> AsyncSync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::datamanager::v1::SyncResponse>>(AsyncSyncRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::datamanager::v1::SyncResponse>> PrepareAsyncSync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::datamanager::v1::SyncResponse>>(PrepareAsyncSyncRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // Sync performs a sync of the non-synced files for the specified service name, + virtual void Sync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest* request, ::viam::service::datamanager::v1::SyncResponse* response, std::function) = 0; + virtual void Sync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest* request, ::viam::service::datamanager::v1::SyncResponse* 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::ClientAsyncResponseReaderInterface< ::viam::service::datamanager::v1::SyncResponse>* AsyncSyncRaw(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::datamanager::v1::SyncResponse>* PrepareAsyncSyncRaw(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& 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()); + ::grpc::Status Sync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& request, ::viam::service::datamanager::v1::SyncResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::datamanager::v1::SyncResponse>> AsyncSync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::datamanager::v1::SyncResponse>>(AsyncSyncRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::datamanager::v1::SyncResponse>> PrepareAsyncSync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::datamanager::v1::SyncResponse>>(PrepareAsyncSyncRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void Sync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest* request, ::viam::service::datamanager::v1::SyncResponse* response, std::function) override; + void Sync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest* request, ::viam::service::datamanager::v1::SyncResponse* 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::ClientAsyncResponseReader< ::viam::service::datamanager::v1::SyncResponse>* AsyncSyncRaw(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::datamanager::v1::SyncResponse>* PrepareAsyncSyncRaw(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_Sync_; + }; + 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(); + // Sync performs a sync of the non-synced files for the specified service name, + virtual ::grpc::Status Sync(::grpc::ServerContext* context, const ::viam::service::datamanager::v1::SyncRequest* request, ::viam::service::datamanager::v1::SyncResponse* response); + }; + template + class WithAsyncMethod_Sync : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Sync() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_Sync() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Sync(::grpc::ServerContext* /*context*/, const ::viam::service::datamanager::v1::SyncRequest* /*request*/, ::viam::service::datamanager::v1::SyncResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSync(::grpc::ServerContext* context, ::viam::service::datamanager::v1::SyncRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::datamanager::v1::SyncResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_Sync AsyncService; + template + class WithCallbackMethod_Sync : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Sync() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::datamanager::v1::SyncRequest, ::viam::service::datamanager::v1::SyncResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::datamanager::v1::SyncRequest* request, ::viam::service::datamanager::v1::SyncResponse* response) { return this->Sync(context, request, response); }));} + void SetMessageAllocatorFor_Sync( + ::grpc::MessageAllocator< ::viam::service::datamanager::v1::SyncRequest, ::viam::service::datamanager::v1::SyncResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::datamanager::v1::SyncRequest, ::viam::service::datamanager::v1::SyncResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Sync() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Sync(::grpc::ServerContext* /*context*/, const ::viam::service::datamanager::v1::SyncRequest* /*request*/, ::viam::service::datamanager::v1::SyncResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Sync( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::datamanager::v1::SyncRequest* /*request*/, ::viam::service::datamanager::v1::SyncResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_Sync CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_Sync : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Sync() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_Sync() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Sync(::grpc::ServerContext* /*context*/, const ::viam::service::datamanager::v1::SyncRequest* /*request*/, ::viam::service::datamanager::v1::SyncResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_Sync : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Sync() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_Sync() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Sync(::grpc::ServerContext* /*context*/, const ::viam::service::datamanager::v1::SyncRequest* /*request*/, ::viam::service::datamanager::v1::SyncResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSync(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_Sync : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Sync() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Sync(context, request, response); })); + } + ~WithRawCallbackMethod_Sync() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Sync(::grpc::ServerContext* /*context*/, const ::viam::service::datamanager::v1::SyncRequest* /*request*/, ::viam::service::datamanager::v1::SyncResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Sync( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_Sync : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Sync() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::datamanager::v1::SyncRequest, ::viam::service::datamanager::v1::SyncResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::datamanager::v1::SyncRequest, ::viam::service::datamanager::v1::SyncResponse>* streamer) { + return this->StreamedSync(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Sync() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Sync(::grpc::ServerContext* /*context*/, const ::viam::service::datamanager::v1::SyncRequest* /*request*/, ::viam::service::datamanager::v1::SyncResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedSync(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::datamanager::v1::SyncRequest,::viam::service::datamanager::v1::SyncResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_Sync StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_Sync StreamedService; +}; + +} // namespace v1 +} // namespace datamanager +} // namespace service +} // namespace viam + + +#endif // GRPC_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto__INCLUDED diff --git a/src/gen/service/datamanager/v1/data_manager.pb.cc b/src/gen/service/datamanager/v1/data_manager.pb.cc new file mode 100644 index 000000000..0c1492e6b --- /dev/null +++ b/src/gen/service/datamanager/v1/data_manager.pb.cc @@ -0,0 +1,380 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service/datamanager/v1/data_manager.proto + +#include "service/datamanager/v1/data_manager.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 datamanager { +namespace v1 { +PROTOBUF_CONSTEXPR SyncRequest::SyncRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SyncRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SyncRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SyncRequestDefaultTypeInternal() {} + union { + SyncRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SyncRequestDefaultTypeInternal _SyncRequest_default_instance_; +PROTOBUF_CONSTEXPR SyncResponse::SyncResponse( + ::_pbi::ConstantInitialized) {} +struct SyncResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SyncResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SyncResponseDefaultTypeInternal() {} + union { + SyncResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SyncResponseDefaultTypeInternal _SyncResponse_default_instance_; +} // namespace v1 +} // namespace datamanager +} // namespace service +} // namespace viam +static ::_pb::Metadata file_level_metadata_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto[2]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto = nullptr; + +const uint32_t TableStruct_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::datamanager::v1::SyncRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::datamanager::v1::SyncRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::datamanager::v1::SyncResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::service::datamanager::v1::SyncRequest)}, + { 7, -1, -1, sizeof(::viam::service::datamanager::v1::SyncResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::service::datamanager::v1::_SyncRequest_default_instance_._instance, + &::viam::service::datamanager::v1::_SyncResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n)service/datamanager/v1/data_manager.pr" + "oto\022\033viam.service.datamanager.v1\032\034google" + "/api/annotations.proto\"!\n\013SyncRequest\022\022\n" + "\004name\030\001 \001(\tR\004name\"\016\n\014SyncResponse2\254\001\n\022Da" + "taManagerService\022\225\001\n\004Sync\022(.viam.service" + ".datamanager.v1.SyncRequest\032).viam.servi" + "ce.datamanager.v1.SyncResponse\"8\202\323\344\223\0022\"0" + "/viam/api/v1/service/datamanager/{name}/" + "datasyncBI\n\037com.viam.service.datamanager" + ".v1Z&go.viam.com/api/service/datamanager" + "/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_deps[1] = { + &::descriptor_table_google_2fapi_2fannotations_2eproto, +}; +static ::_pbi::once_flag descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto = { + false, false, 411, descriptor_table_protodef_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto, + "service/datamanager/v1/data_manager.proto", + &descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_once, descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_deps, 1, 2, + schemas, file_default_instances, TableStruct_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto::offsets, + file_level_metadata_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto, file_level_enum_descriptors_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto, + file_level_service_descriptors_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_getter() { + return &descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto(&descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto); +namespace viam { +namespace service { +namespace datamanager { +namespace v1 { + +// =================================================================== + +class SyncRequest::_Internal { + public: +}; + +SyncRequest::SyncRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.datamanager.v1.SyncRequest) +} +SyncRequest::SyncRequest(const SyncRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + SyncRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.service.datamanager.v1.SyncRequest) +} + +inline void SyncRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +SyncRequest::~SyncRequest() { + // @@protoc_insertion_point(destructor:viam.service.datamanager.v1.SyncRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SyncRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void SyncRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SyncRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.datamanager.v1.SyncRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SyncRequest::_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.datamanager.v1.SyncRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* SyncRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.datamanager.v1.SyncRequest) + 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.datamanager.v1.SyncRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.datamanager.v1.SyncRequest) + return target; +} + +size_t SyncRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.datamanager.v1.SyncRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SyncRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SyncRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SyncRequest::GetClassData() const { return &_class_data_; } + + +void SyncRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.datamanager.v1.SyncRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SyncRequest::CopyFrom(const SyncRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.datamanager.v1.SyncRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SyncRequest::IsInitialized() const { + return true; +} + +void SyncRequest::InternalSwap(SyncRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SyncRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_getter, &descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_once, + file_level_metadata_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto[0]); +} + +// =================================================================== + +class SyncResponse::_Internal { + public: +}; + +SyncResponse::SyncResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.service.datamanager.v1.SyncResponse) +} +SyncResponse::SyncResponse(const SyncResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SyncResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.service.datamanager.v1.SyncResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SyncResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SyncResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata SyncResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_getter, &descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_once, + file_level_metadata_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto[1]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace datamanager +} // namespace service +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::service::datamanager::v1::SyncRequest* +Arena::CreateMaybeMessage< ::viam::service::datamanager::v1::SyncRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::datamanager::v1::SyncRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::datamanager::v1::SyncResponse* +Arena::CreateMaybeMessage< ::viam::service::datamanager::v1::SyncResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::datamanager::v1::SyncResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/service/datamanager/v1/data_manager.pb.h b/src/gen/service/datamanager/v1/data_manager.pb.h new file mode 100644 index 000000000..4f76cb459 --- /dev/null +++ b/src/gen/service/datamanager/v1/data_manager.pb.h @@ -0,0 +1,424 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service/datamanager/v1/data_manager.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "google/api/annotations.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto; +namespace viam { +namespace service { +namespace datamanager { +namespace v1 { +class SyncRequest; +struct SyncRequestDefaultTypeInternal; +extern SyncRequestDefaultTypeInternal _SyncRequest_default_instance_; +class SyncResponse; +struct SyncResponseDefaultTypeInternal; +extern SyncResponseDefaultTypeInternal _SyncResponse_default_instance_; +} // namespace v1 +} // namespace datamanager +} // namespace service +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::service::datamanager::v1::SyncRequest* Arena::CreateMaybeMessage<::viam::service::datamanager::v1::SyncRequest>(Arena*); +template<> ::viam::service::datamanager::v1::SyncResponse* Arena::CreateMaybeMessage<::viam::service::datamanager::v1::SyncResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace service { +namespace datamanager { +namespace v1 { + +// =================================================================== + +class SyncRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.datamanager.v1.SyncRequest) */ { + public: + inline SyncRequest() : SyncRequest(nullptr) {} + ~SyncRequest() override; + explicit PROTOBUF_CONSTEXPR SyncRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SyncRequest(const SyncRequest& from); + SyncRequest(SyncRequest&& from) noexcept + : SyncRequest() { + *this = ::std::move(from); + } + + inline SyncRequest& operator=(const SyncRequest& from) { + CopyFrom(from); + return *this; + } + inline SyncRequest& operator=(SyncRequest&& 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 SyncRequest& default_instance() { + return *internal_default_instance(); + } + static inline const SyncRequest* internal_default_instance() { + return reinterpret_cast( + &_SyncRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(SyncRequest& a, SyncRequest& b) { + a.Swap(&b); + } + inline void Swap(SyncRequest* 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(SyncRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SyncRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SyncRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SyncRequest& from) { + SyncRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SyncRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.datamanager.v1.SyncRequest"; + } + protected: + explicit SyncRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.service.datamanager.v1.SyncRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto; +}; +// ------------------------------------------------------------------- + +class SyncResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.datamanager.v1.SyncResponse) */ { + public: + inline SyncResponse() : SyncResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SyncResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SyncResponse(const SyncResponse& from); + SyncResponse(SyncResponse&& from) noexcept + : SyncResponse() { + *this = ::std::move(from); + } + + inline SyncResponse& operator=(const SyncResponse& from) { + CopyFrom(from); + return *this; + } + inline SyncResponse& operator=(SyncResponse&& 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 SyncResponse& default_instance() { + return *internal_default_instance(); + } + static inline const SyncResponse* internal_default_instance() { + return reinterpret_cast( + &_SyncResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(SyncResponse& a, SyncResponse& b) { + a.Swap(&b); + } + inline void Swap(SyncResponse* 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(SyncResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SyncResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SyncResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SyncResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.datamanager.v1.SyncResponse"; + } + protected: + explicit SyncResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.service.datamanager.v1.SyncResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// SyncRequest + +// string name = 1 [json_name = "name"]; +inline void SyncRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& SyncRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.datamanager.v1.SyncRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SyncRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.datamanager.v1.SyncRequest.name) +} +inline std::string* SyncRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.datamanager.v1.SyncRequest.name) + return _s; +} +inline const std::string& SyncRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void SyncRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* SyncRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* SyncRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.datamanager.v1.SyncRequest.name) + return _impl_.name_.Release(); +} +inline void SyncRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.datamanager.v1.SyncRequest.name) +} + +// ------------------------------------------------------------------- + +// SyncResponse + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace datamanager +} // namespace service +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto diff --git a/src/gen/service/motion/v1/motion.grpc.pb.cc b/src/gen/service/motion/v1/motion.grpc.pb.cc new file mode 100644 index 000000000..d2a10a4f8 --- /dev/null +++ b/src/gen/service/motion/v1/motion.grpc.pb.cc @@ -0,0 +1,176 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: service/motion/v1/motion.proto + +#include "service/motion/v1/motion.pb.h" +#include "service/motion/v1/motion.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace service { +namespace motion { +namespace v1 { + +static const char* MotionService_method_names[] = { + "/viam.service.motion.v1.MotionService/Move", + "/viam.service.motion.v1.MotionService/MoveSingleComponent", + "/viam.service.motion.v1.MotionService/GetPose", +}; + +std::unique_ptr< MotionService::Stub> MotionService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< MotionService::Stub> stub(new MotionService::Stub(channel, options)); + return stub; +} + +MotionService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_Move_(MotionService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_MoveSingleComponent_(MotionService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetPose_(MotionService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status MotionService::Stub::Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::viam::service::motion::v1::MoveResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::motion::v1::MoveRequest, ::viam::service::motion::v1::MoveResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Move_, context, request, response); +} + +void MotionService::Stub::async::Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::motion::v1::MoveRequest, ::viam::service::motion::v1::MoveResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Move_, context, request, response, std::move(f)); +} + +void MotionService::Stub::async::Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Move_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveResponse>* MotionService::Stub::PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::motion::v1::MoveResponse, ::viam::service::motion::v1::MoveRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Move_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveResponse>* MotionService::Stub::AsyncMoveRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncMoveRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status MotionService::Stub::MoveSingleComponent(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest& request, ::viam::service::motion::v1::MoveSingleComponentResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::motion::v1::MoveSingleComponentRequest, ::viam::service::motion::v1::MoveSingleComponentResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MoveSingleComponent_, context, request, response); +} + +void MotionService::Stub::async::MoveSingleComponent(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest* request, ::viam::service::motion::v1::MoveSingleComponentResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::motion::v1::MoveSingleComponentRequest, ::viam::service::motion::v1::MoveSingleComponentResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveSingleComponent_, context, request, response, std::move(f)); +} + +void MotionService::Stub::async::MoveSingleComponent(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest* request, ::viam::service::motion::v1::MoveSingleComponentResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveSingleComponent_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveSingleComponentResponse>* MotionService::Stub::PrepareAsyncMoveSingleComponentRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::motion::v1::MoveSingleComponentResponse, ::viam::service::motion::v1::MoveSingleComponentRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MoveSingleComponent_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveSingleComponentResponse>* MotionService::Stub::AsyncMoveSingleComponentRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncMoveSingleComponentRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status MotionService::Stub::GetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest& request, ::viam::service::motion::v1::GetPoseResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetPose_, context, request, response); +} + +void MotionService::Stub::async::GetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPose_, context, request, response, std::move(f)); +} + +void MotionService::Stub::async::GetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPose_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::GetPoseResponse>* MotionService::Stub::PrepareAsyncGetPoseRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::motion::v1::GetPoseResponse, ::viam::service::motion::v1::GetPoseRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetPose_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::GetPoseResponse>* MotionService::Stub::AsyncGetPoseRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetPoseRaw(context, request, cq); + result->StartCall(); + return result; +} + +MotionService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + MotionService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::MoveRequest, ::viam::service::motion::v1::MoveResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MotionService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::motion::v1::MoveRequest* req, + ::viam::service::motion::v1::MoveResponse* resp) { + return service->Move(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MotionService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::MoveSingleComponentRequest, ::viam::service::motion::v1::MoveSingleComponentResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MotionService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::motion::v1::MoveSingleComponentRequest* req, + ::viam::service::motion::v1::MoveSingleComponentResponse* resp) { + return service->MoveSingleComponent(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MotionService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MotionService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::motion::v1::GetPoseRequest* req, + ::viam::service::motion::v1::GetPoseResponse* resp) { + return service->GetPose(ctx, req, resp); + }, this))); +} + +MotionService::Service::~Service() { +} + +::grpc::Status MotionService::Service::Move(::grpc::ServerContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MotionService::Service::MoveSingleComponent(::grpc::ServerContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest* request, ::viam::service::motion::v1::MoveSingleComponentResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MotionService::Service::GetPose(::grpc::ServerContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace service +} // namespace motion +} // namespace v1 + diff --git a/src/gen/service/motion/v1/motion.grpc.pb.h b/src/gen/service/motion/v1/motion.grpc.pb.h new file mode 100644 index 000000000..309913678 --- /dev/null +++ b/src/gen/service/motion/v1/motion.grpc.pb.h @@ -0,0 +1,561 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: service/motion/v1/motion.proto +#ifndef GRPC_service_2fmotion_2fv1_2fmotion_2eproto__INCLUDED +#define GRPC_service_2fmotion_2fv1_2fmotion_2eproto__INCLUDED + +#include "service/motion/v1/motion.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 motion { +namespace v1 { + +// A MotionService declares the gRPC contract for a motion service +class MotionService final { + public: + static constexpr char const* service_full_name() { + return "viam.service.motion.v1.MotionService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::viam::service::motion::v1::MoveResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveResponse>> AsyncMove(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveResponse>>(AsyncMoveRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveResponse>> PrepareAsyncMove(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveResponse>>(PrepareAsyncMoveRaw(context, request, cq)); + } + virtual ::grpc::Status MoveSingleComponent(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest& request, ::viam::service::motion::v1::MoveSingleComponentResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveSingleComponentResponse>> AsyncMoveSingleComponent(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveSingleComponentResponse>>(AsyncMoveSingleComponentRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveSingleComponentResponse>> PrepareAsyncMoveSingleComponent(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveSingleComponentResponse>>(PrepareAsyncMoveSingleComponentRaw(context, request, cq)); + } + virtual ::grpc::Status GetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest& request, ::viam::service::motion::v1::GetPoseResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::GetPoseResponse>> AsyncGetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::GetPoseResponse>>(AsyncGetPoseRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::GetPoseResponse>> PrepareAsyncGetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::GetPoseResponse>>(PrepareAsyncGetPoseRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response, std::function) = 0; + virtual void Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void MoveSingleComponent(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest* request, ::viam::service::motion::v1::MoveSingleComponentResponse* response, std::function) = 0; + virtual void MoveSingleComponent(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest* request, ::viam::service::motion::v1::MoveSingleComponentResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void GetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* response, std::function) = 0; + virtual void GetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* 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::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveResponse>* AsyncMoveRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveResponse>* PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveSingleComponentResponse>* AsyncMoveSingleComponentRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveSingleComponentResponse>* PrepareAsyncMoveSingleComponentRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::GetPoseResponse>* AsyncGetPoseRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::GetPoseResponse>* PrepareAsyncGetPoseRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest& 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()); + ::grpc::Status Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::viam::service::motion::v1::MoveResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveResponse>> AsyncMove(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveResponse>>(AsyncMoveRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveResponse>> PrepareAsyncMove(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveResponse>>(PrepareAsyncMoveRaw(context, request, cq)); + } + ::grpc::Status MoveSingleComponent(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest& request, ::viam::service::motion::v1::MoveSingleComponentResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveSingleComponentResponse>> AsyncMoveSingleComponent(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveSingleComponentResponse>>(AsyncMoveSingleComponentRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveSingleComponentResponse>> PrepareAsyncMoveSingleComponent(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveSingleComponentResponse>>(PrepareAsyncMoveSingleComponentRaw(context, request, cq)); + } + ::grpc::Status GetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest& request, ::viam::service::motion::v1::GetPoseResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::GetPoseResponse>> AsyncGetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::GetPoseResponse>>(AsyncGetPoseRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::GetPoseResponse>> PrepareAsyncGetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::GetPoseResponse>>(PrepareAsyncGetPoseRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response, std::function) override; + void Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void MoveSingleComponent(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest* request, ::viam::service::motion::v1::MoveSingleComponentResponse* response, std::function) override; + void MoveSingleComponent(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest* request, ::viam::service::motion::v1::MoveSingleComponentResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* response, std::function) override; + void GetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* 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::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveResponse>* AsyncMoveRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveResponse>* PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveSingleComponentResponse>* AsyncMoveSingleComponentRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveSingleComponentResponse>* PrepareAsyncMoveSingleComponentRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::GetPoseResponse>* AsyncGetPoseRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::GetPoseResponse>* PrepareAsyncGetPoseRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_Move_; + const ::grpc::internal::RpcMethod rpcmethod_MoveSingleComponent_; + const ::grpc::internal::RpcMethod rpcmethod_GetPose_; + }; + 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(); + virtual ::grpc::Status Move(::grpc::ServerContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response); + virtual ::grpc::Status MoveSingleComponent(::grpc::ServerContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest* request, ::viam::service::motion::v1::MoveSingleComponentResponse* response); + virtual ::grpc::Status GetPose(::grpc::ServerContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* response); + }; + template + class WithAsyncMethod_Move : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Move() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_Move() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::MoveRequest* /*request*/, ::viam::service::motion::v1::MoveResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestMove(::grpc::ServerContext* context, ::viam::service::motion::v1::MoveRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::motion::v1::MoveResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_MoveSingleComponent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_MoveSingleComponent() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_MoveSingleComponent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveSingleComponent(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::MoveSingleComponentRequest* /*request*/, ::viam::service::motion::v1::MoveSingleComponentResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestMoveSingleComponent(::grpc::ServerContext* context, ::viam::service::motion::v1::MoveSingleComponentRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::motion::v1::MoveSingleComponentResponse>* 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 WithAsyncMethod_GetPose : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetPose() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_GetPose() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPose(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::GetPoseRequest* /*request*/, ::viam::service::motion::v1::GetPoseResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetPose(::grpc::ServerContext* context, ::viam::service::motion::v1::GetPoseRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::motion::v1::GetPoseResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_Move > > AsyncService; + template + class WithCallbackMethod_Move : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Move() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::MoveRequest, ::viam::service::motion::v1::MoveResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response) { return this->Move(context, request, response); }));} + void SetMessageAllocatorFor_Move( + ::grpc::MessageAllocator< ::viam::service::motion::v1::MoveRequest, ::viam::service::motion::v1::MoveResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::MoveRequest, ::viam::service::motion::v1::MoveResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Move() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::MoveRequest* /*request*/, ::viam::service::motion::v1::MoveResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Move( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::MoveRequest* /*request*/, ::viam::service::motion::v1::MoveResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_MoveSingleComponent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_MoveSingleComponent() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::MoveSingleComponentRequest, ::viam::service::motion::v1::MoveSingleComponentResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::motion::v1::MoveSingleComponentRequest* request, ::viam::service::motion::v1::MoveSingleComponentResponse* response) { return this->MoveSingleComponent(context, request, response); }));} + void SetMessageAllocatorFor_MoveSingleComponent( + ::grpc::MessageAllocator< ::viam::service::motion::v1::MoveSingleComponentRequest, ::viam::service::motion::v1::MoveSingleComponentResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::MoveSingleComponentRequest, ::viam::service::motion::v1::MoveSingleComponentResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_MoveSingleComponent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveSingleComponent(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::MoveSingleComponentRequest* /*request*/, ::viam::service::motion::v1::MoveSingleComponentResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* MoveSingleComponent( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::MoveSingleComponentRequest* /*request*/, ::viam::service::motion::v1::MoveSingleComponentResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetPose : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetPose() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* response) { return this->GetPose(context, request, response); }));} + void SetMessageAllocatorFor_GetPose( + ::grpc::MessageAllocator< ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetPose() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPose(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::GetPoseRequest* /*request*/, ::viam::service::motion::v1::GetPoseResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetPose( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::GetPoseRequest* /*request*/, ::viam::service::motion::v1::GetPoseResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_Move > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_Move : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Move() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_Move() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::MoveRequest* /*request*/, ::viam::service::motion::v1::MoveResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_MoveSingleComponent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_MoveSingleComponent() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_MoveSingleComponent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveSingleComponent(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::MoveSingleComponentRequest* /*request*/, ::viam::service::motion::v1::MoveSingleComponentResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetPose : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetPose() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_GetPose() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPose(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::GetPoseRequest* /*request*/, ::viam::service::motion::v1::GetPoseResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_Move : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Move() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_Move() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::MoveRequest* /*request*/, ::viam::service::motion::v1::MoveResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestMove(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_MoveSingleComponent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_MoveSingleComponent() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_MoveSingleComponent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveSingleComponent(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::MoveSingleComponentRequest* /*request*/, ::viam::service::motion::v1::MoveSingleComponentResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestMoveSingleComponent(::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 WithRawMethod_GetPose : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetPose() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_GetPose() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPose(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::GetPoseRequest* /*request*/, ::viam::service::motion::v1::GetPoseResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetPose(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_Move : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Move() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Move(context, request, response); })); + } + ~WithRawCallbackMethod_Move() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::MoveRequest* /*request*/, ::viam::service::motion::v1::MoveResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Move( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_MoveSingleComponent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_MoveSingleComponent() { + ::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->MoveSingleComponent(context, request, response); })); + } + ~WithRawCallbackMethod_MoveSingleComponent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status MoveSingleComponent(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::MoveSingleComponentRequest* /*request*/, ::viam::service::motion::v1::MoveSingleComponentResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* MoveSingleComponent( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetPose : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetPose() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPose(context, request, response); })); + } + ~WithRawCallbackMethod_GetPose() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPose(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::GetPoseRequest* /*request*/, ::viam::service::motion::v1::GetPoseResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetPose( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_Move : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Move() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::motion::v1::MoveRequest, ::viam::service::motion::v1::MoveResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::motion::v1::MoveRequest, ::viam::service::motion::v1::MoveResponse>* streamer) { + return this->StreamedMove(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Move() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::MoveRequest* /*request*/, ::viam::service::motion::v1::MoveResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedMove(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::motion::v1::MoveRequest,::viam::service::motion::v1::MoveResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_MoveSingleComponent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_MoveSingleComponent() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::motion::v1::MoveSingleComponentRequest, ::viam::service::motion::v1::MoveSingleComponentResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::motion::v1::MoveSingleComponentRequest, ::viam::service::motion::v1::MoveSingleComponentResponse>* streamer) { + return this->StreamedMoveSingleComponent(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_MoveSingleComponent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status MoveSingleComponent(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::MoveSingleComponentRequest* /*request*/, ::viam::service::motion::v1::MoveSingleComponentResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedMoveSingleComponent(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::motion::v1::MoveSingleComponentRequest,::viam::service::motion::v1::MoveSingleComponentResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetPose : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetPose() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse>* streamer) { + return this->StreamedGetPose(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetPose() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetPose(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::GetPoseRequest* /*request*/, ::viam::service::motion::v1::GetPoseResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetPose(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::motion::v1::GetPoseRequest,::viam::service::motion::v1::GetPoseResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_Move > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_Move > > StreamedService; +}; + +} // namespace v1 +} // namespace motion +} // namespace service +} // namespace viam + + +#endif // GRPC_service_2fmotion_2fv1_2fmotion_2eproto__INCLUDED diff --git a/src/gen/service/motion/v1/motion.pb.cc b/src/gen/service/motion/v1/motion.pb.cc new file mode 100644 index 000000000..846a74542 --- /dev/null +++ b/src/gen/service/motion/v1/motion.pb.cc @@ -0,0 +1,2074 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service/motion/v1/motion.proto + +#include "service/motion/v1/motion.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 motion { +namespace v1 { +PROTOBUF_CONSTEXPR MoveRequest::MoveRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.destination_)*/nullptr + , /*decltype(_impl_.component_name_)*/nullptr + , /*decltype(_impl_.world_state_)*/nullptr + , /*decltype(_impl_.extra_)*/nullptr} {} +struct MoveRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveRequestDefaultTypeInternal() {} + union { + MoveRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveRequestDefaultTypeInternal _MoveRequest_default_instance_; +PROTOBUF_CONSTEXPR MoveResponse::MoveResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.success_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct MoveResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveResponseDefaultTypeInternal() {} + union { + MoveResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveResponseDefaultTypeInternal _MoveResponse_default_instance_; +PROTOBUF_CONSTEXPR MoveSingleComponentRequest::MoveSingleComponentRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.destination_)*/nullptr + , /*decltype(_impl_.component_name_)*/nullptr + , /*decltype(_impl_.world_state_)*/nullptr + , /*decltype(_impl_.extra_)*/nullptr} {} +struct MoveSingleComponentRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveSingleComponentRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveSingleComponentRequestDefaultTypeInternal() {} + union { + MoveSingleComponentRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveSingleComponentRequestDefaultTypeInternal _MoveSingleComponentRequest_default_instance_; +PROTOBUF_CONSTEXPR MoveSingleComponentResponse::MoveSingleComponentResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.success_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct MoveSingleComponentResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveSingleComponentResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveSingleComponentResponseDefaultTypeInternal() {} + union { + MoveSingleComponentResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveSingleComponentResponseDefaultTypeInternal _MoveSingleComponentResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPoseRequest::GetPoseRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.supplemental_transforms_)*/{} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.destination_frame_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.component_name_)*/nullptr + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPoseRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPoseRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPoseRequestDefaultTypeInternal() {} + union { + GetPoseRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPoseRequestDefaultTypeInternal _GetPoseRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPoseResponse::GetPoseResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.pose_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPoseResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPoseResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPoseResponseDefaultTypeInternal() {} + union { + GetPoseResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPoseResponseDefaultTypeInternal _GetPoseResponse_default_instance_; +} // namespace v1 +} // namespace motion +} // namespace service +} // namespace viam +static ::_pb::Metadata file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[6]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_service_2fmotion_2fv1_2fmotion_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fmotion_2fv1_2fmotion_2eproto = nullptr; + +const uint32_t TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, _impl_.destination_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, _impl_.component_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, _impl_.world_state_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, _impl_.extra_), + ~0u, + ~0u, + ~0u, + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveResponse, _impl_.success_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveSingleComponentRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveSingleComponentRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveSingleComponentRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveSingleComponentRequest, _impl_.destination_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveSingleComponentRequest, _impl_.component_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveSingleComponentRequest, _impl_.world_state_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveSingleComponentRequest, _impl_.extra_), + ~0u, + ~0u, + ~0u, + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveSingleComponentResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveSingleComponentResponse, _impl_.success_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, _impl_.component_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, _impl_.destination_frame_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, _impl_.supplemental_transforms_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, _impl_.extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseResponse, _impl_.pose_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, 11, -1, sizeof(::viam::service::motion::v1::MoveRequest)}, + { 16, -1, -1, sizeof(::viam::service::motion::v1::MoveResponse)}, + { 23, 34, -1, sizeof(::viam::service::motion::v1::MoveSingleComponentRequest)}, + { 39, -1, -1, sizeof(::viam::service::motion::v1::MoveSingleComponentResponse)}, + { 46, -1, -1, sizeof(::viam::service::motion::v1::GetPoseRequest)}, + { 57, -1, -1, sizeof(::viam::service::motion::v1::GetPoseResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::service::motion::v1::_MoveRequest_default_instance_._instance, + &::viam::service::motion::v1::_MoveResponse_default_instance_._instance, + &::viam::service::motion::v1::_MoveSingleComponentRequest_default_instance_._instance, + &::viam::service::motion::v1::_MoveSingleComponentResponse_default_instance_._instance, + &::viam::service::motion::v1::_GetPoseRequest_default_instance_._instance, + &::viam::service::motion::v1::_GetPoseResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_service_2fmotion_2fv1_2fmotion_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\036service/motion/v1/motion.proto\022\026viam.s" + "ervice.motion.v1\032\026common/v1/common.proto" + "\032\034google/api/annotations.proto\032\034google/p" + "rotobuf/struct.proto\"\246\002\n\013MoveRequest\022\022\n\004" + "name\030\001 \001(\tR\004name\022=\n\013destination\030\002 \001(\0132\033." + "viam.common.v1.PoseInFrameR\013destination\022" + "C\n\016component_name\030\003 \001(\0132\034.viam.common.v1" + ".ResourceNameR\rcomponentName\022@\n\013world_st" + "ate\030\004 \001(\0132\032.viam.common.v1.WorldStateH\000R" + "\nworldState\210\001\001\022-\n\005extra\030c \001(\0132\027.google.p" + "rotobuf.StructR\005extraB\016\n\014_world_state\"(\n" + "\014MoveResponse\022\030\n\007success\030\001 \001(\010R\007success\"" + "\265\002\n\032MoveSingleComponentRequest\022\022\n\004name\030\001" + " \001(\tR\004name\022=\n\013destination\030\002 \001(\0132\033.viam.c" + "ommon.v1.PoseInFrameR\013destination\022C\n\016com" + "ponent_name\030\003 \001(\0132\034.viam.common.v1.Resou" + "rceNameR\rcomponentName\022@\n\013world_state\030\004 " + "\001(\0132\032.viam.common.v1.WorldStateH\000R\nworld" + "State\210\001\001\022-\n\005extra\030c \001(\0132\027.google.protobu" + "f.StructR\005extraB\016\n\014_world_state\"7\n\033MoveS" + "ingleComponentResponse\022\030\n\007success\030\001 \001(\010R" + "\007success\"\231\002\n\016GetPoseRequest\022\022\n\004name\030\001 \001(" + "\tR\004name\022C\n\016component_name\030\002 \001(\0132\034.viam.c" + "ommon.v1.ResourceNameR\rcomponentName\022+\n\021" + "destination_frame\030\003 \001(\tR\020destinationFram" + "e\022R\n\027supplemental_transforms\030\004 \003(\0132\031.via" + "m.common.v1.TransformR\026supplementalTrans" + "forms\022-\n\005extra\030c \001(\0132\027.google.protobuf.S" + "tructR\005extra\"B\n\017GetPoseResponse\022/\n\004pose\030" + "\001 \001(\0132\033.viam.common.v1.PoseInFrameR\004pose" + "2\334\003\n\rMotionService\022\202\001\n\004Move\022#.viam.servi" + "ce.motion.v1.MoveRequest\032$.viam.service." + "motion.v1.MoveResponse\"/\202\323\344\223\002)\"\'/viam/ap" + "i/v1/service/motion/{name}/move\022\267\001\n\023Move" + "SingleComponent\0222.viam.service.motion.v1" + ".MoveSingleComponentRequest\0323.viam.servi" + "ce.motion.v1.MoveSingleComponentResponse" + "\"7\202\323\344\223\0021\"//viam/api/v1/service/motion/mo" + "vesinglecomponent\022\213\001\n\007GetPose\022&.viam.ser" + "vice.motion.v1.GetPoseRequest\032\'.viam.ser" + "vice.motion.v1.GetPoseResponse\"/\202\323\344\223\002)\022\'" + "/viam/api/v1/service/motion/{name}/poseB" + "\?\n\032com.viam.service.motion.v1Z!go.viam.c" + "om/api/service/motion/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_deps[3] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, +}; +static ::_pbi::once_flag descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto = { + false, false, 1752, descriptor_table_protodef_service_2fmotion_2fv1_2fmotion_2eproto, + "service/motion/v1/motion.proto", + &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_deps, 3, 6, + schemas, file_default_instances, TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets, + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto, file_level_enum_descriptors_service_2fmotion_2fv1_2fmotion_2eproto, + file_level_service_descriptors_service_2fmotion_2fv1_2fmotion_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter() { + return &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fmotion_2fv1_2fmotion_2eproto(&descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto); +namespace viam { +namespace service { +namespace motion { +namespace v1 { + +// =================================================================== + +class MoveRequest::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static const ::viam::common::v1::PoseInFrame& destination(const MoveRequest* msg); + static const ::viam::common::v1::ResourceName& component_name(const MoveRequest* msg); + static const ::viam::common::v1::WorldState& world_state(const MoveRequest* msg); + static void set_has_world_state(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const MoveRequest* msg); +}; + +const ::viam::common::v1::PoseInFrame& +MoveRequest::_Internal::destination(const MoveRequest* msg) { + return *msg->_impl_.destination_; +} +const ::viam::common::v1::ResourceName& +MoveRequest::_Internal::component_name(const MoveRequest* msg) { + return *msg->_impl_.component_name_; +} +const ::viam::common::v1::WorldState& +MoveRequest::_Internal::world_state(const MoveRequest* msg) { + return *msg->_impl_.world_state_; +} +const ::PROTOBUF_NAMESPACE_ID::Struct& +MoveRequest::_Internal::extra(const MoveRequest* msg) { + return *msg->_impl_.extra_; +} +void MoveRequest::clear_destination() { + if (GetArenaForAllocation() == nullptr && _impl_.destination_ != nullptr) { + delete _impl_.destination_; + } + _impl_.destination_ = nullptr; +} +void MoveRequest::clear_component_name() { + if (GetArenaForAllocation() == nullptr && _impl_.component_name_ != nullptr) { + delete _impl_.component_name_; + } + _impl_.component_name_ = nullptr; +} +void MoveRequest::clear_world_state() { + if (_impl_.world_state_ != nullptr) _impl_.world_state_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +void MoveRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +MoveRequest::MoveRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.MoveRequest) +} +MoveRequest::MoveRequest(const MoveRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + MoveRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.name_){} + , decltype(_impl_.destination_){nullptr} + , decltype(_impl_.component_name_){nullptr} + , decltype(_impl_.world_state_){nullptr} + , decltype(_impl_.extra_){nullptr}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_destination()) { + _this->_impl_.destination_ = new ::viam::common::v1::PoseInFrame(*from._impl_.destination_); + } + if (from._internal_has_component_name()) { + _this->_impl_.component_name_ = new ::viam::common::v1::ResourceName(*from._impl_.component_name_); + } + if (from._internal_has_world_state()) { + _this->_impl_.world_state_ = new ::viam::common::v1::WorldState(*from._impl_.world_state_); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.MoveRequest) +} + +inline void MoveRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.name_){} + , decltype(_impl_.destination_){nullptr} + , decltype(_impl_.component_name_){nullptr} + , decltype(_impl_.world_state_){nullptr} + , decltype(_impl_.extra_){nullptr} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +MoveRequest::~MoveRequest() { + // @@protoc_insertion_point(destructor:viam.service.motion.v1.MoveRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void MoveRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.destination_; + if (this != internal_default_instance()) delete _impl_.component_name_; + if (this != internal_default_instance()) delete _impl_.world_state_; + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void MoveRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void MoveRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.MoveRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.destination_ != nullptr) { + delete _impl_.destination_; + } + _impl_.destination_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.component_name_ != nullptr) { + delete _impl_.component_name_; + } + _impl_.component_name_ = nullptr; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(_impl_.world_state_ != nullptr); + _impl_.world_state_->Clear(); + } + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string 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.motion.v1.MoveRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_destination(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_component_name(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_world_state(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + case 99: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_extra(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + _impl_._has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* MoveRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.MoveRequest) + 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.motion.v1.MoveRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; + if (this->_internal_has_destination()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::destination(this), + _Internal::destination(this).GetCachedSize(), target, stream); + } + + // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; + if (this->_internal_has_component_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::component_name(this), + _Internal::component_name(this).GetCachedSize(), target, stream); + } + + // optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; + if (_internal_has_world_state()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::world_state(this), + _Internal::world_state(this).GetCachedSize(), target, stream); + } + + // .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.motion.v1.MoveRequest) + return target; +} + +size_t MoveRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.MoveRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; + if (this->_internal_has_destination()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.destination_); + } + + // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; + if (this->_internal_has_component_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.component_name_); + } + + // optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.world_state_); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MoveRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveRequest::GetClassData() const { return &_class_data_; } + + +void MoveRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MoveRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_destination()) { + _this->_internal_mutable_destination()->::viam::common::v1::PoseInFrame::MergeFrom( + from._internal_destination()); + } + if (from._internal_has_component_name()) { + _this->_internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom( + from._internal_component_name()); + } + if (from._internal_has_world_state()) { + _this->_internal_mutable_world_state()->::viam::common::v1::WorldState::MergeFrom( + from._internal_world_state()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MoveRequest::CopyFrom(const MoveRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.motion.v1.MoveRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoveRequest::IsInitialized() const { + return true; +} + +void MoveRequest::InternalSwap(MoveRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.extra_) + + sizeof(MoveRequest::_impl_.extra_) + - PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.destination_)>( + reinterpret_cast(&_impl_.destination_), + reinterpret_cast(&other->_impl_.destination_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MoveRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[0]); +} + +// =================================================================== + +class MoveResponse::_Internal { + public: +}; + +MoveResponse::MoveResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.MoveResponse) +} +MoveResponse::MoveResponse(const MoveResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + MoveResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.success_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.success_ = from._impl_.success_; + // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.MoveResponse) +} + +inline void MoveResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.success_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +MoveResponse::~MoveResponse() { + // @@protoc_insertion_point(destructor:viam.service.motion.v1.MoveResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void MoveResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void MoveResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void MoveResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.MoveResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.success_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveResponse::_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) { + // bool success = 1 [json_name = "success"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* MoveResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.MoveResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bool success = 1 [json_name = "success"]; + if (this->_internal_success() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_success(), 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.motion.v1.MoveResponse) + return target; +} + +size_t MoveResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.MoveResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bool success = 1 [json_name = "success"]; + if (this->_internal_success() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MoveResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveResponse::GetClassData() const { return &_class_data_; } + + +void MoveResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MoveResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_success() != 0) { + _this->_internal_set_success(from._internal_success()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MoveResponse::CopyFrom(const MoveResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.motion.v1.MoveResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoveResponse::IsInitialized() const { + return true; +} + +void MoveResponse::InternalSwap(MoveResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.success_, other->_impl_.success_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MoveResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[1]); +} + +// =================================================================== + +class MoveSingleComponentRequest::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static const ::viam::common::v1::PoseInFrame& destination(const MoveSingleComponentRequest* msg); + static const ::viam::common::v1::ResourceName& component_name(const MoveSingleComponentRequest* msg); + static const ::viam::common::v1::WorldState& world_state(const MoveSingleComponentRequest* msg); + static void set_has_world_state(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const MoveSingleComponentRequest* msg); +}; + +const ::viam::common::v1::PoseInFrame& +MoveSingleComponentRequest::_Internal::destination(const MoveSingleComponentRequest* msg) { + return *msg->_impl_.destination_; +} +const ::viam::common::v1::ResourceName& +MoveSingleComponentRequest::_Internal::component_name(const MoveSingleComponentRequest* msg) { + return *msg->_impl_.component_name_; +} +const ::viam::common::v1::WorldState& +MoveSingleComponentRequest::_Internal::world_state(const MoveSingleComponentRequest* msg) { + return *msg->_impl_.world_state_; +} +const ::PROTOBUF_NAMESPACE_ID::Struct& +MoveSingleComponentRequest::_Internal::extra(const MoveSingleComponentRequest* msg) { + return *msg->_impl_.extra_; +} +void MoveSingleComponentRequest::clear_destination() { + if (GetArenaForAllocation() == nullptr && _impl_.destination_ != nullptr) { + delete _impl_.destination_; + } + _impl_.destination_ = nullptr; +} +void MoveSingleComponentRequest::clear_component_name() { + if (GetArenaForAllocation() == nullptr && _impl_.component_name_ != nullptr) { + delete _impl_.component_name_; + } + _impl_.component_name_ = nullptr; +} +void MoveSingleComponentRequest::clear_world_state() { + if (_impl_.world_state_ != nullptr) _impl_.world_state_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +void MoveSingleComponentRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +MoveSingleComponentRequest::MoveSingleComponentRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.MoveSingleComponentRequest) +} +MoveSingleComponentRequest::MoveSingleComponentRequest(const MoveSingleComponentRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + MoveSingleComponentRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.name_){} + , decltype(_impl_.destination_){nullptr} + , decltype(_impl_.component_name_){nullptr} + , decltype(_impl_.world_state_){nullptr} + , decltype(_impl_.extra_){nullptr}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_destination()) { + _this->_impl_.destination_ = new ::viam::common::v1::PoseInFrame(*from._impl_.destination_); + } + if (from._internal_has_component_name()) { + _this->_impl_.component_name_ = new ::viam::common::v1::ResourceName(*from._impl_.component_name_); + } + if (from._internal_has_world_state()) { + _this->_impl_.world_state_ = new ::viam::common::v1::WorldState(*from._impl_.world_state_); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.MoveSingleComponentRequest) +} + +inline void MoveSingleComponentRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.name_){} + , decltype(_impl_.destination_){nullptr} + , decltype(_impl_.component_name_){nullptr} + , decltype(_impl_.world_state_){nullptr} + , decltype(_impl_.extra_){nullptr} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +MoveSingleComponentRequest::~MoveSingleComponentRequest() { + // @@protoc_insertion_point(destructor:viam.service.motion.v1.MoveSingleComponentRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void MoveSingleComponentRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.destination_; + if (this != internal_default_instance()) delete _impl_.component_name_; + if (this != internal_default_instance()) delete _impl_.world_state_; + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void MoveSingleComponentRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void MoveSingleComponentRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.MoveSingleComponentRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.destination_ != nullptr) { + delete _impl_.destination_; + } + _impl_.destination_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.component_name_ != nullptr) { + delete _impl_.component_name_; + } + _impl_.component_name_ = nullptr; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(_impl_.world_state_ != nullptr); + _impl_.world_state_->Clear(); + } + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveSingleComponentRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string 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.motion.v1.MoveSingleComponentRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_destination(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_component_name(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_world_state(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + case 99: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_extra(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + _impl_._has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* MoveSingleComponentRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.MoveSingleComponentRequest) + 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.motion.v1.MoveSingleComponentRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; + if (this->_internal_has_destination()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::destination(this), + _Internal::destination(this).GetCachedSize(), target, stream); + } + + // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; + if (this->_internal_has_component_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::component_name(this), + _Internal::component_name(this).GetCachedSize(), target, stream); + } + + // optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; + if (_internal_has_world_state()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::world_state(this), + _Internal::world_state(this).GetCachedSize(), target, stream); + } + + // .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.motion.v1.MoveSingleComponentRequest) + return target; +} + +size_t MoveSingleComponentRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.MoveSingleComponentRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; + if (this->_internal_has_destination()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.destination_); + } + + // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; + if (this->_internal_has_component_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.component_name_); + } + + // optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.world_state_); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveSingleComponentRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MoveSingleComponentRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveSingleComponentRequest::GetClassData() const { return &_class_data_; } + + +void MoveSingleComponentRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MoveSingleComponentRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_destination()) { + _this->_internal_mutable_destination()->::viam::common::v1::PoseInFrame::MergeFrom( + from._internal_destination()); + } + if (from._internal_has_component_name()) { + _this->_internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom( + from._internal_component_name()); + } + if (from._internal_has_world_state()) { + _this->_internal_mutable_world_state()->::viam::common::v1::WorldState::MergeFrom( + from._internal_world_state()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MoveSingleComponentRequest::CopyFrom(const MoveSingleComponentRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.motion.v1.MoveSingleComponentRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoveSingleComponentRequest::IsInitialized() const { + return true; +} + +void MoveSingleComponentRequest::InternalSwap(MoveSingleComponentRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MoveSingleComponentRequest, _impl_.extra_) + + sizeof(MoveSingleComponentRequest::_impl_.extra_) + - PROTOBUF_FIELD_OFFSET(MoveSingleComponentRequest, _impl_.destination_)>( + reinterpret_cast(&_impl_.destination_), + reinterpret_cast(&other->_impl_.destination_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MoveSingleComponentRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[2]); +} + +// =================================================================== + +class MoveSingleComponentResponse::_Internal { + public: +}; + +MoveSingleComponentResponse::MoveSingleComponentResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.MoveSingleComponentResponse) +} +MoveSingleComponentResponse::MoveSingleComponentResponse(const MoveSingleComponentResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + MoveSingleComponentResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.success_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.success_ = from._impl_.success_; + // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.MoveSingleComponentResponse) +} + +inline void MoveSingleComponentResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.success_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +MoveSingleComponentResponse::~MoveSingleComponentResponse() { + // @@protoc_insertion_point(destructor:viam.service.motion.v1.MoveSingleComponentResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void MoveSingleComponentResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void MoveSingleComponentResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void MoveSingleComponentResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.MoveSingleComponentResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.success_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveSingleComponentResponse::_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) { + // bool success = 1 [json_name = "success"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* MoveSingleComponentResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.MoveSingleComponentResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bool success = 1 [json_name = "success"]; + if (this->_internal_success() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_success(), 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.motion.v1.MoveSingleComponentResponse) + return target; +} + +size_t MoveSingleComponentResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.MoveSingleComponentResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bool success = 1 [json_name = "success"]; + if (this->_internal_success() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveSingleComponentResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MoveSingleComponentResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveSingleComponentResponse::GetClassData() const { return &_class_data_; } + + +void MoveSingleComponentResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MoveSingleComponentResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_success() != 0) { + _this->_internal_set_success(from._internal_success()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MoveSingleComponentResponse::CopyFrom(const MoveSingleComponentResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.motion.v1.MoveSingleComponentResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoveSingleComponentResponse::IsInitialized() const { + return true; +} + +void MoveSingleComponentResponse::InternalSwap(MoveSingleComponentResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.success_, other->_impl_.success_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MoveSingleComponentResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[3]); +} + +// =================================================================== + +class GetPoseRequest::_Internal { + public: + static const ::viam::common::v1::ResourceName& component_name(const GetPoseRequest* msg); + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPoseRequest* msg); +}; + +const ::viam::common::v1::ResourceName& +GetPoseRequest::_Internal::component_name(const GetPoseRequest* msg) { + return *msg->_impl_.component_name_; +} +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPoseRequest::_Internal::extra(const GetPoseRequest* msg) { + return *msg->_impl_.extra_; +} +void GetPoseRequest::clear_component_name() { + if (GetArenaForAllocation() == nullptr && _impl_.component_name_ != nullptr) { + delete _impl_.component_name_; + } + _impl_.component_name_ = nullptr; +} +void GetPoseRequest::clear_supplemental_transforms() { + _impl_.supplemental_transforms_.Clear(); +} +void GetPoseRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +GetPoseRequest::GetPoseRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.GetPoseRequest) +} +GetPoseRequest::GetPoseRequest(const GetPoseRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPoseRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.supplemental_transforms_){from._impl_.supplemental_transforms_} + , decltype(_impl_.name_){} + , decltype(_impl_.destination_frame_){} + , decltype(_impl_.component_name_){nullptr} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.destination_frame_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.destination_frame_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_destination_frame().empty()) { + _this->_impl_.destination_frame_.Set(from._internal_destination_frame(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_component_name()) { + _this->_impl_.component_name_ = new ::viam::common::v1::ResourceName(*from._impl_.component_name_); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.GetPoseRequest) +} + +inline void GetPoseRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.supplemental_transforms_){arena} + , decltype(_impl_.name_){} + , decltype(_impl_.destination_frame_){} + , decltype(_impl_.component_name_){nullptr} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.destination_frame_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.destination_frame_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetPoseRequest::~GetPoseRequest() { + // @@protoc_insertion_point(destructor:viam.service.motion.v1.GetPoseRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPoseRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.supplemental_transforms_.~RepeatedPtrField(); + _impl_.name_.Destroy(); + _impl_.destination_frame_.Destroy(); + if (this != internal_default_instance()) delete _impl_.component_name_; + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void GetPoseRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPoseRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.GetPoseRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.supplemental_transforms_.Clear(); + _impl_.name_.ClearToEmpty(); + _impl_.destination_frame_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.component_name_ != nullptr) { + delete _impl_.component_name_; + } + _impl_.component_name_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPoseRequest::_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.motion.v1.GetPoseRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_component_name(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string destination_frame = 3 [json_name = "destinationFrame"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_destination_frame(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.GetPoseRequest.destination_frame")); + } else + goto handle_unusual; + continue; + // repeated .viam.common.v1.Transform supplemental_transforms = 4 [json_name = "supplementalTransforms"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_supplemental_transforms(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + case 99: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_extra(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetPoseRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.GetPoseRequest) + 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.motion.v1.GetPoseRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + if (this->_internal_has_component_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::component_name(this), + _Internal::component_name(this).GetCachedSize(), target, stream); + } + + // string destination_frame = 3 [json_name = "destinationFrame"]; + if (!this->_internal_destination_frame().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_destination_frame().data(), static_cast(this->_internal_destination_frame().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.GetPoseRequest.destination_frame"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_destination_frame(), target); + } + + // repeated .viam.common.v1.Transform supplemental_transforms = 4 [json_name = "supplementalTransforms"]; + for (unsigned i = 0, + n = static_cast(this->_internal_supplemental_transforms_size()); i < n; i++) { + const auto& repfield = this->_internal_supplemental_transforms(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); + } + + // .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.motion.v1.GetPoseRequest) + return target; +} + +size_t GetPoseRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.GetPoseRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.common.v1.Transform supplemental_transforms = 4 [json_name = "supplementalTransforms"]; + total_size += 1UL * this->_internal_supplemental_transforms_size(); + for (const auto& msg : this->_impl_.supplemental_transforms_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // string destination_frame = 3 [json_name = "destinationFrame"]; + if (!this->_internal_destination_frame().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_destination_frame()); + } + + // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + if (this->_internal_has_component_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.component_name_); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPoseRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPoseRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPoseRequest::GetClassData() const { return &_class_data_; } + + +void GetPoseRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.GetPoseRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.supplemental_transforms_.MergeFrom(from._impl_.supplemental_transforms_); + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_destination_frame().empty()) { + _this->_internal_set_destination_frame(from._internal_destination_frame()); + } + if (from._internal_has_component_name()) { + _this->_internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom( + from._internal_component_name()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPoseRequest::CopyFrom(const GetPoseRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.motion.v1.GetPoseRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPoseRequest::IsInitialized() const { + return true; +} + +void GetPoseRequest::InternalSwap(GetPoseRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.supplemental_transforms_.InternalSwap(&other->_impl_.supplemental_transforms_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.destination_frame_, lhs_arena, + &other->_impl_.destination_frame_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetPoseRequest, _impl_.extra_) + + sizeof(GetPoseRequest::_impl_.extra_) + - PROTOBUF_FIELD_OFFSET(GetPoseRequest, _impl_.component_name_)>( + reinterpret_cast(&_impl_.component_name_), + reinterpret_cast(&other->_impl_.component_name_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPoseRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[4]); +} + +// =================================================================== + +class GetPoseResponse::_Internal { + public: + static const ::viam::common::v1::PoseInFrame& pose(const GetPoseResponse* msg); +}; + +const ::viam::common::v1::PoseInFrame& +GetPoseResponse::_Internal::pose(const GetPoseResponse* msg) { + return *msg->_impl_.pose_; +} +void GetPoseResponse::clear_pose() { + if (GetArenaForAllocation() == nullptr && _impl_.pose_ != nullptr) { + delete _impl_.pose_; + } + _impl_.pose_ = nullptr; +} +GetPoseResponse::GetPoseResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.GetPoseResponse) +} +GetPoseResponse::GetPoseResponse(const GetPoseResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPoseResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.pose_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_pose()) { + _this->_impl_.pose_ = new ::viam::common::v1::PoseInFrame(*from._impl_.pose_); + } + // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.GetPoseResponse) +} + +inline void GetPoseResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.pose_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetPoseResponse::~GetPoseResponse() { + // @@protoc_insertion_point(destructor:viam.service.motion.v1.GetPoseResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPoseResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.pose_; +} + +void GetPoseResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPoseResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.GetPoseResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.pose_ != nullptr) { + delete _impl_.pose_; + } + _impl_.pose_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPoseResponse::_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) { + // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_pose(), 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* GetPoseResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.GetPoseResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; + if (this->_internal_has_pose()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::pose(this), + _Internal::pose(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.motion.v1.GetPoseResponse) + return target; +} + +size_t GetPoseResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.GetPoseResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; + if (this->_internal_has_pose()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.pose_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPoseResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPoseResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPoseResponse::GetClassData() const { return &_class_data_; } + + +void GetPoseResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.GetPoseResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_pose()) { + _this->_internal_mutable_pose()->::viam::common::v1::PoseInFrame::MergeFrom( + from._internal_pose()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPoseResponse::CopyFrom(const GetPoseResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.motion.v1.GetPoseResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPoseResponse::IsInitialized() const { + return true; +} + +void GetPoseResponse::InternalSwap(GetPoseResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.pose_, other->_impl_.pose_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPoseResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[5]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace motion +} // namespace service +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::MoveRequest* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::MoveRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::MoveRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::MoveResponse* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::MoveResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::MoveResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::MoveSingleComponentRequest* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::MoveSingleComponentRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::MoveSingleComponentRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::MoveSingleComponentResponse* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::MoveSingleComponentResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::MoveSingleComponentResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::GetPoseRequest* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::GetPoseRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::GetPoseRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::GetPoseResponse* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::GetPoseResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::GetPoseResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/service/motion/v1/motion.pb.h b/src/gen/service/motion/v1/motion.pb.h new file mode 100644 index 000000000..2e58128dd --- /dev/null +++ b/src/gen/service/motion/v1/motion.pb.h @@ -0,0 +1,2510 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service/motion/v1/motion.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fmotion_2fv1_2fmotion_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_service_2fmotion_2fv1_2fmotion_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_service_2fmotion_2fv1_2fmotion_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_service_2fmotion_2fv1_2fmotion_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto; +namespace viam { +namespace service { +namespace motion { +namespace v1 { +class GetPoseRequest; +struct GetPoseRequestDefaultTypeInternal; +extern GetPoseRequestDefaultTypeInternal _GetPoseRequest_default_instance_; +class GetPoseResponse; +struct GetPoseResponseDefaultTypeInternal; +extern GetPoseResponseDefaultTypeInternal _GetPoseResponse_default_instance_; +class MoveRequest; +struct MoveRequestDefaultTypeInternal; +extern MoveRequestDefaultTypeInternal _MoveRequest_default_instance_; +class MoveResponse; +struct MoveResponseDefaultTypeInternal; +extern MoveResponseDefaultTypeInternal _MoveResponse_default_instance_; +class MoveSingleComponentRequest; +struct MoveSingleComponentRequestDefaultTypeInternal; +extern MoveSingleComponentRequestDefaultTypeInternal _MoveSingleComponentRequest_default_instance_; +class MoveSingleComponentResponse; +struct MoveSingleComponentResponseDefaultTypeInternal; +extern MoveSingleComponentResponseDefaultTypeInternal _MoveSingleComponentResponse_default_instance_; +} // namespace v1 +} // namespace motion +} // namespace service +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::service::motion::v1::GetPoseRequest* Arena::CreateMaybeMessage<::viam::service::motion::v1::GetPoseRequest>(Arena*); +template<> ::viam::service::motion::v1::GetPoseResponse* Arena::CreateMaybeMessage<::viam::service::motion::v1::GetPoseResponse>(Arena*); +template<> ::viam::service::motion::v1::MoveRequest* Arena::CreateMaybeMessage<::viam::service::motion::v1::MoveRequest>(Arena*); +template<> ::viam::service::motion::v1::MoveResponse* Arena::CreateMaybeMessage<::viam::service::motion::v1::MoveResponse>(Arena*); +template<> ::viam::service::motion::v1::MoveSingleComponentRequest* Arena::CreateMaybeMessage<::viam::service::motion::v1::MoveSingleComponentRequest>(Arena*); +template<> ::viam::service::motion::v1::MoveSingleComponentResponse* Arena::CreateMaybeMessage<::viam::service::motion::v1::MoveSingleComponentResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace service { +namespace motion { +namespace v1 { + +// =================================================================== + +class MoveRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveRequest) */ { + public: + inline MoveRequest() : MoveRequest(nullptr) {} + ~MoveRequest() override; + explicit PROTOBUF_CONSTEXPR MoveRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MoveRequest(const MoveRequest& from); + MoveRequest(MoveRequest&& from) noexcept + : MoveRequest() { + *this = ::std::move(from); + } + + inline MoveRequest& operator=(const MoveRequest& from) { + CopyFrom(from); + return *this; + } + inline MoveRequest& operator=(MoveRequest&& 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 MoveRequest& default_instance() { + return *internal_default_instance(); + } + static inline const MoveRequest* internal_default_instance() { + return reinterpret_cast( + &_MoveRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(MoveRequest& a, MoveRequest& b) { + a.Swap(&b); + } + inline void Swap(MoveRequest* 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(MoveRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MoveRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MoveRequest& from) { + MoveRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoveRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.MoveRequest"; + } + protected: + explicit MoveRequest(::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, + kDestinationFieldNumber = 2, + kComponentNameFieldNumber = 3, + kWorldStateFieldNumber = 4, + 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: + + // .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; + bool has_destination() const; + private: + bool _internal_has_destination() const; + public: + void clear_destination(); + const ::viam::common::v1::PoseInFrame& destination() const; + PROTOBUF_NODISCARD ::viam::common::v1::PoseInFrame* release_destination(); + ::viam::common::v1::PoseInFrame* mutable_destination(); + void set_allocated_destination(::viam::common::v1::PoseInFrame* destination); + private: + const ::viam::common::v1::PoseInFrame& _internal_destination() const; + ::viam::common::v1::PoseInFrame* _internal_mutable_destination(); + public: + void unsafe_arena_set_allocated_destination( + ::viam::common::v1::PoseInFrame* destination); + ::viam::common::v1::PoseInFrame* unsafe_arena_release_destination(); + + // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; + bool has_component_name() const; + private: + bool _internal_has_component_name() const; + public: + void clear_component_name(); + const ::viam::common::v1::ResourceName& component_name() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); + ::viam::common::v1::ResourceName* mutable_component_name(); + void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); + private: + const ::viam::common::v1::ResourceName& _internal_component_name() const; + ::viam::common::v1::ResourceName* _internal_mutable_component_name(); + public: + void unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name); + ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + + // optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; + bool has_world_state() const; + private: + bool _internal_has_world_state() const; + public: + void clear_world_state(); + const ::viam::common::v1::WorldState& world_state() const; + PROTOBUF_NODISCARD ::viam::common::v1::WorldState* release_world_state(); + ::viam::common::v1::WorldState* mutable_world_state(); + void set_allocated_world_state(::viam::common::v1::WorldState* world_state); + private: + const ::viam::common::v1::WorldState& _internal_world_state() const; + ::viam::common::v1::WorldState* _internal_mutable_world_state(); + public: + void unsafe_arena_set_allocated_world_state( + ::viam::common::v1::WorldState* world_state); + ::viam::common::v1::WorldState* unsafe_arena_release_world_state(); + + // .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.motion.v1.MoveRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::viam::common::v1::PoseInFrame* destination_; + ::viam::common::v1::ResourceName* component_name_; + ::viam::common::v1::WorldState* world_state_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; +}; +// ------------------------------------------------------------------- + +class MoveResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveResponse) */ { + public: + inline MoveResponse() : MoveResponse(nullptr) {} + ~MoveResponse() override; + explicit PROTOBUF_CONSTEXPR MoveResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MoveResponse(const MoveResponse& from); + MoveResponse(MoveResponse&& from) noexcept + : MoveResponse() { + *this = ::std::move(from); + } + + inline MoveResponse& operator=(const MoveResponse& from) { + CopyFrom(from); + return *this; + } + inline MoveResponse& operator=(MoveResponse&& 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 MoveResponse& default_instance() { + return *internal_default_instance(); + } + static inline const MoveResponse* internal_default_instance() { + return reinterpret_cast( + &_MoveResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(MoveResponse& a, MoveResponse& b) { + a.Swap(&b); + } + inline void Swap(MoveResponse* 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(MoveResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MoveResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MoveResponse& from) { + MoveResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoveResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.MoveResponse"; + } + protected: + explicit MoveResponse(::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 { + kSuccessFieldNumber = 1, + }; + // bool success = 1 [json_name = "success"]; + void clear_success(); + bool success() const; + void set_success(bool value); + private: + bool _internal_success() const; + void _internal_set_success(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MoveResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + bool success_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; +}; +// ------------------------------------------------------------------- + +class MoveSingleComponentRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveSingleComponentRequest) */ { + public: + inline MoveSingleComponentRequest() : MoveSingleComponentRequest(nullptr) {} + ~MoveSingleComponentRequest() override; + explicit PROTOBUF_CONSTEXPR MoveSingleComponentRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MoveSingleComponentRequest(const MoveSingleComponentRequest& from); + MoveSingleComponentRequest(MoveSingleComponentRequest&& from) noexcept + : MoveSingleComponentRequest() { + *this = ::std::move(from); + } + + inline MoveSingleComponentRequest& operator=(const MoveSingleComponentRequest& from) { + CopyFrom(from); + return *this; + } + inline MoveSingleComponentRequest& operator=(MoveSingleComponentRequest&& 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 MoveSingleComponentRequest& default_instance() { + return *internal_default_instance(); + } + static inline const MoveSingleComponentRequest* internal_default_instance() { + return reinterpret_cast( + &_MoveSingleComponentRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(MoveSingleComponentRequest& a, MoveSingleComponentRequest& b) { + a.Swap(&b); + } + inline void Swap(MoveSingleComponentRequest* 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(MoveSingleComponentRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MoveSingleComponentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveSingleComponentRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MoveSingleComponentRequest& from) { + MoveSingleComponentRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoveSingleComponentRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.MoveSingleComponentRequest"; + } + protected: + explicit MoveSingleComponentRequest(::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, + kDestinationFieldNumber = 2, + kComponentNameFieldNumber = 3, + kWorldStateFieldNumber = 4, + 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: + + // .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; + bool has_destination() const; + private: + bool _internal_has_destination() const; + public: + void clear_destination(); + const ::viam::common::v1::PoseInFrame& destination() const; + PROTOBUF_NODISCARD ::viam::common::v1::PoseInFrame* release_destination(); + ::viam::common::v1::PoseInFrame* mutable_destination(); + void set_allocated_destination(::viam::common::v1::PoseInFrame* destination); + private: + const ::viam::common::v1::PoseInFrame& _internal_destination() const; + ::viam::common::v1::PoseInFrame* _internal_mutable_destination(); + public: + void unsafe_arena_set_allocated_destination( + ::viam::common::v1::PoseInFrame* destination); + ::viam::common::v1::PoseInFrame* unsafe_arena_release_destination(); + + // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; + bool has_component_name() const; + private: + bool _internal_has_component_name() const; + public: + void clear_component_name(); + const ::viam::common::v1::ResourceName& component_name() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); + ::viam::common::v1::ResourceName* mutable_component_name(); + void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); + private: + const ::viam::common::v1::ResourceName& _internal_component_name() const; + ::viam::common::v1::ResourceName* _internal_mutable_component_name(); + public: + void unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name); + ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + + // optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; + bool has_world_state() const; + private: + bool _internal_has_world_state() const; + public: + void clear_world_state(); + const ::viam::common::v1::WorldState& world_state() const; + PROTOBUF_NODISCARD ::viam::common::v1::WorldState* release_world_state(); + ::viam::common::v1::WorldState* mutable_world_state(); + void set_allocated_world_state(::viam::common::v1::WorldState* world_state); + private: + const ::viam::common::v1::WorldState& _internal_world_state() const; + ::viam::common::v1::WorldState* _internal_mutable_world_state(); + public: + void unsafe_arena_set_allocated_world_state( + ::viam::common::v1::WorldState* world_state); + ::viam::common::v1::WorldState* unsafe_arena_release_world_state(); + + // .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.motion.v1.MoveSingleComponentRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::viam::common::v1::PoseInFrame* destination_; + ::viam::common::v1::ResourceName* component_name_; + ::viam::common::v1::WorldState* world_state_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; +}; +// ------------------------------------------------------------------- + +class MoveSingleComponentResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveSingleComponentResponse) */ { + public: + inline MoveSingleComponentResponse() : MoveSingleComponentResponse(nullptr) {} + ~MoveSingleComponentResponse() override; + explicit PROTOBUF_CONSTEXPR MoveSingleComponentResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MoveSingleComponentResponse(const MoveSingleComponentResponse& from); + MoveSingleComponentResponse(MoveSingleComponentResponse&& from) noexcept + : MoveSingleComponentResponse() { + *this = ::std::move(from); + } + + inline MoveSingleComponentResponse& operator=(const MoveSingleComponentResponse& from) { + CopyFrom(from); + return *this; + } + inline MoveSingleComponentResponse& operator=(MoveSingleComponentResponse&& 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 MoveSingleComponentResponse& default_instance() { + return *internal_default_instance(); + } + static inline const MoveSingleComponentResponse* internal_default_instance() { + return reinterpret_cast( + &_MoveSingleComponentResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(MoveSingleComponentResponse& a, MoveSingleComponentResponse& b) { + a.Swap(&b); + } + inline void Swap(MoveSingleComponentResponse* 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(MoveSingleComponentResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MoveSingleComponentResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveSingleComponentResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MoveSingleComponentResponse& from) { + MoveSingleComponentResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoveSingleComponentResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.MoveSingleComponentResponse"; + } + protected: + explicit MoveSingleComponentResponse(::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 { + kSuccessFieldNumber = 1, + }; + // bool success = 1 [json_name = "success"]; + void clear_success(); + bool success() const; + void set_success(bool value); + private: + bool _internal_success() const; + void _internal_set_success(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MoveSingleComponentResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + bool success_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPoseRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.GetPoseRequest) */ { + public: + inline GetPoseRequest() : GetPoseRequest(nullptr) {} + ~GetPoseRequest() override; + explicit PROTOBUF_CONSTEXPR GetPoseRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPoseRequest(const GetPoseRequest& from); + GetPoseRequest(GetPoseRequest&& from) noexcept + : GetPoseRequest() { + *this = ::std::move(from); + } + + inline GetPoseRequest& operator=(const GetPoseRequest& from) { + CopyFrom(from); + return *this; + } + inline GetPoseRequest& operator=(GetPoseRequest&& 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 GetPoseRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetPoseRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPoseRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(GetPoseRequest& a, GetPoseRequest& b) { + a.Swap(&b); + } + inline void Swap(GetPoseRequest* 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(GetPoseRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPoseRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPoseRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPoseRequest& from) { + GetPoseRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPoseRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.GetPoseRequest"; + } + protected: + explicit GetPoseRequest(::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 { + kSupplementalTransformsFieldNumber = 4, + kNameFieldNumber = 1, + kDestinationFrameFieldNumber = 3, + kComponentNameFieldNumber = 2, + kExtraFieldNumber = 99, + }; + // repeated .viam.common.v1.Transform supplemental_transforms = 4 [json_name = "supplementalTransforms"]; + int supplemental_transforms_size() const; + private: + int _internal_supplemental_transforms_size() const; + public: + void clear_supplemental_transforms(); + ::viam::common::v1::Transform* mutable_supplemental_transforms(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >* + mutable_supplemental_transforms(); + private: + const ::viam::common::v1::Transform& _internal_supplemental_transforms(int index) const; + ::viam::common::v1::Transform* _internal_add_supplemental_transforms(); + public: + const ::viam::common::v1::Transform& supplemental_transforms(int index) const; + ::viam::common::v1::Transform* add_supplemental_transforms(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >& + supplemental_transforms() const; + + // 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 destination_frame = 3 [json_name = "destinationFrame"]; + void clear_destination_frame(); + const std::string& destination_frame() const; + template + void set_destination_frame(ArgT0&& arg0, ArgT... args); + std::string* mutable_destination_frame(); + PROTOBUF_NODISCARD std::string* release_destination_frame(); + void set_allocated_destination_frame(std::string* destination_frame); + private: + const std::string& _internal_destination_frame() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_destination_frame(const std::string& value); + std::string* _internal_mutable_destination_frame(); + public: + + // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + bool has_component_name() const; + private: + bool _internal_has_component_name() const; + public: + void clear_component_name(); + const ::viam::common::v1::ResourceName& component_name() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); + ::viam::common::v1::ResourceName* mutable_component_name(); + void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); + private: + const ::viam::common::v1::ResourceName& _internal_component_name() const; + ::viam::common::v1::ResourceName* _internal_mutable_component_name(); + public: + void unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name); + ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + + // .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.motion.v1.GetPoseRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform > supplemental_transforms_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr destination_frame_; + ::viam::common::v1::ResourceName* component_name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPoseResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.GetPoseResponse) */ { + public: + inline GetPoseResponse() : GetPoseResponse(nullptr) {} + ~GetPoseResponse() override; + explicit PROTOBUF_CONSTEXPR GetPoseResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPoseResponse(const GetPoseResponse& from); + GetPoseResponse(GetPoseResponse&& from) noexcept + : GetPoseResponse() { + *this = ::std::move(from); + } + + inline GetPoseResponse& operator=(const GetPoseResponse& from) { + CopyFrom(from); + return *this; + } + inline GetPoseResponse& operator=(GetPoseResponse&& 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 GetPoseResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetPoseResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPoseResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(GetPoseResponse& a, GetPoseResponse& b) { + a.Swap(&b); + } + inline void Swap(GetPoseResponse* 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(GetPoseResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPoseResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPoseResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPoseResponse& from) { + GetPoseResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPoseResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.GetPoseResponse"; + } + protected: + explicit GetPoseResponse(::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 { + kPoseFieldNumber = 1, + }; + // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; + bool has_pose() const; + private: + bool _internal_has_pose() const; + public: + void clear_pose(); + const ::viam::common::v1::PoseInFrame& pose() const; + PROTOBUF_NODISCARD ::viam::common::v1::PoseInFrame* release_pose(); + ::viam::common::v1::PoseInFrame* mutable_pose(); + void set_allocated_pose(::viam::common::v1::PoseInFrame* pose); + private: + const ::viam::common::v1::PoseInFrame& _internal_pose() const; + ::viam::common::v1::PoseInFrame* _internal_mutable_pose(); + public: + void unsafe_arena_set_allocated_pose( + ::viam::common::v1::PoseInFrame* pose); + ::viam::common::v1::PoseInFrame* unsafe_arena_release_pose(); + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.GetPoseResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::common::v1::PoseInFrame* pose_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// MoveRequest + +// string name = 1 [json_name = "name"]; +inline void MoveRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& MoveRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void MoveRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveRequest.name) +} +inline std::string* MoveRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.name) + return _s; +} +inline const std::string& MoveRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void MoveRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* MoveRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* MoveRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.name) + return _impl_.name_.Release(); +} +inline void MoveRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.name) +} + +// .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; +inline bool MoveRequest::_internal_has_destination() const { + return this != internal_default_instance() && _impl_.destination_ != nullptr; +} +inline bool MoveRequest::has_destination() const { + return _internal_has_destination(); +} +inline const ::viam::common::v1::PoseInFrame& MoveRequest::_internal_destination() const { + const ::viam::common::v1::PoseInFrame* p = _impl_.destination_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_PoseInFrame_default_instance_); +} +inline const ::viam::common::v1::PoseInFrame& MoveRequest::destination() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.destination) + return _internal_destination(); +} +inline void MoveRequest::unsafe_arena_set_allocated_destination( + ::viam::common::v1::PoseInFrame* destination) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.destination_); + } + _impl_.destination_ = destination; + if (destination) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveRequest.destination) +} +inline ::viam::common::v1::PoseInFrame* MoveRequest::release_destination() { + + ::viam::common::v1::PoseInFrame* temp = _impl_.destination_; + _impl_.destination_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::PoseInFrame* MoveRequest::unsafe_arena_release_destination() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.destination) + + ::viam::common::v1::PoseInFrame* temp = _impl_.destination_; + _impl_.destination_ = nullptr; + return temp; +} +inline ::viam::common::v1::PoseInFrame* MoveRequest::_internal_mutable_destination() { + + if (_impl_.destination_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::PoseInFrame>(GetArenaForAllocation()); + _impl_.destination_ = p; + } + return _impl_.destination_; +} +inline ::viam::common::v1::PoseInFrame* MoveRequest::mutable_destination() { + ::viam::common::v1::PoseInFrame* _msg = _internal_mutable_destination(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.destination) + return _msg; +} +inline void MoveRequest::set_allocated_destination(::viam::common::v1::PoseInFrame* destination) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.destination_); + } + if (destination) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(destination)); + if (message_arena != submessage_arena) { + destination = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, destination, submessage_arena); + } + + } else { + + } + _impl_.destination_ = destination; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.destination) +} + +// .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; +inline bool MoveRequest::_internal_has_component_name() const { + return this != internal_default_instance() && _impl_.component_name_ != nullptr; +} +inline bool MoveRequest::has_component_name() const { + return _internal_has_component_name(); +} +inline const ::viam::common::v1::ResourceName& MoveRequest::_internal_component_name() const { + const ::viam::common::v1::ResourceName* p = _impl_.component_name_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); +} +inline const ::viam::common::v1::ResourceName& MoveRequest::component_name() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.component_name) + return _internal_component_name(); +} +inline void MoveRequest::unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.component_name_); + } + _impl_.component_name_ = component_name; + if (component_name) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveRequest.component_name) +} +inline ::viam::common::v1::ResourceName* MoveRequest::release_component_name() { + + ::viam::common::v1::ResourceName* temp = _impl_.component_name_; + _impl_.component_name_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::ResourceName* MoveRequest::unsafe_arena_release_component_name() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.component_name) + + ::viam::common::v1::ResourceName* temp = _impl_.component_name_; + _impl_.component_name_ = nullptr; + return temp; +} +inline ::viam::common::v1::ResourceName* MoveRequest::_internal_mutable_component_name() { + + if (_impl_.component_name_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + _impl_.component_name_ = p; + } + return _impl_.component_name_; +} +inline ::viam::common::v1::ResourceName* MoveRequest::mutable_component_name() { + ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.component_name) + return _msg; +} +inline void MoveRequest::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.component_name_); + } + if (component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name)); + if (message_arena != submessage_arena) { + component_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, component_name, submessage_arena); + } + + } else { + + } + _impl_.component_name_ = component_name; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.component_name) +} + +// optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; +inline bool MoveRequest::_internal_has_world_state() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.world_state_ != nullptr); + return value; +} +inline bool MoveRequest::has_world_state() const { + return _internal_has_world_state(); +} +inline const ::viam::common::v1::WorldState& MoveRequest::_internal_world_state() const { + const ::viam::common::v1::WorldState* p = _impl_.world_state_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_WorldState_default_instance_); +} +inline const ::viam::common::v1::WorldState& MoveRequest::world_state() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.world_state) + return _internal_world_state(); +} +inline void MoveRequest::unsafe_arena_set_allocated_world_state( + ::viam::common::v1::WorldState* world_state) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.world_state_); + } + _impl_.world_state_ = world_state; + if (world_state) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveRequest.world_state) +} +inline ::viam::common::v1::WorldState* MoveRequest::release_world_state() { + _impl_._has_bits_[0] &= ~0x00000001u; + ::viam::common::v1::WorldState* temp = _impl_.world_state_; + _impl_.world_state_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::WorldState* MoveRequest::unsafe_arena_release_world_state() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.world_state) + _impl_._has_bits_[0] &= ~0x00000001u; + ::viam::common::v1::WorldState* temp = _impl_.world_state_; + _impl_.world_state_ = nullptr; + return temp; +} +inline ::viam::common::v1::WorldState* MoveRequest::_internal_mutable_world_state() { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.world_state_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::WorldState>(GetArenaForAllocation()); + _impl_.world_state_ = p; + } + return _impl_.world_state_; +} +inline ::viam::common::v1::WorldState* MoveRequest::mutable_world_state() { + ::viam::common::v1::WorldState* _msg = _internal_mutable_world_state(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.world_state) + return _msg; +} +inline void MoveRequest::set_allocated_world_state(::viam::common::v1::WorldState* world_state) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.world_state_); + } + if (world_state) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_state)); + if (message_arena != submessage_arena) { + world_state = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, world_state, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.world_state_ = world_state; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.world_state) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool MoveRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool MoveRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.extra) + return _internal_extra(); +} +inline void MoveRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* MoveRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.extra) + return _msg; +} +inline void MoveRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.extra) +} + +// ------------------------------------------------------------------- + +// MoveResponse + +// bool success = 1 [json_name = "success"]; +inline void MoveResponse::clear_success() { + _impl_.success_ = false; +} +inline bool MoveResponse::_internal_success() const { + return _impl_.success_; +} +inline bool MoveResponse::success() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveResponse.success) + return _internal_success(); +} +inline void MoveResponse::_internal_set_success(bool value) { + + _impl_.success_ = value; +} +inline void MoveResponse::set_success(bool value) { + _internal_set_success(value); + // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveResponse.success) +} + +// ------------------------------------------------------------------- + +// MoveSingleComponentRequest + +// string name = 1 [json_name = "name"]; +inline void MoveSingleComponentRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& MoveSingleComponentRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveSingleComponentRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void MoveSingleComponentRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveSingleComponentRequest.name) +} +inline std::string* MoveSingleComponentRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveSingleComponentRequest.name) + return _s; +} +inline const std::string& MoveSingleComponentRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void MoveSingleComponentRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* MoveSingleComponentRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* MoveSingleComponentRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveSingleComponentRequest.name) + return _impl_.name_.Release(); +} +inline void MoveSingleComponentRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveSingleComponentRequest.name) +} + +// .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; +inline bool MoveSingleComponentRequest::_internal_has_destination() const { + return this != internal_default_instance() && _impl_.destination_ != nullptr; +} +inline bool MoveSingleComponentRequest::has_destination() const { + return _internal_has_destination(); +} +inline const ::viam::common::v1::PoseInFrame& MoveSingleComponentRequest::_internal_destination() const { + const ::viam::common::v1::PoseInFrame* p = _impl_.destination_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_PoseInFrame_default_instance_); +} +inline const ::viam::common::v1::PoseInFrame& MoveSingleComponentRequest::destination() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveSingleComponentRequest.destination) + return _internal_destination(); +} +inline void MoveSingleComponentRequest::unsafe_arena_set_allocated_destination( + ::viam::common::v1::PoseInFrame* destination) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.destination_); + } + _impl_.destination_ = destination; + if (destination) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveSingleComponentRequest.destination) +} +inline ::viam::common::v1::PoseInFrame* MoveSingleComponentRequest::release_destination() { + + ::viam::common::v1::PoseInFrame* temp = _impl_.destination_; + _impl_.destination_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::PoseInFrame* MoveSingleComponentRequest::unsafe_arena_release_destination() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveSingleComponentRequest.destination) + + ::viam::common::v1::PoseInFrame* temp = _impl_.destination_; + _impl_.destination_ = nullptr; + return temp; +} +inline ::viam::common::v1::PoseInFrame* MoveSingleComponentRequest::_internal_mutable_destination() { + + if (_impl_.destination_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::PoseInFrame>(GetArenaForAllocation()); + _impl_.destination_ = p; + } + return _impl_.destination_; +} +inline ::viam::common::v1::PoseInFrame* MoveSingleComponentRequest::mutable_destination() { + ::viam::common::v1::PoseInFrame* _msg = _internal_mutable_destination(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveSingleComponentRequest.destination) + return _msg; +} +inline void MoveSingleComponentRequest::set_allocated_destination(::viam::common::v1::PoseInFrame* destination) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.destination_); + } + if (destination) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(destination)); + if (message_arena != submessage_arena) { + destination = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, destination, submessage_arena); + } + + } else { + + } + _impl_.destination_ = destination; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveSingleComponentRequest.destination) +} + +// .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; +inline bool MoveSingleComponentRequest::_internal_has_component_name() const { + return this != internal_default_instance() && _impl_.component_name_ != nullptr; +} +inline bool MoveSingleComponentRequest::has_component_name() const { + return _internal_has_component_name(); +} +inline const ::viam::common::v1::ResourceName& MoveSingleComponentRequest::_internal_component_name() const { + const ::viam::common::v1::ResourceName* p = _impl_.component_name_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); +} +inline const ::viam::common::v1::ResourceName& MoveSingleComponentRequest::component_name() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveSingleComponentRequest.component_name) + return _internal_component_name(); +} +inline void MoveSingleComponentRequest::unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.component_name_); + } + _impl_.component_name_ = component_name; + if (component_name) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveSingleComponentRequest.component_name) +} +inline ::viam::common::v1::ResourceName* MoveSingleComponentRequest::release_component_name() { + + ::viam::common::v1::ResourceName* temp = _impl_.component_name_; + _impl_.component_name_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::ResourceName* MoveSingleComponentRequest::unsafe_arena_release_component_name() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveSingleComponentRequest.component_name) + + ::viam::common::v1::ResourceName* temp = _impl_.component_name_; + _impl_.component_name_ = nullptr; + return temp; +} +inline ::viam::common::v1::ResourceName* MoveSingleComponentRequest::_internal_mutable_component_name() { + + if (_impl_.component_name_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + _impl_.component_name_ = p; + } + return _impl_.component_name_; +} +inline ::viam::common::v1::ResourceName* MoveSingleComponentRequest::mutable_component_name() { + ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveSingleComponentRequest.component_name) + return _msg; +} +inline void MoveSingleComponentRequest::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.component_name_); + } + if (component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name)); + if (message_arena != submessage_arena) { + component_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, component_name, submessage_arena); + } + + } else { + + } + _impl_.component_name_ = component_name; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveSingleComponentRequest.component_name) +} + +// optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; +inline bool MoveSingleComponentRequest::_internal_has_world_state() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.world_state_ != nullptr); + return value; +} +inline bool MoveSingleComponentRequest::has_world_state() const { + return _internal_has_world_state(); +} +inline const ::viam::common::v1::WorldState& MoveSingleComponentRequest::_internal_world_state() const { + const ::viam::common::v1::WorldState* p = _impl_.world_state_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_WorldState_default_instance_); +} +inline const ::viam::common::v1::WorldState& MoveSingleComponentRequest::world_state() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveSingleComponentRequest.world_state) + return _internal_world_state(); +} +inline void MoveSingleComponentRequest::unsafe_arena_set_allocated_world_state( + ::viam::common::v1::WorldState* world_state) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.world_state_); + } + _impl_.world_state_ = world_state; + if (world_state) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveSingleComponentRequest.world_state) +} +inline ::viam::common::v1::WorldState* MoveSingleComponentRequest::release_world_state() { + _impl_._has_bits_[0] &= ~0x00000001u; + ::viam::common::v1::WorldState* temp = _impl_.world_state_; + _impl_.world_state_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::WorldState* MoveSingleComponentRequest::unsafe_arena_release_world_state() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveSingleComponentRequest.world_state) + _impl_._has_bits_[0] &= ~0x00000001u; + ::viam::common::v1::WorldState* temp = _impl_.world_state_; + _impl_.world_state_ = nullptr; + return temp; +} +inline ::viam::common::v1::WorldState* MoveSingleComponentRequest::_internal_mutable_world_state() { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.world_state_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::WorldState>(GetArenaForAllocation()); + _impl_.world_state_ = p; + } + return _impl_.world_state_; +} +inline ::viam::common::v1::WorldState* MoveSingleComponentRequest::mutable_world_state() { + ::viam::common::v1::WorldState* _msg = _internal_mutable_world_state(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveSingleComponentRequest.world_state) + return _msg; +} +inline void MoveSingleComponentRequest::set_allocated_world_state(::viam::common::v1::WorldState* world_state) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.world_state_); + } + if (world_state) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_state)); + if (message_arena != submessage_arena) { + world_state = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, world_state, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.world_state_ = world_state; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveSingleComponentRequest.world_state) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool MoveSingleComponentRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool MoveSingleComponentRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveSingleComponentRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveSingleComponentRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveSingleComponentRequest.extra) + return _internal_extra(); +} +inline void MoveSingleComponentRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveSingleComponentRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveSingleComponentRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* MoveSingleComponentRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveSingleComponentRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveSingleComponentRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveSingleComponentRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveSingleComponentRequest.extra) + return _msg; +} +inline void MoveSingleComponentRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveSingleComponentRequest.extra) +} + +// ------------------------------------------------------------------- + +// MoveSingleComponentResponse + +// bool success = 1 [json_name = "success"]; +inline void MoveSingleComponentResponse::clear_success() { + _impl_.success_ = false; +} +inline bool MoveSingleComponentResponse::_internal_success() const { + return _impl_.success_; +} +inline bool MoveSingleComponentResponse::success() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveSingleComponentResponse.success) + return _internal_success(); +} +inline void MoveSingleComponentResponse::_internal_set_success(bool value) { + + _impl_.success_ = value; +} +inline void MoveSingleComponentResponse::set_success(bool value) { + _internal_set_success(value); + // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveSingleComponentResponse.success) +} + +// ------------------------------------------------------------------- + +// GetPoseRequest + +// string name = 1 [json_name = "name"]; +inline void GetPoseRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetPoseRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPoseRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetPoseRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.motion.v1.GetPoseRequest.name) +} +inline std::string* GetPoseRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPoseRequest.name) + return _s; +} +inline const std::string& GetPoseRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetPoseRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetPoseRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetPoseRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.GetPoseRequest.name) + return _impl_.name_.Release(); +} +inline void GetPoseRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPoseRequest.name) +} + +// .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; +inline bool GetPoseRequest::_internal_has_component_name() const { + return this != internal_default_instance() && _impl_.component_name_ != nullptr; +} +inline bool GetPoseRequest::has_component_name() const { + return _internal_has_component_name(); +} +inline const ::viam::common::v1::ResourceName& GetPoseRequest::_internal_component_name() const { + const ::viam::common::v1::ResourceName* p = _impl_.component_name_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); +} +inline const ::viam::common::v1::ResourceName& GetPoseRequest::component_name() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPoseRequest.component_name) + return _internal_component_name(); +} +inline void GetPoseRequest::unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.component_name_); + } + _impl_.component_name_ = component_name; + if (component_name) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.GetPoseRequest.component_name) +} +inline ::viam::common::v1::ResourceName* GetPoseRequest::release_component_name() { + + ::viam::common::v1::ResourceName* temp = _impl_.component_name_; + _impl_.component_name_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::ResourceName* GetPoseRequest::unsafe_arena_release_component_name() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.GetPoseRequest.component_name) + + ::viam::common::v1::ResourceName* temp = _impl_.component_name_; + _impl_.component_name_ = nullptr; + return temp; +} +inline ::viam::common::v1::ResourceName* GetPoseRequest::_internal_mutable_component_name() { + + if (_impl_.component_name_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + _impl_.component_name_ = p; + } + return _impl_.component_name_; +} +inline ::viam::common::v1::ResourceName* GetPoseRequest::mutable_component_name() { + ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPoseRequest.component_name) + return _msg; +} +inline void GetPoseRequest::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.component_name_); + } + if (component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name)); + if (message_arena != submessage_arena) { + component_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, component_name, submessage_arena); + } + + } else { + + } + _impl_.component_name_ = component_name; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPoseRequest.component_name) +} + +// string destination_frame = 3 [json_name = "destinationFrame"]; +inline void GetPoseRequest::clear_destination_frame() { + _impl_.destination_frame_.ClearToEmpty(); +} +inline const std::string& GetPoseRequest::destination_frame() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPoseRequest.destination_frame) + return _internal_destination_frame(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetPoseRequest::set_destination_frame(ArgT0&& arg0, ArgT... args) { + + _impl_.destination_frame_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.motion.v1.GetPoseRequest.destination_frame) +} +inline std::string* GetPoseRequest::mutable_destination_frame() { + std::string* _s = _internal_mutable_destination_frame(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPoseRequest.destination_frame) + return _s; +} +inline const std::string& GetPoseRequest::_internal_destination_frame() const { + return _impl_.destination_frame_.Get(); +} +inline void GetPoseRequest::_internal_set_destination_frame(const std::string& value) { + + _impl_.destination_frame_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetPoseRequest::_internal_mutable_destination_frame() { + + return _impl_.destination_frame_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetPoseRequest::release_destination_frame() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.GetPoseRequest.destination_frame) + return _impl_.destination_frame_.Release(); +} +inline void GetPoseRequest::set_allocated_destination_frame(std::string* destination_frame) { + if (destination_frame != nullptr) { + + } else { + + } + _impl_.destination_frame_.SetAllocated(destination_frame, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.destination_frame_.IsDefault()) { + _impl_.destination_frame_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPoseRequest.destination_frame) +} + +// repeated .viam.common.v1.Transform supplemental_transforms = 4 [json_name = "supplementalTransforms"]; +inline int GetPoseRequest::_internal_supplemental_transforms_size() const { + return _impl_.supplemental_transforms_.size(); +} +inline int GetPoseRequest::supplemental_transforms_size() const { + return _internal_supplemental_transforms_size(); +} +inline ::viam::common::v1::Transform* GetPoseRequest::mutable_supplemental_transforms(int index) { + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPoseRequest.supplemental_transforms) + return _impl_.supplemental_transforms_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >* +GetPoseRequest::mutable_supplemental_transforms() { + // @@protoc_insertion_point(field_mutable_list:viam.service.motion.v1.GetPoseRequest.supplemental_transforms) + return &_impl_.supplemental_transforms_; +} +inline const ::viam::common::v1::Transform& GetPoseRequest::_internal_supplemental_transforms(int index) const { + return _impl_.supplemental_transforms_.Get(index); +} +inline const ::viam::common::v1::Transform& GetPoseRequest::supplemental_transforms(int index) const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPoseRequest.supplemental_transforms) + return _internal_supplemental_transforms(index); +} +inline ::viam::common::v1::Transform* GetPoseRequest::_internal_add_supplemental_transforms() { + return _impl_.supplemental_transforms_.Add(); +} +inline ::viam::common::v1::Transform* GetPoseRequest::add_supplemental_transforms() { + ::viam::common::v1::Transform* _add = _internal_add_supplemental_transforms(); + // @@protoc_insertion_point(field_add:viam.service.motion.v1.GetPoseRequest.supplemental_transforms) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >& +GetPoseRequest::supplemental_transforms() const { + // @@protoc_insertion_point(field_list:viam.service.motion.v1.GetPoseRequest.supplemental_transforms) + return _impl_.supplemental_transforms_; +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPoseRequest::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool GetPoseRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPoseRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPoseRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPoseRequest.extra) + return _internal_extra(); +} +inline void GetPoseRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.GetPoseRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPoseRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* GetPoseRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.GetPoseRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPoseRequest::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPoseRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPoseRequest.extra) + return _msg; +} +inline void GetPoseRequest::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPoseRequest.extra) +} + +// ------------------------------------------------------------------- + +// GetPoseResponse + +// .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; +inline bool GetPoseResponse::_internal_has_pose() const { + return this != internal_default_instance() && _impl_.pose_ != nullptr; +} +inline bool GetPoseResponse::has_pose() const { + return _internal_has_pose(); +} +inline const ::viam::common::v1::PoseInFrame& GetPoseResponse::_internal_pose() const { + const ::viam::common::v1::PoseInFrame* p = _impl_.pose_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_PoseInFrame_default_instance_); +} +inline const ::viam::common::v1::PoseInFrame& GetPoseResponse::pose() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPoseResponse.pose) + return _internal_pose(); +} +inline void GetPoseResponse::unsafe_arena_set_allocated_pose( + ::viam::common::v1::PoseInFrame* pose) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pose_); + } + _impl_.pose_ = pose; + if (pose) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.GetPoseResponse.pose) +} +inline ::viam::common::v1::PoseInFrame* GetPoseResponse::release_pose() { + + ::viam::common::v1::PoseInFrame* temp = _impl_.pose_; + _impl_.pose_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::PoseInFrame* GetPoseResponse::unsafe_arena_release_pose() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.GetPoseResponse.pose) + + ::viam::common::v1::PoseInFrame* temp = _impl_.pose_; + _impl_.pose_ = nullptr; + return temp; +} +inline ::viam::common::v1::PoseInFrame* GetPoseResponse::_internal_mutable_pose() { + + if (_impl_.pose_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::PoseInFrame>(GetArenaForAllocation()); + _impl_.pose_ = p; + } + return _impl_.pose_; +} +inline ::viam::common::v1::PoseInFrame* GetPoseResponse::mutable_pose() { + ::viam::common::v1::PoseInFrame* _msg = _internal_mutable_pose(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPoseResponse.pose) + return _msg; +} +inline void GetPoseResponse::set_allocated_pose(::viam::common::v1::PoseInFrame* pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pose_); + } + if (pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose)); + if (message_arena != submessage_arena) { + pose = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, pose, submessage_arena); + } + + } else { + + } + _impl_.pose_ = pose; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPoseResponse.pose) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace motion +} // namespace service +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_service_2fmotion_2fv1_2fmotion_2eproto diff --git a/src/gen/service/navigation/v1/navigation.grpc.pb.cc b/src/gen/service/navigation/v1/navigation.grpc.pb.cc new file mode 100644 index 000000000..b3b0b3bd3 --- /dev/null +++ b/src/gen/service/navigation/v1/navigation.grpc.pb.cc @@ -0,0 +1,302 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: service/navigation/v1/navigation.proto + +#include "service/navigation/v1/navigation.pb.h" +#include "service/navigation/v1/navigation.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace service { +namespace navigation { +namespace v1 { + +static const char* NavigationService_method_names[] = { + "/viam.service.navigation.v1.NavigationService/GetMode", + "/viam.service.navigation.v1.NavigationService/SetMode", + "/viam.service.navigation.v1.NavigationService/GetLocation", + "/viam.service.navigation.v1.NavigationService/GetWaypoints", + "/viam.service.navigation.v1.NavigationService/AddWaypoint", + "/viam.service.navigation.v1.NavigationService/RemoveWaypoint", +}; + +std::unique_ptr< NavigationService::Stub> NavigationService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< NavigationService::Stub> stub(new NavigationService::Stub(channel, options)); + return stub; +} + +NavigationService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_GetMode_(NavigationService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SetMode_(NavigationService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetLocation_(NavigationService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetWaypoints_(NavigationService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_AddWaypoint_(NavigationService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RemoveWaypoint_(NavigationService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status NavigationService::Stub::GetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::viam::service::navigation::v1::GetModeResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::navigation::v1::GetModeRequest, ::viam::service::navigation::v1::GetModeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetMode_, context, request, response); +} + +void NavigationService::Stub::async::GetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest* request, ::viam::service::navigation::v1::GetModeResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::navigation::v1::GetModeRequest, ::viam::service::navigation::v1::GetModeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetMode_, context, request, response, std::move(f)); +} + +void NavigationService::Stub::async::GetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest* request, ::viam::service::navigation::v1::GetModeResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetMode_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetModeResponse>* NavigationService::Stub::PrepareAsyncGetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::navigation::v1::GetModeResponse, ::viam::service::navigation::v1::GetModeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetMode_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetModeResponse>* NavigationService::Stub::AsyncGetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetModeRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status NavigationService::Stub::SetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest& request, ::viam::service::navigation::v1::SetModeResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::navigation::v1::SetModeRequest, ::viam::service::navigation::v1::SetModeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetMode_, context, request, response); +} + +void NavigationService::Stub::async::SetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest* request, ::viam::service::navigation::v1::SetModeResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::navigation::v1::SetModeRequest, ::viam::service::navigation::v1::SetModeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetMode_, context, request, response, std::move(f)); +} + +void NavigationService::Stub::async::SetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest* request, ::viam::service::navigation::v1::SetModeResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetMode_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::SetModeResponse>* NavigationService::Stub::PrepareAsyncSetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::navigation::v1::SetModeResponse, ::viam::service::navigation::v1::SetModeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetMode_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::SetModeResponse>* NavigationService::Stub::AsyncSetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncSetModeRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status NavigationService::Stub::GetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest& request, ::viam::service::navigation::v1::GetLocationResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::navigation::v1::GetLocationRequest, ::viam::service::navigation::v1::GetLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetLocation_, context, request, response); +} + +void NavigationService::Stub::async::GetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest* request, ::viam::service::navigation::v1::GetLocationResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::navigation::v1::GetLocationRequest, ::viam::service::navigation::v1::GetLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetLocation_, context, request, response, std::move(f)); +} + +void NavigationService::Stub::async::GetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest* request, ::viam::service::navigation::v1::GetLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetLocation_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetLocationResponse>* NavigationService::Stub::PrepareAsyncGetLocationRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::navigation::v1::GetLocationResponse, ::viam::service::navigation::v1::GetLocationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetLocation_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetLocationResponse>* NavigationService::Stub::AsyncGetLocationRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetLocationRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status NavigationService::Stub::GetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest& request, ::viam::service::navigation::v1::GetWaypointsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::navigation::v1::GetWaypointsRequest, ::viam::service::navigation::v1::GetWaypointsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetWaypoints_, context, request, response); +} + +void NavigationService::Stub::async::GetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::navigation::v1::GetWaypointsRequest, ::viam::service::navigation::v1::GetWaypointsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetWaypoints_, context, request, response, std::move(f)); +} + +void NavigationService::Stub::async::GetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetWaypoints_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetWaypointsResponse>* NavigationService::Stub::PrepareAsyncGetWaypointsRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::navigation::v1::GetWaypointsResponse, ::viam::service::navigation::v1::GetWaypointsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetWaypoints_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetWaypointsResponse>* NavigationService::Stub::AsyncGetWaypointsRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetWaypointsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status NavigationService::Stub::AddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest& request, ::viam::service::navigation::v1::AddWaypointResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::navigation::v1::AddWaypointRequest, ::viam::service::navigation::v1::AddWaypointResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_AddWaypoint_, context, request, response); +} + +void NavigationService::Stub::async::AddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest* request, ::viam::service::navigation::v1::AddWaypointResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::navigation::v1::AddWaypointRequest, ::viam::service::navigation::v1::AddWaypointResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AddWaypoint_, context, request, response, std::move(f)); +} + +void NavigationService::Stub::async::AddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest* request, ::viam::service::navigation::v1::AddWaypointResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AddWaypoint_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::AddWaypointResponse>* NavigationService::Stub::PrepareAsyncAddWaypointRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::navigation::v1::AddWaypointResponse, ::viam::service::navigation::v1::AddWaypointRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_AddWaypoint_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::AddWaypointResponse>* NavigationService::Stub::AsyncAddWaypointRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncAddWaypointRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status NavigationService::Stub::RemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest& request, ::viam::service::navigation::v1::RemoveWaypointResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::navigation::v1::RemoveWaypointRequest, ::viam::service::navigation::v1::RemoveWaypointResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RemoveWaypoint_, context, request, response); +} + +void NavigationService::Stub::async::RemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::navigation::v1::RemoveWaypointRequest, ::viam::service::navigation::v1::RemoveWaypointResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RemoveWaypoint_, context, request, response, std::move(f)); +} + +void NavigationService::Stub::async::RemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RemoveWaypoint_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::RemoveWaypointResponse>* NavigationService::Stub::PrepareAsyncRemoveWaypointRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::navigation::v1::RemoveWaypointResponse, ::viam::service::navigation::v1::RemoveWaypointRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_RemoveWaypoint_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::RemoveWaypointResponse>* NavigationService::Stub::AsyncRemoveWaypointRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncRemoveWaypointRaw(context, request, cq); + result->StartCall(); + return result; +} + +NavigationService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + NavigationService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::GetModeRequest, ::viam::service::navigation::v1::GetModeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](NavigationService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::navigation::v1::GetModeRequest* req, + ::viam::service::navigation::v1::GetModeResponse* resp) { + return service->GetMode(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + NavigationService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::SetModeRequest, ::viam::service::navigation::v1::SetModeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](NavigationService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::navigation::v1::SetModeRequest* req, + ::viam::service::navigation::v1::SetModeResponse* resp) { + return service->SetMode(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + NavigationService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::GetLocationRequest, ::viam::service::navigation::v1::GetLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](NavigationService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::navigation::v1::GetLocationRequest* req, + ::viam::service::navigation::v1::GetLocationResponse* resp) { + return service->GetLocation(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + NavigationService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::GetWaypointsRequest, ::viam::service::navigation::v1::GetWaypointsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](NavigationService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::navigation::v1::GetWaypointsRequest* req, + ::viam::service::navigation::v1::GetWaypointsResponse* resp) { + return service->GetWaypoints(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + NavigationService_method_names[4], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::AddWaypointRequest, ::viam::service::navigation::v1::AddWaypointResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](NavigationService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::navigation::v1::AddWaypointRequest* req, + ::viam::service::navigation::v1::AddWaypointResponse* resp) { + return service->AddWaypoint(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + NavigationService_method_names[5], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::RemoveWaypointRequest, ::viam::service::navigation::v1::RemoveWaypointResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](NavigationService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::navigation::v1::RemoveWaypointRequest* req, + ::viam::service::navigation::v1::RemoveWaypointResponse* resp) { + return service->RemoveWaypoint(ctx, req, resp); + }, this))); +} + +NavigationService::Service::~Service() { +} + +::grpc::Status NavigationService::Service::GetMode(::grpc::ServerContext* context, const ::viam::service::navigation::v1::GetModeRequest* request, ::viam::service::navigation::v1::GetModeResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status NavigationService::Service::SetMode(::grpc::ServerContext* context, const ::viam::service::navigation::v1::SetModeRequest* request, ::viam::service::navigation::v1::SetModeResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status NavigationService::Service::GetLocation(::grpc::ServerContext* context, const ::viam::service::navigation::v1::GetLocationRequest* request, ::viam::service::navigation::v1::GetLocationResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status NavigationService::Service::GetWaypoints(::grpc::ServerContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest* request, ::viam::service::navigation::v1::GetWaypointsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status NavigationService::Service::AddWaypoint(::grpc::ServerContext* context, const ::viam::service::navigation::v1::AddWaypointRequest* request, ::viam::service::navigation::v1::AddWaypointResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status NavigationService::Service::RemoveWaypoint(::grpc::ServerContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace service +} // namespace navigation +} // namespace v1 + diff --git a/src/gen/service/navigation/v1/navigation.grpc.pb.h b/src/gen/service/navigation/v1/navigation.grpc.pb.h new file mode 100644 index 000000000..28501e7f5 --- /dev/null +++ b/src/gen/service/navigation/v1/navigation.grpc.pb.h @@ -0,0 +1,1032 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: service/navigation/v1/navigation.proto +#ifndef GRPC_service_2fnavigation_2fv1_2fnavigation_2eproto__INCLUDED +#define GRPC_service_2fnavigation_2fv1_2fnavigation_2eproto__INCLUDED + +#include "service/navigation/v1/navigation.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 navigation { +namespace v1 { + +// A NavigationService declares the gRPC contract for a Navigation service +class NavigationService final { + public: + static constexpr char const* service_full_name() { + return "viam.service.navigation.v1.NavigationService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status GetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::viam::service::navigation::v1::GetModeResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::GetModeResponse>> AsyncGetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::GetModeResponse>>(AsyncGetModeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::GetModeResponse>> PrepareAsyncGetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::GetModeResponse>>(PrepareAsyncGetModeRaw(context, request, cq)); + } + virtual ::grpc::Status SetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest& request, ::viam::service::navigation::v1::SetModeResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::SetModeResponse>> AsyncSetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::SetModeResponse>>(AsyncSetModeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::SetModeResponse>> PrepareAsyncSetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::SetModeResponse>>(PrepareAsyncSetModeRaw(context, request, cq)); + } + virtual ::grpc::Status GetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest& request, ::viam::service::navigation::v1::GetLocationResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::GetLocationResponse>> AsyncGetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::GetLocationResponse>>(AsyncGetLocationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::GetLocationResponse>> PrepareAsyncGetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::GetLocationResponse>>(PrepareAsyncGetLocationRaw(context, request, cq)); + } + virtual ::grpc::Status GetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest& request, ::viam::service::navigation::v1::GetWaypointsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::GetWaypointsResponse>> AsyncGetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::GetWaypointsResponse>>(AsyncGetWaypointsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::GetWaypointsResponse>> PrepareAsyncGetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::GetWaypointsResponse>>(PrepareAsyncGetWaypointsRaw(context, request, cq)); + } + virtual ::grpc::Status AddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest& request, ::viam::service::navigation::v1::AddWaypointResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::AddWaypointResponse>> AsyncAddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::AddWaypointResponse>>(AsyncAddWaypointRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::AddWaypointResponse>> PrepareAsyncAddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::AddWaypointResponse>>(PrepareAsyncAddWaypointRaw(context, request, cq)); + } + virtual ::grpc::Status RemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest& request, ::viam::service::navigation::v1::RemoveWaypointResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::RemoveWaypointResponse>> AsyncRemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::RemoveWaypointResponse>>(AsyncRemoveWaypointRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::RemoveWaypointResponse>> PrepareAsyncRemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::RemoveWaypointResponse>>(PrepareAsyncRemoveWaypointRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void GetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest* request, ::viam::service::navigation::v1::GetModeResponse* response, std::function) = 0; + virtual void GetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest* request, ::viam::service::navigation::v1::GetModeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void SetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest* request, ::viam::service::navigation::v1::SetModeResponse* response, std::function) = 0; + virtual void SetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest* request, ::viam::service::navigation::v1::SetModeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void GetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest* request, ::viam::service::navigation::v1::GetLocationResponse* response, std::function) = 0; + virtual void GetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest* request, ::viam::service::navigation::v1::GetLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void GetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, std::function) = 0; + virtual void GetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void AddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest* request, ::viam::service::navigation::v1::AddWaypointResponse* response, std::function) = 0; + virtual void AddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest* request, ::viam::service::navigation::v1::AddWaypointResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void RemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, std::function) = 0; + virtual void RemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::viam::service::navigation::v1::RemoveWaypointResponse* 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::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::GetModeResponse>* AsyncGetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::GetModeResponse>* PrepareAsyncGetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::SetModeResponse>* AsyncSetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::SetModeResponse>* PrepareAsyncSetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::GetLocationResponse>* AsyncGetLocationRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::GetLocationResponse>* PrepareAsyncGetLocationRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::GetWaypointsResponse>* AsyncGetWaypointsRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::GetWaypointsResponse>* PrepareAsyncGetWaypointsRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::AddWaypointResponse>* AsyncAddWaypointRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::AddWaypointResponse>* PrepareAsyncAddWaypointRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::RemoveWaypointResponse>* AsyncRemoveWaypointRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::RemoveWaypointResponse>* PrepareAsyncRemoveWaypointRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest& 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()); + ::grpc::Status GetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::viam::service::navigation::v1::GetModeResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetModeResponse>> AsyncGetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetModeResponse>>(AsyncGetModeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetModeResponse>> PrepareAsyncGetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetModeResponse>>(PrepareAsyncGetModeRaw(context, request, cq)); + } + ::grpc::Status SetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest& request, ::viam::service::navigation::v1::SetModeResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::SetModeResponse>> AsyncSetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::SetModeResponse>>(AsyncSetModeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::SetModeResponse>> PrepareAsyncSetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::SetModeResponse>>(PrepareAsyncSetModeRaw(context, request, cq)); + } + ::grpc::Status GetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest& request, ::viam::service::navigation::v1::GetLocationResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetLocationResponse>> AsyncGetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetLocationResponse>>(AsyncGetLocationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetLocationResponse>> PrepareAsyncGetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetLocationResponse>>(PrepareAsyncGetLocationRaw(context, request, cq)); + } + ::grpc::Status GetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest& request, ::viam::service::navigation::v1::GetWaypointsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetWaypointsResponse>> AsyncGetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetWaypointsResponse>>(AsyncGetWaypointsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetWaypointsResponse>> PrepareAsyncGetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetWaypointsResponse>>(PrepareAsyncGetWaypointsRaw(context, request, cq)); + } + ::grpc::Status AddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest& request, ::viam::service::navigation::v1::AddWaypointResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::AddWaypointResponse>> AsyncAddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::AddWaypointResponse>>(AsyncAddWaypointRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::AddWaypointResponse>> PrepareAsyncAddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::AddWaypointResponse>>(PrepareAsyncAddWaypointRaw(context, request, cq)); + } + ::grpc::Status RemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest& request, ::viam::service::navigation::v1::RemoveWaypointResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::RemoveWaypointResponse>> AsyncRemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::RemoveWaypointResponse>>(AsyncRemoveWaypointRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::RemoveWaypointResponse>> PrepareAsyncRemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::RemoveWaypointResponse>>(PrepareAsyncRemoveWaypointRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void GetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest* request, ::viam::service::navigation::v1::GetModeResponse* response, std::function) override; + void GetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest* request, ::viam::service::navigation::v1::GetModeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void SetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest* request, ::viam::service::navigation::v1::SetModeResponse* response, std::function) override; + void SetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest* request, ::viam::service::navigation::v1::SetModeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest* request, ::viam::service::navigation::v1::GetLocationResponse* response, std::function) override; + void GetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest* request, ::viam::service::navigation::v1::GetLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, std::function) override; + void GetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void AddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest* request, ::viam::service::navigation::v1::AddWaypointResponse* response, std::function) override; + void AddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest* request, ::viam::service::navigation::v1::AddWaypointResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void RemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, std::function) override; + void RemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::viam::service::navigation::v1::RemoveWaypointResponse* 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::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetModeResponse>* AsyncGetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetModeResponse>* PrepareAsyncGetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::SetModeResponse>* AsyncSetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::SetModeResponse>* PrepareAsyncSetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetLocationResponse>* AsyncGetLocationRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetLocationResponse>* PrepareAsyncGetLocationRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetWaypointsResponse>* AsyncGetWaypointsRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetWaypointsResponse>* PrepareAsyncGetWaypointsRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::AddWaypointResponse>* AsyncAddWaypointRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::AddWaypointResponse>* PrepareAsyncAddWaypointRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::RemoveWaypointResponse>* AsyncRemoveWaypointRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::RemoveWaypointResponse>* PrepareAsyncRemoveWaypointRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_GetMode_; + const ::grpc::internal::RpcMethod rpcmethod_SetMode_; + const ::grpc::internal::RpcMethod rpcmethod_GetLocation_; + const ::grpc::internal::RpcMethod rpcmethod_GetWaypoints_; + const ::grpc::internal::RpcMethod rpcmethod_AddWaypoint_; + const ::grpc::internal::RpcMethod rpcmethod_RemoveWaypoint_; + }; + 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(); + virtual ::grpc::Status GetMode(::grpc::ServerContext* context, const ::viam::service::navigation::v1::GetModeRequest* request, ::viam::service::navigation::v1::GetModeResponse* response); + virtual ::grpc::Status SetMode(::grpc::ServerContext* context, const ::viam::service::navigation::v1::SetModeRequest* request, ::viam::service::navigation::v1::SetModeResponse* response); + virtual ::grpc::Status GetLocation(::grpc::ServerContext* context, const ::viam::service::navigation::v1::GetLocationRequest* request, ::viam::service::navigation::v1::GetLocationResponse* response); + virtual ::grpc::Status GetWaypoints(::grpc::ServerContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest* request, ::viam::service::navigation::v1::GetWaypointsResponse* response); + virtual ::grpc::Status AddWaypoint(::grpc::ServerContext* context, const ::viam::service::navigation::v1::AddWaypointRequest* request, ::viam::service::navigation::v1::AddWaypointResponse* response); + virtual ::grpc::Status RemoveWaypoint(::grpc::ServerContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response); + }; + template + class WithAsyncMethod_GetMode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetMode() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_GetMode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetMode(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::GetModeRequest* /*request*/, ::viam::service::navigation::v1::GetModeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetMode(::grpc::ServerContext* context, ::viam::service::navigation::v1::GetModeRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::navigation::v1::GetModeResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_SetMode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_SetMode() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_SetMode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetMode(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::SetModeRequest* /*request*/, ::viam::service::navigation::v1::SetModeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetMode(::grpc::ServerContext* context, ::viam::service::navigation::v1::SetModeRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::navigation::v1::SetModeResponse>* 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 WithAsyncMethod_GetLocation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetLocation() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_GetLocation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLocation(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::GetLocationRequest* /*request*/, ::viam::service::navigation::v1::GetLocationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetLocation(::grpc::ServerContext* context, ::viam::service::navigation::v1::GetLocationRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::navigation::v1::GetLocationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetWaypoints : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetWaypoints() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_GetWaypoints() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetWaypoints(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::GetWaypointsRequest* /*request*/, ::viam::service::navigation::v1::GetWaypointsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetWaypoints(::grpc::ServerContext* context, ::viam::service::navigation::v1::GetWaypointsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::navigation::v1::GetWaypointsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_AddWaypoint : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_AddWaypoint() { + ::grpc::Service::MarkMethodAsync(4); + } + ~WithAsyncMethod_AddWaypoint() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddWaypoint(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::AddWaypointRequest* /*request*/, ::viam::service::navigation::v1::AddWaypointResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestAddWaypoint(::grpc::ServerContext* context, ::viam::service::navigation::v1::AddWaypointRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::navigation::v1::AddWaypointResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_RemoveWaypoint : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_RemoveWaypoint() { + ::grpc::Service::MarkMethodAsync(5); + } + ~WithAsyncMethod_RemoveWaypoint() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RemoveWaypoint(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::RemoveWaypointRequest* /*request*/, ::viam::service::navigation::v1::RemoveWaypointResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRemoveWaypoint(::grpc::ServerContext* context, ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::navigation::v1::RemoveWaypointResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetMode > > > > > AsyncService; + template + class WithCallbackMethod_GetMode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetMode() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetModeRequest, ::viam::service::navigation::v1::GetModeResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::navigation::v1::GetModeRequest* request, ::viam::service::navigation::v1::GetModeResponse* response) { return this->GetMode(context, request, response); }));} + void SetMessageAllocatorFor_GetMode( + ::grpc::MessageAllocator< ::viam::service::navigation::v1::GetModeRequest, ::viam::service::navigation::v1::GetModeResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetModeRequest, ::viam::service::navigation::v1::GetModeResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetMode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetMode(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::GetModeRequest* /*request*/, ::viam::service::navigation::v1::GetModeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetMode( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::GetModeRequest* /*request*/, ::viam::service::navigation::v1::GetModeResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_SetMode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_SetMode() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::SetModeRequest, ::viam::service::navigation::v1::SetModeResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::navigation::v1::SetModeRequest* request, ::viam::service::navigation::v1::SetModeResponse* response) { return this->SetMode(context, request, response); }));} + void SetMessageAllocatorFor_SetMode( + ::grpc::MessageAllocator< ::viam::service::navigation::v1::SetModeRequest, ::viam::service::navigation::v1::SetModeResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::SetModeRequest, ::viam::service::navigation::v1::SetModeResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_SetMode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetMode(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::SetModeRequest* /*request*/, ::viam::service::navigation::v1::SetModeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SetMode( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::SetModeRequest* /*request*/, ::viam::service::navigation::v1::SetModeResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetLocation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetLocation() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetLocationRequest, ::viam::service::navigation::v1::GetLocationResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::navigation::v1::GetLocationRequest* request, ::viam::service::navigation::v1::GetLocationResponse* response) { return this->GetLocation(context, request, response); }));} + void SetMessageAllocatorFor_GetLocation( + ::grpc::MessageAllocator< ::viam::service::navigation::v1::GetLocationRequest, ::viam::service::navigation::v1::GetLocationResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetLocationRequest, ::viam::service::navigation::v1::GetLocationResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetLocation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLocation(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::GetLocationRequest* /*request*/, ::viam::service::navigation::v1::GetLocationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetLocation( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::GetLocationRequest* /*request*/, ::viam::service::navigation::v1::GetLocationResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetWaypoints : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetWaypoints() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetWaypointsRequest, ::viam::service::navigation::v1::GetWaypointsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest* request, ::viam::service::navigation::v1::GetWaypointsResponse* response) { return this->GetWaypoints(context, request, response); }));} + void SetMessageAllocatorFor_GetWaypoints( + ::grpc::MessageAllocator< ::viam::service::navigation::v1::GetWaypointsRequest, ::viam::service::navigation::v1::GetWaypointsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetWaypointsRequest, ::viam::service::navigation::v1::GetWaypointsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetWaypoints() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetWaypoints(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::GetWaypointsRequest* /*request*/, ::viam::service::navigation::v1::GetWaypointsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetWaypoints( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::GetWaypointsRequest* /*request*/, ::viam::service::navigation::v1::GetWaypointsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_AddWaypoint : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_AddWaypoint() { + ::grpc::Service::MarkMethodCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::AddWaypointRequest, ::viam::service::navigation::v1::AddWaypointResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::navigation::v1::AddWaypointRequest* request, ::viam::service::navigation::v1::AddWaypointResponse* response) { return this->AddWaypoint(context, request, response); }));} + void SetMessageAllocatorFor_AddWaypoint( + ::grpc::MessageAllocator< ::viam::service::navigation::v1::AddWaypointRequest, ::viam::service::navigation::v1::AddWaypointResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::AddWaypointRequest, ::viam::service::navigation::v1::AddWaypointResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_AddWaypoint() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddWaypoint(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::AddWaypointRequest* /*request*/, ::viam::service::navigation::v1::AddWaypointResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* AddWaypoint( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::AddWaypointRequest* /*request*/, ::viam::service::navigation::v1::AddWaypointResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_RemoveWaypoint : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_RemoveWaypoint() { + ::grpc::Service::MarkMethodCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::RemoveWaypointRequest, ::viam::service::navigation::v1::RemoveWaypointResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response) { return this->RemoveWaypoint(context, request, response); }));} + void SetMessageAllocatorFor_RemoveWaypoint( + ::grpc::MessageAllocator< ::viam::service::navigation::v1::RemoveWaypointRequest, ::viam::service::navigation::v1::RemoveWaypointResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::RemoveWaypointRequest, ::viam::service::navigation::v1::RemoveWaypointResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_RemoveWaypoint() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RemoveWaypoint(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::RemoveWaypointRequest* /*request*/, ::viam::service::navigation::v1::RemoveWaypointResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* RemoveWaypoint( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::RemoveWaypointRequest* /*request*/, ::viam::service::navigation::v1::RemoveWaypointResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetMode > > > > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_GetMode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetMode() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_GetMode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetMode(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::GetModeRequest* /*request*/, ::viam::service::navigation::v1::GetModeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_SetMode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_SetMode() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_SetMode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetMode(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::SetModeRequest* /*request*/, ::viam::service::navigation::v1::SetModeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetLocation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetLocation() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_GetLocation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLocation(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::GetLocationRequest* /*request*/, ::viam::service::navigation::v1::GetLocationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetWaypoints : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetWaypoints() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_GetWaypoints() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetWaypoints(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::GetWaypointsRequest* /*request*/, ::viam::service::navigation::v1::GetWaypointsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_AddWaypoint : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_AddWaypoint() { + ::grpc::Service::MarkMethodGeneric(4); + } + ~WithGenericMethod_AddWaypoint() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddWaypoint(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::AddWaypointRequest* /*request*/, ::viam::service::navigation::v1::AddWaypointResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_RemoveWaypoint : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_RemoveWaypoint() { + ::grpc::Service::MarkMethodGeneric(5); + } + ~WithGenericMethod_RemoveWaypoint() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RemoveWaypoint(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::RemoveWaypointRequest* /*request*/, ::viam::service::navigation::v1::RemoveWaypointResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_GetMode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetMode() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_GetMode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetMode(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::GetModeRequest* /*request*/, ::viam::service::navigation::v1::GetModeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetMode(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_SetMode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_SetMode() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_SetMode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetMode(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::SetModeRequest* /*request*/, ::viam::service::navigation::v1::SetModeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetMode(::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 WithRawMethod_GetLocation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetLocation() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_GetLocation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLocation(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::GetLocationRequest* /*request*/, ::viam::service::navigation::v1::GetLocationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetLocation(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetWaypoints : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetWaypoints() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_GetWaypoints() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetWaypoints(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::GetWaypointsRequest* /*request*/, ::viam::service::navigation::v1::GetWaypointsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetWaypoints(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_AddWaypoint : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_AddWaypoint() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_AddWaypoint() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddWaypoint(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::AddWaypointRequest* /*request*/, ::viam::service::navigation::v1::AddWaypointResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestAddWaypoint(::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(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_RemoveWaypoint : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_RemoveWaypoint() { + ::grpc::Service::MarkMethodRaw(5); + } + ~WithRawMethod_RemoveWaypoint() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RemoveWaypoint(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::RemoveWaypointRequest* /*request*/, ::viam::service::navigation::v1::RemoveWaypointResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRemoveWaypoint(::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(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_GetMode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetMode() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetMode(context, request, response); })); + } + ~WithRawCallbackMethod_GetMode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetMode(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::GetModeRequest* /*request*/, ::viam::service::navigation::v1::GetModeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetMode( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_SetMode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_SetMode() { + ::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->SetMode(context, request, response); })); + } + ~WithRawCallbackMethod_SetMode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetMode(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::SetModeRequest* /*request*/, ::viam::service::navigation::v1::SetModeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SetMode( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetLocation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetLocation() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetLocation(context, request, response); })); + } + ~WithRawCallbackMethod_GetLocation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLocation(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::GetLocationRequest* /*request*/, ::viam::service::navigation::v1::GetLocationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetLocation( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetWaypoints : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetWaypoints() { + ::grpc::Service::MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetWaypoints(context, request, response); })); + } + ~WithRawCallbackMethod_GetWaypoints() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetWaypoints(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::GetWaypointsRequest* /*request*/, ::viam::service::navigation::v1::GetWaypointsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetWaypoints( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_AddWaypoint : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_AddWaypoint() { + ::grpc::Service::MarkMethodRawCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->AddWaypoint(context, request, response); })); + } + ~WithRawCallbackMethod_AddWaypoint() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddWaypoint(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::AddWaypointRequest* /*request*/, ::viam::service::navigation::v1::AddWaypointResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* AddWaypoint( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_RemoveWaypoint : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_RemoveWaypoint() { + ::grpc::Service::MarkMethodRawCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RemoveWaypoint(context, request, response); })); + } + ~WithRawCallbackMethod_RemoveWaypoint() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RemoveWaypoint(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::RemoveWaypointRequest* /*request*/, ::viam::service::navigation::v1::RemoveWaypointResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* RemoveWaypoint( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_GetMode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetMode() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::navigation::v1::GetModeRequest, ::viam::service::navigation::v1::GetModeResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::navigation::v1::GetModeRequest, ::viam::service::navigation::v1::GetModeResponse>* streamer) { + return this->StreamedGetMode(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetMode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetMode(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::GetModeRequest* /*request*/, ::viam::service::navigation::v1::GetModeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetMode(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::navigation::v1::GetModeRequest,::viam::service::navigation::v1::GetModeResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_SetMode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_SetMode() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::navigation::v1::SetModeRequest, ::viam::service::navigation::v1::SetModeResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::navigation::v1::SetModeRequest, ::viam::service::navigation::v1::SetModeResponse>* streamer) { + return this->StreamedSetMode(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_SetMode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status SetMode(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::SetModeRequest* /*request*/, ::viam::service::navigation::v1::SetModeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedSetMode(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::navigation::v1::SetModeRequest,::viam::service::navigation::v1::SetModeResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetLocation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetLocation() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::navigation::v1::GetLocationRequest, ::viam::service::navigation::v1::GetLocationResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::navigation::v1::GetLocationRequest, ::viam::service::navigation::v1::GetLocationResponse>* streamer) { + return this->StreamedGetLocation(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetLocation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetLocation(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::GetLocationRequest* /*request*/, ::viam::service::navigation::v1::GetLocationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetLocation(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::navigation::v1::GetLocationRequest,::viam::service::navigation::v1::GetLocationResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetWaypoints : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetWaypoints() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::navigation::v1::GetWaypointsRequest, ::viam::service::navigation::v1::GetWaypointsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::navigation::v1::GetWaypointsRequest, ::viam::service::navigation::v1::GetWaypointsResponse>* streamer) { + return this->StreamedGetWaypoints(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetWaypoints() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetWaypoints(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::GetWaypointsRequest* /*request*/, ::viam::service::navigation::v1::GetWaypointsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetWaypoints(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::navigation::v1::GetWaypointsRequest,::viam::service::navigation::v1::GetWaypointsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_AddWaypoint : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_AddWaypoint() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::navigation::v1::AddWaypointRequest, ::viam::service::navigation::v1::AddWaypointResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::navigation::v1::AddWaypointRequest, ::viam::service::navigation::v1::AddWaypointResponse>* streamer) { + return this->StreamedAddWaypoint(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_AddWaypoint() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status AddWaypoint(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::AddWaypointRequest* /*request*/, ::viam::service::navigation::v1::AddWaypointResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedAddWaypoint(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::navigation::v1::AddWaypointRequest,::viam::service::navigation::v1::AddWaypointResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_RemoveWaypoint : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_RemoveWaypoint() { + ::grpc::Service::MarkMethodStreamed(5, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::navigation::v1::RemoveWaypointRequest, ::viam::service::navigation::v1::RemoveWaypointResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::navigation::v1::RemoveWaypointRequest, ::viam::service::navigation::v1::RemoveWaypointResponse>* streamer) { + return this->StreamedRemoveWaypoint(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_RemoveWaypoint() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status RemoveWaypoint(::grpc::ServerContext* /*context*/, const ::viam::service::navigation::v1::RemoveWaypointRequest* /*request*/, ::viam::service::navigation::v1::RemoveWaypointResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedRemoveWaypoint(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::navigation::v1::RemoveWaypointRequest,::viam::service::navigation::v1::RemoveWaypointResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetMode > > > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_GetMode > > > > > StreamedService; +}; + +} // namespace v1 +} // namespace navigation +} // namespace service +} // namespace viam + + +#endif // GRPC_service_2fnavigation_2fv1_2fnavigation_2eproto__INCLUDED diff --git a/src/gen/service/navigation/v1/navigation.pb.cc b/src/gen/service/navigation/v1/navigation.pb.cc new file mode 100644 index 000000000..b435f7660 --- /dev/null +++ b/src/gen/service/navigation/v1/navigation.pb.cc @@ -0,0 +1,2764 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service/navigation/v1/navigation.proto + +#include "service/navigation/v1/navigation.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 navigation { +namespace v1 { +PROTOBUF_CONSTEXPR GetModeRequest::GetModeRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetModeRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetModeRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetModeRequestDefaultTypeInternal() {} + union { + GetModeRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetModeRequestDefaultTypeInternal _GetModeRequest_default_instance_; +PROTOBUF_CONSTEXPR GetModeResponse::GetModeResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.mode_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetModeResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetModeResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetModeResponseDefaultTypeInternal() {} + union { + GetModeResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetModeResponseDefaultTypeInternal _GetModeResponse_default_instance_; +PROTOBUF_CONSTEXPR SetModeRequest::SetModeRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mode_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SetModeRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetModeRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetModeRequestDefaultTypeInternal() {} + union { + SetModeRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetModeRequestDefaultTypeInternal _SetModeRequest_default_instance_; +PROTOBUF_CONSTEXPR SetModeResponse::SetModeResponse( + ::_pbi::ConstantInitialized) {} +struct SetModeResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetModeResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetModeResponseDefaultTypeInternal() {} + union { + SetModeResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetModeResponseDefaultTypeInternal _SetModeResponse_default_instance_; +PROTOBUF_CONSTEXPR Waypoint::Waypoint( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.location_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct WaypointDefaultTypeInternal { + PROTOBUF_CONSTEXPR WaypointDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~WaypointDefaultTypeInternal() {} + union { + Waypoint _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WaypointDefaultTypeInternal _Waypoint_default_instance_; +PROTOBUF_CONSTEXPR GetLocationRequest::GetLocationRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetLocationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetLocationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetLocationRequestDefaultTypeInternal() {} + union { + GetLocationRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLocationRequestDefaultTypeInternal _GetLocationRequest_default_instance_; +PROTOBUF_CONSTEXPR GetLocationResponse::GetLocationResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.location_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetLocationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetLocationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetLocationResponseDefaultTypeInternal() {} + union { + GetLocationResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLocationResponseDefaultTypeInternal _GetLocationResponse_default_instance_; +PROTOBUF_CONSTEXPR GetWaypointsRequest::GetWaypointsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetWaypointsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetWaypointsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetWaypointsRequestDefaultTypeInternal() {} + union { + GetWaypointsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetWaypointsRequestDefaultTypeInternal _GetWaypointsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetWaypointsResponse::GetWaypointsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.waypoints_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetWaypointsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetWaypointsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetWaypointsResponseDefaultTypeInternal() {} + union { + GetWaypointsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetWaypointsResponseDefaultTypeInternal _GetWaypointsResponse_default_instance_; +PROTOBUF_CONSTEXPR AddWaypointRequest::AddWaypointRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.location_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct AddWaypointRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR AddWaypointRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AddWaypointRequestDefaultTypeInternal() {} + union { + AddWaypointRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddWaypointRequestDefaultTypeInternal _AddWaypointRequest_default_instance_; +PROTOBUF_CONSTEXPR AddWaypointResponse::AddWaypointResponse( + ::_pbi::ConstantInitialized) {} +struct AddWaypointResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AddWaypointResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AddWaypointResponseDefaultTypeInternal() {} + union { + AddWaypointResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddWaypointResponseDefaultTypeInternal _AddWaypointResponse_default_instance_; +PROTOBUF_CONSTEXPR RemoveWaypointRequest::RemoveWaypointRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RemoveWaypointRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoveWaypointRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RemoveWaypointRequestDefaultTypeInternal() {} + union { + RemoveWaypointRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveWaypointRequestDefaultTypeInternal _RemoveWaypointRequest_default_instance_; +PROTOBUF_CONSTEXPR RemoveWaypointResponse::RemoveWaypointResponse( + ::_pbi::ConstantInitialized) {} +struct RemoveWaypointResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoveWaypointResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RemoveWaypointResponseDefaultTypeInternal() {} + union { + RemoveWaypointResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveWaypointResponseDefaultTypeInternal _RemoveWaypointResponse_default_instance_; +} // namespace v1 +} // namespace navigation +} // namespace service +} // namespace viam +static ::_pb::Metadata file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[13]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_service_2fnavigation_2fv1_2fnavigation_2eproto[1]; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fnavigation_2fv1_2fnavigation_2eproto = nullptr; + +const uint32_t TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetModeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetModeRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetModeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetModeResponse, _impl_.mode_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::SetModeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::SetModeRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::SetModeRequest, _impl_.mode_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::SetModeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::Waypoint, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::Waypoint, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::Waypoint, _impl_.location_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetLocationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetLocationRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetLocationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetLocationResponse, _impl_.location_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetWaypointsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetWaypointsRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetWaypointsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetWaypointsResponse, _impl_.waypoints_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::AddWaypointRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::AddWaypointRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::AddWaypointRequest, _impl_.location_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::AddWaypointResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::RemoveWaypointRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::RemoveWaypointRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::RemoveWaypointRequest, _impl_.id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::RemoveWaypointResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::service::navigation::v1::GetModeRequest)}, + { 7, -1, -1, sizeof(::viam::service::navigation::v1::GetModeResponse)}, + { 14, -1, -1, sizeof(::viam::service::navigation::v1::SetModeRequest)}, + { 22, -1, -1, sizeof(::viam::service::navigation::v1::SetModeResponse)}, + { 28, -1, -1, sizeof(::viam::service::navigation::v1::Waypoint)}, + { 36, -1, -1, sizeof(::viam::service::navigation::v1::GetLocationRequest)}, + { 43, -1, -1, sizeof(::viam::service::navigation::v1::GetLocationResponse)}, + { 50, -1, -1, sizeof(::viam::service::navigation::v1::GetWaypointsRequest)}, + { 57, -1, -1, sizeof(::viam::service::navigation::v1::GetWaypointsResponse)}, + { 64, -1, -1, sizeof(::viam::service::navigation::v1::AddWaypointRequest)}, + { 72, -1, -1, sizeof(::viam::service::navigation::v1::AddWaypointResponse)}, + { 78, -1, -1, sizeof(::viam::service::navigation::v1::RemoveWaypointRequest)}, + { 86, -1, -1, sizeof(::viam::service::navigation::v1::RemoveWaypointResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::service::navigation::v1::_GetModeRequest_default_instance_._instance, + &::viam::service::navigation::v1::_GetModeResponse_default_instance_._instance, + &::viam::service::navigation::v1::_SetModeRequest_default_instance_._instance, + &::viam::service::navigation::v1::_SetModeResponse_default_instance_._instance, + &::viam::service::navigation::v1::_Waypoint_default_instance_._instance, + &::viam::service::navigation::v1::_GetLocationRequest_default_instance_._instance, + &::viam::service::navigation::v1::_GetLocationResponse_default_instance_._instance, + &::viam::service::navigation::v1::_GetWaypointsRequest_default_instance_._instance, + &::viam::service::navigation::v1::_GetWaypointsResponse_default_instance_._instance, + &::viam::service::navigation::v1::_AddWaypointRequest_default_instance_._instance, + &::viam::service::navigation::v1::_AddWaypointResponse_default_instance_._instance, + &::viam::service::navigation::v1::_RemoveWaypointRequest_default_instance_._instance, + &::viam::service::navigation::v1::_RemoveWaypointResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_service_2fnavigation_2fv1_2fnavigation_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n&service/navigation/v1/navigation.proto" + "\022\032viam.service.navigation.v1\032\026common/v1/" + "common.proto\032\034google/api/annotations.pro" + "to\"$\n\016GetModeRequest\022\022\n\004name\030\001 \001(\tR\004name" + "\"G\n\017GetModeResponse\0224\n\004mode\030\001 \001(\0162 .viam" + ".service.navigation.v1.ModeR\004mode\"Z\n\016Set" + "ModeRequest\022\022\n\004name\030\001 \001(\tR\004name\0224\n\004mode\030" + "\002 \001(\0162 .viam.service.navigation.v1.ModeR" + "\004mode\"\021\n\017SetModeResponse\"P\n\010Waypoint\022\016\n\002" + "id\030\001 \001(\tR\002id\0224\n\010location\030\002 \001(\0132\030.viam.co" + "mmon.v1.GeoPointR\010location\"(\n\022GetLocatio" + "nRequest\022\022\n\004name\030\001 \001(\tR\004name\"K\n\023GetLocat" + "ionResponse\0224\n\010location\030\001 \001(\0132\030.viam.com" + "mon.v1.GeoPointR\010location\")\n\023GetWaypoint" + "sRequest\022\022\n\004name\030\001 \001(\tR\004name\"Z\n\024GetWaypo" + "intsResponse\022B\n\twaypoints\030\001 \003(\0132$.viam.s" + "ervice.navigation.v1.WaypointR\twaypoints" + "\"^\n\022AddWaypointRequest\022\022\n\004name\030\001 \001(\tR\004na" + "me\0224\n\010location\030\002 \001(\0132\030.viam.common.v1.Ge" + "oPointR\010location\"\025\n\023AddWaypointResponse\"" + ";\n\025RemoveWaypointRequest\022\022\n\004name\030\001 \001(\tR\004" + "name\022\016\n\002id\030\002 \001(\tR\002id\"\030\n\026RemoveWaypointRe" + "sponse*@\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\017\n\013" + "MODE_MANUAL\020\001\022\021\n\rMODE_WAYPOINT\020\0022\203\010\n\021Nav" + "igationService\022\227\001\n\007GetMode\022*.viam.servic" + "e.navigation.v1.GetModeRequest\032+.viam.se" + "rvice.navigation.v1.GetModeResponse\"3\202\323\344" + "\223\002-\022+/viam/api/v1/service/navigation/{na" + "me}/mode\022\227\001\n\007SetMode\022*.viam.service.navi" + "gation.v1.SetModeRequest\032+.viam.service." + "navigation.v1.SetModeResponse\"3\202\323\344\223\002-\032+/" + "viam/api/v1/service/navigation/{name}/mo" + "de\022\247\001\n\013GetLocation\022..viam.service.naviga" + "tion.v1.GetLocationRequest\032/.viam.servic" + "e.navigation.v1.GetLocationResponse\"7\202\323\344" + "\223\0021\022//viam/api/v1/service/navigation/{na" + "me}/location\022\253\001\n\014GetWaypoints\022/.viam.ser" + "vice.navigation.v1.GetWaypointsRequest\0320" + ".viam.service.navigation.v1.GetWaypoints" + "Response\"8\202\323\344\223\0022\0220/viam/api/v1/service/n" + "avigation/{name}/waypoints\022\250\001\n\013AddWaypoi" + "nt\022..viam.service.navigation.v1.AddWaypo" + "intRequest\032/.viam.service.navigation.v1." + "AddWaypointResponse\"8\202\323\344\223\0022\"0/viam/api/v" + "1/service/navigation/{name}/waypoints\022\266\001" + "\n\016RemoveWaypoint\0221.viam.service.navigati" + "on.v1.RemoveWaypointRequest\0322.viam.servi" + "ce.navigation.v1.RemoveWaypointResponse\"" + "=\202\323\344\223\0027*5/viam/api/v1/service/navigation" + "/{name}/waypoints/{id}BG\n\036com.viam.servi" + "ce.navigation.v1Z%go.viam.com/api/servic" + "e/navigation/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_deps[2] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, +}; +static ::_pbi::once_flag descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto = { + false, false, 2063, descriptor_table_protodef_service_2fnavigation_2fv1_2fnavigation_2eproto, + "service/navigation/v1/navigation.proto", + &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_deps, 2, 13, + schemas, file_default_instances, TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto::offsets, + file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto, file_level_enum_descriptors_service_2fnavigation_2fv1_2fnavigation_2eproto, + file_level_service_descriptors_service_2fnavigation_2fv1_2fnavigation_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter() { + return &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fnavigation_2fv1_2fnavigation_2eproto(&descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto); +namespace viam { +namespace service { +namespace navigation { +namespace v1 { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Mode_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto); + return file_level_enum_descriptors_service_2fnavigation_2fv1_2fnavigation_2eproto[0]; +} +bool Mode_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + + +// =================================================================== + +class GetModeRequest::_Internal { + public: +}; + +GetModeRequest::GetModeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.navigation.v1.GetModeRequest) +} +GetModeRequest::GetModeRequest(const GetModeRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetModeRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.GetModeRequest) +} + +inline void GetModeRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetModeRequest::~GetModeRequest() { + // @@protoc_insertion_point(destructor:viam.service.navigation.v1.GetModeRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetModeRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void GetModeRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetModeRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.GetModeRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetModeRequest::_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.navigation.v1.GetModeRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetModeRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.GetModeRequest) + 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.navigation.v1.GetModeRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.navigation.v1.GetModeRequest) + return target; +} + +size_t GetModeRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.GetModeRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetModeRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetModeRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetModeRequest::GetClassData() const { return &_class_data_; } + + +void GetModeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetModeRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetModeRequest::CopyFrom(const GetModeRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.navigation.v1.GetModeRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetModeRequest::IsInitialized() const { + return true; +} + +void GetModeRequest::InternalSwap(GetModeRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetModeRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, + file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[0]); +} + +// =================================================================== + +class GetModeResponse::_Internal { + public: +}; + +GetModeResponse::GetModeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.navigation.v1.GetModeResponse) +} +GetModeResponse::GetModeResponse(const GetModeResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetModeResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.mode_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.mode_ = from._impl_.mode_; + // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.GetModeResponse) +} + +inline void GetModeResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.mode_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetModeResponse::~GetModeResponse() { + // @@protoc_insertion_point(destructor:viam.service.navigation.v1.GetModeResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetModeResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetModeResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetModeResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.GetModeResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.mode_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetModeResponse::_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) { + // .viam.service.navigation.v1.Mode mode = 1 [json_name = "mode"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_mode(static_cast<::viam::service::navigation::v1::Mode>(val)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetModeResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.GetModeResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.service.navigation.v1.Mode mode = 1 [json_name = "mode"]; + if (this->_internal_mode() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_mode(), 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.navigation.v1.GetModeResponse) + return target; +} + +size_t GetModeResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.GetModeResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.service.navigation.v1.Mode mode = 1 [json_name = "mode"]; + if (this->_internal_mode() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_mode()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetModeResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetModeResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetModeResponse::GetClassData() const { return &_class_data_; } + + +void GetModeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetModeResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_mode() != 0) { + _this->_internal_set_mode(from._internal_mode()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetModeResponse::CopyFrom(const GetModeResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.navigation.v1.GetModeResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetModeResponse::IsInitialized() const { + return true; +} + +void GetModeResponse::InternalSwap(GetModeResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.mode_, other->_impl_.mode_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetModeResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, + file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[1]); +} + +// =================================================================== + +class SetModeRequest::_Internal { + public: +}; + +SetModeRequest::SetModeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.navigation.v1.SetModeRequest) +} +SetModeRequest::SetModeRequest(const SetModeRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + SetModeRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.mode_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _this->_impl_.mode_ = from._impl_.mode_; + // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.SetModeRequest) +} + +inline void SetModeRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.mode_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +SetModeRequest::~SetModeRequest() { + // @@protoc_insertion_point(destructor:viam.service.navigation.v1.SetModeRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SetModeRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void SetModeRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SetModeRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.SetModeRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.mode_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SetModeRequest::_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.navigation.v1.SetModeRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.service.navigation.v1.Mode mode = 2 [json_name = "mode"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_mode(static_cast<::viam::service::navigation::v1::Mode>(val)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* SetModeRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.SetModeRequest) + 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.navigation.v1.SetModeRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .viam.service.navigation.v1.Mode mode = 2 [json_name = "mode"]; + if (this->_internal_mode() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_mode(), 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.navigation.v1.SetModeRequest) + return target; +} + +size_t SetModeRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.SetModeRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // .viam.service.navigation.v1.Mode mode = 2 [json_name = "mode"]; + if (this->_internal_mode() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_mode()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetModeRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SetModeRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetModeRequest::GetClassData() const { return &_class_data_; } + + +void SetModeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.SetModeRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_mode() != 0) { + _this->_internal_set_mode(from._internal_mode()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SetModeRequest::CopyFrom(const SetModeRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.navigation.v1.SetModeRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetModeRequest::IsInitialized() const { + return true; +} + +void SetModeRequest::InternalSwap(SetModeRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.mode_, other->_impl_.mode_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetModeRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, + file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[2]); +} + +// =================================================================== + +class SetModeResponse::_Internal { + public: +}; + +SetModeResponse::SetModeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.service.navigation.v1.SetModeResponse) +} +SetModeResponse::SetModeResponse(const SetModeResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SetModeResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.SetModeResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetModeResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetModeResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata SetModeResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, + file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[3]); +} + +// =================================================================== + +class Waypoint::_Internal { + public: + static const ::viam::common::v1::GeoPoint& location(const Waypoint* msg); +}; + +const ::viam::common::v1::GeoPoint& +Waypoint::_Internal::location(const Waypoint* msg) { + return *msg->_impl_.location_; +} +void Waypoint::clear_location() { + if (GetArenaForAllocation() == nullptr && _impl_.location_ != nullptr) { + delete _impl_.location_; + } + _impl_.location_ = nullptr; +} +Waypoint::Waypoint(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.navigation.v1.Waypoint) +} +Waypoint::Waypoint(const Waypoint& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Waypoint* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.location_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_location()) { + _this->_impl_.location_ = new ::viam::common::v1::GeoPoint(*from._impl_.location_); + } + // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.Waypoint) +} + +inline void Waypoint::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , decltype(_impl_.location_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Waypoint::~Waypoint() { + // @@protoc_insertion_point(destructor:viam.service.navigation.v1.Waypoint) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Waypoint::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); + if (this != internal_default_instance()) delete _impl_.location_; +} + +void Waypoint::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Waypoint::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.Waypoint) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.location_ != nullptr) { + delete _impl_.location_; + } + _impl_.location_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Waypoint::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.navigation.v1.Waypoint.id")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_location(), 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* Waypoint::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.Waypoint) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.navigation.v1.Waypoint.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; + if (this->_internal_has_location()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::location(this), + _Internal::location(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.navigation.v1.Waypoint) + return target; +} + +size_t Waypoint::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.Waypoint) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; + if (this->_internal_has_location()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.location_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Waypoint::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Waypoint::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Waypoint::GetClassData() const { return &_class_data_; } + + +void Waypoint::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.Waypoint) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + if (from._internal_has_location()) { + _this->_internal_mutable_location()->::viam::common::v1::GeoPoint::MergeFrom( + from._internal_location()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Waypoint::CopyFrom(const Waypoint& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.navigation.v1.Waypoint) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Waypoint::IsInitialized() const { + return true; +} + +void Waypoint::InternalSwap(Waypoint* 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( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); + swap(_impl_.location_, other->_impl_.location_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Waypoint::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, + file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[4]); +} + +// =================================================================== + +class GetLocationRequest::_Internal { + public: +}; + +GetLocationRequest::GetLocationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.navigation.v1.GetLocationRequest) +} +GetLocationRequest::GetLocationRequest(const GetLocationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetLocationRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.GetLocationRequest) +} + +inline void GetLocationRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetLocationRequest::~GetLocationRequest() { + // @@protoc_insertion_point(destructor:viam.service.navigation.v1.GetLocationRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetLocationRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void GetLocationRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetLocationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.GetLocationRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetLocationRequest::_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.navigation.v1.GetLocationRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetLocationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.GetLocationRequest) + 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.navigation.v1.GetLocationRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.navigation.v1.GetLocationRequest) + return target; +} + +size_t GetLocationRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.GetLocationRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetLocationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetLocationRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetLocationRequest::GetClassData() const { return &_class_data_; } + + +void GetLocationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetLocationRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetLocationRequest::CopyFrom(const GetLocationRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.navigation.v1.GetLocationRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetLocationRequest::IsInitialized() const { + return true; +} + +void GetLocationRequest::InternalSwap(GetLocationRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetLocationRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, + file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[5]); +} + +// =================================================================== + +class GetLocationResponse::_Internal { + public: + static const ::viam::common::v1::GeoPoint& location(const GetLocationResponse* msg); +}; + +const ::viam::common::v1::GeoPoint& +GetLocationResponse::_Internal::location(const GetLocationResponse* msg) { + return *msg->_impl_.location_; +} +void GetLocationResponse::clear_location() { + if (GetArenaForAllocation() == nullptr && _impl_.location_ != nullptr) { + delete _impl_.location_; + } + _impl_.location_ = nullptr; +} +GetLocationResponse::GetLocationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.navigation.v1.GetLocationResponse) +} +GetLocationResponse::GetLocationResponse(const GetLocationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetLocationResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.location_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_location()) { + _this->_impl_.location_ = new ::viam::common::v1::GeoPoint(*from._impl_.location_); + } + // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.GetLocationResponse) +} + +inline void GetLocationResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.location_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetLocationResponse::~GetLocationResponse() { + // @@protoc_insertion_point(destructor:viam.service.navigation.v1.GetLocationResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetLocationResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.location_; +} + +void GetLocationResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetLocationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.GetLocationResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.location_ != nullptr) { + delete _impl_.location_; + } + _impl_.location_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetLocationResponse::_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) { + // .viam.common.v1.GeoPoint location = 1 [json_name = "location"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_location(), 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* GetLocationResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.GetLocationResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.common.v1.GeoPoint location = 1 [json_name = "location"]; + if (this->_internal_has_location()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::location(this), + _Internal::location(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.navigation.v1.GetLocationResponse) + return target; +} + +size_t GetLocationResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.GetLocationResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.common.v1.GeoPoint location = 1 [json_name = "location"]; + if (this->_internal_has_location()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.location_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetLocationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetLocationResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetLocationResponse::GetClassData() const { return &_class_data_; } + + +void GetLocationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetLocationResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_location()) { + _this->_internal_mutable_location()->::viam::common::v1::GeoPoint::MergeFrom( + from._internal_location()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetLocationResponse::CopyFrom(const GetLocationResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.navigation.v1.GetLocationResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetLocationResponse::IsInitialized() const { + return true; +} + +void GetLocationResponse::InternalSwap(GetLocationResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.location_, other->_impl_.location_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetLocationResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, + file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[6]); +} + +// =================================================================== + +class GetWaypointsRequest::_Internal { + public: +}; + +GetWaypointsRequest::GetWaypointsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.navigation.v1.GetWaypointsRequest) +} +GetWaypointsRequest::GetWaypointsRequest(const GetWaypointsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetWaypointsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.GetWaypointsRequest) +} + +inline void GetWaypointsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetWaypointsRequest::~GetWaypointsRequest() { + // @@protoc_insertion_point(destructor:viam.service.navigation.v1.GetWaypointsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetWaypointsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void GetWaypointsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetWaypointsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.GetWaypointsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetWaypointsRequest::_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.navigation.v1.GetWaypointsRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetWaypointsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.GetWaypointsRequest) + 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.navigation.v1.GetWaypointsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.navigation.v1.GetWaypointsRequest) + return target; +} + +size_t GetWaypointsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.GetWaypointsRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetWaypointsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetWaypointsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetWaypointsRequest::GetClassData() const { return &_class_data_; } + + +void GetWaypointsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetWaypointsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetWaypointsRequest::CopyFrom(const GetWaypointsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.navigation.v1.GetWaypointsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetWaypointsRequest::IsInitialized() const { + return true; +} + +void GetWaypointsRequest::InternalSwap(GetWaypointsRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetWaypointsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, + file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[7]); +} + +// =================================================================== + +class GetWaypointsResponse::_Internal { + public: +}; + +GetWaypointsResponse::GetWaypointsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.navigation.v1.GetWaypointsResponse) +} +GetWaypointsResponse::GetWaypointsResponse(const GetWaypointsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetWaypointsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.waypoints_){from._impl_.waypoints_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.GetWaypointsResponse) +} + +inline void GetWaypointsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.waypoints_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetWaypointsResponse::~GetWaypointsResponse() { + // @@protoc_insertion_point(destructor:viam.service.navigation.v1.GetWaypointsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetWaypointsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.waypoints_.~RepeatedPtrField(); +} + +void GetWaypointsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetWaypointsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.GetWaypointsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.waypoints_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetWaypointsResponse::_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) { + // repeated .viam.service.navigation.v1.Waypoint waypoints = 1 [json_name = "waypoints"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_waypoints(), 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* GetWaypointsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.GetWaypointsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.service.navigation.v1.Waypoint waypoints = 1 [json_name = "waypoints"]; + for (unsigned i = 0, + n = static_cast(this->_internal_waypoints_size()); i < n; i++) { + const auto& repfield = this->_internal_waypoints(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.navigation.v1.GetWaypointsResponse) + return target; +} + +size_t GetWaypointsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.GetWaypointsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.service.navigation.v1.Waypoint waypoints = 1 [json_name = "waypoints"]; + total_size += 1UL * this->_internal_waypoints_size(); + for (const auto& msg : this->_impl_.waypoints_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetWaypointsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetWaypointsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetWaypointsResponse::GetClassData() const { return &_class_data_; } + + +void GetWaypointsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetWaypointsResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.waypoints_.MergeFrom(from._impl_.waypoints_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetWaypointsResponse::CopyFrom(const GetWaypointsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.navigation.v1.GetWaypointsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetWaypointsResponse::IsInitialized() const { + return true; +} + +void GetWaypointsResponse::InternalSwap(GetWaypointsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.waypoints_.InternalSwap(&other->_impl_.waypoints_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetWaypointsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, + file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[8]); +} + +// =================================================================== + +class AddWaypointRequest::_Internal { + public: + static const ::viam::common::v1::GeoPoint& location(const AddWaypointRequest* msg); +}; + +const ::viam::common::v1::GeoPoint& +AddWaypointRequest::_Internal::location(const AddWaypointRequest* msg) { + return *msg->_impl_.location_; +} +void AddWaypointRequest::clear_location() { + if (GetArenaForAllocation() == nullptr && _impl_.location_ != nullptr) { + delete _impl_.location_; + } + _impl_.location_ = nullptr; +} +AddWaypointRequest::AddWaypointRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.navigation.v1.AddWaypointRequest) +} +AddWaypointRequest::AddWaypointRequest(const AddWaypointRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + AddWaypointRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.location_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_location()) { + _this->_impl_.location_ = new ::viam::common::v1::GeoPoint(*from._impl_.location_); + } + // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.AddWaypointRequest) +} + +inline void AddWaypointRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.location_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +AddWaypointRequest::~AddWaypointRequest() { + // @@protoc_insertion_point(destructor:viam.service.navigation.v1.AddWaypointRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void AddWaypointRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.location_; +} + +void AddWaypointRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void AddWaypointRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.AddWaypointRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.location_ != nullptr) { + delete _impl_.location_; + } + _impl_.location_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AddWaypointRequest::_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.navigation.v1.AddWaypointRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_location(), 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* AddWaypointRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.AddWaypointRequest) + 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.navigation.v1.AddWaypointRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; + if (this->_internal_has_location()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::location(this), + _Internal::location(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.navigation.v1.AddWaypointRequest) + return target; +} + +size_t AddWaypointRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.AddWaypointRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; + if (this->_internal_has_location()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.location_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddWaypointRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AddWaypointRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddWaypointRequest::GetClassData() const { return &_class_data_; } + + +void AddWaypointRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.AddWaypointRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_has_location()) { + _this->_internal_mutable_location()->::viam::common::v1::GeoPoint::MergeFrom( + from._internal_location()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AddWaypointRequest::CopyFrom(const AddWaypointRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.navigation.v1.AddWaypointRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AddWaypointRequest::IsInitialized() const { + return true; +} + +void AddWaypointRequest::InternalSwap(AddWaypointRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + swap(_impl_.location_, other->_impl_.location_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AddWaypointRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, + file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[9]); +} + +// =================================================================== + +class AddWaypointResponse::_Internal { + public: +}; + +AddWaypointResponse::AddWaypointResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.service.navigation.v1.AddWaypointResponse) +} +AddWaypointResponse::AddWaypointResponse(const AddWaypointResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + AddWaypointResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.AddWaypointResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddWaypointResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddWaypointResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata AddWaypointResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, + file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[10]); +} + +// =================================================================== + +class RemoveWaypointRequest::_Internal { + public: +}; + +RemoveWaypointRequest::RemoveWaypointRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.navigation.v1.RemoveWaypointRequest) +} +RemoveWaypointRequest::RemoveWaypointRequest(const RemoveWaypointRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RemoveWaypointRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.RemoveWaypointRequest) +} + +inline void RemoveWaypointRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +RemoveWaypointRequest::~RemoveWaypointRequest() { + // @@protoc_insertion_point(destructor:viam.service.navigation.v1.RemoveWaypointRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RemoveWaypointRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.id_.Destroy(); +} + +void RemoveWaypointRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RemoveWaypointRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.RemoveWaypointRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RemoveWaypointRequest::_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.navigation.v1.RemoveWaypointRequest.name")); + } else + goto handle_unusual; + continue; + // string id = 2 [json_name = "id"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.navigation.v1.RemoveWaypointRequest.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* RemoveWaypointRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.RemoveWaypointRequest) + 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.navigation.v1.RemoveWaypointRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string id = 2 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.navigation.v1.RemoveWaypointRequest.id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_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.navigation.v1.RemoveWaypointRequest) + return target; +} + +size_t RemoveWaypointRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.RemoveWaypointRequest) + 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 id = 2 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoveWaypointRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RemoveWaypointRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoveWaypointRequest::GetClassData() const { return &_class_data_; } + + +void RemoveWaypointRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.RemoveWaypointRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RemoveWaypointRequest::CopyFrom(const RemoveWaypointRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.navigation.v1.RemoveWaypointRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RemoveWaypointRequest::IsInitialized() const { + return true; +} + +void RemoveWaypointRequest::InternalSwap(RemoveWaypointRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RemoveWaypointRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, + file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[11]); +} + +// =================================================================== + +class RemoveWaypointResponse::_Internal { + public: +}; + +RemoveWaypointResponse::RemoveWaypointResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.service.navigation.v1.RemoveWaypointResponse) +} +RemoveWaypointResponse::RemoveWaypointResponse(const RemoveWaypointResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + RemoveWaypointResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.RemoveWaypointResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoveWaypointResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoveWaypointResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata RemoveWaypointResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, + file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[12]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace navigation +} // namespace service +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::GetModeRequest* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::GetModeRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::GetModeRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::GetModeResponse* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::GetModeResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::GetModeResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::SetModeRequest* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::SetModeRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::SetModeRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::SetModeResponse* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::SetModeResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::SetModeResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::Waypoint* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::Waypoint >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::Waypoint >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::GetLocationRequest* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::GetLocationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::GetLocationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::GetLocationResponse* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::GetLocationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::GetLocationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::GetWaypointsRequest* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::GetWaypointsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::GetWaypointsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::GetWaypointsResponse* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::GetWaypointsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::GetWaypointsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::AddWaypointRequest* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::AddWaypointRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::AddWaypointRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::AddWaypointResponse* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::AddWaypointResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::AddWaypointResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::RemoveWaypointRequest* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::RemoveWaypointRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::RemoveWaypointRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::RemoveWaypointResponse* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::RemoveWaypointResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::RemoveWaypointResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/service/navigation/v1/navigation.pb.h b/src/gen/service/navigation/v1/navigation.pb.h new file mode 100644 index 000000000..1f600fb81 --- /dev/null +++ b/src/gen/service/navigation/v1/navigation.pb.h @@ -0,0 +1,2940 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service/navigation/v1/navigation.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fnavigation_2fv1_2fnavigation_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_service_2fnavigation_2fv1_2fnavigation_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "common/v1/common.pb.h" +#include "google/api/annotations.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_service_2fnavigation_2fv1_2fnavigation_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto; +namespace viam { +namespace service { +namespace navigation { +namespace v1 { +class AddWaypointRequest; +struct AddWaypointRequestDefaultTypeInternal; +extern AddWaypointRequestDefaultTypeInternal _AddWaypointRequest_default_instance_; +class AddWaypointResponse; +struct AddWaypointResponseDefaultTypeInternal; +extern AddWaypointResponseDefaultTypeInternal _AddWaypointResponse_default_instance_; +class GetLocationRequest; +struct GetLocationRequestDefaultTypeInternal; +extern GetLocationRequestDefaultTypeInternal _GetLocationRequest_default_instance_; +class GetLocationResponse; +struct GetLocationResponseDefaultTypeInternal; +extern GetLocationResponseDefaultTypeInternal _GetLocationResponse_default_instance_; +class GetModeRequest; +struct GetModeRequestDefaultTypeInternal; +extern GetModeRequestDefaultTypeInternal _GetModeRequest_default_instance_; +class GetModeResponse; +struct GetModeResponseDefaultTypeInternal; +extern GetModeResponseDefaultTypeInternal _GetModeResponse_default_instance_; +class GetWaypointsRequest; +struct GetWaypointsRequestDefaultTypeInternal; +extern GetWaypointsRequestDefaultTypeInternal _GetWaypointsRequest_default_instance_; +class GetWaypointsResponse; +struct GetWaypointsResponseDefaultTypeInternal; +extern GetWaypointsResponseDefaultTypeInternal _GetWaypointsResponse_default_instance_; +class RemoveWaypointRequest; +struct RemoveWaypointRequestDefaultTypeInternal; +extern RemoveWaypointRequestDefaultTypeInternal _RemoveWaypointRequest_default_instance_; +class RemoveWaypointResponse; +struct RemoveWaypointResponseDefaultTypeInternal; +extern RemoveWaypointResponseDefaultTypeInternal _RemoveWaypointResponse_default_instance_; +class SetModeRequest; +struct SetModeRequestDefaultTypeInternal; +extern SetModeRequestDefaultTypeInternal _SetModeRequest_default_instance_; +class SetModeResponse; +struct SetModeResponseDefaultTypeInternal; +extern SetModeResponseDefaultTypeInternal _SetModeResponse_default_instance_; +class Waypoint; +struct WaypointDefaultTypeInternal; +extern WaypointDefaultTypeInternal _Waypoint_default_instance_; +} // namespace v1 +} // namespace navigation +} // namespace service +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::service::navigation::v1::AddWaypointRequest* Arena::CreateMaybeMessage<::viam::service::navigation::v1::AddWaypointRequest>(Arena*); +template<> ::viam::service::navigation::v1::AddWaypointResponse* Arena::CreateMaybeMessage<::viam::service::navigation::v1::AddWaypointResponse>(Arena*); +template<> ::viam::service::navigation::v1::GetLocationRequest* Arena::CreateMaybeMessage<::viam::service::navigation::v1::GetLocationRequest>(Arena*); +template<> ::viam::service::navigation::v1::GetLocationResponse* Arena::CreateMaybeMessage<::viam::service::navigation::v1::GetLocationResponse>(Arena*); +template<> ::viam::service::navigation::v1::GetModeRequest* Arena::CreateMaybeMessage<::viam::service::navigation::v1::GetModeRequest>(Arena*); +template<> ::viam::service::navigation::v1::GetModeResponse* Arena::CreateMaybeMessage<::viam::service::navigation::v1::GetModeResponse>(Arena*); +template<> ::viam::service::navigation::v1::GetWaypointsRequest* Arena::CreateMaybeMessage<::viam::service::navigation::v1::GetWaypointsRequest>(Arena*); +template<> ::viam::service::navigation::v1::GetWaypointsResponse* Arena::CreateMaybeMessage<::viam::service::navigation::v1::GetWaypointsResponse>(Arena*); +template<> ::viam::service::navigation::v1::RemoveWaypointRequest* Arena::CreateMaybeMessage<::viam::service::navigation::v1::RemoveWaypointRequest>(Arena*); +template<> ::viam::service::navigation::v1::RemoveWaypointResponse* Arena::CreateMaybeMessage<::viam::service::navigation::v1::RemoveWaypointResponse>(Arena*); +template<> ::viam::service::navigation::v1::SetModeRequest* Arena::CreateMaybeMessage<::viam::service::navigation::v1::SetModeRequest>(Arena*); +template<> ::viam::service::navigation::v1::SetModeResponse* Arena::CreateMaybeMessage<::viam::service::navigation::v1::SetModeResponse>(Arena*); +template<> ::viam::service::navigation::v1::Waypoint* Arena::CreateMaybeMessage<::viam::service::navigation::v1::Waypoint>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace service { +namespace navigation { +namespace v1 { + +enum Mode : int { + MODE_UNSPECIFIED = 0, + MODE_MANUAL = 1, + MODE_WAYPOINT = 2, + Mode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + Mode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool Mode_IsValid(int value); +constexpr Mode Mode_MIN = MODE_UNSPECIFIED; +constexpr Mode Mode_MAX = MODE_WAYPOINT; +constexpr int Mode_ARRAYSIZE = Mode_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Mode_descriptor(); +template +inline const std::string& Mode_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Mode_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + Mode_descriptor(), enum_t_value); +} +inline bool Mode_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Mode* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + Mode_descriptor(), name, value); +} +// =================================================================== + +class GetModeRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetModeRequest) */ { + public: + inline GetModeRequest() : GetModeRequest(nullptr) {} + ~GetModeRequest() override; + explicit PROTOBUF_CONSTEXPR GetModeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetModeRequest(const GetModeRequest& from); + GetModeRequest(GetModeRequest&& from) noexcept + : GetModeRequest() { + *this = ::std::move(from); + } + + inline GetModeRequest& operator=(const GetModeRequest& from) { + CopyFrom(from); + return *this; + } + inline GetModeRequest& operator=(GetModeRequest&& 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 GetModeRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetModeRequest* internal_default_instance() { + return reinterpret_cast( + &_GetModeRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(GetModeRequest& a, GetModeRequest& b) { + a.Swap(&b); + } + inline void Swap(GetModeRequest* 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(GetModeRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetModeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetModeRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetModeRequest& from) { + GetModeRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetModeRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.GetModeRequest"; + } + protected: + explicit GetModeRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetModeRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; +}; +// ------------------------------------------------------------------- + +class GetModeResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetModeResponse) */ { + public: + inline GetModeResponse() : GetModeResponse(nullptr) {} + ~GetModeResponse() override; + explicit PROTOBUF_CONSTEXPR GetModeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetModeResponse(const GetModeResponse& from); + GetModeResponse(GetModeResponse&& from) noexcept + : GetModeResponse() { + *this = ::std::move(from); + } + + inline GetModeResponse& operator=(const GetModeResponse& from) { + CopyFrom(from); + return *this; + } + inline GetModeResponse& operator=(GetModeResponse&& 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 GetModeResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetModeResponse* internal_default_instance() { + return reinterpret_cast( + &_GetModeResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(GetModeResponse& a, GetModeResponse& b) { + a.Swap(&b); + } + inline void Swap(GetModeResponse* 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(GetModeResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetModeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetModeResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetModeResponse& from) { + GetModeResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetModeResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.GetModeResponse"; + } + protected: + explicit GetModeResponse(::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 { + kModeFieldNumber = 1, + }; + // .viam.service.navigation.v1.Mode mode = 1 [json_name = "mode"]; + void clear_mode(); + ::viam::service::navigation::v1::Mode mode() const; + void set_mode(::viam::service::navigation::v1::Mode value); + private: + ::viam::service::navigation::v1::Mode _internal_mode() const; + void _internal_set_mode(::viam::service::navigation::v1::Mode value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetModeResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + int mode_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; +}; +// ------------------------------------------------------------------- + +class SetModeRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.SetModeRequest) */ { + public: + inline SetModeRequest() : SetModeRequest(nullptr) {} + ~SetModeRequest() override; + explicit PROTOBUF_CONSTEXPR SetModeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SetModeRequest(const SetModeRequest& from); + SetModeRequest(SetModeRequest&& from) noexcept + : SetModeRequest() { + *this = ::std::move(from); + } + + inline SetModeRequest& operator=(const SetModeRequest& from) { + CopyFrom(from); + return *this; + } + inline SetModeRequest& operator=(SetModeRequest&& 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 SetModeRequest& default_instance() { + return *internal_default_instance(); + } + static inline const SetModeRequest* internal_default_instance() { + return reinterpret_cast( + &_SetModeRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(SetModeRequest& a, SetModeRequest& b) { + a.Swap(&b); + } + inline void Swap(SetModeRequest* 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(SetModeRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetModeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SetModeRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SetModeRequest& from) { + SetModeRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SetModeRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.SetModeRequest"; + } + protected: + explicit SetModeRequest(::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, + kModeFieldNumber = 2, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // .viam.service.navigation.v1.Mode mode = 2 [json_name = "mode"]; + void clear_mode(); + ::viam::service::navigation::v1::Mode mode() const; + void set_mode(::viam::service::navigation::v1::Mode value); + private: + ::viam::service::navigation::v1::Mode _internal_mode() const; + void _internal_set_mode(::viam::service::navigation::v1::Mode value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.SetModeRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + int mode_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; +}; +// ------------------------------------------------------------------- + +class SetModeResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.SetModeResponse) */ { + public: + inline SetModeResponse() : SetModeResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SetModeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SetModeResponse(const SetModeResponse& from); + SetModeResponse(SetModeResponse&& from) noexcept + : SetModeResponse() { + *this = ::std::move(from); + } + + inline SetModeResponse& operator=(const SetModeResponse& from) { + CopyFrom(from); + return *this; + } + inline SetModeResponse& operator=(SetModeResponse&& 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 SetModeResponse& default_instance() { + return *internal_default_instance(); + } + static inline const SetModeResponse* internal_default_instance() { + return reinterpret_cast( + &_SetModeResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(SetModeResponse& a, SetModeResponse& b) { + a.Swap(&b); + } + inline void Swap(SetModeResponse* 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(SetModeResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetModeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SetModeResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SetModeResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.SetModeResponse"; + } + protected: + explicit SetModeResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.SetModeResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; +}; +// ------------------------------------------------------------------- + +class Waypoint final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.Waypoint) */ { + public: + inline Waypoint() : Waypoint(nullptr) {} + ~Waypoint() override; + explicit PROTOBUF_CONSTEXPR Waypoint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Waypoint(const Waypoint& from); + Waypoint(Waypoint&& from) noexcept + : Waypoint() { + *this = ::std::move(from); + } + + inline Waypoint& operator=(const Waypoint& from) { + CopyFrom(from); + return *this; + } + inline Waypoint& operator=(Waypoint&& 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 Waypoint& default_instance() { + return *internal_default_instance(); + } + static inline const Waypoint* internal_default_instance() { + return reinterpret_cast( + &_Waypoint_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(Waypoint& a, Waypoint& b) { + a.Swap(&b); + } + inline void Swap(Waypoint* 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(Waypoint* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Waypoint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Waypoint& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Waypoint& from) { + Waypoint::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Waypoint* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.Waypoint"; + } + protected: + explicit Waypoint(::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 { + kIdFieldNumber = 1, + kLocationFieldNumber = 2, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; + bool has_location() const; + private: + bool _internal_has_location() const; + public: + void clear_location(); + const ::viam::common::v1::GeoPoint& location() const; + PROTOBUF_NODISCARD ::viam::common::v1::GeoPoint* release_location(); + ::viam::common::v1::GeoPoint* mutable_location(); + void set_allocated_location(::viam::common::v1::GeoPoint* location); + private: + const ::viam::common::v1::GeoPoint& _internal_location() const; + ::viam::common::v1::GeoPoint* _internal_mutable_location(); + public: + void unsafe_arena_set_allocated_location( + ::viam::common::v1::GeoPoint* location); + ::viam::common::v1::GeoPoint* unsafe_arena_release_location(); + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.Waypoint) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::viam::common::v1::GeoPoint* location_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; +}; +// ------------------------------------------------------------------- + +class GetLocationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetLocationRequest) */ { + public: + inline GetLocationRequest() : GetLocationRequest(nullptr) {} + ~GetLocationRequest() override; + explicit PROTOBUF_CONSTEXPR GetLocationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetLocationRequest(const GetLocationRequest& from); + GetLocationRequest(GetLocationRequest&& from) noexcept + : GetLocationRequest() { + *this = ::std::move(from); + } + + inline GetLocationRequest& operator=(const GetLocationRequest& from) { + CopyFrom(from); + return *this; + } + inline GetLocationRequest& operator=(GetLocationRequest&& 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 GetLocationRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetLocationRequest* internal_default_instance() { + return reinterpret_cast( + &_GetLocationRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(GetLocationRequest& a, GetLocationRequest& b) { + a.Swap(&b); + } + inline void Swap(GetLocationRequest* 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(GetLocationRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetLocationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetLocationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetLocationRequest& from) { + GetLocationRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetLocationRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.GetLocationRequest"; + } + protected: + explicit GetLocationRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetLocationRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; +}; +// ------------------------------------------------------------------- + +class GetLocationResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetLocationResponse) */ { + public: + inline GetLocationResponse() : GetLocationResponse(nullptr) {} + ~GetLocationResponse() override; + explicit PROTOBUF_CONSTEXPR GetLocationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetLocationResponse(const GetLocationResponse& from); + GetLocationResponse(GetLocationResponse&& from) noexcept + : GetLocationResponse() { + *this = ::std::move(from); + } + + inline GetLocationResponse& operator=(const GetLocationResponse& from) { + CopyFrom(from); + return *this; + } + inline GetLocationResponse& operator=(GetLocationResponse&& 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 GetLocationResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetLocationResponse* internal_default_instance() { + return reinterpret_cast( + &_GetLocationResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(GetLocationResponse& a, GetLocationResponse& b) { + a.Swap(&b); + } + inline void Swap(GetLocationResponse* 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(GetLocationResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetLocationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetLocationResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetLocationResponse& from) { + GetLocationResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetLocationResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.GetLocationResponse"; + } + protected: + explicit GetLocationResponse(::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 { + kLocationFieldNumber = 1, + }; + // .viam.common.v1.GeoPoint location = 1 [json_name = "location"]; + bool has_location() const; + private: + bool _internal_has_location() const; + public: + void clear_location(); + const ::viam::common::v1::GeoPoint& location() const; + PROTOBUF_NODISCARD ::viam::common::v1::GeoPoint* release_location(); + ::viam::common::v1::GeoPoint* mutable_location(); + void set_allocated_location(::viam::common::v1::GeoPoint* location); + private: + const ::viam::common::v1::GeoPoint& _internal_location() const; + ::viam::common::v1::GeoPoint* _internal_mutable_location(); + public: + void unsafe_arena_set_allocated_location( + ::viam::common::v1::GeoPoint* location); + ::viam::common::v1::GeoPoint* unsafe_arena_release_location(); + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetLocationResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::common::v1::GeoPoint* location_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; +}; +// ------------------------------------------------------------------- + +class GetWaypointsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetWaypointsRequest) */ { + public: + inline GetWaypointsRequest() : GetWaypointsRequest(nullptr) {} + ~GetWaypointsRequest() override; + explicit PROTOBUF_CONSTEXPR GetWaypointsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetWaypointsRequest(const GetWaypointsRequest& from); + GetWaypointsRequest(GetWaypointsRequest&& from) noexcept + : GetWaypointsRequest() { + *this = ::std::move(from); + } + + inline GetWaypointsRequest& operator=(const GetWaypointsRequest& from) { + CopyFrom(from); + return *this; + } + inline GetWaypointsRequest& operator=(GetWaypointsRequest&& 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 GetWaypointsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetWaypointsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetWaypointsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(GetWaypointsRequest& a, GetWaypointsRequest& b) { + a.Swap(&b); + } + inline void Swap(GetWaypointsRequest* 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(GetWaypointsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetWaypointsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetWaypointsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetWaypointsRequest& from) { + GetWaypointsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetWaypointsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.GetWaypointsRequest"; + } + protected: + explicit GetWaypointsRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetWaypointsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; +}; +// ------------------------------------------------------------------- + +class GetWaypointsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetWaypointsResponse) */ { + public: + inline GetWaypointsResponse() : GetWaypointsResponse(nullptr) {} + ~GetWaypointsResponse() override; + explicit PROTOBUF_CONSTEXPR GetWaypointsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetWaypointsResponse(const GetWaypointsResponse& from); + GetWaypointsResponse(GetWaypointsResponse&& from) noexcept + : GetWaypointsResponse() { + *this = ::std::move(from); + } + + inline GetWaypointsResponse& operator=(const GetWaypointsResponse& from) { + CopyFrom(from); + return *this; + } + inline GetWaypointsResponse& operator=(GetWaypointsResponse&& 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 GetWaypointsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetWaypointsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetWaypointsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(GetWaypointsResponse& a, GetWaypointsResponse& b) { + a.Swap(&b); + } + inline void Swap(GetWaypointsResponse* 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(GetWaypointsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetWaypointsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetWaypointsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetWaypointsResponse& from) { + GetWaypointsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetWaypointsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.GetWaypointsResponse"; + } + protected: + explicit GetWaypointsResponse(::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 { + kWaypointsFieldNumber = 1, + }; + // repeated .viam.service.navigation.v1.Waypoint waypoints = 1 [json_name = "waypoints"]; + int waypoints_size() const; + private: + int _internal_waypoints_size() const; + public: + void clear_waypoints(); + ::viam::service::navigation::v1::Waypoint* mutable_waypoints(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::navigation::v1::Waypoint >* + mutable_waypoints(); + private: + const ::viam::service::navigation::v1::Waypoint& _internal_waypoints(int index) const; + ::viam::service::navigation::v1::Waypoint* _internal_add_waypoints(); + public: + const ::viam::service::navigation::v1::Waypoint& waypoints(int index) const; + ::viam::service::navigation::v1::Waypoint* add_waypoints(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::navigation::v1::Waypoint >& + waypoints() const; + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetWaypointsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::navigation::v1::Waypoint > waypoints_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; +}; +// ------------------------------------------------------------------- + +class AddWaypointRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.AddWaypointRequest) */ { + public: + inline AddWaypointRequest() : AddWaypointRequest(nullptr) {} + ~AddWaypointRequest() override; + explicit PROTOBUF_CONSTEXPR AddWaypointRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AddWaypointRequest(const AddWaypointRequest& from); + AddWaypointRequest(AddWaypointRequest&& from) noexcept + : AddWaypointRequest() { + *this = ::std::move(from); + } + + inline AddWaypointRequest& operator=(const AddWaypointRequest& from) { + CopyFrom(from); + return *this; + } + inline AddWaypointRequest& operator=(AddWaypointRequest&& 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 AddWaypointRequest& default_instance() { + return *internal_default_instance(); + } + static inline const AddWaypointRequest* internal_default_instance() { + return reinterpret_cast( + &_AddWaypointRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(AddWaypointRequest& a, AddWaypointRequest& b) { + a.Swap(&b); + } + inline void Swap(AddWaypointRequest* 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(AddWaypointRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AddWaypointRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AddWaypointRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const AddWaypointRequest& from) { + AddWaypointRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AddWaypointRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.AddWaypointRequest"; + } + protected: + explicit AddWaypointRequest(::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, + kLocationFieldNumber = 2, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; + bool has_location() const; + private: + bool _internal_has_location() const; + public: + void clear_location(); + const ::viam::common::v1::GeoPoint& location() const; + PROTOBUF_NODISCARD ::viam::common::v1::GeoPoint* release_location(); + ::viam::common::v1::GeoPoint* mutable_location(); + void set_allocated_location(::viam::common::v1::GeoPoint* location); + private: + const ::viam::common::v1::GeoPoint& _internal_location() const; + ::viam::common::v1::GeoPoint* _internal_mutable_location(); + public: + void unsafe_arena_set_allocated_location( + ::viam::common::v1::GeoPoint* location); + ::viam::common::v1::GeoPoint* unsafe_arena_release_location(); + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.AddWaypointRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::viam::common::v1::GeoPoint* location_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; +}; +// ------------------------------------------------------------------- + +class AddWaypointResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.AddWaypointResponse) */ { + public: + inline AddWaypointResponse() : AddWaypointResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR AddWaypointResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AddWaypointResponse(const AddWaypointResponse& from); + AddWaypointResponse(AddWaypointResponse&& from) noexcept + : AddWaypointResponse() { + *this = ::std::move(from); + } + + inline AddWaypointResponse& operator=(const AddWaypointResponse& from) { + CopyFrom(from); + return *this; + } + inline AddWaypointResponse& operator=(AddWaypointResponse&& 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 AddWaypointResponse& default_instance() { + return *internal_default_instance(); + } + static inline const AddWaypointResponse* internal_default_instance() { + return reinterpret_cast( + &_AddWaypointResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(AddWaypointResponse& a, AddWaypointResponse& b) { + a.Swap(&b); + } + inline void Swap(AddWaypointResponse* 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(AddWaypointResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AddWaypointResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const AddWaypointResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const AddWaypointResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.AddWaypointResponse"; + } + protected: + explicit AddWaypointResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.AddWaypointResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; +}; +// ------------------------------------------------------------------- + +class RemoveWaypointRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.RemoveWaypointRequest) */ { + public: + inline RemoveWaypointRequest() : RemoveWaypointRequest(nullptr) {} + ~RemoveWaypointRequest() override; + explicit PROTOBUF_CONSTEXPR RemoveWaypointRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RemoveWaypointRequest(const RemoveWaypointRequest& from); + RemoveWaypointRequest(RemoveWaypointRequest&& from) noexcept + : RemoveWaypointRequest() { + *this = ::std::move(from); + } + + inline RemoveWaypointRequest& operator=(const RemoveWaypointRequest& from) { + CopyFrom(from); + return *this; + } + inline RemoveWaypointRequest& operator=(RemoveWaypointRequest&& 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 RemoveWaypointRequest& default_instance() { + return *internal_default_instance(); + } + static inline const RemoveWaypointRequest* internal_default_instance() { + return reinterpret_cast( + &_RemoveWaypointRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(RemoveWaypointRequest& a, RemoveWaypointRequest& b) { + a.Swap(&b); + } + inline void Swap(RemoveWaypointRequest* 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(RemoveWaypointRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RemoveWaypointRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RemoveWaypointRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RemoveWaypointRequest& from) { + RemoveWaypointRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RemoveWaypointRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.RemoveWaypointRequest"; + } + protected: + explicit RemoveWaypointRequest(::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, + kIdFieldNumber = 2, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // string id = 2 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.RemoveWaypointRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; +}; +// ------------------------------------------------------------------- + +class RemoveWaypointResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.RemoveWaypointResponse) */ { + public: + inline RemoveWaypointResponse() : RemoveWaypointResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR RemoveWaypointResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RemoveWaypointResponse(const RemoveWaypointResponse& from); + RemoveWaypointResponse(RemoveWaypointResponse&& from) noexcept + : RemoveWaypointResponse() { + *this = ::std::move(from); + } + + inline RemoveWaypointResponse& operator=(const RemoveWaypointResponse& from) { + CopyFrom(from); + return *this; + } + inline RemoveWaypointResponse& operator=(RemoveWaypointResponse&& 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 RemoveWaypointResponse& default_instance() { + return *internal_default_instance(); + } + static inline const RemoveWaypointResponse* internal_default_instance() { + return reinterpret_cast( + &_RemoveWaypointResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(RemoveWaypointResponse& a, RemoveWaypointResponse& b) { + a.Swap(&b); + } + inline void Swap(RemoveWaypointResponse* 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(RemoveWaypointResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RemoveWaypointResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const RemoveWaypointResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const RemoveWaypointResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.RemoveWaypointResponse"; + } + protected: + explicit RemoveWaypointResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.RemoveWaypointResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// GetModeRequest + +// string name = 1 [json_name = "name"]; +inline void GetModeRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetModeRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetModeRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetModeRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.navigation.v1.GetModeRequest.name) +} +inline std::string* GetModeRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.GetModeRequest.name) + return _s; +} +inline const std::string& GetModeRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetModeRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetModeRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetModeRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.navigation.v1.GetModeRequest.name) + return _impl_.name_.Release(); +} +inline void GetModeRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.GetModeRequest.name) +} + +// ------------------------------------------------------------------- + +// GetModeResponse + +// .viam.service.navigation.v1.Mode mode = 1 [json_name = "mode"]; +inline void GetModeResponse::clear_mode() { + _impl_.mode_ = 0; +} +inline ::viam::service::navigation::v1::Mode GetModeResponse::_internal_mode() const { + return static_cast< ::viam::service::navigation::v1::Mode >(_impl_.mode_); +} +inline ::viam::service::navigation::v1::Mode GetModeResponse::mode() const { + // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetModeResponse.mode) + return _internal_mode(); +} +inline void GetModeResponse::_internal_set_mode(::viam::service::navigation::v1::Mode value) { + + _impl_.mode_ = value; +} +inline void GetModeResponse::set_mode(::viam::service::navigation::v1::Mode value) { + _internal_set_mode(value); + // @@protoc_insertion_point(field_set:viam.service.navigation.v1.GetModeResponse.mode) +} + +// ------------------------------------------------------------------- + +// SetModeRequest + +// string name = 1 [json_name = "name"]; +inline void SetModeRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& SetModeRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.navigation.v1.SetModeRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SetModeRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.navigation.v1.SetModeRequest.name) +} +inline std::string* SetModeRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.SetModeRequest.name) + return _s; +} +inline const std::string& SetModeRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void SetModeRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* SetModeRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* SetModeRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.navigation.v1.SetModeRequest.name) + return _impl_.name_.Release(); +} +inline void SetModeRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.SetModeRequest.name) +} + +// .viam.service.navigation.v1.Mode mode = 2 [json_name = "mode"]; +inline void SetModeRequest::clear_mode() { + _impl_.mode_ = 0; +} +inline ::viam::service::navigation::v1::Mode SetModeRequest::_internal_mode() const { + return static_cast< ::viam::service::navigation::v1::Mode >(_impl_.mode_); +} +inline ::viam::service::navigation::v1::Mode SetModeRequest::mode() const { + // @@protoc_insertion_point(field_get:viam.service.navigation.v1.SetModeRequest.mode) + return _internal_mode(); +} +inline void SetModeRequest::_internal_set_mode(::viam::service::navigation::v1::Mode value) { + + _impl_.mode_ = value; +} +inline void SetModeRequest::set_mode(::viam::service::navigation::v1::Mode value) { + _internal_set_mode(value); + // @@protoc_insertion_point(field_set:viam.service.navigation.v1.SetModeRequest.mode) +} + +// ------------------------------------------------------------------- + +// SetModeResponse + +// ------------------------------------------------------------------- + +// Waypoint + +// string id = 1 [json_name = "id"]; +inline void Waypoint::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& Waypoint::id() const { + // @@protoc_insertion_point(field_get:viam.service.navigation.v1.Waypoint.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Waypoint::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.navigation.v1.Waypoint.id) +} +inline std::string* Waypoint::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.Waypoint.id) + return _s; +} +inline const std::string& Waypoint::_internal_id() const { + return _impl_.id_.Get(); +} +inline void Waypoint::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* Waypoint::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* Waypoint::release_id() { + // @@protoc_insertion_point(field_release:viam.service.navigation.v1.Waypoint.id) + return _impl_.id_.Release(); +} +inline void Waypoint::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.Waypoint.id) +} + +// .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; +inline bool Waypoint::_internal_has_location() const { + return this != internal_default_instance() && _impl_.location_ != nullptr; +} +inline bool Waypoint::has_location() const { + return _internal_has_location(); +} +inline const ::viam::common::v1::GeoPoint& Waypoint::_internal_location() const { + const ::viam::common::v1::GeoPoint* p = _impl_.location_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_GeoPoint_default_instance_); +} +inline const ::viam::common::v1::GeoPoint& Waypoint::location() const { + // @@protoc_insertion_point(field_get:viam.service.navigation.v1.Waypoint.location) + return _internal_location(); +} +inline void Waypoint::unsafe_arena_set_allocated_location( + ::viam::common::v1::GeoPoint* location) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.location_); + } + _impl_.location_ = location; + if (location) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.navigation.v1.Waypoint.location) +} +inline ::viam::common::v1::GeoPoint* Waypoint::release_location() { + + ::viam::common::v1::GeoPoint* temp = _impl_.location_; + _impl_.location_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::GeoPoint* Waypoint::unsafe_arena_release_location() { + // @@protoc_insertion_point(field_release:viam.service.navigation.v1.Waypoint.location) + + ::viam::common::v1::GeoPoint* temp = _impl_.location_; + _impl_.location_ = nullptr; + return temp; +} +inline ::viam::common::v1::GeoPoint* Waypoint::_internal_mutable_location() { + + if (_impl_.location_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::GeoPoint>(GetArenaForAllocation()); + _impl_.location_ = p; + } + return _impl_.location_; +} +inline ::viam::common::v1::GeoPoint* Waypoint::mutable_location() { + ::viam::common::v1::GeoPoint* _msg = _internal_mutable_location(); + // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.Waypoint.location) + return _msg; +} +inline void Waypoint::set_allocated_location(::viam::common::v1::GeoPoint* location) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.location_); + } + if (location) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location)); + if (message_arena != submessage_arena) { + location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, location, submessage_arena); + } + + } else { + + } + _impl_.location_ = location; + // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.Waypoint.location) +} + +// ------------------------------------------------------------------- + +// GetLocationRequest + +// string name = 1 [json_name = "name"]; +inline void GetLocationRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetLocationRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetLocationRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetLocationRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.navigation.v1.GetLocationRequest.name) +} +inline std::string* GetLocationRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.GetLocationRequest.name) + return _s; +} +inline const std::string& GetLocationRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetLocationRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetLocationRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetLocationRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.navigation.v1.GetLocationRequest.name) + return _impl_.name_.Release(); +} +inline void GetLocationRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.GetLocationRequest.name) +} + +// ------------------------------------------------------------------- + +// GetLocationResponse + +// .viam.common.v1.GeoPoint location = 1 [json_name = "location"]; +inline bool GetLocationResponse::_internal_has_location() const { + return this != internal_default_instance() && _impl_.location_ != nullptr; +} +inline bool GetLocationResponse::has_location() const { + return _internal_has_location(); +} +inline const ::viam::common::v1::GeoPoint& GetLocationResponse::_internal_location() const { + const ::viam::common::v1::GeoPoint* p = _impl_.location_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_GeoPoint_default_instance_); +} +inline const ::viam::common::v1::GeoPoint& GetLocationResponse::location() const { + // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetLocationResponse.location) + return _internal_location(); +} +inline void GetLocationResponse::unsafe_arena_set_allocated_location( + ::viam::common::v1::GeoPoint* location) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.location_); + } + _impl_.location_ = location; + if (location) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.navigation.v1.GetLocationResponse.location) +} +inline ::viam::common::v1::GeoPoint* GetLocationResponse::release_location() { + + ::viam::common::v1::GeoPoint* temp = _impl_.location_; + _impl_.location_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::GeoPoint* GetLocationResponse::unsafe_arena_release_location() { + // @@protoc_insertion_point(field_release:viam.service.navigation.v1.GetLocationResponse.location) + + ::viam::common::v1::GeoPoint* temp = _impl_.location_; + _impl_.location_ = nullptr; + return temp; +} +inline ::viam::common::v1::GeoPoint* GetLocationResponse::_internal_mutable_location() { + + if (_impl_.location_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::GeoPoint>(GetArenaForAllocation()); + _impl_.location_ = p; + } + return _impl_.location_; +} +inline ::viam::common::v1::GeoPoint* GetLocationResponse::mutable_location() { + ::viam::common::v1::GeoPoint* _msg = _internal_mutable_location(); + // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.GetLocationResponse.location) + return _msg; +} +inline void GetLocationResponse::set_allocated_location(::viam::common::v1::GeoPoint* location) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.location_); + } + if (location) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location)); + if (message_arena != submessage_arena) { + location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, location, submessage_arena); + } + + } else { + + } + _impl_.location_ = location; + // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.GetLocationResponse.location) +} + +// ------------------------------------------------------------------- + +// GetWaypointsRequest + +// string name = 1 [json_name = "name"]; +inline void GetWaypointsRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetWaypointsRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetWaypointsRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetWaypointsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.navigation.v1.GetWaypointsRequest.name) +} +inline std::string* GetWaypointsRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.GetWaypointsRequest.name) + return _s; +} +inline const std::string& GetWaypointsRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetWaypointsRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetWaypointsRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetWaypointsRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.navigation.v1.GetWaypointsRequest.name) + return _impl_.name_.Release(); +} +inline void GetWaypointsRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.GetWaypointsRequest.name) +} + +// ------------------------------------------------------------------- + +// GetWaypointsResponse + +// repeated .viam.service.navigation.v1.Waypoint waypoints = 1 [json_name = "waypoints"]; +inline int GetWaypointsResponse::_internal_waypoints_size() const { + return _impl_.waypoints_.size(); +} +inline int GetWaypointsResponse::waypoints_size() const { + return _internal_waypoints_size(); +} +inline void GetWaypointsResponse::clear_waypoints() { + _impl_.waypoints_.Clear(); +} +inline ::viam::service::navigation::v1::Waypoint* GetWaypointsResponse::mutable_waypoints(int index) { + // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.GetWaypointsResponse.waypoints) + return _impl_.waypoints_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::navigation::v1::Waypoint >* +GetWaypointsResponse::mutable_waypoints() { + // @@protoc_insertion_point(field_mutable_list:viam.service.navigation.v1.GetWaypointsResponse.waypoints) + return &_impl_.waypoints_; +} +inline const ::viam::service::navigation::v1::Waypoint& GetWaypointsResponse::_internal_waypoints(int index) const { + return _impl_.waypoints_.Get(index); +} +inline const ::viam::service::navigation::v1::Waypoint& GetWaypointsResponse::waypoints(int index) const { + // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetWaypointsResponse.waypoints) + return _internal_waypoints(index); +} +inline ::viam::service::navigation::v1::Waypoint* GetWaypointsResponse::_internal_add_waypoints() { + return _impl_.waypoints_.Add(); +} +inline ::viam::service::navigation::v1::Waypoint* GetWaypointsResponse::add_waypoints() { + ::viam::service::navigation::v1::Waypoint* _add = _internal_add_waypoints(); + // @@protoc_insertion_point(field_add:viam.service.navigation.v1.GetWaypointsResponse.waypoints) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::navigation::v1::Waypoint >& +GetWaypointsResponse::waypoints() const { + // @@protoc_insertion_point(field_list:viam.service.navigation.v1.GetWaypointsResponse.waypoints) + return _impl_.waypoints_; +} + +// ------------------------------------------------------------------- + +// AddWaypointRequest + +// string name = 1 [json_name = "name"]; +inline void AddWaypointRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& AddWaypointRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.navigation.v1.AddWaypointRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AddWaypointRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.navigation.v1.AddWaypointRequest.name) +} +inline std::string* AddWaypointRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.AddWaypointRequest.name) + return _s; +} +inline const std::string& AddWaypointRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void AddWaypointRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* AddWaypointRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* AddWaypointRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.navigation.v1.AddWaypointRequest.name) + return _impl_.name_.Release(); +} +inline void AddWaypointRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.AddWaypointRequest.name) +} + +// .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; +inline bool AddWaypointRequest::_internal_has_location() const { + return this != internal_default_instance() && _impl_.location_ != nullptr; +} +inline bool AddWaypointRequest::has_location() const { + return _internal_has_location(); +} +inline const ::viam::common::v1::GeoPoint& AddWaypointRequest::_internal_location() const { + const ::viam::common::v1::GeoPoint* p = _impl_.location_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_GeoPoint_default_instance_); +} +inline const ::viam::common::v1::GeoPoint& AddWaypointRequest::location() const { + // @@protoc_insertion_point(field_get:viam.service.navigation.v1.AddWaypointRequest.location) + return _internal_location(); +} +inline void AddWaypointRequest::unsafe_arena_set_allocated_location( + ::viam::common::v1::GeoPoint* location) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.location_); + } + _impl_.location_ = location; + if (location) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.navigation.v1.AddWaypointRequest.location) +} +inline ::viam::common::v1::GeoPoint* AddWaypointRequest::release_location() { + + ::viam::common::v1::GeoPoint* temp = _impl_.location_; + _impl_.location_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::GeoPoint* AddWaypointRequest::unsafe_arena_release_location() { + // @@protoc_insertion_point(field_release:viam.service.navigation.v1.AddWaypointRequest.location) + + ::viam::common::v1::GeoPoint* temp = _impl_.location_; + _impl_.location_ = nullptr; + return temp; +} +inline ::viam::common::v1::GeoPoint* AddWaypointRequest::_internal_mutable_location() { + + if (_impl_.location_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::GeoPoint>(GetArenaForAllocation()); + _impl_.location_ = p; + } + return _impl_.location_; +} +inline ::viam::common::v1::GeoPoint* AddWaypointRequest::mutable_location() { + ::viam::common::v1::GeoPoint* _msg = _internal_mutable_location(); + // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.AddWaypointRequest.location) + return _msg; +} +inline void AddWaypointRequest::set_allocated_location(::viam::common::v1::GeoPoint* location) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.location_); + } + if (location) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location)); + if (message_arena != submessage_arena) { + location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, location, submessage_arena); + } + + } else { + + } + _impl_.location_ = location; + // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.AddWaypointRequest.location) +} + +// ------------------------------------------------------------------- + +// AddWaypointResponse + +// ------------------------------------------------------------------- + +// RemoveWaypointRequest + +// string name = 1 [json_name = "name"]; +inline void RemoveWaypointRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& RemoveWaypointRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.navigation.v1.RemoveWaypointRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RemoveWaypointRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.navigation.v1.RemoveWaypointRequest.name) +} +inline std::string* RemoveWaypointRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.RemoveWaypointRequest.name) + return _s; +} +inline const std::string& RemoveWaypointRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void RemoveWaypointRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* RemoveWaypointRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* RemoveWaypointRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.navigation.v1.RemoveWaypointRequest.name) + return _impl_.name_.Release(); +} +inline void RemoveWaypointRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.RemoveWaypointRequest.name) +} + +// string id = 2 [json_name = "id"]; +inline void RemoveWaypointRequest::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& RemoveWaypointRequest::id() const { + // @@protoc_insertion_point(field_get:viam.service.navigation.v1.RemoveWaypointRequest.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RemoveWaypointRequest::set_id(ArgT0&& arg0, ArgT... args) { + + _impl_.id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.navigation.v1.RemoveWaypointRequest.id) +} +inline std::string* RemoveWaypointRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.RemoveWaypointRequest.id) + return _s; +} +inline const std::string& RemoveWaypointRequest::_internal_id() const { + return _impl_.id_.Get(); +} +inline void RemoveWaypointRequest::_internal_set_id(const std::string& value) { + + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* RemoveWaypointRequest::_internal_mutable_id() { + + return _impl_.id_.Mutable(GetArenaForAllocation()); +} +inline std::string* RemoveWaypointRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.service.navigation.v1.RemoveWaypointRequest.id) + return _impl_.id_.Release(); +} +inline void RemoveWaypointRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + _impl_.id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.RemoveWaypointRequest.id) +} + +// ------------------------------------------------------------------- + +// RemoveWaypointResponse + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace navigation +} // namespace service +} // namespace viam + +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::viam::service::navigation::v1::Mode> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::viam::service::navigation::v1::Mode>() { + return ::viam::service::navigation::v1::Mode_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_service_2fnavigation_2fv1_2fnavigation_2eproto diff --git a/src/gen/service/sensors/v1/sensors.grpc.pb.cc b/src/gen/service/sensors/v1/sensors.grpc.pb.cc new file mode 100644 index 000000000..121950db0 --- /dev/null +++ b/src/gen/service/sensors/v1/sensors.grpc.pb.cc @@ -0,0 +1,134 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: service/sensors/v1/sensors.proto + +#include "service/sensors/v1/sensors.pb.h" +#include "service/sensors/v1/sensors.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace service { +namespace sensors { +namespace v1 { + +static const char* SensorsService_method_names[] = { + "/viam.service.sensors.v1.SensorsService/GetSensors", + "/viam.service.sensors.v1.SensorsService/GetReadings", +}; + +std::unique_ptr< SensorsService::Stub> SensorsService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< SensorsService::Stub> stub(new SensorsService::Stub(channel, options)); + return stub; +} + +SensorsService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_GetSensors_(SensorsService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetReadings_(SensorsService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status SensorsService::Stub::GetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::viam::service::sensors::v1::GetSensorsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::sensors::v1::GetSensorsRequest, ::viam::service::sensors::v1::GetSensorsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetSensors_, context, request, response); +} + +void SensorsService::Stub::async::GetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest* request, ::viam::service::sensors::v1::GetSensorsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::sensors::v1::GetSensorsRequest, ::viam::service::sensors::v1::GetSensorsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetSensors_, context, request, response, std::move(f)); +} + +void SensorsService::Stub::async::GetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest* request, ::viam::service::sensors::v1::GetSensorsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetSensors_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetSensorsResponse>* SensorsService::Stub::PrepareAsyncGetSensorsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::sensors::v1::GetSensorsResponse, ::viam::service::sensors::v1::GetSensorsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetSensors_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetSensorsResponse>* SensorsService::Stub::AsyncGetSensorsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetSensorsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status SensorsService::Stub::GetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest& request, ::viam::service::sensors::v1::GetReadingsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::sensors::v1::GetReadingsRequest, ::viam::service::sensors::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetReadings_, context, request, response); +} + +void SensorsService::Stub::async::GetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest* request, ::viam::service::sensors::v1::GetReadingsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::sensors::v1::GetReadingsRequest, ::viam::service::sensors::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, std::move(f)); +} + +void SensorsService::Stub::async::GetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest* request, ::viam::service::sensors::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetReadingsResponse>* SensorsService::Stub::PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::sensors::v1::GetReadingsResponse, ::viam::service::sensors::v1::GetReadingsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetReadings_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetReadingsResponse>* SensorsService::Stub::AsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetReadingsRaw(context, request, cq); + result->StartCall(); + return result; +} + +SensorsService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + SensorsService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< SensorsService::Service, ::viam::service::sensors::v1::GetSensorsRequest, ::viam::service::sensors::v1::GetSensorsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](SensorsService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::sensors::v1::GetSensorsRequest* req, + ::viam::service::sensors::v1::GetSensorsResponse* resp) { + return service->GetSensors(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + SensorsService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< SensorsService::Service, ::viam::service::sensors::v1::GetReadingsRequest, ::viam::service::sensors::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](SensorsService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::sensors::v1::GetReadingsRequest* req, + ::viam::service::sensors::v1::GetReadingsResponse* resp) { + return service->GetReadings(ctx, req, resp); + }, this))); +} + +SensorsService::Service::~Service() { +} + +::grpc::Status SensorsService::Service::GetSensors(::grpc::ServerContext* context, const ::viam::service::sensors::v1::GetSensorsRequest* request, ::viam::service::sensors::v1::GetSensorsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status SensorsService::Service::GetReadings(::grpc::ServerContext* context, const ::viam::service::sensors::v1::GetReadingsRequest* request, ::viam::service::sensors::v1::GetReadingsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace service +} // namespace sensors +} // namespace v1 + diff --git a/src/gen/service/sensors/v1/sensors.grpc.pb.h b/src/gen/service/sensors/v1/sensors.grpc.pb.h new file mode 100644 index 000000000..c9e87dde2 --- /dev/null +++ b/src/gen/service/sensors/v1/sensors.grpc.pb.h @@ -0,0 +1,410 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: service/sensors/v1/sensors.proto +#ifndef GRPC_service_2fsensors_2fv1_2fsensors_2eproto__INCLUDED +#define GRPC_service_2fsensors_2fv1_2fsensors_2eproto__INCLUDED + +#include "service/sensors/v1/sensors.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 sensors { +namespace v1 { + +// A SensorsService services keeps track of all sensors associated with a robot +class SensorsService final { + public: + static constexpr char const* service_full_name() { + return "viam.service.sensors.v1.SensorsService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // GetSensors returns the list of all sensors. + virtual ::grpc::Status GetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::viam::service::sensors::v1::GetSensorsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::sensors::v1::GetSensorsResponse>> AsyncGetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::sensors::v1::GetSensorsResponse>>(AsyncGetSensorsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::sensors::v1::GetSensorsResponse>> PrepareAsyncGetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::sensors::v1::GetSensorsResponse>>(PrepareAsyncGetSensorsRaw(context, request, cq)); + } + // GetReadings returns the list of readings for all sensors specified. + virtual ::grpc::Status GetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest& request, ::viam::service::sensors::v1::GetReadingsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::sensors::v1::GetReadingsResponse>> AsyncGetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::sensors::v1::GetReadingsResponse>>(AsyncGetReadingsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::sensors::v1::GetReadingsResponse>> PrepareAsyncGetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::sensors::v1::GetReadingsResponse>>(PrepareAsyncGetReadingsRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // GetSensors returns the list of all sensors. + virtual void GetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest* request, ::viam::service::sensors::v1::GetSensorsResponse* response, std::function) = 0; + virtual void GetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest* request, ::viam::service::sensors::v1::GetSensorsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GetReadings returns the list of readings for all sensors specified. + virtual void GetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest* request, ::viam::service::sensors::v1::GetReadingsResponse* response, std::function) = 0; + virtual void GetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest* request, ::viam::service::sensors::v1::GetReadingsResponse* 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::ClientAsyncResponseReaderInterface< ::viam::service::sensors::v1::GetSensorsResponse>* AsyncGetSensorsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::sensors::v1::GetSensorsResponse>* PrepareAsyncGetSensorsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::sensors::v1::GetReadingsResponse>* AsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::sensors::v1::GetReadingsResponse>* PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest& 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()); + ::grpc::Status GetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::viam::service::sensors::v1::GetSensorsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetSensorsResponse>> AsyncGetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetSensorsResponse>>(AsyncGetSensorsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetSensorsResponse>> PrepareAsyncGetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetSensorsResponse>>(PrepareAsyncGetSensorsRaw(context, request, cq)); + } + ::grpc::Status GetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest& request, ::viam::service::sensors::v1::GetReadingsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetReadingsResponse>> AsyncGetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetReadingsResponse>>(AsyncGetReadingsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetReadingsResponse>> PrepareAsyncGetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetReadingsResponse>>(PrepareAsyncGetReadingsRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void GetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest* request, ::viam::service::sensors::v1::GetSensorsResponse* response, std::function) override; + void GetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest* request, ::viam::service::sensors::v1::GetSensorsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest* request, ::viam::service::sensors::v1::GetReadingsResponse* response, std::function) override; + void GetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest* request, ::viam::service::sensors::v1::GetReadingsResponse* 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::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetSensorsResponse>* AsyncGetSensorsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetSensorsResponse>* PrepareAsyncGetSensorsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetReadingsResponse>* AsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetReadingsResponse>* PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_GetSensors_; + const ::grpc::internal::RpcMethod rpcmethod_GetReadings_; + }; + 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(); + // GetSensors returns the list of all sensors. + virtual ::grpc::Status GetSensors(::grpc::ServerContext* context, const ::viam::service::sensors::v1::GetSensorsRequest* request, ::viam::service::sensors::v1::GetSensorsResponse* response); + // GetReadings returns the list of readings for all sensors specified. + virtual ::grpc::Status GetReadings(::grpc::ServerContext* context, const ::viam::service::sensors::v1::GetReadingsRequest* request, ::viam::service::sensors::v1::GetReadingsResponse* response); + }; + template + class WithAsyncMethod_GetSensors : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetSensors() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_GetSensors() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetSensors(::grpc::ServerContext* /*context*/, const ::viam::service::sensors::v1::GetSensorsRequest* /*request*/, ::viam::service::sensors::v1::GetSensorsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetSensors(::grpc::ServerContext* context, ::viam::service::sensors::v1::GetSensorsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::sensors::v1::GetSensorsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetReadings() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::service::sensors::v1::GetReadingsRequest* /*request*/, ::viam::service::sensors::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetReadings(::grpc::ServerContext* context, ::viam::service::sensors::v1::GetReadingsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::sensors::v1::GetReadingsResponse>* 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_GetSensors > AsyncService; + template + class WithCallbackMethod_GetSensors : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetSensors() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::sensors::v1::GetSensorsRequest, ::viam::service::sensors::v1::GetSensorsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::sensors::v1::GetSensorsRequest* request, ::viam::service::sensors::v1::GetSensorsResponse* response) { return this->GetSensors(context, request, response); }));} + void SetMessageAllocatorFor_GetSensors( + ::grpc::MessageAllocator< ::viam::service::sensors::v1::GetSensorsRequest, ::viam::service::sensors::v1::GetSensorsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::sensors::v1::GetSensorsRequest, ::viam::service::sensors::v1::GetSensorsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetSensors() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetSensors(::grpc::ServerContext* /*context*/, const ::viam::service::sensors::v1::GetSensorsRequest* /*request*/, ::viam::service::sensors::v1::GetSensorsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetSensors( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::sensors::v1::GetSensorsRequest* /*request*/, ::viam::service::sensors::v1::GetSensorsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetReadings() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::sensors::v1::GetReadingsRequest, ::viam::service::sensors::v1::GetReadingsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::sensors::v1::GetReadingsRequest* request, ::viam::service::sensors::v1::GetReadingsResponse* response) { return this->GetReadings(context, request, response); }));} + void SetMessageAllocatorFor_GetReadings( + ::grpc::MessageAllocator< ::viam::service::sensors::v1::GetReadingsRequest, ::viam::service::sensors::v1::GetReadingsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::sensors::v1::GetReadingsRequest, ::viam::service::sensors::v1::GetReadingsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::service::sensors::v1::GetReadingsRequest* /*request*/, ::viam::service::sensors::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetReadings( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::sensors::v1::GetReadingsRequest* /*request*/, ::viam::service::sensors::v1::GetReadingsResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetSensors > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_GetSensors : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetSensors() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_GetSensors() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetSensors(::grpc::ServerContext* /*context*/, const ::viam::service::sensors::v1::GetSensorsRequest* /*request*/, ::viam::service::sensors::v1::GetSensorsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetReadings() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::service::sensors::v1::GetReadingsRequest* /*request*/, ::viam::service::sensors::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_GetSensors : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetSensors() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_GetSensors() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetSensors(::grpc::ServerContext* /*context*/, const ::viam::service::sensors::v1::GetSensorsRequest* /*request*/, ::viam::service::sensors::v1::GetSensorsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetSensors(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetReadings() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::service::sensors::v1::GetReadingsRequest* /*request*/, ::viam::service::sensors::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetReadings(::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_GetSensors : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetSensors() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetSensors(context, request, response); })); + } + ~WithRawCallbackMethod_GetSensors() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetSensors(::grpc::ServerContext* /*context*/, const ::viam::service::sensors::v1::GetSensorsRequest* /*request*/, ::viam::service::sensors::v1::GetSensorsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetSensors( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetReadings() { + ::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->GetReadings(context, request, response); })); + } + ~WithRawCallbackMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::service::sensors::v1::GetReadingsRequest* /*request*/, ::viam::service::sensors::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetReadings( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_GetSensors : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetSensors() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::sensors::v1::GetSensorsRequest, ::viam::service::sensors::v1::GetSensorsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::sensors::v1::GetSensorsRequest, ::viam::service::sensors::v1::GetSensorsResponse>* streamer) { + return this->StreamedGetSensors(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetSensors() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetSensors(::grpc::ServerContext* /*context*/, const ::viam::service::sensors::v1::GetSensorsRequest* /*request*/, ::viam::service::sensors::v1::GetSensorsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetSensors(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::sensors::v1::GetSensorsRequest,::viam::service::sensors::v1::GetSensorsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetReadings() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::sensors::v1::GetReadingsRequest, ::viam::service::sensors::v1::GetReadingsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::sensors::v1::GetReadingsRequest, ::viam::service::sensors::v1::GetReadingsResponse>* streamer) { + return this->StreamedGetReadings(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::service::sensors::v1::GetReadingsRequest* /*request*/, ::viam::service::sensors::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetReadings(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::sensors::v1::GetReadingsRequest,::viam::service::sensors::v1::GetReadingsResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetSensors > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_GetSensors > StreamedService; +}; + +} // namespace v1 +} // namespace sensors +} // namespace service +} // namespace viam + + +#endif // GRPC_service_2fsensors_2fv1_2fsensors_2eproto__INCLUDED diff --git a/src/gen/service/sensors/v1/sensors.pb.cc b/src/gen/service/sensors/v1/sensors.pb.cc new file mode 100644 index 000000000..4fda2b36f --- /dev/null +++ b/src/gen/service/sensors/v1/sensors.pb.cc @@ -0,0 +1,1364 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service/sensors/v1/sensors.proto + +#include "service/sensors/v1/sensors.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 sensors { +namespace v1 { +PROTOBUF_CONSTEXPR GetSensorsRequest::GetSensorsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetSensorsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetSensorsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetSensorsRequestDefaultTypeInternal() {} + union { + GetSensorsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSensorsRequestDefaultTypeInternal _GetSensorsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetSensorsResponse::GetSensorsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.sensor_names_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetSensorsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetSensorsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetSensorsResponseDefaultTypeInternal() {} + union { + GetSensorsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSensorsResponseDefaultTypeInternal _GetSensorsResponse_default_instance_; +PROTOBUF_CONSTEXPR GetReadingsRequest::GetReadingsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.sensor_names_)*/{} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetReadingsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetReadingsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetReadingsRequestDefaultTypeInternal() {} + union { + GetReadingsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReadingsRequestDefaultTypeInternal _GetReadingsRequest_default_instance_; +PROTOBUF_CONSTEXPR Readings_ReadingsEntry_DoNotUse::Readings_ReadingsEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct Readings_ReadingsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Readings_ReadingsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Readings_ReadingsEntry_DoNotUseDefaultTypeInternal() {} + union { + Readings_ReadingsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Readings_ReadingsEntry_DoNotUseDefaultTypeInternal _Readings_ReadingsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR Readings::Readings( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.readings_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.name_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ReadingsDefaultTypeInternal { + PROTOBUF_CONSTEXPR ReadingsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ReadingsDefaultTypeInternal() {} + union { + Readings _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReadingsDefaultTypeInternal _Readings_default_instance_; +PROTOBUF_CONSTEXPR GetReadingsResponse::GetReadingsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.readings_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetReadingsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetReadingsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetReadingsResponseDefaultTypeInternal() {} + union { + GetReadingsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReadingsResponseDefaultTypeInternal _GetReadingsResponse_default_instance_; +} // namespace v1 +} // namespace sensors +} // namespace service +} // namespace viam +static ::_pb::Metadata file_level_metadata_service_2fsensors_2fv1_2fsensors_2eproto[6]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_service_2fsensors_2fv1_2fsensors_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fsensors_2fv1_2fsensors_2eproto = nullptr; + +const uint32_t TableStruct_service_2fsensors_2fv1_2fsensors_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetSensorsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetSensorsRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetSensorsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetSensorsResponse, _impl_.sensor_names_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetReadingsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetReadingsRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetReadingsRequest, _impl_.sensor_names_), + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::Readings, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::Readings, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::Readings, _impl_.readings_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetReadingsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetReadingsResponse, _impl_.readings_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::service::sensors::v1::GetSensorsRequest)}, + { 7, -1, -1, sizeof(::viam::service::sensors::v1::GetSensorsResponse)}, + { 14, -1, -1, sizeof(::viam::service::sensors::v1::GetReadingsRequest)}, + { 22, 30, -1, sizeof(::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse)}, + { 32, -1, -1, sizeof(::viam::service::sensors::v1::Readings)}, + { 40, -1, -1, sizeof(::viam::service::sensors::v1::GetReadingsResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::service::sensors::v1::_GetSensorsRequest_default_instance_._instance, + &::viam::service::sensors::v1::_GetSensorsResponse_default_instance_._instance, + &::viam::service::sensors::v1::_GetReadingsRequest_default_instance_._instance, + &::viam::service::sensors::v1::_Readings_ReadingsEntry_DoNotUse_default_instance_._instance, + &::viam::service::sensors::v1::_Readings_default_instance_._instance, + &::viam::service::sensors::v1::_GetReadingsResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_service_2fsensors_2fv1_2fsensors_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n service/sensors/v1/sensors.proto\022\027viam" + ".service.sensors.v1\032\026common/v1/common.pr" + "oto\032\034google/api/annotations.proto\032\034googl" + "e/protobuf/struct.proto\"\'\n\021GetSensorsReq" + "uest\022\022\n\004name\030\001 \001(\tR\004name\"U\n\022GetSensorsRe" + "sponse\022\?\n\014sensor_names\030\001 \003(\0132\034.viam.comm" + "on.v1.ResourceNameR\013sensorNames\"i\n\022GetRe" + "adingsRequest\022\022\n\004name\030\001 \001(\tR\004name\022\?\n\014sen" + "sor_names\030\002 \003(\0132\034.viam.common.v1.Resourc" + "eNameR\013sensorNames\"\336\001\n\010Readings\0220\n\004name\030" + "\001 \001(\0132\034.viam.common.v1.ResourceNameR\004nam" + "e\022K\n\010readings\030\002 \003(\0132/.viam.service.senso" + "rs.v1.Readings.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\"T\n\023GetReadingsResponse\022=\n\010readings\030\001" + " \003(\0132!.viam.service.sensors.v1.ReadingsR" + "\010readings2\306\002\n\016SensorsService\022\222\001\n\nGetSens" + "ors\022*.viam.service.sensors.v1.GetSensors" + "Request\032+.viam.service.sensors.v1.GetSen" + "sorsResponse\"+\202\323\344\223\002%\022#/viam/api/v1/servi" + "ce/{name}/sensors\022\236\001\n\013GetReadings\022+.viam" + ".service.sensors.v1.GetReadingsRequest\032," + ".viam.service.sensors.v1.GetReadingsResp" + "onse\"4\202\323\344\223\002.\022,/viam/api/v1/service/senso" + "rs/{name}/readingsBA\n\033com.viam.service.s" + "ensors.v1Z\"go.viam.com/api/service/senso" + "rs/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_deps[3] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, +}; +static ::_pbi::once_flag descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto = { + false, false, 1093, descriptor_table_protodef_service_2fsensors_2fv1_2fsensors_2eproto, + "service/sensors/v1/sensors.proto", + &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_once, descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_deps, 3, 6, + schemas, file_default_instances, TableStruct_service_2fsensors_2fv1_2fsensors_2eproto::offsets, + file_level_metadata_service_2fsensors_2fv1_2fsensors_2eproto, file_level_enum_descriptors_service_2fsensors_2fv1_2fsensors_2eproto, + file_level_service_descriptors_service_2fsensors_2fv1_2fsensors_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_getter() { + return &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fsensors_2fv1_2fsensors_2eproto(&descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto); +namespace viam { +namespace service { +namespace sensors { +namespace v1 { + +// =================================================================== + +class GetSensorsRequest::_Internal { + public: +}; + +GetSensorsRequest::GetSensorsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.sensors.v1.GetSensorsRequest) +} +GetSensorsRequest::GetSensorsRequest(const GetSensorsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetSensorsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.service.sensors.v1.GetSensorsRequest) +} + +inline void GetSensorsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetSensorsRequest::~GetSensorsRequest() { + // @@protoc_insertion_point(destructor:viam.service.sensors.v1.GetSensorsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetSensorsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void GetSensorsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetSensorsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.sensors.v1.GetSensorsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetSensorsRequest::_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.sensors.v1.GetSensorsRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetSensorsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.sensors.v1.GetSensorsRequest) + 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.sensors.v1.GetSensorsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.sensors.v1.GetSensorsRequest) + return target; +} + +size_t GetSensorsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.sensors.v1.GetSensorsRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetSensorsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetSensorsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetSensorsRequest::GetClassData() const { return &_class_data_; } + + +void GetSensorsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.sensors.v1.GetSensorsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetSensorsRequest::CopyFrom(const GetSensorsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.sensors.v1.GetSensorsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetSensorsRequest::IsInitialized() const { + return true; +} + +void GetSensorsRequest::InternalSwap(GetSensorsRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetSensorsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_getter, &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_once, + file_level_metadata_service_2fsensors_2fv1_2fsensors_2eproto[0]); +} + +// =================================================================== + +class GetSensorsResponse::_Internal { + public: +}; + +void GetSensorsResponse::clear_sensor_names() { + _impl_.sensor_names_.Clear(); +} +GetSensorsResponse::GetSensorsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.sensors.v1.GetSensorsResponse) +} +GetSensorsResponse::GetSensorsResponse(const GetSensorsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetSensorsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.sensor_names_){from._impl_.sensor_names_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.service.sensors.v1.GetSensorsResponse) +} + +inline void GetSensorsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.sensor_names_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetSensorsResponse::~GetSensorsResponse() { + // @@protoc_insertion_point(destructor:viam.service.sensors.v1.GetSensorsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetSensorsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.sensor_names_.~RepeatedPtrField(); +} + +void GetSensorsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetSensorsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.sensors.v1.GetSensorsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.sensor_names_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetSensorsResponse::_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) { + // repeated .viam.common.v1.ResourceName sensor_names = 1 [json_name = "sensorNames"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_sensor_names(), 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* GetSensorsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.sensors.v1.GetSensorsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.common.v1.ResourceName sensor_names = 1 [json_name = "sensorNames"]; + for (unsigned i = 0, + n = static_cast(this->_internal_sensor_names_size()); i < n; i++) { + const auto& repfield = this->_internal_sensor_names(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.sensors.v1.GetSensorsResponse) + return target; +} + +size_t GetSensorsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.sensors.v1.GetSensorsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.common.v1.ResourceName sensor_names = 1 [json_name = "sensorNames"]; + total_size += 1UL * this->_internal_sensor_names_size(); + for (const auto& msg : this->_impl_.sensor_names_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetSensorsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetSensorsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetSensorsResponse::GetClassData() const { return &_class_data_; } + + +void GetSensorsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.sensors.v1.GetSensorsResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.sensor_names_.MergeFrom(from._impl_.sensor_names_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetSensorsResponse::CopyFrom(const GetSensorsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.sensors.v1.GetSensorsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetSensorsResponse::IsInitialized() const { + return true; +} + +void GetSensorsResponse::InternalSwap(GetSensorsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.sensor_names_.InternalSwap(&other->_impl_.sensor_names_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetSensorsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_getter, &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_once, + file_level_metadata_service_2fsensors_2fv1_2fsensors_2eproto[1]); +} + +// =================================================================== + +class GetReadingsRequest::_Internal { + public: +}; + +void GetReadingsRequest::clear_sensor_names() { + _impl_.sensor_names_.Clear(); +} +GetReadingsRequest::GetReadingsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.sensors.v1.GetReadingsRequest) +} +GetReadingsRequest::GetReadingsRequest(const GetReadingsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetReadingsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.sensor_names_){from._impl_.sensor_names_} + , decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.service.sensors.v1.GetReadingsRequest) +} + +inline void GetReadingsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.sensor_names_){arena} + , decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetReadingsRequest::~GetReadingsRequest() { + // @@protoc_insertion_point(destructor:viam.service.sensors.v1.GetReadingsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetReadingsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.sensor_names_.~RepeatedPtrField(); + _impl_.name_.Destroy(); +} + +void GetReadingsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetReadingsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.sensors.v1.GetReadingsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.sensor_names_.Clear(); + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetReadingsRequest::_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.sensors.v1.GetReadingsRequest.name")); + } else + goto handle_unusual; + continue; + // repeated .viam.common.v1.ResourceName sensor_names = 2 [json_name = "sensorNames"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_sensor_names(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* GetReadingsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.sensors.v1.GetReadingsRequest) + 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.sensors.v1.GetReadingsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // repeated .viam.common.v1.ResourceName sensor_names = 2 [json_name = "sensorNames"]; + for (unsigned i = 0, + n = static_cast(this->_internal_sensor_names_size()); i < n; i++) { + const auto& repfield = this->_internal_sensor_names(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.sensors.v1.GetReadingsRequest) + return target; +} + +size_t GetReadingsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.sensors.v1.GetReadingsRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.common.v1.ResourceName sensor_names = 2 [json_name = "sensorNames"]; + total_size += 1UL * this->_internal_sensor_names_size(); + for (const auto& msg : this->_impl_.sensor_names_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetReadingsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetReadingsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetReadingsRequest::GetClassData() const { return &_class_data_; } + + +void GetReadingsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.sensors.v1.GetReadingsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.sensor_names_.MergeFrom(from._impl_.sensor_names_); + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetReadingsRequest::CopyFrom(const GetReadingsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.sensors.v1.GetReadingsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetReadingsRequest::IsInitialized() const { + return true; +} + +void GetReadingsRequest::InternalSwap(GetReadingsRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.sensor_names_.InternalSwap(&other->_impl_.sensor_names_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetReadingsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_getter, &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_once, + file_level_metadata_service_2fsensors_2fv1_2fsensors_2eproto[2]); +} + +// =================================================================== + +Readings_ReadingsEntry_DoNotUse::Readings_ReadingsEntry_DoNotUse() {} +Readings_ReadingsEntry_DoNotUse::Readings_ReadingsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void Readings_ReadingsEntry_DoNotUse::MergeFrom(const Readings_ReadingsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata Readings_ReadingsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_getter, &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_once, + file_level_metadata_service_2fsensors_2fv1_2fsensors_2eproto[3]); +} + +// =================================================================== + +class Readings::_Internal { + public: + static const ::viam::common::v1::ResourceName& name(const Readings* msg); +}; + +const ::viam::common::v1::ResourceName& +Readings::_Internal::name(const Readings* msg) { + return *msg->_impl_.name_; +} +void Readings::clear_name() { + if (GetArenaForAllocation() == nullptr && _impl_.name_ != nullptr) { + delete _impl_.name_; + } + _impl_.name_ = nullptr; +} +void Readings::clear_readings() { + _impl_.readings_.Clear(); +} +Readings::Readings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &Readings::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:viam.service.sensors.v1.Readings) +} +Readings::Readings(const Readings& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Readings* const _this = this; (void)_this; + new (&_impl_) Impl_{ + /*decltype(_impl_.readings_)*/{} + , decltype(_impl_.name_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.readings_.MergeFrom(from._impl_.readings_); + if (from._internal_has_name()) { + _this->_impl_.name_ = new ::viam::common::v1::ResourceName(*from._impl_.name_); + } + // @@protoc_insertion_point(copy_constructor:viam.service.sensors.v1.Readings) +} + +inline void Readings::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + /*decltype(_impl_.readings_)*/{::_pbi::ArenaInitialized(), arena} + , decltype(_impl_.name_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Readings::~Readings() { + // @@protoc_insertion_point(destructor:viam.service.sensors.v1.Readings) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void Readings::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.readings_.Destruct(); + _impl_.readings_.~MapField(); + if (this != internal_default_instance()) delete _impl_.name_; +} + +void Readings::ArenaDtor(void* object) { + Readings* _this = reinterpret_cast< Readings* >(object); + _this->_impl_.readings_.Destruct(); +} +void Readings::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Readings::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.sensors.v1.Readings) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.readings_.Clear(); + if (GetArenaForAllocation() == nullptr && _impl_.name_ != nullptr) { + delete _impl_.name_; + } + _impl_.name_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Readings::_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) { + // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_name(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map readings = 2 [json_name = "readings"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.readings_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* Readings::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.sensors.v1.Readings) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; + if (this->_internal_has_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::name(this), + _Internal::name(this).GetCachedSize(), target, stream); + } + + // map readings = 2 [json_name = "readings"]; + if (!this->_internal_readings().empty()) { + using MapType = ::_pb::Map; + using WireHelper = Readings_ReadingsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_readings(); + 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.service.sensors.v1.Readings.ReadingsEntry.key"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(2, 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.service.sensors.v1.Readings) + return target; +} + +size_t Readings::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.sensors.v1.Readings) + 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 readings = 2 [json_name = "readings"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_readings_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >::const_iterator + it = this->_internal_readings().begin(); + it != this->_internal_readings().end(); ++it) { + total_size += Readings_ReadingsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; + if (this->_internal_has_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.name_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Readings::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Readings::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Readings::GetClassData() const { return &_class_data_; } + + +void Readings::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.sensors.v1.Readings) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.readings_.MergeFrom(from._impl_.readings_); + if (from._internal_has_name()) { + _this->_internal_mutable_name()->::viam::common::v1::ResourceName::MergeFrom( + from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Readings::CopyFrom(const Readings& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.sensors.v1.Readings) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Readings::IsInitialized() const { + return true; +} + +void Readings::InternalSwap(Readings* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.readings_.InternalSwap(&other->_impl_.readings_); + swap(_impl_.name_, other->_impl_.name_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Readings::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_getter, &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_once, + file_level_metadata_service_2fsensors_2fv1_2fsensors_2eproto[4]); +} + +// =================================================================== + +class GetReadingsResponse::_Internal { + public: +}; + +GetReadingsResponse::GetReadingsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.sensors.v1.GetReadingsResponse) +} +GetReadingsResponse::GetReadingsResponse(const GetReadingsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetReadingsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.readings_){from._impl_.readings_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.service.sensors.v1.GetReadingsResponse) +} + +inline void GetReadingsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.readings_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetReadingsResponse::~GetReadingsResponse() { + // @@protoc_insertion_point(destructor:viam.service.sensors.v1.GetReadingsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetReadingsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.readings_.~RepeatedPtrField(); +} + +void GetReadingsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetReadingsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.sensors.v1.GetReadingsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.readings_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetReadingsResponse::_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) { + // repeated .viam.service.sensors.v1.Readings readings = 1 [json_name = "readings"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_readings(), 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* GetReadingsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.sensors.v1.GetReadingsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.service.sensors.v1.Readings readings = 1 [json_name = "readings"]; + for (unsigned i = 0, + n = static_cast(this->_internal_readings_size()); i < n; i++) { + const auto& repfield = this->_internal_readings(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.sensors.v1.GetReadingsResponse) + return target; +} + +size_t GetReadingsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.sensors.v1.GetReadingsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.service.sensors.v1.Readings readings = 1 [json_name = "readings"]; + total_size += 1UL * this->_internal_readings_size(); + for (const auto& msg : this->_impl_.readings_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetReadingsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetReadingsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetReadingsResponse::GetClassData() const { return &_class_data_; } + + +void GetReadingsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.sensors.v1.GetReadingsResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.readings_.MergeFrom(from._impl_.readings_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetReadingsResponse::CopyFrom(const GetReadingsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.sensors.v1.GetReadingsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetReadingsResponse::IsInitialized() const { + return true; +} + +void GetReadingsResponse::InternalSwap(GetReadingsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.readings_.InternalSwap(&other->_impl_.readings_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetReadingsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_getter, &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_once, + file_level_metadata_service_2fsensors_2fv1_2fsensors_2eproto[5]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace sensors +} // namespace service +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::service::sensors::v1::GetSensorsRequest* +Arena::CreateMaybeMessage< ::viam::service::sensors::v1::GetSensorsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::sensors::v1::GetSensorsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::sensors::v1::GetSensorsResponse* +Arena::CreateMaybeMessage< ::viam::service::sensors::v1::GetSensorsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::sensors::v1::GetSensorsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::sensors::v1::GetReadingsRequest* +Arena::CreateMaybeMessage< ::viam::service::sensors::v1::GetReadingsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::sensors::v1::GetReadingsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::sensors::v1::Readings* +Arena::CreateMaybeMessage< ::viam::service::sensors::v1::Readings >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::sensors::v1::Readings >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::sensors::v1::GetReadingsResponse* +Arena::CreateMaybeMessage< ::viam::service::sensors::v1::GetReadingsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::sensors::v1::GetReadingsResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/service/sensors/v1/sensors.pb.h b/src/gen/service/sensors/v1/sensors.pb.h new file mode 100644 index 000000000..c40c4d652 --- /dev/null +++ b/src/gen/service/sensors/v1/sensors.pb.h @@ -0,0 +1,1319 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service/sensors/v1/sensors.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fsensors_2fv1_2fsensors_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_service_2fsensors_2fv1_2fsensors_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 // IWYU pragma: export +#include +#include +#include +#include "common/v1/common.pb.h" +#include "google/api/annotations.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_service_2fsensors_2fv1_2fsensors_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_service_2fsensors_2fv1_2fsensors_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto; +namespace viam { +namespace service { +namespace sensors { +namespace v1 { +class GetReadingsRequest; +struct GetReadingsRequestDefaultTypeInternal; +extern GetReadingsRequestDefaultTypeInternal _GetReadingsRequest_default_instance_; +class GetReadingsResponse; +struct GetReadingsResponseDefaultTypeInternal; +extern GetReadingsResponseDefaultTypeInternal _GetReadingsResponse_default_instance_; +class GetSensorsRequest; +struct GetSensorsRequestDefaultTypeInternal; +extern GetSensorsRequestDefaultTypeInternal _GetSensorsRequest_default_instance_; +class GetSensorsResponse; +struct GetSensorsResponseDefaultTypeInternal; +extern GetSensorsResponseDefaultTypeInternal _GetSensorsResponse_default_instance_; +class Readings; +struct ReadingsDefaultTypeInternal; +extern ReadingsDefaultTypeInternal _Readings_default_instance_; +class Readings_ReadingsEntry_DoNotUse; +struct Readings_ReadingsEntry_DoNotUseDefaultTypeInternal; +extern Readings_ReadingsEntry_DoNotUseDefaultTypeInternal _Readings_ReadingsEntry_DoNotUse_default_instance_; +} // namespace v1 +} // namespace sensors +} // namespace service +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::service::sensors::v1::GetReadingsRequest* Arena::CreateMaybeMessage<::viam::service::sensors::v1::GetReadingsRequest>(Arena*); +template<> ::viam::service::sensors::v1::GetReadingsResponse* Arena::CreateMaybeMessage<::viam::service::sensors::v1::GetReadingsResponse>(Arena*); +template<> ::viam::service::sensors::v1::GetSensorsRequest* Arena::CreateMaybeMessage<::viam::service::sensors::v1::GetSensorsRequest>(Arena*); +template<> ::viam::service::sensors::v1::GetSensorsResponse* Arena::CreateMaybeMessage<::viam::service::sensors::v1::GetSensorsResponse>(Arena*); +template<> ::viam::service::sensors::v1::Readings* Arena::CreateMaybeMessage<::viam::service::sensors::v1::Readings>(Arena*); +template<> ::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace service { +namespace sensors { +namespace v1 { + +// =================================================================== + +class GetSensorsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.sensors.v1.GetSensorsRequest) */ { + public: + inline GetSensorsRequest() : GetSensorsRequest(nullptr) {} + ~GetSensorsRequest() override; + explicit PROTOBUF_CONSTEXPR GetSensorsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetSensorsRequest(const GetSensorsRequest& from); + GetSensorsRequest(GetSensorsRequest&& from) noexcept + : GetSensorsRequest() { + *this = ::std::move(from); + } + + inline GetSensorsRequest& operator=(const GetSensorsRequest& from) { + CopyFrom(from); + return *this; + } + inline GetSensorsRequest& operator=(GetSensorsRequest&& 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 GetSensorsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetSensorsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetSensorsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(GetSensorsRequest& a, GetSensorsRequest& b) { + a.Swap(&b); + } + inline void Swap(GetSensorsRequest* 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(GetSensorsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetSensorsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetSensorsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetSensorsRequest& from) { + GetSensorsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetSensorsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.sensors.v1.GetSensorsRequest"; + } + protected: + explicit GetSensorsRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.service.sensors.v1.GetSensorsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fsensors_2fv1_2fsensors_2eproto; +}; +// ------------------------------------------------------------------- + +class GetSensorsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.sensors.v1.GetSensorsResponse) */ { + public: + inline GetSensorsResponse() : GetSensorsResponse(nullptr) {} + ~GetSensorsResponse() override; + explicit PROTOBUF_CONSTEXPR GetSensorsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetSensorsResponse(const GetSensorsResponse& from); + GetSensorsResponse(GetSensorsResponse&& from) noexcept + : GetSensorsResponse() { + *this = ::std::move(from); + } + + inline GetSensorsResponse& operator=(const GetSensorsResponse& from) { + CopyFrom(from); + return *this; + } + inline GetSensorsResponse& operator=(GetSensorsResponse&& 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 GetSensorsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetSensorsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetSensorsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(GetSensorsResponse& a, GetSensorsResponse& b) { + a.Swap(&b); + } + inline void Swap(GetSensorsResponse* 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(GetSensorsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetSensorsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetSensorsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetSensorsResponse& from) { + GetSensorsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetSensorsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.sensors.v1.GetSensorsResponse"; + } + protected: + explicit GetSensorsResponse(::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 { + kSensorNamesFieldNumber = 1, + }; + // repeated .viam.common.v1.ResourceName sensor_names = 1 [json_name = "sensorNames"]; + int sensor_names_size() const; + private: + int _internal_sensor_names_size() const; + public: + void clear_sensor_names(); + ::viam::common::v1::ResourceName* mutable_sensor_names(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* + mutable_sensor_names(); + private: + const ::viam::common::v1::ResourceName& _internal_sensor_names(int index) const; + ::viam::common::v1::ResourceName* _internal_add_sensor_names(); + public: + const ::viam::common::v1::ResourceName& sensor_names(int index) const; + ::viam::common::v1::ResourceName* add_sensor_names(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& + sensor_names() const; + + // @@protoc_insertion_point(class_scope:viam.service.sensors.v1.GetSensorsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName > sensor_names_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fsensors_2fv1_2fsensors_2eproto; +}; +// ------------------------------------------------------------------- + +class GetReadingsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.sensors.v1.GetReadingsRequest) */ { + public: + inline GetReadingsRequest() : GetReadingsRequest(nullptr) {} + ~GetReadingsRequest() override; + explicit PROTOBUF_CONSTEXPR GetReadingsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetReadingsRequest(const GetReadingsRequest& from); + GetReadingsRequest(GetReadingsRequest&& from) noexcept + : GetReadingsRequest() { + *this = ::std::move(from); + } + + inline GetReadingsRequest& operator=(const GetReadingsRequest& from) { + CopyFrom(from); + return *this; + } + inline GetReadingsRequest& operator=(GetReadingsRequest&& 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 GetReadingsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetReadingsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetReadingsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(GetReadingsRequest& a, GetReadingsRequest& b) { + a.Swap(&b); + } + inline void Swap(GetReadingsRequest* 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(GetReadingsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetReadingsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetReadingsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetReadingsRequest& from) { + GetReadingsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetReadingsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.sensors.v1.GetReadingsRequest"; + } + protected: + explicit GetReadingsRequest(::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 { + kSensorNamesFieldNumber = 2, + kNameFieldNumber = 1, + }; + // repeated .viam.common.v1.ResourceName sensor_names = 2 [json_name = "sensorNames"]; + int sensor_names_size() const; + private: + int _internal_sensor_names_size() const; + public: + void clear_sensor_names(); + ::viam::common::v1::ResourceName* mutable_sensor_names(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* + mutable_sensor_names(); + private: + const ::viam::common::v1::ResourceName& _internal_sensor_names(int index) const; + ::viam::common::v1::ResourceName* _internal_add_sensor_names(); + public: + const ::viam::common::v1::ResourceName& sensor_names(int index) const; + ::viam::common::v1::ResourceName* add_sensor_names(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& + sensor_names() const; + + // 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: + + // @@protoc_insertion_point(class_scope:viam.service.sensors.v1.GetReadingsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName > sensor_names_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fsensors_2fv1_2fsensors_2eproto; +}; +// ------------------------------------------------------------------- + +class Readings_ReadingsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + Readings_ReadingsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR Readings_ReadingsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit Readings_ReadingsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const Readings_ReadingsEntry_DoNotUse& other); + static const Readings_ReadingsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Readings_ReadingsEntry_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.service.sensors.v1.Readings.ReadingsEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_service_2fsensors_2fv1_2fsensors_2eproto; +}; + +// ------------------------------------------------------------------- + +class Readings final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.sensors.v1.Readings) */ { + public: + inline Readings() : Readings(nullptr) {} + ~Readings() override; + explicit PROTOBUF_CONSTEXPR Readings(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Readings(const Readings& from); + Readings(Readings&& from) noexcept + : Readings() { + *this = ::std::move(from); + } + + inline Readings& operator=(const Readings& from) { + CopyFrom(from); + return *this; + } + inline Readings& operator=(Readings&& 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 Readings& default_instance() { + return *internal_default_instance(); + } + static inline const Readings* internal_default_instance() { + return reinterpret_cast( + &_Readings_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(Readings& a, Readings& b) { + a.Swap(&b); + } + inline void Swap(Readings* 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(Readings* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Readings* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Readings& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Readings& from) { + Readings::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Readings* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.sensors.v1.Readings"; + } + protected: + explicit Readings(::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 { + kReadingsFieldNumber = 2, + kNameFieldNumber = 1, + }; + // map readings = 2 [json_name = "readings"]; + int readings_size() const; + private: + int _internal_readings_size() const; + public: + void clear_readings(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& + _internal_readings() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* + _internal_mutable_readings(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& + readings() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* + mutable_readings(); + + // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; + bool has_name() const; + private: + bool _internal_has_name() const; + public: + void clear_name(); + const ::viam::common::v1::ResourceName& name() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_name(); + ::viam::common::v1::ResourceName* mutable_name(); + void set_allocated_name(::viam::common::v1::ResourceName* name); + private: + const ::viam::common::v1::ResourceName& _internal_name() const; + ::viam::common::v1::ResourceName* _internal_mutable_name(); + public: + void unsafe_arena_set_allocated_name( + ::viam::common::v1::ResourceName* name); + ::viam::common::v1::ResourceName* unsafe_arena_release_name(); + + // @@protoc_insertion_point(class_scope:viam.service.sensors.v1.Readings) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + Readings_ReadingsEntry_DoNotUse, + std::string, ::PROTOBUF_NAMESPACE_ID::Value, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> readings_; + ::viam::common::v1::ResourceName* name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fsensors_2fv1_2fsensors_2eproto; +}; +// ------------------------------------------------------------------- + +class GetReadingsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.sensors.v1.GetReadingsResponse) */ { + public: + inline GetReadingsResponse() : GetReadingsResponse(nullptr) {} + ~GetReadingsResponse() override; + explicit PROTOBUF_CONSTEXPR GetReadingsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetReadingsResponse(const GetReadingsResponse& from); + GetReadingsResponse(GetReadingsResponse&& from) noexcept + : GetReadingsResponse() { + *this = ::std::move(from); + } + + inline GetReadingsResponse& operator=(const GetReadingsResponse& from) { + CopyFrom(from); + return *this; + } + inline GetReadingsResponse& operator=(GetReadingsResponse&& 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 GetReadingsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetReadingsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetReadingsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(GetReadingsResponse& a, GetReadingsResponse& b) { + a.Swap(&b); + } + inline void Swap(GetReadingsResponse* 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(GetReadingsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetReadingsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetReadingsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetReadingsResponse& from) { + GetReadingsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetReadingsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.sensors.v1.GetReadingsResponse"; + } + protected: + explicit GetReadingsResponse(::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 { + kReadingsFieldNumber = 1, + }; + // repeated .viam.service.sensors.v1.Readings readings = 1 [json_name = "readings"]; + int readings_size() const; + private: + int _internal_readings_size() const; + public: + void clear_readings(); + ::viam::service::sensors::v1::Readings* mutable_readings(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::sensors::v1::Readings >* + mutable_readings(); + private: + const ::viam::service::sensors::v1::Readings& _internal_readings(int index) const; + ::viam::service::sensors::v1::Readings* _internal_add_readings(); + public: + const ::viam::service::sensors::v1::Readings& readings(int index) const; + ::viam::service::sensors::v1::Readings* add_readings(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::sensors::v1::Readings >& + readings() const; + + // @@protoc_insertion_point(class_scope:viam.service.sensors.v1.GetReadingsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::sensors::v1::Readings > readings_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fsensors_2fv1_2fsensors_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// GetSensorsRequest + +// string name = 1 [json_name = "name"]; +inline void GetSensorsRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetSensorsRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.sensors.v1.GetSensorsRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetSensorsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.sensors.v1.GetSensorsRequest.name) +} +inline std::string* GetSensorsRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.sensors.v1.GetSensorsRequest.name) + return _s; +} +inline const std::string& GetSensorsRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetSensorsRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetSensorsRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetSensorsRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.sensors.v1.GetSensorsRequest.name) + return _impl_.name_.Release(); +} +inline void GetSensorsRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.sensors.v1.GetSensorsRequest.name) +} + +// ------------------------------------------------------------------- + +// GetSensorsResponse + +// repeated .viam.common.v1.ResourceName sensor_names = 1 [json_name = "sensorNames"]; +inline int GetSensorsResponse::_internal_sensor_names_size() const { + return _impl_.sensor_names_.size(); +} +inline int GetSensorsResponse::sensor_names_size() const { + return _internal_sensor_names_size(); +} +inline ::viam::common::v1::ResourceName* GetSensorsResponse::mutable_sensor_names(int index) { + // @@protoc_insertion_point(field_mutable:viam.service.sensors.v1.GetSensorsResponse.sensor_names) + return _impl_.sensor_names_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* +GetSensorsResponse::mutable_sensor_names() { + // @@protoc_insertion_point(field_mutable_list:viam.service.sensors.v1.GetSensorsResponse.sensor_names) + return &_impl_.sensor_names_; +} +inline const ::viam::common::v1::ResourceName& GetSensorsResponse::_internal_sensor_names(int index) const { + return _impl_.sensor_names_.Get(index); +} +inline const ::viam::common::v1::ResourceName& GetSensorsResponse::sensor_names(int index) const { + // @@protoc_insertion_point(field_get:viam.service.sensors.v1.GetSensorsResponse.sensor_names) + return _internal_sensor_names(index); +} +inline ::viam::common::v1::ResourceName* GetSensorsResponse::_internal_add_sensor_names() { + return _impl_.sensor_names_.Add(); +} +inline ::viam::common::v1::ResourceName* GetSensorsResponse::add_sensor_names() { + ::viam::common::v1::ResourceName* _add = _internal_add_sensor_names(); + // @@protoc_insertion_point(field_add:viam.service.sensors.v1.GetSensorsResponse.sensor_names) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& +GetSensorsResponse::sensor_names() const { + // @@protoc_insertion_point(field_list:viam.service.sensors.v1.GetSensorsResponse.sensor_names) + return _impl_.sensor_names_; +} + +// ------------------------------------------------------------------- + +// GetReadingsRequest + +// string name = 1 [json_name = "name"]; +inline void GetReadingsRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetReadingsRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.sensors.v1.GetReadingsRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetReadingsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.sensors.v1.GetReadingsRequest.name) +} +inline std::string* GetReadingsRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.sensors.v1.GetReadingsRequest.name) + return _s; +} +inline const std::string& GetReadingsRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetReadingsRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetReadingsRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetReadingsRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.sensors.v1.GetReadingsRequest.name) + return _impl_.name_.Release(); +} +inline void GetReadingsRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.sensors.v1.GetReadingsRequest.name) +} + +// repeated .viam.common.v1.ResourceName sensor_names = 2 [json_name = "sensorNames"]; +inline int GetReadingsRequest::_internal_sensor_names_size() const { + return _impl_.sensor_names_.size(); +} +inline int GetReadingsRequest::sensor_names_size() const { + return _internal_sensor_names_size(); +} +inline ::viam::common::v1::ResourceName* GetReadingsRequest::mutable_sensor_names(int index) { + // @@protoc_insertion_point(field_mutable:viam.service.sensors.v1.GetReadingsRequest.sensor_names) + return _impl_.sensor_names_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* +GetReadingsRequest::mutable_sensor_names() { + // @@protoc_insertion_point(field_mutable_list:viam.service.sensors.v1.GetReadingsRequest.sensor_names) + return &_impl_.sensor_names_; +} +inline const ::viam::common::v1::ResourceName& GetReadingsRequest::_internal_sensor_names(int index) const { + return _impl_.sensor_names_.Get(index); +} +inline const ::viam::common::v1::ResourceName& GetReadingsRequest::sensor_names(int index) const { + // @@protoc_insertion_point(field_get:viam.service.sensors.v1.GetReadingsRequest.sensor_names) + return _internal_sensor_names(index); +} +inline ::viam::common::v1::ResourceName* GetReadingsRequest::_internal_add_sensor_names() { + return _impl_.sensor_names_.Add(); +} +inline ::viam::common::v1::ResourceName* GetReadingsRequest::add_sensor_names() { + ::viam::common::v1::ResourceName* _add = _internal_add_sensor_names(); + // @@protoc_insertion_point(field_add:viam.service.sensors.v1.GetReadingsRequest.sensor_names) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& +GetReadingsRequest::sensor_names() const { + // @@protoc_insertion_point(field_list:viam.service.sensors.v1.GetReadingsRequest.sensor_names) + return _impl_.sensor_names_; +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// Readings + +// .viam.common.v1.ResourceName name = 1 [json_name = "name"]; +inline bool Readings::_internal_has_name() const { + return this != internal_default_instance() && _impl_.name_ != nullptr; +} +inline bool Readings::has_name() const { + return _internal_has_name(); +} +inline const ::viam::common::v1::ResourceName& Readings::_internal_name() const { + const ::viam::common::v1::ResourceName* p = _impl_.name_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); +} +inline const ::viam::common::v1::ResourceName& Readings::name() const { + // @@protoc_insertion_point(field_get:viam.service.sensors.v1.Readings.name) + return _internal_name(); +} +inline void Readings::unsafe_arena_set_allocated_name( + ::viam::common::v1::ResourceName* name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.name_); + } + _impl_.name_ = name; + if (name) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.sensors.v1.Readings.name) +} +inline ::viam::common::v1::ResourceName* Readings::release_name() { + + ::viam::common::v1::ResourceName* temp = _impl_.name_; + _impl_.name_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::ResourceName* Readings::unsafe_arena_release_name() { + // @@protoc_insertion_point(field_release:viam.service.sensors.v1.Readings.name) + + ::viam::common::v1::ResourceName* temp = _impl_.name_; + _impl_.name_ = nullptr; + return temp; +} +inline ::viam::common::v1::ResourceName* Readings::_internal_mutable_name() { + + if (_impl_.name_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + _impl_.name_ = p; + } + return _impl_.name_; +} +inline ::viam::common::v1::ResourceName* Readings::mutable_name() { + ::viam::common::v1::ResourceName* _msg = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.sensors.v1.Readings.name) + return _msg; +} +inline void Readings::set_allocated_name(::viam::common::v1::ResourceName* name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.name_); + } + if (name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(name)); + if (message_arena != submessage_arena) { + name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, name, submessage_arena); + } + + } else { + + } + _impl_.name_ = name; + // @@protoc_insertion_point(field_set_allocated:viam.service.sensors.v1.Readings.name) +} + +// map readings = 2 [json_name = "readings"]; +inline int Readings::_internal_readings_size() const { + return _impl_.readings_.size(); +} +inline int Readings::readings_size() const { + return _internal_readings_size(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& +Readings::_internal_readings() const { + return _impl_.readings_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& +Readings::readings() const { + // @@protoc_insertion_point(field_map:viam.service.sensors.v1.Readings.readings) + return _internal_readings(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* +Readings::_internal_mutable_readings() { + return _impl_.readings_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* +Readings::mutable_readings() { + // @@protoc_insertion_point(field_mutable_map:viam.service.sensors.v1.Readings.readings) + return _internal_mutable_readings(); +} + +// ------------------------------------------------------------------- + +// GetReadingsResponse + +// repeated .viam.service.sensors.v1.Readings readings = 1 [json_name = "readings"]; +inline int GetReadingsResponse::_internal_readings_size() const { + return _impl_.readings_.size(); +} +inline int GetReadingsResponse::readings_size() const { + return _internal_readings_size(); +} +inline void GetReadingsResponse::clear_readings() { + _impl_.readings_.Clear(); +} +inline ::viam::service::sensors::v1::Readings* GetReadingsResponse::mutable_readings(int index) { + // @@protoc_insertion_point(field_mutable:viam.service.sensors.v1.GetReadingsResponse.readings) + return _impl_.readings_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::sensors::v1::Readings >* +GetReadingsResponse::mutable_readings() { + // @@protoc_insertion_point(field_mutable_list:viam.service.sensors.v1.GetReadingsResponse.readings) + return &_impl_.readings_; +} +inline const ::viam::service::sensors::v1::Readings& GetReadingsResponse::_internal_readings(int index) const { + return _impl_.readings_.Get(index); +} +inline const ::viam::service::sensors::v1::Readings& GetReadingsResponse::readings(int index) const { + // @@protoc_insertion_point(field_get:viam.service.sensors.v1.GetReadingsResponse.readings) + return _internal_readings(index); +} +inline ::viam::service::sensors::v1::Readings* GetReadingsResponse::_internal_add_readings() { + return _impl_.readings_.Add(); +} +inline ::viam::service::sensors::v1::Readings* GetReadingsResponse::add_readings() { + ::viam::service::sensors::v1::Readings* _add = _internal_add_readings(); + // @@protoc_insertion_point(field_add:viam.service.sensors.v1.GetReadingsResponse.readings) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::sensors::v1::Readings >& +GetReadingsResponse::readings() const { + // @@protoc_insertion_point(field_list:viam.service.sensors.v1.GetReadingsResponse.readings) + return _impl_.readings_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace sensors +} // namespace service +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_service_2fsensors_2fv1_2fsensors_2eproto diff --git a/src/gen/service/shell/v1/shell.grpc.pb.cc b/src/gen/service/shell/v1/shell.grpc.pb.cc new file mode 100644 index 000000000..914aaf82a --- /dev/null +++ b/src/gen/service/shell/v1/shell.grpc.pb.cc @@ -0,0 +1,84 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: service/shell/v1/shell.proto + +#include "service/shell/v1/shell.pb.h" +#include "service/shell/v1/shell.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace service { +namespace shell { +namespace v1 { + +static const char* ShellService_method_names[] = { + "/viam.service.shell.v1.ShellService/Shell", +}; + +std::unique_ptr< ShellService::Stub> ShellService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< ShellService::Stub> stub(new ShellService::Stub(channel, options)); + return stub; +} + +ShellService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_Shell_(ShellService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::BIDI_STREAMING, channel) + {} + +::grpc::ClientReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* ShellService::Stub::ShellRaw(::grpc::ClientContext* context) { + return ::grpc::internal::ClientReaderWriterFactory< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>::Create(channel_.get(), rpcmethod_Shell_, context); +} + +void ShellService::Stub::async::Shell(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::service::shell::v1::ShellRequest,::viam::service::shell::v1::ShellResponse>* reactor) { + ::grpc::internal::ClientCallbackReaderWriterFactory< ::viam::service::shell::v1::ShellRequest,::viam::service::shell::v1::ShellResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_Shell_, context, reactor); +} + +::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* ShellService::Stub::AsyncShellRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc::internal::ClientAsyncReaderWriterFactory< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>::Create(channel_.get(), cq, rpcmethod_Shell_, context, true, tag); +} + +::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* ShellService::Stub::PrepareAsyncShellRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncReaderWriterFactory< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>::Create(channel_.get(), cq, rpcmethod_Shell_, context, false, nullptr); +} + +ShellService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + ShellService_method_names[0], + ::grpc::internal::RpcMethod::BIDI_STREAMING, + new ::grpc::internal::BidiStreamingHandler< ShellService::Service, ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>( + [](ShellService::Service* service, + ::grpc::ServerContext* ctx, + ::grpc::ServerReaderWriter<::viam::service::shell::v1::ShellResponse, + ::viam::service::shell::v1::ShellRequest>* stream) { + return service->Shell(ctx, stream); + }, this))); +} + +ShellService::Service::~Service() { +} + +::grpc::Status ShellService::Service::Shell(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::ShellResponse, ::viam::service::shell::v1::ShellRequest>* stream) { + (void) context; + (void) stream; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace service +} // namespace shell +} // namespace v1 + diff --git a/src/gen/service/shell/v1/shell.grpc.pb.h b/src/gen/service/shell/v1/shell.grpc.pb.h new file mode 100644 index 000000000..267883173 --- /dev/null +++ b/src/gen/service/shell/v1/shell.grpc.pb.h @@ -0,0 +1,224 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: service/shell/v1/shell.proto +#ifndef GRPC_service_2fshell_2fv1_2fshell_2eproto__INCLUDED +#define GRPC_service_2fshell_2fv1_2fshell_2eproto__INCLUDED + +#include "service/shell/v1/shell.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 shell { +namespace v1 { + +// A ShellService service allows access to an interactive shell experience. +class ShellService final { + public: + static constexpr char const* service_full_name() { + return "viam.service.shell.v1.ShellService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // Shell starts a shell with an input and output pipe. + std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>> Shell(::grpc::ClientContext* context) { + return std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>>(ShellRaw(context)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>> AsyncShell(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>>(AsyncShellRaw(context, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>> PrepareAsyncShell(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>>(PrepareAsyncShellRaw(context, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // Shell starts a shell with an input and output pipe. + virtual void Shell(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::service::shell::v1::ShellRequest,::viam::service::shell::v1::ShellResponse>* 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::ClientReaderWriterInterface< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* ShellRaw(::grpc::ClientContext* context) = 0; + virtual ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* AsyncShellRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* PrepareAsyncShellRaw(::grpc::ClientContext* context, ::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::ClientReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>> Shell(::grpc::ClientContext* context) { + return std::unique_ptr< ::grpc::ClientReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>>(ShellRaw(context)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>> AsyncShell(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>>(AsyncShellRaw(context, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>> PrepareAsyncShell(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>>(PrepareAsyncShellRaw(context, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void Shell(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::service::shell::v1::ShellRequest,::viam::service::shell::v1::ShellResponse>* 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::ClientReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* ShellRaw(::grpc::ClientContext* context) override; + ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* AsyncShellRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* PrepareAsyncShellRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_Shell_; + }; + 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(); + // Shell starts a shell with an input and output pipe. + virtual ::grpc::Status Shell(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::ShellResponse, ::viam::service::shell::v1::ShellRequest>* stream); + }; + template + class WithAsyncMethod_Shell : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Shell() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_Shell() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Shell(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::ShellResponse, ::viam::service::shell::v1::ShellRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestShell(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::viam::service::shell::v1::ShellResponse, ::viam::service::shell::v1::ShellRequest>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncBidiStreaming(0, context, stream, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_Shell AsyncService; + template + class WithCallbackMethod_Shell : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Shell() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackBidiHandler< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>( + [this]( + ::grpc::CallbackServerContext* context) { return this->Shell(context); })); + } + ~WithCallbackMethod_Shell() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Shell(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::ShellResponse, ::viam::service::shell::v1::ShellRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerBidiReactor< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* Shell( + ::grpc::CallbackServerContext* /*context*/) + { return nullptr; } + }; + typedef WithCallbackMethod_Shell CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_Shell : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Shell() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_Shell() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Shell(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::ShellResponse, ::viam::service::shell::v1::ShellRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_Shell : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Shell() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_Shell() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Shell(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::ShellResponse, ::viam::service::shell::v1::ShellRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestShell(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncBidiStreaming(0, context, stream, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_Shell : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Shell() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context) { return this->Shell(context); })); + } + ~WithRawCallbackMethod_Shell() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Shell(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::ShellResponse, ::viam::service::shell::v1::ShellRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* Shell( + ::grpc::CallbackServerContext* /*context*/) + { return nullptr; } + }; + typedef Service StreamedUnaryService; + typedef Service SplitStreamedService; + typedef Service StreamedService; +}; + +} // namespace v1 +} // namespace shell +} // namespace service +} // namespace viam + + +#endif // GRPC_service_2fshell_2fv1_2fshell_2eproto__INCLUDED diff --git a/src/gen/service/shell/v1/shell.pb.cc b/src/gen/service/shell/v1/shell.pb.cc new file mode 100644 index 000000000..b91604062 --- /dev/null +++ b/src/gen/service/shell/v1/shell.pb.cc @@ -0,0 +1,675 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service/shell/v1/shell.proto + +#include "service/shell/v1/shell.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 shell { +namespace v1 { +PROTOBUF_CONSTEXPR ShellRequest::ShellRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.data_in_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ShellRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ShellRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ShellRequestDefaultTypeInternal() {} + union { + ShellRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShellRequestDefaultTypeInternal _ShellRequest_default_instance_; +PROTOBUF_CONSTEXPR ShellResponse::ShellResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.data_out_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.data_err_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.eof_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ShellResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ShellResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ShellResponseDefaultTypeInternal() {} + union { + ShellResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShellResponseDefaultTypeInternal _ShellResponse_default_instance_; +} // namespace v1 +} // namespace shell +} // namespace service +} // namespace viam +static ::_pb::Metadata file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[2]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_service_2fshell_2fv1_2fshell_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fshell_2fv1_2fshell_2eproto = nullptr; + +const uint32_t TableStruct_service_2fshell_2fv1_2fshell_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellRequest, _impl_.data_in_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellResponse, _impl_.data_out_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellResponse, _impl_.data_err_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellResponse, _impl_.eof_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::service::shell::v1::ShellRequest)}, + { 8, -1, -1, sizeof(::viam::service::shell::v1::ShellResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::service::shell::v1::_ShellRequest_default_instance_._instance, + &::viam::service::shell::v1::_ShellResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_service_2fshell_2fv1_2fshell_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\034service/shell/v1/shell.proto\022\025viam.ser" + "vice.shell.v1\";\n\014ShellRequest\022\022\n\004name\030\001 " + "\001(\tR\004name\022\027\n\007data_in\030\002 \001(\tR\006dataIn\"W\n\rSh" + "ellResponse\022\031\n\010data_out\030\001 \001(\tR\007dataOut\022\031" + "\n\010data_err\030\002 \001(\tR\007dataErr\022\020\n\003eof\030\003 \001(\010R\003" + "eof2f\n\014ShellService\022V\n\005Shell\022#.viam.serv" + "ice.shell.v1.ShellRequest\032$.viam.service" + ".shell.v1.ShellResponse(\0010\001B=\n\031com.viam." + "service.shell.v1Z go.viam.com/api/servic" + "e/shell/v1b\006proto3" + ; +static ::_pbi::once_flag descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_service_2fshell_2fv1_2fshell_2eproto = { + false, false, 378, descriptor_table_protodef_service_2fshell_2fv1_2fshell_2eproto, + "service/shell/v1/shell.proto", + &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, nullptr, 0, 2, + schemas, file_default_instances, TableStruct_service_2fshell_2fv1_2fshell_2eproto::offsets, + file_level_metadata_service_2fshell_2fv1_2fshell_2eproto, file_level_enum_descriptors_service_2fshell_2fv1_2fshell_2eproto, + file_level_service_descriptors_service_2fshell_2fv1_2fshell_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter() { + return &descriptor_table_service_2fshell_2fv1_2fshell_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fshell_2fv1_2fshell_2eproto(&descriptor_table_service_2fshell_2fv1_2fshell_2eproto); +namespace viam { +namespace service { +namespace shell { +namespace v1 { + +// =================================================================== + +class ShellRequest::_Internal { + public: +}; + +ShellRequest::ShellRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.shell.v1.ShellRequest) +} +ShellRequest::ShellRequest(const ShellRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ShellRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.data_in_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.data_in_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.data_in_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_data_in().empty()) { + _this->_impl_.data_in_.Set(from._internal_data_in(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.service.shell.v1.ShellRequest) +} + +inline void ShellRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.data_in_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.data_in_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.data_in_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ShellRequest::~ShellRequest() { + // @@protoc_insertion_point(destructor:viam.service.shell.v1.ShellRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ShellRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.data_in_.Destroy(); +} + +void ShellRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ShellRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.shell.v1.ShellRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.data_in_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ShellRequest::_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.shell.v1.ShellRequest.name")); + } else + goto handle_unusual; + continue; + // string data_in = 2 [json_name = "dataIn"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_data_in(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.shell.v1.ShellRequest.data_in")); + } 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* ShellRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.shell.v1.ShellRequest) + 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.shell.v1.ShellRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string data_in = 2 [json_name = "dataIn"]; + if (!this->_internal_data_in().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_data_in().data(), static_cast(this->_internal_data_in().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.shell.v1.ShellRequest.data_in"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_data_in(), 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.shell.v1.ShellRequest) + return target; +} + +size_t ShellRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.shell.v1.ShellRequest) + 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 data_in = 2 [json_name = "dataIn"]; + if (!this->_internal_data_in().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_data_in()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ShellRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ShellRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ShellRequest::GetClassData() const { return &_class_data_; } + + +void ShellRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.ShellRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_data_in().empty()) { + _this->_internal_set_data_in(from._internal_data_in()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ShellRequest::CopyFrom(const ShellRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.shell.v1.ShellRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ShellRequest::IsInitialized() const { + return true; +} + +void ShellRequest::InternalSwap(ShellRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.data_in_, lhs_arena, + &other->_impl_.data_in_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ShellRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter, &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, + file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[0]); +} + +// =================================================================== + +class ShellResponse::_Internal { + public: +}; + +ShellResponse::ShellResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.shell.v1.ShellResponse) +} +ShellResponse::ShellResponse(const ShellResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ShellResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.data_out_){} + , decltype(_impl_.data_err_){} + , decltype(_impl_.eof_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.data_out_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.data_out_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_data_out().empty()) { + _this->_impl_.data_out_.Set(from._internal_data_out(), + _this->GetArenaForAllocation()); + } + _impl_.data_err_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.data_err_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_data_err().empty()) { + _this->_impl_.data_err_.Set(from._internal_data_err(), + _this->GetArenaForAllocation()); + } + _this->_impl_.eof_ = from._impl_.eof_; + // @@protoc_insertion_point(copy_constructor:viam.service.shell.v1.ShellResponse) +} + +inline void ShellResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.data_out_){} + , decltype(_impl_.data_err_){} + , decltype(_impl_.eof_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.data_out_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.data_out_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.data_err_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.data_err_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ShellResponse::~ShellResponse() { + // @@protoc_insertion_point(destructor:viam.service.shell.v1.ShellResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ShellResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.data_out_.Destroy(); + _impl_.data_err_.Destroy(); +} + +void ShellResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ShellResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.shell.v1.ShellResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.data_out_.ClearToEmpty(); + _impl_.data_err_.ClearToEmpty(); + _impl_.eof_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ShellResponse::_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 data_out = 1 [json_name = "dataOut"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_data_out(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.shell.v1.ShellResponse.data_out")); + } else + goto handle_unusual; + continue; + // string data_err = 2 [json_name = "dataErr"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_data_err(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.shell.v1.ShellResponse.data_err")); + } else + goto handle_unusual; + continue; + // bool eof = 3 [json_name = "eof"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.eof_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ShellResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.shell.v1.ShellResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string data_out = 1 [json_name = "dataOut"]; + if (!this->_internal_data_out().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_data_out().data(), static_cast(this->_internal_data_out().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.shell.v1.ShellResponse.data_out"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_data_out(), target); + } + + // string data_err = 2 [json_name = "dataErr"]; + if (!this->_internal_data_err().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_data_err().data(), static_cast(this->_internal_data_err().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.shell.v1.ShellResponse.data_err"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_data_err(), target); + } + + // bool eof = 3 [json_name = "eof"]; + if (this->_internal_eof() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_eof(), 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.shell.v1.ShellResponse) + return target; +} + +size_t ShellResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.shell.v1.ShellResponse) + 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 data_out = 1 [json_name = "dataOut"]; + if (!this->_internal_data_out().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_data_out()); + } + + // string data_err = 2 [json_name = "dataErr"]; + if (!this->_internal_data_err().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_data_err()); + } + + // bool eof = 3 [json_name = "eof"]; + if (this->_internal_eof() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ShellResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ShellResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ShellResponse::GetClassData() const { return &_class_data_; } + + +void ShellResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.ShellResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_data_out().empty()) { + _this->_internal_set_data_out(from._internal_data_out()); + } + if (!from._internal_data_err().empty()) { + _this->_internal_set_data_err(from._internal_data_err()); + } + if (from._internal_eof() != 0) { + _this->_internal_set_eof(from._internal_eof()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ShellResponse::CopyFrom(const ShellResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.shell.v1.ShellResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ShellResponse::IsInitialized() const { + return true; +} + +void ShellResponse::InternalSwap(ShellResponse* 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( + &_impl_.data_out_, lhs_arena, + &other->_impl_.data_out_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.data_err_, lhs_arena, + &other->_impl_.data_err_, rhs_arena + ); + swap(_impl_.eof_, other->_impl_.eof_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ShellResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter, &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, + file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[1]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace shell +} // namespace service +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::ShellRequest* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::ShellRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::ShellRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::ShellResponse* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::ShellResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::ShellResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/service/shell/v1/shell.pb.h b/src/gen/service/shell/v1/shell.pb.h new file mode 100644 index 000000000..a2ba07915 --- /dev/null +++ b/src/gen/service/shell/v1/shell.pb.h @@ -0,0 +1,670 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service/shell/v1/shell.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fshell_2fv1_2fshell_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_service_2fshell_2fv1_2fshell_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_service_2fshell_2fv1_2fshell_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_service_2fshell_2fv1_2fshell_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_service_2fshell_2fv1_2fshell_2eproto; +namespace viam { +namespace service { +namespace shell { +namespace v1 { +class ShellRequest; +struct ShellRequestDefaultTypeInternal; +extern ShellRequestDefaultTypeInternal _ShellRequest_default_instance_; +class ShellResponse; +struct ShellResponseDefaultTypeInternal; +extern ShellResponseDefaultTypeInternal _ShellResponse_default_instance_; +} // namespace v1 +} // namespace shell +} // namespace service +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::service::shell::v1::ShellRequest* Arena::CreateMaybeMessage<::viam::service::shell::v1::ShellRequest>(Arena*); +template<> ::viam::service::shell::v1::ShellResponse* Arena::CreateMaybeMessage<::viam::service::shell::v1::ShellResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace service { +namespace shell { +namespace v1 { + +// =================================================================== + +class ShellRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.ShellRequest) */ { + public: + inline ShellRequest() : ShellRequest(nullptr) {} + ~ShellRequest() override; + explicit PROTOBUF_CONSTEXPR ShellRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ShellRequest(const ShellRequest& from); + ShellRequest(ShellRequest&& from) noexcept + : ShellRequest() { + *this = ::std::move(from); + } + + inline ShellRequest& operator=(const ShellRequest& from) { + CopyFrom(from); + return *this; + } + inline ShellRequest& operator=(ShellRequest&& 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 ShellRequest& default_instance() { + return *internal_default_instance(); + } + static inline const ShellRequest* internal_default_instance() { + return reinterpret_cast( + &_ShellRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(ShellRequest& a, ShellRequest& b) { + a.Swap(&b); + } + inline void Swap(ShellRequest* 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(ShellRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ShellRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ShellRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ShellRequest& from) { + ShellRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ShellRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.shell.v1.ShellRequest"; + } + protected: + explicit ShellRequest(::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, + kDataInFieldNumber = 2, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // string data_in = 2 [json_name = "dataIn"]; + void clear_data_in(); + const std::string& data_in() const; + template + void set_data_in(ArgT0&& arg0, ArgT... args); + std::string* mutable_data_in(); + PROTOBUF_NODISCARD std::string* release_data_in(); + void set_allocated_data_in(std::string* data_in); + private: + const std::string& _internal_data_in() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data_in(const std::string& value); + std::string* _internal_mutable_data_in(); + public: + + // @@protoc_insertion_point(class_scope:viam.service.shell.v1.ShellRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_in_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fshell_2fv1_2fshell_2eproto; +}; +// ------------------------------------------------------------------- + +class ShellResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.ShellResponse) */ { + public: + inline ShellResponse() : ShellResponse(nullptr) {} + ~ShellResponse() override; + explicit PROTOBUF_CONSTEXPR ShellResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ShellResponse(const ShellResponse& from); + ShellResponse(ShellResponse&& from) noexcept + : ShellResponse() { + *this = ::std::move(from); + } + + inline ShellResponse& operator=(const ShellResponse& from) { + CopyFrom(from); + return *this; + } + inline ShellResponse& operator=(ShellResponse&& 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 ShellResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ShellResponse* internal_default_instance() { + return reinterpret_cast( + &_ShellResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(ShellResponse& a, ShellResponse& b) { + a.Swap(&b); + } + inline void Swap(ShellResponse* 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(ShellResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ShellResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ShellResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ShellResponse& from) { + ShellResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ShellResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.shell.v1.ShellResponse"; + } + protected: + explicit ShellResponse(::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 { + kDataOutFieldNumber = 1, + kDataErrFieldNumber = 2, + kEofFieldNumber = 3, + }; + // string data_out = 1 [json_name = "dataOut"]; + void clear_data_out(); + const std::string& data_out() const; + template + void set_data_out(ArgT0&& arg0, ArgT... args); + std::string* mutable_data_out(); + PROTOBUF_NODISCARD std::string* release_data_out(); + void set_allocated_data_out(std::string* data_out); + private: + const std::string& _internal_data_out() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data_out(const std::string& value); + std::string* _internal_mutable_data_out(); + public: + + // string data_err = 2 [json_name = "dataErr"]; + void clear_data_err(); + const std::string& data_err() const; + template + void set_data_err(ArgT0&& arg0, ArgT... args); + std::string* mutable_data_err(); + PROTOBUF_NODISCARD std::string* release_data_err(); + void set_allocated_data_err(std::string* data_err); + private: + const std::string& _internal_data_err() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data_err(const std::string& value); + std::string* _internal_mutable_data_err(); + public: + + // bool eof = 3 [json_name = "eof"]; + void clear_eof(); + bool eof() const; + void set_eof(bool value); + private: + bool _internal_eof() const; + void _internal_set_eof(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.shell.v1.ShellResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_out_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_err_; + bool eof_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fshell_2fv1_2fshell_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ShellRequest + +// string name = 1 [json_name = "name"]; +inline void ShellRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& ShellRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ShellRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.ShellRequest.name) +} +inline std::string* ShellRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.ShellRequest.name) + return _s; +} +inline const std::string& ShellRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void ShellRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* ShellRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* ShellRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.ShellRequest.name) + return _impl_.name_.Release(); +} +inline void ShellRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.ShellRequest.name) +} + +// string data_in = 2 [json_name = "dataIn"]; +inline void ShellRequest::clear_data_in() { + _impl_.data_in_.ClearToEmpty(); +} +inline const std::string& ShellRequest::data_in() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellRequest.data_in) + return _internal_data_in(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ShellRequest::set_data_in(ArgT0&& arg0, ArgT... args) { + + _impl_.data_in_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.ShellRequest.data_in) +} +inline std::string* ShellRequest::mutable_data_in() { + std::string* _s = _internal_mutable_data_in(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.ShellRequest.data_in) + return _s; +} +inline const std::string& ShellRequest::_internal_data_in() const { + return _impl_.data_in_.Get(); +} +inline void ShellRequest::_internal_set_data_in(const std::string& value) { + + _impl_.data_in_.Set(value, GetArenaForAllocation()); +} +inline std::string* ShellRequest::_internal_mutable_data_in() { + + return _impl_.data_in_.Mutable(GetArenaForAllocation()); +} +inline std::string* ShellRequest::release_data_in() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.ShellRequest.data_in) + return _impl_.data_in_.Release(); +} +inline void ShellRequest::set_allocated_data_in(std::string* data_in) { + if (data_in != nullptr) { + + } else { + + } + _impl_.data_in_.SetAllocated(data_in, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.data_in_.IsDefault()) { + _impl_.data_in_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.ShellRequest.data_in) +} + +// ------------------------------------------------------------------- + +// ShellResponse + +// string data_out = 1 [json_name = "dataOut"]; +inline void ShellResponse::clear_data_out() { + _impl_.data_out_.ClearToEmpty(); +} +inline const std::string& ShellResponse::data_out() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellResponse.data_out) + return _internal_data_out(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ShellResponse::set_data_out(ArgT0&& arg0, ArgT... args) { + + _impl_.data_out_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.ShellResponse.data_out) +} +inline std::string* ShellResponse::mutable_data_out() { + std::string* _s = _internal_mutable_data_out(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.ShellResponse.data_out) + return _s; +} +inline const std::string& ShellResponse::_internal_data_out() const { + return _impl_.data_out_.Get(); +} +inline void ShellResponse::_internal_set_data_out(const std::string& value) { + + _impl_.data_out_.Set(value, GetArenaForAllocation()); +} +inline std::string* ShellResponse::_internal_mutable_data_out() { + + return _impl_.data_out_.Mutable(GetArenaForAllocation()); +} +inline std::string* ShellResponse::release_data_out() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.ShellResponse.data_out) + return _impl_.data_out_.Release(); +} +inline void ShellResponse::set_allocated_data_out(std::string* data_out) { + if (data_out != nullptr) { + + } else { + + } + _impl_.data_out_.SetAllocated(data_out, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.data_out_.IsDefault()) { + _impl_.data_out_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.ShellResponse.data_out) +} + +// string data_err = 2 [json_name = "dataErr"]; +inline void ShellResponse::clear_data_err() { + _impl_.data_err_.ClearToEmpty(); +} +inline const std::string& ShellResponse::data_err() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellResponse.data_err) + return _internal_data_err(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ShellResponse::set_data_err(ArgT0&& arg0, ArgT... args) { + + _impl_.data_err_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.ShellResponse.data_err) +} +inline std::string* ShellResponse::mutable_data_err() { + std::string* _s = _internal_mutable_data_err(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.ShellResponse.data_err) + return _s; +} +inline const std::string& ShellResponse::_internal_data_err() const { + return _impl_.data_err_.Get(); +} +inline void ShellResponse::_internal_set_data_err(const std::string& value) { + + _impl_.data_err_.Set(value, GetArenaForAllocation()); +} +inline std::string* ShellResponse::_internal_mutable_data_err() { + + return _impl_.data_err_.Mutable(GetArenaForAllocation()); +} +inline std::string* ShellResponse::release_data_err() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.ShellResponse.data_err) + return _impl_.data_err_.Release(); +} +inline void ShellResponse::set_allocated_data_err(std::string* data_err) { + if (data_err != nullptr) { + + } else { + + } + _impl_.data_err_.SetAllocated(data_err, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.data_err_.IsDefault()) { + _impl_.data_err_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.ShellResponse.data_err) +} + +// bool eof = 3 [json_name = "eof"]; +inline void ShellResponse::clear_eof() { + _impl_.eof_ = false; +} +inline bool ShellResponse::_internal_eof() const { + return _impl_.eof_; +} +inline bool ShellResponse::eof() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellResponse.eof) + return _internal_eof(); +} +inline void ShellResponse::_internal_set_eof(bool value) { + + _impl_.eof_ = value; +} +inline void ShellResponse::set_eof(bool value) { + _internal_set_eof(value); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.ShellResponse.eof) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace shell +} // namespace service +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_service_2fshell_2fv1_2fshell_2eproto diff --git a/src/gen/service/slam/v1/slam.grpc.pb.cc b/src/gen/service/slam/v1/slam.grpc.pb.cc new file mode 100644 index 000000000..a5970567b --- /dev/null +++ b/src/gen/service/slam/v1/slam.grpc.pb.cc @@ -0,0 +1,134 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: service/slam/v1/slam.proto + +#include "service/slam/v1/slam.pb.h" +#include "service/slam/v1/slam.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace service { +namespace slam { +namespace v1 { + +static const char* SLAMService_method_names[] = { + "/viam.service.slam.v1.SLAMService/GetPosition", + "/viam.service.slam.v1.SLAMService/GetMap", +}; + +std::unique_ptr< SLAMService::Stub> SLAMService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< SLAMService::Stub> stub(new SLAMService::Stub(channel, options)); + return stub; +} + +SLAMService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_GetPosition_(SLAMService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetMap_(SLAMService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status SLAMService::Stub::GetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::viam::service::slam::v1::GetPositionResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::slam::v1::GetPositionRequest, ::viam::service::slam::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetPosition_, context, request, response); +} + +void SLAMService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest* request, ::viam::service::slam::v1::GetPositionResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::slam::v1::GetPositionRequest, ::viam::service::slam::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); +} + +void SLAMService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest* request, ::viam::service::slam::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetPositionResponse>* SLAMService::Stub::PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::slam::v1::GetPositionResponse, ::viam::service::slam::v1::GetPositionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetPosition_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetPositionResponse>* SLAMService::Stub::AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetPositionRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status SLAMService::Stub::GetMap(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetMapRequest& request, ::viam::service::slam::v1::GetMapResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::slam::v1::GetMapRequest, ::viam::service::slam::v1::GetMapResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetMap_, context, request, response); +} + +void SLAMService::Stub::async::GetMap(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetMapRequest* request, ::viam::service::slam::v1::GetMapResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::slam::v1::GetMapRequest, ::viam::service::slam::v1::GetMapResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetMap_, context, request, response, std::move(f)); +} + +void SLAMService::Stub::async::GetMap(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetMapRequest* request, ::viam::service::slam::v1::GetMapResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetMap_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetMapResponse>* SLAMService::Stub::PrepareAsyncGetMapRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetMapRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::slam::v1::GetMapResponse, ::viam::service::slam::v1::GetMapRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetMap_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetMapResponse>* SLAMService::Stub::AsyncGetMapRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetMapRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetMapRaw(context, request, cq); + result->StartCall(); + return result; +} + +SLAMService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + SLAMService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< SLAMService::Service, ::viam::service::slam::v1::GetPositionRequest, ::viam::service::slam::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](SLAMService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::slam::v1::GetPositionRequest* req, + ::viam::service::slam::v1::GetPositionResponse* resp) { + return service->GetPosition(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + SLAMService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< SLAMService::Service, ::viam::service::slam::v1::GetMapRequest, ::viam::service::slam::v1::GetMapResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](SLAMService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::slam::v1::GetMapRequest* req, + ::viam::service::slam::v1::GetMapResponse* resp) { + return service->GetMap(ctx, req, resp); + }, this))); +} + +SLAMService::Service::~Service() { +} + +::grpc::Status SLAMService::Service::GetPosition(::grpc::ServerContext* context, const ::viam::service::slam::v1::GetPositionRequest* request, ::viam::service::slam::v1::GetPositionResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status SLAMService::Service::GetMap(::grpc::ServerContext* context, const ::viam::service::slam::v1::GetMapRequest* request, ::viam::service::slam::v1::GetMapResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace service +} // namespace slam +} // namespace v1 + diff --git a/src/gen/service/slam/v1/slam.grpc.pb.h b/src/gen/service/slam/v1/slam.grpc.pb.h new file mode 100644 index 000000000..ebabcb311 --- /dev/null +++ b/src/gen/service/slam/v1/slam.grpc.pb.h @@ -0,0 +1,416 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: service/slam/v1/slam.proto +#ifndef GRPC_service_2fslam_2fv1_2fslam_2eproto__INCLUDED +#define GRPC_service_2fslam_2fv1_2fslam_2eproto__INCLUDED + +#include "service/slam/v1/slam.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 slam { +namespace v1 { + +// A SlamService declares the gRPC contract for a slam service +class SLAMService final { + public: + static constexpr char const* service_full_name() { + return "viam.service.slam.v1.SLAMService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // GetPosition returns the current estimated position of the robot with + // respect to the "origin" of the map. + virtual ::grpc::Status GetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::viam::service::slam::v1::GetPositionResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::slam::v1::GetPositionResponse>> AsyncGetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::slam::v1::GetPositionResponse>>(AsyncGetPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::slam::v1::GetPositionResponse>> PrepareAsyncGetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::slam::v1::GetPositionResponse>>(PrepareAsyncGetPositionRaw(context, request, cq)); + } + // GetMap returns the latest map image or point cloud generated by the + // SLAM library + virtual ::grpc::Status GetMap(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetMapRequest& request, ::viam::service::slam::v1::GetMapResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::slam::v1::GetMapResponse>> AsyncGetMap(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetMapRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::slam::v1::GetMapResponse>>(AsyncGetMapRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::slam::v1::GetMapResponse>> PrepareAsyncGetMap(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetMapRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::slam::v1::GetMapResponse>>(PrepareAsyncGetMapRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // GetPosition returns the current estimated position of the robot with + // respect to the "origin" of the map. + virtual void GetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest* request, ::viam::service::slam::v1::GetPositionResponse* response, std::function) = 0; + virtual void GetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest* request, ::viam::service::slam::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GetMap returns the latest map image or point cloud generated by the + // SLAM library + virtual void GetMap(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetMapRequest* request, ::viam::service::slam::v1::GetMapResponse* response, std::function) = 0; + virtual void GetMap(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetMapRequest* request, ::viam::service::slam::v1::GetMapResponse* 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::ClientAsyncResponseReaderInterface< ::viam::service::slam::v1::GetPositionResponse>* AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::slam::v1::GetPositionResponse>* PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::slam::v1::GetMapResponse>* AsyncGetMapRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetMapRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::slam::v1::GetMapResponse>* PrepareAsyncGetMapRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetMapRequest& 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()); + ::grpc::Status GetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::viam::service::slam::v1::GetPositionResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetPositionResponse>> AsyncGetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetPositionResponse>>(AsyncGetPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetPositionResponse>> PrepareAsyncGetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetPositionResponse>>(PrepareAsyncGetPositionRaw(context, request, cq)); + } + ::grpc::Status GetMap(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetMapRequest& request, ::viam::service::slam::v1::GetMapResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetMapResponse>> AsyncGetMap(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetMapRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetMapResponse>>(AsyncGetMapRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetMapResponse>> PrepareAsyncGetMap(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetMapRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetMapResponse>>(PrepareAsyncGetMapRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void GetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest* request, ::viam::service::slam::v1::GetPositionResponse* response, std::function) override; + void GetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest* request, ::viam::service::slam::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetMap(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetMapRequest* request, ::viam::service::slam::v1::GetMapResponse* response, std::function) override; + void GetMap(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetMapRequest* request, ::viam::service::slam::v1::GetMapResponse* 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::ClientAsyncResponseReader< ::viam::service::slam::v1::GetPositionResponse>* AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetPositionResponse>* PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetMapResponse>* AsyncGetMapRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetMapRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetMapResponse>* PrepareAsyncGetMapRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetMapRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_GetPosition_; + const ::grpc::internal::RpcMethod rpcmethod_GetMap_; + }; + 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(); + // GetPosition returns the current estimated position of the robot with + // respect to the "origin" of the map. + virtual ::grpc::Status GetPosition(::grpc::ServerContext* context, const ::viam::service::slam::v1::GetPositionRequest* request, ::viam::service::slam::v1::GetPositionResponse* response); + // GetMap returns the latest map image or point cloud generated by the + // SLAM library + virtual ::grpc::Status GetMap(::grpc::ServerContext* context, const ::viam::service::slam::v1::GetMapRequest* request, ::viam::service::slam::v1::GetMapResponse* response); + }; + template + class WithAsyncMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetPosition() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::service::slam::v1::GetPositionRequest* /*request*/, ::viam::service::slam::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetPosition(::grpc::ServerContext* context, ::viam::service::slam::v1::GetPositionRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::slam::v1::GetPositionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetMap : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetMap() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_GetMap() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetMap(::grpc::ServerContext* /*context*/, const ::viam::service::slam::v1::GetMapRequest* /*request*/, ::viam::service::slam::v1::GetMapResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetMap(::grpc::ServerContext* context, ::viam::service::slam::v1::GetMapRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::slam::v1::GetMapResponse>* 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_GetPosition > AsyncService; + template + class WithCallbackMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetPosition() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::slam::v1::GetPositionRequest, ::viam::service::slam::v1::GetPositionResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::slam::v1::GetPositionRequest* request, ::viam::service::slam::v1::GetPositionResponse* response) { return this->GetPosition(context, request, response); }));} + void SetMessageAllocatorFor_GetPosition( + ::grpc::MessageAllocator< ::viam::service::slam::v1::GetPositionRequest, ::viam::service::slam::v1::GetPositionResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::slam::v1::GetPositionRequest, ::viam::service::slam::v1::GetPositionResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::service::slam::v1::GetPositionRequest* /*request*/, ::viam::service::slam::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetPosition( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::slam::v1::GetPositionRequest* /*request*/, ::viam::service::slam::v1::GetPositionResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetMap : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetMap() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::slam::v1::GetMapRequest, ::viam::service::slam::v1::GetMapResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::slam::v1::GetMapRequest* request, ::viam::service::slam::v1::GetMapResponse* response) { return this->GetMap(context, request, response); }));} + void SetMessageAllocatorFor_GetMap( + ::grpc::MessageAllocator< ::viam::service::slam::v1::GetMapRequest, ::viam::service::slam::v1::GetMapResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::slam::v1::GetMapRequest, ::viam::service::slam::v1::GetMapResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetMap() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetMap(::grpc::ServerContext* /*context*/, const ::viam::service::slam::v1::GetMapRequest* /*request*/, ::viam::service::slam::v1::GetMapResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetMap( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::slam::v1::GetMapRequest* /*request*/, ::viam::service::slam::v1::GetMapResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetPosition > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetPosition() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::service::slam::v1::GetPositionRequest* /*request*/, ::viam::service::slam::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetMap : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetMap() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_GetMap() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetMap(::grpc::ServerContext* /*context*/, const ::viam::service::slam::v1::GetMapRequest* /*request*/, ::viam::service::slam::v1::GetMapResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetPosition() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::service::slam::v1::GetPositionRequest* /*request*/, ::viam::service::slam::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetPosition(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetMap : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetMap() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_GetMap() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetMap(::grpc::ServerContext* /*context*/, const ::viam::service::slam::v1::GetMapRequest* /*request*/, ::viam::service::slam::v1::GetMapResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetMap(::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_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetPosition() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPosition(context, request, response); })); + } + ~WithRawCallbackMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::service::slam::v1::GetPositionRequest* /*request*/, ::viam::service::slam::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetPosition( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetMap : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetMap() { + ::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->GetMap(context, request, response); })); + } + ~WithRawCallbackMethod_GetMap() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetMap(::grpc::ServerContext* /*context*/, const ::viam::service::slam::v1::GetMapRequest* /*request*/, ::viam::service::slam::v1::GetMapResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetMap( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetPosition() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::slam::v1::GetPositionRequest, ::viam::service::slam::v1::GetPositionResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::slam::v1::GetPositionRequest, ::viam::service::slam::v1::GetPositionResponse>* streamer) { + return this->StreamedGetPosition(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::service::slam::v1::GetPositionRequest* /*request*/, ::viam::service::slam::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetPosition(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::slam::v1::GetPositionRequest,::viam::service::slam::v1::GetPositionResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetMap : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetMap() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::slam::v1::GetMapRequest, ::viam::service::slam::v1::GetMapResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::slam::v1::GetMapRequest, ::viam::service::slam::v1::GetMapResponse>* streamer) { + return this->StreamedGetMap(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetMap() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetMap(::grpc::ServerContext* /*context*/, const ::viam::service::slam::v1::GetMapRequest* /*request*/, ::viam::service::slam::v1::GetMapResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetMap(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::slam::v1::GetMapRequest,::viam::service::slam::v1::GetMapResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetPosition > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_GetPosition > StreamedService; +}; + +} // namespace v1 +} // namespace slam +} // namespace service +} // namespace viam + + +#endif // GRPC_service_2fslam_2fv1_2fslam_2eproto__INCLUDED diff --git a/src/gen/service/slam/v1/slam.pb.cc b/src/gen/service/slam/v1/slam.pb.cc new file mode 100644 index 000000000..58d5af59c --- /dev/null +++ b/src/gen/service/slam/v1/slam.pb.cc @@ -0,0 +1,1365 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service/slam/v1/slam.proto + +#include "service/slam/v1/slam.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 slam { +namespace v1 { +PROTOBUF_CONSTEXPR GetPositionRequest::GetPositionRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPositionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPositionRequestDefaultTypeInternal() {} + union { + GetPositionRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPositionResponse::GetPositionResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.pose_)*/nullptr + , /*decltype(_impl_.extra_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetPositionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPositionResponseDefaultTypeInternal() {} + union { + GetPositionResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR GetMapRequest::GetMapRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mime_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.camera_position_)*/nullptr + , /*decltype(_impl_.include_robot_marker_)*/false} {} +struct GetMapRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetMapRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetMapRequestDefaultTypeInternal() {} + union { + GetMapRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMapRequestDefaultTypeInternal _GetMapRequest_default_instance_; +PROTOBUF_CONSTEXPR GetMapResponse::GetMapResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.mime_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.map_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct GetMapResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetMapResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetMapResponseDefaultTypeInternal() {} + union { + GetMapResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMapResponseDefaultTypeInternal _GetMapResponse_default_instance_; +} // namespace v1 +} // namespace slam +} // namespace service +} // namespace viam +static ::_pb::Metadata file_level_metadata_service_2fslam_2fv1_2fslam_2eproto[4]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_service_2fslam_2fv1_2fslam_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fslam_2fv1_2fslam_2eproto = nullptr; + +const uint32_t TableStruct_service_2fslam_2fv1_2fslam_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPositionRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPositionResponse, _impl_.pose_), + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPositionResponse, _impl_.extra_), + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetMapRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetMapRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetMapRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetMapRequest, _impl_.mime_type_), + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetMapRequest, _impl_.camera_position_), + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetMapRequest, _impl_.include_robot_marker_), + ~0u, + ~0u, + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetMapResponse, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetMapResponse, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetMapResponse, _impl_.mime_type_), + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetMapResponse, _impl_.map_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::service::slam::v1::GetPositionRequest)}, + { 7, -1, -1, sizeof(::viam::service::slam::v1::GetPositionResponse)}, + { 15, 25, -1, sizeof(::viam::service::slam::v1::GetMapRequest)}, + { 29, -1, -1, sizeof(::viam::service::slam::v1::GetMapResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::service::slam::v1::_GetPositionRequest_default_instance_._instance, + &::viam::service::slam::v1::_GetPositionResponse_default_instance_._instance, + &::viam::service::slam::v1::_GetMapRequest_default_instance_._instance, + &::viam::service::slam::v1::_GetMapResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_service_2fslam_2fv1_2fslam_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\032service/slam/v1/slam.proto\022\024viam.servi" + "ce.slam.v1\032\026common/v1/common.proto\032\034goog" + "le/api/annotations.proto\032\034google/protobu" + "f/struct.proto\"(\n\022GetPositionRequest\022\022\n\004" + "name\030\001 \001(\tR\004name\"u\n\023GetPositionResponse\022" + "/\n\004pose\030\001 \001(\0132\033.viam.common.v1.PoseInFra" + "meR\004pose\022-\n\005extra\030c \001(\0132\027.google.protobu" + "f.StructR\005extra\"\312\001\n\rGetMapRequest\022\022\n\004nam" + "e\030\001 \001(\tR\004name\022\033\n\tmime_type\030\002 \001(\tR\010mimeTy" + "pe\022B\n\017camera_position\030\003 \001(\0132\024.viam.commo" + "n.v1.PoseH\000R\016cameraPosition\210\001\001\0220\n\024includ" + "e_robot_marker\030\004 \001(\010R\022includeRobotMarker" + "B\022\n\020_camera_position\"\221\001\n\016GetMapResponse\022" + "C\n\013point_cloud\030\001 \001(\0132 .viam.common.v1.Po" + "intCloudObjectH\000R\npointCloud\022\026\n\005image\030\002 " + "\001(\014H\000R\005image\022\033\n\tmime_type\030\003 \001(\tR\010mimeTyp" + "eB\005\n\003map2\251\002\n\013SLAMService\022\225\001\n\013GetPosition" + "\022(.viam.service.slam.v1.GetPositionReque" + "st\032).viam.service.slam.v1.GetPositionRes" + "ponse\"1\202\323\344\223\002+\022)/viam/api/v1/service/slam" + "/{name}/position\022\201\001\n\006GetMap\022#.viam.servi" + "ce.slam.v1.GetMapRequest\032$.viam.service." + "slam.v1.GetMapResponse\",\202\323\344\223\002&\022$/viam/ap" + "i/v1/service/slam/{name}/mapB;\n\030com.viam" + ".service.slam.v1Z\037go.viam.com/api/servic" + "e/slam/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_service_2fslam_2fv1_2fslam_2eproto_deps[3] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, +}; +static ::_pbi::once_flag descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_service_2fslam_2fv1_2fslam_2eproto = { + false, false, 1017, descriptor_table_protodef_service_2fslam_2fv1_2fslam_2eproto, + "service/slam/v1/slam.proto", + &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once, descriptor_table_service_2fslam_2fv1_2fslam_2eproto_deps, 3, 4, + schemas, file_default_instances, TableStruct_service_2fslam_2fv1_2fslam_2eproto::offsets, + file_level_metadata_service_2fslam_2fv1_2fslam_2eproto, file_level_enum_descriptors_service_2fslam_2fv1_2fslam_2eproto, + file_level_service_descriptors_service_2fslam_2fv1_2fslam_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_service_2fslam_2fv1_2fslam_2eproto_getter() { + return &descriptor_table_service_2fslam_2fv1_2fslam_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fslam_2fv1_2fslam_2eproto(&descriptor_table_service_2fslam_2fv1_2fslam_2eproto); +namespace viam { +namespace service { +namespace slam { +namespace v1 { + +// =================================================================== + +class GetPositionRequest::_Internal { + public: +}; + +GetPositionRequest::GetPositionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.slam.v1.GetPositionRequest) +} +GetPositionRequest::GetPositionRequest(const GetPositionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPositionRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.service.slam.v1.GetPositionRequest) +} + +inline void GetPositionRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetPositionRequest::~GetPositionRequest() { + // @@protoc_insertion_point(destructor:viam.service.slam.v1.GetPositionRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPositionRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void GetPositionRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPositionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.slam.v1.GetPositionRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.slam.v1.GetPositionRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.slam.v1.GetPositionRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.slam.v1.GetPositionRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.slam.v1.GetPositionRequest) + return target; +} + +size_t GetPositionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.slam.v1.GetPositionRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPositionRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionRequest::GetClassData() const { return &_class_data_; } + + +void GetPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.GetPositionRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPositionRequest::CopyFrom(const GetPositionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.slam.v1.GetPositionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPositionRequest::IsInitialized() const { + return true; +} + +void GetPositionRequest::InternalSwap(GetPositionRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_getter, &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once, + file_level_metadata_service_2fslam_2fv1_2fslam_2eproto[0]); +} + +// =================================================================== + +class GetPositionResponse::_Internal { + public: + static const ::viam::common::v1::PoseInFrame& pose(const GetPositionResponse* msg); + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPositionResponse* msg); +}; + +const ::viam::common::v1::PoseInFrame& +GetPositionResponse::_Internal::pose(const GetPositionResponse* msg) { + return *msg->_impl_.pose_; +} +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPositionResponse::_Internal::extra(const GetPositionResponse* msg) { + return *msg->_impl_.extra_; +} +void GetPositionResponse::clear_pose() { + if (GetArenaForAllocation() == nullptr && _impl_.pose_ != nullptr) { + delete _impl_.pose_; + } + _impl_.pose_ = nullptr; +} +void GetPositionResponse::clear_extra() { + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; +} +GetPositionResponse::GetPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.slam.v1.GetPositionResponse) +} +GetPositionResponse::GetPositionResponse(const GetPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetPositionResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.pose_){nullptr} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_pose()) { + _this->_impl_.pose_ = new ::viam::common::v1::PoseInFrame(*from._impl_.pose_); + } + if (from._internal_has_extra()) { + _this->_impl_.extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.extra_); + } + // @@protoc_insertion_point(copy_constructor:viam.service.slam.v1.GetPositionResponse) +} + +inline void GetPositionResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.pose_){nullptr} + , decltype(_impl_.extra_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetPositionResponse::~GetPositionResponse() { + // @@protoc_insertion_point(destructor:viam.service.slam.v1.GetPositionResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPositionResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.pose_; + if (this != internal_default_instance()) delete _impl_.extra_; +} + +void GetPositionResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetPositionResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.slam.v1.GetPositionResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.pose_ != nullptr) { + delete _impl_.pose_; + } + _impl_.pose_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.extra_ != nullptr) { + delete _impl_.extra_; + } + _impl_.extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionResponse::_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) { + // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_pose(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + case 99: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_extra(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetPositionResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.slam.v1.GetPositionResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; + if (this->_internal_has_pose()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::pose(this), + _Internal::pose(this).GetCachedSize(), target, stream); + } + + // .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.slam.v1.GetPositionResponse) + return target; +} + +size_t GetPositionResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.slam.v1.GetPositionResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; + if (this->_internal_has_pose()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.pose_); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetPositionResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionResponse::GetClassData() const { return &_class_data_; } + + +void GetPositionResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.GetPositionResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_pose()) { + _this->_internal_mutable_pose()->::viam::common::v1::PoseInFrame::MergeFrom( + from._internal_pose()); + } + if (from._internal_has_extra()) { + _this->_internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_extra()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPositionResponse::CopyFrom(const GetPositionResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.slam.v1.GetPositionResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPositionResponse::IsInitialized() const { + return true; +} + +void GetPositionResponse::InternalSwap(GetPositionResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.extra_) + + sizeof(GetPositionResponse::_impl_.extra_) + - PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.pose_)>( + reinterpret_cast(&_impl_.pose_), + reinterpret_cast(&other->_impl_.pose_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_getter, &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once, + file_level_metadata_service_2fslam_2fv1_2fslam_2eproto[1]); +} + +// =================================================================== + +class GetMapRequest::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static const ::viam::common::v1::Pose& camera_position(const GetMapRequest* msg); + static void set_has_camera_position(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::viam::common::v1::Pose& +GetMapRequest::_Internal::camera_position(const GetMapRequest* msg) { + return *msg->_impl_.camera_position_; +} +void GetMapRequest::clear_camera_position() { + if (_impl_.camera_position_ != nullptr) _impl_.camera_position_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +GetMapRequest::GetMapRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.slam.v1.GetMapRequest) +} +GetMapRequest::GetMapRequest(const GetMapRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetMapRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.name_){} + , decltype(_impl_.mime_type_){} + , decltype(_impl_.camera_position_){nullptr} + , decltype(_impl_.include_robot_marker_){}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + _this->_impl_.mime_type_.Set(from._internal_mime_type(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_camera_position()) { + _this->_impl_.camera_position_ = new ::viam::common::v1::Pose(*from._impl_.camera_position_); + } + _this->_impl_.include_robot_marker_ = from._impl_.include_robot_marker_; + // @@protoc_insertion_point(copy_constructor:viam.service.slam.v1.GetMapRequest) +} + +inline void GetMapRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.name_){} + , decltype(_impl_.mime_type_){} + , decltype(_impl_.camera_position_){nullptr} + , decltype(_impl_.include_robot_marker_){false} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetMapRequest::~GetMapRequest() { + // @@protoc_insertion_point(destructor:viam.service.slam.v1.GetMapRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetMapRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.mime_type_.Destroy(); + if (this != internal_default_instance()) delete _impl_.camera_position_; +} + +void GetMapRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetMapRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.slam.v1.GetMapRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.mime_type_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(_impl_.camera_position_ != nullptr); + _impl_.camera_position_->Clear(); + } + _impl_.include_robot_marker_ = false; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetMapRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.slam.v1.GetMapRequest.name")); + } else + goto handle_unusual; + continue; + // string mime_type = 2 [json_name = "mimeType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.slam.v1.GetMapRequest.mime_type")); + } else + goto handle_unusual; + continue; + // optional .viam.common.v1.Pose camera_position = 3 [json_name = "cameraPosition"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_camera_position(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool include_robot_marker = 4 [json_name = "includeRobotMarker"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.include_robot_marker_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + _impl_._has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetMapRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.slam.v1.GetMapRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.slam.v1.GetMapRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string mime_type = 2 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.slam.v1.GetMapRequest.mime_type"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_mime_type(), target); + } + + // optional .viam.common.v1.Pose camera_position = 3 [json_name = "cameraPosition"]; + if (_internal_has_camera_position()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::camera_position(this), + _Internal::camera_position(this).GetCachedSize(), target, stream); + } + + // bool include_robot_marker = 4 [json_name = "includeRobotMarker"]; + if (this->_internal_include_robot_marker() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_include_robot_marker(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.slam.v1.GetMapRequest) + return target; +} + +size_t GetMapRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.slam.v1.GetMapRequest) + 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 mime_type = 2 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); + } + + // optional .viam.common.v1.Pose camera_position = 3 [json_name = "cameraPosition"]; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.camera_position_); + } + + // bool include_robot_marker = 4 [json_name = "includeRobotMarker"]; + if (this->_internal_include_robot_marker() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetMapRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetMapRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetMapRequest::GetClassData() const { return &_class_data_; } + + +void GetMapRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.GetMapRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_mime_type().empty()) { + _this->_internal_set_mime_type(from._internal_mime_type()); + } + if (from._internal_has_camera_position()) { + _this->_internal_mutable_camera_position()->::viam::common::v1::Pose::MergeFrom( + from._internal_camera_position()); + } + if (from._internal_include_robot_marker() != 0) { + _this->_internal_set_include_robot_marker(from._internal_include_robot_marker()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetMapRequest::CopyFrom(const GetMapRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.slam.v1.GetMapRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetMapRequest::IsInitialized() const { + return true; +} + +void GetMapRequest::InternalSwap(GetMapRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.mime_type_, lhs_arena, + &other->_impl_.mime_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetMapRequest, _impl_.include_robot_marker_) + + sizeof(GetMapRequest::_impl_.include_robot_marker_) + - PROTOBUF_FIELD_OFFSET(GetMapRequest, _impl_.camera_position_)>( + reinterpret_cast(&_impl_.camera_position_), + reinterpret_cast(&other->_impl_.camera_position_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetMapRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_getter, &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once, + file_level_metadata_service_2fslam_2fv1_2fslam_2eproto[2]); +} + +// =================================================================== + +class GetMapResponse::_Internal { + public: + static const ::viam::common::v1::PointCloudObject& point_cloud(const GetMapResponse* msg); +}; + +const ::viam::common::v1::PointCloudObject& +GetMapResponse::_Internal::point_cloud(const GetMapResponse* msg) { + return *msg->_impl_.map_.point_cloud_; +} +void GetMapResponse::set_allocated_point_cloud(::viam::common::v1::PointCloudObject* point_cloud) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_map(); + if (point_cloud) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(point_cloud)); + if (message_arena != submessage_arena) { + point_cloud = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, point_cloud, submessage_arena); + } + set_has_point_cloud(); + _impl_.map_.point_cloud_ = point_cloud; + } + // @@protoc_insertion_point(field_set_allocated:viam.service.slam.v1.GetMapResponse.point_cloud) +} +void GetMapResponse::clear_point_cloud() { + if (_internal_has_point_cloud()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.map_.point_cloud_; + } + clear_has_map(); + } +} +GetMapResponse::GetMapResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.slam.v1.GetMapResponse) +} +GetMapResponse::GetMapResponse(const GetMapResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetMapResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.mime_type_){} + , decltype(_impl_.map_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + _this->_impl_.mime_type_.Set(from._internal_mime_type(), + _this->GetArenaForAllocation()); + } + clear_has_map(); + switch (from.map_case()) { + case kPointCloud: { + _this->_internal_mutable_point_cloud()->::viam::common::v1::PointCloudObject::MergeFrom( + from._internal_point_cloud()); + break; + } + case kImage: { + _this->_internal_set_image(from._internal_image()); + break; + } + case MAP_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:viam.service.slam.v1.GetMapResponse) +} + +inline void GetMapResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.mime_type_){} + , decltype(_impl_.map_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + clear_has_map(); +} + +GetMapResponse::~GetMapResponse() { + // @@protoc_insertion_point(destructor:viam.service.slam.v1.GetMapResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetMapResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.mime_type_.Destroy(); + if (has_map()) { + clear_map(); + } +} + +void GetMapResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetMapResponse::clear_map() { +// @@protoc_insertion_point(one_of_clear_start:viam.service.slam.v1.GetMapResponse) + switch (map_case()) { + case kPointCloud: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.map_.point_cloud_; + } + break; + } + case kImage: { + _impl_.map_.image_.Destroy(); + break; + } + case MAP_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = MAP_NOT_SET; +} + + +void GetMapResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.slam.v1.GetMapResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.mime_type_.ClearToEmpty(); + clear_map(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetMapResponse::_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) { + // .viam.common.v1.PointCloudObject point_cloud = 1 [json_name = "pointCloud"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_point_cloud(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes image = 2 [json_name = "image"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_image(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string mime_type = 3 [json_name = "mimeType"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.slam.v1.GetMapResponse.mime_type")); + } 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* GetMapResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.slam.v1.GetMapResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.common.v1.PointCloudObject point_cloud = 1 [json_name = "pointCloud"]; + if (_internal_has_point_cloud()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::point_cloud(this), + _Internal::point_cloud(this).GetCachedSize(), target, stream); + } + + // bytes image = 2 [json_name = "image"]; + if (_internal_has_image()) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_image(), target); + } + + // string mime_type = 3 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.slam.v1.GetMapResponse.mime_type"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_mime_type(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.slam.v1.GetMapResponse) + return target; +} + +size_t GetMapResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.slam.v1.GetMapResponse) + 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 mime_type = 3 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); + } + + switch (map_case()) { + // .viam.common.v1.PointCloudObject point_cloud = 1 [json_name = "pointCloud"]; + case kPointCloud: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.map_.point_cloud_); + break; + } + // bytes image = 2 [json_name = "image"]; + case kImage: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_image()); + break; + } + case MAP_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetMapResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetMapResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetMapResponse::GetClassData() const { return &_class_data_; } + + +void GetMapResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.GetMapResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_mime_type().empty()) { + _this->_internal_set_mime_type(from._internal_mime_type()); + } + switch (from.map_case()) { + case kPointCloud: { + _this->_internal_mutable_point_cloud()->::viam::common::v1::PointCloudObject::MergeFrom( + from._internal_point_cloud()); + break; + } + case kImage: { + _this->_internal_set_image(from._internal_image()); + break; + } + case MAP_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetMapResponse::CopyFrom(const GetMapResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.slam.v1.GetMapResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetMapResponse::IsInitialized() const { + return true; +} + +void GetMapResponse::InternalSwap(GetMapResponse* 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( + &_impl_.mime_type_, lhs_arena, + &other->_impl_.mime_type_, rhs_arena + ); + swap(_impl_.map_, other->_impl_.map_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetMapResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_getter, &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once, + file_level_metadata_service_2fslam_2fv1_2fslam_2eproto[3]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace slam +} // namespace service +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::service::slam::v1::GetPositionRequest* +Arena::CreateMaybeMessage< ::viam::service::slam::v1::GetPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::slam::v1::GetPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::slam::v1::GetPositionResponse* +Arena::CreateMaybeMessage< ::viam::service::slam::v1::GetPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::slam::v1::GetPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::slam::v1::GetMapRequest* +Arena::CreateMaybeMessage< ::viam::service::slam::v1::GetMapRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::slam::v1::GetMapRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::slam::v1::GetMapResponse* +Arena::CreateMaybeMessage< ::viam::service::slam::v1::GetMapResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::slam::v1::GetMapResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/service/slam/v1/slam.pb.h b/src/gen/service/slam/v1/slam.pb.h new file mode 100644 index 000000000..b6f41c03c --- /dev/null +++ b/src/gen/service/slam/v1/slam.pb.h @@ -0,0 +1,1496 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service/slam/v1/slam.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fslam_2fv1_2fslam_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_service_2fslam_2fv1_2fslam_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_service_2fslam_2fv1_2fslam_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_service_2fslam_2fv1_2fslam_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_service_2fslam_2fv1_2fslam_2eproto; +namespace viam { +namespace service { +namespace slam { +namespace v1 { +class GetMapRequest; +struct GetMapRequestDefaultTypeInternal; +extern GetMapRequestDefaultTypeInternal _GetMapRequest_default_instance_; +class GetMapResponse; +struct GetMapResponseDefaultTypeInternal; +extern GetMapResponseDefaultTypeInternal _GetMapResponse_default_instance_; +class GetPositionRequest; +struct GetPositionRequestDefaultTypeInternal; +extern GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; +class GetPositionResponse; +struct GetPositionResponseDefaultTypeInternal; +extern GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; +} // namespace v1 +} // namespace slam +} // namespace service +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::service::slam::v1::GetMapRequest* Arena::CreateMaybeMessage<::viam::service::slam::v1::GetMapRequest>(Arena*); +template<> ::viam::service::slam::v1::GetMapResponse* Arena::CreateMaybeMessage<::viam::service::slam::v1::GetMapResponse>(Arena*); +template<> ::viam::service::slam::v1::GetPositionRequest* Arena::CreateMaybeMessage<::viam::service::slam::v1::GetPositionRequest>(Arena*); +template<> ::viam::service::slam::v1::GetPositionResponse* Arena::CreateMaybeMessage<::viam::service::slam::v1::GetPositionResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace service { +namespace slam { +namespace v1 { + +// =================================================================== + +class GetPositionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.GetPositionRequest) */ { + public: + inline GetPositionRequest() : GetPositionRequest(nullptr) {} + ~GetPositionRequest() override; + explicit PROTOBUF_CONSTEXPR GetPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPositionRequest(const GetPositionRequest& from); + GetPositionRequest(GetPositionRequest&& from) noexcept + : GetPositionRequest() { + *this = ::std::move(from); + } + + inline GetPositionRequest& operator=(const GetPositionRequest& from) { + CopyFrom(from); + return *this; + } + inline GetPositionRequest& operator=(GetPositionRequest&& 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 GetPositionRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetPositionRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPositionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(GetPositionRequest& a, GetPositionRequest& b) { + a.Swap(&b); + } + inline void Swap(GetPositionRequest* 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(GetPositionRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPositionRequest& from) { + GetPositionRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPositionRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.slam.v1.GetPositionRequest"; + } + protected: + explicit GetPositionRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.service.slam.v1.GetPositionRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fslam_2fv1_2fslam_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPositionResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.GetPositionResponse) */ { + public: + inline GetPositionResponse() : GetPositionResponse(nullptr) {} + ~GetPositionResponse() override; + explicit PROTOBUF_CONSTEXPR GetPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPositionResponse(const GetPositionResponse& from); + GetPositionResponse(GetPositionResponse&& from) noexcept + : GetPositionResponse() { + *this = ::std::move(from); + } + + inline GetPositionResponse& operator=(const GetPositionResponse& from) { + CopyFrom(from); + return *this; + } + inline GetPositionResponse& operator=(GetPositionResponse&& 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 GetPositionResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetPositionResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPositionResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(GetPositionResponse& a, GetPositionResponse& b) { + a.Swap(&b); + } + inline void Swap(GetPositionResponse* 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(GetPositionResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetPositionResponse& from) { + GetPositionResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPositionResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.slam.v1.GetPositionResponse"; + } + protected: + explicit GetPositionResponse(::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 { + kPoseFieldNumber = 1, + kExtraFieldNumber = 99, + }; + // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; + bool has_pose() const; + private: + bool _internal_has_pose() const; + public: + void clear_pose(); + const ::viam::common::v1::PoseInFrame& pose() const; + PROTOBUF_NODISCARD ::viam::common::v1::PoseInFrame* release_pose(); + ::viam::common::v1::PoseInFrame* mutable_pose(); + void set_allocated_pose(::viam::common::v1::PoseInFrame* pose); + private: + const ::viam::common::v1::PoseInFrame& _internal_pose() const; + ::viam::common::v1::PoseInFrame* _internal_mutable_pose(); + public: + void unsafe_arena_set_allocated_pose( + ::viam::common::v1::PoseInFrame* pose); + ::viam::common::v1::PoseInFrame* unsafe_arena_release_pose(); + + // .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.slam.v1.GetPositionResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::viam::common::v1::PoseInFrame* pose_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fslam_2fv1_2fslam_2eproto; +}; +// ------------------------------------------------------------------- + +class GetMapRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.GetMapRequest) */ { + public: + inline GetMapRequest() : GetMapRequest(nullptr) {} + ~GetMapRequest() override; + explicit PROTOBUF_CONSTEXPR GetMapRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetMapRequest(const GetMapRequest& from); + GetMapRequest(GetMapRequest&& from) noexcept + : GetMapRequest() { + *this = ::std::move(from); + } + + inline GetMapRequest& operator=(const GetMapRequest& from) { + CopyFrom(from); + return *this; + } + inline GetMapRequest& operator=(GetMapRequest&& 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 GetMapRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetMapRequest* internal_default_instance() { + return reinterpret_cast( + &_GetMapRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(GetMapRequest& a, GetMapRequest& b) { + a.Swap(&b); + } + inline void Swap(GetMapRequest* 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(GetMapRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetMapRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetMapRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetMapRequest& from) { + GetMapRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetMapRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.slam.v1.GetMapRequest"; + } + protected: + explicit GetMapRequest(::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, + kMimeTypeFieldNumber = 2, + kCameraPositionFieldNumber = 3, + kIncludeRobotMarkerFieldNumber = 4, + }; + // 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 mime_type = 2 [json_name = "mimeType"]; + void clear_mime_type(); + const std::string& mime_type() const; + template + void set_mime_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_mime_type(); + PROTOBUF_NODISCARD std::string* release_mime_type(); + void set_allocated_mime_type(std::string* mime_type); + private: + const std::string& _internal_mime_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); + std::string* _internal_mutable_mime_type(); + public: + + // optional .viam.common.v1.Pose camera_position = 3 [json_name = "cameraPosition"]; + bool has_camera_position() const; + private: + bool _internal_has_camera_position() const; + public: + void clear_camera_position(); + const ::viam::common::v1::Pose& camera_position() const; + PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_camera_position(); + ::viam::common::v1::Pose* mutable_camera_position(); + void set_allocated_camera_position(::viam::common::v1::Pose* camera_position); + private: + const ::viam::common::v1::Pose& _internal_camera_position() const; + ::viam::common::v1::Pose* _internal_mutable_camera_position(); + public: + void unsafe_arena_set_allocated_camera_position( + ::viam::common::v1::Pose* camera_position); + ::viam::common::v1::Pose* unsafe_arena_release_camera_position(); + + // bool include_robot_marker = 4 [json_name = "includeRobotMarker"]; + void clear_include_robot_marker(); + bool include_robot_marker() const; + void set_include_robot_marker(bool value); + private: + bool _internal_include_robot_marker() const; + void _internal_set_include_robot_marker(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.slam.v1.GetMapRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + ::viam::common::v1::Pose* camera_position_; + bool include_robot_marker_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fslam_2fv1_2fslam_2eproto; +}; +// ------------------------------------------------------------------- + +class GetMapResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.GetMapResponse) */ { + public: + inline GetMapResponse() : GetMapResponse(nullptr) {} + ~GetMapResponse() override; + explicit PROTOBUF_CONSTEXPR GetMapResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetMapResponse(const GetMapResponse& from); + GetMapResponse(GetMapResponse&& from) noexcept + : GetMapResponse() { + *this = ::std::move(from); + } + + inline GetMapResponse& operator=(const GetMapResponse& from) { + CopyFrom(from); + return *this; + } + inline GetMapResponse& operator=(GetMapResponse&& 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 GetMapResponse& default_instance() { + return *internal_default_instance(); + } + enum MapCase { + kPointCloud = 1, + kImage = 2, + MAP_NOT_SET = 0, + }; + + static inline const GetMapResponse* internal_default_instance() { + return reinterpret_cast( + &_GetMapResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(GetMapResponse& a, GetMapResponse& b) { + a.Swap(&b); + } + inline void Swap(GetMapResponse* 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(GetMapResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetMapResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetMapResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetMapResponse& from) { + GetMapResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetMapResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.slam.v1.GetMapResponse"; + } + protected: + explicit GetMapResponse(::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 { + kMimeTypeFieldNumber = 3, + kPointCloudFieldNumber = 1, + kImageFieldNumber = 2, + }; + // string mime_type = 3 [json_name = "mimeType"]; + void clear_mime_type(); + const std::string& mime_type() const; + template + void set_mime_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_mime_type(); + PROTOBUF_NODISCARD std::string* release_mime_type(); + void set_allocated_mime_type(std::string* mime_type); + private: + const std::string& _internal_mime_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); + std::string* _internal_mutable_mime_type(); + public: + + // .viam.common.v1.PointCloudObject point_cloud = 1 [json_name = "pointCloud"]; + bool has_point_cloud() const; + private: + bool _internal_has_point_cloud() const; + public: + void clear_point_cloud(); + const ::viam::common::v1::PointCloudObject& point_cloud() const; + PROTOBUF_NODISCARD ::viam::common::v1::PointCloudObject* release_point_cloud(); + ::viam::common::v1::PointCloudObject* mutable_point_cloud(); + void set_allocated_point_cloud(::viam::common::v1::PointCloudObject* point_cloud); + private: + const ::viam::common::v1::PointCloudObject& _internal_point_cloud() const; + ::viam::common::v1::PointCloudObject* _internal_mutable_point_cloud(); + public: + void unsafe_arena_set_allocated_point_cloud( + ::viam::common::v1::PointCloudObject* point_cloud); + ::viam::common::v1::PointCloudObject* unsafe_arena_release_point_cloud(); + + // bytes image = 2 [json_name = "image"]; + bool has_image() const; + private: + bool _internal_has_image() const; + public: + void clear_image(); + const std::string& image() const; + template + void set_image(ArgT0&& arg0, ArgT... args); + std::string* mutable_image(); + PROTOBUF_NODISCARD std::string* release_image(); + void set_allocated_image(std::string* image); + private: + const std::string& _internal_image() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_image(const std::string& value); + std::string* _internal_mutable_image(); + public: + + void clear_map(); + MapCase map_case() const; + // @@protoc_insertion_point(class_scope:viam.service.slam.v1.GetMapResponse) + private: + class _Internal; + void set_has_point_cloud(); + void set_has_image(); + + inline bool has_map() const; + inline void clear_has_map(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + union MapUnion { + constexpr MapUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::viam::common::v1::PointCloudObject* point_cloud_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr image_; + } map_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fslam_2fv1_2fslam_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// GetPositionRequest + +// string name = 1 [json_name = "name"]; +inline void GetPositionRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetPositionRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetPositionRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.slam.v1.GetPositionRequest.name) +} +inline std::string* GetPositionRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.GetPositionRequest.name) + return _s; +} +inline const std::string& GetPositionRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetPositionRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetPositionRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetPositionRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.slam.v1.GetPositionRequest.name) + return _impl_.name_.Release(); +} +inline void GetPositionRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.slam.v1.GetPositionRequest.name) +} + +// ------------------------------------------------------------------- + +// GetPositionResponse + +// .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; +inline bool GetPositionResponse::_internal_has_pose() const { + return this != internal_default_instance() && _impl_.pose_ != nullptr; +} +inline bool GetPositionResponse::has_pose() const { + return _internal_has_pose(); +} +inline const ::viam::common::v1::PoseInFrame& GetPositionResponse::_internal_pose() const { + const ::viam::common::v1::PoseInFrame* p = _impl_.pose_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_PoseInFrame_default_instance_); +} +inline const ::viam::common::v1::PoseInFrame& GetPositionResponse::pose() const { + // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetPositionResponse.pose) + return _internal_pose(); +} +inline void GetPositionResponse::unsafe_arena_set_allocated_pose( + ::viam::common::v1::PoseInFrame* pose) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pose_); + } + _impl_.pose_ = pose; + if (pose) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.slam.v1.GetPositionResponse.pose) +} +inline ::viam::common::v1::PoseInFrame* GetPositionResponse::release_pose() { + + ::viam::common::v1::PoseInFrame* temp = _impl_.pose_; + _impl_.pose_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::PoseInFrame* GetPositionResponse::unsafe_arena_release_pose() { + // @@protoc_insertion_point(field_release:viam.service.slam.v1.GetPositionResponse.pose) + + ::viam::common::v1::PoseInFrame* temp = _impl_.pose_; + _impl_.pose_ = nullptr; + return temp; +} +inline ::viam::common::v1::PoseInFrame* GetPositionResponse::_internal_mutable_pose() { + + if (_impl_.pose_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::PoseInFrame>(GetArenaForAllocation()); + _impl_.pose_ = p; + } + return _impl_.pose_; +} +inline ::viam::common::v1::PoseInFrame* GetPositionResponse::mutable_pose() { + ::viam::common::v1::PoseInFrame* _msg = _internal_mutable_pose(); + // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.GetPositionResponse.pose) + return _msg; +} +inline void GetPositionResponse::set_allocated_pose(::viam::common::v1::PoseInFrame* pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pose_); + } + if (pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose)); + if (message_arena != submessage_arena) { + pose = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, pose, submessage_arena); + } + + } else { + + } + _impl_.pose_ = pose; + // @@protoc_insertion_point(field_set_allocated:viam.service.slam.v1.GetPositionResponse.pose) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPositionResponse::_internal_has_extra() const { + return this != internal_default_instance() && _impl_.extra_ != nullptr; +} +inline bool GetPositionResponse::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPositionResponse::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPositionResponse::extra() const { + // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetPositionResponse.extra) + return _internal_extra(); +} +inline void GetPositionResponse::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.slam.v1.GetPositionResponse.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionResponse::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.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* GetPositionResponse::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.service.slam.v1.GetPositionResponse.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionResponse::_internal_mutable_extra() { + + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.extra_ = p; + } + return _impl_.extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionResponse::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.GetPositionResponse.extra) + return _msg; +} +inline void GetPositionResponse::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*>(_impl_.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 { + + } + _impl_.extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.service.slam.v1.GetPositionResponse.extra) +} + +// ------------------------------------------------------------------- + +// GetMapRequest + +// string name = 1 [json_name = "name"]; +inline void GetMapRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetMapRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetMapRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetMapRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.slam.v1.GetMapRequest.name) +} +inline std::string* GetMapRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.GetMapRequest.name) + return _s; +} +inline const std::string& GetMapRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetMapRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetMapRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetMapRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.slam.v1.GetMapRequest.name) + return _impl_.name_.Release(); +} +inline void GetMapRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.slam.v1.GetMapRequest.name) +} + +// string mime_type = 2 [json_name = "mimeType"]; +inline void GetMapRequest::clear_mime_type() { + _impl_.mime_type_.ClearToEmpty(); +} +inline const std::string& GetMapRequest::mime_type() const { + // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetMapRequest.mime_type) + return _internal_mime_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetMapRequest::set_mime_type(ArgT0&& arg0, ArgT... args) { + + _impl_.mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.slam.v1.GetMapRequest.mime_type) +} +inline std::string* GetMapRequest::mutable_mime_type() { + std::string* _s = _internal_mutable_mime_type(); + // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.GetMapRequest.mime_type) + return _s; +} +inline const std::string& GetMapRequest::_internal_mime_type() const { + return _impl_.mime_type_.Get(); +} +inline void GetMapRequest::_internal_set_mime_type(const std::string& value) { + + _impl_.mime_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetMapRequest::_internal_mutable_mime_type() { + + return _impl_.mime_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetMapRequest::release_mime_type() { + // @@protoc_insertion_point(field_release:viam.service.slam.v1.GetMapRequest.mime_type) + return _impl_.mime_type_.Release(); +} +inline void GetMapRequest::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + _impl_.mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.mime_type_.IsDefault()) { + _impl_.mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.slam.v1.GetMapRequest.mime_type) +} + +// optional .viam.common.v1.Pose camera_position = 3 [json_name = "cameraPosition"]; +inline bool GetMapRequest::_internal_has_camera_position() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.camera_position_ != nullptr); + return value; +} +inline bool GetMapRequest::has_camera_position() const { + return _internal_has_camera_position(); +} +inline const ::viam::common::v1::Pose& GetMapRequest::_internal_camera_position() const { + const ::viam::common::v1::Pose* p = _impl_.camera_position_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Pose_default_instance_); +} +inline const ::viam::common::v1::Pose& GetMapRequest::camera_position() const { + // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetMapRequest.camera_position) + return _internal_camera_position(); +} +inline void GetMapRequest::unsafe_arena_set_allocated_camera_position( + ::viam::common::v1::Pose* camera_position) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.camera_position_); + } + _impl_.camera_position_ = camera_position; + if (camera_position) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.slam.v1.GetMapRequest.camera_position) +} +inline ::viam::common::v1::Pose* GetMapRequest::release_camera_position() { + _impl_._has_bits_[0] &= ~0x00000001u; + ::viam::common::v1::Pose* temp = _impl_.camera_position_; + _impl_.camera_position_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::Pose* GetMapRequest::unsafe_arena_release_camera_position() { + // @@protoc_insertion_point(field_release:viam.service.slam.v1.GetMapRequest.camera_position) + _impl_._has_bits_[0] &= ~0x00000001u; + ::viam::common::v1::Pose* temp = _impl_.camera_position_; + _impl_.camera_position_ = nullptr; + return temp; +} +inline ::viam::common::v1::Pose* GetMapRequest::_internal_mutable_camera_position() { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.camera_position_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArenaForAllocation()); + _impl_.camera_position_ = p; + } + return _impl_.camera_position_; +} +inline ::viam::common::v1::Pose* GetMapRequest::mutable_camera_position() { + ::viam::common::v1::Pose* _msg = _internal_mutable_camera_position(); + // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.GetMapRequest.camera_position) + return _msg; +} +inline void GetMapRequest::set_allocated_camera_position(::viam::common::v1::Pose* camera_position) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.camera_position_); + } + if (camera_position) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(camera_position)); + if (message_arena != submessage_arena) { + camera_position = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, camera_position, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.camera_position_ = camera_position; + // @@protoc_insertion_point(field_set_allocated:viam.service.slam.v1.GetMapRequest.camera_position) +} + +// bool include_robot_marker = 4 [json_name = "includeRobotMarker"]; +inline void GetMapRequest::clear_include_robot_marker() { + _impl_.include_robot_marker_ = false; +} +inline bool GetMapRequest::_internal_include_robot_marker() const { + return _impl_.include_robot_marker_; +} +inline bool GetMapRequest::include_robot_marker() const { + // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetMapRequest.include_robot_marker) + return _internal_include_robot_marker(); +} +inline void GetMapRequest::_internal_set_include_robot_marker(bool value) { + + _impl_.include_robot_marker_ = value; +} +inline void GetMapRequest::set_include_robot_marker(bool value) { + _internal_set_include_robot_marker(value); + // @@protoc_insertion_point(field_set:viam.service.slam.v1.GetMapRequest.include_robot_marker) +} + +// ------------------------------------------------------------------- + +// GetMapResponse + +// .viam.common.v1.PointCloudObject point_cloud = 1 [json_name = "pointCloud"]; +inline bool GetMapResponse::_internal_has_point_cloud() const { + return map_case() == kPointCloud; +} +inline bool GetMapResponse::has_point_cloud() const { + return _internal_has_point_cloud(); +} +inline void GetMapResponse::set_has_point_cloud() { + _impl_._oneof_case_[0] = kPointCloud; +} +inline ::viam::common::v1::PointCloudObject* GetMapResponse::release_point_cloud() { + // @@protoc_insertion_point(field_release:viam.service.slam.v1.GetMapResponse.point_cloud) + if (_internal_has_point_cloud()) { + clear_has_map(); + ::viam::common::v1::PointCloudObject* temp = _impl_.map_.point_cloud_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.map_.point_cloud_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::common::v1::PointCloudObject& GetMapResponse::_internal_point_cloud() const { + return _internal_has_point_cloud() + ? *_impl_.map_.point_cloud_ + : reinterpret_cast< ::viam::common::v1::PointCloudObject&>(::viam::common::v1::_PointCloudObject_default_instance_); +} +inline const ::viam::common::v1::PointCloudObject& GetMapResponse::point_cloud() const { + // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetMapResponse.point_cloud) + return _internal_point_cloud(); +} +inline ::viam::common::v1::PointCloudObject* GetMapResponse::unsafe_arena_release_point_cloud() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.service.slam.v1.GetMapResponse.point_cloud) + if (_internal_has_point_cloud()) { + clear_has_map(); + ::viam::common::v1::PointCloudObject* temp = _impl_.map_.point_cloud_; + _impl_.map_.point_cloud_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void GetMapResponse::unsafe_arena_set_allocated_point_cloud(::viam::common::v1::PointCloudObject* point_cloud) { + clear_map(); + if (point_cloud) { + set_has_point_cloud(); + _impl_.map_.point_cloud_ = point_cloud; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.slam.v1.GetMapResponse.point_cloud) +} +inline ::viam::common::v1::PointCloudObject* GetMapResponse::_internal_mutable_point_cloud() { + if (!_internal_has_point_cloud()) { + clear_map(); + set_has_point_cloud(); + _impl_.map_.point_cloud_ = CreateMaybeMessage< ::viam::common::v1::PointCloudObject >(GetArenaForAllocation()); + } + return _impl_.map_.point_cloud_; +} +inline ::viam::common::v1::PointCloudObject* GetMapResponse::mutable_point_cloud() { + ::viam::common::v1::PointCloudObject* _msg = _internal_mutable_point_cloud(); + // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.GetMapResponse.point_cloud) + return _msg; +} + +// bytes image = 2 [json_name = "image"]; +inline bool GetMapResponse::_internal_has_image() const { + return map_case() == kImage; +} +inline bool GetMapResponse::has_image() const { + return _internal_has_image(); +} +inline void GetMapResponse::set_has_image() { + _impl_._oneof_case_[0] = kImage; +} +inline void GetMapResponse::clear_image() { + if (_internal_has_image()) { + _impl_.map_.image_.Destroy(); + clear_has_map(); + } +} +inline const std::string& GetMapResponse::image() const { + // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetMapResponse.image) + return _internal_image(); +} +template +inline void GetMapResponse::set_image(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_image()) { + clear_map(); + set_has_image(); + _impl_.map_.image_.InitDefault(); + } + _impl_.map_.image_.SetBytes( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.slam.v1.GetMapResponse.image) +} +inline std::string* GetMapResponse::mutable_image() { + std::string* _s = _internal_mutable_image(); + // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.GetMapResponse.image) + return _s; +} +inline const std::string& GetMapResponse::_internal_image() const { + if (_internal_has_image()) { + return _impl_.map_.image_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void GetMapResponse::_internal_set_image(const std::string& value) { + if (!_internal_has_image()) { + clear_map(); + set_has_image(); + _impl_.map_.image_.InitDefault(); + } + _impl_.map_.image_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetMapResponse::_internal_mutable_image() { + if (!_internal_has_image()) { + clear_map(); + set_has_image(); + _impl_.map_.image_.InitDefault(); + } + return _impl_.map_.image_.Mutable( GetArenaForAllocation()); +} +inline std::string* GetMapResponse::release_image() { + // @@protoc_insertion_point(field_release:viam.service.slam.v1.GetMapResponse.image) + if (_internal_has_image()) { + clear_has_map(); + return _impl_.map_.image_.Release(); + } else { + return nullptr; + } +} +inline void GetMapResponse::set_allocated_image(std::string* image) { + if (has_map()) { + clear_map(); + } + if (image != nullptr) { + set_has_image(); + _impl_.map_.image_.InitAllocated(image, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:viam.service.slam.v1.GetMapResponse.image) +} + +// string mime_type = 3 [json_name = "mimeType"]; +inline void GetMapResponse::clear_mime_type() { + _impl_.mime_type_.ClearToEmpty(); +} +inline const std::string& GetMapResponse::mime_type() const { + // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetMapResponse.mime_type) + return _internal_mime_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetMapResponse::set_mime_type(ArgT0&& arg0, ArgT... args) { + + _impl_.mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.slam.v1.GetMapResponse.mime_type) +} +inline std::string* GetMapResponse::mutable_mime_type() { + std::string* _s = _internal_mutable_mime_type(); + // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.GetMapResponse.mime_type) + return _s; +} +inline const std::string& GetMapResponse::_internal_mime_type() const { + return _impl_.mime_type_.Get(); +} +inline void GetMapResponse::_internal_set_mime_type(const std::string& value) { + + _impl_.mime_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetMapResponse::_internal_mutable_mime_type() { + + return _impl_.mime_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetMapResponse::release_mime_type() { + // @@protoc_insertion_point(field_release:viam.service.slam.v1.GetMapResponse.mime_type) + return _impl_.mime_type_.Release(); +} +inline void GetMapResponse::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + _impl_.mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.mime_type_.IsDefault()) { + _impl_.mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.slam.v1.GetMapResponse.mime_type) +} + +inline bool GetMapResponse::has_map() const { + return map_case() != MAP_NOT_SET; +} +inline void GetMapResponse::clear_has_map() { + _impl_._oneof_case_[0] = MAP_NOT_SET; +} +inline GetMapResponse::MapCase GetMapResponse::map_case() const { + return GetMapResponse::MapCase(_impl_._oneof_case_[0]); +} +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace slam +} // namespace service +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_service_2fslam_2fv1_2fslam_2eproto diff --git a/src/gen/service/vision/v1/vision.grpc.pb.cc b/src/gen/service/vision/v1/vision.grpc.pb.cc new file mode 100644 index 000000000..26f438fd7 --- /dev/null +++ b/src/gen/service/vision/v1/vision.grpc.pb.cc @@ -0,0 +1,680 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: service/vision/v1/vision.proto + +#include "service/vision/v1/vision.pb.h" +#include "service/vision/v1/vision.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace service { +namespace vision { +namespace v1 { + +static const char* VisionService_method_names[] = { + "/viam.service.vision.v1.VisionService/GetModelParameterSchema", + "/viam.service.vision.v1.VisionService/GetDetectorNames", + "/viam.service.vision.v1.VisionService/AddDetector", + "/viam.service.vision.v1.VisionService/RemoveDetector", + "/viam.service.vision.v1.VisionService/GetDetectionsFromCamera", + "/viam.service.vision.v1.VisionService/GetDetections", + "/viam.service.vision.v1.VisionService/GetClassifierNames", + "/viam.service.vision.v1.VisionService/AddClassifier", + "/viam.service.vision.v1.VisionService/RemoveClassifier", + "/viam.service.vision.v1.VisionService/GetClassificationsFromCamera", + "/viam.service.vision.v1.VisionService/GetClassifications", + "/viam.service.vision.v1.VisionService/GetSegmenterNames", + "/viam.service.vision.v1.VisionService/AddSegmenter", + "/viam.service.vision.v1.VisionService/RemoveSegmenter", + "/viam.service.vision.v1.VisionService/GetObjectPointClouds", +}; + +std::unique_ptr< VisionService::Stub> VisionService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< VisionService::Stub> stub(new VisionService::Stub(channel, options)); + return stub; +} + +VisionService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_GetModelParameterSchema_(VisionService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetDetectorNames_(VisionService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_AddDetector_(VisionService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RemoveDetector_(VisionService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetDetectionsFromCamera_(VisionService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetDetections_(VisionService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetClassifierNames_(VisionService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_AddClassifier_(VisionService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RemoveClassifier_(VisionService_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetClassificationsFromCamera_(VisionService_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetClassifications_(VisionService_method_names[10], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetSegmenterNames_(VisionService_method_names[11], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_AddSegmenter_(VisionService_method_names[12], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RemoveSegmenter_(VisionService_method_names[13], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetObjectPointClouds_(VisionService_method_names[14], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status VisionService::Stub::GetModelParameterSchema(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest& request, ::viam::service::vision::v1::GetModelParameterSchemaResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::GetModelParameterSchemaRequest, ::viam::service::vision::v1::GetModelParameterSchemaResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetModelParameterSchema_, context, request, response); +} + +void VisionService::Stub::async::GetModelParameterSchema(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest* request, ::viam::service::vision::v1::GetModelParameterSchemaResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::GetModelParameterSchemaRequest, ::viam::service::vision::v1::GetModelParameterSchemaResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetModelParameterSchema_, context, request, response, std::move(f)); +} + +void VisionService::Stub::async::GetModelParameterSchema(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest* request, ::viam::service::vision::v1::GetModelParameterSchemaResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetModelParameterSchema_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetModelParameterSchemaResponse>* VisionService::Stub::PrepareAsyncGetModelParameterSchemaRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::GetModelParameterSchemaResponse, ::viam::service::vision::v1::GetModelParameterSchemaRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetModelParameterSchema_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetModelParameterSchemaResponse>* VisionService::Stub::AsyncGetModelParameterSchemaRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetModelParameterSchemaRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status VisionService::Stub::GetDetectorNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest& request, ::viam::service::vision::v1::GetDetectorNamesResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::GetDetectorNamesRequest, ::viam::service::vision::v1::GetDetectorNamesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetDetectorNames_, context, request, response); +} + +void VisionService::Stub::async::GetDetectorNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest* request, ::viam::service::vision::v1::GetDetectorNamesResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::GetDetectorNamesRequest, ::viam::service::vision::v1::GetDetectorNamesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetDetectorNames_, context, request, response, std::move(f)); +} + +void VisionService::Stub::async::GetDetectorNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest* request, ::viam::service::vision::v1::GetDetectorNamesResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetDetectorNames_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectorNamesResponse>* VisionService::Stub::PrepareAsyncGetDetectorNamesRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::GetDetectorNamesResponse, ::viam::service::vision::v1::GetDetectorNamesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetDetectorNames_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectorNamesResponse>* VisionService::Stub::AsyncGetDetectorNamesRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetDetectorNamesRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status VisionService::Stub::AddDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddDetectorRequest& request, ::viam::service::vision::v1::AddDetectorResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::AddDetectorRequest, ::viam::service::vision::v1::AddDetectorResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_AddDetector_, context, request, response); +} + +void VisionService::Stub::async::AddDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddDetectorRequest* request, ::viam::service::vision::v1::AddDetectorResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::AddDetectorRequest, ::viam::service::vision::v1::AddDetectorResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AddDetector_, context, request, response, std::move(f)); +} + +void VisionService::Stub::async::AddDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddDetectorRequest* request, ::viam::service::vision::v1::AddDetectorResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AddDetector_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddDetectorResponse>* VisionService::Stub::PrepareAsyncAddDetectorRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddDetectorRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::AddDetectorResponse, ::viam::service::vision::v1::AddDetectorRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_AddDetector_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddDetectorResponse>* VisionService::Stub::AsyncAddDetectorRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddDetectorRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncAddDetectorRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status VisionService::Stub::RemoveDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest& request, ::viam::service::vision::v1::RemoveDetectorResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::RemoveDetectorRequest, ::viam::service::vision::v1::RemoveDetectorResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RemoveDetector_, context, request, response); +} + +void VisionService::Stub::async::RemoveDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest* request, ::viam::service::vision::v1::RemoveDetectorResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::RemoveDetectorRequest, ::viam::service::vision::v1::RemoveDetectorResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RemoveDetector_, context, request, response, std::move(f)); +} + +void VisionService::Stub::async::RemoveDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest* request, ::viam::service::vision::v1::RemoveDetectorResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RemoveDetector_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveDetectorResponse>* VisionService::Stub::PrepareAsyncRemoveDetectorRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::RemoveDetectorResponse, ::viam::service::vision::v1::RemoveDetectorRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_RemoveDetector_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveDetectorResponse>* VisionService::Stub::AsyncRemoveDetectorRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncRemoveDetectorRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status VisionService::Stub::GetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::viam::service::vision::v1::GetDetectionsFromCameraResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetDetectionsFromCamera_, context, request, response); +} + +void VisionService::Stub::async::GetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::viam::service::vision::v1::GetDetectionsFromCameraResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetDetectionsFromCamera_, context, request, response, std::move(f)); +} + +void VisionService::Stub::async::GetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetDetectionsFromCamera_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>* VisionService::Stub::PrepareAsyncGetDetectionsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::GetDetectionsFromCameraResponse, ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetDetectionsFromCamera_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>* VisionService::Stub::AsyncGetDetectionsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetDetectionsFromCameraRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status VisionService::Stub::GetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest& request, ::viam::service::vision::v1::GetDetectionsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::GetDetectionsRequest, ::viam::service::vision::v1::GetDetectionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetDetections_, context, request, response); +} + +void VisionService::Stub::async::GetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest* request, ::viam::service::vision::v1::GetDetectionsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::GetDetectionsRequest, ::viam::service::vision::v1::GetDetectionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetDetections_, context, request, response, std::move(f)); +} + +void VisionService::Stub::async::GetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest* request, ::viam::service::vision::v1::GetDetectionsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetDetections_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsResponse>* VisionService::Stub::PrepareAsyncGetDetectionsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::GetDetectionsResponse, ::viam::service::vision::v1::GetDetectionsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetDetections_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsResponse>* VisionService::Stub::AsyncGetDetectionsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetDetectionsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status VisionService::Stub::GetClassifierNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest& request, ::viam::service::vision::v1::GetClassifierNamesResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::GetClassifierNamesRequest, ::viam::service::vision::v1::GetClassifierNamesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetClassifierNames_, context, request, response); +} + +void VisionService::Stub::async::GetClassifierNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest* request, ::viam::service::vision::v1::GetClassifierNamesResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::GetClassifierNamesRequest, ::viam::service::vision::v1::GetClassifierNamesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetClassifierNames_, context, request, response, std::move(f)); +} + +void VisionService::Stub::async::GetClassifierNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest* request, ::viam::service::vision::v1::GetClassifierNamesResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetClassifierNames_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassifierNamesResponse>* VisionService::Stub::PrepareAsyncGetClassifierNamesRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::GetClassifierNamesResponse, ::viam::service::vision::v1::GetClassifierNamesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetClassifierNames_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassifierNamesResponse>* VisionService::Stub::AsyncGetClassifierNamesRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetClassifierNamesRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status VisionService::Stub::AddClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddClassifierRequest& request, ::viam::service::vision::v1::AddClassifierResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::AddClassifierRequest, ::viam::service::vision::v1::AddClassifierResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_AddClassifier_, context, request, response); +} + +void VisionService::Stub::async::AddClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddClassifierRequest* request, ::viam::service::vision::v1::AddClassifierResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::AddClassifierRequest, ::viam::service::vision::v1::AddClassifierResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AddClassifier_, context, request, response, std::move(f)); +} + +void VisionService::Stub::async::AddClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddClassifierRequest* request, ::viam::service::vision::v1::AddClassifierResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AddClassifier_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddClassifierResponse>* VisionService::Stub::PrepareAsyncAddClassifierRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddClassifierRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::AddClassifierResponse, ::viam::service::vision::v1::AddClassifierRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_AddClassifier_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddClassifierResponse>* VisionService::Stub::AsyncAddClassifierRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddClassifierRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncAddClassifierRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status VisionService::Stub::RemoveClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest& request, ::viam::service::vision::v1::RemoveClassifierResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::RemoveClassifierRequest, ::viam::service::vision::v1::RemoveClassifierResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RemoveClassifier_, context, request, response); +} + +void VisionService::Stub::async::RemoveClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest* request, ::viam::service::vision::v1::RemoveClassifierResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::RemoveClassifierRequest, ::viam::service::vision::v1::RemoveClassifierResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RemoveClassifier_, context, request, response, std::move(f)); +} + +void VisionService::Stub::async::RemoveClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest* request, ::viam::service::vision::v1::RemoveClassifierResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RemoveClassifier_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveClassifierResponse>* VisionService::Stub::PrepareAsyncRemoveClassifierRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::RemoveClassifierResponse, ::viam::service::vision::v1::RemoveClassifierRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_RemoveClassifier_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveClassifierResponse>* VisionService::Stub::AsyncRemoveClassifierRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncRemoveClassifierRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status VisionService::Stub::GetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest& request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::viam::service::vision::v1::GetClassificationsFromCameraResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetClassificationsFromCamera_, context, request, response); +} + +void VisionService::Stub::async::GetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::viam::service::vision::v1::GetClassificationsFromCameraResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetClassificationsFromCamera_, context, request, response, std::move(f)); +} + +void VisionService::Stub::async::GetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetClassificationsFromCamera_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsFromCameraResponse>* VisionService::Stub::PrepareAsyncGetClassificationsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::GetClassificationsFromCameraResponse, ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetClassificationsFromCamera_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsFromCameraResponse>* VisionService::Stub::AsyncGetClassificationsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetClassificationsFromCameraRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status VisionService::Stub::GetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest& request, ::viam::service::vision::v1::GetClassificationsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::GetClassificationsRequest, ::viam::service::vision::v1::GetClassificationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetClassifications_, context, request, response); +} + +void VisionService::Stub::async::GetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest* request, ::viam::service::vision::v1::GetClassificationsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::GetClassificationsRequest, ::viam::service::vision::v1::GetClassificationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetClassifications_, context, request, response, std::move(f)); +} + +void VisionService::Stub::async::GetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest* request, ::viam::service::vision::v1::GetClassificationsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetClassifications_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsResponse>* VisionService::Stub::PrepareAsyncGetClassificationsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::GetClassificationsResponse, ::viam::service::vision::v1::GetClassificationsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetClassifications_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsResponse>* VisionService::Stub::AsyncGetClassificationsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetClassificationsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status VisionService::Stub::GetSegmenterNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest& request, ::viam::service::vision::v1::GetSegmenterNamesResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::GetSegmenterNamesRequest, ::viam::service::vision::v1::GetSegmenterNamesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetSegmenterNames_, context, request, response); +} + +void VisionService::Stub::async::GetSegmenterNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest* request, ::viam::service::vision::v1::GetSegmenterNamesResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::GetSegmenterNamesRequest, ::viam::service::vision::v1::GetSegmenterNamesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetSegmenterNames_, context, request, response, std::move(f)); +} + +void VisionService::Stub::async::GetSegmenterNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest* request, ::viam::service::vision::v1::GetSegmenterNamesResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetSegmenterNames_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetSegmenterNamesResponse>* VisionService::Stub::PrepareAsyncGetSegmenterNamesRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::GetSegmenterNamesResponse, ::viam::service::vision::v1::GetSegmenterNamesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetSegmenterNames_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetSegmenterNamesResponse>* VisionService::Stub::AsyncGetSegmenterNamesRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetSegmenterNamesRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status VisionService::Stub::AddSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddSegmenterRequest& request, ::viam::service::vision::v1::AddSegmenterResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::AddSegmenterRequest, ::viam::service::vision::v1::AddSegmenterResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_AddSegmenter_, context, request, response); +} + +void VisionService::Stub::async::AddSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddSegmenterRequest* request, ::viam::service::vision::v1::AddSegmenterResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::AddSegmenterRequest, ::viam::service::vision::v1::AddSegmenterResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AddSegmenter_, context, request, response, std::move(f)); +} + +void VisionService::Stub::async::AddSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddSegmenterRequest* request, ::viam::service::vision::v1::AddSegmenterResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AddSegmenter_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddSegmenterResponse>* VisionService::Stub::PrepareAsyncAddSegmenterRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddSegmenterRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::AddSegmenterResponse, ::viam::service::vision::v1::AddSegmenterRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_AddSegmenter_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddSegmenterResponse>* VisionService::Stub::AsyncAddSegmenterRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddSegmenterRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncAddSegmenterRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status VisionService::Stub::RemoveSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest& request, ::viam::service::vision::v1::RemoveSegmenterResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::RemoveSegmenterRequest, ::viam::service::vision::v1::RemoveSegmenterResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RemoveSegmenter_, context, request, response); +} + +void VisionService::Stub::async::RemoveSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest* request, ::viam::service::vision::v1::RemoveSegmenterResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::RemoveSegmenterRequest, ::viam::service::vision::v1::RemoveSegmenterResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RemoveSegmenter_, context, request, response, std::move(f)); +} + +void VisionService::Stub::async::RemoveSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest* request, ::viam::service::vision::v1::RemoveSegmenterResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RemoveSegmenter_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveSegmenterResponse>* VisionService::Stub::PrepareAsyncRemoveSegmenterRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::RemoveSegmenterResponse, ::viam::service::vision::v1::RemoveSegmenterRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_RemoveSegmenter_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveSegmenterResponse>* VisionService::Stub::AsyncRemoveSegmenterRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncRemoveSegmenterRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status VisionService::Stub::GetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest& request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::viam::service::vision::v1::GetObjectPointCloudsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetObjectPointClouds_, context, request, response); +} + +void VisionService::Stub::async::GetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::viam::service::vision::v1::GetObjectPointCloudsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetObjectPointClouds_, context, request, response, std::move(f)); +} + +void VisionService::Stub::async::GetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetObjectPointClouds_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetObjectPointCloudsResponse>* VisionService::Stub::PrepareAsyncGetObjectPointCloudsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::GetObjectPointCloudsResponse, ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetObjectPointClouds_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetObjectPointCloudsResponse>* VisionService::Stub::AsyncGetObjectPointCloudsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetObjectPointCloudsRaw(context, request, cq); + result->StartCall(); + return result; +} + +VisionService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + VisionService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::GetModelParameterSchemaRequest, ::viam::service::vision::v1::GetModelParameterSchemaResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](VisionService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::vision::v1::GetModelParameterSchemaRequest* req, + ::viam::service::vision::v1::GetModelParameterSchemaResponse* resp) { + return service->GetModelParameterSchema(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + VisionService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::GetDetectorNamesRequest, ::viam::service::vision::v1::GetDetectorNamesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](VisionService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::vision::v1::GetDetectorNamesRequest* req, + ::viam::service::vision::v1::GetDetectorNamesResponse* resp) { + return service->GetDetectorNames(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + VisionService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::AddDetectorRequest, ::viam::service::vision::v1::AddDetectorResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](VisionService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::vision::v1::AddDetectorRequest* req, + ::viam::service::vision::v1::AddDetectorResponse* resp) { + return service->AddDetector(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + VisionService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::RemoveDetectorRequest, ::viam::service::vision::v1::RemoveDetectorResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](VisionService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::vision::v1::RemoveDetectorRequest* req, + ::viam::service::vision::v1::RemoveDetectorResponse* resp) { + return service->RemoveDetector(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + VisionService_method_names[4], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::viam::service::vision::v1::GetDetectionsFromCameraResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](VisionService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* req, + ::viam::service::vision::v1::GetDetectionsFromCameraResponse* resp) { + return service->GetDetectionsFromCamera(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + VisionService_method_names[5], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::GetDetectionsRequest, ::viam::service::vision::v1::GetDetectionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](VisionService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::vision::v1::GetDetectionsRequest* req, + ::viam::service::vision::v1::GetDetectionsResponse* resp) { + return service->GetDetections(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + VisionService_method_names[6], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::GetClassifierNamesRequest, ::viam::service::vision::v1::GetClassifierNamesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](VisionService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::vision::v1::GetClassifierNamesRequest* req, + ::viam::service::vision::v1::GetClassifierNamesResponse* resp) { + return service->GetClassifierNames(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + VisionService_method_names[7], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::AddClassifierRequest, ::viam::service::vision::v1::AddClassifierResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](VisionService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::vision::v1::AddClassifierRequest* req, + ::viam::service::vision::v1::AddClassifierResponse* resp) { + return service->AddClassifier(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + VisionService_method_names[8], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::RemoveClassifierRequest, ::viam::service::vision::v1::RemoveClassifierResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](VisionService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::vision::v1::RemoveClassifierRequest* req, + ::viam::service::vision::v1::RemoveClassifierResponse* resp) { + return service->RemoveClassifier(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + VisionService_method_names[9], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::viam::service::vision::v1::GetClassificationsFromCameraResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](VisionService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* req, + ::viam::service::vision::v1::GetClassificationsFromCameraResponse* resp) { + return service->GetClassificationsFromCamera(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + VisionService_method_names[10], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::GetClassificationsRequest, ::viam::service::vision::v1::GetClassificationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](VisionService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::vision::v1::GetClassificationsRequest* req, + ::viam::service::vision::v1::GetClassificationsResponse* resp) { + return service->GetClassifications(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + VisionService_method_names[11], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::GetSegmenterNamesRequest, ::viam::service::vision::v1::GetSegmenterNamesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](VisionService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::vision::v1::GetSegmenterNamesRequest* req, + ::viam::service::vision::v1::GetSegmenterNamesResponse* resp) { + return service->GetSegmenterNames(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + VisionService_method_names[12], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::AddSegmenterRequest, ::viam::service::vision::v1::AddSegmenterResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](VisionService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::vision::v1::AddSegmenterRequest* req, + ::viam::service::vision::v1::AddSegmenterResponse* resp) { + return service->AddSegmenter(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + VisionService_method_names[13], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::RemoveSegmenterRequest, ::viam::service::vision::v1::RemoveSegmenterResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](VisionService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::vision::v1::RemoveSegmenterRequest* req, + ::viam::service::vision::v1::RemoveSegmenterResponse* resp) { + return service->RemoveSegmenter(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + VisionService_method_names[14], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::viam::service::vision::v1::GetObjectPointCloudsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](VisionService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::vision::v1::GetObjectPointCloudsRequest* req, + ::viam::service::vision::v1::GetObjectPointCloudsResponse* resp) { + return service->GetObjectPointClouds(ctx, req, resp); + }, this))); +} + +VisionService::Service::~Service() { +} + +::grpc::Status VisionService::Service::GetModelParameterSchema(::grpc::ServerContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest* request, ::viam::service::vision::v1::GetModelParameterSchemaResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status VisionService::Service::GetDetectorNames(::grpc::ServerContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest* request, ::viam::service::vision::v1::GetDetectorNamesResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status VisionService::Service::AddDetector(::grpc::ServerContext* context, const ::viam::service::vision::v1::AddDetectorRequest* request, ::viam::service::vision::v1::AddDetectorResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status VisionService::Service::RemoveDetector(::grpc::ServerContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest* request, ::viam::service::vision::v1::RemoveDetectorResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status VisionService::Service::GetDetectionsFromCamera(::grpc::ServerContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status VisionService::Service::GetDetections(::grpc::ServerContext* context, const ::viam::service::vision::v1::GetDetectionsRequest* request, ::viam::service::vision::v1::GetDetectionsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status VisionService::Service::GetClassifierNames(::grpc::ServerContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest* request, ::viam::service::vision::v1::GetClassifierNamesResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status VisionService::Service::AddClassifier(::grpc::ServerContext* context, const ::viam::service::vision::v1::AddClassifierRequest* request, ::viam::service::vision::v1::AddClassifierResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status VisionService::Service::RemoveClassifier(::grpc::ServerContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest* request, ::viam::service::vision::v1::RemoveClassifierResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status VisionService::Service::GetClassificationsFromCamera(::grpc::ServerContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status VisionService::Service::GetClassifications(::grpc::ServerContext* context, const ::viam::service::vision::v1::GetClassificationsRequest* request, ::viam::service::vision::v1::GetClassificationsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status VisionService::Service::GetSegmenterNames(::grpc::ServerContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest* request, ::viam::service::vision::v1::GetSegmenterNamesResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status VisionService::Service::AddSegmenter(::grpc::ServerContext* context, const ::viam::service::vision::v1::AddSegmenterRequest* request, ::viam::service::vision::v1::AddSegmenterResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status VisionService::Service::RemoveSegmenter(::grpc::ServerContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest* request, ::viam::service::vision::v1::RemoveSegmenterResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status VisionService::Service::GetObjectPointClouds(::grpc::ServerContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace service +} // namespace vision +} // namespace v1 + diff --git a/src/gen/service/vision/v1/vision.grpc.pb.h b/src/gen/service/vision/v1/vision.grpc.pb.h new file mode 100644 index 000000000..28b18cf67 --- /dev/null +++ b/src/gen/service/vision/v1/vision.grpc.pb.h @@ -0,0 +1,2508 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: service/vision/v1/vision.proto +#ifndef GRPC_service_2fvision_2fv1_2fvision_2eproto__INCLUDED +#define GRPC_service_2fvision_2fv1_2fvision_2eproto__INCLUDED + +#include "service/vision/v1/vision.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 vision { +namespace v1 { + +// VisionService declares the gRPC contract for a vision service +class VisionService final { + public: + static constexpr char const* service_full_name() { + return "viam.service.vision.v1.VisionService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // GetModelParameterSchema takes the model name and returns the parameters needed to add one to the vision registry. + virtual ::grpc::Status GetModelParameterSchema(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest& request, ::viam::service::vision::v1::GetModelParameterSchemaResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetModelParameterSchemaResponse>> AsyncGetModelParameterSchema(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetModelParameterSchemaResponse>>(AsyncGetModelParameterSchemaRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetModelParameterSchemaResponse>> PrepareAsyncGetModelParameterSchema(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetModelParameterSchemaResponse>>(PrepareAsyncGetModelParameterSchemaRaw(context, request, cq)); + } + // GetDetectorNames returns the list of detectors in the registry. + virtual ::grpc::Status GetDetectorNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest& request, ::viam::service::vision::v1::GetDetectorNamesResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetDetectorNamesResponse>> AsyncGetDetectorNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetDetectorNamesResponse>>(AsyncGetDetectorNamesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetDetectorNamesResponse>> PrepareAsyncGetDetectorNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetDetectorNamesResponse>>(PrepareAsyncGetDetectorNamesRaw(context, request, cq)); + } + // AddDetector adds a new detector to the registry. + virtual ::grpc::Status AddDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddDetectorRequest& request, ::viam::service::vision::v1::AddDetectorResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::AddDetectorResponse>> AsyncAddDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddDetectorRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::AddDetectorResponse>>(AsyncAddDetectorRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::AddDetectorResponse>> PrepareAsyncAddDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddDetectorRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::AddDetectorResponse>>(PrepareAsyncAddDetectorRaw(context, request, cq)); + } + // RemoveDetector removes a detector from the registry. + virtual ::grpc::Status RemoveDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest& request, ::viam::service::vision::v1::RemoveDetectorResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::RemoveDetectorResponse>> AsyncRemoveDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::RemoveDetectorResponse>>(AsyncRemoveDetectorRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::RemoveDetectorResponse>> PrepareAsyncRemoveDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::RemoveDetectorResponse>>(PrepareAsyncRemoveDetectorRaw(context, request, cq)); + } + // GetDetectionsFromCamera will return a list of detections in the next image given a camera and a detector + virtual ::grpc::Status GetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>> AsyncGetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>>(AsyncGetDetectionsFromCameraRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>> PrepareAsyncGetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>>(PrepareAsyncGetDetectionsFromCameraRaw(context, request, cq)); + } + // GetDetections will return a list of detections in the next image given the image bytes and a detector + virtual ::grpc::Status GetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest& request, ::viam::service::vision::v1::GetDetectionsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetDetectionsResponse>> AsyncGetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetDetectionsResponse>>(AsyncGetDetectionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetDetectionsResponse>> PrepareAsyncGetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetDetectionsResponse>>(PrepareAsyncGetDetectionsRaw(context, request, cq)); + } + // Classification methods + // + // GetClassifierNames returns the list of classifiers in the registry. + virtual ::grpc::Status GetClassifierNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest& request, ::viam::service::vision::v1::GetClassifierNamesResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetClassifierNamesResponse>> AsyncGetClassifierNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetClassifierNamesResponse>>(AsyncGetClassifierNamesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetClassifierNamesResponse>> PrepareAsyncGetClassifierNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetClassifierNamesResponse>>(PrepareAsyncGetClassifierNamesRaw(context, request, cq)); + } + // AddClassifier adds a new classifier to the registry. + virtual ::grpc::Status AddClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddClassifierRequest& request, ::viam::service::vision::v1::AddClassifierResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::AddClassifierResponse>> AsyncAddClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddClassifierRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::AddClassifierResponse>>(AsyncAddClassifierRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::AddClassifierResponse>> PrepareAsyncAddClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddClassifierRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::AddClassifierResponse>>(PrepareAsyncAddClassifierRaw(context, request, cq)); + } + // RemoveClassifier adds a new classifier to the registry. + virtual ::grpc::Status RemoveClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest& request, ::viam::service::vision::v1::RemoveClassifierResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::RemoveClassifierResponse>> AsyncRemoveClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::RemoveClassifierResponse>>(AsyncRemoveClassifierRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::RemoveClassifierResponse>> PrepareAsyncRemoveClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::RemoveClassifierResponse>>(PrepareAsyncRemoveClassifierRaw(context, request, cq)); + } + // GetClassificationsFromCamera will return a list of classifications in the next image given a camera and a classifier + virtual ::grpc::Status GetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest& request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetClassificationsFromCameraResponse>> AsyncGetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetClassificationsFromCameraResponse>>(AsyncGetClassificationsFromCameraRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetClassificationsFromCameraResponse>> PrepareAsyncGetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetClassificationsFromCameraResponse>>(PrepareAsyncGetClassificationsFromCameraRaw(context, request, cq)); + } + // GetClassifications will return a list of classifications in the next image given the image bytes and a classifier + virtual ::grpc::Status GetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest& request, ::viam::service::vision::v1::GetClassificationsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetClassificationsResponse>> AsyncGetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetClassificationsResponse>>(AsyncGetClassificationsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetClassificationsResponse>> PrepareAsyncGetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetClassificationsResponse>>(PrepareAsyncGetClassificationsRaw(context, request, cq)); + } + // Segmentation methods + // + // GetSegmenterNames returns the list of segmenters in the registry. + virtual ::grpc::Status GetSegmenterNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest& request, ::viam::service::vision::v1::GetSegmenterNamesResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetSegmenterNamesResponse>> AsyncGetSegmenterNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetSegmenterNamesResponse>>(AsyncGetSegmenterNamesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetSegmenterNamesResponse>> PrepareAsyncGetSegmenterNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetSegmenterNamesResponse>>(PrepareAsyncGetSegmenterNamesRaw(context, request, cq)); + } + // AddSegmenter adds a new segmenter to the registry. + virtual ::grpc::Status AddSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddSegmenterRequest& request, ::viam::service::vision::v1::AddSegmenterResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::AddSegmenterResponse>> AsyncAddSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddSegmenterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::AddSegmenterResponse>>(AsyncAddSegmenterRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::AddSegmenterResponse>> PrepareAsyncAddSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddSegmenterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::AddSegmenterResponse>>(PrepareAsyncAddSegmenterRaw(context, request, cq)); + } + // RemoveSegmenter removes a segmenter from the registry. + virtual ::grpc::Status RemoveSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest& request, ::viam::service::vision::v1::RemoveSegmenterResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::RemoveSegmenterResponse>> AsyncRemoveSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::RemoveSegmenterResponse>>(AsyncRemoveSegmenterRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::RemoveSegmenterResponse>> PrepareAsyncRemoveSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::RemoveSegmenterResponse>>(PrepareAsyncRemoveSegmenterRaw(context, request, cq)); + } + // GetObjectPointClouds returns all the found objects in a pointcloud from a camera of the underlying robot, + // as well as the 3-vector center of each of the found objects. + // A specific MIME type can be requested but may not necessarily be the same one returned. + virtual ::grpc::Status GetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest& request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetObjectPointCloudsResponse>> AsyncGetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetObjectPointCloudsResponse>>(AsyncGetObjectPointCloudsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetObjectPointCloudsResponse>> PrepareAsyncGetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetObjectPointCloudsResponse>>(PrepareAsyncGetObjectPointCloudsRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // GetModelParameterSchema takes the model name and returns the parameters needed to add one to the vision registry. + virtual void GetModelParameterSchema(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest* request, ::viam::service::vision::v1::GetModelParameterSchemaResponse* response, std::function) = 0; + virtual void GetModelParameterSchema(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest* request, ::viam::service::vision::v1::GetModelParameterSchemaResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GetDetectorNames returns the list of detectors in the registry. + virtual void GetDetectorNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest* request, ::viam::service::vision::v1::GetDetectorNamesResponse* response, std::function) = 0; + virtual void GetDetectorNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest* request, ::viam::service::vision::v1::GetDetectorNamesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // AddDetector adds a new detector to the registry. + virtual void AddDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddDetectorRequest* request, ::viam::service::vision::v1::AddDetectorResponse* response, std::function) = 0; + virtual void AddDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddDetectorRequest* request, ::viam::service::vision::v1::AddDetectorResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // RemoveDetector removes a detector from the registry. + virtual void RemoveDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest* request, ::viam::service::vision::v1::RemoveDetectorResponse* response, std::function) = 0; + virtual void RemoveDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest* request, ::viam::service::vision::v1::RemoveDetectorResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GetDetectionsFromCamera will return a list of detections in the next image given a camera and a detector + virtual void GetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, std::function) = 0; + virtual void GetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GetDetections will return a list of detections in the next image given the image bytes and a detector + virtual void GetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest* request, ::viam::service::vision::v1::GetDetectionsResponse* response, std::function) = 0; + virtual void GetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest* request, ::viam::service::vision::v1::GetDetectionsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Classification methods + // + // GetClassifierNames returns the list of classifiers in the registry. + virtual void GetClassifierNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest* request, ::viam::service::vision::v1::GetClassifierNamesResponse* response, std::function) = 0; + virtual void GetClassifierNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest* request, ::viam::service::vision::v1::GetClassifierNamesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // AddClassifier adds a new classifier to the registry. + virtual void AddClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddClassifierRequest* request, ::viam::service::vision::v1::AddClassifierResponse* response, std::function) = 0; + virtual void AddClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddClassifierRequest* request, ::viam::service::vision::v1::AddClassifierResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // RemoveClassifier adds a new classifier to the registry. + virtual void RemoveClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest* request, ::viam::service::vision::v1::RemoveClassifierResponse* response, std::function) = 0; + virtual void RemoveClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest* request, ::viam::service::vision::v1::RemoveClassifierResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GetClassificationsFromCamera will return a list of classifications in the next image given a camera and a classifier + virtual void GetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, std::function) = 0; + virtual void GetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GetClassifications will return a list of classifications in the next image given the image bytes and a classifier + virtual void GetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest* request, ::viam::service::vision::v1::GetClassificationsResponse* response, std::function) = 0; + virtual void GetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest* request, ::viam::service::vision::v1::GetClassificationsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Segmentation methods + // + // GetSegmenterNames returns the list of segmenters in the registry. + virtual void GetSegmenterNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest* request, ::viam::service::vision::v1::GetSegmenterNamesResponse* response, std::function) = 0; + virtual void GetSegmenterNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest* request, ::viam::service::vision::v1::GetSegmenterNamesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // AddSegmenter adds a new segmenter to the registry. + virtual void AddSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddSegmenterRequest* request, ::viam::service::vision::v1::AddSegmenterResponse* response, std::function) = 0; + virtual void AddSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddSegmenterRequest* request, ::viam::service::vision::v1::AddSegmenterResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // RemoveSegmenter removes a segmenter from the registry. + virtual void RemoveSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest* request, ::viam::service::vision::v1::RemoveSegmenterResponse* response, std::function) = 0; + virtual void RemoveSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest* request, ::viam::service::vision::v1::RemoveSegmenterResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GetObjectPointClouds returns all the found objects in a pointcloud from a camera of the underlying robot, + // as well as the 3-vector center of each of the found objects. + // A specific MIME type can be requested but may not necessarily be the same one returned. + virtual void GetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, std::function) = 0; + virtual void GetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* 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::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetModelParameterSchemaResponse>* AsyncGetModelParameterSchemaRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetModelParameterSchemaResponse>* PrepareAsyncGetModelParameterSchemaRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetDetectorNamesResponse>* AsyncGetDetectorNamesRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetDetectorNamesResponse>* PrepareAsyncGetDetectorNamesRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::AddDetectorResponse>* AsyncAddDetectorRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddDetectorRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::AddDetectorResponse>* PrepareAsyncAddDetectorRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddDetectorRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::RemoveDetectorResponse>* AsyncRemoveDetectorRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::RemoveDetectorResponse>* PrepareAsyncRemoveDetectorRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>* AsyncGetDetectionsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>* PrepareAsyncGetDetectionsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetDetectionsResponse>* AsyncGetDetectionsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetDetectionsResponse>* PrepareAsyncGetDetectionsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetClassifierNamesResponse>* AsyncGetClassifierNamesRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetClassifierNamesResponse>* PrepareAsyncGetClassifierNamesRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::AddClassifierResponse>* AsyncAddClassifierRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddClassifierRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::AddClassifierResponse>* PrepareAsyncAddClassifierRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddClassifierRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::RemoveClassifierResponse>* AsyncRemoveClassifierRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::RemoveClassifierResponse>* PrepareAsyncRemoveClassifierRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetClassificationsFromCameraResponse>* AsyncGetClassificationsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetClassificationsFromCameraResponse>* PrepareAsyncGetClassificationsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetClassificationsResponse>* AsyncGetClassificationsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetClassificationsResponse>* PrepareAsyncGetClassificationsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetSegmenterNamesResponse>* AsyncGetSegmenterNamesRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetSegmenterNamesResponse>* PrepareAsyncGetSegmenterNamesRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::AddSegmenterResponse>* AsyncAddSegmenterRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddSegmenterRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::AddSegmenterResponse>* PrepareAsyncAddSegmenterRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddSegmenterRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::RemoveSegmenterResponse>* AsyncRemoveSegmenterRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::RemoveSegmenterResponse>* PrepareAsyncRemoveSegmenterRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetObjectPointCloudsResponse>* AsyncGetObjectPointCloudsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetObjectPointCloudsResponse>* PrepareAsyncGetObjectPointCloudsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest& 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()); + ::grpc::Status GetModelParameterSchema(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest& request, ::viam::service::vision::v1::GetModelParameterSchemaResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetModelParameterSchemaResponse>> AsyncGetModelParameterSchema(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetModelParameterSchemaResponse>>(AsyncGetModelParameterSchemaRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetModelParameterSchemaResponse>> PrepareAsyncGetModelParameterSchema(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetModelParameterSchemaResponse>>(PrepareAsyncGetModelParameterSchemaRaw(context, request, cq)); + } + ::grpc::Status GetDetectorNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest& request, ::viam::service::vision::v1::GetDetectorNamesResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectorNamesResponse>> AsyncGetDetectorNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectorNamesResponse>>(AsyncGetDetectorNamesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectorNamesResponse>> PrepareAsyncGetDetectorNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectorNamesResponse>>(PrepareAsyncGetDetectorNamesRaw(context, request, cq)); + } + ::grpc::Status AddDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddDetectorRequest& request, ::viam::service::vision::v1::AddDetectorResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddDetectorResponse>> AsyncAddDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddDetectorRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddDetectorResponse>>(AsyncAddDetectorRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddDetectorResponse>> PrepareAsyncAddDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddDetectorRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddDetectorResponse>>(PrepareAsyncAddDetectorRaw(context, request, cq)); + } + ::grpc::Status RemoveDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest& request, ::viam::service::vision::v1::RemoveDetectorResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveDetectorResponse>> AsyncRemoveDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveDetectorResponse>>(AsyncRemoveDetectorRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveDetectorResponse>> PrepareAsyncRemoveDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveDetectorResponse>>(PrepareAsyncRemoveDetectorRaw(context, request, cq)); + } + ::grpc::Status GetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>> AsyncGetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>>(AsyncGetDetectionsFromCameraRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>> PrepareAsyncGetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>>(PrepareAsyncGetDetectionsFromCameraRaw(context, request, cq)); + } + ::grpc::Status GetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest& request, ::viam::service::vision::v1::GetDetectionsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsResponse>> AsyncGetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsResponse>>(AsyncGetDetectionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsResponse>> PrepareAsyncGetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsResponse>>(PrepareAsyncGetDetectionsRaw(context, request, cq)); + } + ::grpc::Status GetClassifierNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest& request, ::viam::service::vision::v1::GetClassifierNamesResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassifierNamesResponse>> AsyncGetClassifierNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassifierNamesResponse>>(AsyncGetClassifierNamesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassifierNamesResponse>> PrepareAsyncGetClassifierNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassifierNamesResponse>>(PrepareAsyncGetClassifierNamesRaw(context, request, cq)); + } + ::grpc::Status AddClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddClassifierRequest& request, ::viam::service::vision::v1::AddClassifierResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddClassifierResponse>> AsyncAddClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddClassifierRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddClassifierResponse>>(AsyncAddClassifierRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddClassifierResponse>> PrepareAsyncAddClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddClassifierRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddClassifierResponse>>(PrepareAsyncAddClassifierRaw(context, request, cq)); + } + ::grpc::Status RemoveClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest& request, ::viam::service::vision::v1::RemoveClassifierResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveClassifierResponse>> AsyncRemoveClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveClassifierResponse>>(AsyncRemoveClassifierRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveClassifierResponse>> PrepareAsyncRemoveClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveClassifierResponse>>(PrepareAsyncRemoveClassifierRaw(context, request, cq)); + } + ::grpc::Status GetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest& request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsFromCameraResponse>> AsyncGetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsFromCameraResponse>>(AsyncGetClassificationsFromCameraRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsFromCameraResponse>> PrepareAsyncGetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsFromCameraResponse>>(PrepareAsyncGetClassificationsFromCameraRaw(context, request, cq)); + } + ::grpc::Status GetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest& request, ::viam::service::vision::v1::GetClassificationsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsResponse>> AsyncGetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsResponse>>(AsyncGetClassificationsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsResponse>> PrepareAsyncGetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsResponse>>(PrepareAsyncGetClassificationsRaw(context, request, cq)); + } + ::grpc::Status GetSegmenterNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest& request, ::viam::service::vision::v1::GetSegmenterNamesResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetSegmenterNamesResponse>> AsyncGetSegmenterNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetSegmenterNamesResponse>>(AsyncGetSegmenterNamesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetSegmenterNamesResponse>> PrepareAsyncGetSegmenterNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetSegmenterNamesResponse>>(PrepareAsyncGetSegmenterNamesRaw(context, request, cq)); + } + ::grpc::Status AddSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddSegmenterRequest& request, ::viam::service::vision::v1::AddSegmenterResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddSegmenterResponse>> AsyncAddSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddSegmenterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddSegmenterResponse>>(AsyncAddSegmenterRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddSegmenterResponse>> PrepareAsyncAddSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddSegmenterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddSegmenterResponse>>(PrepareAsyncAddSegmenterRaw(context, request, cq)); + } + ::grpc::Status RemoveSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest& request, ::viam::service::vision::v1::RemoveSegmenterResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveSegmenterResponse>> AsyncRemoveSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveSegmenterResponse>>(AsyncRemoveSegmenterRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveSegmenterResponse>> PrepareAsyncRemoveSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveSegmenterResponse>>(PrepareAsyncRemoveSegmenterRaw(context, request, cq)); + } + ::grpc::Status GetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest& request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetObjectPointCloudsResponse>> AsyncGetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetObjectPointCloudsResponse>>(AsyncGetObjectPointCloudsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetObjectPointCloudsResponse>> PrepareAsyncGetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetObjectPointCloudsResponse>>(PrepareAsyncGetObjectPointCloudsRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void GetModelParameterSchema(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest* request, ::viam::service::vision::v1::GetModelParameterSchemaResponse* response, std::function) override; + void GetModelParameterSchema(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest* request, ::viam::service::vision::v1::GetModelParameterSchemaResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetDetectorNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest* request, ::viam::service::vision::v1::GetDetectorNamesResponse* response, std::function) override; + void GetDetectorNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest* request, ::viam::service::vision::v1::GetDetectorNamesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void AddDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddDetectorRequest* request, ::viam::service::vision::v1::AddDetectorResponse* response, std::function) override; + void AddDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddDetectorRequest* request, ::viam::service::vision::v1::AddDetectorResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void RemoveDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest* request, ::viam::service::vision::v1::RemoveDetectorResponse* response, std::function) override; + void RemoveDetector(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest* request, ::viam::service::vision::v1::RemoveDetectorResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, std::function) override; + void GetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest* request, ::viam::service::vision::v1::GetDetectionsResponse* response, std::function) override; + void GetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest* request, ::viam::service::vision::v1::GetDetectionsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetClassifierNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest* request, ::viam::service::vision::v1::GetClassifierNamesResponse* response, std::function) override; + void GetClassifierNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest* request, ::viam::service::vision::v1::GetClassifierNamesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void AddClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddClassifierRequest* request, ::viam::service::vision::v1::AddClassifierResponse* response, std::function) override; + void AddClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddClassifierRequest* request, ::viam::service::vision::v1::AddClassifierResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void RemoveClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest* request, ::viam::service::vision::v1::RemoveClassifierResponse* response, std::function) override; + void RemoveClassifier(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest* request, ::viam::service::vision::v1::RemoveClassifierResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, std::function) override; + void GetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest* request, ::viam::service::vision::v1::GetClassificationsResponse* response, std::function) override; + void GetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest* request, ::viam::service::vision::v1::GetClassificationsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetSegmenterNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest* request, ::viam::service::vision::v1::GetSegmenterNamesResponse* response, std::function) override; + void GetSegmenterNames(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest* request, ::viam::service::vision::v1::GetSegmenterNamesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void AddSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddSegmenterRequest* request, ::viam::service::vision::v1::AddSegmenterResponse* response, std::function) override; + void AddSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddSegmenterRequest* request, ::viam::service::vision::v1::AddSegmenterResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void RemoveSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest* request, ::viam::service::vision::v1::RemoveSegmenterResponse* response, std::function) override; + void RemoveSegmenter(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest* request, ::viam::service::vision::v1::RemoveSegmenterResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, std::function) override; + void GetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* 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::ClientAsyncResponseReader< ::viam::service::vision::v1::GetModelParameterSchemaResponse>* AsyncGetModelParameterSchemaRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetModelParameterSchemaResponse>* PrepareAsyncGetModelParameterSchemaRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectorNamesResponse>* AsyncGetDetectorNamesRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectorNamesResponse>* PrepareAsyncGetDetectorNamesRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddDetectorResponse>* AsyncAddDetectorRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddDetectorRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddDetectorResponse>* PrepareAsyncAddDetectorRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddDetectorRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveDetectorResponse>* AsyncRemoveDetectorRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveDetectorResponse>* PrepareAsyncRemoveDetectorRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>* AsyncGetDetectionsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>* PrepareAsyncGetDetectionsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsResponse>* AsyncGetDetectionsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsResponse>* PrepareAsyncGetDetectionsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassifierNamesResponse>* AsyncGetClassifierNamesRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassifierNamesResponse>* PrepareAsyncGetClassifierNamesRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddClassifierResponse>* AsyncAddClassifierRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddClassifierRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddClassifierResponse>* PrepareAsyncAddClassifierRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddClassifierRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveClassifierResponse>* AsyncRemoveClassifierRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveClassifierResponse>* PrepareAsyncRemoveClassifierRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsFromCameraResponse>* AsyncGetClassificationsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsFromCameraResponse>* PrepareAsyncGetClassificationsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsResponse>* AsyncGetClassificationsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsResponse>* PrepareAsyncGetClassificationsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetSegmenterNamesResponse>* AsyncGetSegmenterNamesRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetSegmenterNamesResponse>* PrepareAsyncGetSegmenterNamesRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddSegmenterResponse>* AsyncAddSegmenterRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddSegmenterRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::AddSegmenterResponse>* PrepareAsyncAddSegmenterRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::AddSegmenterRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveSegmenterResponse>* AsyncRemoveSegmenterRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::RemoveSegmenterResponse>* PrepareAsyncRemoveSegmenterRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetObjectPointCloudsResponse>* AsyncGetObjectPointCloudsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetObjectPointCloudsResponse>* PrepareAsyncGetObjectPointCloudsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_GetModelParameterSchema_; + const ::grpc::internal::RpcMethod rpcmethod_GetDetectorNames_; + const ::grpc::internal::RpcMethod rpcmethod_AddDetector_; + const ::grpc::internal::RpcMethod rpcmethod_RemoveDetector_; + const ::grpc::internal::RpcMethod rpcmethod_GetDetectionsFromCamera_; + const ::grpc::internal::RpcMethod rpcmethod_GetDetections_; + const ::grpc::internal::RpcMethod rpcmethod_GetClassifierNames_; + const ::grpc::internal::RpcMethod rpcmethod_AddClassifier_; + const ::grpc::internal::RpcMethod rpcmethod_RemoveClassifier_; + const ::grpc::internal::RpcMethod rpcmethod_GetClassificationsFromCamera_; + const ::grpc::internal::RpcMethod rpcmethod_GetClassifications_; + const ::grpc::internal::RpcMethod rpcmethod_GetSegmenterNames_; + const ::grpc::internal::RpcMethod rpcmethod_AddSegmenter_; + const ::grpc::internal::RpcMethod rpcmethod_RemoveSegmenter_; + const ::grpc::internal::RpcMethod rpcmethod_GetObjectPointClouds_; + }; + 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(); + // GetModelParameterSchema takes the model name and returns the parameters needed to add one to the vision registry. + virtual ::grpc::Status GetModelParameterSchema(::grpc::ServerContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest* request, ::viam::service::vision::v1::GetModelParameterSchemaResponse* response); + // GetDetectorNames returns the list of detectors in the registry. + virtual ::grpc::Status GetDetectorNames(::grpc::ServerContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest* request, ::viam::service::vision::v1::GetDetectorNamesResponse* response); + // AddDetector adds a new detector to the registry. + virtual ::grpc::Status AddDetector(::grpc::ServerContext* context, const ::viam::service::vision::v1::AddDetectorRequest* request, ::viam::service::vision::v1::AddDetectorResponse* response); + // RemoveDetector removes a detector from the registry. + virtual ::grpc::Status RemoveDetector(::grpc::ServerContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest* request, ::viam::service::vision::v1::RemoveDetectorResponse* response); + // GetDetectionsFromCamera will return a list of detections in the next image given a camera and a detector + virtual ::grpc::Status GetDetectionsFromCamera(::grpc::ServerContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response); + // GetDetections will return a list of detections in the next image given the image bytes and a detector + virtual ::grpc::Status GetDetections(::grpc::ServerContext* context, const ::viam::service::vision::v1::GetDetectionsRequest* request, ::viam::service::vision::v1::GetDetectionsResponse* response); + // Classification methods + // + // GetClassifierNames returns the list of classifiers in the registry. + virtual ::grpc::Status GetClassifierNames(::grpc::ServerContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest* request, ::viam::service::vision::v1::GetClassifierNamesResponse* response); + // AddClassifier adds a new classifier to the registry. + virtual ::grpc::Status AddClassifier(::grpc::ServerContext* context, const ::viam::service::vision::v1::AddClassifierRequest* request, ::viam::service::vision::v1::AddClassifierResponse* response); + // RemoveClassifier adds a new classifier to the registry. + virtual ::grpc::Status RemoveClassifier(::grpc::ServerContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest* request, ::viam::service::vision::v1::RemoveClassifierResponse* response); + // GetClassificationsFromCamera will return a list of classifications in the next image given a camera and a classifier + virtual ::grpc::Status GetClassificationsFromCamera(::grpc::ServerContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response); + // GetClassifications will return a list of classifications in the next image given the image bytes and a classifier + virtual ::grpc::Status GetClassifications(::grpc::ServerContext* context, const ::viam::service::vision::v1::GetClassificationsRequest* request, ::viam::service::vision::v1::GetClassificationsResponse* response); + // Segmentation methods + // + // GetSegmenterNames returns the list of segmenters in the registry. + virtual ::grpc::Status GetSegmenterNames(::grpc::ServerContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest* request, ::viam::service::vision::v1::GetSegmenterNamesResponse* response); + // AddSegmenter adds a new segmenter to the registry. + virtual ::grpc::Status AddSegmenter(::grpc::ServerContext* context, const ::viam::service::vision::v1::AddSegmenterRequest* request, ::viam::service::vision::v1::AddSegmenterResponse* response); + // RemoveSegmenter removes a segmenter from the registry. + virtual ::grpc::Status RemoveSegmenter(::grpc::ServerContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest* request, ::viam::service::vision::v1::RemoveSegmenterResponse* response); + // GetObjectPointClouds returns all the found objects in a pointcloud from a camera of the underlying robot, + // as well as the 3-vector center of each of the found objects. + // A specific MIME type can be requested but may not necessarily be the same one returned. + virtual ::grpc::Status GetObjectPointClouds(::grpc::ServerContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response); + }; + template + class WithAsyncMethod_GetModelParameterSchema : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetModelParameterSchema() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_GetModelParameterSchema() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetModelParameterSchema(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetModelParameterSchemaRequest* /*request*/, ::viam::service::vision::v1::GetModelParameterSchemaResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetModelParameterSchema(::grpc::ServerContext* context, ::viam::service::vision::v1::GetModelParameterSchemaRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::vision::v1::GetModelParameterSchemaResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetDetectorNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetDetectorNames() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_GetDetectorNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDetectorNames(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectorNamesRequest* /*request*/, ::viam::service::vision::v1::GetDetectorNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetDetectorNames(::grpc::ServerContext* context, ::viam::service::vision::v1::GetDetectorNamesRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::vision::v1::GetDetectorNamesResponse>* 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 WithAsyncMethod_AddDetector : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_AddDetector() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_AddDetector() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddDetector(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::AddDetectorRequest* /*request*/, ::viam::service::vision::v1::AddDetectorResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestAddDetector(::grpc::ServerContext* context, ::viam::service::vision::v1::AddDetectorRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::vision::v1::AddDetectorResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_RemoveDetector : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_RemoveDetector() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_RemoveDetector() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RemoveDetector(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::RemoveDetectorRequest* /*request*/, ::viam::service::vision::v1::RemoveDetectorResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRemoveDetector(::grpc::ServerContext* context, ::viam::service::vision::v1::RemoveDetectorRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::vision::v1::RemoveDetectorResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetDetectionsFromCamera : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetDetectionsFromCamera() { + ::grpc::Service::MarkMethodAsync(4); + } + ~WithAsyncMethod_GetDetectionsFromCamera() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDetectionsFromCamera(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* /*request*/, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetDetectionsFromCamera(::grpc::ServerContext* context, ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetDetections : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetDetections() { + ::grpc::Service::MarkMethodAsync(5); + } + ~WithAsyncMethod_GetDetections() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDetections(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectionsRequest* /*request*/, ::viam::service::vision::v1::GetDetectionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetDetections(::grpc::ServerContext* context, ::viam::service::vision::v1::GetDetectionsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::vision::v1::GetDetectionsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetClassifierNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetClassifierNames() { + ::grpc::Service::MarkMethodAsync(6); + } + ~WithAsyncMethod_GetClassifierNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetClassifierNames(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetClassifierNamesRequest* /*request*/, ::viam::service::vision::v1::GetClassifierNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetClassifierNames(::grpc::ServerContext* context, ::viam::service::vision::v1::GetClassifierNamesRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::vision::v1::GetClassifierNamesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_AddClassifier : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_AddClassifier() { + ::grpc::Service::MarkMethodAsync(7); + } + ~WithAsyncMethod_AddClassifier() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddClassifier(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::AddClassifierRequest* /*request*/, ::viam::service::vision::v1::AddClassifierResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestAddClassifier(::grpc::ServerContext* context, ::viam::service::vision::v1::AddClassifierRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::vision::v1::AddClassifierResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_RemoveClassifier : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_RemoveClassifier() { + ::grpc::Service::MarkMethodAsync(8); + } + ~WithAsyncMethod_RemoveClassifier() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RemoveClassifier(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::RemoveClassifierRequest* /*request*/, ::viam::service::vision::v1::RemoveClassifierResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRemoveClassifier(::grpc::ServerContext* context, ::viam::service::vision::v1::RemoveClassifierRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::vision::v1::RemoveClassifierResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetClassificationsFromCamera : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetClassificationsFromCamera() { + ::grpc::Service::MarkMethodAsync(9); + } + ~WithAsyncMethod_GetClassificationsFromCamera() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetClassificationsFromCamera(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* /*request*/, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetClassificationsFromCamera(::grpc::ServerContext* context, ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::vision::v1::GetClassificationsFromCameraResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetClassifications : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetClassifications() { + ::grpc::Service::MarkMethodAsync(10); + } + ~WithAsyncMethod_GetClassifications() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetClassifications(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetClassificationsRequest* /*request*/, ::viam::service::vision::v1::GetClassificationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetClassifications(::grpc::ServerContext* context, ::viam::service::vision::v1::GetClassificationsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::vision::v1::GetClassificationsResponse>* 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 WithAsyncMethod_GetSegmenterNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetSegmenterNames() { + ::grpc::Service::MarkMethodAsync(11); + } + ~WithAsyncMethod_GetSegmenterNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetSegmenterNames(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetSegmenterNamesRequest* /*request*/, ::viam::service::vision::v1::GetSegmenterNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetSegmenterNames(::grpc::ServerContext* context, ::viam::service::vision::v1::GetSegmenterNamesRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::vision::v1::GetSegmenterNamesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_AddSegmenter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_AddSegmenter() { + ::grpc::Service::MarkMethodAsync(12); + } + ~WithAsyncMethod_AddSegmenter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddSegmenter(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::AddSegmenterRequest* /*request*/, ::viam::service::vision::v1::AddSegmenterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestAddSegmenter(::grpc::ServerContext* context, ::viam::service::vision::v1::AddSegmenterRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::vision::v1::AddSegmenterResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_RemoveSegmenter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_RemoveSegmenter() { + ::grpc::Service::MarkMethodAsync(13); + } + ~WithAsyncMethod_RemoveSegmenter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RemoveSegmenter(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::RemoveSegmenterRequest* /*request*/, ::viam::service::vision::v1::RemoveSegmenterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRemoveSegmenter(::grpc::ServerContext* context, ::viam::service::vision::v1::RemoveSegmenterRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::vision::v1::RemoveSegmenterResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetObjectPointClouds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetObjectPointClouds() { + ::grpc::Service::MarkMethodAsync(14); + } + ~WithAsyncMethod_GetObjectPointClouds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetObjectPointClouds(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* /*request*/, ::viam::service::vision::v1::GetObjectPointCloudsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetObjectPointClouds(::grpc::ServerContext* context, ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::vision::v1::GetObjectPointCloudsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetModelParameterSchema > > > > > > > > > > > > > > AsyncService; + template + class WithCallbackMethod_GetModelParameterSchema : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetModelParameterSchema() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetModelParameterSchemaRequest, ::viam::service::vision::v1::GetModelParameterSchemaResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::GetModelParameterSchemaRequest* request, ::viam::service::vision::v1::GetModelParameterSchemaResponse* response) { return this->GetModelParameterSchema(context, request, response); }));} + void SetMessageAllocatorFor_GetModelParameterSchema( + ::grpc::MessageAllocator< ::viam::service::vision::v1::GetModelParameterSchemaRequest, ::viam::service::vision::v1::GetModelParameterSchemaResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetModelParameterSchemaRequest, ::viam::service::vision::v1::GetModelParameterSchemaResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetModelParameterSchema() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetModelParameterSchema(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetModelParameterSchemaRequest* /*request*/, ::viam::service::vision::v1::GetModelParameterSchemaResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetModelParameterSchema( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetModelParameterSchemaRequest* /*request*/, ::viam::service::vision::v1::GetModelParameterSchemaResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetDetectorNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetDetectorNames() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetDetectorNamesRequest, ::viam::service::vision::v1::GetDetectorNamesResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::GetDetectorNamesRequest* request, ::viam::service::vision::v1::GetDetectorNamesResponse* response) { return this->GetDetectorNames(context, request, response); }));} + void SetMessageAllocatorFor_GetDetectorNames( + ::grpc::MessageAllocator< ::viam::service::vision::v1::GetDetectorNamesRequest, ::viam::service::vision::v1::GetDetectorNamesResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetDetectorNamesRequest, ::viam::service::vision::v1::GetDetectorNamesResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetDetectorNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDetectorNames(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectorNamesRequest* /*request*/, ::viam::service::vision::v1::GetDetectorNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetDetectorNames( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectorNamesRequest* /*request*/, ::viam::service::vision::v1::GetDetectorNamesResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_AddDetector : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_AddDetector() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::AddDetectorRequest, ::viam::service::vision::v1::AddDetectorResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::AddDetectorRequest* request, ::viam::service::vision::v1::AddDetectorResponse* response) { return this->AddDetector(context, request, response); }));} + void SetMessageAllocatorFor_AddDetector( + ::grpc::MessageAllocator< ::viam::service::vision::v1::AddDetectorRequest, ::viam::service::vision::v1::AddDetectorResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::AddDetectorRequest, ::viam::service::vision::v1::AddDetectorResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_AddDetector() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddDetector(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::AddDetectorRequest* /*request*/, ::viam::service::vision::v1::AddDetectorResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* AddDetector( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::AddDetectorRequest* /*request*/, ::viam::service::vision::v1::AddDetectorResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_RemoveDetector : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_RemoveDetector() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::RemoveDetectorRequest, ::viam::service::vision::v1::RemoveDetectorResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::RemoveDetectorRequest* request, ::viam::service::vision::v1::RemoveDetectorResponse* response) { return this->RemoveDetector(context, request, response); }));} + void SetMessageAllocatorFor_RemoveDetector( + ::grpc::MessageAllocator< ::viam::service::vision::v1::RemoveDetectorRequest, ::viam::service::vision::v1::RemoveDetectorResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::RemoveDetectorRequest, ::viam::service::vision::v1::RemoveDetectorResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_RemoveDetector() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RemoveDetector(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::RemoveDetectorRequest* /*request*/, ::viam::service::vision::v1::RemoveDetectorResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* RemoveDetector( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::RemoveDetectorRequest* /*request*/, ::viam::service::vision::v1::RemoveDetectorResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetDetectionsFromCamera : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetDetectionsFromCamera() { + ::grpc::Service::MarkMethodCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::viam::service::vision::v1::GetDetectionsFromCameraResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response) { return this->GetDetectionsFromCamera(context, request, response); }));} + void SetMessageAllocatorFor_GetDetectionsFromCamera( + ::grpc::MessageAllocator< ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::viam::service::vision::v1::GetDetectionsFromCameraResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::viam::service::vision::v1::GetDetectionsFromCameraResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetDetectionsFromCamera() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDetectionsFromCamera(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* /*request*/, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetDetectionsFromCamera( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* /*request*/, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetDetections : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetDetections() { + ::grpc::Service::MarkMethodCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetDetectionsRequest, ::viam::service::vision::v1::GetDetectionsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::GetDetectionsRequest* request, ::viam::service::vision::v1::GetDetectionsResponse* response) { return this->GetDetections(context, request, response); }));} + void SetMessageAllocatorFor_GetDetections( + ::grpc::MessageAllocator< ::viam::service::vision::v1::GetDetectionsRequest, ::viam::service::vision::v1::GetDetectionsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetDetectionsRequest, ::viam::service::vision::v1::GetDetectionsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetDetections() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDetections(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectionsRequest* /*request*/, ::viam::service::vision::v1::GetDetectionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetDetections( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectionsRequest* /*request*/, ::viam::service::vision::v1::GetDetectionsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetClassifierNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetClassifierNames() { + ::grpc::Service::MarkMethodCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetClassifierNamesRequest, ::viam::service::vision::v1::GetClassifierNamesResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::GetClassifierNamesRequest* request, ::viam::service::vision::v1::GetClassifierNamesResponse* response) { return this->GetClassifierNames(context, request, response); }));} + void SetMessageAllocatorFor_GetClassifierNames( + ::grpc::MessageAllocator< ::viam::service::vision::v1::GetClassifierNamesRequest, ::viam::service::vision::v1::GetClassifierNamesResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetClassifierNamesRequest, ::viam::service::vision::v1::GetClassifierNamesResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetClassifierNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetClassifierNames(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetClassifierNamesRequest* /*request*/, ::viam::service::vision::v1::GetClassifierNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetClassifierNames( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetClassifierNamesRequest* /*request*/, ::viam::service::vision::v1::GetClassifierNamesResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_AddClassifier : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_AddClassifier() { + ::grpc::Service::MarkMethodCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::AddClassifierRequest, ::viam::service::vision::v1::AddClassifierResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::AddClassifierRequest* request, ::viam::service::vision::v1::AddClassifierResponse* response) { return this->AddClassifier(context, request, response); }));} + void SetMessageAllocatorFor_AddClassifier( + ::grpc::MessageAllocator< ::viam::service::vision::v1::AddClassifierRequest, ::viam::service::vision::v1::AddClassifierResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::AddClassifierRequest, ::viam::service::vision::v1::AddClassifierResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_AddClassifier() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddClassifier(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::AddClassifierRequest* /*request*/, ::viam::service::vision::v1::AddClassifierResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* AddClassifier( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::AddClassifierRequest* /*request*/, ::viam::service::vision::v1::AddClassifierResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_RemoveClassifier : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_RemoveClassifier() { + ::grpc::Service::MarkMethodCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::RemoveClassifierRequest, ::viam::service::vision::v1::RemoveClassifierResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::RemoveClassifierRequest* request, ::viam::service::vision::v1::RemoveClassifierResponse* response) { return this->RemoveClassifier(context, request, response); }));} + void SetMessageAllocatorFor_RemoveClassifier( + ::grpc::MessageAllocator< ::viam::service::vision::v1::RemoveClassifierRequest, ::viam::service::vision::v1::RemoveClassifierResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::RemoveClassifierRequest, ::viam::service::vision::v1::RemoveClassifierResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_RemoveClassifier() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RemoveClassifier(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::RemoveClassifierRequest* /*request*/, ::viam::service::vision::v1::RemoveClassifierResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* RemoveClassifier( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::RemoveClassifierRequest* /*request*/, ::viam::service::vision::v1::RemoveClassifierResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetClassificationsFromCamera : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetClassificationsFromCamera() { + ::grpc::Service::MarkMethodCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::viam::service::vision::v1::GetClassificationsFromCameraResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response) { return this->GetClassificationsFromCamera(context, request, response); }));} + void SetMessageAllocatorFor_GetClassificationsFromCamera( + ::grpc::MessageAllocator< ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::viam::service::vision::v1::GetClassificationsFromCameraResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::viam::service::vision::v1::GetClassificationsFromCameraResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetClassificationsFromCamera() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetClassificationsFromCamera(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* /*request*/, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetClassificationsFromCamera( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* /*request*/, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetClassifications : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetClassifications() { + ::grpc::Service::MarkMethodCallback(10, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetClassificationsRequest, ::viam::service::vision::v1::GetClassificationsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::GetClassificationsRequest* request, ::viam::service::vision::v1::GetClassificationsResponse* response) { return this->GetClassifications(context, request, response); }));} + void SetMessageAllocatorFor_GetClassifications( + ::grpc::MessageAllocator< ::viam::service::vision::v1::GetClassificationsRequest, ::viam::service::vision::v1::GetClassificationsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetClassificationsRequest, ::viam::service::vision::v1::GetClassificationsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetClassifications() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetClassifications(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetClassificationsRequest* /*request*/, ::viam::service::vision::v1::GetClassificationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetClassifications( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetClassificationsRequest* /*request*/, ::viam::service::vision::v1::GetClassificationsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetSegmenterNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetSegmenterNames() { + ::grpc::Service::MarkMethodCallback(11, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetSegmenterNamesRequest, ::viam::service::vision::v1::GetSegmenterNamesResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::GetSegmenterNamesRequest* request, ::viam::service::vision::v1::GetSegmenterNamesResponse* response) { return this->GetSegmenterNames(context, request, response); }));} + void SetMessageAllocatorFor_GetSegmenterNames( + ::grpc::MessageAllocator< ::viam::service::vision::v1::GetSegmenterNamesRequest, ::viam::service::vision::v1::GetSegmenterNamesResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(11); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetSegmenterNamesRequest, ::viam::service::vision::v1::GetSegmenterNamesResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetSegmenterNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetSegmenterNames(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetSegmenterNamesRequest* /*request*/, ::viam::service::vision::v1::GetSegmenterNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetSegmenterNames( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetSegmenterNamesRequest* /*request*/, ::viam::service::vision::v1::GetSegmenterNamesResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_AddSegmenter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_AddSegmenter() { + ::grpc::Service::MarkMethodCallback(12, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::AddSegmenterRequest, ::viam::service::vision::v1::AddSegmenterResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::AddSegmenterRequest* request, ::viam::service::vision::v1::AddSegmenterResponse* response) { return this->AddSegmenter(context, request, response); }));} + void SetMessageAllocatorFor_AddSegmenter( + ::grpc::MessageAllocator< ::viam::service::vision::v1::AddSegmenterRequest, ::viam::service::vision::v1::AddSegmenterResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(12); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::AddSegmenterRequest, ::viam::service::vision::v1::AddSegmenterResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_AddSegmenter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddSegmenter(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::AddSegmenterRequest* /*request*/, ::viam::service::vision::v1::AddSegmenterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* AddSegmenter( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::AddSegmenterRequest* /*request*/, ::viam::service::vision::v1::AddSegmenterResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_RemoveSegmenter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_RemoveSegmenter() { + ::grpc::Service::MarkMethodCallback(13, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::RemoveSegmenterRequest, ::viam::service::vision::v1::RemoveSegmenterResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::RemoveSegmenterRequest* request, ::viam::service::vision::v1::RemoveSegmenterResponse* response) { return this->RemoveSegmenter(context, request, response); }));} + void SetMessageAllocatorFor_RemoveSegmenter( + ::grpc::MessageAllocator< ::viam::service::vision::v1::RemoveSegmenterRequest, ::viam::service::vision::v1::RemoveSegmenterResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(13); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::RemoveSegmenterRequest, ::viam::service::vision::v1::RemoveSegmenterResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_RemoveSegmenter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RemoveSegmenter(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::RemoveSegmenterRequest* /*request*/, ::viam::service::vision::v1::RemoveSegmenterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* RemoveSegmenter( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::RemoveSegmenterRequest* /*request*/, ::viam::service::vision::v1::RemoveSegmenterResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetObjectPointClouds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetObjectPointClouds() { + ::grpc::Service::MarkMethodCallback(14, + new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::viam::service::vision::v1::GetObjectPointCloudsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response) { return this->GetObjectPointClouds(context, request, response); }));} + void SetMessageAllocatorFor_GetObjectPointClouds( + ::grpc::MessageAllocator< ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::viam::service::vision::v1::GetObjectPointCloudsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(14); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::viam::service::vision::v1::GetObjectPointCloudsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetObjectPointClouds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetObjectPointClouds(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* /*request*/, ::viam::service::vision::v1::GetObjectPointCloudsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetObjectPointClouds( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* /*request*/, ::viam::service::vision::v1::GetObjectPointCloudsResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetModelParameterSchema > > > > > > > > > > > > > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_GetModelParameterSchema : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetModelParameterSchema() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_GetModelParameterSchema() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetModelParameterSchema(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetModelParameterSchemaRequest* /*request*/, ::viam::service::vision::v1::GetModelParameterSchemaResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetDetectorNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetDetectorNames() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_GetDetectorNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDetectorNames(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectorNamesRequest* /*request*/, ::viam::service::vision::v1::GetDetectorNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_AddDetector : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_AddDetector() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_AddDetector() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddDetector(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::AddDetectorRequest* /*request*/, ::viam::service::vision::v1::AddDetectorResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_RemoveDetector : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_RemoveDetector() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_RemoveDetector() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RemoveDetector(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::RemoveDetectorRequest* /*request*/, ::viam::service::vision::v1::RemoveDetectorResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetDetectionsFromCamera : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetDetectionsFromCamera() { + ::grpc::Service::MarkMethodGeneric(4); + } + ~WithGenericMethod_GetDetectionsFromCamera() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDetectionsFromCamera(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* /*request*/, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetDetections : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetDetections() { + ::grpc::Service::MarkMethodGeneric(5); + } + ~WithGenericMethod_GetDetections() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDetections(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectionsRequest* /*request*/, ::viam::service::vision::v1::GetDetectionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetClassifierNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetClassifierNames() { + ::grpc::Service::MarkMethodGeneric(6); + } + ~WithGenericMethod_GetClassifierNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetClassifierNames(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetClassifierNamesRequest* /*request*/, ::viam::service::vision::v1::GetClassifierNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_AddClassifier : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_AddClassifier() { + ::grpc::Service::MarkMethodGeneric(7); + } + ~WithGenericMethod_AddClassifier() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddClassifier(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::AddClassifierRequest* /*request*/, ::viam::service::vision::v1::AddClassifierResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_RemoveClassifier : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_RemoveClassifier() { + ::grpc::Service::MarkMethodGeneric(8); + } + ~WithGenericMethod_RemoveClassifier() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RemoveClassifier(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::RemoveClassifierRequest* /*request*/, ::viam::service::vision::v1::RemoveClassifierResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetClassificationsFromCamera : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetClassificationsFromCamera() { + ::grpc::Service::MarkMethodGeneric(9); + } + ~WithGenericMethod_GetClassificationsFromCamera() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetClassificationsFromCamera(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* /*request*/, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetClassifications : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetClassifications() { + ::grpc::Service::MarkMethodGeneric(10); + } + ~WithGenericMethod_GetClassifications() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetClassifications(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetClassificationsRequest* /*request*/, ::viam::service::vision::v1::GetClassificationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetSegmenterNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetSegmenterNames() { + ::grpc::Service::MarkMethodGeneric(11); + } + ~WithGenericMethod_GetSegmenterNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetSegmenterNames(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetSegmenterNamesRequest* /*request*/, ::viam::service::vision::v1::GetSegmenterNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_AddSegmenter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_AddSegmenter() { + ::grpc::Service::MarkMethodGeneric(12); + } + ~WithGenericMethod_AddSegmenter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddSegmenter(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::AddSegmenterRequest* /*request*/, ::viam::service::vision::v1::AddSegmenterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_RemoveSegmenter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_RemoveSegmenter() { + ::grpc::Service::MarkMethodGeneric(13); + } + ~WithGenericMethod_RemoveSegmenter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RemoveSegmenter(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::RemoveSegmenterRequest* /*request*/, ::viam::service::vision::v1::RemoveSegmenterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetObjectPointClouds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetObjectPointClouds() { + ::grpc::Service::MarkMethodGeneric(14); + } + ~WithGenericMethod_GetObjectPointClouds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetObjectPointClouds(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* /*request*/, ::viam::service::vision::v1::GetObjectPointCloudsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_GetModelParameterSchema : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetModelParameterSchema() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_GetModelParameterSchema() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetModelParameterSchema(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetModelParameterSchemaRequest* /*request*/, ::viam::service::vision::v1::GetModelParameterSchemaResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetModelParameterSchema(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetDetectorNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetDetectorNames() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_GetDetectorNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDetectorNames(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectorNamesRequest* /*request*/, ::viam::service::vision::v1::GetDetectorNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetDetectorNames(::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 WithRawMethod_AddDetector : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_AddDetector() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_AddDetector() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddDetector(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::AddDetectorRequest* /*request*/, ::viam::service::vision::v1::AddDetectorResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestAddDetector(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_RemoveDetector : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_RemoveDetector() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_RemoveDetector() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RemoveDetector(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::RemoveDetectorRequest* /*request*/, ::viam::service::vision::v1::RemoveDetectorResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRemoveDetector(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetDetectionsFromCamera : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetDetectionsFromCamera() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_GetDetectionsFromCamera() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDetectionsFromCamera(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* /*request*/, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetDetectionsFromCamera(::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(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetDetections : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetDetections() { + ::grpc::Service::MarkMethodRaw(5); + } + ~WithRawMethod_GetDetections() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDetections(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectionsRequest* /*request*/, ::viam::service::vision::v1::GetDetectionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetDetections(::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(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetClassifierNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetClassifierNames() { + ::grpc::Service::MarkMethodRaw(6); + } + ~WithRawMethod_GetClassifierNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetClassifierNames(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetClassifierNamesRequest* /*request*/, ::viam::service::vision::v1::GetClassifierNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetClassifierNames(::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(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_AddClassifier : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_AddClassifier() { + ::grpc::Service::MarkMethodRaw(7); + } + ~WithRawMethod_AddClassifier() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddClassifier(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::AddClassifierRequest* /*request*/, ::viam::service::vision::v1::AddClassifierResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestAddClassifier(::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(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_RemoveClassifier : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_RemoveClassifier() { + ::grpc::Service::MarkMethodRaw(8); + } + ~WithRawMethod_RemoveClassifier() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RemoveClassifier(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::RemoveClassifierRequest* /*request*/, ::viam::service::vision::v1::RemoveClassifierResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRemoveClassifier(::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(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetClassificationsFromCamera : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetClassificationsFromCamera() { + ::grpc::Service::MarkMethodRaw(9); + } + ~WithRawMethod_GetClassificationsFromCamera() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetClassificationsFromCamera(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* /*request*/, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetClassificationsFromCamera(::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(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetClassifications : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetClassifications() { + ::grpc::Service::MarkMethodRaw(10); + } + ~WithRawMethod_GetClassifications() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetClassifications(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetClassificationsRequest* /*request*/, ::viam::service::vision::v1::GetClassificationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetClassifications(::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 WithRawMethod_GetSegmenterNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetSegmenterNames() { + ::grpc::Service::MarkMethodRaw(11); + } + ~WithRawMethod_GetSegmenterNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetSegmenterNames(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetSegmenterNamesRequest* /*request*/, ::viam::service::vision::v1::GetSegmenterNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetSegmenterNames(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_AddSegmenter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_AddSegmenter() { + ::grpc::Service::MarkMethodRaw(12); + } + ~WithRawMethod_AddSegmenter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddSegmenter(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::AddSegmenterRequest* /*request*/, ::viam::service::vision::v1::AddSegmenterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestAddSegmenter(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_RemoveSegmenter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_RemoveSegmenter() { + ::grpc::Service::MarkMethodRaw(13); + } + ~WithRawMethod_RemoveSegmenter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RemoveSegmenter(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::RemoveSegmenterRequest* /*request*/, ::viam::service::vision::v1::RemoveSegmenterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRemoveSegmenter(::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(13, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetObjectPointClouds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetObjectPointClouds() { + ::grpc::Service::MarkMethodRaw(14); + } + ~WithRawMethod_GetObjectPointClouds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetObjectPointClouds(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* /*request*/, ::viam::service::vision::v1::GetObjectPointCloudsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetObjectPointClouds(::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(14, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_GetModelParameterSchema : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetModelParameterSchema() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetModelParameterSchema(context, request, response); })); + } + ~WithRawCallbackMethod_GetModelParameterSchema() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetModelParameterSchema(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetModelParameterSchemaRequest* /*request*/, ::viam::service::vision::v1::GetModelParameterSchemaResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetModelParameterSchema( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetDetectorNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetDetectorNames() { + ::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->GetDetectorNames(context, request, response); })); + } + ~WithRawCallbackMethod_GetDetectorNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDetectorNames(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectorNamesRequest* /*request*/, ::viam::service::vision::v1::GetDetectorNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetDetectorNames( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_AddDetector : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_AddDetector() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->AddDetector(context, request, response); })); + } + ~WithRawCallbackMethod_AddDetector() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddDetector(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::AddDetectorRequest* /*request*/, ::viam::service::vision::v1::AddDetectorResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* AddDetector( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_RemoveDetector : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_RemoveDetector() { + ::grpc::Service::MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RemoveDetector(context, request, response); })); + } + ~WithRawCallbackMethod_RemoveDetector() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RemoveDetector(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::RemoveDetectorRequest* /*request*/, ::viam::service::vision::v1::RemoveDetectorResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* RemoveDetector( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetDetectionsFromCamera : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetDetectionsFromCamera() { + ::grpc::Service::MarkMethodRawCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetDetectionsFromCamera(context, request, response); })); + } + ~WithRawCallbackMethod_GetDetectionsFromCamera() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDetectionsFromCamera(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* /*request*/, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetDetectionsFromCamera( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetDetections : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetDetections() { + ::grpc::Service::MarkMethodRawCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetDetections(context, request, response); })); + } + ~WithRawCallbackMethod_GetDetections() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDetections(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectionsRequest* /*request*/, ::viam::service::vision::v1::GetDetectionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetDetections( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetClassifierNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetClassifierNames() { + ::grpc::Service::MarkMethodRawCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetClassifierNames(context, request, response); })); + } + ~WithRawCallbackMethod_GetClassifierNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetClassifierNames(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetClassifierNamesRequest* /*request*/, ::viam::service::vision::v1::GetClassifierNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetClassifierNames( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_AddClassifier : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_AddClassifier() { + ::grpc::Service::MarkMethodRawCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->AddClassifier(context, request, response); })); + } + ~WithRawCallbackMethod_AddClassifier() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddClassifier(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::AddClassifierRequest* /*request*/, ::viam::service::vision::v1::AddClassifierResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* AddClassifier( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_RemoveClassifier : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_RemoveClassifier() { + ::grpc::Service::MarkMethodRawCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RemoveClassifier(context, request, response); })); + } + ~WithRawCallbackMethod_RemoveClassifier() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RemoveClassifier(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::RemoveClassifierRequest* /*request*/, ::viam::service::vision::v1::RemoveClassifierResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* RemoveClassifier( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetClassificationsFromCamera : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetClassificationsFromCamera() { + ::grpc::Service::MarkMethodRawCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetClassificationsFromCamera(context, request, response); })); + } + ~WithRawCallbackMethod_GetClassificationsFromCamera() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetClassificationsFromCamera(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* /*request*/, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetClassificationsFromCamera( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetClassifications : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetClassifications() { + ::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->GetClassifications(context, request, response); })); + } + ~WithRawCallbackMethod_GetClassifications() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetClassifications(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetClassificationsRequest* /*request*/, ::viam::service::vision::v1::GetClassificationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetClassifications( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetSegmenterNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetSegmenterNames() { + ::grpc::Service::MarkMethodRawCallback(11, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetSegmenterNames(context, request, response); })); + } + ~WithRawCallbackMethod_GetSegmenterNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetSegmenterNames(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetSegmenterNamesRequest* /*request*/, ::viam::service::vision::v1::GetSegmenterNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetSegmenterNames( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_AddSegmenter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_AddSegmenter() { + ::grpc::Service::MarkMethodRawCallback(12, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->AddSegmenter(context, request, response); })); + } + ~WithRawCallbackMethod_AddSegmenter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddSegmenter(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::AddSegmenterRequest* /*request*/, ::viam::service::vision::v1::AddSegmenterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* AddSegmenter( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_RemoveSegmenter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_RemoveSegmenter() { + ::grpc::Service::MarkMethodRawCallback(13, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RemoveSegmenter(context, request, response); })); + } + ~WithRawCallbackMethod_RemoveSegmenter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RemoveSegmenter(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::RemoveSegmenterRequest* /*request*/, ::viam::service::vision::v1::RemoveSegmenterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* RemoveSegmenter( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetObjectPointClouds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetObjectPointClouds() { + ::grpc::Service::MarkMethodRawCallback(14, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetObjectPointClouds(context, request, response); })); + } + ~WithRawCallbackMethod_GetObjectPointClouds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetObjectPointClouds(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* /*request*/, ::viam::service::vision::v1::GetObjectPointCloudsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetObjectPointClouds( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_GetModelParameterSchema : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetModelParameterSchema() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::vision::v1::GetModelParameterSchemaRequest, ::viam::service::vision::v1::GetModelParameterSchemaResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::vision::v1::GetModelParameterSchemaRequest, ::viam::service::vision::v1::GetModelParameterSchemaResponse>* streamer) { + return this->StreamedGetModelParameterSchema(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetModelParameterSchema() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetModelParameterSchema(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetModelParameterSchemaRequest* /*request*/, ::viam::service::vision::v1::GetModelParameterSchemaResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetModelParameterSchema(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::vision::v1::GetModelParameterSchemaRequest,::viam::service::vision::v1::GetModelParameterSchemaResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetDetectorNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetDetectorNames() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::vision::v1::GetDetectorNamesRequest, ::viam::service::vision::v1::GetDetectorNamesResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::vision::v1::GetDetectorNamesRequest, ::viam::service::vision::v1::GetDetectorNamesResponse>* streamer) { + return this->StreamedGetDetectorNames(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetDetectorNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetDetectorNames(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectorNamesRequest* /*request*/, ::viam::service::vision::v1::GetDetectorNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetDetectorNames(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::vision::v1::GetDetectorNamesRequest,::viam::service::vision::v1::GetDetectorNamesResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_AddDetector : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_AddDetector() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::vision::v1::AddDetectorRequest, ::viam::service::vision::v1::AddDetectorResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::vision::v1::AddDetectorRequest, ::viam::service::vision::v1::AddDetectorResponse>* streamer) { + return this->StreamedAddDetector(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_AddDetector() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status AddDetector(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::AddDetectorRequest* /*request*/, ::viam::service::vision::v1::AddDetectorResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedAddDetector(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::vision::v1::AddDetectorRequest,::viam::service::vision::v1::AddDetectorResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_RemoveDetector : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_RemoveDetector() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::vision::v1::RemoveDetectorRequest, ::viam::service::vision::v1::RemoveDetectorResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::vision::v1::RemoveDetectorRequest, ::viam::service::vision::v1::RemoveDetectorResponse>* streamer) { + return this->StreamedRemoveDetector(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_RemoveDetector() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status RemoveDetector(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::RemoveDetectorRequest* /*request*/, ::viam::service::vision::v1::RemoveDetectorResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedRemoveDetector(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::vision::v1::RemoveDetectorRequest,::viam::service::vision::v1::RemoveDetectorResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetDetectionsFromCamera : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetDetectionsFromCamera() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::viam::service::vision::v1::GetDetectionsFromCameraResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::viam::service::vision::v1::GetDetectionsFromCameraResponse>* streamer) { + return this->StreamedGetDetectionsFromCamera(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetDetectionsFromCamera() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetDetectionsFromCamera(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* /*request*/, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetDetectionsFromCamera(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::vision::v1::GetDetectionsFromCameraRequest,::viam::service::vision::v1::GetDetectionsFromCameraResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetDetections : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetDetections() { + ::grpc::Service::MarkMethodStreamed(5, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::vision::v1::GetDetectionsRequest, ::viam::service::vision::v1::GetDetectionsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::vision::v1::GetDetectionsRequest, ::viam::service::vision::v1::GetDetectionsResponse>* streamer) { + return this->StreamedGetDetections(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetDetections() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetDetections(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectionsRequest* /*request*/, ::viam::service::vision::v1::GetDetectionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetDetections(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::vision::v1::GetDetectionsRequest,::viam::service::vision::v1::GetDetectionsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetClassifierNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetClassifierNames() { + ::grpc::Service::MarkMethodStreamed(6, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::vision::v1::GetClassifierNamesRequest, ::viam::service::vision::v1::GetClassifierNamesResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::vision::v1::GetClassifierNamesRequest, ::viam::service::vision::v1::GetClassifierNamesResponse>* streamer) { + return this->StreamedGetClassifierNames(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetClassifierNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetClassifierNames(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetClassifierNamesRequest* /*request*/, ::viam::service::vision::v1::GetClassifierNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetClassifierNames(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::vision::v1::GetClassifierNamesRequest,::viam::service::vision::v1::GetClassifierNamesResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_AddClassifier : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_AddClassifier() { + ::grpc::Service::MarkMethodStreamed(7, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::vision::v1::AddClassifierRequest, ::viam::service::vision::v1::AddClassifierResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::vision::v1::AddClassifierRequest, ::viam::service::vision::v1::AddClassifierResponse>* streamer) { + return this->StreamedAddClassifier(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_AddClassifier() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status AddClassifier(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::AddClassifierRequest* /*request*/, ::viam::service::vision::v1::AddClassifierResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedAddClassifier(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::vision::v1::AddClassifierRequest,::viam::service::vision::v1::AddClassifierResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_RemoveClassifier : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_RemoveClassifier() { + ::grpc::Service::MarkMethodStreamed(8, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::vision::v1::RemoveClassifierRequest, ::viam::service::vision::v1::RemoveClassifierResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::vision::v1::RemoveClassifierRequest, ::viam::service::vision::v1::RemoveClassifierResponse>* streamer) { + return this->StreamedRemoveClassifier(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_RemoveClassifier() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status RemoveClassifier(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::RemoveClassifierRequest* /*request*/, ::viam::service::vision::v1::RemoveClassifierResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedRemoveClassifier(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::vision::v1::RemoveClassifierRequest,::viam::service::vision::v1::RemoveClassifierResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetClassificationsFromCamera : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetClassificationsFromCamera() { + ::grpc::Service::MarkMethodStreamed(9, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::viam::service::vision::v1::GetClassificationsFromCameraResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::viam::service::vision::v1::GetClassificationsFromCameraResponse>* streamer) { + return this->StreamedGetClassificationsFromCamera(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetClassificationsFromCamera() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetClassificationsFromCamera(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* /*request*/, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetClassificationsFromCamera(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::vision::v1::GetClassificationsFromCameraRequest,::viam::service::vision::v1::GetClassificationsFromCameraResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetClassifications : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetClassifications() { + ::grpc::Service::MarkMethodStreamed(10, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::vision::v1::GetClassificationsRequest, ::viam::service::vision::v1::GetClassificationsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::vision::v1::GetClassificationsRequest, ::viam::service::vision::v1::GetClassificationsResponse>* streamer) { + return this->StreamedGetClassifications(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetClassifications() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetClassifications(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetClassificationsRequest* /*request*/, ::viam::service::vision::v1::GetClassificationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetClassifications(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::vision::v1::GetClassificationsRequest,::viam::service::vision::v1::GetClassificationsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetSegmenterNames : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetSegmenterNames() { + ::grpc::Service::MarkMethodStreamed(11, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::vision::v1::GetSegmenterNamesRequest, ::viam::service::vision::v1::GetSegmenterNamesResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::vision::v1::GetSegmenterNamesRequest, ::viam::service::vision::v1::GetSegmenterNamesResponse>* streamer) { + return this->StreamedGetSegmenterNames(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetSegmenterNames() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetSegmenterNames(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetSegmenterNamesRequest* /*request*/, ::viam::service::vision::v1::GetSegmenterNamesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetSegmenterNames(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::vision::v1::GetSegmenterNamesRequest,::viam::service::vision::v1::GetSegmenterNamesResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_AddSegmenter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_AddSegmenter() { + ::grpc::Service::MarkMethodStreamed(12, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::vision::v1::AddSegmenterRequest, ::viam::service::vision::v1::AddSegmenterResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::vision::v1::AddSegmenterRequest, ::viam::service::vision::v1::AddSegmenterResponse>* streamer) { + return this->StreamedAddSegmenter(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_AddSegmenter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status AddSegmenter(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::AddSegmenterRequest* /*request*/, ::viam::service::vision::v1::AddSegmenterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedAddSegmenter(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::vision::v1::AddSegmenterRequest,::viam::service::vision::v1::AddSegmenterResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_RemoveSegmenter : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_RemoveSegmenter() { + ::grpc::Service::MarkMethodStreamed(13, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::vision::v1::RemoveSegmenterRequest, ::viam::service::vision::v1::RemoveSegmenterResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::vision::v1::RemoveSegmenterRequest, ::viam::service::vision::v1::RemoveSegmenterResponse>* streamer) { + return this->StreamedRemoveSegmenter(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_RemoveSegmenter() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status RemoveSegmenter(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::RemoveSegmenterRequest* /*request*/, ::viam::service::vision::v1::RemoveSegmenterResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedRemoveSegmenter(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::vision::v1::RemoveSegmenterRequest,::viam::service::vision::v1::RemoveSegmenterResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetObjectPointClouds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetObjectPointClouds() { + ::grpc::Service::MarkMethodStreamed(14, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::viam::service::vision::v1::GetObjectPointCloudsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::viam::service::vision::v1::GetObjectPointCloudsResponse>* streamer) { + return this->StreamedGetObjectPointClouds(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetObjectPointClouds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetObjectPointClouds(::grpc::ServerContext* /*context*/, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* /*request*/, ::viam::service::vision::v1::GetObjectPointCloudsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetObjectPointClouds(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::vision::v1::GetObjectPointCloudsRequest,::viam::service::vision::v1::GetObjectPointCloudsResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetModelParameterSchema > > > > > > > > > > > > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_GetModelParameterSchema > > > > > > > > > > > > > > StreamedService; +}; + +} // namespace v1 +} // namespace vision +} // namespace service +} // namespace viam + + +#endif // GRPC_service_2fvision_2fv1_2fvision_2eproto__INCLUDED diff --git a/src/gen/service/vision/v1/vision.pb.cc b/src/gen/service/vision/v1/vision.pb.cc new file mode 100644 index 000000000..d485052f0 --- /dev/null +++ b/src/gen/service/vision/v1/vision.pb.cc @@ -0,0 +1,8245 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service/vision/v1/vision.proto + +#include "service/vision/v1/vision.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 vision { +namespace v1 { +PROTOBUF_CONSTEXPR GetModelParameterSchemaRequest::GetModelParameterSchemaRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.model_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetModelParameterSchemaRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetModelParameterSchemaRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetModelParameterSchemaRequestDefaultTypeInternal() {} + union { + GetModelParameterSchemaRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetModelParameterSchemaRequestDefaultTypeInternal _GetModelParameterSchemaRequest_default_instance_; +PROTOBUF_CONSTEXPR GetModelParameterSchemaResponse::GetModelParameterSchemaResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.model_parameter_schema_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetModelParameterSchemaResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetModelParameterSchemaResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetModelParameterSchemaResponseDefaultTypeInternal() {} + union { + GetModelParameterSchemaResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetModelParameterSchemaResponseDefaultTypeInternal _GetModelParameterSchemaResponse_default_instance_; +PROTOBUF_CONSTEXPR GetDetectorNamesRequest::GetDetectorNamesRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetDetectorNamesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetDetectorNamesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetDetectorNamesRequestDefaultTypeInternal() {} + union { + GetDetectorNamesRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDetectorNamesRequestDefaultTypeInternal _GetDetectorNamesRequest_default_instance_; +PROTOBUF_CONSTEXPR GetDetectorNamesResponse::GetDetectorNamesResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.detector_names_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetDetectorNamesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetDetectorNamesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetDetectorNamesResponseDefaultTypeInternal() {} + union { + GetDetectorNamesResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDetectorNamesResponseDefaultTypeInternal _GetDetectorNamesResponse_default_instance_; +PROTOBUF_CONSTEXPR AddDetectorRequest::AddDetectorRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.detector_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.detector_model_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.detector_parameters_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct AddDetectorRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR AddDetectorRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AddDetectorRequestDefaultTypeInternal() {} + union { + AddDetectorRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddDetectorRequestDefaultTypeInternal _AddDetectorRequest_default_instance_; +PROTOBUF_CONSTEXPR AddDetectorResponse::AddDetectorResponse( + ::_pbi::ConstantInitialized) {} +struct AddDetectorResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AddDetectorResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AddDetectorResponseDefaultTypeInternal() {} + union { + AddDetectorResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddDetectorResponseDefaultTypeInternal _AddDetectorResponse_default_instance_; +PROTOBUF_CONSTEXPR RemoveDetectorRequest::RemoveDetectorRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.detector_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RemoveDetectorRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoveDetectorRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RemoveDetectorRequestDefaultTypeInternal() {} + union { + RemoveDetectorRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveDetectorRequestDefaultTypeInternal _RemoveDetectorRequest_default_instance_; +PROTOBUF_CONSTEXPR RemoveDetectorResponse::RemoveDetectorResponse( + ::_pbi::ConstantInitialized) {} +struct RemoveDetectorResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoveDetectorResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RemoveDetectorResponseDefaultTypeInternal() {} + union { + RemoveDetectorResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveDetectorResponseDefaultTypeInternal _RemoveDetectorResponse_default_instance_; +PROTOBUF_CONSTEXPR GetDetectionsRequest::GetDetectionsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.image_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mime_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.detector_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.width_)*/int64_t{0} + , /*decltype(_impl_.height_)*/int64_t{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetDetectionsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetDetectionsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetDetectionsRequestDefaultTypeInternal() {} + union { + GetDetectionsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDetectionsRequestDefaultTypeInternal _GetDetectionsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetDetectionsResponse::GetDetectionsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.detections_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetDetectionsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetDetectionsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetDetectionsResponseDefaultTypeInternal() {} + union { + GetDetectionsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDetectionsResponseDefaultTypeInternal _GetDetectionsResponse_default_instance_; +PROTOBUF_CONSTEXPR GetDetectionsFromCameraRequest::GetDetectionsFromCameraRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.camera_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.detector_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetDetectionsFromCameraRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetDetectionsFromCameraRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetDetectionsFromCameraRequestDefaultTypeInternal() {} + union { + GetDetectionsFromCameraRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDetectionsFromCameraRequestDefaultTypeInternal _GetDetectionsFromCameraRequest_default_instance_; +PROTOBUF_CONSTEXPR GetDetectionsFromCameraResponse::GetDetectionsFromCameraResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.detections_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetDetectionsFromCameraResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetDetectionsFromCameraResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetDetectionsFromCameraResponseDefaultTypeInternal() {} + union { + GetDetectionsFromCameraResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDetectionsFromCameraResponseDefaultTypeInternal _GetDetectionsFromCameraResponse_default_instance_; +PROTOBUF_CONSTEXPR Detection::Detection( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.class_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.x_min_)*/int64_t{0} + , /*decltype(_impl_.y_min_)*/int64_t{0} + , /*decltype(_impl_.x_max_)*/int64_t{0} + , /*decltype(_impl_.y_max_)*/int64_t{0} + , /*decltype(_impl_.confidence_)*/0} {} +struct DetectionDefaultTypeInternal { + PROTOBUF_CONSTEXPR DetectionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DetectionDefaultTypeInternal() {} + union { + Detection _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DetectionDefaultTypeInternal _Detection_default_instance_; +PROTOBUF_CONSTEXPR GetClassifierNamesRequest::GetClassifierNamesRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetClassifierNamesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetClassifierNamesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetClassifierNamesRequestDefaultTypeInternal() {} + union { + GetClassifierNamesRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetClassifierNamesRequestDefaultTypeInternal _GetClassifierNamesRequest_default_instance_; +PROTOBUF_CONSTEXPR GetClassifierNamesResponse::GetClassifierNamesResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.classifier_names_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetClassifierNamesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetClassifierNamesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetClassifierNamesResponseDefaultTypeInternal() {} + union { + GetClassifierNamesResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetClassifierNamesResponseDefaultTypeInternal _GetClassifierNamesResponse_default_instance_; +PROTOBUF_CONSTEXPR AddClassifierRequest::AddClassifierRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.classifier_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.classifier_model_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.classifier_parameters_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct AddClassifierRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR AddClassifierRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AddClassifierRequestDefaultTypeInternal() {} + union { + AddClassifierRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddClassifierRequestDefaultTypeInternal _AddClassifierRequest_default_instance_; +PROTOBUF_CONSTEXPR AddClassifierResponse::AddClassifierResponse( + ::_pbi::ConstantInitialized) {} +struct AddClassifierResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AddClassifierResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AddClassifierResponseDefaultTypeInternal() {} + union { + AddClassifierResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddClassifierResponseDefaultTypeInternal _AddClassifierResponse_default_instance_; +PROTOBUF_CONSTEXPR RemoveClassifierRequest::RemoveClassifierRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.classifier_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RemoveClassifierRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoveClassifierRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RemoveClassifierRequestDefaultTypeInternal() {} + union { + RemoveClassifierRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveClassifierRequestDefaultTypeInternal _RemoveClassifierRequest_default_instance_; +PROTOBUF_CONSTEXPR RemoveClassifierResponse::RemoveClassifierResponse( + ::_pbi::ConstantInitialized) {} +struct RemoveClassifierResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoveClassifierResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RemoveClassifierResponseDefaultTypeInternal() {} + union { + RemoveClassifierResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveClassifierResponseDefaultTypeInternal _RemoveClassifierResponse_default_instance_; +PROTOBUF_CONSTEXPR GetClassificationsRequest::GetClassificationsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.image_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mime_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.classifier_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.width_)*/0 + , /*decltype(_impl_.height_)*/0 + , /*decltype(_impl_.n_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetClassificationsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetClassificationsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetClassificationsRequestDefaultTypeInternal() {} + union { + GetClassificationsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetClassificationsRequestDefaultTypeInternal _GetClassificationsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetClassificationsResponse::GetClassificationsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.classifications_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetClassificationsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetClassificationsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetClassificationsResponseDefaultTypeInternal() {} + union { + GetClassificationsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetClassificationsResponseDefaultTypeInternal _GetClassificationsResponse_default_instance_; +PROTOBUF_CONSTEXPR GetClassificationsFromCameraRequest::GetClassificationsFromCameraRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.camera_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.classifier_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.n_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetClassificationsFromCameraRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetClassificationsFromCameraRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetClassificationsFromCameraRequestDefaultTypeInternal() {} + union { + GetClassificationsFromCameraRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetClassificationsFromCameraRequestDefaultTypeInternal _GetClassificationsFromCameraRequest_default_instance_; +PROTOBUF_CONSTEXPR GetClassificationsFromCameraResponse::GetClassificationsFromCameraResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.classifications_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetClassificationsFromCameraResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetClassificationsFromCameraResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetClassificationsFromCameraResponseDefaultTypeInternal() {} + union { + GetClassificationsFromCameraResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetClassificationsFromCameraResponseDefaultTypeInternal _GetClassificationsFromCameraResponse_default_instance_; +PROTOBUF_CONSTEXPR Classification::Classification( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.class_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.confidence_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ClassificationDefaultTypeInternal { + PROTOBUF_CONSTEXPR ClassificationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ClassificationDefaultTypeInternal() {} + union { + Classification _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ClassificationDefaultTypeInternal _Classification_default_instance_; +PROTOBUF_CONSTEXPR GetSegmenterNamesRequest::GetSegmenterNamesRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetSegmenterNamesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetSegmenterNamesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetSegmenterNamesRequestDefaultTypeInternal() {} + union { + GetSegmenterNamesRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSegmenterNamesRequestDefaultTypeInternal _GetSegmenterNamesRequest_default_instance_; +PROTOBUF_CONSTEXPR GetSegmenterNamesResponse::GetSegmenterNamesResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.segmenter_names_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetSegmenterNamesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetSegmenterNamesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetSegmenterNamesResponseDefaultTypeInternal() {} + union { + GetSegmenterNamesResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSegmenterNamesResponseDefaultTypeInternal _GetSegmenterNamesResponse_default_instance_; +PROTOBUF_CONSTEXPR AddSegmenterRequest::AddSegmenterRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.segmenter_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.segmenter_model_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.segmenter_parameters_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct AddSegmenterRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR AddSegmenterRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AddSegmenterRequestDefaultTypeInternal() {} + union { + AddSegmenterRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddSegmenterRequestDefaultTypeInternal _AddSegmenterRequest_default_instance_; +PROTOBUF_CONSTEXPR AddSegmenterResponse::AddSegmenterResponse( + ::_pbi::ConstantInitialized) {} +struct AddSegmenterResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AddSegmenterResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AddSegmenterResponseDefaultTypeInternal() {} + union { + AddSegmenterResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddSegmenterResponseDefaultTypeInternal _AddSegmenterResponse_default_instance_; +PROTOBUF_CONSTEXPR RemoveSegmenterRequest::RemoveSegmenterRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.segmenter_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RemoveSegmenterRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoveSegmenterRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RemoveSegmenterRequestDefaultTypeInternal() {} + union { + RemoveSegmenterRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveSegmenterRequestDefaultTypeInternal _RemoveSegmenterRequest_default_instance_; +PROTOBUF_CONSTEXPR RemoveSegmenterResponse::RemoveSegmenterResponse( + ::_pbi::ConstantInitialized) {} +struct RemoveSegmenterResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoveSegmenterResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RemoveSegmenterResponseDefaultTypeInternal() {} + union { + RemoveSegmenterResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveSegmenterResponseDefaultTypeInternal _RemoveSegmenterResponse_default_instance_; +PROTOBUF_CONSTEXPR GetObjectPointCloudsRequest::GetObjectPointCloudsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.camera_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.segmenter_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mime_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetObjectPointCloudsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetObjectPointCloudsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetObjectPointCloudsRequestDefaultTypeInternal() {} + union { + GetObjectPointCloudsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetObjectPointCloudsRequestDefaultTypeInternal _GetObjectPointCloudsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetObjectPointCloudsResponse::GetObjectPointCloudsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.objects_)*/{} + , /*decltype(_impl_.mime_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GetObjectPointCloudsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetObjectPointCloudsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetObjectPointCloudsResponseDefaultTypeInternal() {} + union { + GetObjectPointCloudsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetObjectPointCloudsResponseDefaultTypeInternal _GetObjectPointCloudsResponse_default_instance_; +} // namespace v1 +} // namespace vision +} // namespace service +} // namespace viam +static ::_pb::Metadata file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[32]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_service_2fvision_2fv1_2fvision_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fvision_2fv1_2fvision_2eproto = nullptr; + +const uint32_t TableStruct_service_2fvision_2fv1_2fvision_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetModelParameterSchemaRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetModelParameterSchemaRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetModelParameterSchemaRequest, _impl_.model_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetModelParameterSchemaResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetModelParameterSchemaResponse, _impl_.model_parameter_schema_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectorNamesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectorNamesRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectorNamesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectorNamesResponse, _impl_.detector_names_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::AddDetectorRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::AddDetectorRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::AddDetectorRequest, _impl_.detector_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::AddDetectorRequest, _impl_.detector_model_type_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::AddDetectorRequest, _impl_.detector_parameters_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::AddDetectorResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::RemoveDetectorRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::RemoveDetectorRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::RemoveDetectorRequest, _impl_.detector_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::RemoveDetectorResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, _impl_.image_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, _impl_.width_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, _impl_.height_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, _impl_.mime_type_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, _impl_.detector_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsResponse, _impl_.detections_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsFromCameraRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsFromCameraRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsFromCameraRequest, _impl_.camera_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsFromCameraRequest, _impl_.detector_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsFromCameraResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsFromCameraResponse, _impl_.detections_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, _impl_.x_min_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, _impl_.y_min_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, _impl_.x_max_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, _impl_.y_max_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, _impl_.confidence_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, _impl_.class_name_), + 0, + 1, + 2, + 3, + ~0u, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassifierNamesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassifierNamesRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassifierNamesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassifierNamesResponse, _impl_.classifier_names_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::AddClassifierRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::AddClassifierRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::AddClassifierRequest, _impl_.classifier_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::AddClassifierRequest, _impl_.classifier_model_type_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::AddClassifierRequest, _impl_.classifier_parameters_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::AddClassifierResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::RemoveClassifierRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::RemoveClassifierRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::RemoveClassifierRequest, _impl_.classifier_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::RemoveClassifierResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, _impl_.image_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, _impl_.width_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, _impl_.height_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, _impl_.mime_type_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, _impl_.classifier_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, _impl_.n_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsResponse, _impl_.classifications_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraRequest, _impl_.camera_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraRequest, _impl_.classifier_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraRequest, _impl_.n_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraResponse, _impl_.classifications_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Classification, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Classification, _impl_.class_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Classification, _impl_.confidence_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetSegmenterNamesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetSegmenterNamesRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetSegmenterNamesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetSegmenterNamesResponse, _impl_.segmenter_names_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::AddSegmenterRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::AddSegmenterRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::AddSegmenterRequest, _impl_.segmenter_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::AddSegmenterRequest, _impl_.segmenter_model_type_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::AddSegmenterRequest, _impl_.segmenter_parameters_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::AddSegmenterResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::RemoveSegmenterRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::RemoveSegmenterRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::RemoveSegmenterRequest, _impl_.segmenter_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::RemoveSegmenterResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsRequest, _impl_.camera_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsRequest, _impl_.segmenter_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsRequest, _impl_.mime_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsResponse, _impl_.mime_type_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsResponse, _impl_.objects_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::service::vision::v1::GetModelParameterSchemaRequest)}, + { 8, -1, -1, sizeof(::viam::service::vision::v1::GetModelParameterSchemaResponse)}, + { 15, -1, -1, sizeof(::viam::service::vision::v1::GetDetectorNamesRequest)}, + { 22, -1, -1, sizeof(::viam::service::vision::v1::GetDetectorNamesResponse)}, + { 29, -1, -1, sizeof(::viam::service::vision::v1::AddDetectorRequest)}, + { 39, -1, -1, sizeof(::viam::service::vision::v1::AddDetectorResponse)}, + { 45, -1, -1, sizeof(::viam::service::vision::v1::RemoveDetectorRequest)}, + { 53, -1, -1, sizeof(::viam::service::vision::v1::RemoveDetectorResponse)}, + { 59, -1, -1, sizeof(::viam::service::vision::v1::GetDetectionsRequest)}, + { 71, -1, -1, sizeof(::viam::service::vision::v1::GetDetectionsResponse)}, + { 78, -1, -1, sizeof(::viam::service::vision::v1::GetDetectionsFromCameraRequest)}, + { 87, -1, -1, sizeof(::viam::service::vision::v1::GetDetectionsFromCameraResponse)}, + { 94, 106, -1, sizeof(::viam::service::vision::v1::Detection)}, + { 112, -1, -1, sizeof(::viam::service::vision::v1::GetClassifierNamesRequest)}, + { 119, -1, -1, sizeof(::viam::service::vision::v1::GetClassifierNamesResponse)}, + { 126, -1, -1, sizeof(::viam::service::vision::v1::AddClassifierRequest)}, + { 136, -1, -1, sizeof(::viam::service::vision::v1::AddClassifierResponse)}, + { 142, -1, -1, sizeof(::viam::service::vision::v1::RemoveClassifierRequest)}, + { 150, -1, -1, sizeof(::viam::service::vision::v1::RemoveClassifierResponse)}, + { 156, -1, -1, sizeof(::viam::service::vision::v1::GetClassificationsRequest)}, + { 169, -1, -1, sizeof(::viam::service::vision::v1::GetClassificationsResponse)}, + { 176, -1, -1, sizeof(::viam::service::vision::v1::GetClassificationsFromCameraRequest)}, + { 186, -1, -1, sizeof(::viam::service::vision::v1::GetClassificationsFromCameraResponse)}, + { 193, -1, -1, sizeof(::viam::service::vision::v1::Classification)}, + { 201, -1, -1, sizeof(::viam::service::vision::v1::GetSegmenterNamesRequest)}, + { 208, -1, -1, sizeof(::viam::service::vision::v1::GetSegmenterNamesResponse)}, + { 215, -1, -1, sizeof(::viam::service::vision::v1::AddSegmenterRequest)}, + { 225, -1, -1, sizeof(::viam::service::vision::v1::AddSegmenterResponse)}, + { 231, -1, -1, sizeof(::viam::service::vision::v1::RemoveSegmenterRequest)}, + { 239, -1, -1, sizeof(::viam::service::vision::v1::RemoveSegmenterResponse)}, + { 245, -1, -1, sizeof(::viam::service::vision::v1::GetObjectPointCloudsRequest)}, + { 255, -1, -1, sizeof(::viam::service::vision::v1::GetObjectPointCloudsResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::service::vision::v1::_GetModelParameterSchemaRequest_default_instance_._instance, + &::viam::service::vision::v1::_GetModelParameterSchemaResponse_default_instance_._instance, + &::viam::service::vision::v1::_GetDetectorNamesRequest_default_instance_._instance, + &::viam::service::vision::v1::_GetDetectorNamesResponse_default_instance_._instance, + &::viam::service::vision::v1::_AddDetectorRequest_default_instance_._instance, + &::viam::service::vision::v1::_AddDetectorResponse_default_instance_._instance, + &::viam::service::vision::v1::_RemoveDetectorRequest_default_instance_._instance, + &::viam::service::vision::v1::_RemoveDetectorResponse_default_instance_._instance, + &::viam::service::vision::v1::_GetDetectionsRequest_default_instance_._instance, + &::viam::service::vision::v1::_GetDetectionsResponse_default_instance_._instance, + &::viam::service::vision::v1::_GetDetectionsFromCameraRequest_default_instance_._instance, + &::viam::service::vision::v1::_GetDetectionsFromCameraResponse_default_instance_._instance, + &::viam::service::vision::v1::_Detection_default_instance_._instance, + &::viam::service::vision::v1::_GetClassifierNamesRequest_default_instance_._instance, + &::viam::service::vision::v1::_GetClassifierNamesResponse_default_instance_._instance, + &::viam::service::vision::v1::_AddClassifierRequest_default_instance_._instance, + &::viam::service::vision::v1::_AddClassifierResponse_default_instance_._instance, + &::viam::service::vision::v1::_RemoveClassifierRequest_default_instance_._instance, + &::viam::service::vision::v1::_RemoveClassifierResponse_default_instance_._instance, + &::viam::service::vision::v1::_GetClassificationsRequest_default_instance_._instance, + &::viam::service::vision::v1::_GetClassificationsResponse_default_instance_._instance, + &::viam::service::vision::v1::_GetClassificationsFromCameraRequest_default_instance_._instance, + &::viam::service::vision::v1::_GetClassificationsFromCameraResponse_default_instance_._instance, + &::viam::service::vision::v1::_Classification_default_instance_._instance, + &::viam::service::vision::v1::_GetSegmenterNamesRequest_default_instance_._instance, + &::viam::service::vision::v1::_GetSegmenterNamesResponse_default_instance_._instance, + &::viam::service::vision::v1::_AddSegmenterRequest_default_instance_._instance, + &::viam::service::vision::v1::_AddSegmenterResponse_default_instance_._instance, + &::viam::service::vision::v1::_RemoveSegmenterRequest_default_instance_._instance, + &::viam::service::vision::v1::_RemoveSegmenterResponse_default_instance_._instance, + &::viam::service::vision::v1::_GetObjectPointCloudsRequest_default_instance_._instance, + &::viam::service::vision::v1::_GetObjectPointCloudsResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_service_2fvision_2fv1_2fvision_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\036service/vision/v1/vision.proto\022\026viam.s" + "ervice.vision.v1\032\026common/v1/common.proto" + "\032\034google/api/annotations.proto\032\034google/p" + "rotobuf/struct.proto\"S\n\036GetModelParamete" + "rSchemaRequest\022\022\n\004name\030\001 \001(\tR\004name\022\035\n\nmo" + "del_type\030\002 \001(\tR\tmodelType\"W\n\037GetModelPar" + "ameterSchemaResponse\0224\n\026model_parameter_" + "schema\030\001 \001(\014R\024modelParameterSchema\"-\n\027Ge" + "tDetectorNamesRequest\022\022\n\004name\030\001 \001(\tR\004nam" + "e\"A\n\030GetDetectorNamesResponse\022%\n\016detecto" + "r_names\030\001 \003(\tR\rdetectorNames\"\307\001\n\022AddDete" + "ctorRequest\022\022\n\004name\030\001 \001(\tR\004name\022#\n\rdetec" + "tor_name\030\002 \001(\tR\014detectorName\022.\n\023detector" + "_model_type\030\003 \001(\tR\021detectorModelType\022H\n\023" + "detector_parameters\030\004 \001(\0132\027.google.proto" + "buf.StructR\022detectorParameters\"\025\n\023AddDet" + "ectorResponse\"P\n\025RemoveDetectorRequest\022\022" + "\n\004name\030\001 \001(\tR\004name\022#\n\rdetector_name\030\002 \001(" + "\tR\014detectorName\"\030\n\026RemoveDetectorRespons" + "e\"\260\001\n\024GetDetectionsRequest\022\022\n\004name\030\001 \001(\t" + "R\004name\022\024\n\005image\030\002 \001(\014R\005image\022\024\n\005width\030\003 " + "\001(\003R\005width\022\026\n\006height\030\004 \001(\003R\006height\022\033\n\tmi" + "me_type\030\005 \001(\tR\010mimeType\022#\n\rdetector_name" + "\030\006 \001(\tR\014detectorName\"Z\n\025GetDetectionsRes" + "ponse\022A\n\ndetections\030\001 \003(\0132!.viam.service" + ".vision.v1.DetectionR\ndetections\"z\n\036GetD" + "etectionsFromCameraRequest\022\022\n\004name\030\001 \001(\t" + "R\004name\022\037\n\013camera_name\030\002 \001(\tR\ncameraName\022" + "#\n\rdetector_name\030\003 \001(\tR\014detectorName\"d\n\037" + "GetDetectionsFromCameraResponse\022A\n\ndetec" + "tions\030\001 \003(\0132!.viam.service.vision.v1.Det" + "ectionR\ndetections\"\332\001\n\tDetection\022\030\n\005x_mi" + "n\030\001 \001(\003H\000R\004xMin\210\001\001\022\030\n\005y_min\030\002 \001(\003H\001R\004yMi" + "n\210\001\001\022\030\n\005x_max\030\003 \001(\003H\002R\004xMax\210\001\001\022\030\n\005y_max\030" + "\004 \001(\003H\003R\004yMax\210\001\001\022\036\n\nconfidence\030\005 \001(\001R\nco" + "nfidence\022\035\n\nclass_name\030\006 \001(\tR\tclassNameB" + "\010\n\006_x_minB\010\n\006_y_minB\010\n\006_x_maxB\010\n\006_y_max\"" + "/\n\031GetClassifierNamesRequest\022\022\n\004name\030\001 \001" + "(\tR\004name\"G\n\032GetClassifierNamesResponse\022)" + "\n\020classifier_names\030\001 \003(\tR\017classifierName" + "s\"\325\001\n\024AddClassifierRequest\022\022\n\004name\030\001 \001(\t" + "R\004name\022\'\n\017classifier_name\030\002 \001(\tR\016classif" + "ierName\0222\n\025classifier_model_type\030\003 \001(\tR\023" + "classifierModelType\022L\n\025classifier_parame" + "ters\030\004 \001(\0132\027.google.protobuf.StructR\024cla" + "ssifierParameters\"\027\n\025AddClassifierRespon" + "se\"V\n\027RemoveClassifierRequest\022\022\n\004name\030\001 " + "\001(\tR\004name\022\'\n\017classifier_name\030\002 \001(\tR\016clas" + "sifierName\"\032\n\030RemoveClassifierResponse\"\307" + "\001\n\031GetClassificationsRequest\022\022\n\004name\030\001 \001" + "(\tR\004name\022\024\n\005image\030\002 \001(\014R\005image\022\024\n\005width\030" + "\003 \001(\005R\005width\022\026\n\006height\030\004 \001(\005R\006height\022\033\n\t" + "mime_type\030\005 \001(\tR\010mimeType\022\'\n\017classifier_" + "name\030\006 \001(\tR\016classifierName\022\014\n\001n\030\007 \001(\005R\001n" + "\"n\n\032GetClassificationsResponse\022P\n\017classi" + "fications\030\001 \003(\0132&.viam.service.vision.v1" + ".ClassificationR\017classifications\"\221\001\n#Get" + "ClassificationsFromCameraRequest\022\022\n\004name" + "\030\001 \001(\tR\004name\022\037\n\013camera_name\030\002 \001(\tR\ncamer" + "aName\022\'\n\017classifier_name\030\003 \001(\tR\016classifi" + "erName\022\014\n\001n\030\004 \001(\005R\001n\"x\n$GetClassificatio" + "nsFromCameraResponse\022P\n\017classifications\030" + "\001 \003(\0132&.viam.service.vision.v1.Classific" + "ationR\017classifications\"O\n\016Classification" + "\022\035\n\nclass_name\030\001 \001(\tR\tclassName\022\036\n\nconfi" + "dence\030\002 \001(\001R\nconfidence\".\n\030GetSegmenterN" + "amesRequest\022\022\n\004name\030\001 \001(\tR\004name\"D\n\031GetSe" + "gmenterNamesResponse\022\'\n\017segmenter_names\030" + "\001 \003(\tR\016segmenterNames\"\316\001\n\023AddSegmenterRe" + "quest\022\022\n\004name\030\001 \001(\tR\004name\022%\n\016segmenter_n" + "ame\030\002 \001(\tR\rsegmenterName\0220\n\024segmenter_mo" + "del_type\030\003 \001(\tR\022segmenterModelType\022J\n\024se" + "gmenter_parameters\030\004 \001(\0132\027.google.protob" + "uf.StructR\023segmenterParameters\"\026\n\024AddSeg" + "menterResponse\"S\n\026RemoveSegmenterRequest" + "\022\022\n\004name\030\001 \001(\tR\004name\022%\n\016segmenter_name\030\002" + " \001(\tR\rsegmenterName\"\031\n\027RemoveSegmenterRe" + "sponse\"\226\001\n\033GetObjectPointCloudsRequest\022\022" + "\n\004name\030\001 \001(\tR\004name\022\037\n\013camera_name\030\002 \001(\tR" + "\ncameraName\022%\n\016segmenter_name\030\003 \001(\tR\rseg" + "menterName\022\033\n\tmime_type\030\004 \001(\tR\010mimeType\"" + "w\n\034GetObjectPointCloudsResponse\022\033\n\tmime_" + "type\030\001 \001(\tR\010mimeType\022:\n\007objects\030\002 \003(\0132 ." + "viam.common.v1.PointCloudObjectR\007objects" + "2\332\025\n\rVisionService\022\315\001\n\027GetModelParameter" + "Schema\0226.viam.service.vision.v1.GetModel" + "ParameterSchemaRequest\0327.viam.service.vi" + "sion.v1.GetModelParameterSchemaResponse\"" + "A\202\323\344\223\002;\0229/viam/api/v1/service/vision/{na" + "me}/model_parameter_schema\022\260\001\n\020GetDetect" + "orNames\022/.viam.service.vision.v1.GetDete" + "ctorNamesRequest\0320.viam.service.vision.v" + "1.GetDetectorNamesResponse\"9\202\323\344\223\0023\0221/via" + "m/api/v1/service/vision/{name}/detector_" + "names\022\237\001\n\013AddDetector\022*.viam.service.vis" + "ion.v1.AddDetectorRequest\032+.viam.service" + ".vision.v1.AddDetectorResponse\"7\202\323\344\223\0021\"/" + "/viam/api/v1/service/vision/{name}/add_d" + "etector\022\253\001\n\016RemoveDetector\022-.viam.servic" + "e.vision.v1.RemoveDetectorRequest\032..viam" + ".service.vision.v1.RemoveDetectorRespons" + "e\":\202\323\344\223\0024\"2/viam/api/v1/service/vision/{" + "name}/remove_detector\022\310\001\n\027GetDetectionsF" + "romCamera\0226.viam.service.vision.v1.GetDe" + "tectionsFromCameraRequest\0327.viam.service" + ".vision.v1.GetDetectionsFromCameraRespon" + "se\"<\202\323\344\223\0026\"4/viam/api/v1/service/vision/" + "{name}/camera_detections\022\243\001\n\rGetDetectio" + "ns\022,.viam.service.vision.v1.GetDetection" + "sRequest\032-.viam.service.vision.v1.GetDet" + "ectionsResponse\"5\202\323\344\223\002/\"-/viam/api/v1/se" + "rvice/vision/{name}/detections\022\270\001\n\022GetCl" + "assifierNames\0221.viam.service.vision.v1.G" + "etClassifierNamesRequest\0322.viam.service." + "vision.v1.GetClassifierNamesResponse\";\202\323" + "\344\223\0025\0223/viam/api/v1/service/vision/{name}" + "/classifier_names\022\247\001\n\rAddClassifier\022,.vi" + "am.service.vision.v1.AddClassifierReques" + "t\032-.viam.service.vision.v1.AddClassifier" + "Response\"9\202\323\344\223\0023\"1/viam/api/v1/service/v" + "ision/{name}/add_classifier\022\263\001\n\020RemoveCl" + "assifier\022/.viam.service.vision.v1.Remove" + "ClassifierRequest\0320.viam.service.vision." + "v1.RemoveClassifierResponse\"<\202\323\344\223\0026\"4/vi" + "am/api/v1/service/vision/{name}/remove_c" + "lassifier\022\334\001\n\034GetClassificationsFromCame" + "ra\022;.viam.service.vision.v1.GetClassific" + "ationsFromCameraRequest\032<.viam.service.v" + "ision.v1.GetClassificationsFromCameraRes" + "ponse\"A\202\323\344\223\002;\"9/viam/api/v1/service/visi" + "on/{name}/camera_classifications\022\267\001\n\022Get" + "Classifications\0221.viam.service.vision.v1" + ".GetClassificationsRequest\0322.viam.servic" + "e.vision.v1.GetClassificationsResponse\":" + "\202\323\344\223\0024\"2/viam/api/v1/service/vision/{nam" + "e}/classifications\022\264\001\n\021GetSegmenterNames" + "\0220.viam.service.vision.v1.GetSegmenterNa" + "mesRequest\0321.viam.service.vision.v1.GetS" + "egmenterNamesResponse\":\202\323\344\223\0024\0222/viam/api" + "/v1/service/vision/{name}/segmenter_name" + "s\022\243\001\n\014AddSegmenter\022+.viam.service.vision" + ".v1.AddSegmenterRequest\032,.viam.service.v" + "ision.v1.AddSegmenterResponse\"8\202\323\344\223\0022\"0/" + "viam/api/v1/service/vision/{name}/add_se" + "gmenter\022\257\001\n\017RemoveSegmenter\022..viam.servi" + "ce.vision.v1.RemoveSegmenterRequest\032/.vi" + "am.service.vision.v1.RemoveSegmenterResp" + "onse\";\202\323\344\223\0025\"3/viam/api/v1/service/visio" + "n/{name}/remove_segmenter\022\301\001\n\024GetObjectP" + "ointClouds\0223.viam.service.vision.v1.GetO" + "bjectPointCloudsRequest\0324.viam.service.v" + "ision.v1.GetObjectPointCloudsResponse\">\202" + "\323\344\223\0028\"6/viam/api/v1/service/vision/{name" + "}/object_point_cloudsB\?\n\032com.viam.servic" + "e.vision.v1Z!go.viam.com/api/service/vis" + "ion/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_service_2fvision_2fv1_2fvision_2eproto_deps[3] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, +}; +static ::_pbi::once_flag descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_service_2fvision_2fv1_2fvision_2eproto = { + false, false, 6214, descriptor_table_protodef_service_2fvision_2fv1_2fvision_2eproto, + "service/vision/v1/vision.proto", + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, descriptor_table_service_2fvision_2fv1_2fvision_2eproto_deps, 3, 32, + schemas, file_default_instances, TableStruct_service_2fvision_2fv1_2fvision_2eproto::offsets, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto, file_level_enum_descriptors_service_2fvision_2fv1_2fvision_2eproto, + file_level_service_descriptors_service_2fvision_2fv1_2fvision_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter() { + return &descriptor_table_service_2fvision_2fv1_2fvision_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fvision_2fv1_2fvision_2eproto(&descriptor_table_service_2fvision_2fv1_2fvision_2eproto); +namespace viam { +namespace service { +namespace vision { +namespace v1 { + +// =================================================================== + +class GetModelParameterSchemaRequest::_Internal { + public: +}; + +GetModelParameterSchemaRequest::GetModelParameterSchemaRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetModelParameterSchemaRequest) +} +GetModelParameterSchemaRequest::GetModelParameterSchemaRequest(const GetModelParameterSchemaRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetModelParameterSchemaRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.model_type_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.model_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model_type().empty()) { + _this->_impl_.model_type_.Set(from._internal_model_type(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetModelParameterSchemaRequest) +} + +inline void GetModelParameterSchemaRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.model_type_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetModelParameterSchemaRequest::~GetModelParameterSchemaRequest() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetModelParameterSchemaRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetModelParameterSchemaRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.model_type_.Destroy(); +} + +void GetModelParameterSchemaRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetModelParameterSchemaRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetModelParameterSchemaRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.model_type_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetModelParameterSchemaRequest::_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.vision.v1.GetModelParameterSchemaRequest.name")); + } else + goto handle_unusual; + continue; + // string model_type = 2 [json_name = "modelType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_model_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetModelParameterSchemaRequest.model_type")); + } 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* GetModelParameterSchemaRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetModelParameterSchemaRequest) + 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.vision.v1.GetModelParameterSchemaRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string model_type = 2 [json_name = "modelType"]; + if (!this->_internal_model_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_model_type().data(), static_cast(this->_internal_model_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetModelParameterSchemaRequest.model_type"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_model_type(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.vision.v1.GetModelParameterSchemaRequest) + return target; +} + +size_t GetModelParameterSchemaRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetModelParameterSchemaRequest) + 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 model_type = 2 [json_name = "modelType"]; + if (!this->_internal_model_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_model_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetModelParameterSchemaRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetModelParameterSchemaRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetModelParameterSchemaRequest::GetClassData() const { return &_class_data_; } + + +void GetModelParameterSchemaRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetModelParameterSchemaRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_model_type().empty()) { + _this->_internal_set_model_type(from._internal_model_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetModelParameterSchemaRequest::CopyFrom(const GetModelParameterSchemaRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.GetModelParameterSchemaRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetModelParameterSchemaRequest::IsInitialized() const { + return true; +} + +void GetModelParameterSchemaRequest::InternalSwap(GetModelParameterSchemaRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.model_type_, lhs_arena, + &other->_impl_.model_type_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetModelParameterSchemaRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[0]); +} + +// =================================================================== + +class GetModelParameterSchemaResponse::_Internal { + public: +}; + +GetModelParameterSchemaResponse::GetModelParameterSchemaResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetModelParameterSchemaResponse) +} +GetModelParameterSchemaResponse::GetModelParameterSchemaResponse(const GetModelParameterSchemaResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetModelParameterSchemaResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.model_parameter_schema_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.model_parameter_schema_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_parameter_schema_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model_parameter_schema().empty()) { + _this->_impl_.model_parameter_schema_.Set(from._internal_model_parameter_schema(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetModelParameterSchemaResponse) +} + +inline void GetModelParameterSchemaResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.model_parameter_schema_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.model_parameter_schema_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.model_parameter_schema_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetModelParameterSchemaResponse::~GetModelParameterSchemaResponse() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetModelParameterSchemaResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetModelParameterSchemaResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.model_parameter_schema_.Destroy(); +} + +void GetModelParameterSchemaResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetModelParameterSchemaResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetModelParameterSchemaResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.model_parameter_schema_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetModelParameterSchemaResponse::_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 model_parameter_schema = 1 [json_name = "modelParameterSchema"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_model_parameter_schema(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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* GetModelParameterSchemaResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetModelParameterSchemaResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bytes model_parameter_schema = 1 [json_name = "modelParameterSchema"]; + if (!this->_internal_model_parameter_schema().empty()) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_model_parameter_schema(), 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.vision.v1.GetModelParameterSchemaResponse) + return target; +} + +size_t GetModelParameterSchemaResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetModelParameterSchemaResponse) + 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 model_parameter_schema = 1 [json_name = "modelParameterSchema"]; + if (!this->_internal_model_parameter_schema().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_model_parameter_schema()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetModelParameterSchemaResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetModelParameterSchemaResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetModelParameterSchemaResponse::GetClassData() const { return &_class_data_; } + + +void GetModelParameterSchemaResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetModelParameterSchemaResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_model_parameter_schema().empty()) { + _this->_internal_set_model_parameter_schema(from._internal_model_parameter_schema()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetModelParameterSchemaResponse::CopyFrom(const GetModelParameterSchemaResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.GetModelParameterSchemaResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetModelParameterSchemaResponse::IsInitialized() const { + return true; +} + +void GetModelParameterSchemaResponse::InternalSwap(GetModelParameterSchemaResponse* 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( + &_impl_.model_parameter_schema_, lhs_arena, + &other->_impl_.model_parameter_schema_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetModelParameterSchemaResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[1]); +} + +// =================================================================== + +class GetDetectorNamesRequest::_Internal { + public: +}; + +GetDetectorNamesRequest::GetDetectorNamesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetDetectorNamesRequest) +} +GetDetectorNamesRequest::GetDetectorNamesRequest(const GetDetectorNamesRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetDetectorNamesRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetDetectorNamesRequest) +} + +inline void GetDetectorNamesRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetDetectorNamesRequest::~GetDetectorNamesRequest() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetDetectorNamesRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetDetectorNamesRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void GetDetectorNamesRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetDetectorNamesRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetDetectorNamesRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetDetectorNamesRequest::_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.vision.v1.GetDetectorNamesRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetDetectorNamesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetDetectorNamesRequest) + 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.vision.v1.GetDetectorNamesRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.vision.v1.GetDetectorNamesRequest) + return target; +} + +size_t GetDetectorNamesRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetDetectorNamesRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetDetectorNamesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetDetectorNamesRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetDetectorNamesRequest::GetClassData() const { return &_class_data_; } + + +void GetDetectorNamesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetDetectorNamesRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetDetectorNamesRequest::CopyFrom(const GetDetectorNamesRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.GetDetectorNamesRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetDetectorNamesRequest::IsInitialized() const { + return true; +} + +void GetDetectorNamesRequest::InternalSwap(GetDetectorNamesRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetDetectorNamesRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[2]); +} + +// =================================================================== + +class GetDetectorNamesResponse::_Internal { + public: +}; + +GetDetectorNamesResponse::GetDetectorNamesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetDetectorNamesResponse) +} +GetDetectorNamesResponse::GetDetectorNamesResponse(const GetDetectorNamesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetDetectorNamesResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.detector_names_){from._impl_.detector_names_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetDetectorNamesResponse) +} + +inline void GetDetectorNamesResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.detector_names_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetDetectorNamesResponse::~GetDetectorNamesResponse() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetDetectorNamesResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetDetectorNamesResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.detector_names_.~RepeatedPtrField(); +} + +void GetDetectorNamesResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetDetectorNamesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetDetectorNamesResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.detector_names_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetDetectorNamesResponse::_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) { + // repeated string detector_names = 1 [json_name = "detectorNames"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_detector_names(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetDetectorNamesResponse.detector_names")); + 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* GetDetectorNamesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetDetectorNamesResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string detector_names = 1 [json_name = "detectorNames"]; + for (int i = 0, n = this->_internal_detector_names_size(); i < n; i++) { + const auto& s = this->_internal_detector_names(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetDetectorNamesResponse.detector_names"); + target = stream->WriteString(1, s, 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.vision.v1.GetDetectorNamesResponse) + return target; +} + +size_t GetDetectorNamesResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetDetectorNamesResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string detector_names = 1 [json_name = "detectorNames"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.detector_names_.size()); + for (int i = 0, n = _impl_.detector_names_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.detector_names_.Get(i)); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetDetectorNamesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetDetectorNamesResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetDetectorNamesResponse::GetClassData() const { return &_class_data_; } + + +void GetDetectorNamesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetDetectorNamesResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.detector_names_.MergeFrom(from._impl_.detector_names_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetDetectorNamesResponse::CopyFrom(const GetDetectorNamesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.GetDetectorNamesResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetDetectorNamesResponse::IsInitialized() const { + return true; +} + +void GetDetectorNamesResponse::InternalSwap(GetDetectorNamesResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.detector_names_.InternalSwap(&other->_impl_.detector_names_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetDetectorNamesResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[3]); +} + +// =================================================================== + +class AddDetectorRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& detector_parameters(const AddDetectorRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +AddDetectorRequest::_Internal::detector_parameters(const AddDetectorRequest* msg) { + return *msg->_impl_.detector_parameters_; +} +void AddDetectorRequest::clear_detector_parameters() { + if (GetArenaForAllocation() == nullptr && _impl_.detector_parameters_ != nullptr) { + delete _impl_.detector_parameters_; + } + _impl_.detector_parameters_ = nullptr; +} +AddDetectorRequest::AddDetectorRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.AddDetectorRequest) +} +AddDetectorRequest::AddDetectorRequest(const AddDetectorRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + AddDetectorRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.detector_name_){} + , decltype(_impl_.detector_model_type_){} + , decltype(_impl_.detector_parameters_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.detector_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.detector_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_detector_name().empty()) { + _this->_impl_.detector_name_.Set(from._internal_detector_name(), + _this->GetArenaForAllocation()); + } + _impl_.detector_model_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.detector_model_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_detector_model_type().empty()) { + _this->_impl_.detector_model_type_.Set(from._internal_detector_model_type(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_detector_parameters()) { + _this->_impl_.detector_parameters_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.detector_parameters_); + } + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.AddDetectorRequest) +} + +inline void AddDetectorRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.detector_name_){} + , decltype(_impl_.detector_model_type_){} + , decltype(_impl_.detector_parameters_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.detector_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.detector_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.detector_model_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.detector_model_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +AddDetectorRequest::~AddDetectorRequest() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.AddDetectorRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void AddDetectorRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.detector_name_.Destroy(); + _impl_.detector_model_type_.Destroy(); + if (this != internal_default_instance()) delete _impl_.detector_parameters_; +} + +void AddDetectorRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void AddDetectorRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.AddDetectorRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.detector_name_.ClearToEmpty(); + _impl_.detector_model_type_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.detector_parameters_ != nullptr) { + delete _impl_.detector_parameters_; + } + _impl_.detector_parameters_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AddDetectorRequest::_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.vision.v1.AddDetectorRequest.name")); + } else + goto handle_unusual; + continue; + // string detector_name = 2 [json_name = "detectorName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_detector_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.AddDetectorRequest.detector_name")); + } else + goto handle_unusual; + continue; + // string detector_model_type = 3 [json_name = "detectorModelType"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_detector_model_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.AddDetectorRequest.detector_model_type")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct detector_parameters = 4 [json_name = "detectorParameters"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_detector_parameters(), 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* AddDetectorRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.AddDetectorRequest) + 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.vision.v1.AddDetectorRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string detector_name = 2 [json_name = "detectorName"]; + if (!this->_internal_detector_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_detector_name().data(), static_cast(this->_internal_detector_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.AddDetectorRequest.detector_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_detector_name(), target); + } + + // string detector_model_type = 3 [json_name = "detectorModelType"]; + if (!this->_internal_detector_model_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_detector_model_type().data(), static_cast(this->_internal_detector_model_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.AddDetectorRequest.detector_model_type"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_detector_model_type(), target); + } + + // .google.protobuf.Struct detector_parameters = 4 [json_name = "detectorParameters"]; + if (this->_internal_has_detector_parameters()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::detector_parameters(this), + _Internal::detector_parameters(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.vision.v1.AddDetectorRequest) + return target; +} + +size_t AddDetectorRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.AddDetectorRequest) + 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 detector_name = 2 [json_name = "detectorName"]; + if (!this->_internal_detector_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_detector_name()); + } + + // string detector_model_type = 3 [json_name = "detectorModelType"]; + if (!this->_internal_detector_model_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_detector_model_type()); + } + + // .google.protobuf.Struct detector_parameters = 4 [json_name = "detectorParameters"]; + if (this->_internal_has_detector_parameters()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.detector_parameters_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddDetectorRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AddDetectorRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddDetectorRequest::GetClassData() const { return &_class_data_; } + + +void AddDetectorRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.AddDetectorRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_detector_name().empty()) { + _this->_internal_set_detector_name(from._internal_detector_name()); + } + if (!from._internal_detector_model_type().empty()) { + _this->_internal_set_detector_model_type(from._internal_detector_model_type()); + } + if (from._internal_has_detector_parameters()) { + _this->_internal_mutable_detector_parameters()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_detector_parameters()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AddDetectorRequest::CopyFrom(const AddDetectorRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.AddDetectorRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AddDetectorRequest::IsInitialized() const { + return true; +} + +void AddDetectorRequest::InternalSwap(AddDetectorRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.detector_name_, lhs_arena, + &other->_impl_.detector_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.detector_model_type_, lhs_arena, + &other->_impl_.detector_model_type_, rhs_arena + ); + swap(_impl_.detector_parameters_, other->_impl_.detector_parameters_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AddDetectorRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[4]); +} + +// =================================================================== + +class AddDetectorResponse::_Internal { + public: +}; + +AddDetectorResponse::AddDetectorResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.AddDetectorResponse) +} +AddDetectorResponse::AddDetectorResponse(const AddDetectorResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + AddDetectorResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.AddDetectorResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddDetectorResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddDetectorResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata AddDetectorResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[5]); +} + +// =================================================================== + +class RemoveDetectorRequest::_Internal { + public: +}; + +RemoveDetectorRequest::RemoveDetectorRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.RemoveDetectorRequest) +} +RemoveDetectorRequest::RemoveDetectorRequest(const RemoveDetectorRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RemoveDetectorRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.detector_name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.detector_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.detector_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_detector_name().empty()) { + _this->_impl_.detector_name_.Set(from._internal_detector_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.RemoveDetectorRequest) +} + +inline void RemoveDetectorRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.detector_name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.detector_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.detector_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +RemoveDetectorRequest::~RemoveDetectorRequest() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.RemoveDetectorRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RemoveDetectorRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.detector_name_.Destroy(); +} + +void RemoveDetectorRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RemoveDetectorRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.RemoveDetectorRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.detector_name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RemoveDetectorRequest::_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.vision.v1.RemoveDetectorRequest.name")); + } else + goto handle_unusual; + continue; + // string detector_name = 2 [json_name = "detectorName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_detector_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.RemoveDetectorRequest.detector_name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* RemoveDetectorRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.RemoveDetectorRequest) + 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.vision.v1.RemoveDetectorRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string detector_name = 2 [json_name = "detectorName"]; + if (!this->_internal_detector_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_detector_name().data(), static_cast(this->_internal_detector_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.RemoveDetectorRequest.detector_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_detector_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.vision.v1.RemoveDetectorRequest) + return target; +} + +size_t RemoveDetectorRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.RemoveDetectorRequest) + 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 detector_name = 2 [json_name = "detectorName"]; + if (!this->_internal_detector_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_detector_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoveDetectorRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RemoveDetectorRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoveDetectorRequest::GetClassData() const { return &_class_data_; } + + +void RemoveDetectorRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.RemoveDetectorRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_detector_name().empty()) { + _this->_internal_set_detector_name(from._internal_detector_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RemoveDetectorRequest::CopyFrom(const RemoveDetectorRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.RemoveDetectorRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RemoveDetectorRequest::IsInitialized() const { + return true; +} + +void RemoveDetectorRequest::InternalSwap(RemoveDetectorRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.detector_name_, lhs_arena, + &other->_impl_.detector_name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RemoveDetectorRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[6]); +} + +// =================================================================== + +class RemoveDetectorResponse::_Internal { + public: +}; + +RemoveDetectorResponse::RemoveDetectorResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.RemoveDetectorResponse) +} +RemoveDetectorResponse::RemoveDetectorResponse(const RemoveDetectorResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + RemoveDetectorResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.RemoveDetectorResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoveDetectorResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoveDetectorResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata RemoveDetectorResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[7]); +} + +// =================================================================== + +class GetDetectionsRequest::_Internal { + public: +}; + +GetDetectionsRequest::GetDetectionsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetDetectionsRequest) +} +GetDetectionsRequest::GetDetectionsRequest(const GetDetectionsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetDetectionsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.image_){} + , decltype(_impl_.mime_type_){} + , decltype(_impl_.detector_name_){} + , decltype(_impl_.width_){} + , decltype(_impl_.height_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.image_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.image_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_image().empty()) { + _this->_impl_.image_.Set(from._internal_image(), + _this->GetArenaForAllocation()); + } + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + _this->_impl_.mime_type_.Set(from._internal_mime_type(), + _this->GetArenaForAllocation()); + } + _impl_.detector_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.detector_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_detector_name().empty()) { + _this->_impl_.detector_name_.Set(from._internal_detector_name(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.width_, &from._impl_.width_, + static_cast(reinterpret_cast(&_impl_.height_) - + reinterpret_cast(&_impl_.width_)) + sizeof(_impl_.height_)); + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetDetectionsRequest) +} + +inline void GetDetectionsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.image_){} + , decltype(_impl_.mime_type_){} + , decltype(_impl_.detector_name_){} + , decltype(_impl_.width_){int64_t{0}} + , decltype(_impl_.height_){int64_t{0}} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.image_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.image_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.detector_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.detector_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetDetectionsRequest::~GetDetectionsRequest() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetDetectionsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetDetectionsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.image_.Destroy(); + _impl_.mime_type_.Destroy(); + _impl_.detector_name_.Destroy(); +} + +void GetDetectionsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetDetectionsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetDetectionsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.image_.ClearToEmpty(); + _impl_.mime_type_.ClearToEmpty(); + _impl_.detector_name_.ClearToEmpty(); + ::memset(&_impl_.width_, 0, static_cast( + reinterpret_cast(&_impl_.height_) - + reinterpret_cast(&_impl_.width_)) + sizeof(_impl_.height_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetDetectionsRequest::_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.vision.v1.GetDetectionsRequest.name")); + } else + goto handle_unusual; + continue; + // bytes image = 2 [json_name = "image"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_image(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 width = 3 [json_name = "width"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 height = 4 [json_name = "height"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string mime_type = 5 [json_name = "mimeType"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetDetectionsRequest.mime_type")); + } else + goto handle_unusual; + continue; + // string detector_name = 6 [json_name = "detectorName"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_detector_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetDetectionsRequest.detector_name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetDetectionsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetDetectionsRequest) + 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.vision.v1.GetDetectionsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // bytes image = 2 [json_name = "image"]; + if (!this->_internal_image().empty()) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_image(), target); + } + + // int64 width = 3 [json_name = "width"]; + if (this->_internal_width() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_width(), target); + } + + // int64 height = 4 [json_name = "height"]; + if (this->_internal_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(4, this->_internal_height(), target); + } + + // string mime_type = 5 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetDetectionsRequest.mime_type"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_mime_type(), target); + } + + // string detector_name = 6 [json_name = "detectorName"]; + if (!this->_internal_detector_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_detector_name().data(), static_cast(this->_internal_detector_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetDetectionsRequest.detector_name"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_detector_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.vision.v1.GetDetectionsRequest) + return target; +} + +size_t GetDetectionsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetDetectionsRequest) + 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()); + } + + // bytes image = 2 [json_name = "image"]; + if (!this->_internal_image().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_image()); + } + + // string mime_type = 5 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); + } + + // string detector_name = 6 [json_name = "detectorName"]; + if (!this->_internal_detector_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_detector_name()); + } + + // int64 width = 3 [json_name = "width"]; + if (this->_internal_width() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_width()); + } + + // int64 height = 4 [json_name = "height"]; + if (this->_internal_height() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_height()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetDetectionsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetDetectionsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetDetectionsRequest::GetClassData() const { return &_class_data_; } + + +void GetDetectionsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetDetectionsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_image().empty()) { + _this->_internal_set_image(from._internal_image()); + } + if (!from._internal_mime_type().empty()) { + _this->_internal_set_mime_type(from._internal_mime_type()); + } + if (!from._internal_detector_name().empty()) { + _this->_internal_set_detector_name(from._internal_detector_name()); + } + if (from._internal_width() != 0) { + _this->_internal_set_width(from._internal_width()); + } + if (from._internal_height() != 0) { + _this->_internal_set_height(from._internal_height()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetDetectionsRequest::CopyFrom(const GetDetectionsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.GetDetectionsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetDetectionsRequest::IsInitialized() const { + return true; +} + +void GetDetectionsRequest::InternalSwap(GetDetectionsRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.image_, lhs_arena, + &other->_impl_.image_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.mime_type_, lhs_arena, + &other->_impl_.mime_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.detector_name_, lhs_arena, + &other->_impl_.detector_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetDetectionsRequest, _impl_.height_) + + sizeof(GetDetectionsRequest::_impl_.height_) + - PROTOBUF_FIELD_OFFSET(GetDetectionsRequest, _impl_.width_)>( + reinterpret_cast(&_impl_.width_), + reinterpret_cast(&other->_impl_.width_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetDetectionsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[8]); +} + +// =================================================================== + +class GetDetectionsResponse::_Internal { + public: +}; + +GetDetectionsResponse::GetDetectionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetDetectionsResponse) +} +GetDetectionsResponse::GetDetectionsResponse(const GetDetectionsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetDetectionsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.detections_){from._impl_.detections_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetDetectionsResponse) +} + +inline void GetDetectionsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.detections_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetDetectionsResponse::~GetDetectionsResponse() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetDetectionsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetDetectionsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.detections_.~RepeatedPtrField(); +} + +void GetDetectionsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetDetectionsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetDetectionsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.detections_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetDetectionsResponse::_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) { + // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_detections(), 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* GetDetectionsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetDetectionsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; + for (unsigned i = 0, + n = static_cast(this->_internal_detections_size()); i < n; i++) { + const auto& repfield = this->_internal_detections(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.vision.v1.GetDetectionsResponse) + return target; +} + +size_t GetDetectionsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetDetectionsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; + total_size += 1UL * this->_internal_detections_size(); + for (const auto& msg : this->_impl_.detections_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetDetectionsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetDetectionsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetDetectionsResponse::GetClassData() const { return &_class_data_; } + + +void GetDetectionsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetDetectionsResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.detections_.MergeFrom(from._impl_.detections_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetDetectionsResponse::CopyFrom(const GetDetectionsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.GetDetectionsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetDetectionsResponse::IsInitialized() const { + return true; +} + +void GetDetectionsResponse::InternalSwap(GetDetectionsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.detections_.InternalSwap(&other->_impl_.detections_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetDetectionsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[9]); +} + +// =================================================================== + +class GetDetectionsFromCameraRequest::_Internal { + public: +}; + +GetDetectionsFromCameraRequest::GetDetectionsFromCameraRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetDetectionsFromCameraRequest) +} +GetDetectionsFromCameraRequest::GetDetectionsFromCameraRequest(const GetDetectionsFromCameraRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetDetectionsFromCameraRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.camera_name_){} + , decltype(_impl_.detector_name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.camera_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.camera_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_camera_name().empty()) { + _this->_impl_.camera_name_.Set(from._internal_camera_name(), + _this->GetArenaForAllocation()); + } + _impl_.detector_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.detector_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_detector_name().empty()) { + _this->_impl_.detector_name_.Set(from._internal_detector_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetDetectionsFromCameraRequest) +} + +inline void GetDetectionsFromCameraRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.camera_name_){} + , decltype(_impl_.detector_name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.camera_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.camera_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.detector_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.detector_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetDetectionsFromCameraRequest::~GetDetectionsFromCameraRequest() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetDetectionsFromCameraRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetDetectionsFromCameraRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.camera_name_.Destroy(); + _impl_.detector_name_.Destroy(); +} + +void GetDetectionsFromCameraRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetDetectionsFromCameraRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetDetectionsFromCameraRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.camera_name_.ClearToEmpty(); + _impl_.detector_name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetDetectionsFromCameraRequest::_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.vision.v1.GetDetectionsFromCameraRequest.name")); + } else + goto handle_unusual; + continue; + // string camera_name = 2 [json_name = "cameraName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_camera_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetDetectionsFromCameraRequest.camera_name")); + } else + goto handle_unusual; + continue; + // string detector_name = 3 [json_name = "detectorName"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_detector_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetDetectionsFromCameraRequest.detector_name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetDetectionsFromCameraRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetDetectionsFromCameraRequest) + 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.vision.v1.GetDetectionsFromCameraRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string camera_name = 2 [json_name = "cameraName"]; + if (!this->_internal_camera_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_camera_name().data(), static_cast(this->_internal_camera_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetDetectionsFromCameraRequest.camera_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_camera_name(), target); + } + + // string detector_name = 3 [json_name = "detectorName"]; + if (!this->_internal_detector_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_detector_name().data(), static_cast(this->_internal_detector_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetDetectionsFromCameraRequest.detector_name"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_detector_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.vision.v1.GetDetectionsFromCameraRequest) + return target; +} + +size_t GetDetectionsFromCameraRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetDetectionsFromCameraRequest) + 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 camera_name = 2 [json_name = "cameraName"]; + if (!this->_internal_camera_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_camera_name()); + } + + // string detector_name = 3 [json_name = "detectorName"]; + if (!this->_internal_detector_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_detector_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetDetectionsFromCameraRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetDetectionsFromCameraRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetDetectionsFromCameraRequest::GetClassData() const { return &_class_data_; } + + +void GetDetectionsFromCameraRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetDetectionsFromCameraRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_camera_name().empty()) { + _this->_internal_set_camera_name(from._internal_camera_name()); + } + if (!from._internal_detector_name().empty()) { + _this->_internal_set_detector_name(from._internal_detector_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetDetectionsFromCameraRequest::CopyFrom(const GetDetectionsFromCameraRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.GetDetectionsFromCameraRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetDetectionsFromCameraRequest::IsInitialized() const { + return true; +} + +void GetDetectionsFromCameraRequest::InternalSwap(GetDetectionsFromCameraRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.camera_name_, lhs_arena, + &other->_impl_.camera_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.detector_name_, lhs_arena, + &other->_impl_.detector_name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetDetectionsFromCameraRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[10]); +} + +// =================================================================== + +class GetDetectionsFromCameraResponse::_Internal { + public: +}; + +GetDetectionsFromCameraResponse::GetDetectionsFromCameraResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetDetectionsFromCameraResponse) +} +GetDetectionsFromCameraResponse::GetDetectionsFromCameraResponse(const GetDetectionsFromCameraResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetDetectionsFromCameraResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.detections_){from._impl_.detections_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetDetectionsFromCameraResponse) +} + +inline void GetDetectionsFromCameraResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.detections_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetDetectionsFromCameraResponse::~GetDetectionsFromCameraResponse() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetDetectionsFromCameraResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetDetectionsFromCameraResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.detections_.~RepeatedPtrField(); +} + +void GetDetectionsFromCameraResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetDetectionsFromCameraResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetDetectionsFromCameraResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.detections_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetDetectionsFromCameraResponse::_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) { + // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_detections(), 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* GetDetectionsFromCameraResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetDetectionsFromCameraResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; + for (unsigned i = 0, + n = static_cast(this->_internal_detections_size()); i < n; i++) { + const auto& repfield = this->_internal_detections(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.vision.v1.GetDetectionsFromCameraResponse) + return target; +} + +size_t GetDetectionsFromCameraResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetDetectionsFromCameraResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; + total_size += 1UL * this->_internal_detections_size(); + for (const auto& msg : this->_impl_.detections_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetDetectionsFromCameraResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetDetectionsFromCameraResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetDetectionsFromCameraResponse::GetClassData() const { return &_class_data_; } + + +void GetDetectionsFromCameraResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetDetectionsFromCameraResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.detections_.MergeFrom(from._impl_.detections_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetDetectionsFromCameraResponse::CopyFrom(const GetDetectionsFromCameraResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.GetDetectionsFromCameraResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetDetectionsFromCameraResponse::IsInitialized() const { + return true; +} + +void GetDetectionsFromCameraResponse::InternalSwap(GetDetectionsFromCameraResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.detections_.InternalSwap(&other->_impl_.detections_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetDetectionsFromCameraResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[11]); +} + +// =================================================================== + +class Detection::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static void set_has_x_min(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_y_min(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_x_max(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_y_max(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } +}; + +Detection::Detection(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.Detection) +} +Detection::Detection(const Detection& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Detection* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.class_name_){} + , decltype(_impl_.x_min_){} + , decltype(_impl_.y_min_){} + , decltype(_impl_.x_max_){} + , decltype(_impl_.y_max_){} + , decltype(_impl_.confidence_){}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.class_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.class_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_class_name().empty()) { + _this->_impl_.class_name_.Set(from._internal_class_name(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.x_min_, &from._impl_.x_min_, + static_cast(reinterpret_cast(&_impl_.confidence_) - + reinterpret_cast(&_impl_.x_min_)) + sizeof(_impl_.confidence_)); + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.Detection) +} + +inline void Detection::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.class_name_){} + , decltype(_impl_.x_min_){int64_t{0}} + , decltype(_impl_.y_min_){int64_t{0}} + , decltype(_impl_.x_max_){int64_t{0}} + , decltype(_impl_.y_max_){int64_t{0}} + , decltype(_impl_.confidence_){0} + }; + _impl_.class_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.class_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Detection::~Detection() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.Detection) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Detection::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.class_name_.Destroy(); +} + +void Detection::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Detection::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.Detection) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.class_name_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x0000000fu) { + ::memset(&_impl_.x_min_, 0, static_cast( + reinterpret_cast(&_impl_.y_max_) - + reinterpret_cast(&_impl_.x_min_)) + sizeof(_impl_.y_max_)); + } + _impl_.confidence_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Detection::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // optional int64 x_min = 1 [json_name = "xMin"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _Internal::set_has_x_min(&has_bits); + _impl_.x_min_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional int64 y_min = 2 [json_name = "yMin"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _Internal::set_has_y_min(&has_bits); + _impl_.y_min_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional int64 x_max = 3 [json_name = "xMax"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _Internal::set_has_x_max(&has_bits); + _impl_.x_max_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional int64 y_max = 4 [json_name = "yMax"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _Internal::set_has_y_max(&has_bits); + _impl_.y_max_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double confidence = 5 [json_name = "confidence"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 41)) { + _impl_.confidence_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // string class_name = 6 [json_name = "className"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_class_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.Detection.class_name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + _impl_._has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* Detection::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.Detection) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // optional int64 x_min = 1 [json_name = "xMin"]; + if (_internal_has_x_min()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_x_min(), target); + } + + // optional int64 y_min = 2 [json_name = "yMin"]; + if (_internal_has_y_min()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_y_min(), target); + } + + // optional int64 x_max = 3 [json_name = "xMax"]; + if (_internal_has_x_max()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_x_max(), target); + } + + // optional int64 y_max = 4 [json_name = "yMax"]; + if (_internal_has_y_max()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(4, this->_internal_y_max(), target); + } + + // double confidence = 5 [json_name = "confidence"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_confidence = this->_internal_confidence(); + uint64_t raw_confidence; + memcpy(&raw_confidence, &tmp_confidence, sizeof(tmp_confidence)); + if (raw_confidence != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_confidence(), target); + } + + // string class_name = 6 [json_name = "className"]; + if (!this->_internal_class_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_class_name().data(), static_cast(this->_internal_class_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.Detection.class_name"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_class_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.vision.v1.Detection) + return target; +} + +size_t Detection::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.Detection) + 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 class_name = 6 [json_name = "className"]; + if (!this->_internal_class_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_class_name()); + } + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x0000000fu) { + // optional int64 x_min = 1 [json_name = "xMin"]; + if (cached_has_bits & 0x00000001u) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_x_min()); + } + + // optional int64 y_min = 2 [json_name = "yMin"]; + if (cached_has_bits & 0x00000002u) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_y_min()); + } + + // optional int64 x_max = 3 [json_name = "xMax"]; + if (cached_has_bits & 0x00000004u) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_x_max()); + } + + // optional int64 y_max = 4 [json_name = "yMax"]; + if (cached_has_bits & 0x00000008u) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_y_max()); + } + + } + // double confidence = 5 [json_name = "confidence"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_confidence = this->_internal_confidence(); + uint64_t raw_confidence; + memcpy(&raw_confidence, &tmp_confidence, sizeof(tmp_confidence)); + if (raw_confidence != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Detection::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Detection::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Detection::GetClassData() const { return &_class_data_; } + + +void Detection::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.Detection) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_class_name().empty()) { + _this->_internal_set_class_name(from._internal_class_name()); + } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x0000000fu) { + if (cached_has_bits & 0x00000001u) { + _this->_impl_.x_min_ = from._impl_.x_min_; + } + if (cached_has_bits & 0x00000002u) { + _this->_impl_.y_min_ = from._impl_.y_min_; + } + if (cached_has_bits & 0x00000004u) { + _this->_impl_.x_max_ = from._impl_.x_max_; + } + if (cached_has_bits & 0x00000008u) { + _this->_impl_.y_max_ = from._impl_.y_max_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_confidence = from._internal_confidence(); + uint64_t raw_confidence; + memcpy(&raw_confidence, &tmp_confidence, sizeof(tmp_confidence)); + if (raw_confidence != 0) { + _this->_internal_set_confidence(from._internal_confidence()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Detection::CopyFrom(const Detection& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.Detection) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Detection::IsInitialized() const { + return true; +} + +void Detection::InternalSwap(Detection* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.class_name_, lhs_arena, + &other->_impl_.class_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Detection, _impl_.confidence_) + + sizeof(Detection::_impl_.confidence_) + - PROTOBUF_FIELD_OFFSET(Detection, _impl_.x_min_)>( + reinterpret_cast(&_impl_.x_min_), + reinterpret_cast(&other->_impl_.x_min_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Detection::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[12]); +} + +// =================================================================== + +class GetClassifierNamesRequest::_Internal { + public: +}; + +GetClassifierNamesRequest::GetClassifierNamesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetClassifierNamesRequest) +} +GetClassifierNamesRequest::GetClassifierNamesRequest(const GetClassifierNamesRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetClassifierNamesRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetClassifierNamesRequest) +} + +inline void GetClassifierNamesRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetClassifierNamesRequest::~GetClassifierNamesRequest() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetClassifierNamesRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetClassifierNamesRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void GetClassifierNamesRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetClassifierNamesRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetClassifierNamesRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetClassifierNamesRequest::_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.vision.v1.GetClassifierNamesRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetClassifierNamesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetClassifierNamesRequest) + 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.vision.v1.GetClassifierNamesRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.vision.v1.GetClassifierNamesRequest) + return target; +} + +size_t GetClassifierNamesRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetClassifierNamesRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetClassifierNamesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetClassifierNamesRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassifierNamesRequest::GetClassData() const { return &_class_data_; } + + +void GetClassifierNamesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetClassifierNamesRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetClassifierNamesRequest::CopyFrom(const GetClassifierNamesRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.GetClassifierNamesRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetClassifierNamesRequest::IsInitialized() const { + return true; +} + +void GetClassifierNamesRequest::InternalSwap(GetClassifierNamesRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetClassifierNamesRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[13]); +} + +// =================================================================== + +class GetClassifierNamesResponse::_Internal { + public: +}; + +GetClassifierNamesResponse::GetClassifierNamesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetClassifierNamesResponse) +} +GetClassifierNamesResponse::GetClassifierNamesResponse(const GetClassifierNamesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetClassifierNamesResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.classifier_names_){from._impl_.classifier_names_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetClassifierNamesResponse) +} + +inline void GetClassifierNamesResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.classifier_names_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetClassifierNamesResponse::~GetClassifierNamesResponse() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetClassifierNamesResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetClassifierNamesResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.classifier_names_.~RepeatedPtrField(); +} + +void GetClassifierNamesResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetClassifierNamesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetClassifierNamesResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.classifier_names_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetClassifierNamesResponse::_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) { + // repeated string classifier_names = 1 [json_name = "classifierNames"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_classifier_names(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetClassifierNamesResponse.classifier_names")); + 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* GetClassifierNamesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetClassifierNamesResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string classifier_names = 1 [json_name = "classifierNames"]; + for (int i = 0, n = this->_internal_classifier_names_size(); i < n; i++) { + const auto& s = this->_internal_classifier_names(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetClassifierNamesResponse.classifier_names"); + target = stream->WriteString(1, s, 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.vision.v1.GetClassifierNamesResponse) + return target; +} + +size_t GetClassifierNamesResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetClassifierNamesResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string classifier_names = 1 [json_name = "classifierNames"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.classifier_names_.size()); + for (int i = 0, n = _impl_.classifier_names_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.classifier_names_.Get(i)); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetClassifierNamesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetClassifierNamesResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassifierNamesResponse::GetClassData() const { return &_class_data_; } + + +void GetClassifierNamesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetClassifierNamesResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.classifier_names_.MergeFrom(from._impl_.classifier_names_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetClassifierNamesResponse::CopyFrom(const GetClassifierNamesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.GetClassifierNamesResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetClassifierNamesResponse::IsInitialized() const { + return true; +} + +void GetClassifierNamesResponse::InternalSwap(GetClassifierNamesResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.classifier_names_.InternalSwap(&other->_impl_.classifier_names_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetClassifierNamesResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[14]); +} + +// =================================================================== + +class AddClassifierRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& classifier_parameters(const AddClassifierRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +AddClassifierRequest::_Internal::classifier_parameters(const AddClassifierRequest* msg) { + return *msg->_impl_.classifier_parameters_; +} +void AddClassifierRequest::clear_classifier_parameters() { + if (GetArenaForAllocation() == nullptr && _impl_.classifier_parameters_ != nullptr) { + delete _impl_.classifier_parameters_; + } + _impl_.classifier_parameters_ = nullptr; +} +AddClassifierRequest::AddClassifierRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.AddClassifierRequest) +} +AddClassifierRequest::AddClassifierRequest(const AddClassifierRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + AddClassifierRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.classifier_name_){} + , decltype(_impl_.classifier_model_type_){} + , decltype(_impl_.classifier_parameters_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.classifier_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.classifier_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_classifier_name().empty()) { + _this->_impl_.classifier_name_.Set(from._internal_classifier_name(), + _this->GetArenaForAllocation()); + } + _impl_.classifier_model_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.classifier_model_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_classifier_model_type().empty()) { + _this->_impl_.classifier_model_type_.Set(from._internal_classifier_model_type(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_classifier_parameters()) { + _this->_impl_.classifier_parameters_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.classifier_parameters_); + } + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.AddClassifierRequest) +} + +inline void AddClassifierRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.classifier_name_){} + , decltype(_impl_.classifier_model_type_){} + , decltype(_impl_.classifier_parameters_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.classifier_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.classifier_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.classifier_model_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.classifier_model_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +AddClassifierRequest::~AddClassifierRequest() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.AddClassifierRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void AddClassifierRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.classifier_name_.Destroy(); + _impl_.classifier_model_type_.Destroy(); + if (this != internal_default_instance()) delete _impl_.classifier_parameters_; +} + +void AddClassifierRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void AddClassifierRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.AddClassifierRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.classifier_name_.ClearToEmpty(); + _impl_.classifier_model_type_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.classifier_parameters_ != nullptr) { + delete _impl_.classifier_parameters_; + } + _impl_.classifier_parameters_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AddClassifierRequest::_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.vision.v1.AddClassifierRequest.name")); + } else + goto handle_unusual; + continue; + // string classifier_name = 2 [json_name = "classifierName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_classifier_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.AddClassifierRequest.classifier_name")); + } else + goto handle_unusual; + continue; + // string classifier_model_type = 3 [json_name = "classifierModelType"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_classifier_model_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.AddClassifierRequest.classifier_model_type")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct classifier_parameters = 4 [json_name = "classifierParameters"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_classifier_parameters(), 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* AddClassifierRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.AddClassifierRequest) + 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.vision.v1.AddClassifierRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string classifier_name = 2 [json_name = "classifierName"]; + if (!this->_internal_classifier_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_classifier_name().data(), static_cast(this->_internal_classifier_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.AddClassifierRequest.classifier_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_classifier_name(), target); + } + + // string classifier_model_type = 3 [json_name = "classifierModelType"]; + if (!this->_internal_classifier_model_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_classifier_model_type().data(), static_cast(this->_internal_classifier_model_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.AddClassifierRequest.classifier_model_type"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_classifier_model_type(), target); + } + + // .google.protobuf.Struct classifier_parameters = 4 [json_name = "classifierParameters"]; + if (this->_internal_has_classifier_parameters()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::classifier_parameters(this), + _Internal::classifier_parameters(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.vision.v1.AddClassifierRequest) + return target; +} + +size_t AddClassifierRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.AddClassifierRequest) + 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 classifier_name = 2 [json_name = "classifierName"]; + if (!this->_internal_classifier_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_classifier_name()); + } + + // string classifier_model_type = 3 [json_name = "classifierModelType"]; + if (!this->_internal_classifier_model_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_classifier_model_type()); + } + + // .google.protobuf.Struct classifier_parameters = 4 [json_name = "classifierParameters"]; + if (this->_internal_has_classifier_parameters()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.classifier_parameters_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddClassifierRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AddClassifierRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddClassifierRequest::GetClassData() const { return &_class_data_; } + + +void AddClassifierRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.AddClassifierRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_classifier_name().empty()) { + _this->_internal_set_classifier_name(from._internal_classifier_name()); + } + if (!from._internal_classifier_model_type().empty()) { + _this->_internal_set_classifier_model_type(from._internal_classifier_model_type()); + } + if (from._internal_has_classifier_parameters()) { + _this->_internal_mutable_classifier_parameters()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_classifier_parameters()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AddClassifierRequest::CopyFrom(const AddClassifierRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.AddClassifierRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AddClassifierRequest::IsInitialized() const { + return true; +} + +void AddClassifierRequest::InternalSwap(AddClassifierRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.classifier_name_, lhs_arena, + &other->_impl_.classifier_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.classifier_model_type_, lhs_arena, + &other->_impl_.classifier_model_type_, rhs_arena + ); + swap(_impl_.classifier_parameters_, other->_impl_.classifier_parameters_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AddClassifierRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[15]); +} + +// =================================================================== + +class AddClassifierResponse::_Internal { + public: +}; + +AddClassifierResponse::AddClassifierResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.AddClassifierResponse) +} +AddClassifierResponse::AddClassifierResponse(const AddClassifierResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + AddClassifierResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.AddClassifierResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddClassifierResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddClassifierResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata AddClassifierResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[16]); +} + +// =================================================================== + +class RemoveClassifierRequest::_Internal { + public: +}; + +RemoveClassifierRequest::RemoveClassifierRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.RemoveClassifierRequest) +} +RemoveClassifierRequest::RemoveClassifierRequest(const RemoveClassifierRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RemoveClassifierRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.classifier_name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.classifier_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.classifier_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_classifier_name().empty()) { + _this->_impl_.classifier_name_.Set(from._internal_classifier_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.RemoveClassifierRequest) +} + +inline void RemoveClassifierRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.classifier_name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.classifier_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.classifier_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +RemoveClassifierRequest::~RemoveClassifierRequest() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.RemoveClassifierRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RemoveClassifierRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.classifier_name_.Destroy(); +} + +void RemoveClassifierRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RemoveClassifierRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.RemoveClassifierRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.classifier_name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RemoveClassifierRequest::_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.vision.v1.RemoveClassifierRequest.name")); + } else + goto handle_unusual; + continue; + // string classifier_name = 2 [json_name = "classifierName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_classifier_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.RemoveClassifierRequest.classifier_name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* RemoveClassifierRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.RemoveClassifierRequest) + 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.vision.v1.RemoveClassifierRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string classifier_name = 2 [json_name = "classifierName"]; + if (!this->_internal_classifier_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_classifier_name().data(), static_cast(this->_internal_classifier_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.RemoveClassifierRequest.classifier_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_classifier_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.vision.v1.RemoveClassifierRequest) + return target; +} + +size_t RemoveClassifierRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.RemoveClassifierRequest) + 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 classifier_name = 2 [json_name = "classifierName"]; + if (!this->_internal_classifier_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_classifier_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoveClassifierRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RemoveClassifierRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoveClassifierRequest::GetClassData() const { return &_class_data_; } + + +void RemoveClassifierRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.RemoveClassifierRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_classifier_name().empty()) { + _this->_internal_set_classifier_name(from._internal_classifier_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RemoveClassifierRequest::CopyFrom(const RemoveClassifierRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.RemoveClassifierRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RemoveClassifierRequest::IsInitialized() const { + return true; +} + +void RemoveClassifierRequest::InternalSwap(RemoveClassifierRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.classifier_name_, lhs_arena, + &other->_impl_.classifier_name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RemoveClassifierRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[17]); +} + +// =================================================================== + +class RemoveClassifierResponse::_Internal { + public: +}; + +RemoveClassifierResponse::RemoveClassifierResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.RemoveClassifierResponse) +} +RemoveClassifierResponse::RemoveClassifierResponse(const RemoveClassifierResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + RemoveClassifierResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.RemoveClassifierResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoveClassifierResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoveClassifierResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata RemoveClassifierResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[18]); +} + +// =================================================================== + +class GetClassificationsRequest::_Internal { + public: +}; + +GetClassificationsRequest::GetClassificationsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetClassificationsRequest) +} +GetClassificationsRequest::GetClassificationsRequest(const GetClassificationsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetClassificationsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.image_){} + , decltype(_impl_.mime_type_){} + , decltype(_impl_.classifier_name_){} + , decltype(_impl_.width_){} + , decltype(_impl_.height_){} + , decltype(_impl_.n_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.image_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.image_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_image().empty()) { + _this->_impl_.image_.Set(from._internal_image(), + _this->GetArenaForAllocation()); + } + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + _this->_impl_.mime_type_.Set(from._internal_mime_type(), + _this->GetArenaForAllocation()); + } + _impl_.classifier_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.classifier_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_classifier_name().empty()) { + _this->_impl_.classifier_name_.Set(from._internal_classifier_name(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.width_, &from._impl_.width_, + static_cast(reinterpret_cast(&_impl_.n_) - + reinterpret_cast(&_impl_.width_)) + sizeof(_impl_.n_)); + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetClassificationsRequest) +} + +inline void GetClassificationsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.image_){} + , decltype(_impl_.mime_type_){} + , decltype(_impl_.classifier_name_){} + , decltype(_impl_.width_){0} + , decltype(_impl_.height_){0} + , decltype(_impl_.n_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.image_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.image_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.classifier_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.classifier_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetClassificationsRequest::~GetClassificationsRequest() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetClassificationsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetClassificationsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.image_.Destroy(); + _impl_.mime_type_.Destroy(); + _impl_.classifier_name_.Destroy(); +} + +void GetClassificationsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetClassificationsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetClassificationsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.image_.ClearToEmpty(); + _impl_.mime_type_.ClearToEmpty(); + _impl_.classifier_name_.ClearToEmpty(); + ::memset(&_impl_.width_, 0, static_cast( + reinterpret_cast(&_impl_.n_) - + reinterpret_cast(&_impl_.width_)) + sizeof(_impl_.n_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetClassificationsRequest::_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.vision.v1.GetClassificationsRequest.name")); + } else + goto handle_unusual; + continue; + // bytes image = 2 [json_name = "image"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_image(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 width = 3 [json_name = "width"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 height = 4 [json_name = "height"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string mime_type = 5 [json_name = "mimeType"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetClassificationsRequest.mime_type")); + } else + goto handle_unusual; + continue; + // string classifier_name = 6 [json_name = "classifierName"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_classifier_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetClassificationsRequest.classifier_name")); + } else + goto handle_unusual; + continue; + // int32 n = 7 [json_name = "n"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { + _impl_.n_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* GetClassificationsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetClassificationsRequest) + 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.vision.v1.GetClassificationsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // bytes image = 2 [json_name = "image"]; + if (!this->_internal_image().empty()) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_image(), target); + } + + // int32 width = 3 [json_name = "width"]; + if (this->_internal_width() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_width(), target); + } + + // int32 height = 4 [json_name = "height"]; + if (this->_internal_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_height(), target); + } + + // string mime_type = 5 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetClassificationsRequest.mime_type"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_mime_type(), target); + } + + // string classifier_name = 6 [json_name = "classifierName"]; + if (!this->_internal_classifier_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_classifier_name().data(), static_cast(this->_internal_classifier_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetClassificationsRequest.classifier_name"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_classifier_name(), target); + } + + // int32 n = 7 [json_name = "n"]; + if (this->_internal_n() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(7, this->_internal_n(), 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.vision.v1.GetClassificationsRequest) + return target; +} + +size_t GetClassificationsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetClassificationsRequest) + 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()); + } + + // bytes image = 2 [json_name = "image"]; + if (!this->_internal_image().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_image()); + } + + // string mime_type = 5 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); + } + + // string classifier_name = 6 [json_name = "classifierName"]; + if (!this->_internal_classifier_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_classifier_name()); + } + + // int32 width = 3 [json_name = "width"]; + if (this->_internal_width() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_width()); + } + + // int32 height = 4 [json_name = "height"]; + if (this->_internal_height() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_height()); + } + + // int32 n = 7 [json_name = "n"]; + if (this->_internal_n() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_n()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetClassificationsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetClassificationsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassificationsRequest::GetClassData() const { return &_class_data_; } + + +void GetClassificationsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetClassificationsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_image().empty()) { + _this->_internal_set_image(from._internal_image()); + } + if (!from._internal_mime_type().empty()) { + _this->_internal_set_mime_type(from._internal_mime_type()); + } + if (!from._internal_classifier_name().empty()) { + _this->_internal_set_classifier_name(from._internal_classifier_name()); + } + if (from._internal_width() != 0) { + _this->_internal_set_width(from._internal_width()); + } + if (from._internal_height() != 0) { + _this->_internal_set_height(from._internal_height()); + } + if (from._internal_n() != 0) { + _this->_internal_set_n(from._internal_n()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetClassificationsRequest::CopyFrom(const GetClassificationsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.GetClassificationsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetClassificationsRequest::IsInitialized() const { + return true; +} + +void GetClassificationsRequest::InternalSwap(GetClassificationsRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.image_, lhs_arena, + &other->_impl_.image_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.mime_type_, lhs_arena, + &other->_impl_.mime_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.classifier_name_, lhs_arena, + &other->_impl_.classifier_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetClassificationsRequest, _impl_.n_) + + sizeof(GetClassificationsRequest::_impl_.n_) + - PROTOBUF_FIELD_OFFSET(GetClassificationsRequest, _impl_.width_)>( + reinterpret_cast(&_impl_.width_), + reinterpret_cast(&other->_impl_.width_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetClassificationsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[19]); +} + +// =================================================================== + +class GetClassificationsResponse::_Internal { + public: +}; + +GetClassificationsResponse::GetClassificationsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetClassificationsResponse) +} +GetClassificationsResponse::GetClassificationsResponse(const GetClassificationsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetClassificationsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.classifications_){from._impl_.classifications_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetClassificationsResponse) +} + +inline void GetClassificationsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.classifications_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetClassificationsResponse::~GetClassificationsResponse() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetClassificationsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetClassificationsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.classifications_.~RepeatedPtrField(); +} + +void GetClassificationsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetClassificationsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetClassificationsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.classifications_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetClassificationsResponse::_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) { + // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_classifications(), 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* GetClassificationsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetClassificationsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; + for (unsigned i = 0, + n = static_cast(this->_internal_classifications_size()); i < n; i++) { + const auto& repfield = this->_internal_classifications(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.vision.v1.GetClassificationsResponse) + return target; +} + +size_t GetClassificationsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetClassificationsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; + total_size += 1UL * this->_internal_classifications_size(); + for (const auto& msg : this->_impl_.classifications_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetClassificationsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetClassificationsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassificationsResponse::GetClassData() const { return &_class_data_; } + + +void GetClassificationsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetClassificationsResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.classifications_.MergeFrom(from._impl_.classifications_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetClassificationsResponse::CopyFrom(const GetClassificationsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.GetClassificationsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetClassificationsResponse::IsInitialized() const { + return true; +} + +void GetClassificationsResponse::InternalSwap(GetClassificationsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.classifications_.InternalSwap(&other->_impl_.classifications_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetClassificationsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[20]); +} + +// =================================================================== + +class GetClassificationsFromCameraRequest::_Internal { + public: +}; + +GetClassificationsFromCameraRequest::GetClassificationsFromCameraRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetClassificationsFromCameraRequest) +} +GetClassificationsFromCameraRequest::GetClassificationsFromCameraRequest(const GetClassificationsFromCameraRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetClassificationsFromCameraRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.camera_name_){} + , decltype(_impl_.classifier_name_){} + , decltype(_impl_.n_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.camera_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.camera_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_camera_name().empty()) { + _this->_impl_.camera_name_.Set(from._internal_camera_name(), + _this->GetArenaForAllocation()); + } + _impl_.classifier_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.classifier_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_classifier_name().empty()) { + _this->_impl_.classifier_name_.Set(from._internal_classifier_name(), + _this->GetArenaForAllocation()); + } + _this->_impl_.n_ = from._impl_.n_; + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetClassificationsFromCameraRequest) +} + +inline void GetClassificationsFromCameraRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.camera_name_){} + , decltype(_impl_.classifier_name_){} + , decltype(_impl_.n_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.camera_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.camera_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.classifier_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.classifier_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetClassificationsFromCameraRequest::~GetClassificationsFromCameraRequest() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetClassificationsFromCameraRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetClassificationsFromCameraRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.camera_name_.Destroy(); + _impl_.classifier_name_.Destroy(); +} + +void GetClassificationsFromCameraRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetClassificationsFromCameraRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetClassificationsFromCameraRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.camera_name_.ClearToEmpty(); + _impl_.classifier_name_.ClearToEmpty(); + _impl_.n_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetClassificationsFromCameraRequest::_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.vision.v1.GetClassificationsFromCameraRequest.name")); + } else + goto handle_unusual; + continue; + // string camera_name = 2 [json_name = "cameraName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_camera_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetClassificationsFromCameraRequest.camera_name")); + } else + goto handle_unusual; + continue; + // string classifier_name = 3 [json_name = "classifierName"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_classifier_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetClassificationsFromCameraRequest.classifier_name")); + } else + goto handle_unusual; + continue; + // int32 n = 4 [json_name = "n"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.n_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* GetClassificationsFromCameraRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetClassificationsFromCameraRequest) + 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.vision.v1.GetClassificationsFromCameraRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string camera_name = 2 [json_name = "cameraName"]; + if (!this->_internal_camera_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_camera_name().data(), static_cast(this->_internal_camera_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetClassificationsFromCameraRequest.camera_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_camera_name(), target); + } + + // string classifier_name = 3 [json_name = "classifierName"]; + if (!this->_internal_classifier_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_classifier_name().data(), static_cast(this->_internal_classifier_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetClassificationsFromCameraRequest.classifier_name"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_classifier_name(), target); + } + + // int32 n = 4 [json_name = "n"]; + if (this->_internal_n() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_n(), 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.vision.v1.GetClassificationsFromCameraRequest) + return target; +} + +size_t GetClassificationsFromCameraRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetClassificationsFromCameraRequest) + 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 camera_name = 2 [json_name = "cameraName"]; + if (!this->_internal_camera_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_camera_name()); + } + + // string classifier_name = 3 [json_name = "classifierName"]; + if (!this->_internal_classifier_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_classifier_name()); + } + + // int32 n = 4 [json_name = "n"]; + if (this->_internal_n() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_n()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetClassificationsFromCameraRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetClassificationsFromCameraRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassificationsFromCameraRequest::GetClassData() const { return &_class_data_; } + + +void GetClassificationsFromCameraRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetClassificationsFromCameraRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_camera_name().empty()) { + _this->_internal_set_camera_name(from._internal_camera_name()); + } + if (!from._internal_classifier_name().empty()) { + _this->_internal_set_classifier_name(from._internal_classifier_name()); + } + if (from._internal_n() != 0) { + _this->_internal_set_n(from._internal_n()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetClassificationsFromCameraRequest::CopyFrom(const GetClassificationsFromCameraRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.GetClassificationsFromCameraRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetClassificationsFromCameraRequest::IsInitialized() const { + return true; +} + +void GetClassificationsFromCameraRequest::InternalSwap(GetClassificationsFromCameraRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.camera_name_, lhs_arena, + &other->_impl_.camera_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.classifier_name_, lhs_arena, + &other->_impl_.classifier_name_, rhs_arena + ); + swap(_impl_.n_, other->_impl_.n_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetClassificationsFromCameraRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[21]); +} + +// =================================================================== + +class GetClassificationsFromCameraResponse::_Internal { + public: +}; + +GetClassificationsFromCameraResponse::GetClassificationsFromCameraResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetClassificationsFromCameraResponse) +} +GetClassificationsFromCameraResponse::GetClassificationsFromCameraResponse(const GetClassificationsFromCameraResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetClassificationsFromCameraResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.classifications_){from._impl_.classifications_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetClassificationsFromCameraResponse) +} + +inline void GetClassificationsFromCameraResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.classifications_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetClassificationsFromCameraResponse::~GetClassificationsFromCameraResponse() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetClassificationsFromCameraResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetClassificationsFromCameraResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.classifications_.~RepeatedPtrField(); +} + +void GetClassificationsFromCameraResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetClassificationsFromCameraResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetClassificationsFromCameraResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.classifications_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetClassificationsFromCameraResponse::_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) { + // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_classifications(), 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* GetClassificationsFromCameraResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetClassificationsFromCameraResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; + for (unsigned i = 0, + n = static_cast(this->_internal_classifications_size()); i < n; i++) { + const auto& repfield = this->_internal_classifications(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.vision.v1.GetClassificationsFromCameraResponse) + return target; +} + +size_t GetClassificationsFromCameraResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetClassificationsFromCameraResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; + total_size += 1UL * this->_internal_classifications_size(); + for (const auto& msg : this->_impl_.classifications_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetClassificationsFromCameraResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetClassificationsFromCameraResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassificationsFromCameraResponse::GetClassData() const { return &_class_data_; } + + +void GetClassificationsFromCameraResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetClassificationsFromCameraResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.classifications_.MergeFrom(from._impl_.classifications_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetClassificationsFromCameraResponse::CopyFrom(const GetClassificationsFromCameraResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.GetClassificationsFromCameraResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetClassificationsFromCameraResponse::IsInitialized() const { + return true; +} + +void GetClassificationsFromCameraResponse::InternalSwap(GetClassificationsFromCameraResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.classifications_.InternalSwap(&other->_impl_.classifications_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetClassificationsFromCameraResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[22]); +} + +// =================================================================== + +class Classification::_Internal { + public: +}; + +Classification::Classification(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.Classification) +} +Classification::Classification(const Classification& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Classification* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.class_name_){} + , decltype(_impl_.confidence_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.class_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.class_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_class_name().empty()) { + _this->_impl_.class_name_.Set(from._internal_class_name(), + _this->GetArenaForAllocation()); + } + _this->_impl_.confidence_ = from._impl_.confidence_; + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.Classification) +} + +inline void Classification::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.class_name_){} + , decltype(_impl_.confidence_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.class_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.class_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Classification::~Classification() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.Classification) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Classification::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.class_name_.Destroy(); +} + +void Classification::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Classification::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.Classification) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.class_name_.ClearToEmpty(); + _impl_.confidence_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Classification::_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 class_name = 1 [json_name = "className"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_class_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.Classification.class_name")); + } else + goto handle_unusual; + continue; + // double confidence = 2 [json_name = "confidence"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + _impl_.confidence_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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* Classification::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.Classification) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string class_name = 1 [json_name = "className"]; + if (!this->_internal_class_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_class_name().data(), static_cast(this->_internal_class_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.Classification.class_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_class_name(), target); + } + + // double confidence = 2 [json_name = "confidence"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_confidence = this->_internal_confidence(); + uint64_t raw_confidence; + memcpy(&raw_confidence, &tmp_confidence, sizeof(tmp_confidence)); + if (raw_confidence != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_confidence(), 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.vision.v1.Classification) + return target; +} + +size_t Classification::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.Classification) + 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 class_name = 1 [json_name = "className"]; + if (!this->_internal_class_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_class_name()); + } + + // double confidence = 2 [json_name = "confidence"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_confidence = this->_internal_confidence(); + uint64_t raw_confidence; + memcpy(&raw_confidence, &tmp_confidence, sizeof(tmp_confidence)); + if (raw_confidence != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Classification::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Classification::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Classification::GetClassData() const { return &_class_data_; } + + +void Classification::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.Classification) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_class_name().empty()) { + _this->_internal_set_class_name(from._internal_class_name()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_confidence = from._internal_confidence(); + uint64_t raw_confidence; + memcpy(&raw_confidence, &tmp_confidence, sizeof(tmp_confidence)); + if (raw_confidence != 0) { + _this->_internal_set_confidence(from._internal_confidence()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Classification::CopyFrom(const Classification& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.Classification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Classification::IsInitialized() const { + return true; +} + +void Classification::InternalSwap(Classification* 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( + &_impl_.class_name_, lhs_arena, + &other->_impl_.class_name_, rhs_arena + ); + swap(_impl_.confidence_, other->_impl_.confidence_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Classification::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[23]); +} + +// =================================================================== + +class GetSegmenterNamesRequest::_Internal { + public: +}; + +GetSegmenterNamesRequest::GetSegmenterNamesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetSegmenterNamesRequest) +} +GetSegmenterNamesRequest::GetSegmenterNamesRequest(const GetSegmenterNamesRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetSegmenterNamesRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetSegmenterNamesRequest) +} + +inline void GetSegmenterNamesRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetSegmenterNamesRequest::~GetSegmenterNamesRequest() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetSegmenterNamesRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetSegmenterNamesRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} + +void GetSegmenterNamesRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetSegmenterNamesRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetSegmenterNamesRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetSegmenterNamesRequest::_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.vision.v1.GetSegmenterNamesRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetSegmenterNamesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetSegmenterNamesRequest) + 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.vision.v1.GetSegmenterNamesRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.vision.v1.GetSegmenterNamesRequest) + return target; +} + +size_t GetSegmenterNamesRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetSegmenterNamesRequest) + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetSegmenterNamesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetSegmenterNamesRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetSegmenterNamesRequest::GetClassData() const { return &_class_data_; } + + +void GetSegmenterNamesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetSegmenterNamesRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetSegmenterNamesRequest::CopyFrom(const GetSegmenterNamesRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.GetSegmenterNamesRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetSegmenterNamesRequest::IsInitialized() const { + return true; +} + +void GetSegmenterNamesRequest::InternalSwap(GetSegmenterNamesRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetSegmenterNamesRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[24]); +} + +// =================================================================== + +class GetSegmenterNamesResponse::_Internal { + public: +}; + +GetSegmenterNamesResponse::GetSegmenterNamesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetSegmenterNamesResponse) +} +GetSegmenterNamesResponse::GetSegmenterNamesResponse(const GetSegmenterNamesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetSegmenterNamesResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.segmenter_names_){from._impl_.segmenter_names_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetSegmenterNamesResponse) +} + +inline void GetSegmenterNamesResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.segmenter_names_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GetSegmenterNamesResponse::~GetSegmenterNamesResponse() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetSegmenterNamesResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetSegmenterNamesResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.segmenter_names_.~RepeatedPtrField(); +} + +void GetSegmenterNamesResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetSegmenterNamesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetSegmenterNamesResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.segmenter_names_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetSegmenterNamesResponse::_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) { + // repeated string segmenter_names = 1 [json_name = "segmenterNames"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_segmenter_names(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetSegmenterNamesResponse.segmenter_names")); + 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* GetSegmenterNamesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetSegmenterNamesResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string segmenter_names = 1 [json_name = "segmenterNames"]; + for (int i = 0, n = this->_internal_segmenter_names_size(); i < n; i++) { + const auto& s = this->_internal_segmenter_names(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetSegmenterNamesResponse.segmenter_names"); + target = stream->WriteString(1, s, 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.vision.v1.GetSegmenterNamesResponse) + return target; +} + +size_t GetSegmenterNamesResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetSegmenterNamesResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string segmenter_names = 1 [json_name = "segmenterNames"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.segmenter_names_.size()); + for (int i = 0, n = _impl_.segmenter_names_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.segmenter_names_.Get(i)); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetSegmenterNamesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetSegmenterNamesResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetSegmenterNamesResponse::GetClassData() const { return &_class_data_; } + + +void GetSegmenterNamesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetSegmenterNamesResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.segmenter_names_.MergeFrom(from._impl_.segmenter_names_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetSegmenterNamesResponse::CopyFrom(const GetSegmenterNamesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.GetSegmenterNamesResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetSegmenterNamesResponse::IsInitialized() const { + return true; +} + +void GetSegmenterNamesResponse::InternalSwap(GetSegmenterNamesResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.segmenter_names_.InternalSwap(&other->_impl_.segmenter_names_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetSegmenterNamesResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[25]); +} + +// =================================================================== + +class AddSegmenterRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& segmenter_parameters(const AddSegmenterRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +AddSegmenterRequest::_Internal::segmenter_parameters(const AddSegmenterRequest* msg) { + return *msg->_impl_.segmenter_parameters_; +} +void AddSegmenterRequest::clear_segmenter_parameters() { + if (GetArenaForAllocation() == nullptr && _impl_.segmenter_parameters_ != nullptr) { + delete _impl_.segmenter_parameters_; + } + _impl_.segmenter_parameters_ = nullptr; +} +AddSegmenterRequest::AddSegmenterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.AddSegmenterRequest) +} +AddSegmenterRequest::AddSegmenterRequest(const AddSegmenterRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + AddSegmenterRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.segmenter_name_){} + , decltype(_impl_.segmenter_model_type_){} + , decltype(_impl_.segmenter_parameters_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.segmenter_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.segmenter_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_segmenter_name().empty()) { + _this->_impl_.segmenter_name_.Set(from._internal_segmenter_name(), + _this->GetArenaForAllocation()); + } + _impl_.segmenter_model_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.segmenter_model_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_segmenter_model_type().empty()) { + _this->_impl_.segmenter_model_type_.Set(from._internal_segmenter_model_type(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_segmenter_parameters()) { + _this->_impl_.segmenter_parameters_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from._impl_.segmenter_parameters_); + } + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.AddSegmenterRequest) +} + +inline void AddSegmenterRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.segmenter_name_){} + , decltype(_impl_.segmenter_model_type_){} + , decltype(_impl_.segmenter_parameters_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.segmenter_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.segmenter_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.segmenter_model_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.segmenter_model_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +AddSegmenterRequest::~AddSegmenterRequest() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.AddSegmenterRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void AddSegmenterRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.segmenter_name_.Destroy(); + _impl_.segmenter_model_type_.Destroy(); + if (this != internal_default_instance()) delete _impl_.segmenter_parameters_; +} + +void AddSegmenterRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void AddSegmenterRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.AddSegmenterRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.segmenter_name_.ClearToEmpty(); + _impl_.segmenter_model_type_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.segmenter_parameters_ != nullptr) { + delete _impl_.segmenter_parameters_; + } + _impl_.segmenter_parameters_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AddSegmenterRequest::_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.vision.v1.AddSegmenterRequest.name")); + } else + goto handle_unusual; + continue; + // string segmenter_name = 2 [json_name = "segmenterName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_segmenter_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.AddSegmenterRequest.segmenter_name")); + } else + goto handle_unusual; + continue; + // string segmenter_model_type = 3 [json_name = "segmenterModelType"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_segmenter_model_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.AddSegmenterRequest.segmenter_model_type")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct segmenter_parameters = 4 [json_name = "segmenterParameters"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_segmenter_parameters(), 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* AddSegmenterRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.AddSegmenterRequest) + 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.vision.v1.AddSegmenterRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string segmenter_name = 2 [json_name = "segmenterName"]; + if (!this->_internal_segmenter_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_segmenter_name().data(), static_cast(this->_internal_segmenter_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.AddSegmenterRequest.segmenter_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_segmenter_name(), target); + } + + // string segmenter_model_type = 3 [json_name = "segmenterModelType"]; + if (!this->_internal_segmenter_model_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_segmenter_model_type().data(), static_cast(this->_internal_segmenter_model_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.AddSegmenterRequest.segmenter_model_type"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_segmenter_model_type(), target); + } + + // .google.protobuf.Struct segmenter_parameters = 4 [json_name = "segmenterParameters"]; + if (this->_internal_has_segmenter_parameters()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::segmenter_parameters(this), + _Internal::segmenter_parameters(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.vision.v1.AddSegmenterRequest) + return target; +} + +size_t AddSegmenterRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.AddSegmenterRequest) + 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 segmenter_name = 2 [json_name = "segmenterName"]; + if (!this->_internal_segmenter_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_segmenter_name()); + } + + // string segmenter_model_type = 3 [json_name = "segmenterModelType"]; + if (!this->_internal_segmenter_model_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_segmenter_model_type()); + } + + // .google.protobuf.Struct segmenter_parameters = 4 [json_name = "segmenterParameters"]; + if (this->_internal_has_segmenter_parameters()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.segmenter_parameters_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddSegmenterRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AddSegmenterRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddSegmenterRequest::GetClassData() const { return &_class_data_; } + + +void AddSegmenterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.AddSegmenterRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_segmenter_name().empty()) { + _this->_internal_set_segmenter_name(from._internal_segmenter_name()); + } + if (!from._internal_segmenter_model_type().empty()) { + _this->_internal_set_segmenter_model_type(from._internal_segmenter_model_type()); + } + if (from._internal_has_segmenter_parameters()) { + _this->_internal_mutable_segmenter_parameters()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom( + from._internal_segmenter_parameters()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AddSegmenterRequest::CopyFrom(const AddSegmenterRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.AddSegmenterRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AddSegmenterRequest::IsInitialized() const { + return true; +} + +void AddSegmenterRequest::InternalSwap(AddSegmenterRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.segmenter_name_, lhs_arena, + &other->_impl_.segmenter_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.segmenter_model_type_, lhs_arena, + &other->_impl_.segmenter_model_type_, rhs_arena + ); + swap(_impl_.segmenter_parameters_, other->_impl_.segmenter_parameters_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AddSegmenterRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[26]); +} + +// =================================================================== + +class AddSegmenterResponse::_Internal { + public: +}; + +AddSegmenterResponse::AddSegmenterResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.AddSegmenterResponse) +} +AddSegmenterResponse::AddSegmenterResponse(const AddSegmenterResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + AddSegmenterResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.AddSegmenterResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddSegmenterResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddSegmenterResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata AddSegmenterResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[27]); +} + +// =================================================================== + +class RemoveSegmenterRequest::_Internal { + public: +}; + +RemoveSegmenterRequest::RemoveSegmenterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.RemoveSegmenterRequest) +} +RemoveSegmenterRequest::RemoveSegmenterRequest(const RemoveSegmenterRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RemoveSegmenterRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.segmenter_name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.segmenter_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.segmenter_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_segmenter_name().empty()) { + _this->_impl_.segmenter_name_.Set(from._internal_segmenter_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.RemoveSegmenterRequest) +} + +inline void RemoveSegmenterRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.segmenter_name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.segmenter_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.segmenter_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +RemoveSegmenterRequest::~RemoveSegmenterRequest() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.RemoveSegmenterRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RemoveSegmenterRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.segmenter_name_.Destroy(); +} + +void RemoveSegmenterRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RemoveSegmenterRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.RemoveSegmenterRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.segmenter_name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RemoveSegmenterRequest::_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.vision.v1.RemoveSegmenterRequest.name")); + } else + goto handle_unusual; + continue; + // string segmenter_name = 2 [json_name = "segmenterName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_segmenter_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.RemoveSegmenterRequest.segmenter_name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* RemoveSegmenterRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.RemoveSegmenterRequest) + 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.vision.v1.RemoveSegmenterRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string segmenter_name = 2 [json_name = "segmenterName"]; + if (!this->_internal_segmenter_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_segmenter_name().data(), static_cast(this->_internal_segmenter_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.RemoveSegmenterRequest.segmenter_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_segmenter_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.vision.v1.RemoveSegmenterRequest) + return target; +} + +size_t RemoveSegmenterRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.RemoveSegmenterRequest) + 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 segmenter_name = 2 [json_name = "segmenterName"]; + if (!this->_internal_segmenter_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_segmenter_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoveSegmenterRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RemoveSegmenterRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoveSegmenterRequest::GetClassData() const { return &_class_data_; } + + +void RemoveSegmenterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.RemoveSegmenterRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_segmenter_name().empty()) { + _this->_internal_set_segmenter_name(from._internal_segmenter_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RemoveSegmenterRequest::CopyFrom(const RemoveSegmenterRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.RemoveSegmenterRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RemoveSegmenterRequest::IsInitialized() const { + return true; +} + +void RemoveSegmenterRequest::InternalSwap(RemoveSegmenterRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.segmenter_name_, lhs_arena, + &other->_impl_.segmenter_name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RemoveSegmenterRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[28]); +} + +// =================================================================== + +class RemoveSegmenterResponse::_Internal { + public: +}; + +RemoveSegmenterResponse::RemoveSegmenterResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.RemoveSegmenterResponse) +} +RemoveSegmenterResponse::RemoveSegmenterResponse(const RemoveSegmenterResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + RemoveSegmenterResponse* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.RemoveSegmenterResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoveSegmenterResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoveSegmenterResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata RemoveSegmenterResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[29]); +} + +// =================================================================== + +class GetObjectPointCloudsRequest::_Internal { + public: +}; + +GetObjectPointCloudsRequest::GetObjectPointCloudsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetObjectPointCloudsRequest) +} +GetObjectPointCloudsRequest::GetObjectPointCloudsRequest(const GetObjectPointCloudsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetObjectPointCloudsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.camera_name_){} + , decltype(_impl_.segmenter_name_){} + , decltype(_impl_.mime_type_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.camera_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.camera_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_camera_name().empty()) { + _this->_impl_.camera_name_.Set(from._internal_camera_name(), + _this->GetArenaForAllocation()); + } + _impl_.segmenter_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.segmenter_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_segmenter_name().empty()) { + _this->_impl_.segmenter_name_.Set(from._internal_segmenter_name(), + _this->GetArenaForAllocation()); + } + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + _this->_impl_.mime_type_.Set(from._internal_mime_type(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetObjectPointCloudsRequest) +} + +inline void GetObjectPointCloudsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.camera_name_){} + , decltype(_impl_.segmenter_name_){} + , decltype(_impl_.mime_type_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.camera_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.camera_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.segmenter_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.segmenter_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetObjectPointCloudsRequest::~GetObjectPointCloudsRequest() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetObjectPointCloudsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetObjectPointCloudsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.camera_name_.Destroy(); + _impl_.segmenter_name_.Destroy(); + _impl_.mime_type_.Destroy(); +} + +void GetObjectPointCloudsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetObjectPointCloudsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetObjectPointCloudsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.camera_name_.ClearToEmpty(); + _impl_.segmenter_name_.ClearToEmpty(); + _impl_.mime_type_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetObjectPointCloudsRequest::_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.vision.v1.GetObjectPointCloudsRequest.name")); + } else + goto handle_unusual; + continue; + // string camera_name = 2 [json_name = "cameraName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_camera_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetObjectPointCloudsRequest.camera_name")); + } else + goto handle_unusual; + continue; + // string segmenter_name = 3 [json_name = "segmenterName"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_segmenter_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetObjectPointCloudsRequest.segmenter_name")); + } else + goto handle_unusual; + continue; + // string mime_type = 4 [json_name = "mimeType"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetObjectPointCloudsRequest.mime_type")); + } 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* GetObjectPointCloudsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetObjectPointCloudsRequest) + 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.vision.v1.GetObjectPointCloudsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string camera_name = 2 [json_name = "cameraName"]; + if (!this->_internal_camera_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_camera_name().data(), static_cast(this->_internal_camera_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetObjectPointCloudsRequest.camera_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_camera_name(), target); + } + + // string segmenter_name = 3 [json_name = "segmenterName"]; + if (!this->_internal_segmenter_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_segmenter_name().data(), static_cast(this->_internal_segmenter_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetObjectPointCloudsRequest.segmenter_name"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_segmenter_name(), target); + } + + // string mime_type = 4 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetObjectPointCloudsRequest.mime_type"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_mime_type(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.vision.v1.GetObjectPointCloudsRequest) + return target; +} + +size_t GetObjectPointCloudsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetObjectPointCloudsRequest) + 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 camera_name = 2 [json_name = "cameraName"]; + if (!this->_internal_camera_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_camera_name()); + } + + // string segmenter_name = 3 [json_name = "segmenterName"]; + if (!this->_internal_segmenter_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_segmenter_name()); + } + + // string mime_type = 4 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetObjectPointCloudsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetObjectPointCloudsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetObjectPointCloudsRequest::GetClassData() const { return &_class_data_; } + + +void GetObjectPointCloudsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetObjectPointCloudsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_camera_name().empty()) { + _this->_internal_set_camera_name(from._internal_camera_name()); + } + if (!from._internal_segmenter_name().empty()) { + _this->_internal_set_segmenter_name(from._internal_segmenter_name()); + } + if (!from._internal_mime_type().empty()) { + _this->_internal_set_mime_type(from._internal_mime_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetObjectPointCloudsRequest::CopyFrom(const GetObjectPointCloudsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.GetObjectPointCloudsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetObjectPointCloudsRequest::IsInitialized() const { + return true; +} + +void GetObjectPointCloudsRequest::InternalSwap(GetObjectPointCloudsRequest* 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( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.camera_name_, lhs_arena, + &other->_impl_.camera_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.segmenter_name_, lhs_arena, + &other->_impl_.segmenter_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.mime_type_, lhs_arena, + &other->_impl_.mime_type_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetObjectPointCloudsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[30]); +} + +// =================================================================== + +class GetObjectPointCloudsResponse::_Internal { + public: +}; + +void GetObjectPointCloudsResponse::clear_objects() { + _impl_.objects_.Clear(); +} +GetObjectPointCloudsResponse::GetObjectPointCloudsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetObjectPointCloudsResponse) +} +GetObjectPointCloudsResponse::GetObjectPointCloudsResponse(const GetObjectPointCloudsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetObjectPointCloudsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.objects_){from._impl_.objects_} + , decltype(_impl_.mime_type_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + _this->_impl_.mime_type_.Set(from._internal_mime_type(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetObjectPointCloudsResponse) +} + +inline void GetObjectPointCloudsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.objects_){arena} + , decltype(_impl_.mime_type_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetObjectPointCloudsResponse::~GetObjectPointCloudsResponse() { + // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetObjectPointCloudsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetObjectPointCloudsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.objects_.~RepeatedPtrField(); + _impl_.mime_type_.Destroy(); +} + +void GetObjectPointCloudsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GetObjectPointCloudsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetObjectPointCloudsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.objects_.Clear(); + _impl_.mime_type_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetObjectPointCloudsResponse::_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 mime_type = 1 [json_name = "mimeType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetObjectPointCloudsResponse.mime_type")); + } else + goto handle_unusual; + continue; + // repeated .viam.common.v1.PointCloudObject objects = 2 [json_name = "objects"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_objects(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* GetObjectPointCloudsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetObjectPointCloudsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string mime_type = 1 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetObjectPointCloudsResponse.mime_type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_mime_type(), target); + } + + // repeated .viam.common.v1.PointCloudObject objects = 2 [json_name = "objects"]; + for (unsigned i = 0, + n = static_cast(this->_internal_objects_size()); i < n; i++) { + const auto& repfield = this->_internal_objects(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.vision.v1.GetObjectPointCloudsResponse) + return target; +} + +size_t GetObjectPointCloudsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetObjectPointCloudsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.common.v1.PointCloudObject objects = 2 [json_name = "objects"]; + total_size += 1UL * this->_internal_objects_size(); + for (const auto& msg : this->_impl_.objects_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string mime_type = 1 [json_name = "mimeType"]; + if (!this->_internal_mime_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetObjectPointCloudsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetObjectPointCloudsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetObjectPointCloudsResponse::GetClassData() const { return &_class_data_; } + + +void GetObjectPointCloudsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetObjectPointCloudsResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.objects_.MergeFrom(from._impl_.objects_); + if (!from._internal_mime_type().empty()) { + _this->_internal_set_mime_type(from._internal_mime_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetObjectPointCloudsResponse::CopyFrom(const GetObjectPointCloudsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.vision.v1.GetObjectPointCloudsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetObjectPointCloudsResponse::IsInitialized() const { + return true; +} + +void GetObjectPointCloudsResponse::InternalSwap(GetObjectPointCloudsResponse* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.objects_.InternalSwap(&other->_impl_.objects_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.mime_type_, lhs_arena, + &other->_impl_.mime_type_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetObjectPointCloudsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[31]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace vision +} // namespace service +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetModelParameterSchemaRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetModelParameterSchemaRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetModelParameterSchemaRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetModelParameterSchemaResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetModelParameterSchemaResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetModelParameterSchemaResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetDetectorNamesRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetDetectorNamesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetDetectorNamesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetDetectorNamesResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetDetectorNamesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetDetectorNamesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::AddDetectorRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::AddDetectorRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::AddDetectorRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::AddDetectorResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::AddDetectorResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::AddDetectorResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::RemoveDetectorRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::RemoveDetectorRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::RemoveDetectorRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::RemoveDetectorResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::RemoveDetectorResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::RemoveDetectorResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetDetectionsRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetDetectionsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetDetectionsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetDetectionsResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetDetectionsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetDetectionsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetDetectionsFromCameraRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetDetectionsFromCameraRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetDetectionsFromCameraRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetDetectionsFromCameraResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetDetectionsFromCameraResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetDetectionsFromCameraResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::Detection* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::Detection >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::Detection >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetClassifierNamesRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetClassifierNamesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetClassifierNamesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetClassifierNamesResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetClassifierNamesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetClassifierNamesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::AddClassifierRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::AddClassifierRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::AddClassifierRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::AddClassifierResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::AddClassifierResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::AddClassifierResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::RemoveClassifierRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::RemoveClassifierRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::RemoveClassifierRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::RemoveClassifierResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::RemoveClassifierResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::RemoveClassifierResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetClassificationsRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetClassificationsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetClassificationsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetClassificationsResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetClassificationsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetClassificationsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetClassificationsFromCameraRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetClassificationsFromCameraRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetClassificationsFromCameraRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetClassificationsFromCameraResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetClassificationsFromCameraResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetClassificationsFromCameraResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::Classification* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::Classification >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::Classification >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetSegmenterNamesRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetSegmenterNamesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetSegmenterNamesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetSegmenterNamesResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetSegmenterNamesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetSegmenterNamesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::AddSegmenterRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::AddSegmenterRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::AddSegmenterRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::AddSegmenterResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::AddSegmenterResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::AddSegmenterResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::RemoveSegmenterRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::RemoveSegmenterRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::RemoveSegmenterRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::RemoveSegmenterResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::RemoveSegmenterResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::RemoveSegmenterResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetObjectPointCloudsRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetObjectPointCloudsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetObjectPointCloudsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetObjectPointCloudsResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetObjectPointCloudsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetObjectPointCloudsResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/service/vision/v1/vision.pb.h b/src/gen/service/vision/v1/vision.pb.h new file mode 100644 index 000000000..d0847132f --- /dev/null +++ b/src/gen/service/vision/v1/vision.pb.h @@ -0,0 +1,8783 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service/vision/v1/vision.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fvision_2fv1_2fvision_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_service_2fvision_2fv1_2fvision_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "common/v1/common.pb.h" +#include "google/api/annotations.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_service_2fvision_2fv1_2fvision_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_service_2fvision_2fv1_2fvision_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_service_2fvision_2fv1_2fvision_2eproto; +namespace viam { +namespace service { +namespace vision { +namespace v1 { +class AddClassifierRequest; +struct AddClassifierRequestDefaultTypeInternal; +extern AddClassifierRequestDefaultTypeInternal _AddClassifierRequest_default_instance_; +class AddClassifierResponse; +struct AddClassifierResponseDefaultTypeInternal; +extern AddClassifierResponseDefaultTypeInternal _AddClassifierResponse_default_instance_; +class AddDetectorRequest; +struct AddDetectorRequestDefaultTypeInternal; +extern AddDetectorRequestDefaultTypeInternal _AddDetectorRequest_default_instance_; +class AddDetectorResponse; +struct AddDetectorResponseDefaultTypeInternal; +extern AddDetectorResponseDefaultTypeInternal _AddDetectorResponse_default_instance_; +class AddSegmenterRequest; +struct AddSegmenterRequestDefaultTypeInternal; +extern AddSegmenterRequestDefaultTypeInternal _AddSegmenterRequest_default_instance_; +class AddSegmenterResponse; +struct AddSegmenterResponseDefaultTypeInternal; +extern AddSegmenterResponseDefaultTypeInternal _AddSegmenterResponse_default_instance_; +class Classification; +struct ClassificationDefaultTypeInternal; +extern ClassificationDefaultTypeInternal _Classification_default_instance_; +class Detection; +struct DetectionDefaultTypeInternal; +extern DetectionDefaultTypeInternal _Detection_default_instance_; +class GetClassificationsFromCameraRequest; +struct GetClassificationsFromCameraRequestDefaultTypeInternal; +extern GetClassificationsFromCameraRequestDefaultTypeInternal _GetClassificationsFromCameraRequest_default_instance_; +class GetClassificationsFromCameraResponse; +struct GetClassificationsFromCameraResponseDefaultTypeInternal; +extern GetClassificationsFromCameraResponseDefaultTypeInternal _GetClassificationsFromCameraResponse_default_instance_; +class GetClassificationsRequest; +struct GetClassificationsRequestDefaultTypeInternal; +extern GetClassificationsRequestDefaultTypeInternal _GetClassificationsRequest_default_instance_; +class GetClassificationsResponse; +struct GetClassificationsResponseDefaultTypeInternal; +extern GetClassificationsResponseDefaultTypeInternal _GetClassificationsResponse_default_instance_; +class GetClassifierNamesRequest; +struct GetClassifierNamesRequestDefaultTypeInternal; +extern GetClassifierNamesRequestDefaultTypeInternal _GetClassifierNamesRequest_default_instance_; +class GetClassifierNamesResponse; +struct GetClassifierNamesResponseDefaultTypeInternal; +extern GetClassifierNamesResponseDefaultTypeInternal _GetClassifierNamesResponse_default_instance_; +class GetDetectionsFromCameraRequest; +struct GetDetectionsFromCameraRequestDefaultTypeInternal; +extern GetDetectionsFromCameraRequestDefaultTypeInternal _GetDetectionsFromCameraRequest_default_instance_; +class GetDetectionsFromCameraResponse; +struct GetDetectionsFromCameraResponseDefaultTypeInternal; +extern GetDetectionsFromCameraResponseDefaultTypeInternal _GetDetectionsFromCameraResponse_default_instance_; +class GetDetectionsRequest; +struct GetDetectionsRequestDefaultTypeInternal; +extern GetDetectionsRequestDefaultTypeInternal _GetDetectionsRequest_default_instance_; +class GetDetectionsResponse; +struct GetDetectionsResponseDefaultTypeInternal; +extern GetDetectionsResponseDefaultTypeInternal _GetDetectionsResponse_default_instance_; +class GetDetectorNamesRequest; +struct GetDetectorNamesRequestDefaultTypeInternal; +extern GetDetectorNamesRequestDefaultTypeInternal _GetDetectorNamesRequest_default_instance_; +class GetDetectorNamesResponse; +struct GetDetectorNamesResponseDefaultTypeInternal; +extern GetDetectorNamesResponseDefaultTypeInternal _GetDetectorNamesResponse_default_instance_; +class GetModelParameterSchemaRequest; +struct GetModelParameterSchemaRequestDefaultTypeInternal; +extern GetModelParameterSchemaRequestDefaultTypeInternal _GetModelParameterSchemaRequest_default_instance_; +class GetModelParameterSchemaResponse; +struct GetModelParameterSchemaResponseDefaultTypeInternal; +extern GetModelParameterSchemaResponseDefaultTypeInternal _GetModelParameterSchemaResponse_default_instance_; +class GetObjectPointCloudsRequest; +struct GetObjectPointCloudsRequestDefaultTypeInternal; +extern GetObjectPointCloudsRequestDefaultTypeInternal _GetObjectPointCloudsRequest_default_instance_; +class GetObjectPointCloudsResponse; +struct GetObjectPointCloudsResponseDefaultTypeInternal; +extern GetObjectPointCloudsResponseDefaultTypeInternal _GetObjectPointCloudsResponse_default_instance_; +class GetSegmenterNamesRequest; +struct GetSegmenterNamesRequestDefaultTypeInternal; +extern GetSegmenterNamesRequestDefaultTypeInternal _GetSegmenterNamesRequest_default_instance_; +class GetSegmenterNamesResponse; +struct GetSegmenterNamesResponseDefaultTypeInternal; +extern GetSegmenterNamesResponseDefaultTypeInternal _GetSegmenterNamesResponse_default_instance_; +class RemoveClassifierRequest; +struct RemoveClassifierRequestDefaultTypeInternal; +extern RemoveClassifierRequestDefaultTypeInternal _RemoveClassifierRequest_default_instance_; +class RemoveClassifierResponse; +struct RemoveClassifierResponseDefaultTypeInternal; +extern RemoveClassifierResponseDefaultTypeInternal _RemoveClassifierResponse_default_instance_; +class RemoveDetectorRequest; +struct RemoveDetectorRequestDefaultTypeInternal; +extern RemoveDetectorRequestDefaultTypeInternal _RemoveDetectorRequest_default_instance_; +class RemoveDetectorResponse; +struct RemoveDetectorResponseDefaultTypeInternal; +extern RemoveDetectorResponseDefaultTypeInternal _RemoveDetectorResponse_default_instance_; +class RemoveSegmenterRequest; +struct RemoveSegmenterRequestDefaultTypeInternal; +extern RemoveSegmenterRequestDefaultTypeInternal _RemoveSegmenterRequest_default_instance_; +class RemoveSegmenterResponse; +struct RemoveSegmenterResponseDefaultTypeInternal; +extern RemoveSegmenterResponseDefaultTypeInternal _RemoveSegmenterResponse_default_instance_; +} // namespace v1 +} // namespace vision +} // namespace service +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::service::vision::v1::AddClassifierRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::AddClassifierRequest>(Arena*); +template<> ::viam::service::vision::v1::AddClassifierResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::AddClassifierResponse>(Arena*); +template<> ::viam::service::vision::v1::AddDetectorRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::AddDetectorRequest>(Arena*); +template<> ::viam::service::vision::v1::AddDetectorResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::AddDetectorResponse>(Arena*); +template<> ::viam::service::vision::v1::AddSegmenterRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::AddSegmenterRequest>(Arena*); +template<> ::viam::service::vision::v1::AddSegmenterResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::AddSegmenterResponse>(Arena*); +template<> ::viam::service::vision::v1::Classification* Arena::CreateMaybeMessage<::viam::service::vision::v1::Classification>(Arena*); +template<> ::viam::service::vision::v1::Detection* Arena::CreateMaybeMessage<::viam::service::vision::v1::Detection>(Arena*); +template<> ::viam::service::vision::v1::GetClassificationsFromCameraRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetClassificationsFromCameraRequest>(Arena*); +template<> ::viam::service::vision::v1::GetClassificationsFromCameraResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetClassificationsFromCameraResponse>(Arena*); +template<> ::viam::service::vision::v1::GetClassificationsRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetClassificationsRequest>(Arena*); +template<> ::viam::service::vision::v1::GetClassificationsResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetClassificationsResponse>(Arena*); +template<> ::viam::service::vision::v1::GetClassifierNamesRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetClassifierNamesRequest>(Arena*); +template<> ::viam::service::vision::v1::GetClassifierNamesResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetClassifierNamesResponse>(Arena*); +template<> ::viam::service::vision::v1::GetDetectionsFromCameraRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetDetectionsFromCameraRequest>(Arena*); +template<> ::viam::service::vision::v1::GetDetectionsFromCameraResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetDetectionsFromCameraResponse>(Arena*); +template<> ::viam::service::vision::v1::GetDetectionsRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetDetectionsRequest>(Arena*); +template<> ::viam::service::vision::v1::GetDetectionsResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetDetectionsResponse>(Arena*); +template<> ::viam::service::vision::v1::GetDetectorNamesRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetDetectorNamesRequest>(Arena*); +template<> ::viam::service::vision::v1::GetDetectorNamesResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetDetectorNamesResponse>(Arena*); +template<> ::viam::service::vision::v1::GetModelParameterSchemaRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetModelParameterSchemaRequest>(Arena*); +template<> ::viam::service::vision::v1::GetModelParameterSchemaResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetModelParameterSchemaResponse>(Arena*); +template<> ::viam::service::vision::v1::GetObjectPointCloudsRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetObjectPointCloudsRequest>(Arena*); +template<> ::viam::service::vision::v1::GetObjectPointCloudsResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetObjectPointCloudsResponse>(Arena*); +template<> ::viam::service::vision::v1::GetSegmenterNamesRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetSegmenterNamesRequest>(Arena*); +template<> ::viam::service::vision::v1::GetSegmenterNamesResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetSegmenterNamesResponse>(Arena*); +template<> ::viam::service::vision::v1::RemoveClassifierRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::RemoveClassifierRequest>(Arena*); +template<> ::viam::service::vision::v1::RemoveClassifierResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::RemoveClassifierResponse>(Arena*); +template<> ::viam::service::vision::v1::RemoveDetectorRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::RemoveDetectorRequest>(Arena*); +template<> ::viam::service::vision::v1::RemoveDetectorResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::RemoveDetectorResponse>(Arena*); +template<> ::viam::service::vision::v1::RemoveSegmenterRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::RemoveSegmenterRequest>(Arena*); +template<> ::viam::service::vision::v1::RemoveSegmenterResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::RemoveSegmenterResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace service { +namespace vision { +namespace v1 { + +// =================================================================== + +class GetModelParameterSchemaRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetModelParameterSchemaRequest) */ { + public: + inline GetModelParameterSchemaRequest() : GetModelParameterSchemaRequest(nullptr) {} + ~GetModelParameterSchemaRequest() override; + explicit PROTOBUF_CONSTEXPR GetModelParameterSchemaRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetModelParameterSchemaRequest(const GetModelParameterSchemaRequest& from); + GetModelParameterSchemaRequest(GetModelParameterSchemaRequest&& from) noexcept + : GetModelParameterSchemaRequest() { + *this = ::std::move(from); + } + + inline GetModelParameterSchemaRequest& operator=(const GetModelParameterSchemaRequest& from) { + CopyFrom(from); + return *this; + } + inline GetModelParameterSchemaRequest& operator=(GetModelParameterSchemaRequest&& 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 GetModelParameterSchemaRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetModelParameterSchemaRequest* internal_default_instance() { + return reinterpret_cast( + &_GetModelParameterSchemaRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(GetModelParameterSchemaRequest& a, GetModelParameterSchemaRequest& b) { + a.Swap(&b); + } + inline void Swap(GetModelParameterSchemaRequest* 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(GetModelParameterSchemaRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetModelParameterSchemaRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetModelParameterSchemaRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetModelParameterSchemaRequest& from) { + GetModelParameterSchemaRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetModelParameterSchemaRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetModelParameterSchemaRequest"; + } + protected: + explicit GetModelParameterSchemaRequest(::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, + kModelTypeFieldNumber = 2, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // string model_type = 2 [json_name = "modelType"]; + void clear_model_type(); + const std::string& model_type() const; + template + void set_model_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_model_type(); + PROTOBUF_NODISCARD std::string* release_model_type(); + void set_allocated_model_type(std::string* model_type); + private: + const std::string& _internal_model_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_type(const std::string& value); + std::string* _internal_mutable_model_type(); + public: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetModelParameterSchemaRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class GetModelParameterSchemaResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetModelParameterSchemaResponse) */ { + public: + inline GetModelParameterSchemaResponse() : GetModelParameterSchemaResponse(nullptr) {} + ~GetModelParameterSchemaResponse() override; + explicit PROTOBUF_CONSTEXPR GetModelParameterSchemaResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetModelParameterSchemaResponse(const GetModelParameterSchemaResponse& from); + GetModelParameterSchemaResponse(GetModelParameterSchemaResponse&& from) noexcept + : GetModelParameterSchemaResponse() { + *this = ::std::move(from); + } + + inline GetModelParameterSchemaResponse& operator=(const GetModelParameterSchemaResponse& from) { + CopyFrom(from); + return *this; + } + inline GetModelParameterSchemaResponse& operator=(GetModelParameterSchemaResponse&& 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 GetModelParameterSchemaResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetModelParameterSchemaResponse* internal_default_instance() { + return reinterpret_cast( + &_GetModelParameterSchemaResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(GetModelParameterSchemaResponse& a, GetModelParameterSchemaResponse& b) { + a.Swap(&b); + } + inline void Swap(GetModelParameterSchemaResponse* 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(GetModelParameterSchemaResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetModelParameterSchemaResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetModelParameterSchemaResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetModelParameterSchemaResponse& from) { + GetModelParameterSchemaResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetModelParameterSchemaResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetModelParameterSchemaResponse"; + } + protected: + explicit GetModelParameterSchemaResponse(::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 { + kModelParameterSchemaFieldNumber = 1, + }; + // bytes model_parameter_schema = 1 [json_name = "modelParameterSchema"]; + void clear_model_parameter_schema(); + const std::string& model_parameter_schema() const; + template + void set_model_parameter_schema(ArgT0&& arg0, ArgT... args); + std::string* mutable_model_parameter_schema(); + PROTOBUF_NODISCARD std::string* release_model_parameter_schema(); + void set_allocated_model_parameter_schema(std::string* model_parameter_schema); + private: + const std::string& _internal_model_parameter_schema() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_parameter_schema(const std::string& value); + std::string* _internal_mutable_model_parameter_schema(); + public: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetModelParameterSchemaResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_parameter_schema_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class GetDetectorNamesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetDetectorNamesRequest) */ { + public: + inline GetDetectorNamesRequest() : GetDetectorNamesRequest(nullptr) {} + ~GetDetectorNamesRequest() override; + explicit PROTOBUF_CONSTEXPR GetDetectorNamesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetDetectorNamesRequest(const GetDetectorNamesRequest& from); + GetDetectorNamesRequest(GetDetectorNamesRequest&& from) noexcept + : GetDetectorNamesRequest() { + *this = ::std::move(from); + } + + inline GetDetectorNamesRequest& operator=(const GetDetectorNamesRequest& from) { + CopyFrom(from); + return *this; + } + inline GetDetectorNamesRequest& operator=(GetDetectorNamesRequest&& 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 GetDetectorNamesRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetDetectorNamesRequest* internal_default_instance() { + return reinterpret_cast( + &_GetDetectorNamesRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(GetDetectorNamesRequest& a, GetDetectorNamesRequest& b) { + a.Swap(&b); + } + inline void Swap(GetDetectorNamesRequest* 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(GetDetectorNamesRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetDetectorNamesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetDetectorNamesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetDetectorNamesRequest& from) { + GetDetectorNamesRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetDetectorNamesRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetDetectorNamesRequest"; + } + protected: + explicit GetDetectorNamesRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetDetectorNamesRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class GetDetectorNamesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetDetectorNamesResponse) */ { + public: + inline GetDetectorNamesResponse() : GetDetectorNamesResponse(nullptr) {} + ~GetDetectorNamesResponse() override; + explicit PROTOBUF_CONSTEXPR GetDetectorNamesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetDetectorNamesResponse(const GetDetectorNamesResponse& from); + GetDetectorNamesResponse(GetDetectorNamesResponse&& from) noexcept + : GetDetectorNamesResponse() { + *this = ::std::move(from); + } + + inline GetDetectorNamesResponse& operator=(const GetDetectorNamesResponse& from) { + CopyFrom(from); + return *this; + } + inline GetDetectorNamesResponse& operator=(GetDetectorNamesResponse&& 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 GetDetectorNamesResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetDetectorNamesResponse* internal_default_instance() { + return reinterpret_cast( + &_GetDetectorNamesResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(GetDetectorNamesResponse& a, GetDetectorNamesResponse& b) { + a.Swap(&b); + } + inline void Swap(GetDetectorNamesResponse* 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(GetDetectorNamesResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetDetectorNamesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetDetectorNamesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetDetectorNamesResponse& from) { + GetDetectorNamesResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetDetectorNamesResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetDetectorNamesResponse"; + } + protected: + explicit GetDetectorNamesResponse(::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 { + kDetectorNamesFieldNumber = 1, + }; + // repeated string detector_names = 1 [json_name = "detectorNames"]; + int detector_names_size() const; + private: + int _internal_detector_names_size() const; + public: + void clear_detector_names(); + const std::string& detector_names(int index) const; + std::string* mutable_detector_names(int index); + void set_detector_names(int index, const std::string& value); + void set_detector_names(int index, std::string&& value); + void set_detector_names(int index, const char* value); + void set_detector_names(int index, const char* value, size_t size); + std::string* add_detector_names(); + void add_detector_names(const std::string& value); + void add_detector_names(std::string&& value); + void add_detector_names(const char* value); + void add_detector_names(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& detector_names() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_detector_names(); + private: + const std::string& _internal_detector_names(int index) const; + std::string* _internal_add_detector_names(); + public: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetDetectorNamesResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField detector_names_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class AddDetectorRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.AddDetectorRequest) */ { + public: + inline AddDetectorRequest() : AddDetectorRequest(nullptr) {} + ~AddDetectorRequest() override; + explicit PROTOBUF_CONSTEXPR AddDetectorRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AddDetectorRequest(const AddDetectorRequest& from); + AddDetectorRequest(AddDetectorRequest&& from) noexcept + : AddDetectorRequest() { + *this = ::std::move(from); + } + + inline AddDetectorRequest& operator=(const AddDetectorRequest& from) { + CopyFrom(from); + return *this; + } + inline AddDetectorRequest& operator=(AddDetectorRequest&& 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 AddDetectorRequest& default_instance() { + return *internal_default_instance(); + } + static inline const AddDetectorRequest* internal_default_instance() { + return reinterpret_cast( + &_AddDetectorRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(AddDetectorRequest& a, AddDetectorRequest& b) { + a.Swap(&b); + } + inline void Swap(AddDetectorRequest* 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(AddDetectorRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AddDetectorRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AddDetectorRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const AddDetectorRequest& from) { + AddDetectorRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AddDetectorRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.AddDetectorRequest"; + } + protected: + explicit AddDetectorRequest(::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, + kDetectorNameFieldNumber = 2, + kDetectorModelTypeFieldNumber = 3, + kDetectorParametersFieldNumber = 4, + }; + // 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 detector_name = 2 [json_name = "detectorName"]; + void clear_detector_name(); + const std::string& detector_name() const; + template + void set_detector_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_detector_name(); + PROTOBUF_NODISCARD std::string* release_detector_name(); + void set_allocated_detector_name(std::string* detector_name); + private: + const std::string& _internal_detector_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_detector_name(const std::string& value); + std::string* _internal_mutable_detector_name(); + public: + + // string detector_model_type = 3 [json_name = "detectorModelType"]; + void clear_detector_model_type(); + const std::string& detector_model_type() const; + template + void set_detector_model_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_detector_model_type(); + PROTOBUF_NODISCARD std::string* release_detector_model_type(); + void set_allocated_detector_model_type(std::string* detector_model_type); + private: + const std::string& _internal_detector_model_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_detector_model_type(const std::string& value); + std::string* _internal_mutable_detector_model_type(); + public: + + // .google.protobuf.Struct detector_parameters = 4 [json_name = "detectorParameters"]; + bool has_detector_parameters() const; + private: + bool _internal_has_detector_parameters() const; + public: + void clear_detector_parameters(); + const ::PROTOBUF_NAMESPACE_ID::Struct& detector_parameters() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_detector_parameters(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_detector_parameters(); + void set_allocated_detector_parameters(::PROTOBUF_NAMESPACE_ID::Struct* detector_parameters); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_detector_parameters() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_detector_parameters(); + public: + void unsafe_arena_set_allocated_detector_parameters( + ::PROTOBUF_NAMESPACE_ID::Struct* detector_parameters); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_detector_parameters(); + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.AddDetectorRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr detector_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr detector_model_type_; + ::PROTOBUF_NAMESPACE_ID::Struct* detector_parameters_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class AddDetectorResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.AddDetectorResponse) */ { + public: + inline AddDetectorResponse() : AddDetectorResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR AddDetectorResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AddDetectorResponse(const AddDetectorResponse& from); + AddDetectorResponse(AddDetectorResponse&& from) noexcept + : AddDetectorResponse() { + *this = ::std::move(from); + } + + inline AddDetectorResponse& operator=(const AddDetectorResponse& from) { + CopyFrom(from); + return *this; + } + inline AddDetectorResponse& operator=(AddDetectorResponse&& 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 AddDetectorResponse& default_instance() { + return *internal_default_instance(); + } + static inline const AddDetectorResponse* internal_default_instance() { + return reinterpret_cast( + &_AddDetectorResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(AddDetectorResponse& a, AddDetectorResponse& b) { + a.Swap(&b); + } + inline void Swap(AddDetectorResponse* 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(AddDetectorResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AddDetectorResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const AddDetectorResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const AddDetectorResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.AddDetectorResponse"; + } + protected: + explicit AddDetectorResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.AddDetectorResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class RemoveDetectorRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.RemoveDetectorRequest) */ { + public: + inline RemoveDetectorRequest() : RemoveDetectorRequest(nullptr) {} + ~RemoveDetectorRequest() override; + explicit PROTOBUF_CONSTEXPR RemoveDetectorRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RemoveDetectorRequest(const RemoveDetectorRequest& from); + RemoveDetectorRequest(RemoveDetectorRequest&& from) noexcept + : RemoveDetectorRequest() { + *this = ::std::move(from); + } + + inline RemoveDetectorRequest& operator=(const RemoveDetectorRequest& from) { + CopyFrom(from); + return *this; + } + inline RemoveDetectorRequest& operator=(RemoveDetectorRequest&& 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 RemoveDetectorRequest& default_instance() { + return *internal_default_instance(); + } + static inline const RemoveDetectorRequest* internal_default_instance() { + return reinterpret_cast( + &_RemoveDetectorRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(RemoveDetectorRequest& a, RemoveDetectorRequest& b) { + a.Swap(&b); + } + inline void Swap(RemoveDetectorRequest* 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(RemoveDetectorRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RemoveDetectorRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RemoveDetectorRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RemoveDetectorRequest& from) { + RemoveDetectorRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RemoveDetectorRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.RemoveDetectorRequest"; + } + protected: + explicit RemoveDetectorRequest(::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, + kDetectorNameFieldNumber = 2, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // string detector_name = 2 [json_name = "detectorName"]; + void clear_detector_name(); + const std::string& detector_name() const; + template + void set_detector_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_detector_name(); + PROTOBUF_NODISCARD std::string* release_detector_name(); + void set_allocated_detector_name(std::string* detector_name); + private: + const std::string& _internal_detector_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_detector_name(const std::string& value); + std::string* _internal_mutable_detector_name(); + public: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.RemoveDetectorRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr detector_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class RemoveDetectorResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.RemoveDetectorResponse) */ { + public: + inline RemoveDetectorResponse() : RemoveDetectorResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR RemoveDetectorResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RemoveDetectorResponse(const RemoveDetectorResponse& from); + RemoveDetectorResponse(RemoveDetectorResponse&& from) noexcept + : RemoveDetectorResponse() { + *this = ::std::move(from); + } + + inline RemoveDetectorResponse& operator=(const RemoveDetectorResponse& from) { + CopyFrom(from); + return *this; + } + inline RemoveDetectorResponse& operator=(RemoveDetectorResponse&& 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 RemoveDetectorResponse& default_instance() { + return *internal_default_instance(); + } + static inline const RemoveDetectorResponse* internal_default_instance() { + return reinterpret_cast( + &_RemoveDetectorResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(RemoveDetectorResponse& a, RemoveDetectorResponse& b) { + a.Swap(&b); + } + inline void Swap(RemoveDetectorResponse* 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(RemoveDetectorResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RemoveDetectorResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const RemoveDetectorResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const RemoveDetectorResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.RemoveDetectorResponse"; + } + protected: + explicit RemoveDetectorResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.RemoveDetectorResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class GetDetectionsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetDetectionsRequest) */ { + public: + inline GetDetectionsRequest() : GetDetectionsRequest(nullptr) {} + ~GetDetectionsRequest() override; + explicit PROTOBUF_CONSTEXPR GetDetectionsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetDetectionsRequest(const GetDetectionsRequest& from); + GetDetectionsRequest(GetDetectionsRequest&& from) noexcept + : GetDetectionsRequest() { + *this = ::std::move(from); + } + + inline GetDetectionsRequest& operator=(const GetDetectionsRequest& from) { + CopyFrom(from); + return *this; + } + inline GetDetectionsRequest& operator=(GetDetectionsRequest&& 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 GetDetectionsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetDetectionsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetDetectionsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(GetDetectionsRequest& a, GetDetectionsRequest& b) { + a.Swap(&b); + } + inline void Swap(GetDetectionsRequest* 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(GetDetectionsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetDetectionsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetDetectionsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetDetectionsRequest& from) { + GetDetectionsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetDetectionsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetDetectionsRequest"; + } + protected: + explicit GetDetectionsRequest(::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, + kImageFieldNumber = 2, + kMimeTypeFieldNumber = 5, + kDetectorNameFieldNumber = 6, + kWidthFieldNumber = 3, + kHeightFieldNumber = 4, + }; + // 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: + + // bytes image = 2 [json_name = "image"]; + void clear_image(); + const std::string& image() const; + template + void set_image(ArgT0&& arg0, ArgT... args); + std::string* mutable_image(); + PROTOBUF_NODISCARD std::string* release_image(); + void set_allocated_image(std::string* image); + private: + const std::string& _internal_image() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_image(const std::string& value); + std::string* _internal_mutable_image(); + public: + + // string mime_type = 5 [json_name = "mimeType"]; + void clear_mime_type(); + const std::string& mime_type() const; + template + void set_mime_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_mime_type(); + PROTOBUF_NODISCARD std::string* release_mime_type(); + void set_allocated_mime_type(std::string* mime_type); + private: + const std::string& _internal_mime_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); + std::string* _internal_mutable_mime_type(); + public: + + // string detector_name = 6 [json_name = "detectorName"]; + void clear_detector_name(); + const std::string& detector_name() const; + template + void set_detector_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_detector_name(); + PROTOBUF_NODISCARD std::string* release_detector_name(); + void set_allocated_detector_name(std::string* detector_name); + private: + const std::string& _internal_detector_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_detector_name(const std::string& value); + std::string* _internal_mutable_detector_name(); + public: + + // int64 width = 3 [json_name = "width"]; + void clear_width(); + int64_t width() const; + void set_width(int64_t value); + private: + int64_t _internal_width() const; + void _internal_set_width(int64_t value); + public: + + // int64 height = 4 [json_name = "height"]; + void clear_height(); + int64_t height() const; + void set_height(int64_t value); + private: + int64_t _internal_height() const; + void _internal_set_height(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetDetectionsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr image_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr detector_name_; + int64_t width_; + int64_t height_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class GetDetectionsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetDetectionsResponse) */ { + public: + inline GetDetectionsResponse() : GetDetectionsResponse(nullptr) {} + ~GetDetectionsResponse() override; + explicit PROTOBUF_CONSTEXPR GetDetectionsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetDetectionsResponse(const GetDetectionsResponse& from); + GetDetectionsResponse(GetDetectionsResponse&& from) noexcept + : GetDetectionsResponse() { + *this = ::std::move(from); + } + + inline GetDetectionsResponse& operator=(const GetDetectionsResponse& from) { + CopyFrom(from); + return *this; + } + inline GetDetectionsResponse& operator=(GetDetectionsResponse&& 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 GetDetectionsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetDetectionsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetDetectionsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(GetDetectionsResponse& a, GetDetectionsResponse& b) { + a.Swap(&b); + } + inline void Swap(GetDetectionsResponse* 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(GetDetectionsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetDetectionsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetDetectionsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetDetectionsResponse& from) { + GetDetectionsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetDetectionsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetDetectionsResponse"; + } + protected: + explicit GetDetectionsResponse(::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 { + kDetectionsFieldNumber = 1, + }; + // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; + int detections_size() const; + private: + int _internal_detections_size() const; + public: + void clear_detections(); + ::viam::service::vision::v1::Detection* mutable_detections(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection >* + mutable_detections(); + private: + const ::viam::service::vision::v1::Detection& _internal_detections(int index) const; + ::viam::service::vision::v1::Detection* _internal_add_detections(); + public: + const ::viam::service::vision::v1::Detection& detections(int index) const; + ::viam::service::vision::v1::Detection* add_detections(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection >& + detections() const; + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetDetectionsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection > detections_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class GetDetectionsFromCameraRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetDetectionsFromCameraRequest) */ { + public: + inline GetDetectionsFromCameraRequest() : GetDetectionsFromCameraRequest(nullptr) {} + ~GetDetectionsFromCameraRequest() override; + explicit PROTOBUF_CONSTEXPR GetDetectionsFromCameraRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetDetectionsFromCameraRequest(const GetDetectionsFromCameraRequest& from); + GetDetectionsFromCameraRequest(GetDetectionsFromCameraRequest&& from) noexcept + : GetDetectionsFromCameraRequest() { + *this = ::std::move(from); + } + + inline GetDetectionsFromCameraRequest& operator=(const GetDetectionsFromCameraRequest& from) { + CopyFrom(from); + return *this; + } + inline GetDetectionsFromCameraRequest& operator=(GetDetectionsFromCameraRequest&& 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 GetDetectionsFromCameraRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetDetectionsFromCameraRequest* internal_default_instance() { + return reinterpret_cast( + &_GetDetectionsFromCameraRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(GetDetectionsFromCameraRequest& a, GetDetectionsFromCameraRequest& b) { + a.Swap(&b); + } + inline void Swap(GetDetectionsFromCameraRequest* 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(GetDetectionsFromCameraRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetDetectionsFromCameraRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetDetectionsFromCameraRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetDetectionsFromCameraRequest& from) { + GetDetectionsFromCameraRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetDetectionsFromCameraRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetDetectionsFromCameraRequest"; + } + protected: + explicit GetDetectionsFromCameraRequest(::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, + kCameraNameFieldNumber = 2, + kDetectorNameFieldNumber = 3, + }; + // 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 camera_name = 2 [json_name = "cameraName"]; + void clear_camera_name(); + const std::string& camera_name() const; + template + void set_camera_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_camera_name(); + PROTOBUF_NODISCARD std::string* release_camera_name(); + void set_allocated_camera_name(std::string* camera_name); + private: + const std::string& _internal_camera_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_camera_name(const std::string& value); + std::string* _internal_mutable_camera_name(); + public: + + // string detector_name = 3 [json_name = "detectorName"]; + void clear_detector_name(); + const std::string& detector_name() const; + template + void set_detector_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_detector_name(); + PROTOBUF_NODISCARD std::string* release_detector_name(); + void set_allocated_detector_name(std::string* detector_name); + private: + const std::string& _internal_detector_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_detector_name(const std::string& value); + std::string* _internal_mutable_detector_name(); + public: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetDetectionsFromCameraRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr camera_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr detector_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class GetDetectionsFromCameraResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetDetectionsFromCameraResponse) */ { + public: + inline GetDetectionsFromCameraResponse() : GetDetectionsFromCameraResponse(nullptr) {} + ~GetDetectionsFromCameraResponse() override; + explicit PROTOBUF_CONSTEXPR GetDetectionsFromCameraResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetDetectionsFromCameraResponse(const GetDetectionsFromCameraResponse& from); + GetDetectionsFromCameraResponse(GetDetectionsFromCameraResponse&& from) noexcept + : GetDetectionsFromCameraResponse() { + *this = ::std::move(from); + } + + inline GetDetectionsFromCameraResponse& operator=(const GetDetectionsFromCameraResponse& from) { + CopyFrom(from); + return *this; + } + inline GetDetectionsFromCameraResponse& operator=(GetDetectionsFromCameraResponse&& 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 GetDetectionsFromCameraResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetDetectionsFromCameraResponse* internal_default_instance() { + return reinterpret_cast( + &_GetDetectionsFromCameraResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(GetDetectionsFromCameraResponse& a, GetDetectionsFromCameraResponse& b) { + a.Swap(&b); + } + inline void Swap(GetDetectionsFromCameraResponse* 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(GetDetectionsFromCameraResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetDetectionsFromCameraResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetDetectionsFromCameraResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetDetectionsFromCameraResponse& from) { + GetDetectionsFromCameraResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetDetectionsFromCameraResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetDetectionsFromCameraResponse"; + } + protected: + explicit GetDetectionsFromCameraResponse(::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 { + kDetectionsFieldNumber = 1, + }; + // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; + int detections_size() const; + private: + int _internal_detections_size() const; + public: + void clear_detections(); + ::viam::service::vision::v1::Detection* mutable_detections(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection >* + mutable_detections(); + private: + const ::viam::service::vision::v1::Detection& _internal_detections(int index) const; + ::viam::service::vision::v1::Detection* _internal_add_detections(); + public: + const ::viam::service::vision::v1::Detection& detections(int index) const; + ::viam::service::vision::v1::Detection* add_detections(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection >& + detections() const; + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetDetectionsFromCameraResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection > detections_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class Detection final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.Detection) */ { + public: + inline Detection() : Detection(nullptr) {} + ~Detection() override; + explicit PROTOBUF_CONSTEXPR Detection(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Detection(const Detection& from); + Detection(Detection&& from) noexcept + : Detection() { + *this = ::std::move(from); + } + + inline Detection& operator=(const Detection& from) { + CopyFrom(from); + return *this; + } + inline Detection& operator=(Detection&& 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 Detection& default_instance() { + return *internal_default_instance(); + } + static inline const Detection* internal_default_instance() { + return reinterpret_cast( + &_Detection_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(Detection& a, Detection& b) { + a.Swap(&b); + } + inline void Swap(Detection* 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(Detection* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Detection* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Detection& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Detection& from) { + Detection::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Detection* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.Detection"; + } + protected: + explicit Detection(::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 { + kClassNameFieldNumber = 6, + kXMinFieldNumber = 1, + kYMinFieldNumber = 2, + kXMaxFieldNumber = 3, + kYMaxFieldNumber = 4, + kConfidenceFieldNumber = 5, + }; + // string class_name = 6 [json_name = "className"]; + void clear_class_name(); + const std::string& class_name() const; + template + void set_class_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_class_name(); + PROTOBUF_NODISCARD std::string* release_class_name(); + void set_allocated_class_name(std::string* class_name); + private: + const std::string& _internal_class_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_class_name(const std::string& value); + std::string* _internal_mutable_class_name(); + public: + + // optional int64 x_min = 1 [json_name = "xMin"]; + bool has_x_min() const; + private: + bool _internal_has_x_min() const; + public: + void clear_x_min(); + int64_t x_min() const; + void set_x_min(int64_t value); + private: + int64_t _internal_x_min() const; + void _internal_set_x_min(int64_t value); + public: + + // optional int64 y_min = 2 [json_name = "yMin"]; + bool has_y_min() const; + private: + bool _internal_has_y_min() const; + public: + void clear_y_min(); + int64_t y_min() const; + void set_y_min(int64_t value); + private: + int64_t _internal_y_min() const; + void _internal_set_y_min(int64_t value); + public: + + // optional int64 x_max = 3 [json_name = "xMax"]; + bool has_x_max() const; + private: + bool _internal_has_x_max() const; + public: + void clear_x_max(); + int64_t x_max() const; + void set_x_max(int64_t value); + private: + int64_t _internal_x_max() const; + void _internal_set_x_max(int64_t value); + public: + + // optional int64 y_max = 4 [json_name = "yMax"]; + bool has_y_max() const; + private: + bool _internal_has_y_max() const; + public: + void clear_y_max(); + int64_t y_max() const; + void set_y_max(int64_t value); + private: + int64_t _internal_y_max() const; + void _internal_set_y_max(int64_t value); + public: + + // double confidence = 5 [json_name = "confidence"]; + void clear_confidence(); + double confidence() const; + void set_confidence(double value); + private: + double _internal_confidence() const; + void _internal_set_confidence(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.Detection) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr class_name_; + int64_t x_min_; + int64_t y_min_; + int64_t x_max_; + int64_t y_max_; + double confidence_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class GetClassifierNamesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetClassifierNamesRequest) */ { + public: + inline GetClassifierNamesRequest() : GetClassifierNamesRequest(nullptr) {} + ~GetClassifierNamesRequest() override; + explicit PROTOBUF_CONSTEXPR GetClassifierNamesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetClassifierNamesRequest(const GetClassifierNamesRequest& from); + GetClassifierNamesRequest(GetClassifierNamesRequest&& from) noexcept + : GetClassifierNamesRequest() { + *this = ::std::move(from); + } + + inline GetClassifierNamesRequest& operator=(const GetClassifierNamesRequest& from) { + CopyFrom(from); + return *this; + } + inline GetClassifierNamesRequest& operator=(GetClassifierNamesRequest&& 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 GetClassifierNamesRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetClassifierNamesRequest* internal_default_instance() { + return reinterpret_cast( + &_GetClassifierNamesRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(GetClassifierNamesRequest& a, GetClassifierNamesRequest& b) { + a.Swap(&b); + } + inline void Swap(GetClassifierNamesRequest* 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(GetClassifierNamesRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetClassifierNamesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetClassifierNamesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetClassifierNamesRequest& from) { + GetClassifierNamesRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetClassifierNamesRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetClassifierNamesRequest"; + } + protected: + explicit GetClassifierNamesRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetClassifierNamesRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class GetClassifierNamesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetClassifierNamesResponse) */ { + public: + inline GetClassifierNamesResponse() : GetClassifierNamesResponse(nullptr) {} + ~GetClassifierNamesResponse() override; + explicit PROTOBUF_CONSTEXPR GetClassifierNamesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetClassifierNamesResponse(const GetClassifierNamesResponse& from); + GetClassifierNamesResponse(GetClassifierNamesResponse&& from) noexcept + : GetClassifierNamesResponse() { + *this = ::std::move(from); + } + + inline GetClassifierNamesResponse& operator=(const GetClassifierNamesResponse& from) { + CopyFrom(from); + return *this; + } + inline GetClassifierNamesResponse& operator=(GetClassifierNamesResponse&& 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 GetClassifierNamesResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetClassifierNamesResponse* internal_default_instance() { + return reinterpret_cast( + &_GetClassifierNamesResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(GetClassifierNamesResponse& a, GetClassifierNamesResponse& b) { + a.Swap(&b); + } + inline void Swap(GetClassifierNamesResponse* 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(GetClassifierNamesResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetClassifierNamesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetClassifierNamesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetClassifierNamesResponse& from) { + GetClassifierNamesResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetClassifierNamesResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetClassifierNamesResponse"; + } + protected: + explicit GetClassifierNamesResponse(::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 { + kClassifierNamesFieldNumber = 1, + }; + // repeated string classifier_names = 1 [json_name = "classifierNames"]; + int classifier_names_size() const; + private: + int _internal_classifier_names_size() const; + public: + void clear_classifier_names(); + const std::string& classifier_names(int index) const; + std::string* mutable_classifier_names(int index); + void set_classifier_names(int index, const std::string& value); + void set_classifier_names(int index, std::string&& value); + void set_classifier_names(int index, const char* value); + void set_classifier_names(int index, const char* value, size_t size); + std::string* add_classifier_names(); + void add_classifier_names(const std::string& value); + void add_classifier_names(std::string&& value); + void add_classifier_names(const char* value); + void add_classifier_names(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& classifier_names() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_classifier_names(); + private: + const std::string& _internal_classifier_names(int index) const; + std::string* _internal_add_classifier_names(); + public: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetClassifierNamesResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField classifier_names_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class AddClassifierRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.AddClassifierRequest) */ { + public: + inline AddClassifierRequest() : AddClassifierRequest(nullptr) {} + ~AddClassifierRequest() override; + explicit PROTOBUF_CONSTEXPR AddClassifierRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AddClassifierRequest(const AddClassifierRequest& from); + AddClassifierRequest(AddClassifierRequest&& from) noexcept + : AddClassifierRequest() { + *this = ::std::move(from); + } + + inline AddClassifierRequest& operator=(const AddClassifierRequest& from) { + CopyFrom(from); + return *this; + } + inline AddClassifierRequest& operator=(AddClassifierRequest&& 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 AddClassifierRequest& default_instance() { + return *internal_default_instance(); + } + static inline const AddClassifierRequest* internal_default_instance() { + return reinterpret_cast( + &_AddClassifierRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(AddClassifierRequest& a, AddClassifierRequest& b) { + a.Swap(&b); + } + inline void Swap(AddClassifierRequest* 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(AddClassifierRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AddClassifierRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AddClassifierRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const AddClassifierRequest& from) { + AddClassifierRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AddClassifierRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.AddClassifierRequest"; + } + protected: + explicit AddClassifierRequest(::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, + kClassifierNameFieldNumber = 2, + kClassifierModelTypeFieldNumber = 3, + kClassifierParametersFieldNumber = 4, + }; + // 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 classifier_name = 2 [json_name = "classifierName"]; + void clear_classifier_name(); + const std::string& classifier_name() const; + template + void set_classifier_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_classifier_name(); + PROTOBUF_NODISCARD std::string* release_classifier_name(); + void set_allocated_classifier_name(std::string* classifier_name); + private: + const std::string& _internal_classifier_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_classifier_name(const std::string& value); + std::string* _internal_mutable_classifier_name(); + public: + + // string classifier_model_type = 3 [json_name = "classifierModelType"]; + void clear_classifier_model_type(); + const std::string& classifier_model_type() const; + template + void set_classifier_model_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_classifier_model_type(); + PROTOBUF_NODISCARD std::string* release_classifier_model_type(); + void set_allocated_classifier_model_type(std::string* classifier_model_type); + private: + const std::string& _internal_classifier_model_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_classifier_model_type(const std::string& value); + std::string* _internal_mutable_classifier_model_type(); + public: + + // .google.protobuf.Struct classifier_parameters = 4 [json_name = "classifierParameters"]; + bool has_classifier_parameters() const; + private: + bool _internal_has_classifier_parameters() const; + public: + void clear_classifier_parameters(); + const ::PROTOBUF_NAMESPACE_ID::Struct& classifier_parameters() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_classifier_parameters(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_classifier_parameters(); + void set_allocated_classifier_parameters(::PROTOBUF_NAMESPACE_ID::Struct* classifier_parameters); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_classifier_parameters() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_classifier_parameters(); + public: + void unsafe_arena_set_allocated_classifier_parameters( + ::PROTOBUF_NAMESPACE_ID::Struct* classifier_parameters); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_classifier_parameters(); + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.AddClassifierRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr classifier_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr classifier_model_type_; + ::PROTOBUF_NAMESPACE_ID::Struct* classifier_parameters_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class AddClassifierResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.AddClassifierResponse) */ { + public: + inline AddClassifierResponse() : AddClassifierResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR AddClassifierResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AddClassifierResponse(const AddClassifierResponse& from); + AddClassifierResponse(AddClassifierResponse&& from) noexcept + : AddClassifierResponse() { + *this = ::std::move(from); + } + + inline AddClassifierResponse& operator=(const AddClassifierResponse& from) { + CopyFrom(from); + return *this; + } + inline AddClassifierResponse& operator=(AddClassifierResponse&& 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 AddClassifierResponse& default_instance() { + return *internal_default_instance(); + } + static inline const AddClassifierResponse* internal_default_instance() { + return reinterpret_cast( + &_AddClassifierResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + friend void swap(AddClassifierResponse& a, AddClassifierResponse& b) { + a.Swap(&b); + } + inline void Swap(AddClassifierResponse* 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(AddClassifierResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AddClassifierResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const AddClassifierResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const AddClassifierResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.AddClassifierResponse"; + } + protected: + explicit AddClassifierResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.AddClassifierResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class RemoveClassifierRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.RemoveClassifierRequest) */ { + public: + inline RemoveClassifierRequest() : RemoveClassifierRequest(nullptr) {} + ~RemoveClassifierRequest() override; + explicit PROTOBUF_CONSTEXPR RemoveClassifierRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RemoveClassifierRequest(const RemoveClassifierRequest& from); + RemoveClassifierRequest(RemoveClassifierRequest&& from) noexcept + : RemoveClassifierRequest() { + *this = ::std::move(from); + } + + inline RemoveClassifierRequest& operator=(const RemoveClassifierRequest& from) { + CopyFrom(from); + return *this; + } + inline RemoveClassifierRequest& operator=(RemoveClassifierRequest&& 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 RemoveClassifierRequest& default_instance() { + return *internal_default_instance(); + } + static inline const RemoveClassifierRequest* internal_default_instance() { + return reinterpret_cast( + &_RemoveClassifierRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + friend void swap(RemoveClassifierRequest& a, RemoveClassifierRequest& b) { + a.Swap(&b); + } + inline void Swap(RemoveClassifierRequest* 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(RemoveClassifierRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RemoveClassifierRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RemoveClassifierRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RemoveClassifierRequest& from) { + RemoveClassifierRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RemoveClassifierRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.RemoveClassifierRequest"; + } + protected: + explicit RemoveClassifierRequest(::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, + kClassifierNameFieldNumber = 2, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // string classifier_name = 2 [json_name = "classifierName"]; + void clear_classifier_name(); + const std::string& classifier_name() const; + template + void set_classifier_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_classifier_name(); + PROTOBUF_NODISCARD std::string* release_classifier_name(); + void set_allocated_classifier_name(std::string* classifier_name); + private: + const std::string& _internal_classifier_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_classifier_name(const std::string& value); + std::string* _internal_mutable_classifier_name(); + public: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.RemoveClassifierRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr classifier_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class RemoveClassifierResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.RemoveClassifierResponse) */ { + public: + inline RemoveClassifierResponse() : RemoveClassifierResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR RemoveClassifierResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RemoveClassifierResponse(const RemoveClassifierResponse& from); + RemoveClassifierResponse(RemoveClassifierResponse&& from) noexcept + : RemoveClassifierResponse() { + *this = ::std::move(from); + } + + inline RemoveClassifierResponse& operator=(const RemoveClassifierResponse& from) { + CopyFrom(from); + return *this; + } + inline RemoveClassifierResponse& operator=(RemoveClassifierResponse&& 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 RemoveClassifierResponse& default_instance() { + return *internal_default_instance(); + } + static inline const RemoveClassifierResponse* internal_default_instance() { + return reinterpret_cast( + &_RemoveClassifierResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + friend void swap(RemoveClassifierResponse& a, RemoveClassifierResponse& b) { + a.Swap(&b); + } + inline void Swap(RemoveClassifierResponse* 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(RemoveClassifierResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RemoveClassifierResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const RemoveClassifierResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const RemoveClassifierResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.RemoveClassifierResponse"; + } + protected: + explicit RemoveClassifierResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.RemoveClassifierResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class GetClassificationsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetClassificationsRequest) */ { + public: + inline GetClassificationsRequest() : GetClassificationsRequest(nullptr) {} + ~GetClassificationsRequest() override; + explicit PROTOBUF_CONSTEXPR GetClassificationsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetClassificationsRequest(const GetClassificationsRequest& from); + GetClassificationsRequest(GetClassificationsRequest&& from) noexcept + : GetClassificationsRequest() { + *this = ::std::move(from); + } + + inline GetClassificationsRequest& operator=(const GetClassificationsRequest& from) { + CopyFrom(from); + return *this; + } + inline GetClassificationsRequest& operator=(GetClassificationsRequest&& 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 GetClassificationsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetClassificationsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetClassificationsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + friend void swap(GetClassificationsRequest& a, GetClassificationsRequest& b) { + a.Swap(&b); + } + inline void Swap(GetClassificationsRequest* 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(GetClassificationsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetClassificationsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetClassificationsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetClassificationsRequest& from) { + GetClassificationsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetClassificationsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetClassificationsRequest"; + } + protected: + explicit GetClassificationsRequest(::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, + kImageFieldNumber = 2, + kMimeTypeFieldNumber = 5, + kClassifierNameFieldNumber = 6, + kWidthFieldNumber = 3, + kHeightFieldNumber = 4, + kNFieldNumber = 7, + }; + // 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: + + // bytes image = 2 [json_name = "image"]; + void clear_image(); + const std::string& image() const; + template + void set_image(ArgT0&& arg0, ArgT... args); + std::string* mutable_image(); + PROTOBUF_NODISCARD std::string* release_image(); + void set_allocated_image(std::string* image); + private: + const std::string& _internal_image() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_image(const std::string& value); + std::string* _internal_mutable_image(); + public: + + // string mime_type = 5 [json_name = "mimeType"]; + void clear_mime_type(); + const std::string& mime_type() const; + template + void set_mime_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_mime_type(); + PROTOBUF_NODISCARD std::string* release_mime_type(); + void set_allocated_mime_type(std::string* mime_type); + private: + const std::string& _internal_mime_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); + std::string* _internal_mutable_mime_type(); + public: + + // string classifier_name = 6 [json_name = "classifierName"]; + void clear_classifier_name(); + const std::string& classifier_name() const; + template + void set_classifier_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_classifier_name(); + PROTOBUF_NODISCARD std::string* release_classifier_name(); + void set_allocated_classifier_name(std::string* classifier_name); + private: + const std::string& _internal_classifier_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_classifier_name(const std::string& value); + std::string* _internal_mutable_classifier_name(); + public: + + // int32 width = 3 [json_name = "width"]; + void clear_width(); + int32_t width() const; + void set_width(int32_t value); + private: + int32_t _internal_width() const; + void _internal_set_width(int32_t value); + public: + + // int32 height = 4 [json_name = "height"]; + void clear_height(); + int32_t height() const; + void set_height(int32_t value); + private: + int32_t _internal_height() const; + void _internal_set_height(int32_t value); + public: + + // int32 n = 7 [json_name = "n"]; + void clear_n(); + int32_t n() const; + void set_n(int32_t value); + private: + int32_t _internal_n() const; + void _internal_set_n(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetClassificationsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr image_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr classifier_name_; + int32_t width_; + int32_t height_; + int32_t n_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class GetClassificationsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetClassificationsResponse) */ { + public: + inline GetClassificationsResponse() : GetClassificationsResponse(nullptr) {} + ~GetClassificationsResponse() override; + explicit PROTOBUF_CONSTEXPR GetClassificationsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetClassificationsResponse(const GetClassificationsResponse& from); + GetClassificationsResponse(GetClassificationsResponse&& from) noexcept + : GetClassificationsResponse() { + *this = ::std::move(from); + } + + inline GetClassificationsResponse& operator=(const GetClassificationsResponse& from) { + CopyFrom(from); + return *this; + } + inline GetClassificationsResponse& operator=(GetClassificationsResponse&& 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 GetClassificationsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetClassificationsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetClassificationsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + friend void swap(GetClassificationsResponse& a, GetClassificationsResponse& b) { + a.Swap(&b); + } + inline void Swap(GetClassificationsResponse* 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(GetClassificationsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetClassificationsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetClassificationsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetClassificationsResponse& from) { + GetClassificationsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetClassificationsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetClassificationsResponse"; + } + protected: + explicit GetClassificationsResponse(::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 { + kClassificationsFieldNumber = 1, + }; + // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; + int classifications_size() const; + private: + int _internal_classifications_size() const; + public: + void clear_classifications(); + ::viam::service::vision::v1::Classification* mutable_classifications(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification >* + mutable_classifications(); + private: + const ::viam::service::vision::v1::Classification& _internal_classifications(int index) const; + ::viam::service::vision::v1::Classification* _internal_add_classifications(); + public: + const ::viam::service::vision::v1::Classification& classifications(int index) const; + ::viam::service::vision::v1::Classification* add_classifications(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification >& + classifications() const; + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetClassificationsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification > classifications_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class GetClassificationsFromCameraRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetClassificationsFromCameraRequest) */ { + public: + inline GetClassificationsFromCameraRequest() : GetClassificationsFromCameraRequest(nullptr) {} + ~GetClassificationsFromCameraRequest() override; + explicit PROTOBUF_CONSTEXPR GetClassificationsFromCameraRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetClassificationsFromCameraRequest(const GetClassificationsFromCameraRequest& from); + GetClassificationsFromCameraRequest(GetClassificationsFromCameraRequest&& from) noexcept + : GetClassificationsFromCameraRequest() { + *this = ::std::move(from); + } + + inline GetClassificationsFromCameraRequest& operator=(const GetClassificationsFromCameraRequest& from) { + CopyFrom(from); + return *this; + } + inline GetClassificationsFromCameraRequest& operator=(GetClassificationsFromCameraRequest&& 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 GetClassificationsFromCameraRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetClassificationsFromCameraRequest* internal_default_instance() { + return reinterpret_cast( + &_GetClassificationsFromCameraRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + friend void swap(GetClassificationsFromCameraRequest& a, GetClassificationsFromCameraRequest& b) { + a.Swap(&b); + } + inline void Swap(GetClassificationsFromCameraRequest* 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(GetClassificationsFromCameraRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetClassificationsFromCameraRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetClassificationsFromCameraRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetClassificationsFromCameraRequest& from) { + GetClassificationsFromCameraRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetClassificationsFromCameraRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetClassificationsFromCameraRequest"; + } + protected: + explicit GetClassificationsFromCameraRequest(::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, + kCameraNameFieldNumber = 2, + kClassifierNameFieldNumber = 3, + kNFieldNumber = 4, + }; + // 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 camera_name = 2 [json_name = "cameraName"]; + void clear_camera_name(); + const std::string& camera_name() const; + template + void set_camera_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_camera_name(); + PROTOBUF_NODISCARD std::string* release_camera_name(); + void set_allocated_camera_name(std::string* camera_name); + private: + const std::string& _internal_camera_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_camera_name(const std::string& value); + std::string* _internal_mutable_camera_name(); + public: + + // string classifier_name = 3 [json_name = "classifierName"]; + void clear_classifier_name(); + const std::string& classifier_name() const; + template + void set_classifier_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_classifier_name(); + PROTOBUF_NODISCARD std::string* release_classifier_name(); + void set_allocated_classifier_name(std::string* classifier_name); + private: + const std::string& _internal_classifier_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_classifier_name(const std::string& value); + std::string* _internal_mutable_classifier_name(); + public: + + // int32 n = 4 [json_name = "n"]; + void clear_n(); + int32_t n() const; + void set_n(int32_t value); + private: + int32_t _internal_n() const; + void _internal_set_n(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetClassificationsFromCameraRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr camera_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr classifier_name_; + int32_t n_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class GetClassificationsFromCameraResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetClassificationsFromCameraResponse) */ { + public: + inline GetClassificationsFromCameraResponse() : GetClassificationsFromCameraResponse(nullptr) {} + ~GetClassificationsFromCameraResponse() override; + explicit PROTOBUF_CONSTEXPR GetClassificationsFromCameraResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetClassificationsFromCameraResponse(const GetClassificationsFromCameraResponse& from); + GetClassificationsFromCameraResponse(GetClassificationsFromCameraResponse&& from) noexcept + : GetClassificationsFromCameraResponse() { + *this = ::std::move(from); + } + + inline GetClassificationsFromCameraResponse& operator=(const GetClassificationsFromCameraResponse& from) { + CopyFrom(from); + return *this; + } + inline GetClassificationsFromCameraResponse& operator=(GetClassificationsFromCameraResponse&& 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 GetClassificationsFromCameraResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetClassificationsFromCameraResponse* internal_default_instance() { + return reinterpret_cast( + &_GetClassificationsFromCameraResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 22; + + friend void swap(GetClassificationsFromCameraResponse& a, GetClassificationsFromCameraResponse& b) { + a.Swap(&b); + } + inline void Swap(GetClassificationsFromCameraResponse* 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(GetClassificationsFromCameraResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetClassificationsFromCameraResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetClassificationsFromCameraResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetClassificationsFromCameraResponse& from) { + GetClassificationsFromCameraResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetClassificationsFromCameraResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetClassificationsFromCameraResponse"; + } + protected: + explicit GetClassificationsFromCameraResponse(::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 { + kClassificationsFieldNumber = 1, + }; + // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; + int classifications_size() const; + private: + int _internal_classifications_size() const; + public: + void clear_classifications(); + ::viam::service::vision::v1::Classification* mutable_classifications(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification >* + mutable_classifications(); + private: + const ::viam::service::vision::v1::Classification& _internal_classifications(int index) const; + ::viam::service::vision::v1::Classification* _internal_add_classifications(); + public: + const ::viam::service::vision::v1::Classification& classifications(int index) const; + ::viam::service::vision::v1::Classification* add_classifications(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification >& + classifications() const; + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetClassificationsFromCameraResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification > classifications_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class Classification final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.Classification) */ { + public: + inline Classification() : Classification(nullptr) {} + ~Classification() override; + explicit PROTOBUF_CONSTEXPR Classification(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Classification(const Classification& from); + Classification(Classification&& from) noexcept + : Classification() { + *this = ::std::move(from); + } + + inline Classification& operator=(const Classification& from) { + CopyFrom(from); + return *this; + } + inline Classification& operator=(Classification&& 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 Classification& default_instance() { + return *internal_default_instance(); + } + static inline const Classification* internal_default_instance() { + return reinterpret_cast( + &_Classification_default_instance_); + } + static constexpr int kIndexInFileMessages = + 23; + + friend void swap(Classification& a, Classification& b) { + a.Swap(&b); + } + inline void Swap(Classification* 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(Classification* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Classification* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Classification& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Classification& from) { + Classification::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Classification* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.Classification"; + } + protected: + explicit Classification(::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 { + kClassNameFieldNumber = 1, + kConfidenceFieldNumber = 2, + }; + // string class_name = 1 [json_name = "className"]; + void clear_class_name(); + const std::string& class_name() const; + template + void set_class_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_class_name(); + PROTOBUF_NODISCARD std::string* release_class_name(); + void set_allocated_class_name(std::string* class_name); + private: + const std::string& _internal_class_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_class_name(const std::string& value); + std::string* _internal_mutable_class_name(); + public: + + // double confidence = 2 [json_name = "confidence"]; + void clear_confidence(); + double confidence() const; + void set_confidence(double value); + private: + double _internal_confidence() const; + void _internal_set_confidence(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.Classification) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr class_name_; + double confidence_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class GetSegmenterNamesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetSegmenterNamesRequest) */ { + public: + inline GetSegmenterNamesRequest() : GetSegmenterNamesRequest(nullptr) {} + ~GetSegmenterNamesRequest() override; + explicit PROTOBUF_CONSTEXPR GetSegmenterNamesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetSegmenterNamesRequest(const GetSegmenterNamesRequest& from); + GetSegmenterNamesRequest(GetSegmenterNamesRequest&& from) noexcept + : GetSegmenterNamesRequest() { + *this = ::std::move(from); + } + + inline GetSegmenterNamesRequest& operator=(const GetSegmenterNamesRequest& from) { + CopyFrom(from); + return *this; + } + inline GetSegmenterNamesRequest& operator=(GetSegmenterNamesRequest&& 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 GetSegmenterNamesRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetSegmenterNamesRequest* internal_default_instance() { + return reinterpret_cast( + &_GetSegmenterNamesRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 24; + + friend void swap(GetSegmenterNamesRequest& a, GetSegmenterNamesRequest& b) { + a.Swap(&b); + } + inline void Swap(GetSegmenterNamesRequest* 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(GetSegmenterNamesRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetSegmenterNamesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetSegmenterNamesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetSegmenterNamesRequest& from) { + GetSegmenterNamesRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetSegmenterNamesRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetSegmenterNamesRequest"; + } + protected: + explicit GetSegmenterNamesRequest(::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, + }; + // 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: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetSegmenterNamesRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class GetSegmenterNamesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetSegmenterNamesResponse) */ { + public: + inline GetSegmenterNamesResponse() : GetSegmenterNamesResponse(nullptr) {} + ~GetSegmenterNamesResponse() override; + explicit PROTOBUF_CONSTEXPR GetSegmenterNamesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetSegmenterNamesResponse(const GetSegmenterNamesResponse& from); + GetSegmenterNamesResponse(GetSegmenterNamesResponse&& from) noexcept + : GetSegmenterNamesResponse() { + *this = ::std::move(from); + } + + inline GetSegmenterNamesResponse& operator=(const GetSegmenterNamesResponse& from) { + CopyFrom(from); + return *this; + } + inline GetSegmenterNamesResponse& operator=(GetSegmenterNamesResponse&& 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 GetSegmenterNamesResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetSegmenterNamesResponse* internal_default_instance() { + return reinterpret_cast( + &_GetSegmenterNamesResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 25; + + friend void swap(GetSegmenterNamesResponse& a, GetSegmenterNamesResponse& b) { + a.Swap(&b); + } + inline void Swap(GetSegmenterNamesResponse* 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(GetSegmenterNamesResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetSegmenterNamesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetSegmenterNamesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetSegmenterNamesResponse& from) { + GetSegmenterNamesResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetSegmenterNamesResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetSegmenterNamesResponse"; + } + protected: + explicit GetSegmenterNamesResponse(::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 { + kSegmenterNamesFieldNumber = 1, + }; + // repeated string segmenter_names = 1 [json_name = "segmenterNames"]; + int segmenter_names_size() const; + private: + int _internal_segmenter_names_size() const; + public: + void clear_segmenter_names(); + const std::string& segmenter_names(int index) const; + std::string* mutable_segmenter_names(int index); + void set_segmenter_names(int index, const std::string& value); + void set_segmenter_names(int index, std::string&& value); + void set_segmenter_names(int index, const char* value); + void set_segmenter_names(int index, const char* value, size_t size); + std::string* add_segmenter_names(); + void add_segmenter_names(const std::string& value); + void add_segmenter_names(std::string&& value); + void add_segmenter_names(const char* value); + void add_segmenter_names(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& segmenter_names() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_segmenter_names(); + private: + const std::string& _internal_segmenter_names(int index) const; + std::string* _internal_add_segmenter_names(); + public: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetSegmenterNamesResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField segmenter_names_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class AddSegmenterRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.AddSegmenterRequest) */ { + public: + inline AddSegmenterRequest() : AddSegmenterRequest(nullptr) {} + ~AddSegmenterRequest() override; + explicit PROTOBUF_CONSTEXPR AddSegmenterRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AddSegmenterRequest(const AddSegmenterRequest& from); + AddSegmenterRequest(AddSegmenterRequest&& from) noexcept + : AddSegmenterRequest() { + *this = ::std::move(from); + } + + inline AddSegmenterRequest& operator=(const AddSegmenterRequest& from) { + CopyFrom(from); + return *this; + } + inline AddSegmenterRequest& operator=(AddSegmenterRequest&& 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 AddSegmenterRequest& default_instance() { + return *internal_default_instance(); + } + static inline const AddSegmenterRequest* internal_default_instance() { + return reinterpret_cast( + &_AddSegmenterRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 26; + + friend void swap(AddSegmenterRequest& a, AddSegmenterRequest& b) { + a.Swap(&b); + } + inline void Swap(AddSegmenterRequest* 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(AddSegmenterRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AddSegmenterRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AddSegmenterRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const AddSegmenterRequest& from) { + AddSegmenterRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AddSegmenterRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.AddSegmenterRequest"; + } + protected: + explicit AddSegmenterRequest(::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, + kSegmenterNameFieldNumber = 2, + kSegmenterModelTypeFieldNumber = 3, + kSegmenterParametersFieldNumber = 4, + }; + // 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 segmenter_name = 2 [json_name = "segmenterName"]; + void clear_segmenter_name(); + const std::string& segmenter_name() const; + template + void set_segmenter_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_segmenter_name(); + PROTOBUF_NODISCARD std::string* release_segmenter_name(); + void set_allocated_segmenter_name(std::string* segmenter_name); + private: + const std::string& _internal_segmenter_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_segmenter_name(const std::string& value); + std::string* _internal_mutable_segmenter_name(); + public: + + // string segmenter_model_type = 3 [json_name = "segmenterModelType"]; + void clear_segmenter_model_type(); + const std::string& segmenter_model_type() const; + template + void set_segmenter_model_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_segmenter_model_type(); + PROTOBUF_NODISCARD std::string* release_segmenter_model_type(); + void set_allocated_segmenter_model_type(std::string* segmenter_model_type); + private: + const std::string& _internal_segmenter_model_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_segmenter_model_type(const std::string& value); + std::string* _internal_mutable_segmenter_model_type(); + public: + + // .google.protobuf.Struct segmenter_parameters = 4 [json_name = "segmenterParameters"]; + bool has_segmenter_parameters() const; + private: + bool _internal_has_segmenter_parameters() const; + public: + void clear_segmenter_parameters(); + const ::PROTOBUF_NAMESPACE_ID::Struct& segmenter_parameters() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_segmenter_parameters(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_segmenter_parameters(); + void set_allocated_segmenter_parameters(::PROTOBUF_NAMESPACE_ID::Struct* segmenter_parameters); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_segmenter_parameters() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_segmenter_parameters(); + public: + void unsafe_arena_set_allocated_segmenter_parameters( + ::PROTOBUF_NAMESPACE_ID::Struct* segmenter_parameters); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_segmenter_parameters(); + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.AddSegmenterRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr segmenter_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr segmenter_model_type_; + ::PROTOBUF_NAMESPACE_ID::Struct* segmenter_parameters_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class AddSegmenterResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.AddSegmenterResponse) */ { + public: + inline AddSegmenterResponse() : AddSegmenterResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR AddSegmenterResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AddSegmenterResponse(const AddSegmenterResponse& from); + AddSegmenterResponse(AddSegmenterResponse&& from) noexcept + : AddSegmenterResponse() { + *this = ::std::move(from); + } + + inline AddSegmenterResponse& operator=(const AddSegmenterResponse& from) { + CopyFrom(from); + return *this; + } + inline AddSegmenterResponse& operator=(AddSegmenterResponse&& 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 AddSegmenterResponse& default_instance() { + return *internal_default_instance(); + } + static inline const AddSegmenterResponse* internal_default_instance() { + return reinterpret_cast( + &_AddSegmenterResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 27; + + friend void swap(AddSegmenterResponse& a, AddSegmenterResponse& b) { + a.Swap(&b); + } + inline void Swap(AddSegmenterResponse* 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(AddSegmenterResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AddSegmenterResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const AddSegmenterResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const AddSegmenterResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.AddSegmenterResponse"; + } + protected: + explicit AddSegmenterResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.AddSegmenterResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class RemoveSegmenterRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.RemoveSegmenterRequest) */ { + public: + inline RemoveSegmenterRequest() : RemoveSegmenterRequest(nullptr) {} + ~RemoveSegmenterRequest() override; + explicit PROTOBUF_CONSTEXPR RemoveSegmenterRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RemoveSegmenterRequest(const RemoveSegmenterRequest& from); + RemoveSegmenterRequest(RemoveSegmenterRequest&& from) noexcept + : RemoveSegmenterRequest() { + *this = ::std::move(from); + } + + inline RemoveSegmenterRequest& operator=(const RemoveSegmenterRequest& from) { + CopyFrom(from); + return *this; + } + inline RemoveSegmenterRequest& operator=(RemoveSegmenterRequest&& 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 RemoveSegmenterRequest& default_instance() { + return *internal_default_instance(); + } + static inline const RemoveSegmenterRequest* internal_default_instance() { + return reinterpret_cast( + &_RemoveSegmenterRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 28; + + friend void swap(RemoveSegmenterRequest& a, RemoveSegmenterRequest& b) { + a.Swap(&b); + } + inline void Swap(RemoveSegmenterRequest* 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(RemoveSegmenterRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RemoveSegmenterRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RemoveSegmenterRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RemoveSegmenterRequest& from) { + RemoveSegmenterRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RemoveSegmenterRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.RemoveSegmenterRequest"; + } + protected: + explicit RemoveSegmenterRequest(::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, + kSegmenterNameFieldNumber = 2, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // string segmenter_name = 2 [json_name = "segmenterName"]; + void clear_segmenter_name(); + const std::string& segmenter_name() const; + template + void set_segmenter_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_segmenter_name(); + PROTOBUF_NODISCARD std::string* release_segmenter_name(); + void set_allocated_segmenter_name(std::string* segmenter_name); + private: + const std::string& _internal_segmenter_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_segmenter_name(const std::string& value); + std::string* _internal_mutable_segmenter_name(); + public: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.RemoveSegmenterRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr segmenter_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class RemoveSegmenterResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.RemoveSegmenterResponse) */ { + public: + inline RemoveSegmenterResponse() : RemoveSegmenterResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR RemoveSegmenterResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RemoveSegmenterResponse(const RemoveSegmenterResponse& from); + RemoveSegmenterResponse(RemoveSegmenterResponse&& from) noexcept + : RemoveSegmenterResponse() { + *this = ::std::move(from); + } + + inline RemoveSegmenterResponse& operator=(const RemoveSegmenterResponse& from) { + CopyFrom(from); + return *this; + } + inline RemoveSegmenterResponse& operator=(RemoveSegmenterResponse&& 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 RemoveSegmenterResponse& default_instance() { + return *internal_default_instance(); + } + static inline const RemoveSegmenterResponse* internal_default_instance() { + return reinterpret_cast( + &_RemoveSegmenterResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 29; + + friend void swap(RemoveSegmenterResponse& a, RemoveSegmenterResponse& b) { + a.Swap(&b); + } + inline void Swap(RemoveSegmenterResponse* 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(RemoveSegmenterResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RemoveSegmenterResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const RemoveSegmenterResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const RemoveSegmenterResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.RemoveSegmenterResponse"; + } + protected: + explicit RemoveSegmenterResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.RemoveSegmenterResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class GetObjectPointCloudsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetObjectPointCloudsRequest) */ { + public: + inline GetObjectPointCloudsRequest() : GetObjectPointCloudsRequest(nullptr) {} + ~GetObjectPointCloudsRequest() override; + explicit PROTOBUF_CONSTEXPR GetObjectPointCloudsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetObjectPointCloudsRequest(const GetObjectPointCloudsRequest& from); + GetObjectPointCloudsRequest(GetObjectPointCloudsRequest&& from) noexcept + : GetObjectPointCloudsRequest() { + *this = ::std::move(from); + } + + inline GetObjectPointCloudsRequest& operator=(const GetObjectPointCloudsRequest& from) { + CopyFrom(from); + return *this; + } + inline GetObjectPointCloudsRequest& operator=(GetObjectPointCloudsRequest&& 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 GetObjectPointCloudsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetObjectPointCloudsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetObjectPointCloudsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 30; + + friend void swap(GetObjectPointCloudsRequest& a, GetObjectPointCloudsRequest& b) { + a.Swap(&b); + } + inline void Swap(GetObjectPointCloudsRequest* 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(GetObjectPointCloudsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetObjectPointCloudsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetObjectPointCloudsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetObjectPointCloudsRequest& from) { + GetObjectPointCloudsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetObjectPointCloudsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetObjectPointCloudsRequest"; + } + protected: + explicit GetObjectPointCloudsRequest(::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, + kCameraNameFieldNumber = 2, + kSegmenterNameFieldNumber = 3, + kMimeTypeFieldNumber = 4, + }; + // 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 camera_name = 2 [json_name = "cameraName"]; + void clear_camera_name(); + const std::string& camera_name() const; + template + void set_camera_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_camera_name(); + PROTOBUF_NODISCARD std::string* release_camera_name(); + void set_allocated_camera_name(std::string* camera_name); + private: + const std::string& _internal_camera_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_camera_name(const std::string& value); + std::string* _internal_mutable_camera_name(); + public: + + // string segmenter_name = 3 [json_name = "segmenterName"]; + void clear_segmenter_name(); + const std::string& segmenter_name() const; + template + void set_segmenter_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_segmenter_name(); + PROTOBUF_NODISCARD std::string* release_segmenter_name(); + void set_allocated_segmenter_name(std::string* segmenter_name); + private: + const std::string& _internal_segmenter_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_segmenter_name(const std::string& value); + std::string* _internal_mutable_segmenter_name(); + public: + + // string mime_type = 4 [json_name = "mimeType"]; + void clear_mime_type(); + const std::string& mime_type() const; + template + void set_mime_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_mime_type(); + PROTOBUF_NODISCARD std::string* release_mime_type(); + void set_allocated_mime_type(std::string* mime_type); + private: + const std::string& _internal_mime_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); + std::string* _internal_mutable_mime_type(); + public: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetObjectPointCloudsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr camera_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr segmenter_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// ------------------------------------------------------------------- + +class GetObjectPointCloudsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetObjectPointCloudsResponse) */ { + public: + inline GetObjectPointCloudsResponse() : GetObjectPointCloudsResponse(nullptr) {} + ~GetObjectPointCloudsResponse() override; + explicit PROTOBUF_CONSTEXPR GetObjectPointCloudsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetObjectPointCloudsResponse(const GetObjectPointCloudsResponse& from); + GetObjectPointCloudsResponse(GetObjectPointCloudsResponse&& from) noexcept + : GetObjectPointCloudsResponse() { + *this = ::std::move(from); + } + + inline GetObjectPointCloudsResponse& operator=(const GetObjectPointCloudsResponse& from) { + CopyFrom(from); + return *this; + } + inline GetObjectPointCloudsResponse& operator=(GetObjectPointCloudsResponse&& 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 GetObjectPointCloudsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetObjectPointCloudsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetObjectPointCloudsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 31; + + friend void swap(GetObjectPointCloudsResponse& a, GetObjectPointCloudsResponse& b) { + a.Swap(&b); + } + inline void Swap(GetObjectPointCloudsResponse* 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(GetObjectPointCloudsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetObjectPointCloudsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetObjectPointCloudsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetObjectPointCloudsResponse& from) { + GetObjectPointCloudsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::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 _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetObjectPointCloudsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetObjectPointCloudsResponse"; + } + protected: + explicit GetObjectPointCloudsResponse(::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 { + kObjectsFieldNumber = 2, + kMimeTypeFieldNumber = 1, + }; + // repeated .viam.common.v1.PointCloudObject objects = 2 [json_name = "objects"]; + int objects_size() const; + private: + int _internal_objects_size() const; + public: + void clear_objects(); + ::viam::common::v1::PointCloudObject* mutable_objects(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::PointCloudObject >* + mutable_objects(); + private: + const ::viam::common::v1::PointCloudObject& _internal_objects(int index) const; + ::viam::common::v1::PointCloudObject* _internal_add_objects(); + public: + const ::viam::common::v1::PointCloudObject& objects(int index) const; + ::viam::common::v1::PointCloudObject* add_objects(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::PointCloudObject >& + objects() const; + + // string mime_type = 1 [json_name = "mimeType"]; + void clear_mime_type(); + const std::string& mime_type() const; + template + void set_mime_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_mime_type(); + PROTOBUF_NODISCARD std::string* release_mime_type(); + void set_allocated_mime_type(std::string* mime_type); + private: + const std::string& _internal_mime_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); + std::string* _internal_mutable_mime_type(); + public: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetObjectPointCloudsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::PointCloudObject > objects_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// GetModelParameterSchemaRequest + +// string name = 1 [json_name = "name"]; +inline void GetModelParameterSchemaRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetModelParameterSchemaRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetModelParameterSchemaRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetModelParameterSchemaRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetModelParameterSchemaRequest.name) +} +inline std::string* GetModelParameterSchemaRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetModelParameterSchemaRequest.name) + return _s; +} +inline const std::string& GetModelParameterSchemaRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetModelParameterSchemaRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetModelParameterSchemaRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetModelParameterSchemaRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetModelParameterSchemaRequest.name) + return _impl_.name_.Release(); +} +inline void GetModelParameterSchemaRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetModelParameterSchemaRequest.name) +} + +// string model_type = 2 [json_name = "modelType"]; +inline void GetModelParameterSchemaRequest::clear_model_type() { + _impl_.model_type_.ClearToEmpty(); +} +inline const std::string& GetModelParameterSchemaRequest::model_type() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetModelParameterSchemaRequest.model_type) + return _internal_model_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetModelParameterSchemaRequest::set_model_type(ArgT0&& arg0, ArgT... args) { + + _impl_.model_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetModelParameterSchemaRequest.model_type) +} +inline std::string* GetModelParameterSchemaRequest::mutable_model_type() { + std::string* _s = _internal_mutable_model_type(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetModelParameterSchemaRequest.model_type) + return _s; +} +inline const std::string& GetModelParameterSchemaRequest::_internal_model_type() const { + return _impl_.model_type_.Get(); +} +inline void GetModelParameterSchemaRequest::_internal_set_model_type(const std::string& value) { + + _impl_.model_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetModelParameterSchemaRequest::_internal_mutable_model_type() { + + return _impl_.model_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetModelParameterSchemaRequest::release_model_type() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetModelParameterSchemaRequest.model_type) + return _impl_.model_type_.Release(); +} +inline void GetModelParameterSchemaRequest::set_allocated_model_type(std::string* model_type) { + if (model_type != nullptr) { + + } else { + + } + _impl_.model_type_.SetAllocated(model_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.model_type_.IsDefault()) { + _impl_.model_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetModelParameterSchemaRequest.model_type) +} + +// ------------------------------------------------------------------- + +// GetModelParameterSchemaResponse + +// bytes model_parameter_schema = 1 [json_name = "modelParameterSchema"]; +inline void GetModelParameterSchemaResponse::clear_model_parameter_schema() { + _impl_.model_parameter_schema_.ClearToEmpty(); +} +inline const std::string& GetModelParameterSchemaResponse::model_parameter_schema() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetModelParameterSchemaResponse.model_parameter_schema) + return _internal_model_parameter_schema(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetModelParameterSchemaResponse::set_model_parameter_schema(ArgT0&& arg0, ArgT... args) { + + _impl_.model_parameter_schema_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetModelParameterSchemaResponse.model_parameter_schema) +} +inline std::string* GetModelParameterSchemaResponse::mutable_model_parameter_schema() { + std::string* _s = _internal_mutable_model_parameter_schema(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetModelParameterSchemaResponse.model_parameter_schema) + return _s; +} +inline const std::string& GetModelParameterSchemaResponse::_internal_model_parameter_schema() const { + return _impl_.model_parameter_schema_.Get(); +} +inline void GetModelParameterSchemaResponse::_internal_set_model_parameter_schema(const std::string& value) { + + _impl_.model_parameter_schema_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetModelParameterSchemaResponse::_internal_mutable_model_parameter_schema() { + + return _impl_.model_parameter_schema_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetModelParameterSchemaResponse::release_model_parameter_schema() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetModelParameterSchemaResponse.model_parameter_schema) + return _impl_.model_parameter_schema_.Release(); +} +inline void GetModelParameterSchemaResponse::set_allocated_model_parameter_schema(std::string* model_parameter_schema) { + if (model_parameter_schema != nullptr) { + + } else { + + } + _impl_.model_parameter_schema_.SetAllocated(model_parameter_schema, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.model_parameter_schema_.IsDefault()) { + _impl_.model_parameter_schema_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetModelParameterSchemaResponse.model_parameter_schema) +} + +// ------------------------------------------------------------------- + +// GetDetectorNamesRequest + +// string name = 1 [json_name = "name"]; +inline void GetDetectorNamesRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetDetectorNamesRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectorNamesRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetDetectorNamesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetDetectorNamesRequest.name) +} +inline std::string* GetDetectorNamesRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetDetectorNamesRequest.name) + return _s; +} +inline const std::string& GetDetectorNamesRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetDetectorNamesRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetDetectorNamesRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetDetectorNamesRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetDetectorNamesRequest.name) + return _impl_.name_.Release(); +} +inline void GetDetectorNamesRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetDetectorNamesRequest.name) +} + +// ------------------------------------------------------------------- + +// GetDetectorNamesResponse + +// repeated string detector_names = 1 [json_name = "detectorNames"]; +inline int GetDetectorNamesResponse::_internal_detector_names_size() const { + return _impl_.detector_names_.size(); +} +inline int GetDetectorNamesResponse::detector_names_size() const { + return _internal_detector_names_size(); +} +inline void GetDetectorNamesResponse::clear_detector_names() { + _impl_.detector_names_.Clear(); +} +inline std::string* GetDetectorNamesResponse::add_detector_names() { + std::string* _s = _internal_add_detector_names(); + // @@protoc_insertion_point(field_add_mutable:viam.service.vision.v1.GetDetectorNamesResponse.detector_names) + return _s; +} +inline const std::string& GetDetectorNamesResponse::_internal_detector_names(int index) const { + return _impl_.detector_names_.Get(index); +} +inline const std::string& GetDetectorNamesResponse::detector_names(int index) const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectorNamesResponse.detector_names) + return _internal_detector_names(index); +} +inline std::string* GetDetectorNamesResponse::mutable_detector_names(int index) { + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetDetectorNamesResponse.detector_names) + return _impl_.detector_names_.Mutable(index); +} +inline void GetDetectorNamesResponse::set_detector_names(int index, const std::string& value) { + _impl_.detector_names_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetDetectorNamesResponse.detector_names) +} +inline void GetDetectorNamesResponse::set_detector_names(int index, std::string&& value) { + _impl_.detector_names_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetDetectorNamesResponse.detector_names) +} +inline void GetDetectorNamesResponse::set_detector_names(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.detector_names_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.service.vision.v1.GetDetectorNamesResponse.detector_names) +} +inline void GetDetectorNamesResponse::set_detector_names(int index, const char* value, size_t size) { + _impl_.detector_names_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.service.vision.v1.GetDetectorNamesResponse.detector_names) +} +inline std::string* GetDetectorNamesResponse::_internal_add_detector_names() { + return _impl_.detector_names_.Add(); +} +inline void GetDetectorNamesResponse::add_detector_names(const std::string& value) { + _impl_.detector_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.service.vision.v1.GetDetectorNamesResponse.detector_names) +} +inline void GetDetectorNamesResponse::add_detector_names(std::string&& value) { + _impl_.detector_names_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.service.vision.v1.GetDetectorNamesResponse.detector_names) +} +inline void GetDetectorNamesResponse::add_detector_names(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.detector_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.service.vision.v1.GetDetectorNamesResponse.detector_names) +} +inline void GetDetectorNamesResponse::add_detector_names(const char* value, size_t size) { + _impl_.detector_names_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.service.vision.v1.GetDetectorNamesResponse.detector_names) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +GetDetectorNamesResponse::detector_names() const { + // @@protoc_insertion_point(field_list:viam.service.vision.v1.GetDetectorNamesResponse.detector_names) + return _impl_.detector_names_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +GetDetectorNamesResponse::mutable_detector_names() { + // @@protoc_insertion_point(field_mutable_list:viam.service.vision.v1.GetDetectorNamesResponse.detector_names) + return &_impl_.detector_names_; +} + +// ------------------------------------------------------------------- + +// AddDetectorRequest + +// string name = 1 [json_name = "name"]; +inline void AddDetectorRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& AddDetectorRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.AddDetectorRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AddDetectorRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.AddDetectorRequest.name) +} +inline std::string* AddDetectorRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.AddDetectorRequest.name) + return _s; +} +inline const std::string& AddDetectorRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void AddDetectorRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* AddDetectorRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* AddDetectorRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.AddDetectorRequest.name) + return _impl_.name_.Release(); +} +inline void AddDetectorRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.AddDetectorRequest.name) +} + +// string detector_name = 2 [json_name = "detectorName"]; +inline void AddDetectorRequest::clear_detector_name() { + _impl_.detector_name_.ClearToEmpty(); +} +inline const std::string& AddDetectorRequest::detector_name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.AddDetectorRequest.detector_name) + return _internal_detector_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AddDetectorRequest::set_detector_name(ArgT0&& arg0, ArgT... args) { + + _impl_.detector_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.AddDetectorRequest.detector_name) +} +inline std::string* AddDetectorRequest::mutable_detector_name() { + std::string* _s = _internal_mutable_detector_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.AddDetectorRequest.detector_name) + return _s; +} +inline const std::string& AddDetectorRequest::_internal_detector_name() const { + return _impl_.detector_name_.Get(); +} +inline void AddDetectorRequest::_internal_set_detector_name(const std::string& value) { + + _impl_.detector_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* AddDetectorRequest::_internal_mutable_detector_name() { + + return _impl_.detector_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* AddDetectorRequest::release_detector_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.AddDetectorRequest.detector_name) + return _impl_.detector_name_.Release(); +} +inline void AddDetectorRequest::set_allocated_detector_name(std::string* detector_name) { + if (detector_name != nullptr) { + + } else { + + } + _impl_.detector_name_.SetAllocated(detector_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.detector_name_.IsDefault()) { + _impl_.detector_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.AddDetectorRequest.detector_name) +} + +// string detector_model_type = 3 [json_name = "detectorModelType"]; +inline void AddDetectorRequest::clear_detector_model_type() { + _impl_.detector_model_type_.ClearToEmpty(); +} +inline const std::string& AddDetectorRequest::detector_model_type() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.AddDetectorRequest.detector_model_type) + return _internal_detector_model_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AddDetectorRequest::set_detector_model_type(ArgT0&& arg0, ArgT... args) { + + _impl_.detector_model_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.AddDetectorRequest.detector_model_type) +} +inline std::string* AddDetectorRequest::mutable_detector_model_type() { + std::string* _s = _internal_mutable_detector_model_type(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.AddDetectorRequest.detector_model_type) + return _s; +} +inline const std::string& AddDetectorRequest::_internal_detector_model_type() const { + return _impl_.detector_model_type_.Get(); +} +inline void AddDetectorRequest::_internal_set_detector_model_type(const std::string& value) { + + _impl_.detector_model_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* AddDetectorRequest::_internal_mutable_detector_model_type() { + + return _impl_.detector_model_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* AddDetectorRequest::release_detector_model_type() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.AddDetectorRequest.detector_model_type) + return _impl_.detector_model_type_.Release(); +} +inline void AddDetectorRequest::set_allocated_detector_model_type(std::string* detector_model_type) { + if (detector_model_type != nullptr) { + + } else { + + } + _impl_.detector_model_type_.SetAllocated(detector_model_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.detector_model_type_.IsDefault()) { + _impl_.detector_model_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.AddDetectorRequest.detector_model_type) +} + +// .google.protobuf.Struct detector_parameters = 4 [json_name = "detectorParameters"]; +inline bool AddDetectorRequest::_internal_has_detector_parameters() const { + return this != internal_default_instance() && _impl_.detector_parameters_ != nullptr; +} +inline bool AddDetectorRequest::has_detector_parameters() const { + return _internal_has_detector_parameters(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& AddDetectorRequest::_internal_detector_parameters() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.detector_parameters_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& AddDetectorRequest::detector_parameters() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.AddDetectorRequest.detector_parameters) + return _internal_detector_parameters(); +} +inline void AddDetectorRequest::unsafe_arena_set_allocated_detector_parameters( + ::PROTOBUF_NAMESPACE_ID::Struct* detector_parameters) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.detector_parameters_); + } + _impl_.detector_parameters_ = detector_parameters; + if (detector_parameters) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.vision.v1.AddDetectorRequest.detector_parameters) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* AddDetectorRequest::release_detector_parameters() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.detector_parameters_; + _impl_.detector_parameters_ = 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* AddDetectorRequest::unsafe_arena_release_detector_parameters() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.AddDetectorRequest.detector_parameters) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.detector_parameters_; + _impl_.detector_parameters_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* AddDetectorRequest::_internal_mutable_detector_parameters() { + + if (_impl_.detector_parameters_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.detector_parameters_ = p; + } + return _impl_.detector_parameters_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* AddDetectorRequest::mutable_detector_parameters() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_detector_parameters(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.AddDetectorRequest.detector_parameters) + return _msg; +} +inline void AddDetectorRequest::set_allocated_detector_parameters(::PROTOBUF_NAMESPACE_ID::Struct* detector_parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.detector_parameters_); + } + if (detector_parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(detector_parameters)); + if (message_arena != submessage_arena) { + detector_parameters = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, detector_parameters, submessage_arena); + } + + } else { + + } + _impl_.detector_parameters_ = detector_parameters; + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.AddDetectorRequest.detector_parameters) +} + +// ------------------------------------------------------------------- + +// AddDetectorResponse + +// ------------------------------------------------------------------- + +// RemoveDetectorRequest + +// string name = 1 [json_name = "name"]; +inline void RemoveDetectorRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& RemoveDetectorRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.RemoveDetectorRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RemoveDetectorRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.RemoveDetectorRequest.name) +} +inline std::string* RemoveDetectorRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.RemoveDetectorRequest.name) + return _s; +} +inline const std::string& RemoveDetectorRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void RemoveDetectorRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* RemoveDetectorRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* RemoveDetectorRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.RemoveDetectorRequest.name) + return _impl_.name_.Release(); +} +inline void RemoveDetectorRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.RemoveDetectorRequest.name) +} + +// string detector_name = 2 [json_name = "detectorName"]; +inline void RemoveDetectorRequest::clear_detector_name() { + _impl_.detector_name_.ClearToEmpty(); +} +inline const std::string& RemoveDetectorRequest::detector_name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.RemoveDetectorRequest.detector_name) + return _internal_detector_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RemoveDetectorRequest::set_detector_name(ArgT0&& arg0, ArgT... args) { + + _impl_.detector_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.RemoveDetectorRequest.detector_name) +} +inline std::string* RemoveDetectorRequest::mutable_detector_name() { + std::string* _s = _internal_mutable_detector_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.RemoveDetectorRequest.detector_name) + return _s; +} +inline const std::string& RemoveDetectorRequest::_internal_detector_name() const { + return _impl_.detector_name_.Get(); +} +inline void RemoveDetectorRequest::_internal_set_detector_name(const std::string& value) { + + _impl_.detector_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* RemoveDetectorRequest::_internal_mutable_detector_name() { + + return _impl_.detector_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* RemoveDetectorRequest::release_detector_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.RemoveDetectorRequest.detector_name) + return _impl_.detector_name_.Release(); +} +inline void RemoveDetectorRequest::set_allocated_detector_name(std::string* detector_name) { + if (detector_name != nullptr) { + + } else { + + } + _impl_.detector_name_.SetAllocated(detector_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.detector_name_.IsDefault()) { + _impl_.detector_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.RemoveDetectorRequest.detector_name) +} + +// ------------------------------------------------------------------- + +// RemoveDetectorResponse + +// ------------------------------------------------------------------- + +// GetDetectionsRequest + +// string name = 1 [json_name = "name"]; +inline void GetDetectionsRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetDetectionsRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetDetectionsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetDetectionsRequest.name) +} +inline std::string* GetDetectionsRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetDetectionsRequest.name) + return _s; +} +inline const std::string& GetDetectionsRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetDetectionsRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetDetectionsRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetDetectionsRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetDetectionsRequest.name) + return _impl_.name_.Release(); +} +inline void GetDetectionsRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetDetectionsRequest.name) +} + +// bytes image = 2 [json_name = "image"]; +inline void GetDetectionsRequest::clear_image() { + _impl_.image_.ClearToEmpty(); +} +inline const std::string& GetDetectionsRequest::image() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsRequest.image) + return _internal_image(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetDetectionsRequest::set_image(ArgT0&& arg0, ArgT... args) { + + _impl_.image_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetDetectionsRequest.image) +} +inline std::string* GetDetectionsRequest::mutable_image() { + std::string* _s = _internal_mutable_image(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetDetectionsRequest.image) + return _s; +} +inline const std::string& GetDetectionsRequest::_internal_image() const { + return _impl_.image_.Get(); +} +inline void GetDetectionsRequest::_internal_set_image(const std::string& value) { + + _impl_.image_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetDetectionsRequest::_internal_mutable_image() { + + return _impl_.image_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetDetectionsRequest::release_image() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetDetectionsRequest.image) + return _impl_.image_.Release(); +} +inline void GetDetectionsRequest::set_allocated_image(std::string* image) { + if (image != nullptr) { + + } else { + + } + _impl_.image_.SetAllocated(image, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.image_.IsDefault()) { + _impl_.image_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetDetectionsRequest.image) +} + +// int64 width = 3 [json_name = "width"]; +inline void GetDetectionsRequest::clear_width() { + _impl_.width_ = int64_t{0}; +} +inline int64_t GetDetectionsRequest::_internal_width() const { + return _impl_.width_; +} +inline int64_t GetDetectionsRequest::width() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsRequest.width) + return _internal_width(); +} +inline void GetDetectionsRequest::_internal_set_width(int64_t value) { + + _impl_.width_ = value; +} +inline void GetDetectionsRequest::set_width(int64_t value) { + _internal_set_width(value); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetDetectionsRequest.width) +} + +// int64 height = 4 [json_name = "height"]; +inline void GetDetectionsRequest::clear_height() { + _impl_.height_ = int64_t{0}; +} +inline int64_t GetDetectionsRequest::_internal_height() const { + return _impl_.height_; +} +inline int64_t GetDetectionsRequest::height() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsRequest.height) + return _internal_height(); +} +inline void GetDetectionsRequest::_internal_set_height(int64_t value) { + + _impl_.height_ = value; +} +inline void GetDetectionsRequest::set_height(int64_t value) { + _internal_set_height(value); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetDetectionsRequest.height) +} + +// string mime_type = 5 [json_name = "mimeType"]; +inline void GetDetectionsRequest::clear_mime_type() { + _impl_.mime_type_.ClearToEmpty(); +} +inline const std::string& GetDetectionsRequest::mime_type() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsRequest.mime_type) + return _internal_mime_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetDetectionsRequest::set_mime_type(ArgT0&& arg0, ArgT... args) { + + _impl_.mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetDetectionsRequest.mime_type) +} +inline std::string* GetDetectionsRequest::mutable_mime_type() { + std::string* _s = _internal_mutable_mime_type(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetDetectionsRequest.mime_type) + return _s; +} +inline const std::string& GetDetectionsRequest::_internal_mime_type() const { + return _impl_.mime_type_.Get(); +} +inline void GetDetectionsRequest::_internal_set_mime_type(const std::string& value) { + + _impl_.mime_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetDetectionsRequest::_internal_mutable_mime_type() { + + return _impl_.mime_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetDetectionsRequest::release_mime_type() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetDetectionsRequest.mime_type) + return _impl_.mime_type_.Release(); +} +inline void GetDetectionsRequest::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + _impl_.mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.mime_type_.IsDefault()) { + _impl_.mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetDetectionsRequest.mime_type) +} + +// string detector_name = 6 [json_name = "detectorName"]; +inline void GetDetectionsRequest::clear_detector_name() { + _impl_.detector_name_.ClearToEmpty(); +} +inline const std::string& GetDetectionsRequest::detector_name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsRequest.detector_name) + return _internal_detector_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetDetectionsRequest::set_detector_name(ArgT0&& arg0, ArgT... args) { + + _impl_.detector_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetDetectionsRequest.detector_name) +} +inline std::string* GetDetectionsRequest::mutable_detector_name() { + std::string* _s = _internal_mutable_detector_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetDetectionsRequest.detector_name) + return _s; +} +inline const std::string& GetDetectionsRequest::_internal_detector_name() const { + return _impl_.detector_name_.Get(); +} +inline void GetDetectionsRequest::_internal_set_detector_name(const std::string& value) { + + _impl_.detector_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetDetectionsRequest::_internal_mutable_detector_name() { + + return _impl_.detector_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetDetectionsRequest::release_detector_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetDetectionsRequest.detector_name) + return _impl_.detector_name_.Release(); +} +inline void GetDetectionsRequest::set_allocated_detector_name(std::string* detector_name) { + if (detector_name != nullptr) { + + } else { + + } + _impl_.detector_name_.SetAllocated(detector_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.detector_name_.IsDefault()) { + _impl_.detector_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetDetectionsRequest.detector_name) +} + +// ------------------------------------------------------------------- + +// GetDetectionsResponse + +// repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; +inline int GetDetectionsResponse::_internal_detections_size() const { + return _impl_.detections_.size(); +} +inline int GetDetectionsResponse::detections_size() const { + return _internal_detections_size(); +} +inline void GetDetectionsResponse::clear_detections() { + _impl_.detections_.Clear(); +} +inline ::viam::service::vision::v1::Detection* GetDetectionsResponse::mutable_detections(int index) { + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetDetectionsResponse.detections) + return _impl_.detections_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection >* +GetDetectionsResponse::mutable_detections() { + // @@protoc_insertion_point(field_mutable_list:viam.service.vision.v1.GetDetectionsResponse.detections) + return &_impl_.detections_; +} +inline const ::viam::service::vision::v1::Detection& GetDetectionsResponse::_internal_detections(int index) const { + return _impl_.detections_.Get(index); +} +inline const ::viam::service::vision::v1::Detection& GetDetectionsResponse::detections(int index) const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsResponse.detections) + return _internal_detections(index); +} +inline ::viam::service::vision::v1::Detection* GetDetectionsResponse::_internal_add_detections() { + return _impl_.detections_.Add(); +} +inline ::viam::service::vision::v1::Detection* GetDetectionsResponse::add_detections() { + ::viam::service::vision::v1::Detection* _add = _internal_add_detections(); + // @@protoc_insertion_point(field_add:viam.service.vision.v1.GetDetectionsResponse.detections) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection >& +GetDetectionsResponse::detections() const { + // @@protoc_insertion_point(field_list:viam.service.vision.v1.GetDetectionsResponse.detections) + return _impl_.detections_; +} + +// ------------------------------------------------------------------- + +// GetDetectionsFromCameraRequest + +// string name = 1 [json_name = "name"]; +inline void GetDetectionsFromCameraRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetDetectionsFromCameraRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsFromCameraRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetDetectionsFromCameraRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetDetectionsFromCameraRequest.name) +} +inline std::string* GetDetectionsFromCameraRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetDetectionsFromCameraRequest.name) + return _s; +} +inline const std::string& GetDetectionsFromCameraRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetDetectionsFromCameraRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetDetectionsFromCameraRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetDetectionsFromCameraRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetDetectionsFromCameraRequest.name) + return _impl_.name_.Release(); +} +inline void GetDetectionsFromCameraRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetDetectionsFromCameraRequest.name) +} + +// string camera_name = 2 [json_name = "cameraName"]; +inline void GetDetectionsFromCameraRequest::clear_camera_name() { + _impl_.camera_name_.ClearToEmpty(); +} +inline const std::string& GetDetectionsFromCameraRequest::camera_name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsFromCameraRequest.camera_name) + return _internal_camera_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetDetectionsFromCameraRequest::set_camera_name(ArgT0&& arg0, ArgT... args) { + + _impl_.camera_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetDetectionsFromCameraRequest.camera_name) +} +inline std::string* GetDetectionsFromCameraRequest::mutable_camera_name() { + std::string* _s = _internal_mutable_camera_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetDetectionsFromCameraRequest.camera_name) + return _s; +} +inline const std::string& GetDetectionsFromCameraRequest::_internal_camera_name() const { + return _impl_.camera_name_.Get(); +} +inline void GetDetectionsFromCameraRequest::_internal_set_camera_name(const std::string& value) { + + _impl_.camera_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetDetectionsFromCameraRequest::_internal_mutable_camera_name() { + + return _impl_.camera_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetDetectionsFromCameraRequest::release_camera_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetDetectionsFromCameraRequest.camera_name) + return _impl_.camera_name_.Release(); +} +inline void GetDetectionsFromCameraRequest::set_allocated_camera_name(std::string* camera_name) { + if (camera_name != nullptr) { + + } else { + + } + _impl_.camera_name_.SetAllocated(camera_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.camera_name_.IsDefault()) { + _impl_.camera_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetDetectionsFromCameraRequest.camera_name) +} + +// string detector_name = 3 [json_name = "detectorName"]; +inline void GetDetectionsFromCameraRequest::clear_detector_name() { + _impl_.detector_name_.ClearToEmpty(); +} +inline const std::string& GetDetectionsFromCameraRequest::detector_name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsFromCameraRequest.detector_name) + return _internal_detector_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetDetectionsFromCameraRequest::set_detector_name(ArgT0&& arg0, ArgT... args) { + + _impl_.detector_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetDetectionsFromCameraRequest.detector_name) +} +inline std::string* GetDetectionsFromCameraRequest::mutable_detector_name() { + std::string* _s = _internal_mutable_detector_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetDetectionsFromCameraRequest.detector_name) + return _s; +} +inline const std::string& GetDetectionsFromCameraRequest::_internal_detector_name() const { + return _impl_.detector_name_.Get(); +} +inline void GetDetectionsFromCameraRequest::_internal_set_detector_name(const std::string& value) { + + _impl_.detector_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetDetectionsFromCameraRequest::_internal_mutable_detector_name() { + + return _impl_.detector_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetDetectionsFromCameraRequest::release_detector_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetDetectionsFromCameraRequest.detector_name) + return _impl_.detector_name_.Release(); +} +inline void GetDetectionsFromCameraRequest::set_allocated_detector_name(std::string* detector_name) { + if (detector_name != nullptr) { + + } else { + + } + _impl_.detector_name_.SetAllocated(detector_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.detector_name_.IsDefault()) { + _impl_.detector_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetDetectionsFromCameraRequest.detector_name) +} + +// ------------------------------------------------------------------- + +// GetDetectionsFromCameraResponse + +// repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; +inline int GetDetectionsFromCameraResponse::_internal_detections_size() const { + return _impl_.detections_.size(); +} +inline int GetDetectionsFromCameraResponse::detections_size() const { + return _internal_detections_size(); +} +inline void GetDetectionsFromCameraResponse::clear_detections() { + _impl_.detections_.Clear(); +} +inline ::viam::service::vision::v1::Detection* GetDetectionsFromCameraResponse::mutable_detections(int index) { + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetDetectionsFromCameraResponse.detections) + return _impl_.detections_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection >* +GetDetectionsFromCameraResponse::mutable_detections() { + // @@protoc_insertion_point(field_mutable_list:viam.service.vision.v1.GetDetectionsFromCameraResponse.detections) + return &_impl_.detections_; +} +inline const ::viam::service::vision::v1::Detection& GetDetectionsFromCameraResponse::_internal_detections(int index) const { + return _impl_.detections_.Get(index); +} +inline const ::viam::service::vision::v1::Detection& GetDetectionsFromCameraResponse::detections(int index) const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsFromCameraResponse.detections) + return _internal_detections(index); +} +inline ::viam::service::vision::v1::Detection* GetDetectionsFromCameraResponse::_internal_add_detections() { + return _impl_.detections_.Add(); +} +inline ::viam::service::vision::v1::Detection* GetDetectionsFromCameraResponse::add_detections() { + ::viam::service::vision::v1::Detection* _add = _internal_add_detections(); + // @@protoc_insertion_point(field_add:viam.service.vision.v1.GetDetectionsFromCameraResponse.detections) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection >& +GetDetectionsFromCameraResponse::detections() const { + // @@protoc_insertion_point(field_list:viam.service.vision.v1.GetDetectionsFromCameraResponse.detections) + return _impl_.detections_; +} + +// ------------------------------------------------------------------- + +// Detection + +// optional int64 x_min = 1 [json_name = "xMin"]; +inline bool Detection::_internal_has_x_min() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool Detection::has_x_min() const { + return _internal_has_x_min(); +} +inline void Detection::clear_x_min() { + _impl_.x_min_ = int64_t{0}; + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline int64_t Detection::_internal_x_min() const { + return _impl_.x_min_; +} +inline int64_t Detection::x_min() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.Detection.x_min) + return _internal_x_min(); +} +inline void Detection::_internal_set_x_min(int64_t value) { + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.x_min_ = value; +} +inline void Detection::set_x_min(int64_t value) { + _internal_set_x_min(value); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.Detection.x_min) +} + +// optional int64 y_min = 2 [json_name = "yMin"]; +inline bool Detection::_internal_has_y_min() const { + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool Detection::has_y_min() const { + return _internal_has_y_min(); +} +inline void Detection::clear_y_min() { + _impl_.y_min_ = int64_t{0}; + _impl_._has_bits_[0] &= ~0x00000002u; +} +inline int64_t Detection::_internal_y_min() const { + return _impl_.y_min_; +} +inline int64_t Detection::y_min() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.Detection.y_min) + return _internal_y_min(); +} +inline void Detection::_internal_set_y_min(int64_t value) { + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.y_min_ = value; +} +inline void Detection::set_y_min(int64_t value) { + _internal_set_y_min(value); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.Detection.y_min) +} + +// optional int64 x_max = 3 [json_name = "xMax"]; +inline bool Detection::_internal_has_x_max() const { + bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool Detection::has_x_max() const { + return _internal_has_x_max(); +} +inline void Detection::clear_x_max() { + _impl_.x_max_ = int64_t{0}; + _impl_._has_bits_[0] &= ~0x00000004u; +} +inline int64_t Detection::_internal_x_max() const { + return _impl_.x_max_; +} +inline int64_t Detection::x_max() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.Detection.x_max) + return _internal_x_max(); +} +inline void Detection::_internal_set_x_max(int64_t value) { + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.x_max_ = value; +} +inline void Detection::set_x_max(int64_t value) { + _internal_set_x_max(value); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.Detection.x_max) +} + +// optional int64 y_max = 4 [json_name = "yMax"]; +inline bool Detection::_internal_has_y_max() const { + bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool Detection::has_y_max() const { + return _internal_has_y_max(); +} +inline void Detection::clear_y_max() { + _impl_.y_max_ = int64_t{0}; + _impl_._has_bits_[0] &= ~0x00000008u; +} +inline int64_t Detection::_internal_y_max() const { + return _impl_.y_max_; +} +inline int64_t Detection::y_max() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.Detection.y_max) + return _internal_y_max(); +} +inline void Detection::_internal_set_y_max(int64_t value) { + _impl_._has_bits_[0] |= 0x00000008u; + _impl_.y_max_ = value; +} +inline void Detection::set_y_max(int64_t value) { + _internal_set_y_max(value); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.Detection.y_max) +} + +// double confidence = 5 [json_name = "confidence"]; +inline void Detection::clear_confidence() { + _impl_.confidence_ = 0; +} +inline double Detection::_internal_confidence() const { + return _impl_.confidence_; +} +inline double Detection::confidence() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.Detection.confidence) + return _internal_confidence(); +} +inline void Detection::_internal_set_confidence(double value) { + + _impl_.confidence_ = value; +} +inline void Detection::set_confidence(double value) { + _internal_set_confidence(value); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.Detection.confidence) +} + +// string class_name = 6 [json_name = "className"]; +inline void Detection::clear_class_name() { + _impl_.class_name_.ClearToEmpty(); +} +inline const std::string& Detection::class_name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.Detection.class_name) + return _internal_class_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Detection::set_class_name(ArgT0&& arg0, ArgT... args) { + + _impl_.class_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.Detection.class_name) +} +inline std::string* Detection::mutable_class_name() { + std::string* _s = _internal_mutable_class_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.Detection.class_name) + return _s; +} +inline const std::string& Detection::_internal_class_name() const { + return _impl_.class_name_.Get(); +} +inline void Detection::_internal_set_class_name(const std::string& value) { + + _impl_.class_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Detection::_internal_mutable_class_name() { + + return _impl_.class_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* Detection::release_class_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.Detection.class_name) + return _impl_.class_name_.Release(); +} +inline void Detection::set_allocated_class_name(std::string* class_name) { + if (class_name != nullptr) { + + } else { + + } + _impl_.class_name_.SetAllocated(class_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.class_name_.IsDefault()) { + _impl_.class_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.Detection.class_name) +} + +// ------------------------------------------------------------------- + +// GetClassifierNamesRequest + +// string name = 1 [json_name = "name"]; +inline void GetClassifierNamesRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetClassifierNamesRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassifierNamesRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetClassifierNamesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassifierNamesRequest.name) +} +inline std::string* GetClassifierNamesRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetClassifierNamesRequest.name) + return _s; +} +inline const std::string& GetClassifierNamesRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetClassifierNamesRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetClassifierNamesRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetClassifierNamesRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetClassifierNamesRequest.name) + return _impl_.name_.Release(); +} +inline void GetClassifierNamesRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetClassifierNamesRequest.name) +} + +// ------------------------------------------------------------------- + +// GetClassifierNamesResponse + +// repeated string classifier_names = 1 [json_name = "classifierNames"]; +inline int GetClassifierNamesResponse::_internal_classifier_names_size() const { + return _impl_.classifier_names_.size(); +} +inline int GetClassifierNamesResponse::classifier_names_size() const { + return _internal_classifier_names_size(); +} +inline void GetClassifierNamesResponse::clear_classifier_names() { + _impl_.classifier_names_.Clear(); +} +inline std::string* GetClassifierNamesResponse::add_classifier_names() { + std::string* _s = _internal_add_classifier_names(); + // @@protoc_insertion_point(field_add_mutable:viam.service.vision.v1.GetClassifierNamesResponse.classifier_names) + return _s; +} +inline const std::string& GetClassifierNamesResponse::_internal_classifier_names(int index) const { + return _impl_.classifier_names_.Get(index); +} +inline const std::string& GetClassifierNamesResponse::classifier_names(int index) const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassifierNamesResponse.classifier_names) + return _internal_classifier_names(index); +} +inline std::string* GetClassifierNamesResponse::mutable_classifier_names(int index) { + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetClassifierNamesResponse.classifier_names) + return _impl_.classifier_names_.Mutable(index); +} +inline void GetClassifierNamesResponse::set_classifier_names(int index, const std::string& value) { + _impl_.classifier_names_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassifierNamesResponse.classifier_names) +} +inline void GetClassifierNamesResponse::set_classifier_names(int index, std::string&& value) { + _impl_.classifier_names_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassifierNamesResponse.classifier_names) +} +inline void GetClassifierNamesResponse::set_classifier_names(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.classifier_names_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.service.vision.v1.GetClassifierNamesResponse.classifier_names) +} +inline void GetClassifierNamesResponse::set_classifier_names(int index, const char* value, size_t size) { + _impl_.classifier_names_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.service.vision.v1.GetClassifierNamesResponse.classifier_names) +} +inline std::string* GetClassifierNamesResponse::_internal_add_classifier_names() { + return _impl_.classifier_names_.Add(); +} +inline void GetClassifierNamesResponse::add_classifier_names(const std::string& value) { + _impl_.classifier_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.service.vision.v1.GetClassifierNamesResponse.classifier_names) +} +inline void GetClassifierNamesResponse::add_classifier_names(std::string&& value) { + _impl_.classifier_names_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.service.vision.v1.GetClassifierNamesResponse.classifier_names) +} +inline void GetClassifierNamesResponse::add_classifier_names(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.classifier_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.service.vision.v1.GetClassifierNamesResponse.classifier_names) +} +inline void GetClassifierNamesResponse::add_classifier_names(const char* value, size_t size) { + _impl_.classifier_names_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.service.vision.v1.GetClassifierNamesResponse.classifier_names) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +GetClassifierNamesResponse::classifier_names() const { + // @@protoc_insertion_point(field_list:viam.service.vision.v1.GetClassifierNamesResponse.classifier_names) + return _impl_.classifier_names_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +GetClassifierNamesResponse::mutable_classifier_names() { + // @@protoc_insertion_point(field_mutable_list:viam.service.vision.v1.GetClassifierNamesResponse.classifier_names) + return &_impl_.classifier_names_; +} + +// ------------------------------------------------------------------- + +// AddClassifierRequest + +// string name = 1 [json_name = "name"]; +inline void AddClassifierRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& AddClassifierRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.AddClassifierRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AddClassifierRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.AddClassifierRequest.name) +} +inline std::string* AddClassifierRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.AddClassifierRequest.name) + return _s; +} +inline const std::string& AddClassifierRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void AddClassifierRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* AddClassifierRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* AddClassifierRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.AddClassifierRequest.name) + return _impl_.name_.Release(); +} +inline void AddClassifierRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.AddClassifierRequest.name) +} + +// string classifier_name = 2 [json_name = "classifierName"]; +inline void AddClassifierRequest::clear_classifier_name() { + _impl_.classifier_name_.ClearToEmpty(); +} +inline const std::string& AddClassifierRequest::classifier_name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.AddClassifierRequest.classifier_name) + return _internal_classifier_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AddClassifierRequest::set_classifier_name(ArgT0&& arg0, ArgT... args) { + + _impl_.classifier_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.AddClassifierRequest.classifier_name) +} +inline std::string* AddClassifierRequest::mutable_classifier_name() { + std::string* _s = _internal_mutable_classifier_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.AddClassifierRequest.classifier_name) + return _s; +} +inline const std::string& AddClassifierRequest::_internal_classifier_name() const { + return _impl_.classifier_name_.Get(); +} +inline void AddClassifierRequest::_internal_set_classifier_name(const std::string& value) { + + _impl_.classifier_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* AddClassifierRequest::_internal_mutable_classifier_name() { + + return _impl_.classifier_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* AddClassifierRequest::release_classifier_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.AddClassifierRequest.classifier_name) + return _impl_.classifier_name_.Release(); +} +inline void AddClassifierRequest::set_allocated_classifier_name(std::string* classifier_name) { + if (classifier_name != nullptr) { + + } else { + + } + _impl_.classifier_name_.SetAllocated(classifier_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.classifier_name_.IsDefault()) { + _impl_.classifier_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.AddClassifierRequest.classifier_name) +} + +// string classifier_model_type = 3 [json_name = "classifierModelType"]; +inline void AddClassifierRequest::clear_classifier_model_type() { + _impl_.classifier_model_type_.ClearToEmpty(); +} +inline const std::string& AddClassifierRequest::classifier_model_type() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.AddClassifierRequest.classifier_model_type) + return _internal_classifier_model_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AddClassifierRequest::set_classifier_model_type(ArgT0&& arg0, ArgT... args) { + + _impl_.classifier_model_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.AddClassifierRequest.classifier_model_type) +} +inline std::string* AddClassifierRequest::mutable_classifier_model_type() { + std::string* _s = _internal_mutable_classifier_model_type(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.AddClassifierRequest.classifier_model_type) + return _s; +} +inline const std::string& AddClassifierRequest::_internal_classifier_model_type() const { + return _impl_.classifier_model_type_.Get(); +} +inline void AddClassifierRequest::_internal_set_classifier_model_type(const std::string& value) { + + _impl_.classifier_model_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* AddClassifierRequest::_internal_mutable_classifier_model_type() { + + return _impl_.classifier_model_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* AddClassifierRequest::release_classifier_model_type() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.AddClassifierRequest.classifier_model_type) + return _impl_.classifier_model_type_.Release(); +} +inline void AddClassifierRequest::set_allocated_classifier_model_type(std::string* classifier_model_type) { + if (classifier_model_type != nullptr) { + + } else { + + } + _impl_.classifier_model_type_.SetAllocated(classifier_model_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.classifier_model_type_.IsDefault()) { + _impl_.classifier_model_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.AddClassifierRequest.classifier_model_type) +} + +// .google.protobuf.Struct classifier_parameters = 4 [json_name = "classifierParameters"]; +inline bool AddClassifierRequest::_internal_has_classifier_parameters() const { + return this != internal_default_instance() && _impl_.classifier_parameters_ != nullptr; +} +inline bool AddClassifierRequest::has_classifier_parameters() const { + return _internal_has_classifier_parameters(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& AddClassifierRequest::_internal_classifier_parameters() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.classifier_parameters_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& AddClassifierRequest::classifier_parameters() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.AddClassifierRequest.classifier_parameters) + return _internal_classifier_parameters(); +} +inline void AddClassifierRequest::unsafe_arena_set_allocated_classifier_parameters( + ::PROTOBUF_NAMESPACE_ID::Struct* classifier_parameters) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.classifier_parameters_); + } + _impl_.classifier_parameters_ = classifier_parameters; + if (classifier_parameters) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.vision.v1.AddClassifierRequest.classifier_parameters) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* AddClassifierRequest::release_classifier_parameters() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.classifier_parameters_; + _impl_.classifier_parameters_ = 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* AddClassifierRequest::unsafe_arena_release_classifier_parameters() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.AddClassifierRequest.classifier_parameters) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.classifier_parameters_; + _impl_.classifier_parameters_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* AddClassifierRequest::_internal_mutable_classifier_parameters() { + + if (_impl_.classifier_parameters_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.classifier_parameters_ = p; + } + return _impl_.classifier_parameters_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* AddClassifierRequest::mutable_classifier_parameters() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_classifier_parameters(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.AddClassifierRequest.classifier_parameters) + return _msg; +} +inline void AddClassifierRequest::set_allocated_classifier_parameters(::PROTOBUF_NAMESPACE_ID::Struct* classifier_parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.classifier_parameters_); + } + if (classifier_parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(classifier_parameters)); + if (message_arena != submessage_arena) { + classifier_parameters = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, classifier_parameters, submessage_arena); + } + + } else { + + } + _impl_.classifier_parameters_ = classifier_parameters; + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.AddClassifierRequest.classifier_parameters) +} + +// ------------------------------------------------------------------- + +// AddClassifierResponse + +// ------------------------------------------------------------------- + +// RemoveClassifierRequest + +// string name = 1 [json_name = "name"]; +inline void RemoveClassifierRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& RemoveClassifierRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.RemoveClassifierRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RemoveClassifierRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.RemoveClassifierRequest.name) +} +inline std::string* RemoveClassifierRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.RemoveClassifierRequest.name) + return _s; +} +inline const std::string& RemoveClassifierRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void RemoveClassifierRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* RemoveClassifierRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* RemoveClassifierRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.RemoveClassifierRequest.name) + return _impl_.name_.Release(); +} +inline void RemoveClassifierRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.RemoveClassifierRequest.name) +} + +// string classifier_name = 2 [json_name = "classifierName"]; +inline void RemoveClassifierRequest::clear_classifier_name() { + _impl_.classifier_name_.ClearToEmpty(); +} +inline const std::string& RemoveClassifierRequest::classifier_name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.RemoveClassifierRequest.classifier_name) + return _internal_classifier_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RemoveClassifierRequest::set_classifier_name(ArgT0&& arg0, ArgT... args) { + + _impl_.classifier_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.RemoveClassifierRequest.classifier_name) +} +inline std::string* RemoveClassifierRequest::mutable_classifier_name() { + std::string* _s = _internal_mutable_classifier_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.RemoveClassifierRequest.classifier_name) + return _s; +} +inline const std::string& RemoveClassifierRequest::_internal_classifier_name() const { + return _impl_.classifier_name_.Get(); +} +inline void RemoveClassifierRequest::_internal_set_classifier_name(const std::string& value) { + + _impl_.classifier_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* RemoveClassifierRequest::_internal_mutable_classifier_name() { + + return _impl_.classifier_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* RemoveClassifierRequest::release_classifier_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.RemoveClassifierRequest.classifier_name) + return _impl_.classifier_name_.Release(); +} +inline void RemoveClassifierRequest::set_allocated_classifier_name(std::string* classifier_name) { + if (classifier_name != nullptr) { + + } else { + + } + _impl_.classifier_name_.SetAllocated(classifier_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.classifier_name_.IsDefault()) { + _impl_.classifier_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.RemoveClassifierRequest.classifier_name) +} + +// ------------------------------------------------------------------- + +// RemoveClassifierResponse + +// ------------------------------------------------------------------- + +// GetClassificationsRequest + +// string name = 1 [json_name = "name"]; +inline void GetClassificationsRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetClassificationsRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetClassificationsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassificationsRequest.name) +} +inline std::string* GetClassificationsRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetClassificationsRequest.name) + return _s; +} +inline const std::string& GetClassificationsRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetClassificationsRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetClassificationsRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetClassificationsRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetClassificationsRequest.name) + return _impl_.name_.Release(); +} +inline void GetClassificationsRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetClassificationsRequest.name) +} + +// bytes image = 2 [json_name = "image"]; +inline void GetClassificationsRequest::clear_image() { + _impl_.image_.ClearToEmpty(); +} +inline const std::string& GetClassificationsRequest::image() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsRequest.image) + return _internal_image(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetClassificationsRequest::set_image(ArgT0&& arg0, ArgT... args) { + + _impl_.image_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassificationsRequest.image) +} +inline std::string* GetClassificationsRequest::mutable_image() { + std::string* _s = _internal_mutable_image(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetClassificationsRequest.image) + return _s; +} +inline const std::string& GetClassificationsRequest::_internal_image() const { + return _impl_.image_.Get(); +} +inline void GetClassificationsRequest::_internal_set_image(const std::string& value) { + + _impl_.image_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetClassificationsRequest::_internal_mutable_image() { + + return _impl_.image_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetClassificationsRequest::release_image() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetClassificationsRequest.image) + return _impl_.image_.Release(); +} +inline void GetClassificationsRequest::set_allocated_image(std::string* image) { + if (image != nullptr) { + + } else { + + } + _impl_.image_.SetAllocated(image, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.image_.IsDefault()) { + _impl_.image_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetClassificationsRequest.image) +} + +// int32 width = 3 [json_name = "width"]; +inline void GetClassificationsRequest::clear_width() { + _impl_.width_ = 0; +} +inline int32_t GetClassificationsRequest::_internal_width() const { + return _impl_.width_; +} +inline int32_t GetClassificationsRequest::width() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsRequest.width) + return _internal_width(); +} +inline void GetClassificationsRequest::_internal_set_width(int32_t value) { + + _impl_.width_ = value; +} +inline void GetClassificationsRequest::set_width(int32_t value) { + _internal_set_width(value); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassificationsRequest.width) +} + +// int32 height = 4 [json_name = "height"]; +inline void GetClassificationsRequest::clear_height() { + _impl_.height_ = 0; +} +inline int32_t GetClassificationsRequest::_internal_height() const { + return _impl_.height_; +} +inline int32_t GetClassificationsRequest::height() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsRequest.height) + return _internal_height(); +} +inline void GetClassificationsRequest::_internal_set_height(int32_t value) { + + _impl_.height_ = value; +} +inline void GetClassificationsRequest::set_height(int32_t value) { + _internal_set_height(value); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassificationsRequest.height) +} + +// string mime_type = 5 [json_name = "mimeType"]; +inline void GetClassificationsRequest::clear_mime_type() { + _impl_.mime_type_.ClearToEmpty(); +} +inline const std::string& GetClassificationsRequest::mime_type() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsRequest.mime_type) + return _internal_mime_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetClassificationsRequest::set_mime_type(ArgT0&& arg0, ArgT... args) { + + _impl_.mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassificationsRequest.mime_type) +} +inline std::string* GetClassificationsRequest::mutable_mime_type() { + std::string* _s = _internal_mutable_mime_type(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetClassificationsRequest.mime_type) + return _s; +} +inline const std::string& GetClassificationsRequest::_internal_mime_type() const { + return _impl_.mime_type_.Get(); +} +inline void GetClassificationsRequest::_internal_set_mime_type(const std::string& value) { + + _impl_.mime_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetClassificationsRequest::_internal_mutable_mime_type() { + + return _impl_.mime_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetClassificationsRequest::release_mime_type() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetClassificationsRequest.mime_type) + return _impl_.mime_type_.Release(); +} +inline void GetClassificationsRequest::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + _impl_.mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.mime_type_.IsDefault()) { + _impl_.mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetClassificationsRequest.mime_type) +} + +// string classifier_name = 6 [json_name = "classifierName"]; +inline void GetClassificationsRequest::clear_classifier_name() { + _impl_.classifier_name_.ClearToEmpty(); +} +inline const std::string& GetClassificationsRequest::classifier_name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsRequest.classifier_name) + return _internal_classifier_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetClassificationsRequest::set_classifier_name(ArgT0&& arg0, ArgT... args) { + + _impl_.classifier_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassificationsRequest.classifier_name) +} +inline std::string* GetClassificationsRequest::mutable_classifier_name() { + std::string* _s = _internal_mutable_classifier_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetClassificationsRequest.classifier_name) + return _s; +} +inline const std::string& GetClassificationsRequest::_internal_classifier_name() const { + return _impl_.classifier_name_.Get(); +} +inline void GetClassificationsRequest::_internal_set_classifier_name(const std::string& value) { + + _impl_.classifier_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetClassificationsRequest::_internal_mutable_classifier_name() { + + return _impl_.classifier_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetClassificationsRequest::release_classifier_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetClassificationsRequest.classifier_name) + return _impl_.classifier_name_.Release(); +} +inline void GetClassificationsRequest::set_allocated_classifier_name(std::string* classifier_name) { + if (classifier_name != nullptr) { + + } else { + + } + _impl_.classifier_name_.SetAllocated(classifier_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.classifier_name_.IsDefault()) { + _impl_.classifier_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetClassificationsRequest.classifier_name) +} + +// int32 n = 7 [json_name = "n"]; +inline void GetClassificationsRequest::clear_n() { + _impl_.n_ = 0; +} +inline int32_t GetClassificationsRequest::_internal_n() const { + return _impl_.n_; +} +inline int32_t GetClassificationsRequest::n() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsRequest.n) + return _internal_n(); +} +inline void GetClassificationsRequest::_internal_set_n(int32_t value) { + + _impl_.n_ = value; +} +inline void GetClassificationsRequest::set_n(int32_t value) { + _internal_set_n(value); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassificationsRequest.n) +} + +// ------------------------------------------------------------------- + +// GetClassificationsResponse + +// repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; +inline int GetClassificationsResponse::_internal_classifications_size() const { + return _impl_.classifications_.size(); +} +inline int GetClassificationsResponse::classifications_size() const { + return _internal_classifications_size(); +} +inline void GetClassificationsResponse::clear_classifications() { + _impl_.classifications_.Clear(); +} +inline ::viam::service::vision::v1::Classification* GetClassificationsResponse::mutable_classifications(int index) { + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetClassificationsResponse.classifications) + return _impl_.classifications_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification >* +GetClassificationsResponse::mutable_classifications() { + // @@protoc_insertion_point(field_mutable_list:viam.service.vision.v1.GetClassificationsResponse.classifications) + return &_impl_.classifications_; +} +inline const ::viam::service::vision::v1::Classification& GetClassificationsResponse::_internal_classifications(int index) const { + return _impl_.classifications_.Get(index); +} +inline const ::viam::service::vision::v1::Classification& GetClassificationsResponse::classifications(int index) const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsResponse.classifications) + return _internal_classifications(index); +} +inline ::viam::service::vision::v1::Classification* GetClassificationsResponse::_internal_add_classifications() { + return _impl_.classifications_.Add(); +} +inline ::viam::service::vision::v1::Classification* GetClassificationsResponse::add_classifications() { + ::viam::service::vision::v1::Classification* _add = _internal_add_classifications(); + // @@protoc_insertion_point(field_add:viam.service.vision.v1.GetClassificationsResponse.classifications) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification >& +GetClassificationsResponse::classifications() const { + // @@protoc_insertion_point(field_list:viam.service.vision.v1.GetClassificationsResponse.classifications) + return _impl_.classifications_; +} + +// ------------------------------------------------------------------- + +// GetClassificationsFromCameraRequest + +// string name = 1 [json_name = "name"]; +inline void GetClassificationsFromCameraRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetClassificationsFromCameraRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsFromCameraRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetClassificationsFromCameraRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassificationsFromCameraRequest.name) +} +inline std::string* GetClassificationsFromCameraRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetClassificationsFromCameraRequest.name) + return _s; +} +inline const std::string& GetClassificationsFromCameraRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetClassificationsFromCameraRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetClassificationsFromCameraRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetClassificationsFromCameraRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetClassificationsFromCameraRequest.name) + return _impl_.name_.Release(); +} +inline void GetClassificationsFromCameraRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetClassificationsFromCameraRequest.name) +} + +// string camera_name = 2 [json_name = "cameraName"]; +inline void GetClassificationsFromCameraRequest::clear_camera_name() { + _impl_.camera_name_.ClearToEmpty(); +} +inline const std::string& GetClassificationsFromCameraRequest::camera_name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsFromCameraRequest.camera_name) + return _internal_camera_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetClassificationsFromCameraRequest::set_camera_name(ArgT0&& arg0, ArgT... args) { + + _impl_.camera_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassificationsFromCameraRequest.camera_name) +} +inline std::string* GetClassificationsFromCameraRequest::mutable_camera_name() { + std::string* _s = _internal_mutable_camera_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetClassificationsFromCameraRequest.camera_name) + return _s; +} +inline const std::string& GetClassificationsFromCameraRequest::_internal_camera_name() const { + return _impl_.camera_name_.Get(); +} +inline void GetClassificationsFromCameraRequest::_internal_set_camera_name(const std::string& value) { + + _impl_.camera_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetClassificationsFromCameraRequest::_internal_mutable_camera_name() { + + return _impl_.camera_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetClassificationsFromCameraRequest::release_camera_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetClassificationsFromCameraRequest.camera_name) + return _impl_.camera_name_.Release(); +} +inline void GetClassificationsFromCameraRequest::set_allocated_camera_name(std::string* camera_name) { + if (camera_name != nullptr) { + + } else { + + } + _impl_.camera_name_.SetAllocated(camera_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.camera_name_.IsDefault()) { + _impl_.camera_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetClassificationsFromCameraRequest.camera_name) +} + +// string classifier_name = 3 [json_name = "classifierName"]; +inline void GetClassificationsFromCameraRequest::clear_classifier_name() { + _impl_.classifier_name_.ClearToEmpty(); +} +inline const std::string& GetClassificationsFromCameraRequest::classifier_name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsFromCameraRequest.classifier_name) + return _internal_classifier_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetClassificationsFromCameraRequest::set_classifier_name(ArgT0&& arg0, ArgT... args) { + + _impl_.classifier_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassificationsFromCameraRequest.classifier_name) +} +inline std::string* GetClassificationsFromCameraRequest::mutable_classifier_name() { + std::string* _s = _internal_mutable_classifier_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetClassificationsFromCameraRequest.classifier_name) + return _s; +} +inline const std::string& GetClassificationsFromCameraRequest::_internal_classifier_name() const { + return _impl_.classifier_name_.Get(); +} +inline void GetClassificationsFromCameraRequest::_internal_set_classifier_name(const std::string& value) { + + _impl_.classifier_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetClassificationsFromCameraRequest::_internal_mutable_classifier_name() { + + return _impl_.classifier_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetClassificationsFromCameraRequest::release_classifier_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetClassificationsFromCameraRequest.classifier_name) + return _impl_.classifier_name_.Release(); +} +inline void GetClassificationsFromCameraRequest::set_allocated_classifier_name(std::string* classifier_name) { + if (classifier_name != nullptr) { + + } else { + + } + _impl_.classifier_name_.SetAllocated(classifier_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.classifier_name_.IsDefault()) { + _impl_.classifier_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetClassificationsFromCameraRequest.classifier_name) +} + +// int32 n = 4 [json_name = "n"]; +inline void GetClassificationsFromCameraRequest::clear_n() { + _impl_.n_ = 0; +} +inline int32_t GetClassificationsFromCameraRequest::_internal_n() const { + return _impl_.n_; +} +inline int32_t GetClassificationsFromCameraRequest::n() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsFromCameraRequest.n) + return _internal_n(); +} +inline void GetClassificationsFromCameraRequest::_internal_set_n(int32_t value) { + + _impl_.n_ = value; +} +inline void GetClassificationsFromCameraRequest::set_n(int32_t value) { + _internal_set_n(value); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassificationsFromCameraRequest.n) +} + +// ------------------------------------------------------------------- + +// GetClassificationsFromCameraResponse + +// repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; +inline int GetClassificationsFromCameraResponse::_internal_classifications_size() const { + return _impl_.classifications_.size(); +} +inline int GetClassificationsFromCameraResponse::classifications_size() const { + return _internal_classifications_size(); +} +inline void GetClassificationsFromCameraResponse::clear_classifications() { + _impl_.classifications_.Clear(); +} +inline ::viam::service::vision::v1::Classification* GetClassificationsFromCameraResponse::mutable_classifications(int index) { + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetClassificationsFromCameraResponse.classifications) + return _impl_.classifications_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification >* +GetClassificationsFromCameraResponse::mutable_classifications() { + // @@protoc_insertion_point(field_mutable_list:viam.service.vision.v1.GetClassificationsFromCameraResponse.classifications) + return &_impl_.classifications_; +} +inline const ::viam::service::vision::v1::Classification& GetClassificationsFromCameraResponse::_internal_classifications(int index) const { + return _impl_.classifications_.Get(index); +} +inline const ::viam::service::vision::v1::Classification& GetClassificationsFromCameraResponse::classifications(int index) const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsFromCameraResponse.classifications) + return _internal_classifications(index); +} +inline ::viam::service::vision::v1::Classification* GetClassificationsFromCameraResponse::_internal_add_classifications() { + return _impl_.classifications_.Add(); +} +inline ::viam::service::vision::v1::Classification* GetClassificationsFromCameraResponse::add_classifications() { + ::viam::service::vision::v1::Classification* _add = _internal_add_classifications(); + // @@protoc_insertion_point(field_add:viam.service.vision.v1.GetClassificationsFromCameraResponse.classifications) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification >& +GetClassificationsFromCameraResponse::classifications() const { + // @@protoc_insertion_point(field_list:viam.service.vision.v1.GetClassificationsFromCameraResponse.classifications) + return _impl_.classifications_; +} + +// ------------------------------------------------------------------- + +// Classification + +// string class_name = 1 [json_name = "className"]; +inline void Classification::clear_class_name() { + _impl_.class_name_.ClearToEmpty(); +} +inline const std::string& Classification::class_name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.Classification.class_name) + return _internal_class_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Classification::set_class_name(ArgT0&& arg0, ArgT... args) { + + _impl_.class_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.Classification.class_name) +} +inline std::string* Classification::mutable_class_name() { + std::string* _s = _internal_mutable_class_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.Classification.class_name) + return _s; +} +inline const std::string& Classification::_internal_class_name() const { + return _impl_.class_name_.Get(); +} +inline void Classification::_internal_set_class_name(const std::string& value) { + + _impl_.class_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Classification::_internal_mutable_class_name() { + + return _impl_.class_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* Classification::release_class_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.Classification.class_name) + return _impl_.class_name_.Release(); +} +inline void Classification::set_allocated_class_name(std::string* class_name) { + if (class_name != nullptr) { + + } else { + + } + _impl_.class_name_.SetAllocated(class_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.class_name_.IsDefault()) { + _impl_.class_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.Classification.class_name) +} + +// double confidence = 2 [json_name = "confidence"]; +inline void Classification::clear_confidence() { + _impl_.confidence_ = 0; +} +inline double Classification::_internal_confidence() const { + return _impl_.confidence_; +} +inline double Classification::confidence() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.Classification.confidence) + return _internal_confidence(); +} +inline void Classification::_internal_set_confidence(double value) { + + _impl_.confidence_ = value; +} +inline void Classification::set_confidence(double value) { + _internal_set_confidence(value); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.Classification.confidence) +} + +// ------------------------------------------------------------------- + +// GetSegmenterNamesRequest + +// string name = 1 [json_name = "name"]; +inline void GetSegmenterNamesRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetSegmenterNamesRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetSegmenterNamesRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetSegmenterNamesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetSegmenterNamesRequest.name) +} +inline std::string* GetSegmenterNamesRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetSegmenterNamesRequest.name) + return _s; +} +inline const std::string& GetSegmenterNamesRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetSegmenterNamesRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetSegmenterNamesRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetSegmenterNamesRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetSegmenterNamesRequest.name) + return _impl_.name_.Release(); +} +inline void GetSegmenterNamesRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetSegmenterNamesRequest.name) +} + +// ------------------------------------------------------------------- + +// GetSegmenterNamesResponse + +// repeated string segmenter_names = 1 [json_name = "segmenterNames"]; +inline int GetSegmenterNamesResponse::_internal_segmenter_names_size() const { + return _impl_.segmenter_names_.size(); +} +inline int GetSegmenterNamesResponse::segmenter_names_size() const { + return _internal_segmenter_names_size(); +} +inline void GetSegmenterNamesResponse::clear_segmenter_names() { + _impl_.segmenter_names_.Clear(); +} +inline std::string* GetSegmenterNamesResponse::add_segmenter_names() { + std::string* _s = _internal_add_segmenter_names(); + // @@protoc_insertion_point(field_add_mutable:viam.service.vision.v1.GetSegmenterNamesResponse.segmenter_names) + return _s; +} +inline const std::string& GetSegmenterNamesResponse::_internal_segmenter_names(int index) const { + return _impl_.segmenter_names_.Get(index); +} +inline const std::string& GetSegmenterNamesResponse::segmenter_names(int index) const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetSegmenterNamesResponse.segmenter_names) + return _internal_segmenter_names(index); +} +inline std::string* GetSegmenterNamesResponse::mutable_segmenter_names(int index) { + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetSegmenterNamesResponse.segmenter_names) + return _impl_.segmenter_names_.Mutable(index); +} +inline void GetSegmenterNamesResponse::set_segmenter_names(int index, const std::string& value) { + _impl_.segmenter_names_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetSegmenterNamesResponse.segmenter_names) +} +inline void GetSegmenterNamesResponse::set_segmenter_names(int index, std::string&& value) { + _impl_.segmenter_names_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetSegmenterNamesResponse.segmenter_names) +} +inline void GetSegmenterNamesResponse::set_segmenter_names(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.segmenter_names_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.service.vision.v1.GetSegmenterNamesResponse.segmenter_names) +} +inline void GetSegmenterNamesResponse::set_segmenter_names(int index, const char* value, size_t size) { + _impl_.segmenter_names_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.service.vision.v1.GetSegmenterNamesResponse.segmenter_names) +} +inline std::string* GetSegmenterNamesResponse::_internal_add_segmenter_names() { + return _impl_.segmenter_names_.Add(); +} +inline void GetSegmenterNamesResponse::add_segmenter_names(const std::string& value) { + _impl_.segmenter_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.service.vision.v1.GetSegmenterNamesResponse.segmenter_names) +} +inline void GetSegmenterNamesResponse::add_segmenter_names(std::string&& value) { + _impl_.segmenter_names_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.service.vision.v1.GetSegmenterNamesResponse.segmenter_names) +} +inline void GetSegmenterNamesResponse::add_segmenter_names(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.segmenter_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.service.vision.v1.GetSegmenterNamesResponse.segmenter_names) +} +inline void GetSegmenterNamesResponse::add_segmenter_names(const char* value, size_t size) { + _impl_.segmenter_names_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.service.vision.v1.GetSegmenterNamesResponse.segmenter_names) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +GetSegmenterNamesResponse::segmenter_names() const { + // @@protoc_insertion_point(field_list:viam.service.vision.v1.GetSegmenterNamesResponse.segmenter_names) + return _impl_.segmenter_names_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +GetSegmenterNamesResponse::mutable_segmenter_names() { + // @@protoc_insertion_point(field_mutable_list:viam.service.vision.v1.GetSegmenterNamesResponse.segmenter_names) + return &_impl_.segmenter_names_; +} + +// ------------------------------------------------------------------- + +// AddSegmenterRequest + +// string name = 1 [json_name = "name"]; +inline void AddSegmenterRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& AddSegmenterRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.AddSegmenterRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AddSegmenterRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.AddSegmenterRequest.name) +} +inline std::string* AddSegmenterRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.AddSegmenterRequest.name) + return _s; +} +inline const std::string& AddSegmenterRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void AddSegmenterRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* AddSegmenterRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* AddSegmenterRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.AddSegmenterRequest.name) + return _impl_.name_.Release(); +} +inline void AddSegmenterRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.AddSegmenterRequest.name) +} + +// string segmenter_name = 2 [json_name = "segmenterName"]; +inline void AddSegmenterRequest::clear_segmenter_name() { + _impl_.segmenter_name_.ClearToEmpty(); +} +inline const std::string& AddSegmenterRequest::segmenter_name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.AddSegmenterRequest.segmenter_name) + return _internal_segmenter_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AddSegmenterRequest::set_segmenter_name(ArgT0&& arg0, ArgT... args) { + + _impl_.segmenter_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.AddSegmenterRequest.segmenter_name) +} +inline std::string* AddSegmenterRequest::mutable_segmenter_name() { + std::string* _s = _internal_mutable_segmenter_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.AddSegmenterRequest.segmenter_name) + return _s; +} +inline const std::string& AddSegmenterRequest::_internal_segmenter_name() const { + return _impl_.segmenter_name_.Get(); +} +inline void AddSegmenterRequest::_internal_set_segmenter_name(const std::string& value) { + + _impl_.segmenter_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* AddSegmenterRequest::_internal_mutable_segmenter_name() { + + return _impl_.segmenter_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* AddSegmenterRequest::release_segmenter_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.AddSegmenterRequest.segmenter_name) + return _impl_.segmenter_name_.Release(); +} +inline void AddSegmenterRequest::set_allocated_segmenter_name(std::string* segmenter_name) { + if (segmenter_name != nullptr) { + + } else { + + } + _impl_.segmenter_name_.SetAllocated(segmenter_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.segmenter_name_.IsDefault()) { + _impl_.segmenter_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.AddSegmenterRequest.segmenter_name) +} + +// string segmenter_model_type = 3 [json_name = "segmenterModelType"]; +inline void AddSegmenterRequest::clear_segmenter_model_type() { + _impl_.segmenter_model_type_.ClearToEmpty(); +} +inline const std::string& AddSegmenterRequest::segmenter_model_type() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.AddSegmenterRequest.segmenter_model_type) + return _internal_segmenter_model_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AddSegmenterRequest::set_segmenter_model_type(ArgT0&& arg0, ArgT... args) { + + _impl_.segmenter_model_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.AddSegmenterRequest.segmenter_model_type) +} +inline std::string* AddSegmenterRequest::mutable_segmenter_model_type() { + std::string* _s = _internal_mutable_segmenter_model_type(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.AddSegmenterRequest.segmenter_model_type) + return _s; +} +inline const std::string& AddSegmenterRequest::_internal_segmenter_model_type() const { + return _impl_.segmenter_model_type_.Get(); +} +inline void AddSegmenterRequest::_internal_set_segmenter_model_type(const std::string& value) { + + _impl_.segmenter_model_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* AddSegmenterRequest::_internal_mutable_segmenter_model_type() { + + return _impl_.segmenter_model_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* AddSegmenterRequest::release_segmenter_model_type() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.AddSegmenterRequest.segmenter_model_type) + return _impl_.segmenter_model_type_.Release(); +} +inline void AddSegmenterRequest::set_allocated_segmenter_model_type(std::string* segmenter_model_type) { + if (segmenter_model_type != nullptr) { + + } else { + + } + _impl_.segmenter_model_type_.SetAllocated(segmenter_model_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.segmenter_model_type_.IsDefault()) { + _impl_.segmenter_model_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.AddSegmenterRequest.segmenter_model_type) +} + +// .google.protobuf.Struct segmenter_parameters = 4 [json_name = "segmenterParameters"]; +inline bool AddSegmenterRequest::_internal_has_segmenter_parameters() const { + return this != internal_default_instance() && _impl_.segmenter_parameters_ != nullptr; +} +inline bool AddSegmenterRequest::has_segmenter_parameters() const { + return _internal_has_segmenter_parameters(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& AddSegmenterRequest::_internal_segmenter_parameters() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = _impl_.segmenter_parameters_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& AddSegmenterRequest::segmenter_parameters() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.AddSegmenterRequest.segmenter_parameters) + return _internal_segmenter_parameters(); +} +inline void AddSegmenterRequest::unsafe_arena_set_allocated_segmenter_parameters( + ::PROTOBUF_NAMESPACE_ID::Struct* segmenter_parameters) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.segmenter_parameters_); + } + _impl_.segmenter_parameters_ = segmenter_parameters; + if (segmenter_parameters) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.vision.v1.AddSegmenterRequest.segmenter_parameters) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* AddSegmenterRequest::release_segmenter_parameters() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.segmenter_parameters_; + _impl_.segmenter_parameters_ = 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* AddSegmenterRequest::unsafe_arena_release_segmenter_parameters() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.AddSegmenterRequest.segmenter_parameters) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.segmenter_parameters_; + _impl_.segmenter_parameters_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* AddSegmenterRequest::_internal_mutable_segmenter_parameters() { + + if (_impl_.segmenter_parameters_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + _impl_.segmenter_parameters_ = p; + } + return _impl_.segmenter_parameters_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* AddSegmenterRequest::mutable_segmenter_parameters() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_segmenter_parameters(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.AddSegmenterRequest.segmenter_parameters) + return _msg; +} +inline void AddSegmenterRequest::set_allocated_segmenter_parameters(::PROTOBUF_NAMESPACE_ID::Struct* segmenter_parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.segmenter_parameters_); + } + if (segmenter_parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(segmenter_parameters)); + if (message_arena != submessage_arena) { + segmenter_parameters = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, segmenter_parameters, submessage_arena); + } + + } else { + + } + _impl_.segmenter_parameters_ = segmenter_parameters; + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.AddSegmenterRequest.segmenter_parameters) +} + +// ------------------------------------------------------------------- + +// AddSegmenterResponse + +// ------------------------------------------------------------------- + +// RemoveSegmenterRequest + +// string name = 1 [json_name = "name"]; +inline void RemoveSegmenterRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& RemoveSegmenterRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.RemoveSegmenterRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RemoveSegmenterRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.RemoveSegmenterRequest.name) +} +inline std::string* RemoveSegmenterRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.RemoveSegmenterRequest.name) + return _s; +} +inline const std::string& RemoveSegmenterRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void RemoveSegmenterRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* RemoveSegmenterRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* RemoveSegmenterRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.RemoveSegmenterRequest.name) + return _impl_.name_.Release(); +} +inline void RemoveSegmenterRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.RemoveSegmenterRequest.name) +} + +// string segmenter_name = 2 [json_name = "segmenterName"]; +inline void RemoveSegmenterRequest::clear_segmenter_name() { + _impl_.segmenter_name_.ClearToEmpty(); +} +inline const std::string& RemoveSegmenterRequest::segmenter_name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.RemoveSegmenterRequest.segmenter_name) + return _internal_segmenter_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RemoveSegmenterRequest::set_segmenter_name(ArgT0&& arg0, ArgT... args) { + + _impl_.segmenter_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.RemoveSegmenterRequest.segmenter_name) +} +inline std::string* RemoveSegmenterRequest::mutable_segmenter_name() { + std::string* _s = _internal_mutable_segmenter_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.RemoveSegmenterRequest.segmenter_name) + return _s; +} +inline const std::string& RemoveSegmenterRequest::_internal_segmenter_name() const { + return _impl_.segmenter_name_.Get(); +} +inline void RemoveSegmenterRequest::_internal_set_segmenter_name(const std::string& value) { + + _impl_.segmenter_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* RemoveSegmenterRequest::_internal_mutable_segmenter_name() { + + return _impl_.segmenter_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* RemoveSegmenterRequest::release_segmenter_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.RemoveSegmenterRequest.segmenter_name) + return _impl_.segmenter_name_.Release(); +} +inline void RemoveSegmenterRequest::set_allocated_segmenter_name(std::string* segmenter_name) { + if (segmenter_name != nullptr) { + + } else { + + } + _impl_.segmenter_name_.SetAllocated(segmenter_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.segmenter_name_.IsDefault()) { + _impl_.segmenter_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.RemoveSegmenterRequest.segmenter_name) +} + +// ------------------------------------------------------------------- + +// RemoveSegmenterResponse + +// ------------------------------------------------------------------- + +// GetObjectPointCloudsRequest + +// string name = 1 [json_name = "name"]; +inline void GetObjectPointCloudsRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetObjectPointCloudsRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetObjectPointCloudsRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetObjectPointCloudsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetObjectPointCloudsRequest.name) +} +inline std::string* GetObjectPointCloudsRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetObjectPointCloudsRequest.name) + return _s; +} +inline const std::string& GetObjectPointCloudsRequest::_internal_name() const { + return _impl_.name_.Get(); +} +inline void GetObjectPointCloudsRequest::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetObjectPointCloudsRequest::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetObjectPointCloudsRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetObjectPointCloudsRequest.name) + return _impl_.name_.Release(); +} +inline void GetObjectPointCloudsRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetObjectPointCloudsRequest.name) +} + +// string camera_name = 2 [json_name = "cameraName"]; +inline void GetObjectPointCloudsRequest::clear_camera_name() { + _impl_.camera_name_.ClearToEmpty(); +} +inline const std::string& GetObjectPointCloudsRequest::camera_name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetObjectPointCloudsRequest.camera_name) + return _internal_camera_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetObjectPointCloudsRequest::set_camera_name(ArgT0&& arg0, ArgT... args) { + + _impl_.camera_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetObjectPointCloudsRequest.camera_name) +} +inline std::string* GetObjectPointCloudsRequest::mutable_camera_name() { + std::string* _s = _internal_mutable_camera_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetObjectPointCloudsRequest.camera_name) + return _s; +} +inline const std::string& GetObjectPointCloudsRequest::_internal_camera_name() const { + return _impl_.camera_name_.Get(); +} +inline void GetObjectPointCloudsRequest::_internal_set_camera_name(const std::string& value) { + + _impl_.camera_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetObjectPointCloudsRequest::_internal_mutable_camera_name() { + + return _impl_.camera_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetObjectPointCloudsRequest::release_camera_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetObjectPointCloudsRequest.camera_name) + return _impl_.camera_name_.Release(); +} +inline void GetObjectPointCloudsRequest::set_allocated_camera_name(std::string* camera_name) { + if (camera_name != nullptr) { + + } else { + + } + _impl_.camera_name_.SetAllocated(camera_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.camera_name_.IsDefault()) { + _impl_.camera_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetObjectPointCloudsRequest.camera_name) +} + +// string segmenter_name = 3 [json_name = "segmenterName"]; +inline void GetObjectPointCloudsRequest::clear_segmenter_name() { + _impl_.segmenter_name_.ClearToEmpty(); +} +inline const std::string& GetObjectPointCloudsRequest::segmenter_name() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetObjectPointCloudsRequest.segmenter_name) + return _internal_segmenter_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetObjectPointCloudsRequest::set_segmenter_name(ArgT0&& arg0, ArgT... args) { + + _impl_.segmenter_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetObjectPointCloudsRequest.segmenter_name) +} +inline std::string* GetObjectPointCloudsRequest::mutable_segmenter_name() { + std::string* _s = _internal_mutable_segmenter_name(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetObjectPointCloudsRequest.segmenter_name) + return _s; +} +inline const std::string& GetObjectPointCloudsRequest::_internal_segmenter_name() const { + return _impl_.segmenter_name_.Get(); +} +inline void GetObjectPointCloudsRequest::_internal_set_segmenter_name(const std::string& value) { + + _impl_.segmenter_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetObjectPointCloudsRequest::_internal_mutable_segmenter_name() { + + return _impl_.segmenter_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetObjectPointCloudsRequest::release_segmenter_name() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetObjectPointCloudsRequest.segmenter_name) + return _impl_.segmenter_name_.Release(); +} +inline void GetObjectPointCloudsRequest::set_allocated_segmenter_name(std::string* segmenter_name) { + if (segmenter_name != nullptr) { + + } else { + + } + _impl_.segmenter_name_.SetAllocated(segmenter_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.segmenter_name_.IsDefault()) { + _impl_.segmenter_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetObjectPointCloudsRequest.segmenter_name) +} + +// string mime_type = 4 [json_name = "mimeType"]; +inline void GetObjectPointCloudsRequest::clear_mime_type() { + _impl_.mime_type_.ClearToEmpty(); +} +inline const std::string& GetObjectPointCloudsRequest::mime_type() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetObjectPointCloudsRequest.mime_type) + return _internal_mime_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetObjectPointCloudsRequest::set_mime_type(ArgT0&& arg0, ArgT... args) { + + _impl_.mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetObjectPointCloudsRequest.mime_type) +} +inline std::string* GetObjectPointCloudsRequest::mutable_mime_type() { + std::string* _s = _internal_mutable_mime_type(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetObjectPointCloudsRequest.mime_type) + return _s; +} +inline const std::string& GetObjectPointCloudsRequest::_internal_mime_type() const { + return _impl_.mime_type_.Get(); +} +inline void GetObjectPointCloudsRequest::_internal_set_mime_type(const std::string& value) { + + _impl_.mime_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetObjectPointCloudsRequest::_internal_mutable_mime_type() { + + return _impl_.mime_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetObjectPointCloudsRequest::release_mime_type() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetObjectPointCloudsRequest.mime_type) + return _impl_.mime_type_.Release(); +} +inline void GetObjectPointCloudsRequest::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + _impl_.mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.mime_type_.IsDefault()) { + _impl_.mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetObjectPointCloudsRequest.mime_type) +} + +// ------------------------------------------------------------------- + +// GetObjectPointCloudsResponse + +// string mime_type = 1 [json_name = "mimeType"]; +inline void GetObjectPointCloudsResponse::clear_mime_type() { + _impl_.mime_type_.ClearToEmpty(); +} +inline const std::string& GetObjectPointCloudsResponse::mime_type() const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetObjectPointCloudsResponse.mime_type) + return _internal_mime_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetObjectPointCloudsResponse::set_mime_type(ArgT0&& arg0, ArgT... args) { + + _impl_.mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetObjectPointCloudsResponse.mime_type) +} +inline std::string* GetObjectPointCloudsResponse::mutable_mime_type() { + std::string* _s = _internal_mutable_mime_type(); + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetObjectPointCloudsResponse.mime_type) + return _s; +} +inline const std::string& GetObjectPointCloudsResponse::_internal_mime_type() const { + return _impl_.mime_type_.Get(); +} +inline void GetObjectPointCloudsResponse::_internal_set_mime_type(const std::string& value) { + + _impl_.mime_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetObjectPointCloudsResponse::_internal_mutable_mime_type() { + + return _impl_.mime_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetObjectPointCloudsResponse::release_mime_type() { + // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetObjectPointCloudsResponse.mime_type) + return _impl_.mime_type_.Release(); +} +inline void GetObjectPointCloudsResponse::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + _impl_.mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.mime_type_.IsDefault()) { + _impl_.mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetObjectPointCloudsResponse.mime_type) +} + +// repeated .viam.common.v1.PointCloudObject objects = 2 [json_name = "objects"]; +inline int GetObjectPointCloudsResponse::_internal_objects_size() const { + return _impl_.objects_.size(); +} +inline int GetObjectPointCloudsResponse::objects_size() const { + return _internal_objects_size(); +} +inline ::viam::common::v1::PointCloudObject* GetObjectPointCloudsResponse::mutable_objects(int index) { + // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetObjectPointCloudsResponse.objects) + return _impl_.objects_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::PointCloudObject >* +GetObjectPointCloudsResponse::mutable_objects() { + // @@protoc_insertion_point(field_mutable_list:viam.service.vision.v1.GetObjectPointCloudsResponse.objects) + return &_impl_.objects_; +} +inline const ::viam::common::v1::PointCloudObject& GetObjectPointCloudsResponse::_internal_objects(int index) const { + return _impl_.objects_.Get(index); +} +inline const ::viam::common::v1::PointCloudObject& GetObjectPointCloudsResponse::objects(int index) const { + // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetObjectPointCloudsResponse.objects) + return _internal_objects(index); +} +inline ::viam::common::v1::PointCloudObject* GetObjectPointCloudsResponse::_internal_add_objects() { + return _impl_.objects_.Add(); +} +inline ::viam::common::v1::PointCloudObject* GetObjectPointCloudsResponse::add_objects() { + ::viam::common::v1::PointCloudObject* _add = _internal_add_objects(); + // @@protoc_insertion_point(field_add:viam.service.vision.v1.GetObjectPointCloudsResponse.objects) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::PointCloudObject >& +GetObjectPointCloudsResponse::objects() const { + // @@protoc_insertion_point(field_list:viam.service.vision.v1.GetObjectPointCloudsResponse.objects) + return _impl_.objects_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace vision +} // namespace service +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_service_2fvision_2fv1_2fvision_2eproto diff --git a/src/gen/tagger/v1/tagger.grpc.pb.cc b/src/gen/tagger/v1/tagger.grpc.pb.cc new file mode 100644 index 000000000..8fdaf4aa1 --- /dev/null +++ b/src/gen/tagger/v1/tagger.grpc.pb.cc @@ -0,0 +1,27 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: tagger/v1/tagger.proto + +#include "tagger/v1/tagger.pb.h" +#include "tagger/v1/tagger.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace tagger { +namespace v1 { + +} // namespace tagger +} // namespace v1 + diff --git a/src/gen/tagger/v1/tagger.grpc.pb.h b/src/gen/tagger/v1/tagger.grpc.pb.h new file mode 100644 index 000000000..4ee8dfb11 --- /dev/null +++ b/src/gen/tagger/v1/tagger.grpc.pb.h @@ -0,0 +1,35 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: tagger/v1/tagger.proto +#ifndef GRPC_tagger_2fv1_2ftagger_2eproto__INCLUDED +#define GRPC_tagger_2fv1_2ftagger_2eproto__INCLUDED + +#include "tagger/v1/tagger.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace tagger { +namespace v1 { + +} // namespace v1 +} // namespace tagger + + +#endif // GRPC_tagger_2fv1_2ftagger_2eproto__INCLUDED diff --git a/src/gen/tagger/v1/tagger.pb.cc b/src/gen/tagger/v1/tagger.pb.cc new file mode 100644 index 000000000..24f8c455a --- /dev/null +++ b/src/gen/tagger/v1/tagger.pb.cc @@ -0,0 +1,78 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tagger/v1/tagger.proto + +#include "tagger/v1/tagger.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 tagger { +namespace v1 { +} // namespace v1 +} // namespace tagger +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_tagger_2fv1_2ftagger_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_tagger_2fv1_2ftagger_2eproto = nullptr; +const uint32_t TableStruct_tagger_2fv1_2ftagger_2eproto::offsets[1] = {}; +static constexpr ::_pbi::MigrationSchema* schemas = nullptr; +static constexpr ::_pb::Message* const* file_default_instances = nullptr; + +const char descriptor_table_protodef_tagger_2fv1_2ftagger_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\026tagger/v1/tagger.proto\022\ttagger.v1\032 goo" + "gle/protobuf/descriptor.proto:3\n\004tags\022\035." + "google.protobuf.FieldOptions\030\303\3403 \001(\tR\004ta" + "gs:>\n\noneof_tags\022\035.google.protobuf.Oneof" + "Options\030\303\3403 \001(\tR\toneofTagsB4Z2github.com" + "/srikrsna/protoc-gen-gotag/tagger;tagger" + "b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_tagger_2fv1_2ftagger_2eproto_deps[1] = { + &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, +}; +static ::_pbi::once_flag descriptor_table_tagger_2fv1_2ftagger_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_tagger_2fv1_2ftagger_2eproto = { + false, false, 248, descriptor_table_protodef_tagger_2fv1_2ftagger_2eproto, + "tagger/v1/tagger.proto", + &descriptor_table_tagger_2fv1_2ftagger_2eproto_once, descriptor_table_tagger_2fv1_2ftagger_2eproto_deps, 1, 0, + schemas, file_default_instances, TableStruct_tagger_2fv1_2ftagger_2eproto::offsets, + nullptr, file_level_enum_descriptors_tagger_2fv1_2ftagger_2eproto, + file_level_service_descriptors_tagger_2fv1_2ftagger_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_tagger_2fv1_2ftagger_2eproto_getter() { + return &descriptor_table_tagger_2fv1_2ftagger_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_tagger_2fv1_2ftagger_2eproto(&descriptor_table_tagger_2fv1_2ftagger_2eproto); +namespace tagger { +namespace v1 { +const std::string tags_default(""); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, + ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false> + tags(kTagsFieldNumber, tags_default, nullptr); +const std::string oneof_tags_default(""); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::OneofOptions, + ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false> + oneof_tags(kOneofTagsFieldNumber, oneof_tags_default, nullptr); + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace tagger +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/gen/tagger/v1/tagger.pb.h b/src/gen/tagger/v1/tagger.pb.h new file mode 100644 index 000000000..8211caedf --- /dev/null +++ b/src/gen/tagger/v1/tagger.pb.h @@ -0,0 +1,83 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tagger/v1/tagger.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_tagger_2fv1_2ftagger_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_tagger_2fv1_2ftagger_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#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 3021007 < 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 // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_tagger_2fv1_2ftagger_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_tagger_2fv1_2ftagger_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tagger_2fv1_2ftagger_2eproto; +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE +namespace tagger { +namespace v1 { + +// =================================================================== + + +// =================================================================== + +static const int kTagsFieldNumber = 847939; +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, + ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false > + tags; +static const int kOneofTagsFieldNumber = 847939; +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::OneofOptions, + ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false > + oneof_tags; + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace tagger + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tagger_2fv1_2ftagger_2eproto